aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>1999-07-02 15:16:02 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-07-02 15:16:02 +0000
commit0547661371b97a404fe7a6474005c95ccfcc47dd (patch)
tree7775a319cf3e8cebb25d8c5b89a0651bf00f2e62 /gcc
parent835f9b4dad11d84e385ea8fe8bba1b0e403f23f5 (diff)
downloadgcc-0547661371b97a404fe7a6474005c95ccfcc47dd.zip
gcc-0547661371b97a404fe7a6474005c95ccfcc47dd.tar.gz
gcc-0547661371b97a404fe7a6474005c95ccfcc47dd.tar.bz2
configure.in (mips-sgi-irix6*): Handle --with-gnu-ld.
* gcc/configure.in (mips-sgi-irix6*): Handle --with-gnu-ld. * gcc/config/mips/t-iris6gld: New file. * gcc/config/mips/iris6gld.h: Likewise. From-SVN: r27924
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/mips/iris6gld.h48
-rw-r--r--gcc/config/mips/t-iris6gld10
-rw-r--r--gcc/configure.in10
4 files changed, 72 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bc5da17..94194a4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+Thu Jul 1 19:08:13 1999 Mark P. Mitchell <mark@codesourcery.com>
+
+ * gcc/configure.in (mips-sgi-irix6*): Handle --with-gnu-ld.
+ * gcc/config/mips/t-iris6gld: New file.
+ * gcc/config/mips/iris6gld.h: Likewise.
+
Fri Jul 2 13:23:39 1999 Gavin Romig-Koch <gavin@cygnus.com>
* c-decl.c (widest_integer_literal_type_node,
diff --git a/gcc/config/mips/iris6gld.h b/gcc/config/mips/iris6gld.h
new file mode 100644
index 0000000..d3c6784
--- /dev/null
+++ b/gcc/config/mips/iris6gld.h
@@ -0,0 +1,48 @@
+/* Definitions of target machine for GNU compiler. Iris version 6 with
+ GNU ld.
+ Copyright (C) 1999 Free Software Foundation, Inc.
+ Written by Mark Mitchell <mark@codesourcery.com>.
+
+This file is part of GNU CC.
+
+GNU CC is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU CC is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU CC; see the file COPYING. If not, write to
+the Free Software Foundation, 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA. */
+
+#undef LIB_SPEC
+#define LIB_SPEC \
+ "%{mabi=n32: %{mips4:-L/usr/lib32/mips4} %{!mips4:-L/usr/lib32/mips3} \
+ -L/usr/lib32} \
+ %{mabi=64: %{mips4:-L/usr/lib64/mips4} %{!mips4:-L/usr/lib64/mips3} \
+ -L/usr/lib64} \
+ %{!mabi*: %{mips4:-L/usr/lib32/mips4} %{!mips4:-L/usr/lib32/mips3} \
+ -L/usr/lib32} \
+ %{!shared: \
+ %{p:libprof1.a%s}%{pg:libprof1.a%s} -lc}"
+
+/* Use the default libgcc spec. */
+#undef LIBGCC_SPEC
+
+/* ??? If no mabi=X option give, but a mipsX option is, then should depend
+ on the mipsX option. */
+#undef LINK_SPEC
+#define LINK_SPEC "\
+%{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} %{mips4} \
+%{bestGnum} %{shared} %{non_shared} \
+%{call_shared} %{no_archive} %{exact_version} \
+%{static: -non_shared} \
+%{!static: \
+ %{!shared: %{!non_shared: %{!call_shared: -call_shared}}}} \
+%{rpath} -init __do_global_ctors -fini __do_global_dtors \
+%{mabi=32: -melf32bsmip}%{mabi=n32: -melfbmipn32}%{mabi=64: -melfbmip64}%{!mabi*: -melf32bmipn32}"
diff --git a/gcc/config/mips/t-iris6gld b/gcc/config/mips/t-iris6gld
new file mode 100644
index 0000000..c70eb065
--- /dev/null
+++ b/gcc/config/mips/t-iris6gld
@@ -0,0 +1,10 @@
+# Suppress building libgcc1.a, since the MIPS compiler port is complete
+# and does not need anything from libgcc1.a.
+LIBGCC1 =
+CROSS_LIBGCC1 =
+
+# We don't multilib because we don't yet have 64-bit linker support in
+# GNU ld.
+
+CRTSTUFF_T_CFLAGS=-g1
+
diff --git a/gcc/configure.in b/gcc/configure.in
index 5c2a631..6f8b912 100644
--- a/gcc/configure.in
+++ b/gcc/configure.in
@@ -2227,10 +2227,16 @@ changequote([,])dnl
tmake_file=m88k/t-sysv4
;;
mips-sgi-irix6*) # SGI System V.4., IRIX 6
- tm_file=mips/iris6.h
+ if test "x$gnu_ld" = xyes
+ then
+ tm_file="mips/iris6.h mips/iris6gld.h"
+ tmake_file=mips/t-iris6gld
+ else
+ tm_file=mips/iris6.h
+ tmake_file=mips/t-iris6
+ fi
xm_file=mips/xm-iris6.h
xmake_file=mips/x-iris6
- tmake_file=mips/t-iris6
# if test x$enable_threads = xyes; then
# thread_file='irix'
# fi