Commit 9d654bba by Richard Henderson

osf.h (HAVE_STAMP_H): Define.

        * 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
parent 620422fd
...@@ -3061,7 +3061,7 @@ direct_return () ...@@ -3061,7 +3061,7 @@ direct_return ()
/* Write a version stamp. Don't write anything if we are running as a /* 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. */ 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> #include <stamp.h>
#endif #endif
......
/* 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"
/* 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
...@@ -103,3 +103,8 @@ Boston, MA 02111-1307, USA. */ ...@@ -103,3 +103,8 @@ Boston, MA 02111-1307, USA. */
%{.s:%i} %{!.s:%g.s}}}" %{.s:%i} %{!.s:%g.s}}}"
#endif #endif
/* Indicate that we have a stamp.h to use. */
#ifndef CROSS_COMPILE
#define HAVE_STAMP_H 1
#endif
#undef USE_BFD
#define USE_BFD
...@@ -2191,18 +2191,17 @@ for machine in $build $host $target; do ...@@ -2191,18 +2191,17 @@ for machine in $build $host $target; do
;; ;;
alpha*-*-linux-gnuecoff*) alpha*-*-linux-gnuecoff*)
tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h" tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
xm_defines=USE_BFD
target_cpu_default="MASK_GAS" target_cpu_default="MASK_GAS"
gas=no gas=no
xmake_file=none xmake_file=none
gas=yes gnu_ld=yes gas=yes gnu_ld=yes
;; ;;
alpha*-*-linux-gnulibc1*) alpha*-*-linux-gnulibc1*)
tm_file="${tm_file} alpha/elf.h alpha/linux-elf.h alpha/linux.h" tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
xm_defines=USE_BFD
target_cpu_default="MASK_GAS" target_cpu_default="MASK_GAS"
tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe" tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
extra_parts="crtbegin.o crtend.o" extra_parts="crtbegin.o crtend.o"
fixincludes=fixinc.wrap
xmake_file=none xmake_file=none
gas=yes gnu_ld=yes gas=yes gnu_ld=yes
if [ x$enable_threads = xyes ]; then if [ x$enable_threads = xyes ]; then
...@@ -2210,8 +2209,7 @@ for machine in $build $host $target; do ...@@ -2210,8 +2209,7 @@ for machine in $build $host $target; do
fi fi
;; ;;
alpha*-*-linux-gnu*) alpha*-*-linux-gnu*)
tm_file="${tm_file} alpha/elf.h alpha/linux-elf.h alpha/linux.h" tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
xm_defines=USE_BFD
target_cpu_default="MASK_GAS" target_cpu_default="MASK_GAS"
tmake_file="t-linux alpha/t-linux alpha/t-crtbe" tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
extra_parts="crtbegin.o crtend.o" extra_parts="crtbegin.o crtend.o"
...@@ -2222,6 +2220,16 @@ for machine in $build $host $target; do ...@@ -2222,6 +2220,16 @@ for machine in $build $host $target; do
thread_file='posix' thread_file='posix'
fi 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*) alpha*-dec-osf*)
if [ x$stabs = xyes ] if [ x$stabs = xyes ]
then then
......
...@@ -347,18 +347,17 @@ for machine in $build $host $target; do ...@@ -347,18 +347,17 @@ for machine in $build $host $target; do
;; ;;
alpha*-*-linux-gnuecoff*) alpha*-*-linux-gnuecoff*)
tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h" tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
xm_defines=USE_BFD
target_cpu_default="MASK_GAS" target_cpu_default="MASK_GAS"
gas=no gas=no
xmake_file=none xmake_file=none
gas=yes gnu_ld=yes gas=yes gnu_ld=yes
;; ;;
alpha*-*-linux-gnulibc1*) alpha*-*-linux-gnulibc1*)
tm_file="${tm_file} alpha/elf.h alpha/linux-elf.h alpha/linux.h" tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
xm_defines=USE_BFD
target_cpu_default="MASK_GAS" target_cpu_default="MASK_GAS"
tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe" tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
extra_parts="crtbegin.o crtend.o" extra_parts="crtbegin.o crtend.o"
fixincludes=fixinc.wrap
xmake_file=none xmake_file=none
gas=yes gnu_ld=yes gas=yes gnu_ld=yes
if [[ x$enable_threads = xyes ]]; then if [[ x$enable_threads = xyes ]]; then
...@@ -366,8 +365,7 @@ for machine in $build $host $target; do ...@@ -366,8 +365,7 @@ for machine in $build $host $target; do
fi fi
;; ;;
alpha*-*-linux-gnu*) alpha*-*-linux-gnu*)
tm_file="${tm_file} alpha/elf.h alpha/linux-elf.h alpha/linux.h" tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
xm_defines=USE_BFD
target_cpu_default="MASK_GAS" target_cpu_default="MASK_GAS"
tmake_file="t-linux alpha/t-linux alpha/t-crtbe" tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
extra_parts="crtbegin.o crtend.o" extra_parts="crtbegin.o crtend.o"
...@@ -378,6 +376,16 @@ for machine in $build $host $target; do ...@@ -378,6 +376,16 @@ for machine in $build $host $target; do
thread_file='posix' thread_file='posix'
fi 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*) alpha*-dec-osf*)
if [[ x$stabs = xyes ]] if [[ x$stabs = xyes ]]
then then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment