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 for `LL' warnings in insn-*.c


On Mon, Aug 05, 2002 at 12:06:40AM +0100, Joseph S. Myers wrote:
> On Wed, 24 Jul 2002, Zack Weinberg wrote:
> 
> > That particular warning comes from cpplib, which is not currently
> > aware of __extension__ since it treats each token in isolation.
> 
> That is something that needs fixing somehow, at least for the warning for
> imaginary constants, since at present the following (compiled with
> -std=c99 -pedantic on a glibc system) shows a regression between 3.1 and
> mainline (since <complex.h> uses __extension__ in the definition of I to
> avoid warnings).

This should be covered by the rule that warnings do not issue from the
use of a macro defined in a system header.  If that isn't currently
true, it will be much easier to fix the regression thus than by
teaching cpplib about __extension__, which would entail cpp knowing
the extent of "the expression which follows" - only the parser knows
that.

zw


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