This is the mail archive of the gcc@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: Reducing fortran testcase with delta.


Hi Li,

I've attached 'Fortran-aware' delta. I tries to guess cut a Fortran file in more reasonable places (e.g. between subroutine boundaries, after enddos). It works reasonably well, but is a hack.

Especially with Fortran90 and modules, iterated delta runs can help a lot (i.e. first runs removes 'public/use' module statements, next round cleans more efficiently). It also features 'randomized' bisection. That helps to reduce towards a minimized testcase when iterating delta runs.

I usually call it with the following script:

cat do_many
for i in `seq 1 30`
do
  ~/delta-2006.08.03/delta -suffix=.f90 -test=delta.script -cp_minimal=small.f90  bug.f90
  cp small.f90 small.f90.$i
  cp small.f90 bug.f90
done

Cheers,

Joost

Attachment: delta
Description: Text document


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