This is the mail archive of the gcc@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]

Re: cpp 2.96 20000325 and XFree86


On Sun, Mar 26, 2000 at 06:47:50PM +0200, Philipp Thomas wrote:
> 
> Zack,
> 
> it's impossible to compile XFree86 with the cpp from current CVS sources.
> One of the hurdles is, that the imake configury contains at various places
> constructs like 
> 
> #ifndef foo
> #define foo  /**/
> #endif
> 
> 'cpp -traditional' from 2.95.2 swallows this, 'cpp -traditional' from
> current cvs gives an error " `##' at end of macro definition" and even if
> you make this a comment,  as also present in some of the imake config files,
> like
> 
> #ifndef foo
> #define foo  /* as nothing */
> #endif
> 

Yup, that's a bug.  The new macro parser is too eager to issue error messages.
Same bug as the "`#' not followed by a macro name" error in object-like macros.

I'll try to get this patched in the next couple of days.  I was on vacation all
last week, just got back an hour ago - please be patient.

zw

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