summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgavin <gavin@138bc75d-0d04-0410-961f-82ee72b054a4>1999-11-24 17:07:37 +0000
committergavin <gavin@138bc75d-0d04-0410-961f-82ee72b054a4>1999-11-24 17:07:37 +0000
commitedb013036ec453286e4c0e5b84b71de8f8202858 (patch)
tree3aac6788713ece25215e070fed5cda46a23857eb
parent71309439f41e8e4f2a6102852c517644f2c8826a (diff)
downloadppe42-gcc-edb013036ec453286e4c0e5b84b71de8f8202858.tar.gz
ppe42-gcc-edb013036ec453286e4c0e5b84b71de8f8202858.zip
* config/mips/linux.h (CPP_PREDEFINES): Added.
(LINK_SPEC): Remove -Y since this is only needed on sparc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30653 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/mips/linux.h13
2 files changed, 17 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3dff9672387..539ed2ff807 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
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.
(HANDLE_SYSV_PRAGMA): Added.
(DEFAULT_VTABLE_THUNKS): Added.
diff --git a/gcc/config/mips/linux.h b/gcc/config/mips/linux.h
index 5777ffb4d43..455df16b43f 100644
--- a/gcc/config/mips/linux.h
+++ b/gcc/config/mips/linux.h
@@ -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: \
OpenPOWER on IntegriCloud