Commit d4c972b7 by Jozef Lawrynowicz Committed by Jozef Lawrynowicz

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

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
parent fa5baeed
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> 2019-07-24 Martin Sebor <msebor@redhat.com>
PR driver/80545 PR driver/80545
......
...@@ -49,7 +49,7 @@ extern bool msp430x; ...@@ -49,7 +49,7 @@ extern bool msp430x;
/* -lgcc is included because crtend.o needs __mspabi_func_epilog_1. */ /* -lgcc is included because crtend.o needs __mspabi_func_epilog_1. */
#undef ENDFILE_SPEC #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. */ \ #define ASM_SPEC "-mP " /* Enable polymorphic instructions. */ \
"%{mcpu=*:-mcpu=%*}%{!mcpu=*:%{mmcu=*:-mmcu=%*}} " /* Pass the CPU type on to the assembler. */ \ "%{mcpu=*:-mcpu=%*}%{!mcpu=*:%{mmcu=*:-mmcu=%*}} " /* Pass the CPU type on to the assembler. */ \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment