From c3bf3e6eba663670b5cc64df7374607bfa474e71 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Thu, 9 May 2002 17:14:22 +0000 Subject: 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 --- gcc/cpplib.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gcc/cpplib.c') 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; -- cgit v1.1