https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128897

            Bug ID: 128897
           Summary: gfortran testsuite: shorten the Fortran torture list
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jvdelisle at gcc dot gnu.org
  Target Milestone: ---

Fortran dg-do run tests (gfortran.dg and libgomp Fortran) cycle
through all six DG_TORTURE_OPTIONS entries: -O0, -O1, -O2,
-O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer
-finline-functions, -O3 -g, and -Os.  These looped variants account
for about 91% of a check-fortran run.

Front-end gcov measured per variant, plus a revert-and-retest of 34
recent gfortran/libgfortran fixes, shows that -O1 and -Os add no
coverage or bug detection beyond -O0 and -O2, and that the two -O3
entries can be merged into one carrying -g.  The only -Os-only
front-end paths (trans-expr.cc optimize_size power expansion and one
branch in trans-array.cc) can be kept with a test pinned to -Os.

A Fortran-specific list (-O0, -O2, -O3 loops + -g) cuts a full
check-fortran run (unix/{-m64,-m32}, libgomp included) from 968 s to
574 s on a 16-thread x86_64 host, with no new FAIL or UNRESOLVED.

Reply via email to