This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
stormy16: Allow -T to work but provide sane default
- To: gcc-patches at gcc dot gnu dot org
- Subject: stormy16: Allow -T to work but provide sane default
- From: Geoffrey Keating <geoffk at cygnus dot com>
- Date: Sat, 3 Nov 2001 23:30:43 -0800
See the comment.
Tested on stormy16-elf.
--
Geoff Keating <geoffk@redhat.com>
===File ~/patches/gcc-stormy-libspecT.patch=================
2001-11-03 Geoffrey Keating <geoffk@redhat.com>
* config/stormy16/stormy16.h (LIB_SPEC): Don't supply any libgloss
library at all if -T is used.
Index: stormy16.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/stormy16/stormy16.h,v
retrieving revision 1.15
diff -p -u -p -r1.15 stormy16.h
--- stormy16.h 2001/10/28 13:22:02 1.15
+++ stormy16.h 2001/11/03 19:51:34
@@ -137,15 +138,16 @@ Boston, MA 02111-1307, USA. */
between the two is that `LIB_SPEC' is used at the end of the command given
to the linker.
- If this macro is not defined, a default is provided that loads the standard
- C library from the usual place. See `gcc.c'.
+ For stormy16:
+ - If -msim is specified, everything is built and linked as for the sim.
+ - If -T is specified, that linker script is used, and it should provide
+ appropriate libraries.
+ - If neither is specified, everything is built as for the sim, but no
+ I/O support is assumed.
- Defined in svr4.h. */
+*/
#undef LIB_SPEC
-#if 0
-#define LIB_SPEC "-( -lc %{msim:-lsim}%{!msim:-leva_app -lnosys} -)"
-#endif
-#define LIB_SPEC "-( -lc %{msim:-lsim} -)"
+#define LIB_SPEC "-( -lc %{msim:-lsim}%{!msim:%{!T*:-lnosys}} -)"
/* Another C string constant that tells the GNU CC driver program how and when
to place a reference to `libgcc.a' into the linker command line. This
============================================================