egcs/gcc ChangeLog Makefile.in c-pragma.c c-pr ...

geoffk@egcs.cygnus.com geoffk@egcs.cygnus.com
Wed Sep 8 21:00:00 GMT 1999


CVSROOT:	/cvs/egcs
Module name:	egcs
Changes by:	geoffk@egcs.cygnus.com	99/09/08 21:00:38

Modified files:
	gcc            : ChangeLog Makefile.in c-pragma.c c-pragma.h 
	                 cccp.c cpp.texi cppexp.c cpphash.c cpplib.c 
	                 cpplib.h 
	gcc/testsuite/gcc.c-torture: ChangeLog 
	gcc/testsuite/gcc.c-torture/noncompile: noncompile.exp 
Added files:
	gcc/testsuite/gcc.c-torture/noncompile: poison-1.c 

Log message:
	* 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.



More information about the Gcc-cvs mailing list