diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2002-05-09 17:14:22 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2002-05-09 17:14:22 +0000 |
commit | c3bf3e6eba663670b5cc64df7374607bfa474e71 (patch) | |
tree | 01f729c62216201f8c59feee2235f99cff88f964 /gcc/cpplib.c | |
parent | 2cb008afaa3d246ca7fe8c72e89f0198a836e7a8 (diff) | |
download | gcc-c3bf3e6eba663670b5cc64df7374607bfa474e71.zip gcc-c3bf3e6eba663670b5cc64df7374607bfa474e71.tar.gz gcc-c3bf3e6eba663670b5cc64df7374607bfa474e71.tar.bz2 |
cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
* cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
* cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
doc:
* cpp.texi: Update for removal of obsolete features.
testsuite:
* gcc.dg/cpp/poison.c: Update.
* gcc.dg/cpp/20000625-2.c: Remove.
* gcc.dg/cpp/direct2s.c: Remove final test.
From-SVN: r53333
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r-- | gcc/cpplib.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c index c90224c..2773ed9 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -1049,7 +1049,6 @@ _cpp_init_internal_pragmas (pfile) cpp_reader *pfile; { /* Pragmas in the global namespace. */ - cpp_register_pragma (pfile, 0, "poison", do_pragma_poison); cpp_register_pragma (pfile, 0, "once", do_pragma_once); /* New GCC-specific pragmas should be put in the GCC namespace. */ @@ -1122,8 +1121,8 @@ do_pragma_once (pfile) check_eol (pfile); } -/* Handle #pragma poison, to poison one or more identifiers so that - the lexer produces a hard error for each subsequent usage. */ +/* Handle #pragma GCC poison, to poison one or more identifiers so + that the lexer produces a hard error for each subsequent usage. */ static void do_pragma_poison (pfile) cpp_reader *pfile; |