[PATCH][MSP430] Add options to toggle NOP warnings for possible interrupt state changes

Jozef Lawrynowicz jozef.l@mittosystems.com
Tue Apr 16 18:11:00 GMT 2019


Missed the ChangeLog in previous submission, now added to attached patch.
Also removed unwanted addition of "md" option to md_shortopts.

On Mon, 15 Apr 2019 15:16:07 +0100
Jozef Lawrynowicz <jozef.l@mittosystems.com> wrote:

> MSP430 requires NOP instructions to be inserted before some instructions which
> enable or disable interrupts.
> 
> Currently, the assembler will always act when NOPs are missing around an
> instruction which *may* change interrupt state. These are instructions that
> modify the status register in a way that is unknown at assembly time e.g.
> because the value being written to the status register is in a register.
> 
> The attached patch adds options so this behaviour to act on instructions which
> *may* enable or disable interrupts can be toggled on/off. The constraints for
> when to warn about the "unknown" interrupt state changes have also been
> tightened, to prevent extraneous warnings.
> 
> If the patch is acceptable, I would appreciate if someone would commit it for
> me as I do not have write access.
> 
> Thanks,
> Jozef

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-m-u-U-options-to-enable-disable-NOP-warnings-for.patch
Type: text/x-patch
Size: 11268 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20190416/17f2293b/attachment.bin>


More information about the Binutils mailing list