]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
config.gcc: Reorganize handling of *-*-gnu*, to share target specific make details...
authorMark Kettenis <kettenis@gnu.org>
Thu, 7 Dec 2000 02:35:41 +0000 (02:35 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 7 Dec 2000 02:35:41 +0000 (19:35 -0700)
* config.gcc: Reorganize handling of *-*-gnu*, to share target
specific make details with Linux.  Update comments to clarify
        the distinction between GNU/Linux and GNU/Hurd.

From-SVN: r38093

gcc/ChangeLog
gcc/config.gcc

index 2da80c72b57cc49107d303bc0826567e41829cfb..b765085bb8572398f5179153d707a707a075cf47 100644 (file)
@@ -1,3 +1,9 @@
+2000-12-06  Mark Kettenis  <kettenis@gnu.org>
+
+       * config.gcc: Reorganize handling of *-*-gnu*, to share target
+       specific make details with Linux.  Update comments to clarify
+        the distinction between GNU/Linux and GNU/Hurd.
+
 Wed Dec  6 19:22:02 2000  Jeffrey A Law  (law@cygnus.com)
 
        * contrib.texi: Fix my email address.  Update Per's
@@ -823,9 +829,6 @@ Tue Dec  5 20:09:14 2000  Jeffrey A Law  (law@cygnus.com)
 
 2000-11-30  Mark Kettenis  <kettenis@gnu.org>
 
-       * configure.in: Reorganize handling of *-*-gnu*, to share target
-       specific make details with Linux.  Update comments to clarify
-        the distinction between GNU/Linux and GNU/Hurd.
        * config/t-gnu (LIBGCC1, CROSS_LIBGCC1, CRTSTUFF_T_CFLAGS,
        TARGET_LIBGCC2_CFLAGS): Remove.  We now use the settings from
        config/t-linux for the Hurd.
index 27cd0e904fae321cb1181012f44b50362db97c41..71be47c027441276333e60612798c782d3baa50c 100644 (file)
@@ -255,11 +255,28 @@ case $machine in
        ;;
 esac   
 
-# Common parts for linux and openbsd systems
+# Common parts for GNU/Linux, GNU/Hurd and OpenBSD systems.
 case $machine in
 *-*-linux*)
        xm_defines="HAVE_ATEXIT POSIX BSTRING"
        ;;
+*-*-gnu*)
+       # On the Hurd, the setup is just about the same on
+       # each different CPU.  The specific machines that we
+       # support are matched above and just set $cpu_type.
+       xm_file="xm-gnu.h ${xm_file}"
+       tm_file=${cpu_type}/gnu.h
+       extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
+       # GNU always uses ELF.
+       elf=yes
+       # GNU tools are the only tools.
+       gnu_ld=yes
+       gas=yes
+       # These details are the same as for Linux.
+       xmake_file=x-linux
+       # But here we need a little extra magic.
+       tmake_file="t-linux t-gnu"
+       ;;
 *-*-openbsd*)
        tm_file=${cpu_type}/openbsd.h
        tmake_file="t-libc-ok t-openbsd"
@@ -3231,23 +3248,6 @@ xscale-*-coff)
 esac
 
 case $machine in
-*-*-linux*)
-        ;; # Existing GNU/Linux systems do not use the GNU setup.
-*-*-gnu*)
-       # On the GNU system, the setup is just about the same on
-       # each different CPU.  The specific machines that GNU
-       # supports are matched above and just set $cpu_type.
-       xm_file="xm-gnu.h ${xm_file}"
-       tm_file=${cpu_type}/gnu.h
-       extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
-       # GNU always uses ELF.
-       elf=yes
-       # GNU tools are the only tools.
-       gnu_ld=yes
-       gas=yes
-       xmake_file=x-linux      # These details are the same as Linux.
-       tmake_file=t-gnu        # These are not.
-       ;;
 *-*-sysv4*)
        xmake_try_sysv=x-sysv
        install_headers_dir=install-headers-cpio