https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105203
Bug ID: 105203 Summary: '-fcompare-debug' failure w/ -O2 -ftracer -fPIC Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: compare-debug-failure Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- gfortran-12.0.1 20220403 snapshot (g:0364465e3708249ece810ca5d65164552595538c) fails -fcompare-debug check when compiling gcc/testsuite/gfortran.dg/g77/pr9258.f w/ -O2 -ftracer -fPIC: % gfortran-12.0.1 -O2 -fcompare-debug -ftracer -fPIC -w -c gcc/testsuite/gfortran.dg/g77/pr9258.f gfortran-12.0.1: error: gcc/testsuite/gfortran.dg/g77/pr9258.f: '-fcompare-debug' failure gkd diff: --- blv9apl0.f.gkd 2022-04-08 16:53:59.431343098 +0700 +++ blv9apl0.gk.f.gkd 2022-04-08 16:53:59.483343122 +0700 @@ -170,7 +170,7 @@ (reg/f:DI 41 r13 [orig:84 m.1 ] [84]))# {*indirect_jump} (nil)) (barrier # 0 0) -(code_label/s # 0 0 7 4 ("__label_000020") [3 uses]) +(code_label/s # 0 0 7 4 ("__label_000020") [1 uses]) (note # 0 0 [bb 7] NOTE_INSN_BASIC_BLOCK) (insn:TI # 0 0 7 (set (reg:SF 22 xmm2 [90]) (reg:SF 20 xmm0 [orig:85 a.2_12 ] [85])) "blv9apl0.f":12:10# {*movsf_internal} % gfortran-12.0.1 -v Using built-in specs. COLLECT_GCC=gfortran-12.0.1 COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/12.0.1/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-12.0.1_p20220403/work/gcc-12-20220403/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/12.0.1 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/12.0.1/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/12.0.1 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/12.0.1/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/12.0.1/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/12.0.1/include/g++-v12 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/12.0.1/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --disable-nls --disable-libunwind-exceptions --enable-checking=yes --disable-esp --enable-libstdcxx-time --disable-libstdcxx-pch --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --with-multilib-list=m64 --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libssp --disable-libada --disable-cet --disable-systemtap --enable-valgrind-annotations --disable-vtable-verify --disable-libvtv --without-zstd --enable-lto --with-isl --disable-isl-version-check --enable-default-ssp Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.0.1 20220401 (experimental) (GCC)