Message ID | ydd1v4fl6n1.fsf@manam.CeBiTec.Uni-Bielefeld.DE |
---|---|
State | New |
Headers | show |
Rainer Orth wrote: > I've found a way, but it isn't pretty: > Anyway, it works, tested by the appropriate runtest invocation on > i386-pc-solaris2.11. > > Ok for mainline and branches? OK. (I agree that it is ugly.) Tobias > 2011-01-14 Rainer Orth<ro@CeBiTec.Uni-Bielefeld.DE> > > * gfortran.dg/cray_pointers_2.f90: Avoid cycling through > optimization options. > > diff -r 6c184227ca86 gcc/testsuite/gfortran.dg/cray_pointers_2.f90 > --- a/gcc/testsuite/gfortran.dg/cray_pointers_2.f90 Fri Jan 14 10:25:46 2011 +0100 > +++ b/gcc/testsuite/gfortran.dg/cray_pointers_2.f90 Fri Jan 14 18:42:56 2011 +0100 > @@ -1,5 +1,7 @@ > -! { dg-do run } > -! { dg-options "-fcray-pointer -fbounds-check -fno-inline" } > +! Using two spaces between dg-do and run is a hack to keep gfortran-dg-runtest > +! from cycling through optimization options for this expensive test. > +! { dg-do run } > +! { dg-options "-O3 -fcray-pointer -fbounds-check -fno-inline" } > ! { dg-timeout-factor 4 } > ! > ! Series of routines for testing a Cray pointer implementation
Tobias Burnus <burnus@net-b.de> writes: > Rainer Orth wrote: >> I've found a way, but it isn't pretty: > >> Anyway, it works, tested by the appropriate runtest invocation on >> i386-pc-solaris2.11. >> >> Ok for mainline and branches? > > OK. (I agree that it is ugly.) A proper fix would be to introduce a part of the gfortran testsuite that isn't a torture test, like all other languages do. Certainly not 4.6 material, though. Rainer
diff -r 6c184227ca86 gcc/testsuite/gfortran.dg/cray_pointers_2.f90 --- a/gcc/testsuite/gfortran.dg/cray_pointers_2.f90 Fri Jan 14 10:25:46 2011 +0100 +++ b/gcc/testsuite/gfortran.dg/cray_pointers_2.f90 Fri Jan 14 18:42:56 2011 +0100 @@ -1,5 +1,7 @@ -! { dg-do run } -! { dg-options "-fcray-pointer -fbounds-check -fno-inline" } +! Using two spaces between dg-do and run is a hack to keep gfortran-dg-runtest +! from cycling through optimization options for this expensive test. +! { dg-do run } +! { dg-options "-O3 -fcray-pointer -fbounds-check -fno-inline" } ! { dg-timeout-factor 4 } ! ! Series of routines for testing a Cray pointer implementation