On 7/13/26 2:24 AM, Haochen Jiang wrote:
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.)
Can not reproduce here. Fixed by the fix to PR126210
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126210
Running target unix
=== gfortran Summary ===
# of expected passes 76375
# of expected failures 349
# of unsupported tests 87
/home/jerry/dev/objdir/gcc/gfortran version 17.0.0 20260712 (experimental)
(GCC)
=== libgomp tests ===
Running target unix
=== libgomp Summary ===
# of expected passes 11510
# of expected failures 239
# of unsupported tests 364
Compiler version: 17.0.0 20260712 (experimental) (GCC)
Platform: x86_64-pc-linux-gnu
configure flags: --prefix=/home/jerry/dev/usr --enable-languages=c,c++,fortran
--enable-multilib --enable-libsanitizer --enable-libgomp --disable-bootstrap
--with-demangler-in-ld --with-fpmath=sse