diff options
author | Geoff Keating <geoffk@cygnus.com> | 1999-09-09 04:00:37 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 1999-09-09 04:00:37 +0000 |
commit | fc009f966c98317401b51127f59de4ad37bb7d19 (patch) | |
tree | adfb849ae0813b5bacab43fb7a7ab5ec23bc7fb6 /gcc/cpplib.h | |
parent | d60f72aec57414b8339eecb25c33b423af7e6946 (diff) | |
download | gcc-fc009f966c98317401b51127f59de4ad37bb7d19.zip gcc-fc009f966c98317401b51127f59de4ad37bb7d19.tar.gz gcc-fc009f966c98317401b51127f59de4ad37bb7d19.tar.bz2 |
Makefile.in (cppexp.o): Depend on cpphash.h.
* Makefile.in (cppexp.o): Depend on cpphash.h.
* cppexp.c (cpp_lex): Handle `defined (xxx)' for poisoned xxx.
Include cpphash.h.
* cpphash.c (special_symbol): Handle plain `xxx' for poisoned xxx.
* cpplib.c (do_define): Generalise to handle poisoned definitions,
redefining poisoned identifiers, etc.
(do_undef): Don't allow poisoned identifiers to be undefined.
(do_pragma): Add #pragma poison.
(do_xifdef): Handle `#ifdef xxx' for poisoned xxx.
* cccp.c: Add T_POISON node type.
(special_symbol): Handle `defined(xxx)' and plain `xxx' for
poisoned xxx.
(do_define): Generalise to handle poisoned definitions,
redefining poisoned identifiers, etc.
(do_undef): Don't allow poisoned identifiers to be undefined.
(do_pragma): Add #pragma poison.
(do_xifdef): Handle `#ifdef xxx' for poisoned xxx.
* c-pragma.c (handle_pragma_token): Ignore #pragma poison.
* c-pragma.h: Add ps_poison state. We now always have generic
pragmas.
From-SVN: r29224
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 619645f..daff0c6 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -600,6 +600,7 @@ enum node_type { T_MACRO, /* macro defined by `#define' */ T_DISABLED, /* macro temporarily turned off for rescan */ T_PCSTRING, /* precompiled string (hashval is KEYDEF *) */ + T_POISON, /* defined with `#pragma poison' */ T_UNUSED /* Used for something not defined. */ }; |