aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.h
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2002-05-09 22:48:36 +0000
committerNeil Booth <neil@gcc.gnu.org>2002-05-09 22:48:36 +0000
commit3df892916c733cfa42ffa9eaaab1c115ebfe45ce (patch)
tree8450e93598f1089a0cde24353bf2a3ffbbdee87e /gcc/c-common.h
parent32fa4565a7d89525a0577f2bffed598f1d1d9194 (diff)
downloadgcc-3df892916c733cfa42ffa9eaaab1c115ebfe45ce.zip
gcc-3df892916c733cfa42ffa9eaaab1c115ebfe45ce.tar.gz
gcc-3df892916c733cfa42ffa9eaaab1c115ebfe45ce.tar.bz2
Makefile.in: Update.
* Makefile.in: Update. * c-common.c (flag_iso, flag_undef, cb_register_builtins, builtin_define_std): New. (c_common_init): Register CPP builtins callback. * c-common.h (flag_iso, flag_undef): New. * c-decl.c (c_decode_option): Set flag_iso and flag_undef. * c-lex.c: Don't include target.h. (cb_register_builtins): Move to c-common.c. (init_c_lex): Don't register hook here. * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New. (cpp_define, cpp_assert): Remove. * gcc.c (cc1_options): Pass -undef to front end. * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove. (TARGET_INITIALIZER): Update. * target.h (struct cpp_reader): Don't predeclare. (struct gcc_target): Remove cpp builtin hook. * tree.c (default_register_cpp_builtins): Remove. cp: * cp-tree.h (flag_ansi): Remove. * decl2.c (flag_ansi): Remove. (cxx_decode_option): Set flag_iso and flag_undef. doc: * tm.texi: Update. From-SVN: r53349
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r--gcc/c-common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h
index eca6cf1..7c5c30d 100644
--- a/gcc/c-common.h
+++ b/gcc/c-common.h
@@ -378,6 +378,14 @@ extern c_language_kind c_language;
/* Nonzero if prepreprocessing only. */
extern int flag_preprocess_only;
+/* Nonzero if an ISO standard was selected. It rejects macros in the
+ user's namespace. */
+extern int flag_iso;
+
+/* Nonzero if -undef was given. It suppresses target built-in macros
+ and assertions. */
+extern int flag_undef;
+
/* Nonzero means give string constants the type `const char *', rather
than `char *'. */