This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] msp430: inhibit automatic link of -lnosys in absence of -msim
- From: "Peter A. Bigot" <pab at pabigot dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: "Peter A. Bigot" <pab at pabigot dot com>, dj at redhat dot com, nickc at redhat dot com
- Date: Mon, 22 Sep 2014 07:40:05 -0500
- Subject: [PATCH] msp430: inhibit automatic link of -lnosys in absence of -msim
- Authentication-results: sourceware.org; auth=none
Based on discussion on the mspgcc-users mailing list[1], this patch
changes msp430 to not automatically apply -lnosys when -msim is absent,
as this prevents a user from supplying a custom system interface.
The existing behavior providing the CIO alternative can be obtained by
explicitly linking -lcio instead, assuming the corresponding newlib
patch[2] to move msp430's nosys implementation to libcio.a is also used.
gcc/ChangeLog
2014-09-22 Peter A. Bigot <pab@pabigot.com>
* config/msp430/msp430.h: Remove automatic -lnosys when -msim absent.
[1] http://www.mail-archive.com/mspgcc-users@lists.sourceforge.net/msg12104.html
[2] https://sourceware.org/ml/newlib/2014/msg00465.html
Cc: dj@redhat.com
Cc: nickc@redhat.com
Signed-off-by: Peter A. Bigot <pab@pabigot.com>
---
gcc/config/msp430/msp430.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/gcc/config/msp430/msp430.h b/gcc/config/msp430/msp430.h
index 91fc91c..068bdad 100644
--- a/gcc/config/msp430/msp430.h
+++ b/gcc/config/msp430/msp430.h
@@ -70,7 +70,6 @@ extern bool msp430x;
-lgcc \
-lcrt \
%{msim:-lsim} \
-%{!msim:-lnosys} \
--end-group \
%{!T*:%{!msim:%{mmcu=*:--script=%*.ld}}} \
%{!T*:%{!msim:%{!mmcu=*:%Tmsp430.ld}}} \
--
1.8.5.5