This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PING] Fix *-*-gnu* config
- To: gcc-patches at gcc dot gnu dot org
- Subject: [PING] Fix *-*-gnu* config
- From: Mark Kettenis <kettenis at science dot uva dot nl>
- Date: Sat, 26 May 2001 10:49:36 +0200 (MET DST)
A few weeks ago I sent a patch to fix the *-*-gnu* config:
http://gcc.gnu.org/ml/gcc-patches/2001-05/msg00383.html
Unfortunately I didn't get a reaction :-(.
Here's a newly generated patch fro the trunk. Could someone please
check this in.
In the meantime the new EH support has been moved to the branch too.
Therefore the change to config/i386/gnu.h is neccessary on the branch
too. That part should apply cleanly to the branch too, but I'm
willing to generate a seperate patch if that's necessary.
Mark
2001-05-26 Mark Kettenis <kettenis@gnu.org>
* config.gcc (*-*-gnu*): Set reasonable defaults here and move
tm_file overrides for i[34567]86-*-* and mips-*-* to ...
(i[34567]86-*-gnu*): ... here ...
(mips-*-gnu*): ... and here.
* config/i386/gnu.h (MD_FALLBACK_FRAME_STATE_FOR): Undefine.
Index: config.gcc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config.gcc,v
retrieving revision 1.63
diff -u -r1.63 config.gcc
--- config.gcc 2001/05/25 23:08:55 1.63
+++ config.gcc 2001/05/26 08:40:25
@@ -260,29 +260,17 @@
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.
+ # On the Hurd, the setup is supposed to be about the same on
+ # each different CPU.
xm_defines=POSIX
- 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.
+ # 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-slibgcc-elf-ver 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 crtbeginS.o crtend.o crtendS.o"
;;
*-*-openbsd*)
tm_file=${cpu_type}/openbsd.h
@@ -1123,6 +1111,7 @@
fi
;;
i[34567]86-*-gnu*)
+ tm_file="i386/i386.h i386/att.h linux.h i386/linux.h gnu.h i386/gnu.h"
float_format=i386
;;
i[34567]86-go32-msdos | i[34567]86-*-go32*)
@@ -2393,6 +2382,7 @@
fi
;;
mips-*-gnu*)
+ tm_file=mips/gnu.h
;;
mipsel-*-ecoff*)
tm_file=mips/ecoffl.h
Index: config/i386/gnu.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/gnu.h,v
retrieving revision 1.10
diff -u -r1.10 gnu.h
--- config/i386/gnu.h 2001/01/09 22:10:53 1.10
+++ config/i386/gnu.h 2001/05/26 08:40:25
@@ -30,3 +30,6 @@
%{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}} \
%{static:crt0.o%s}} \
crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
+
+/* FIXME: Is a Hurd-specific fallback mechanism necessary? */
+#undef MD_FALLBACK_FRAME_STATE_FOR