https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63331
Bug ID: 63331 Summary: Fortran -fcompare-debug issues Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org CC: burnus at gcc dot gnu.org In -fcompare-debug bootstrap/regtest (GCC_COMPARE_DEBUG=1 in the environment), I'm seeing various gfortran.dg regressions compared to normal regtest: +FAIL: gfortran.dg/coarray/alloc_comp_1.f90 -fcoarray=single -O2 (test for excess errors) +UNRESOLVED: gfortran.dg/coarray/alloc_comp_1.f90 -fcoarray=single -O2 compilation failed to produce executable +FAIL: gfortran.dg/coarray/alloc_comp_1.f90 -fcoarray=lib -O2 -lcaf_single (test for excess errors) +UNRESOLVED: gfortran.dg/coarray/alloc_comp_1.f90 -fcoarray=lib -O2 -lcaf_single compilation failed to produce executable +FAIL: gfortran.dg/coarray/alloc_comp_3.f90 -fcoarray=single -O2 (test for excess errors) +FAIL: gfortran.dg/coarray/alloc_comp_3.f90 -fcoarray=lib -O2 -lcaf_single (test for excess errors) +FAIL: gfortran.dg/coarray/lib_realloc_1.f90 -fcoarray=single -O2 (test for excess errors) +UNRESOLVED: gfortran.dg/coarray/lib_realloc_1.f90 -fcoarray=single -O2 compilation failed to produce executable +FAIL: gfortran.dg/coarray/lib_realloc_1.f90 -fcoarray=lib -O2 -lcaf_single (test for excess errors) +UNRESOLVED: gfortran.dg/coarray/lib_realloc_1.f90 -fcoarray=lib -O2 -lcaf_single compilation failed to produce executable +FAIL: gfortran.dg/coarray/subobject_1.f90 -fcoarray=single -O2 (test for excess errors) +UNRESOLVED: gfortran.dg/coarray/subobject_1.f90 -fcoarray=single -O2 compilation failed to produce executable +FAIL: gfortran.dg/coarray/subobject_1.f90 -fcoarray=lib -O2 -lcaf_single (test for excess errors) +UNRESOLVED: gfortran.dg/coarray/subobject_1.f90 -fcoarray=lib -O2 -lcaf_single compilation failed to produce executable +FAIL: gfortran.dg/class_optional_1.f90 -O0 (test for excess errors) +UNRESOLVED: gfortran.dg/class_optional_1.f90 -O0 compilation failed to produce executable +FAIL: gfortran.dg/class_optional_1.f90 -O1 (test for excess errors) +UNRESOLVED: gfortran.dg/class_optional_1.f90 -O1 compilation failed to produce executable +FAIL: gfortran.dg/class_optional_1.f90 -O2 (test for excess errors) +UNRESOLVED: gfortran.dg/class_optional_1.f90 -O2 compilation failed to produce executable +FAIL: gfortran.dg/class_optional_1.f90 -O3 -fomit-frame-pointer (test for excess errors) +UNRESOLVED: gfortran.dg/class_optional_1.f90 -O3 -fomit-frame-pointer compilation failed to produce executable +FAIL: gfortran.dg/class_optional_1.f90 -O3 -fomit-frame-pointer -funroll-loops (test for excess errors) +UNRESOLVED: gfortran.dg/class_optional_1.f90 -O3 -fomit-frame-pointer -funroll-loops compilation failed to produce executable +FAIL: gfortran.dg/class_optional_1.f90 -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions (test for excess errors) +UNRESOLVED: gfortran.dg/class_optional_1.f90 -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions compilation failed to produce executable +FAIL: gfortran.dg/class_optional_1.f90 -O3 -g (test for excess errors) +UNRESOLVED: gfortran.dg/class_optional_1.f90 -O3 -g compilation failed to produce executable +FAIL: gfortran.dg/class_optional_1.f90 -Os (test for excess errors) +UNRESOLVED: gfortran.dg/class_optional_1.f90 -Os compilation failed to produce executable +FAIL: gfortran.dg/class_optional_2.f90 -O0 (test for excess errors) +UNRESOLVED: gfortran.dg/class_optional_2.f90 -O0 compilation failed to produce executable +FAIL: gfortran.dg/class_optional_2.f90 -O1 (test for excess errors) +UNRESOLVED: gfortran.dg/class_optional_2.f90 -O1 compilation failed to produce executable +FAIL: gfortran.dg/class_optional_2.f90 -O2 (test for excess errors) +UNRESOLVED: gfortran.dg/class_optional_2.f90 -O2 compilation failed to produce executable +FAIL: gfortran.dg/class_optional_2.f90 -O3 -fomit-frame-pointer (test for excess errors) +UNRESOLVED: gfortran.dg/class_optional_2.f90 -O3 -fomit-frame-pointer compilation failed to produce executable +FAIL: gfortran.dg/class_optional_2.f90 -O3 -fomit-frame-pointer -funroll-loops (test for excess errors) +UNRESOLVED: gfortran.dg/class_optional_2.f90 -O3 -fomit-frame-pointer -funroll-loops compilation failed to produce executable +FAIL: gfortran.dg/class_optional_2.f90 -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions (test for excess errors) +UNRESOLVED: gfortran.dg/class_optional_2.f90 -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions compilation failed to produce executable +FAIL: gfortran.dg/class_optional_2.f90 -O3 -g (test for excess errors) +UNRESOLVED: gfortran.dg/class_optional_2.f90 -O3 -g compilation failed to produce executable +FAIL: gfortran.dg/class_optional_2.f90 -Os (test for excess errors) +UNRESOLVED: gfortran.dg/class_optional_2.f90 -Os compilation failed to produce executable +FAIL: gfortran.dg/coarray_31.f90 -O (test for excess errors) +FAIL: gfortran.dg/coarray_poly_4.f90 -O (test for excess errors) +FAIL: gfortran.dg/finalize_12.f90 -O0 (test for excess errors) +UNRESOLVED: gfortran.dg/finalize_12.f90 -O0 compilation failed to produce executable +FAIL: gfortran.dg/finalize_12.f90 -O1 (test for excess errors) +UNRESOLVED: gfortran.dg/finalize_12.f90 -O1 compilation failed to produce executable +FAIL: gfortran.dg/finalize_12.f90 -O2 (test for excess errors) +UNRESOLVED: gfortran.dg/finalize_12.f90 -O2 compilation failed to produce executable +FAIL: gfortran.dg/finalize_12.f90 -O3 -fomit-frame-pointer (test for excess errors) +UNRESOLVED: gfortran.dg/finalize_12.f90 -O3 -fomit-frame-pointer compilation failed to produce executable +FAIL: gfortran.dg/finalize_12.f90 -O3 -fomit-frame-pointer -funroll-loops (test for excess errors) +UNRESOLVED: gfortran.dg/finalize_12.f90 -O3 -fomit-frame-pointer -funroll-loops compilation failed to produce executable +FAIL: gfortran.dg/finalize_12.f90 -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions (test for excess errors) +UNRESOLVED: gfortran.dg/finalize_12.f90 -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions compilation failed to produce executable +FAIL: gfortran.dg/finalize_12.f90 -O3 -g (test for excess errors) +UNRESOLVED: gfortran.dg/finalize_12.f90 -O3 -g compilation failed to produce executable +FAIL: gfortran.dg/finalize_12.f90 -Os (test for excess errors) +UNRESOLVED: gfortran.dg/finalize_12.f90 -Os compilation failed to produce executable +FAIL: gfortran.dg/intent_out_7.f90 -O (test for excess errors) +FAIL: gfortran.dg/iso_c_binding_compiler_1.f90 -O (test for excess errors) +FAIL: gfortran.dg/iso_c_binding_compiler_3.f90 -O (test for excess errors) It seems most of these tests have -fcoarray= in dg-options and with that gfortran FE? happily inserts some number suffixes that differ between -g and -g0 to various variables. And, iso_c_binding_compiler_*.f90 is using compiler_options which doesn't filter out debugging related options (perhaps this one is fine).