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

Jozef Lawrynowicz jozef.l@mittosystems.com
Mon Apr 15 14:16:00 GMT 2019


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-MSP430-Add-m-u-U-options-to-enable-disable-NOP-warni.patch
Type: text/x-patch
Size: 10115 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20190415/23735d92/attachment.bin>


More information about the Binutils mailing list