diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2001-02-25 09:43:03 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-02-25 09:43:03 +0000 |
commit | 618cdda7f07c46b4e6e76ed1c0947cc9bf6a77f1 (patch) | |
tree | 9b8fa1374187361bdd59562c00a312f85f75d707 /gcc/cpplib.h | |
parent | f5500e44c001be600e34e1191445a8e704b58c82 (diff) | |
download | gcc-618cdda7f07c46b4e6e76ed1c0947cc9bf6a77f1.tar.gz |
cppinit.c (builtin_array): Update.
* 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.
From-SVN: r40053
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r-- | gcc/cpplib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h index 2b7a99da6ce..099379285a7 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -444,6 +444,7 @@ enum cpp_buffer_type {BUF_FAKE, BUF_FILE, BUF_BUILTIN, #define NODE_POISONED (1 << 1) /* Poisoned identifier. */ #define NODE_BUILTIN (1 << 2) /* Builtin macro. */ #define NODE_DIAGNOSTIC (1 << 3) /* Possible diagnostic when lexed. */ +#define NODE_WARN (1 << 4) /* Warn if redefined or undefined. */ /* Different flavors of hash node. */ enum node_type |