[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gcc-3.1 patches for alpha-gnu target
From: |
Roland McGrath |
Subject: |
gcc-3.1 patches for alpha-gnu target |
Date: |
Thu, 16 May 2002 01:17:39 -0400 (EDT) |
I had been using the mainline of gcc cvs but lately it has been flakey.
So I don't recommend that for Hurd cross-compiling at this point. It's
safer to stick to gcc-3.1, which AFAIK is fine vanilla for i?86-gnu. These
patches to gcc-3.1 add the alpha-gnu target support (which will already be
included in gcc-3.2).
diff --exclude='*~' -Npru gcc-3.1.orig/gcc/config/alpha/gnu.h
gcc-3.1/gcc/config/alpha/gnu.h
--- gcc-3.1.orig/gcc/config/alpha/gnu.h Wed Dec 31 16:00:00 1969
+++ gcc-3.1/gcc/config/alpha/gnu.h Wed May 15 21:57:40 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__ -D__gnu_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
diff --exclude='*~' -Npru gcc-3.1.orig/gcc/config/gnu.h gcc-3.1/gcc/config/gnu.h
--- gcc-3.1.orig/gcc/config/gnu.h Wed Sep 15 14:41:13 1999
+++ gcc-3.1/gcc/config/gnu.h Wed May 15 21:45:23 2002
@@ -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. */
diff --exclude='*~' -Npru gcc-3.1.orig/gcc/config.gcc gcc-3.1/gcc/config.gcc
--- gcc-3.1.orig/gcc/config.gcc Thu May 2 14:28:49 2002
+++ gcc-3.1/gcc/config.gcc Wed May 15 21:45:35 2002
@@ -382,6 +382,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/att.h dbxelf.h elfos.h
svr4.h linux.h i386/linux.h gnu.h ${tm_file}"
;;
@@ -562,6 +565,10 @@ alpha*-*-linux*)
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"
target_cpu_default="MASK_GAS"
- gcc-3.1 patches for alpha-gnu target,
Roland McGrath <=