https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103742
Bug ID: 103742 Summary: [12 Regression] '-fcompare-debug' failure (length) with -O2 -fnon-call-exceptions --param=early-inlining-insns=82 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz CC: aoliva at gcc dot gnu.org Target Milestone: --- Created attachment 52011 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52011&action=edit auto-reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -O2 -fnon-call-exceptions --param=early-inlining-insns=82 -fcompare-debug testcase.C x86_64-pc-linux-gnu-gcc: error: testcase.C: '-fcompare-debug' failure $ diff -u *gkd --- a-testcase.C.gkd 2021-12-16 06:38:14.832032631 +0100 +++ a-testcase.gk.C.gkd 2021-12-16 06:38:14.912032192 +0100 @@ -279,7 +279,7 @@ (expr_list:REG_EQUAL (plus:DI (reg/f:DI 19 frame) (const_int -16 [0xfffffffffffffff0])) (nil))) -(code_label # 0 0 4 18 (nil) [1 uses]) +(code_label # 0 0 4 19 (nil) [1 uses]) (note # 0 0 [bb 4] NOTE_INSN_BASIC_BLOCK) (insn:TI # 0 0 4 (set (reg:DI 1 dx [orig:87 _9 ] [87]) (mem:DI (reg/f:DI 0 ax [orig:86 iftmp.4_8 ] [86]) [ *iftmp.4_8.m_value+0 S8 A64])) "testcase.C":5:61# {*movdi_internal} @@ -340,6 +340,6 @@ (jump_insn # 0 0 5 (set (pc) (label_ref #))# {jump} (nil) - -> 18) + -> 19) (barrier # 0 0) (note # 0 0 NOTE_INSN_DELETED) $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest/bin/x86_64-pc-linux-gnu-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r12-6011-20211215204558-gab18659afc0-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/12.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra --disable-bootstrap --with-cloog --with-ppl --with-isl --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld --with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r12-6011-20211215204558-gab18659afc0-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.0 20211216 (experimental) (GCC)