bug-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GCC 3.0, printf and macros.


From: Helmut Zeisel
Subject: Re: GCC 3.0, printf and macros.
Date: 16 Jul 2001 05:55:11 -0700

address@hidden (Gabriel Dos Reis) wrote in message news:<address@hidden>...
> address@hidden (Helmut Zeisel) writes:
> 
> | It seems that GCC implements "printf" as macro,
> 
> This is not a GCC-specific problem.  GCC merely uses the C-library
> fournished by your system.
> 
> | nm.c and info.c have an #ifdef between the parameters of printf,
> | which is not allowed for macro parameters.
> | A workaround is easy (just put the #ifdef
> | around the printf), but either the printf-implementation of GCC 3.0 or
> | the
> | respective sources should be changed.
> 
> On what basis? 
> 

Let me summarize:
Compiling binutil and texinfo using GCC 3.0 gives an error on my system.

a) This cannot be reproduced on other systems -
   than probably my system has a configuration problem and has to be changed.
b) The same problem occurs on other platforms, too.
   b1) binutil/nm.c and texinfo/info.c are ANSI C conform -
       then GCC has to be changed.
   b2) binutil/nm.c and texinfo/info.c are not ANSI C conform -
       then nm.c and info.c have to be changed.

I do not know what really is the case,
but maybe someone can help me to decide whether it is a) or b).

Helmut



reply via email to

[Prev in Thread] Current Thread [Next in Thread]