diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-04 20:15:00 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-04 20:15:00 +0000 |
commit | 9a85d74bf1eccd35410ac36138d185ea9698d389 (patch) | |
tree | a2449890a6a273739539cb635907054553cde2bb /gcc/c-lex.h | |
parent | 40855b3039fe63b317142ae2cdb591b4fef02d95 (diff) | |
download | gcc-9a85d74bf1eccd35410ac36138d185ea9698d389.tar.gz |
* Makefile.in (c-lex.o): Update.
* c-lex.c: Include target.h.
(cb_register_builtins): New.
(init_c_lex): Set builtins callback.
* c-lex.h (cpp_define, cpp_assert): New prototypes.
* cppinit.c (init_builtins): Use callback, including for
GXX_WEAK.
* cpplib.h (struct cpp_callbacks): New member.
* target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
(TARGET_INITIALIZER): Update.
* target.h (struct gcc_target): New hook.
* tree.c (default_register_cpp_builtins): New.
* tree.h (default_register_cpp_builtins): New.
doc:
* tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53165 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-lex.h')
-rw-r--r-- | gcc/c-lex.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c-lex.h b/gcc/c-lex.h index fed695d3394..7821ab90ee1 100644 --- a/gcc/c-lex.h +++ b/gcc/c-lex.h @@ -34,5 +34,9 @@ extern int indent_level; struct cpp_reader; extern struct cpp_reader* parse_in; +/* Copied from cpplib.h to avoid target code having to pull in all of + cpplib.h. */ +extern void cpp_define PARAMS ((struct cpp_reader *, const char *)); +extern void cpp_assert PARAMS ((struct cpp_reader *, const char *)); #endif /* ! GCC_C_LEX_H */ |