alpha*-*-gnu* target configuration
Roland McGrath
roland@frob.com
Sat Apr 13 13:22:00 GMT 2002
These patches add support for the alpha*-*-gnu* target configuration.
This should not affect any other target or configuration. There is no
working Alpha GNU/Hurd system yet, so a bootstrap test is not possible.
Thanks,
Roland
2002-04-13 Roland McGrath <roland@frob.com>
* config.gcc (alpha*-*-gnu*): New target configuration.
* config/alpha/gnu.h: New file for it.
* config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
Index: gcc/config.gcc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config.gcc,v
retrieving revision 1.184
diff -p -u -r1.184 config.gcc
--- gcc/config.gcc 12 Apr 2002 23:02:40 -0000 1.184
+++ gcc/config.gcc 13 Apr 2002 20:09:48 -0000
@@ -308,6 +308,9 @@ case $machine in
# But here we need a little extra magic.
tmake_file="t-slibgcc-elf-ver t-linux t-gnu"
case $machine in
+ alpha*)
+ tm_file="${cpu_type}/${cpu_type}.h alpha/elf.h alpha/linux.h alpha/linux-elf.h gnu.h ${tm_file}"
+ ;;
i[34567]86-*-*)
tm_file="${cpu_type}/${cpu_type}.h i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h gnu.h ${tm_file}"
;;
@@ -484,6 +487,10 @@ alpha*-*-linux*)
if test x$enable_threads = xyes; then
thread_file='posix'
fi
+ ;;
+alpha*-*-gnu*)
+ target_cpu_default="MASK_GAS"
+ tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
;;
alpha*-*-freebsd*)
tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
Index: gcc/config/gnu.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/gnu.h,v
retrieving revision 1.3
diff -p -u -r1.3 gnu.h
--- gcc/config/gnu.h 15 Sep 1999 21:41:13 -0000 1.3
+++ gcc/config/gnu.h 13 Apr 2002 20:09:48 -0000
@@ -13,6 +13,7 @@
#define STANDARD_INCLUDE_DIR "/include"
/* Implicit library calls should use memcpy, not bcopy, etc. */
+#undef TARGET_MEM_FUNCTIONS
#define TARGET_MEM_FUNCTIONS
/* The system headers under GNU are C++-aware. */
--- /dev/null Thu Aug 30 13:30:55 2001
+++ gcc/config/alpha/gnu.h Sat Apr 13 13:20:35 2002
@@ -0,0 +1,23 @@
+/* Configuration for an Alpha running GNU with ELF as the target machine. */
+
+#undef TARGET_VERSION
+#define TARGET_VERSION fprintf (stderr, " (Alpha GNU)");
+
+#undef CPP_PREDEFINES
+#define CPP_PREDEFINES \
+"-D__GNU__ -Dgnu_hurd -Dunix -Asystem=gnu -D_LONGLONG -D__alpha__ -D__ELF__"
+
+#undef ELF_DYNAMIC_LINKER
+#define ELF_DYNAMIC_LINKER "/lib/ld.so"
+
+#undef STARTFILE_SPEC
+#define STARTFILE_SPEC \
+ "%{!shared: \
+ %{!static: \
+ %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}} \
+ %{static:crt0.o%s}} \
+ crti.o%s \
+ %{!static:%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}"
+
+/* FIXME: Is a Hurd-specific fallback mechanism necessary? */
+#undef MD_FALLBACK_FRAME_STATE_FOR
More information about the Gcc-patches
mailing list