aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
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-decl.c
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-decl.c')
-rw-r--r--gcc/c-decl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 61f8f69..854cd73 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -541,6 +541,7 @@ c_decode_option (argc, argv)
flag_no_nonansi_builtin = 1;
flag_noniso_default_format_attributes = 0;
flag_isoc99 = 0;
+ flag_iso = 1;
}
else if (!strcmp (argstart, "iso9899:199409"))
{
@@ -558,6 +559,7 @@ c_decode_option (argc, argv)
flag_noniso_default_format_attributes = 0;
flag_isoc99 = 1;
flag_isoc94 = 1;
+ flag_iso = 1;
}
else if (!strcmp (argstart, "gnu89"))
{
@@ -636,6 +638,8 @@ c_decode_option (argc, argv)
;
else if (!strcmp (p, "-ansi"))
goto iso_1990;
+ else if (!strcmp (p, "-undef"))
+ flag_undef = 1;
else if (!strcmp (p, "-Werror-implicit-function-declaration"))
mesg_implicit_function_declaration = 2;
else if (!strncmp (p, "-Wformat=", 9))