msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in if-exists.
authorJozef Lawrynowicz <jozef.l@mittosystems.com>
Wed, 24 Jul 2019 21:08:34 +0000 (21:08 +0000)
committerJozef Lawrynowicz <jozefl@gcc.gnu.org>
Wed, 24 Jul 2019 21:08:34 +0000 (21:08 +0000)
2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>

* config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
if-exists.

From-SVN: r273773

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

index 5cd80e8c7a1609e17d1e3d5d683c0201e3b4f17d..8ed57edef03b58a83fe16fe5b8a23db9c19c2ecc 100644 (file)
@@ -1,3 +1,8 @@
+2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
+
+       * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
+       if-exists.
+
 2019-07-24  Martin Sebor  <msebor@redhat.com>
 
        PR driver/80545
index 1288b1a263dbabb6aca68ecfe7cbe2794f4269ba..ca7cf20e1d7fdab799ddfe04afb19e6271474184 100644 (file)
@@ -49,7 +49,7 @@ extern bool msp430x;
 
 /* -lgcc is included because crtend.o needs __mspabi_func_epilog_1.  */
 #undef  ENDFILE_SPEC
-#define ENDFILE_SPEC "%{!minrt:crtend.o%s} %{minrt:crtn-minrt.o%s}%{!minrt:crtn.o%s} -lgcc"
+#define ENDFILE_SPEC "%{!minrt:crtend.o%s} %{minrt:%:if-exists(crtn-minrt.o%s)}%{!minrt:%:if-exists(crtn.o%s)} -lgcc"
 
 #define ASM_SPEC "-mP " /* Enable polymorphic instructions.  */ \
   "%{mcpu=*:-mcpu=%*}%{!mcpu=*:%{mmcu=*:-mmcu=%*}} " /* Pass the CPU type on to the assembler.  */ \