This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Update Hurd config
- To: gcc-patches at gcc dot gnu dot org
- Subject: Update Hurd config
- From: Mark Kettenis <kettenis at wins dot uva dot nl>
- Date: Tue, 6 Mar 2001 13:26:52 +0100
This patch fixes some fall-out from David O'Briens 2001-01-09 config
"cleanup". In retrospect, I cannot say I'm too happy with his
changes, since they caused Richard Henderson to overlook the Hurd in
adding i386/i386afe.h for the Hurd. In addition, his changes to
config/mips/gnu.h weren't applied (not that that really matters since
I don't think its possible to build the Hurd on MIPS nowadays).
Patches are against the 3.0 branch, but please also apply them to
mainline.
Thanks,
Mark
2001-03-06 Mark Kettenis <kettenis@gnu.org>
* config.gcc (*-*-gnu*): Don't set tm_file here. Reorganize
things a bit and remove CPU-specific bits here. Remove spurious
setting of elf.
(i[34567]86-*-gnu*): Set tm_file. Include i386/i386afe.h.
(mips*-gnu*): Set tm_file.
Index: config.gcc
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config.gcc,v
retrieving revision 1.27.2.1
diff -u -p -r1.27.2.1 config.gcc
--- config.gcc 2001/02/19 17:10:42 1.27.2.1
+++ config.gcc 2001/03/06 12:01:50
@@ -261,29 +261,17 @@ case $machine in
xm_defines="POSIX"
;;
*-*-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.
+ # On the Hurd, the setup is supposed to be about the same on
+ # each different CPU.
+ xm_file="${xm_file} xm-gnu.h"
+ # We use GNU tools of course.
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"
- case $machine in
- i[34567]86-*-*)
- tm_file="${cpu_type}/${cpu_type}.h i386/att.h linux.h i386/linux.h gnu.h ${tm_file}"
- ;;
- mips*-*-*)
- tm_file="svr4.h ${cpu_type}/${cpu_type}.h ${tm_file}"
- ;;
- esac
+ extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
;;
*-*-openbsd*)
tm_file=${cpu_type}/openbsd.h
@@ -1204,6 +1192,7 @@ i[34567]86-*-linux*) # Intel 80386's run
fi
;;
i[34567]86-*-gnu*)
+ tm_file="i386/i386.h i386/att.h linux.h i386/i386afe.h i386/linux.h gnu.h i386/gnu.h"
float_format=i386
;;
i[34567]86-go32-msdos | i[34567]86-*-go32*)
@@ -2577,6 +2566,7 @@ mips-*-riscos[56789]*) # Default MIPS R
fi
;;
mips-*-gnu*)
+ tm_file=mips/gnu.h
;;
mipsel-*-ecoff*)
tm_file=mips/ecoffl.h