[patch, fortran] pr21061 - gfortran ignores -Werror
Janis Johnson
janis187@us.ibm.com
Tue Nov 7 00:16:00 GMT 2006
On Sun, Nov 05, 2006 at 03:58:44PM +0100, Bernhard Fischer wrote:
> On Sun, Nov 05, 2006 at 02:45:34PM +0100, Bernhard Fischer wrote:
> >
> >This works for me for
> >$ head -n 4 gcc/testsuite/gfortran.dg/warnings_are_errors_1.f
> >! { dg-do compile }
> >! { dg-options " -Werror" }
> >! { dg-final { output-exists-not } }
> >! PR fortran/21061
> >
> >but i take it there is a more elegant way to do this.
>
> Also there must be a better place to put this than into scanasm.exp.
> Suggestions?
>
> I'm applying the parts against the fortran FE as ACKed by Steve Kargl
> now. The testsuite snippet currently has no approval.
I updated your output-exists and output-exists-not a bit so that they
optionally handle target and xfail lists and checked them into trunk;
see http://gcc.gnu.org/ml/gcc-patches/2006-11/msg00374.html. They'll
be in the 4.2 and 4.1 branches soon.
The Fortran maintainers approve Fortran tests, but I'll point out that
dg-final directives are normally placed at the end of the test file.
Janis
More information about the Fortran
mailing list