diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-25 09:43:03 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-25 09:43:03 +0000 |
commit | 31ca26b1948f1df0f16f83053aea78680fea0965 (patch) | |
tree | 9b8fa1374187361bdd59562c00a312f85f75d707 /gcc/cpplib.c | |
parent | 5f55356392b4ab0c6f31ddb9b8b4aecb21aa86fc (diff) | |
download | gcc-31ca26b1948f1df0f16f83053aea78680fea0965.tar.gz |
* cppinit.c (builtin_array): Update.
(init_builtins): Flag builtins to warn if redefined or
undefined. Define __GXX_WEAK as a normal macro.
* cpplib.c (do_undef): Warn if flagged NODE_WARN.
* cpplib.h (NODE_WARN): New flag.
* cppmacro.c (builtin_macro): Remove handling of __GXX_WEAK__.
Handle __STDC__ as a builtin only on Solaris.
(warn_of_redefinition): Renamed from check_macro_definition.
Reverse sense of test. Always warn if NODE_WARN.
(_cpp_create_definition): Use warn_of_redefinition. Flag
any macro beginning with "__STDC_" to require a mandatory
warning if redefined or undefined.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40053 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r-- | gcc/cpplib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c index da6e39758b0..0ebd093f613 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -477,7 +477,7 @@ do_undef (pfile) if (pfile->cb.undef) (*pfile->cb.undef) (pfile, node); - if (node->flags & NODE_BUILTIN) + if (node->flags & NODE_WARN) cpp_warning (pfile, "undefining \"%s\"", node->name); _cpp_free_definition (node); |