summaryrefslogtreecommitdiff
path: root/gcc/config/alpha/netbsd.h
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-13 05:57:38 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-13 05:57:38 +0000
commit36a259fdb7d7c3076fbee42b0294b345f266ee7d (patch)
tree037cab71bf6277cabf4229cda1dff41758365a63 /gcc/config/alpha/netbsd.h
parent2ff23ed0d9df8655567c127b8cea5d7c5439778c (diff)
downloadgcc-36a259fdb7d7c3076fbee42b0294b345f266ee7d.tar.gz
* Makefile.in (c-common.o, cppinit.o): Update.
* c-common.c: Include except.h. (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__. Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS. * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here. * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS, CPP_PREDEFINES): Handle here. config: * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h, alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h, alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define TARGET_OS_CPP_BUILTINS. * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define. (CPP_SPEC, EXTRA_SPECS): Update. (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC, CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC, CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC, CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC, CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove. doc: * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove. (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53410 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/alpha/netbsd.h')
-rw-r--r--gcc/config/alpha/netbsd.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/gcc/config/alpha/netbsd.h b/gcc/config/alpha/netbsd.h
index 508b71cdf55..9b0c2323972 100644
--- a/gcc/config/alpha/netbsd.h
+++ b/gcc/config/alpha/netbsd.h
@@ -22,10 +22,13 @@ Boston, MA 02111-1307, USA. */
#undef TARGET_DEFAULT
#define TARGET_DEFAULT (MASK_FP | MASK_FPREGS | MASK_GAS)
-#undef CPP_PREDEFINES
-#define CPP_PREDEFINES \
- "-D__NetBSD__ -D_LP64 -Asystem=unix -Asystem=NetBSD"
-
+#define TARGET_OS_CPP_BUILTINS() \
+ do { \
+ builtin_define ("__NetBSD__"); \
+ builtin_define ("_LP64"); \
+ builtin_assert ("system=unix"); \
+ builtin_assert ("system=NetBSD"); \
+ } while (0)
/* Show that we need a GP when profiling. */
#undef TARGET_PROFILING_NEEDS_GP