diff options
author | thorpej <thorpej@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-29 16:59:06 +0000 |
---|---|---|
committer | thorpej <thorpej@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-29 16:59:06 +0000 |
commit | c7f720281c47b4ec3dc405d4cb6c63b7a03ea8da (patch) | |
tree | 7eef892522e341b5226200c56fcf3e55840d29ea /gcc/config | |
parent | 61512c5442ccf60ad078d8af1569d69fcbf487f3 (diff) | |
download | gcc-c7f720281c47b4ec3dc405d4cb6c63b7a03ea8da.tar.gz |
* config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
(CPP_SUBTARGET_SPEC): Define.
(SUBTARGET_EXTRA_SPECS): Define.
(CPP_SPEC): Remove.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54005 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/alpha/netbsd.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/gcc/config/alpha/netbsd.h b/gcc/config/alpha/netbsd.h index 3f249eb36b8..76f5a442e14 100644 --- a/gcc/config/alpha/netbsd.h +++ b/gcc/config/alpha/netbsd.h @@ -24,10 +24,8 @@ Boston, MA 02111-1307, USA. */ #define TARGET_OS_CPP_BUILTINS() \ do { \ - builtin_define ("__NetBSD__"); \ - builtin_define ("_LP64"); \ - builtin_assert ("system=unix"); \ - builtin_assert ("system=NetBSD"); \ + NETBSD_OS_CPP_BUILTINS_ELF(); \ + NETBSD_OS_CPP_BUILTINS_LP64(); \ } while (0) /* Show that we need a GP when profiling. */ @@ -35,11 +33,16 @@ Boston, MA 02111-1307, USA. */ #define TARGET_PROFILING_NEEDS_GP 1 -/* Provide a CPP_SPEC appropriate for NetBSD/alpha. In addition to - the standard NetBSD specs, we also handle Alpha FP mode indications. */ +/* Provide a CPP_SUBTARGET_SPEC appropriate for NetBSD/alpha. We use + this to pull in CPP specs that all NetBSD configurations need. */ + +#undef CPP_SUBTARGET_SPEC +#define CPP_SUBTARGET_SPEC "%(netbsd_cpp_spec)" + +#undef SUBTARGET_EXTRA_SPECS +#define SUBTARGET_EXTRA_SPECS \ + { "netbsd_cpp_spec", NETBSD_CPP_SPEC }, -#undef CPP_SPEC -#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %(cpp_subtarget)" /* Provide a LINK_SPEC appropriate for a NetBSD/alpha ELF target. This is a copy of LINK_SPEC from <netbsd-elf.h> tweaked for |