aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRoland McGrath <roland@frob.com>2002-04-15 20:44:35 +0000
committerRichard Henderson <rth@gcc.gnu.org>2002-04-15 13:44:35 -0700
commit83248d496dd8156a42a0616e8536fb0d4d1af3d4 (patch)
treec04cc49cc7019ce3a2ffe699ab3cdc79537e87b3 /gcc
parenta2b3412ca32b783b514633637758d1d25b5dccf4 (diff)
downloadgcc-83248d496dd8156a42a0616e8536fb0d4d1af3d4.zip
gcc-83248d496dd8156a42a0616e8536fb0d4d1af3d4.tar.gz
gcc-83248d496dd8156a42a0616e8536fb0d4d1af3d4.tar.bz2
config.gcc (alpha*-*-gnu*): New target configuration.
* config.gcc (alpha*-*-gnu*): New target configuration. * config/alpha/gnu.h: New file for it. * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define. From-SVN: r52332
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config.gcc7
-rw-r--r--gcc/config/alpha/gnu.h23
-rw-r--r--gcc/config/gnu.h1
4 files changed, 37 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 16e7a14..826d2d6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2002-04-15 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.
+
2002-04-15 Richard Henderson <rth@redhat.com>
* config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 844e79b..ed7ac58 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -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}"
;;
@@ -485,6 +488,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"
diff --git a/gcc/config/alpha/gnu.h b/gcc/config/alpha/gnu.h
new file mode 100644
index 0000000..a29251a
--- /dev/null
+++ b/gcc/config/alpha/gnu.h
@@ -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
diff --git a/gcc/config/gnu.h b/gcc/config/gnu.h
index 1f4b93a..f5f4184 100644
--- a/gcc/config/gnu.h
+++ b/gcc/config/gnu.h
@@ -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. */