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: 4 GCC regressions, 1 new, with your patch on 2003-09-14T12:36:53Z.


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.


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