configure.in (mipsel-*-linux*): New target.
authorRobert Lipe <robertl@dgii.com>
Fri, 4 Dec 1998 00:32:33 +0000 (00:32 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 4 Dec 1998 00:32:33 +0000 (17:32 -0700)
* configure.in (mipsel-*-linux*): New target.
* mips/linux.h: New file, based on other Linux targets.

From-SVN: r24080

gcc/ChangeLog
gcc/config/mips/linux.h [new file with mode: 0644]
gcc/configure
gcc/configure.in

index 1231b9fbebb4d8cfd32774dd62582b636f06c946..e2b61d28bf8d06ae7f184e7bd1eff44088f48645 100644 (file)
@@ -1,3 +1,8 @@
+Fri Dec  4 01:29:28 1998  Robert Lipe  <robertl@dgii.com>
+
+       * configure.in (mipsel-*-linux*): New target.
+       * mips/linux.h: New file, based on other Linux targets.
+
 Thu Dec  3 11:19:50 1998  Mike Stump  <mrs@wrs.com>
 
        * gthr-vxworks.h (__ehdtor): Fix memory leak.  The delete hook
diff --git a/gcc/config/mips/linux.h b/gcc/config/mips/linux.h
new file mode 100644 (file)
index 0000000..e780a4b
--- /dev/null
@@ -0,0 +1,70 @@
+/* Definitions for MIPS running Linux-based GNU systems with ELF format.
+   Copyright (C) 1998 Free Software Foundation, Inc.
+
+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.  */
+
+/* Required to keep collect2.c happy */
+#undef OBJECT_FORMAT_COFF 
+
+#define HAVE_ATEXIT
+
+/* If we don't set MASK_ABICALLS, we can't default to PIC. */
+#undef TARGET_DEFAULT
+#define TARGET_DEFAULT (MASK_ABICALLS|MASK_GAS)
+
+
+/* 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
+   object constructed before entering `main'. */
+
+#undef  STARTFILE_SPEC
+#define STARTFILE_SPEC \
+  "%{!shared: \
+     %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}}\
+   crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
+
+/* Provide a ENDFILE_SPEC appropriate for GNU/Linux.  Here we tack on
+   the GNU/Linux magical crtend.o file (see crtstuff.c) which
+   provides part of the support for getting C++ file-scope static
+   object constructed before entering `main', followed by a normal
+   GNU/Linux "finalizer" file, `crtn.o'.  */
+
+#undef  ENDFILE_SPEC
+#define ENDFILE_SPEC \
+  "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
+
+/* From iris5.h */
+/* -G is incompatible with -KPIC which is the default, so only allow objects
+   in the small data section if the user explicitly asks for it.  */
+#undef MIPS_DEFAULT_GVALUE
+#define MIPS_DEFAULT_GVALUE 0
+
+/* Borrowed from sparc/linux.h */
+#undef LINK_SPEC
+#define LINK_SPEC "-Y P,/usr/lib %{shared:-shared} \
+  %{!shared: \
+    %{!ibcs: \
+      %{!static: \
+        %{rdynamic:-export-dynamic} \
+        %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
+        %{static:-static}}}"
+
+
+#undef SUBTARGET_ASM_SPEC
+#define SUBTARGET_ASM_SPEC "-KPIC"
index 11b836712c121de86e816a6dc9ae883c81d1dc8e..11d4c82040440ea164cdcbeb55629a57556bfd39 100755 (executable)
@@ -3144,7 +3144,7 @@ for machine in $build $host $target; do
                install_headers_dir=install-headers-cpio
                use_collect2=yes
                ;;
-       hppa1.1-*-hpux10*)
+       hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
                target_cpu_default=1
                tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
                xm_file=pa/xm-pahpux.h
@@ -3182,7 +3182,7 @@ for machine in $build $host $target; do
                install_headers_dir=install-headers-cpio
                use_collect2=yes
                ;;
-       hppa1.1-*-hpux*)
+       hppa1.1-*-hpux* | hppa2*-*-hpux*)
                target_cpu_default=1
                tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
                xm_file=pa/xm-pahpux.h
@@ -3205,7 +3205,7 @@ for machine in $build $host $target; do
                install_headers_dir=install-headers-cpio
                use_collect2=yes
                ;;
-       hppa1.1-*-hiux*)
+       hppa1.1-*-hiux* | hppa2*-*-hiux*)
                target_cpu_default=1
                tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
                xm_file=pa/xm-pahpux.h
@@ -4472,6 +4472,15 @@ for machine in $build $host $target; do
                fixincludes=fixinc.wrap
                tmake_file=t-netbsd
                ;;
+       mipsel-*-linux*)                        # Little endian Linux MIPS
+               xmake_file=x-linux
+               xm_file="xm-siglist.h ${xm_file}"
+               tm_file="mips/elfl.h mips/linux.h"
+               extra_parts="crtbegin.o crtend.o"
+               gnu_ld=yes
+               gas=yes
+               fixincludes=Makefile.in 
+               ;;
        mips-sony-bsd* | mips-sony-newsos*)     # Sony NEWS 3600 or risc/news.
                tm_file="mips/news4.h ${tm_file}"
                if test x$stabs = xyes; then
@@ -5583,7 +5592,7 @@ fi
 if test x$enable_haifa = x
 then
   case $target in
-    alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
+    alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
       enable_haifa=yes;;
   esac
 fi
@@ -5895,7 +5904,7 @@ fi
 
 # Figure out what assembler alignment features are present.
 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
-echo "configure:5899: checking assembler alignment features" >&5
+echo "configure:5908: checking assembler alignment features" >&5
 gcc_cv_as=
 gcc_cv_as_alignment_features=
 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
@@ -5968,7 +5977,7 @@ fi
 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
 
 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
-echo "configure:5972: checking assembler subsection support" >&5
+echo "configure:5981: checking assembler subsection support" >&5
 gcc_cv_as_subsections=
 if test x$gcc_cv_as != x; then
        # Check if we have .subsection
@@ -6240,7 +6249,7 @@ fi
 
 # Warn if using init_priority.
 echo $ac_n "checking whether to enable init_priority by default""... $ac_c" 1>&6
-echo "configure:6244: checking whether to enable init_priority by default" >&5
+echo "configure:6253: checking whether to enable init_priority by default" >&5
 if test x$enable_init_priority != xyes; then
   enable_init_priority=no
 fi
index fb689e3770c82269a143c7c63983ed049b38bf50..0a3250494f2814468a59a0aadb7d3bf9bb880712 100644 (file)
@@ -861,7 +861,7 @@ changequote([,])dnl
                install_headers_dir=install-headers-cpio
                use_collect2=yes
                ;;
-       hppa1.1-*-hpux10*)
+       hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
                target_cpu_default=1
                tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
                xm_file=pa/xm-pahpux.h
@@ -899,7 +899,7 @@ changequote([,])dnl
                install_headers_dir=install-headers-cpio
                use_collect2=yes
                ;;
-       hppa1.1-*-hpux*)
+       hppa1.1-*-hpux* | hppa2*-*-hpux*)
                target_cpu_default=1
                tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
                xm_file=pa/xm-pahpux.h
@@ -922,7 +922,7 @@ changequote([,])dnl
                install_headers_dir=install-headers-cpio
                use_collect2=yes
                ;;
-       hppa1.1-*-hiux*)
+       hppa1.1-*-hiux* | hppa2*-*-hiux*)
                target_cpu_default=1
                tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
                xm_file=pa/xm-pahpux.h
@@ -2281,6 +2281,15 @@ changequote([,])dnl
                fixincludes=fixinc.wrap
                tmake_file=t-netbsd
                ;;
+       mipsel-*-linux*)                        # Little endian Linux MIPS
+               xmake_file=x-linux
+               xm_file="xm-siglist.h ${xm_file}"
+               tm_file="mips/elfl.h mips/linux.h"
+               extra_parts="crtbegin.o crtend.o"
+               gnu_ld=yes
+               gas=yes
+               fixincludes=Makefile.in 
+               ;;
        mips-sony-bsd* | mips-sony-newsos*)     # Sony NEWS 3600 or risc/news.
                tm_file="mips/news4.h ${tm_file}"
                if test x$stabs = xyes; then
@@ -3418,7 +3427,7 @@ fi
 if test x$enable_haifa = x
 then
   case $target in
-    alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
+    alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
       enable_haifa=yes;;
   esac
 fi