diff options
author | Nick Clifton <nickc@redhat.com> | 2014-01-17 11:35:46 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 2014-01-17 11:35:46 +0000 |
commit | d4f283a153449eb77df3fe4083538b5f191a6b38 (patch) | |
tree | 45f78eb9fc0d83e901196ae36dfc52c2f5defb84 /gcc/config/msp430/msp430.h | |
parent | 7be64667c127a0cdb9dc7e4f02dcd7720589919d (diff) | |
download | gcc-d4f283a153449eb77df3fe4083538b5f191a6b38.zip gcc-d4f283a153449eb77df3fe4083538b5f191a6b38.tar.gz gcc-d4f283a153449eb77df3fe4083538b5f191a6b38.tar.bz2 |
msp430.opt: (mcpu): New option.
* 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.
From-SVN: r206705
Diffstat (limited to 'gcc/config/msp430/msp430.h')
-rw-r--r-- | gcc/config/msp430/msp430.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/msp430/msp430.h b/gcc/config/msp430/msp430.h index db37950..a707999 100644 --- a/gcc/config/msp430/msp430.h +++ b/gcc/config/msp430/msp430.h @@ -52,7 +52,7 @@ extern bool msp430x; #define ENDFILE_SPEC "crtend.o%s crtn.o%s -lgcc" #define ASM_SPEC "-mP " /* Enable polymorphic instructions. */ \ - "%{mmcu=msp430x:-mmcu=msp430X;mmcu=*:-mmcu=%*} " /* Pass the MCU type on to the assembler. */ \ + "%{mcpu=*:-mmcu=%*}%{!mcpu=*:%{mmcu=*:-mmcu=%*}} " /* Pass the CPU type on to the assembler. */ \ "%{mrelax=-mQ} " /* Pass the relax option on to the assembler. */ \ "%{mlarge:-ml} " /* Tell the assembler if we are building for the LARGE pointer model. */ \ "%{!msim:-md} %{msim:%{mlarge:-md}}" /* Copy data from ROM to RAM if necessary. */ \ |