This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Wed, Jan 02, 2002 at 03:33:36PM -0800, Jason R Thorpe wrote: > ...and after I sent the message, I realized I forgot to include the > cpp.texi change in the patch. ...and I missed one test case; need to discard comments in macros while parsing CPP expressions. Once again, an updated patch is attached, and here's an updated ChangeLog entry. [ for gcc/ChangeLog ] 2002-01-02 Jason Thorpe <thorpej@wasabisystems.com> * cppexp.c (CPP_ERROR): Abuse CPP_HEADER_NAME rather than CPP_COMMENT. (lex): Allow CPP_COMMENT as a valid token if discard_comments_in_macro_exp is false. (_cpp_parse_expr): Discard CPP_COMMENT tokens. * cppinit.c (cpp_create_reader): Initialize discard_comments_in_macro_exp. (COMMAND_LINE_OPTIONS): Add "-CC" option. (cpp_handle_option) Handle "-CC" option. * cpplib.c (_cpp_handle_directive): If processing a `#define' directive and discard_comments_in_macro_exp is false, re-enable saving of comments. * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp member. * doc/cpp.texi: Document the -CC option. -- -- Jason R. Thorpe <thorpej@wasabisystems.com>
Attachment:
JRT-patch3
Description: patch3
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |