]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
msp430.opt (-minrt): New.
authorDJ Delorie <dj@redhat.com>
Thu, 30 Jan 2014 02:57:41 +0000 (21:57 -0500)
committerDJ Delorie <dj@gcc.gnu.org>
Thu, 30 Jan 2014 02:57:41 +0000 (21:57 -0500)
* config/msp430/msp430.opt (-minrt): New.
* config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
if -minrt given.
(ENDFILE_SPEC): Likewise.

From-SVN: r207294

gcc/ChangeLog
gcc/config/msp430/msp430.h
gcc/config/msp430/msp430.opt

index 5dba715e4b72bd2d509bbe3b77ced901b1f29a4f..ec72eb2014963aac5e5d23a5efa1b5c4f44b933e 100644 (file)
@@ -1,3 +1,10 @@
+2014-01-29  DJ Delorie  <dj@redhat.com>
+
+       * config/msp430/msp430.opt (-minrt): New.
+       * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
+       if -minrt given.
+       (ENDFILE_SPEC): Likewise.
+
 2014-01-29  Jan Hubicka  <jh@suse.cz>
 
        * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
index c3aeefedb5a63e7cc7d411cda7f538e1a59e69f4..1afbfd44dbe2140f0677411787b781831bf56e8b 100644 (file)
@@ -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.  */ \
index 047037b31aaca94d11863ebafa14a325dbcc5fef..1f1d61c4c10a3973963bd3bbec98fb2b36e4e9c0 100644 (file)
@@ -28,3 +28,7 @@ Optimize opcode sizes at link time
 
 mOs
 Target Undocumented Mask(OPT_SPACE)
+
+minrt
+Target Report Mask(MINRT) RejectNegative
+Use a minimum runtime (no static initializers or ctors) for memory-constrained devices.