From 3df892916c733cfa42ffa9eaaab1c115ebfe45ce Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Thu, 9 May 2002 22:48:36 +0000 Subject: 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 --- gcc/c-decl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/c-decl.c') 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)) -- cgit v1.1