From 3d90d2908e9a7ae8fbad9f248bb5517e74139e3b Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sat, 4 May 2002 20:15:00 +0000 Subject: Makefile.in (c-lex.o): Update. * 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. From-SVN: r53165 --- gcc/target.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/target.h') diff --git a/gcc/target.h b/gcc/target.h index 1f29412..a21c512 100644 --- a/gcc/target.h +++ b/gcc/target.h @@ -44,6 +44,8 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. to gradually reduce the amount of conditional compilation that is scattered throughout GCC. */ +struct cpp_reader; + struct gcc_target { /* Functions that output assembler for the target. */ @@ -198,6 +200,8 @@ struct gcc_target can be inlined despite its machine attributes, false otherwise. */ bool (* function_attribute_inlinable_p) PARAMS ((tree fndecl)); + void (* register_cpp_builtins) PARAMS ((struct cpp_reader *)); + /* Return true if bitfields in RECORD_TYPE should follow the Microsoft Visual C++ bitfield layout rules. */ bool (* ms_bitfield_layout_p) PARAMS ((tree record_type)); -- cgit v1.1