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]

Re: [PATCH/RFA] Add -CC option to cpplib to save comments in macros


Jason R Thorpe wrote:-

>  > and
>  > 
>  > #define/**/x
> 
> This produces:
> 
> neil.c:3:8: macro names must be identifiers
> 
> Should I turn the comment into whitespace in this case?  Looks like a
> simple change to cpplib.c:lex_macro_node().

b.t.w. just check that after solving this error message, that you don't
get a diagnostic about "must be space before macro name" or somesuch
with -pedantic.

Neil.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]