]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
osf.h (HAVE_STAMP_H): Define.
authorRichard Henderson <rth@gcc.gnu.org>
Sat, 16 May 1998 23:24:20 +0000 (16:24 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Sat, 16 May 1998 23:24:20 +0000 (16:24 -0700)
        * alpha/osf.h (HAVE_STAMP_H): Define.
        * alpha.c: Use it.
        * alpha/netbsd.h, alpha/netbsd-elf.h: New files.
        * configure.in (alpha*-*-netbsd*): New.
        Based on patches from Paul H. Anderson <pha@pdq.com>.
        * configure.in (alpha*-*-linux-*): Kill xm_defines.
        (alpha*-*-linux-gnulibc1*) [fixincludes]: Define.
        * alpha/xm-linux.h: Remove file.

From-SVN: r19809

gcc/config/alpha/alpha.c
gcc/config/alpha/netbsd-elf.h [new file with mode: 0644]
gcc/config/alpha/netbsd.h [new file with mode: 0644]
gcc/config/alpha/osf.h
gcc/config/alpha/xm-linux.h [deleted file]
gcc/configure
gcc/configure.in

index 45e725dcaa401b600ad592615b6f545c93e39e89..625f3daa8ba1a607534069c2403571e44e0bfc99 100644 (file)
@@ -3061,7 +3061,7 @@ direct_return ()
 /* Write a version stamp.  Don't write anything if we are running as a
    cross-compiler.  Otherwise, use the versions in /usr/include/stamp.h.  */
 
-#if !defined(CROSS_COMPILE) && !defined(_WIN32) && !defined(__linux__) && !defined(VMS)
+#ifdef HAVE_STAMP_H
 #include <stamp.h>
 #endif
 
diff --git a/gcc/config/alpha/netbsd-elf.h b/gcc/config/alpha/netbsd-elf.h
new file mode 100644 (file)
index 0000000..353e62f
--- /dev/null
@@ -0,0 +1,27 @@
+/* Definitions of target machine for GNU compiler
+   for Alpha NetBSD systems using ELF.
+   Copyright (C) 1998 Free Software Foundation, Inc.
+
+This file is part of GNU CC.
+
+GNU CC is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU CC is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU CC; see the file COPYING.  If not, write to
+the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
+
+#undef TARGET_VERSION
+#define TARGET_VERSION fprintf (stderr, " (Alpha NetBSD/ELF)");
+
+#undef SUB_CPP_PREDEFINES
+#define SUB_CPP_PREDEFINES "-D__ELF__"
+
+#define ELF_DYNAMIC_LINKER  "/usr/libexec/ld.elf_so"
diff --git a/gcc/config/alpha/netbsd.h b/gcc/config/alpha/netbsd.h
new file mode 100644 (file)
index 0000000..56559f3
--- /dev/null
@@ -0,0 +1,40 @@
+/* Definitions of target machine for GNU compiler,
+   for Alpha NetBSD systems.
+   Copyright (C) 1998 Free Software Foundation, Inc.
+
+This file is part of GNU CC.
+
+GNU CC is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU CC is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU CC; see the file COPYING.  If not, write to
+the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
+
+#undef TARGET_DEFAULT
+#define TARGET_DEFAULT (MASK_FP | MASK_FPREGS | MASK_GAS)
+
+#undef CPP_PREDEFINES
+#define CPP_PREDEFINES "\
+-D__alpha -D__alpha__ -D__linux__ -D__linux -D_LONGLONG -Dnetbsd -Dunix \
+-Asystem(linux) -Acpu(alpha) -Amachine(alpha) " SUB_CPP_PREDEFINES
+
+#undef LIB_SPEC
+#define LIB_SPEC "%{pg:-lgmon} %{pg:-lc_p} %{!pg:-lc}"
+
+/* Generate calls to memcpy, etc., not bcopy, etc. */
+#define TARGET_MEM_FUNCTIONS
+
+#undef FUNCTION_PROFILER
+#define FUNCTION_PROFILER(FILE, LABELNO)                       \
+       fputs ("\tlda $28,_mcount\n\tjsr $28,($28),_mcount\n", (FILE))
+
+/* Show that we need a GP when profiling.  */
+#define TARGET_PROFILING_NEEDS_GP
index ae4170d25e3cd784db06a25dd215ad79ec9791e9..0af169cc74b0c9348d07d50a021b1884ac0fea2a 100644 (file)
@@ -103,3 +103,8 @@ Boston, MA 02111-1307, USA.  */
                %{.s:%i} %{!.s:%g.s}}}"
 
 #endif
+
+/* Indicate that we have a stamp.h to use.  */
+#ifndef CROSS_COMPILE
+#define HAVE_STAMP_H 1
+#endif
diff --git a/gcc/config/alpha/xm-linux.h b/gcc/config/alpha/xm-linux.h
deleted file mode 100644 (file)
index b85269b..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-#undef USE_BFD
-#define USE_BFD
index 426d1e5efe1d9bba798c81165118c441590d1456..37b499cf425fcdbf115cf35e47528f3ecd1121ee 100755 (executable)
@@ -2191,18 +2191,17 @@ for machine in $build $host $target; do
                ;;
        alpha*-*-linux-gnuecoff*)
                tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
-               xm_defines=USE_BFD
                target_cpu_default="MASK_GAS"
                gas=no
                xmake_file=none
                gas=yes gnu_ld=yes
                ;;
        alpha*-*-linux-gnulibc1*)
-               tm_file="${tm_file} alpha/elf.h alpha/linux-elf.h alpha/linux.h"
-               xm_defines=USE_BFD
+               tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
                target_cpu_default="MASK_GAS"
                tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
                extra_parts="crtbegin.o crtend.o"
+               fixincludes=fixinc.wrap
                xmake_file=none
                gas=yes gnu_ld=yes
                if [ x$enable_threads = xyes ]; then
@@ -2210,8 +2209,7 @@ for machine in $build $host $target; do
                fi
                ;;
        alpha*-*-linux-gnu*)
-               tm_file="${tm_file} alpha/elf.h alpha/linux-elf.h alpha/linux.h"
-               xm_defines=USE_BFD
+               tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
                target_cpu_default="MASK_GAS"
                tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
                extra_parts="crtbegin.o crtend.o"
@@ -2222,6 +2220,16 @@ for machine in $build $host $target; do
                        thread_file='posix'
                fi
                ;;
+       alpha*-*-netbsd*)
+               tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
+               target_cpu_default="MASK_GAS"
+               tmake_file="alpha/t-crtbe"
+               extra_parts="crtbegin.o crtend.o"
+               xmake_file=none
+               fixincludes=fixinc.wrap
+               gas=yes gnu_ld=yes
+               ;;
+               
        alpha*-dec-osf*)
                if [ x$stabs = xyes ]
                then
index 82cef5a9d50a332024119aceca2ab5e8ed2a0cce..d8bc744e63466c10db48ac8dea323a88ed8a7c1a 100644 (file)
@@ -347,18 +347,17 @@ for machine in $build $host $target; do
                ;;
        alpha*-*-linux-gnuecoff*)
                tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
-               xm_defines=USE_BFD
                target_cpu_default="MASK_GAS"
                gas=no
                xmake_file=none
                gas=yes gnu_ld=yes
                ;;
        alpha*-*-linux-gnulibc1*)
-               tm_file="${tm_file} alpha/elf.h alpha/linux-elf.h alpha/linux.h"
-               xm_defines=USE_BFD
+               tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
                target_cpu_default="MASK_GAS"
                tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
                extra_parts="crtbegin.o crtend.o"
+               fixincludes=fixinc.wrap
                xmake_file=none
                gas=yes gnu_ld=yes
                if [[ x$enable_threads = xyes ]]; then
@@ -366,8 +365,7 @@ for machine in $build $host $target; do
                fi
                ;;
        alpha*-*-linux-gnu*)
-               tm_file="${tm_file} alpha/elf.h alpha/linux-elf.h alpha/linux.h"
-               xm_defines=USE_BFD
+               tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
                target_cpu_default="MASK_GAS"
                tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
                extra_parts="crtbegin.o crtend.o"
@@ -378,6 +376,16 @@ for machine in $build $host $target; do
                        thread_file='posix'
                fi
                ;;
+       alpha*-*-netbsd*)
+               tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
+               target_cpu_default="MASK_GAS"
+               tmake_file="alpha/t-crtbe"
+               extra_parts="crtbegin.o crtend.o"
+               xmake_file=none
+               fixincludes=fixinc.wrap
+               gas=yes gnu_ld=yes
+               ;;
+               
        alpha*-dec-osf*)
                if [[ x$stabs = xyes ]]
                then