Commit: MSP430: Add -mcpu= option

Nick Clifton
Fri Jan 17 11:34:00 GMT 2014

Hi Guys,

  I am committing the attached patch to add a -mcpu= command line option
  to the MSP430 backend.  This allows the selection of the ISA to be
  used, and it operates independently of the -mmcu= command line option.

2014-01-17  Nick Clifton  <>

	* config/msp430/msp430.opt: (mcpu): New option.
	* config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
	(msp430_option_override): Parse target_cpu.  If the MCU name
	matches a generic string, clear target_mcu.
	(msp430_attr): Allow numeric interrupt values up to 63.
	(msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
	* config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
	* config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
	Add mcpu matches.
	* config/msp430/ (popm): Use %J rather than %I.
	(addsi3): Use msp430_nonimmediate_operand for operand 2.
	(addhi_cy_i): Use immediate_operand for operand 2.
	* doc/invoke.texi: Document -mcpu option.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: msp430.mcpu.patch.xz
Type: application/x-xz
Size: 3576 bytes
Desc: not available
URL: <>

More information about the Gcc-patches mailing list