[r17-2320 Regression] FAIL: libgomp.fortran/teams2.f90 -O (test for excess errors) on Linux/x86_64

Haochen Jiang via Gcc-regression <[email protected]> Mon, 13 Jul 2026 17:24:45 +0800
Newsgroups gmane.comp.gcc.regression,gmane.comp.gcc.patches
Message-ID <[email protected]>
On Linux/x86_64,

f935a7a9013d0748ba1f42dc532df3d278707bf6 is the first bad commit
commit f935a7a9013d0748ba1f42dc532df3d278707bf6
Author: Jerry DeLisle <[email protected]>
Date:   Thu Jul 9 19:24:49 2026 -0700

    fortran: [PR126170] Fix LTO ICE in copy_function_or_variable

caused

FAIL: libgomp.fortran/allocate-1.f90   -O0  (test for excess errors)
FAIL: libgomp.fortran/allocate-1.f90   -O1  (test for excess errors)
FAIL: libgomp.fortran/allocate-1.f90   -O2  (test for excess errors)
FAIL: libgomp.fortran/allocate-1.f90   -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions  (test for excess errors)
FAIL: libgomp.fortran/allocate-1.f90   -O3 -g  (test for excess errors)
FAIL: libgomp.fortran/allocate-1.f90   -Os  (test for excess errors)
FAIL: libgomp.fortran/cancel-do-2.f90   -O0  (test for excess errors)
FAIL: libgomp.fortran/cancel-do-2.f90   -O1  (test for excess errors)
FAIL: libgomp.fortran/cancel-do-2.f90   -O2  (test for excess errors)
FAIL: libgomp.fortran/cancel-do-2.f90   -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions  (test for excess errors)
FAIL: libgomp.fortran/cancel-do-2.f90   -O3 -g  (test for excess errors)
FAIL: libgomp.fortran/cancel-do-2.f90   -Os  (test for excess errors)
FAIL: libgomp.fortran/task1.f90   -O0  (test for excess errors)
FAIL: libgomp.fortran/task1.f90   -O1  (test for excess errors)
FAIL: libgomp.fortran/task1.f90   -O2  (test for excess errors)
FAIL: libgomp.fortran/task1.f90   -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions  (test for excess errors)
FAIL: libgomp.fortran/task1.f90   -O3 -g  (test for excess errors)
FAIL: libgomp.fortran/task1.f90   -Os  (test for excess errors)
FAIL: libgomp.fortran/teams2.f90   -O  (test for excess errors)

with GCC configured with

../../gcc/configure --prefix=/export/users3/haochenj/src/gcc-bisect/master/master/r17-2320/usr --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --with-fpmath=sse --enable-languages=c,c++,fortran --enable-cet --without-isl --enable-libmpx x86_64-linux --disable-bootstrap

To reproduce:

$ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check RUNTESTFLAGS="fortran.exp=libgomp.fortran/allocate-1.f90 --target_board='unix{-m32}'"
$ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check RUNTESTFLAGS="fortran.exp=libgomp.fortran/allocate-1.f90 --target_board='unix{-m32\ -march=cascadelake}'"
$ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check RUNTESTFLAGS="fortran.exp=libgomp.fortran/allocate-1.f90 --target_board='unix{-m64}'"
$ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check RUNTESTFLAGS="fortran.exp=libgomp.fortran/allocate-1.f90 --target_board='unix{-m64\ -march=cascadelake}'"
$ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check RUNTESTFLAGS="fortran.exp=libgomp.fortran/cancel-do-2.f90 --target_board='unix{-m32}'"
$ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check RUNTESTFLAGS="fortran.exp=libgomp.fortran/cancel-do-2.f90 --target_board='unix{-m32\ -march=cascadelake}'"
$ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check RUNTESTFLAGS="fortran.exp=libgomp.fortran/cancel-do-2.f90 --target_board='unix{-m64}'"
$ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check RUNTESTFLAGS="fortran.exp=libgomp.fortran/cancel-do-2.f90 --target_board='unix{-m64\ -march=cascadelake}'"
$ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check RUNTESTFLAGS="fortran.exp=libgomp.fortran/task1.f90 --target_board='unix{-m32}'"
$ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check RUNTESTFLAGS="fortran.exp=libgomp.fortran/task1.f90 --target_board='unix{-m32\ -march=cascadelake}'"
$ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check RUNTESTFLAGS="fortran.exp=libgomp.fortran/task1.f90 --target_board='unix{-m64}'"
$ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check RUNTESTFLAGS="fortran.exp=libgomp.fortran/task1.f90 --target_board='unix{-m64\ -march=cascadelake}'"
$ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check RUNTESTFLAGS="fortran.exp=libgomp.fortran/teams2.f90 --target_board='unix{-m32}'"
$ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check RUNTESTFLAGS="fortran.exp=libgomp.fortran/teams2.f90 --target_board='unix{-m32\ -march=cascadelake}'"
$ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check RUNTESTFLAGS="fortran.exp=libgomp.fortran/teams2.f90 --target_board='unix{-m64}'"
$ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check RUNTESTFLAGS="fortran.exp=libgomp.fortran/teams2.f90 --target_board='unix{-m64\ -march=cascadelake}'"

(Please directly reply to this email for question about this report.)
(If you met problems with cascadelake related, disabling AVX512F in command line might save that.)
(However, please make sure that there is no potential problems with AVX512.)