https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128897
--- Comment #1 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Coverage evidence for the shortened Fortran torture list
Method: GCC built with --enable-coverage --disable-multilib (x86_64).
One full check-fortran (gfortran.dg + libgomp Fortran) per torture
entry, each with TORTURE_OPTIONS set to that single entry via a
$DEJAGNU file (a run with a bogus flag confirmed the override reaches
the compiler). .gcda files for gcc/fortran/*.cc were snapshotted
after each run and compared with gcov --json-format. Counted: lines
executed and branch edges taken in gcc/fortran.
Union of all six entries: 111023 lines, 83994 taken branches.
entry lines branches only-this-entry
lines branches
-O0 110973 83933 0 0
-O1 110954 83925 0 0
-O2 111022 83981 0 0
-O3 loops 110954 83925 0 0
-O3 -g 110955 83933 1 8
-Os 110938 83915 0 2
("-O3 loops" = -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops
-ftracer -finline-functions)
Entry-unique coverage:
-O3 -g: trans-types.cc gfc_type_for_mode, vector-mode cases
(reached from debug-info generation)
-Os: trans-expr.cc:3560, optimize_size test in integer power
expansion; one branch at trans-array.cc:4767
(gfc_trans_scalarized_loop_boundary, reached by MINLOC/MAXLOC
of a SUM when inlining is off but front-end optimization
is on)
Candidate lists, coverage missing relative to the six-entry union:
merge the two -O3 entries 0 lines 0 branches
... and drop -O1 0 lines 0 branches
... and drop -Os 0 lines 2 branches
... plus optimize_size_1.f90 (-Os pinned) 0 lines 0 branches
-O0 and -O2 only 1 line 10 branches
The merged entry (-O3 loops plus -g) was also run directly: it covers
exactly the union of the two -O3 entries (110955 lines, 83933
branches).
Fault detection: for 34 recent gcc/fortran and libgfortran fixes that
added a looped run test, the non-testsuite part of the fix was
reverted, the compiler rebuilt, and the test run at all six entries
on unix/{-m64,-m32}. 29 bugs fail at every entry. The other 5:
test O0 O1 O2 O3L O3g Os
class_79.f90 x . . . . .
cray_pointers_13.f90 . x x x x x
maxloc_8, minloc_9 . x x x x .
pr115260.f90 . x x x x .
minmaxloc_mask_back.f90 x . . . . x
pr120191_1.f90 x . . . . x
No bug was caught only by -O1 or only by -Os; every one is caught by
-O0, -O2 or -O3. The live pr49213 failure (-O2, -O3, -Os) is still
caught by -O2 and the merged -O3 entry.
Timing (full check-fortran, unix/{-m64,-m32}, libgomp included,
-j10, 16-thread Ryzen 5800X): 968 s -> 574 s wall; 9523 s -> 5659 s
CPU. No new FAIL or UNRESOLVED; compare_tests reports only renamed
variant lines.