linux.h (CPP_PREDEFINES): Added.
authorAndreas Jaeger <aj@suse.de>
Wed, 24 Nov 1999 17:07:37 +0000 (18:07 +0100)
committerGavin Romig-Koch <gavin@gcc.gnu.org>
Wed, 24 Nov 1999 17:07:37 +0000 (17:07 +0000)
* config/mips/linux.h (CPP_PREDEFINES): Added.
(LINK_SPEC): Remove -Y since this is only needed on sparc.

From-SVN: r30653

gcc/ChangeLog
gcc/config/mips/linux.h

index 3dff9672387afb19999ad0ec28bebff13b852bee..539ed2ff807a6ddd2fbd91194ddefa3da73bf1b9 100644 (file)
@@ -1,3 +1,8 @@
+1999-11-24  Andreas Jaeger  <aj@suse.de>
+
+       * config/mips/linux.h (CPP_PREDEFINES): Added.
+       (LINK_SPEC): Remove -Y since this is only needed on sparc.
+
 1999-11-24  Andreas Jaeger  <aj@suse.de>
 
        * config/mips/linux.h (TARGET_VERSION): Added.
index 5777ffb4d43157a24bceac9aa65aa0cecec83979..455df16b43f532bc3fc99442de11d646fc198170 100644 (file)
@@ -40,6 +40,17 @@ Boston, MA 02111-1307, USA.  */
 #undef DEFAULT_VTABLE_THUNKS
 #define DEFAULT_VTABLE_THUNKS 1
 
+/* Specify predefined symbols in preprocessor.  */
+#if TARGET_ENDIAN_DEFAULT == 0
+#define CPP_PREDEFINES "-DMIPSEL -D_MIPSEL -Dunix -Dmips -D_mips \
+-DR3000 -D_R3000 -Dlinux -Asystem(posix) -Acpu(mips) \
+-Amachine(mips) -D__ELF__"
+#else
+#define CPP_PREDEFINES "-DMIPSEB -D_MIPSEB -Dunix -Dmips -D_mips \
+-DR3000 -D_R3000 -Dlinux -Asystem(posix) -Acpu(mips) \
+-Amachine(mips) -D__ELF__"
+#endif
+
 /* Provide a STARTFILE_SPEC appropriate for GNU/Linux.  Here we add
    the GNU/Linux magical crtbegin.o file (see crtstuff.c) which
    provides part of the support for getting C++ file-scope static
@@ -76,7 +87,7 @@ Boston, MA 02111-1307, USA.  */
 
 /* Borrowed from sparc/linux.h */
 #undef LINK_SPEC
-#define LINK_SPEC "-Y P,/usr/lib %{shared:-shared} \
+#define LINK_SPEC "%{shared:-shared} \
   %{!shared: \
     %{!ibcs: \
       %{!static: \