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


>  > From: Richard Earnshaw
>  > 
>  > Rather than doing all that, which makes the code unnecessarily ugly
>  > and complicated, can't we just shut the compiler up by including
>  > ansidecl.h and marking the line __extension__?  After all, we know
>  > that in this case we are using an extension and that it is safe.
> 
> Unfortunately that doesn't work.  E.g. try compiling the following
> using gcc-3.2 -Wtraditional.  You still get the warnings.

Oh dear.
> 
> It is arguably a bug in so far as we expect __extension__ to silence
> -Wtraditional, nevertheless it is not currently a viable solution.

Indeed, there should be a PR filed for it if it isn't likely to be fixed 
as a result of this discussion.

R.




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