Commit: MSP430: Add support for generating warnings for missing NOP instructions.

Nick Clifton nickc@redhat.com
Mon Mar 3 17:27:00 GMT 2014


Hi Guys,

  I am applying the patch below to enhance 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.

Cheers
  Nick

gas/ChangeLog
2014-03-03  Nick Clifton  <nickc@redhat.com>

	* 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/testsuite/ChangeLog
2014-03-03  Nick Clifton  <nickc@redhat.com>

	* 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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: msp430.gas.patch
Type: text/x-patch
Size: 43758 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20140303/4f28b510/attachment.bin>


More information about the Binutils mailing list