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/c-pragma.h | |
parent | d60f72aec57414b8339eecb25c33b423af7e6946 (diff) | |
download | gcc-fc009f966c98317401b51127f59de4ad37bb7d19.tar.gz |
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/c-pragma.h')
-rw-r--r-- | gcc/c-pragma.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/c-pragma.h b/gcc/c-pragma.h index f94ee9fe6c5..bfe7c1fe50a 100644 --- a/gcc/c-pragma.h +++ b/gcc/c-pragma.h @@ -61,13 +61,12 @@ extern int add_weak PROTO((char *, char *)); #endif /* HANDLE_PRAGMA_WEAK */ -#if defined HANDLE_PRAGMA_PACK || defined HANDLE_PRAGMA_WEAK /* Define HANDLE_GENERIC_PRAGMAS if any kind of front-end pragma parsing is to be done. The code in GCC's generic C source files will only look for the definition of this constant. They will - ignore definitions of HANDLE_PRAGMA_PACK and so on. */ + ignore definitions of HANDLE_PRAGMA_PACK and so on. + With #pragma poison, this is always set. */ #define HANDLE_GENERIC_PRAGMAS 1 -#endif #ifdef HANDLE_GENERIC_PRAGMAS @@ -91,6 +90,7 @@ enum pragma_state ps_push, ps_pushcomma, ps_pushid, ps_pushcomma2, ps_pop, ps_popcomma, #endif + ps_poison, ps_bad }; |