https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105203
--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> --- @Segher: Have you tried running it on x86_64-linux-gnu? gcc -O2 -fcompare-debug -ftracer -fPIC -w -c gcc/testsuite/gfortran.dg/g77/pr9258.f --save-temps --verbose Using built-in specs. COLLECT_GCC=gcc OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-suse-linux Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,ada,go,d,jit --enable-offload-targets=nvptx-none,amdgcn-amdhsa, --without-cuda-driver --enable-host-shared --enable-checking=release --disable-werror --with-gxx-include-dir=/usr/include/c++/11 --enable-ssp --disable-libssp --disable-libvtv --enable-cet=auto --disable-libcc1 --enable-plugin --with-bugurl=https://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --with-slibdir=/lib64 --with-system-zlib --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-libphobos --enable-version-specific-runtime-libs --with-gcc-major-version-only --enable-linker-build-id --enable-linux-futex --enable-gnu-indirect-function --program-suffix=-11 --without-system-libunwind --enable-multilib --with-arch-32=x86-64 --with-tune=generic --with-build-config=bootstrap-lto-lean --enable-link-mutex --build=x86_64-suse-linux --host=x86_64-suse-linux Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 11.2.1 20220316 [revision 6a1150d1524aeda3381b2171712e1a6611d441d6] (SUSE Linux) COLLECT_GCC_OPTIONS='-O2' '-fcompare-debug=-gtoggle' '-ftracer' '-fPIC' '-w' '-c' '-save-temps' '-v' '-mtune=generic' '-march=x86-64' /usr/lib64/gcc/x86_64-suse-linux/11/f951 gcc/testsuite/gfortran.dg/g77/pr9258.f -ffixed-form -quiet -dumpbase pr9258.f -dumpbase-ext .f -mtune=generic -march=x86-64 -O2 -w -version -fcompare-debug=-gtoggle -ftracer -fPIC -fintrinsic-modules-path /usr/lib64/gcc/x86_64-suse-linux/11/finclude -fpre-include=/usr/include/finclude/math-vector-fortran.h -frandom-seed=0x56af55577b39fac1 -fdump-final-insns=pr9258.f.gkd -o pr9258.s GNU Fortran (SUSE Linux) version 11.2.1 20220316 [revision 6a1150d1524aeda3381b2171712e1a6611d441d6] (x86_64-suse-linux) compiled by GNU C version 11.2.1 20220316 [revision 6a1150d1524aeda3381b2171712e1a6611d441d6], GMP version 6.2.1, MPFR version 4.1.0-p7, MPC version 1.2.1, isl version isl-0.24-GMP GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU Fortran2008 (SUSE Linux) version 11.2.1 20220316 [revision 6a1150d1524aeda3381b2171712e1a6611d441d6] (x86_64-suse-linux) compiled by GNU C version 11.2.1 20220316 [revision 6a1150d1524aeda3381b2171712e1a6611d441d6], GMP version 6.2.1, MPFR version 4.1.0-p7, MPC version 1.2.1, isl version isl-0.24-GMP GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 COLLECT_GCC_OPTIONS='-O2' '-fcompare-debug=-gtoggle' '-ftracer' '-fPIC' '-w' '-c' '-save-temps' '-v' '-mtune=generic' '-march=x86-64' /usr/lib64/gcc/x86_64-suse-linux/11/../../../../x86_64-suse-linux/bin/as -v -W --64 -o pr9258.o pr9258.s GNU assembler version 2.38 (x86_64-suse-linux) using BFD version (GNU Binutils; openSUSE Tumbleweed) 2.38.20220304-3 gcc: note: recompiling with ‘-fcompare-debug’ COLLECT_GCC_OPTIONS='-O2' '-fcompare-debug=-gtoggle' '-ftracer' '-fPIC' '-w' '-c' '-save-temps' '-v' '-mtune=generic' '-march=x86-64' '-w' '-S' '-o' '/dev/null' '-fcompare-debug-second' '-gtoggle' /usr/lib64/gcc/x86_64-suse-linux/11/f951 gcc/testsuite/gfortran.dg/g77/pr9258.f -ffixed-form -quiet -dumpbase pr9258.gk.f -dumpbase-ext .f -mtune=generic -march=x86-64 -gtoggle -O2 -w -w -version -fcompare-debug=-gtoggle -ftracer -fPIC -fcompare-debug-second -o /dev/null -fintrinsic-modules-path /usr/lib64/gcc/x86_64-suse-linux/11/finclude -fpre-include=/usr/include/finclude/math-vector-fortran.h -frandom-seed=0x56af55577b39fac1 -fdump-final-insns=pr9258.gk.f.gkd GNU Fortran (SUSE Linux) version 11.2.1 20220316 [revision 6a1150d1524aeda3381b2171712e1a6611d441d6] (x86_64-suse-linux) compiled by GNU C version 11.2.1 20220316 [revision 6a1150d1524aeda3381b2171712e1a6611d441d6], GMP version 6.2.1, MPFR version 4.1.0-p7, MPC version 1.2.1, isl version isl-0.24-GMP GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU Fortran2008 (SUSE Linux) version 11.2.1 20220316 [revision 6a1150d1524aeda3381b2171712e1a6611d441d6] (x86_64-suse-linux) compiled by GNU C version 11.2.1 20220316 [revision 6a1150d1524aeda3381b2171712e1a6611d441d6], GMP version 6.2.1, MPFR version 4.1.0-p7, MPC version 1.2.1, isl version isl-0.24-GMP GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 gcc: note: comparing final insns dumps gcc: error: gcc/testsuite/gfortran.dg/g77/pr9258.f: ‘-fcompare-debug’ failure