Hi all,
I have been experimenting in the testsuite world. I have learned
a few things. Motivation here is getting rid of the two-spaces
"feature" after dg-do in "dg-do run" and provide a way to
explicitly make one pass on a test case with compile option -O.
See also PR 28032
Basically, the various .exp files are all tcl code so one must
learn that syntax.
What I can do now is something like this:
! { dg-do run } { gfortran-dg-onepass }
Is everyone OK with this?
The gfortran-dg-onepass is a new procedure which gets invoked on
each invocation of the 'run' so one can adjust the list of
options that the gfortran-dg-runtest goes through and just set
it to a one item list '-O'.
The approach will not affect the current behavior of dg-do run.
The name of the procedure can be anything. We can set this up to
just ignore extra spaces between "dg-do" and "run".
We can also use it to deal with all the places where -O or -O0
are in gfortran.dg to do the right thing. (see the PR).
Comments appreciated.
Regards,
Jerry