diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-13 05:57:38 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-13 05:57:38 +0000 |
commit | 36a259fdb7d7c3076fbee42b0294b345f266ee7d (patch) | |
tree | 037cab71bf6277cabf4229cda1dff41758365a63 /gcc/doc | |
parent | 2ff23ed0d9df8655567c127b8cea5d7c5439778c (diff) | |
download | gcc-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/doc')
-rw-r--r-- | gcc/doc/tm.texi | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index f382796937a..36ccaebcd35 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -623,12 +623,15 @@ The macro @code{STANDARD_STARTFILE_PREFIX}. Here are run-time target specifications. @table @code -@findex TARGET_REGISTER_CPP_BUILTINS -@item TARGET_REGISTER_CPP_BUILTINS -This macro expands to a block of code that defines target-specific -built-in preprocessor macros and assertions, using the functions -@code{builtin_macro}, @code{builtin_macro_std} and -@code{builtin_assert} declared in @file{c-lex.h}. +@findex TARGET_CPU_CPP_BUILTINS +@item TARGET_CPU_CPP_BUILTINS() +This function-like macro expands to a block of code that defines +built-in preprocessor macros and assertions for the target cpu, using +the functions @code{builtin_macro}, @code{builtin_macro_std} and +@code{builtin_assert} declared in @file{c-lex.h}. When the front end +calls this macro it provides a trailing semicolon, and since it has +finished command line option processing your code can use those +results freely. @code{builtin_assert} takes a string in the form you pass to the command-line option @option{-A}, such as @code{cpu=mips}, and creates @@ -646,7 +649,16 @@ and possibly @code{unix}; passing @code{_mips} defines @code{__mips}, @code{__mips__} and possibly @code{_mips}, and passing @code{_ABI64} defines only @code{_ABI64}. -This macro obsoletes the @code{CPP_PREDEFINES} target macro. +With @code{TARGET_OS_CPP_BUILTINS} this macro obsoletes the +@code{CPP_PREDEFINES} target macro. + +@findex TARGET_OS_CPP_BUILTINS +@item TARGET_OS_CPP_BUILTINS() +Similarly to @code{TARGET_CPU_CPP_BUILTINS} but this macro is optional +and is used for the target operating system instead. + +With @code{TARGET_CPU_CPP_BUILTINS} this macro obsoletes the +@code{CPP_PREDEFINES} target macro. @findex CPP_PREDEFINES @item CPP_PREDEFINES |