This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: cpp 2.96 20000325 and XFree86
- To: gcc at gcc dot gnu dot org, Mark Mitchell <mark at codesourcery dot com>
- Subject: Re: cpp 2.96 20000325 and XFree86
- From: Zack Weinberg <zack at wolery dot cumb dot org>
- Date: Mon, 27 Mar 2000 21:09:00 -0800
- References: <20000326184750.A17567@Jeffreys.suse.de>
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