diff options
author | DJ Delorie <dj@redhat.com> | 2014-01-29 21:57:41 -0500 |
---|---|---|
committer | DJ Delorie <dj@gcc.gnu.org> | 2014-01-29 21:57:41 -0500 |
commit | 3b16363e1aa7ff2a614290db89f853b995807601 (patch) | |
tree | bc4f46410c1ad4da75e0a5f37efb0bfd29fe307c /gcc/config/msp430/msp430.h | |
parent | d9e1d3e52456fc1e4b33df951ddf1ad9b574fe97 (diff) | |
download | gcc-3b16363e1aa7ff2a614290db89f853b995807601.zip gcc-3b16363e1aa7ff2a614290db89f853b995807601.tar.gz gcc-3b16363e1aa7ff2a614290db89f853b995807601.tar.bz2 |
msp430.opt (-minrt): New.
* config/msp430/msp430.opt (-minrt): New.
* config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
if -minrt given.
(ENDFILE_SPEC): Likewise.
From-SVN: r207294
Diffstat (limited to 'gcc/config/msp430/msp430.h')
-rw-r--r-- | gcc/config/msp430/msp430.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/msp430/msp430.h b/gcc/config/msp430/msp430.h index c3aeefe..1afbfd4 100644 --- a/gcc/config/msp430/msp430.h +++ b/gcc/config/msp430/msp430.h @@ -45,11 +45,11 @@ extern bool msp430x; while (0) #undef STARTFILE_SPEC -#define STARTFILE_SPEC "%{pg:gcrt0.o%s}%{!pg:crt0.o%s} crtbegin.o%s" +#define STARTFILE_SPEC "%{pg:gcrt0.o%s}%{!pg:%{minrt:crt0-minrt.o%s}%{!minrt:crt0.o%s}} %{!minrt:crtbegin.o%s}" /* -lgcc is included because crtend.o needs __mspabi_func_epilog_1. */ #undef ENDFILE_SPEC -#define ENDFILE_SPEC "crtend.o%s crtn.o%s -lgcc" +#define ENDFILE_SPEC "%{!minrt:crtend.o%s} %{minrt:crtn-minrt.o%s}%{!minrt:crtn.o%s} -lgcc" #define ASM_SPEC "-mP " /* Enable polymorphic instructions. */ \ "%{mcpu=*:-mcpu=%*}%{!mcpu=*:%{mmcu=*:-mmcu=%*}} " /* Pass the CPU type on to the assembler. */ \ |