[patch,gfortran] PR 24426: initialization of component pointers

Paul Brook paul@codesourcery.com
Sat Oct 22 00:42:00 GMT 2005


> >>>On tests like this that check front-end patches, I have started adding {
> >>>dg-options "-O0" } to stop dejagnu repeating the same thing 8 times.
> >>>Am I right in thinking that  this is enough?  If so, I would recommend
> >>>that you do the same.
> >>
> >>According to my logs compile tests only get run once anyway.
> >
> >I changed the testsuite driver a long time ago to run compile tests only
> > with -O, and my logs agree with Paul B.'s.  Are you sure it's different
> > on your box?
>
> Sorry for a bit of confusion - I have only been doing it for
> { dg-do run }.

I'm not sure this is a good idea.  I appreciate that making the testsuite run 
fast is important. However subtle frontend codegen bugs often to only show up 
at some optimization levels. 

If do want to do this I don't think dg-options "-O0" is the right way. At 
minimum it needs a comment saying why it's run at -O0. There are other tests 
that really do need to be run at -O0.
Preferably come up with some other mechanism for marking test that it's not 
worth iterating over.

Paul



More information about the Fortran mailing list