Re: Commit: MSP430: Add -mcpu= option
Hi Gerald, command-line option, I think, and I suggest to use code.../code around the actual options. OK - I have made those changes and committed the result. Cheers Nick
Re: Commit: MSP430: Add -mcpu= option
Hi Gerald, Mind adding an entry to the release notes? Happy to help if you have any questions. Is the following acceptable ? I even remembered to run it through the validator... Cheers Nick Index: htdocs/gcc-4.9/changes.html === RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.9/changes.html,v retrieving revision 1.52 diff -u -3 -p -r1.52 changes.html --- htdocs/gcc-4.9/changes.html 13 Jan 2014 17:34:43 - 1.52 +++ htdocs/gcc-4.9/changes.html 20 Jan 2014 11:48:24 - @@ -425,6 +425,16 @@ auto incr = [](auto x) { return x++; }; is now available through the code-march=bdver4/code and code-mtune=bdver4/code options./li /ul +h3 id=msp430MSP430/h3 + ul +liA new command line option -mcpu= has been added to the MSP430 backend. +This option is used to specify the ISA to be used. Accepted values are +msp430 (the default), msp430x and msp430xv2. The ISA is no longer deduced +from the -mmcu= option as there are far too many different MCU names. The +-mmcu= option is still supported, and this is still used to select linker +scripts and generate a C preprocessor symbol that will be recognised by the +msp430.h header file./li + /ul h3 id=nds32NDS32/h3 ul li A new nds32 port supports the 32-bit architecture from Andes
Commit: MSP430: Add -mcpu= option
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. gcc/ChangeLog 2014-01-17 Nick Clifton ni...@redhat.com * 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 option. * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches. Add mcpu matches. * config/msp430/msp430.md (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. msp430.mcpu.patch.xz Description: application/xz