aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meissner <meissner@gcc.gnu.org>1992-08-26 21:21:55 +0000
committerMichael Meissner <meissner@gcc.gnu.org>1992-08-26 21:21:55 +0000
commit4d032a67aaa632dde65c7b1d868309bd51ba9952 (patch)
tree4b4613cf2c978e50df8ce2afcb137165ba39f762
parentb842c19aff4cae52714122ef8f18aaf305562c1e (diff)
downloadgcc-4d032a67aaa632dde65c7b1d868309bd51ba9952.zip
gcc-4d032a67aaa632dde65c7b1d868309bd51ba9952.tar.gz
gcc-4d032a67aaa632dde65c7b1d868309bd51ba9952.tar.bz2
Pass -shared/-non_shared to MIPS 3.0 linker if passed.
From-SVN: r1968
-rw-r--r--gcc/config/mips/bsd-4.h2
-rw-r--r--gcc/config/mips/dec-osf1.h12
-rw-r--r--gcc/config/mips/iris3.h2
-rw-r--r--gcc/config/mips/mips.h2
-rw-r--r--gcc/config/mips/news5.h2
-rw-r--r--gcc/config/mips/svr3-4.h2
-rw-r--r--gcc/config/mips/svr4-4.h2
-rw-r--r--gcc/config/mips/ultrix.h2
8 files changed, 19 insertions, 7 deletions
diff --git a/gcc/config/mips/bsd-4.h b/gcc/config/mips/bsd-4.h
index 6235340..586741c 100644
--- a/gcc/config/mips/bsd-4.h
+++ b/gcc/config/mips/bsd-4.h
@@ -36,7 +36,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
%{!mgas: \
%{EB} %{!EB: -EB} \
%{EL: %e-EL not supported} \
- %{bestGnum} \
+ %{bestGnum} %{shared} %{non_shared} \
%{mips1} %{mips2} %{mips3} \
-systype /bsd43/ }"
diff --git a/gcc/config/mips/dec-osf1.h b/gcc/config/mips/dec-osf1.h
index 0449136..55cc653 100644
--- a/gcc/config/mips/dec-osf1.h
+++ b/gcc/config/mips/dec-osf1.h
@@ -17,10 +17,20 @@ 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, 675 Mass Ave, Cambridge, MA 02139, USA. */
-#define DECSTATION
#define DEC_OSF1
#define CPP_PREDEFINES "-D__ANSI_COMPAT \
-DMIPSEL -DR3000 -DSYSTYPE_BSD -D_SYSTYPE_BSD -Dbsd4_2 -Dhost_mips -Dmips -Dosf -Dunix"
+#define LINK_SPEC "\
+%{G*} \
+%{!mgas: \
+ %{EL} %{!EL: -EL} \
+ %{EB: %e-EB not supported} \
+ %{mips1} %{mips2} %{mips3} \
+ %{bestGnum} %{shared} %{non_shared}}"
+
#include "decstatn.h"
+
+/* turn off collect2 COFF support, since ldfcn now has elf declaration */
+#undef OBJECT_FORMAT_COFF
diff --git a/gcc/config/mips/iris3.h b/gcc/config/mips/iris3.h
index 8536b1e..738a703 100644
--- a/gcc/config/mips/iris3.h
+++ b/gcc/config/mips/iris3.h
@@ -52,7 +52,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define LINK_SPEC "\
%{G*} \
%{!mgas: %{mips1} %{mips2} %{mips3} \
- %{bestGnum}}"
+ %{bestGnum} %{shared} %{non_shared}}"
/* Always use 1 for .file number. I [meissner@osf.org] wonder why
IRIS needs this. */
diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h
index fd748b4..6ce78b9 100644
--- a/gcc/config/mips/mips.h
+++ b/gcc/config/mips/mips.h
@@ -424,7 +424,7 @@ while (0)
%{EB} %{!EB:-EB} \
%{EL: %e-EL not supported} \
%{mips1} %{mips2} %{mips3} \
- %{bestGnum}}"
+ %{bestGnum} %{shared} %{non_shared}}"
#endif /* LINK_SPEC defined */
/* Define this macro meaning that `gcc' should find the library
diff --git a/gcc/config/mips/news5.h b/gcc/config/mips/news5.h
index bfcf997..8499e47 100644
--- a/gcc/config/mips/news5.h
+++ b/gcc/config/mips/news5.h
@@ -35,7 +35,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
%{G*} \
%{!mgas: %{mips1} %{mips2} %{mips3} \
%{EB} %{!EB:-EB} %{EL: %e-EL not supported} \
- %{bestGnum}}"
+ %{bestGnum} %{shared} %{non_shared}}"
#define LIB_SPEC "\
%{ZBSD43: -L/usr/ucblib -lucb -lresolv -lsocket -lnsl} \
diff --git a/gcc/config/mips/svr3-4.h b/gcc/config/mips/svr3-4.h
index 264132c..81d5edb 100644
--- a/gcc/config/mips/svr3-4.h
+++ b/gcc/config/mips/svr3-4.h
@@ -36,7 +36,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
%{!mgas: \
%{EB} %{!EB:-EB} \
%{EL: %e-EL not supported} \
- %{bestGnum} \
+ %{bestGnum} %{shared} %{non_shared} \
%{mips1} %{mips2} %{mips3} \
-systype /sysv/}"
diff --git a/gcc/config/mips/svr4-4.h b/gcc/config/mips/svr4-4.h
index f19ddc8..9b90eb8 100644
--- a/gcc/config/mips/svr4-4.h
+++ b/gcc/config/mips/svr4-4.h
@@ -36,7 +36,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
%{!mgas: \
%{EB} %{!EB:-EB} \
%{EL: %e-EL not supported} \
- %{bestGnum} \
+ %{bestGnum} %{shared} %{non_shared} \
%{mips1} %{mips2} %{mips3} \
-systype /svr4/}"
diff --git a/gcc/config/mips/ultrix.h b/gcc/config/mips/ultrix.h
index ae27b86..e4983ce 100644
--- a/gcc/config/mips/ultrix.h
+++ b/gcc/config/mips/ultrix.h
@@ -43,6 +43,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
%{.m: -D__LANGUAGE_OBJECTIVE_C__ -D__LANGUAGE_OBJECTIVE_C} \
%{!.S: -D__LANGUAGE_C__ -D__LANGUAGE_C %{!ansi:-DLANGUAGE_C}}"
+#ifndef LINK_SPEC
#define LINK_SPEC "\
%{G*} \
%{!mgas: \
@@ -50,6 +51,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
%{EB: %e-EB not supported} \
%{mips1} %{mips2} %{mips3} \
%{bestGnum}}"
+#endif
#define LIB_SPEC "%{p:-lprof1} %{pg:-lprof1} -lc"