This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch for `LL' warnings in insn-*.c
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Cc: Richard dot Earnshaw at arm dot com, gcc-patches at gcc dot gnu dot org
- Date: Wed, 24 Jul 2002 09:46:45 +0100
- Subject: Re: Patch for `LL' warnings in insn-*.c
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> > 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.