This patch enhances the MSP430 port of GAS so that, if requested, it will
authorNick Clifton <nickc@redhat.com>
Mon, 3 Mar 2014 17:27:55 +0000 (17:27 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 3 Mar 2014 17:27:55 +0000 (17:27 +0000)
commit65d7bab5919338f2f41256e24c0609c91eaf0432
tree009a19f6274a2dd338ee6e42603aed7e83d6e162
parentc1a3e85c37d0121efd395406ef3234b93e588a14
This patch enhances the MSP430 port of GAS so that, if requested, it will
generate warning messages about an instruction that changes the interrupt
state not being followed by a NOP instruction.

* config/msp430/msp430.c: Replace known mcu array with known
msp430 ISA mcu name array.
Accept any name for -mmcu option.
Add -mz option to warn about missing NOP following an interrupt
status change.
(check_for_nop): New.
(msp430_operands): Emit a warning, if requested, when an interrupt
changing instruction is not followed by a NOP.
* doc/c-msp430.c: Document -mz option.

* gas/msp430/bad.d: Add -mz option.
* gas/msp430/bad.s: Add more cases where warnings should be
generated.
* gas/msp430/bad.l: Add expected warning messages.
gas/ChangeLog
gas/config/tc-msp430.c
gas/config/tc-msp430.h
gas/doc/c-msp430.texi
gas/testsuite/ChangeLog
gas/testsuite/gas/msp430/bad.d
gas/testsuite/gas/msp430/bad.l
gas/testsuite/gas/msp430/bad.s
This page took 0.025918 seconds and 4 git commands to generate.