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

Nick Clifton
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.


2014-03-03  Nick Clifton  <>

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

2014-03-03  Nick Clifton  <>

	* gas/msp430/bad.d: Add -mz option.
	* gas/msp430/bad.s: Add more cases where warnings should be
	* 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: <>

More information about the Binutils mailing list