OSDN Git Service

* config/stormy16/stormy16.h (LIB_SPEC): Don't supply any libgloss
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 4 Nov 2001 07:43:50 +0000 (07:43 +0000)
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 4 Nov 2001 07:43:50 +0000 (07:43 +0000)
library at all if -T is used.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46768 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/stormy16/stormy16.h

index 57d166d..3d875ee 100644 (file)
@@ -1,5 +1,8 @@
 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.
+
        * config/stormy16/stormy16.c (stormy16_print_operand): Avoid
        some uses of uninitialized variables in error cases.
 
index 5d9beba..e57d056 100644 (file)
@@ -138,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