This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: 4 GCC regressions, 1 new, with your patch on 2003-09-14T12:36:53Z.
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 15 Sep 2003 22:42:35 +0100
- Subject: Re: 4 GCC regressions, 1 new, with your patch on 2003-09-14T12:36:53Z.
- References: <200309142035.h8EKZu7V025691@gcc-regress.apple.com> <816FCE4E-E702-11D7-900E-000393A6D2F2@physics.uc.edu> <orfzixbz4t.fsf@free.redhat.lsd.ic.unicamp.br>
Alexandre Oliva wrote:-
> > The problem is that the line number is wrong:
> > /Users/regress/tbox/cvs-gcc/gcc/gcc/testsuite/gcc.dg/pragma-darwin.c:0:
> > warning: malformed '#pragma options', ignoring^M
>
> No wonder, as the caller simply tells the callee to ignore it.
>
> Here's a patch that fixes it.
>
> I've tested it with the following test file and -Wunknown-pragmas,
> with and without -save-temps. All warning messages came out at the
> right spot, and so did the pragmas in the preprocessed output.
If a diagnostic for _Pragma( "foo" ) with -Wunknown-pragmas comes out
on the right line, OK.
Neil.