https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100554

            Bug ID: 100554
           Summary: [9/10/11/12 Regression] -fcompare-debug failure w/ -Os
                    -fmodulo-sched -fno-tree-loop-optimize
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---
            Target: aarch64-linux-gnu

gcc-12.0.0-alpha20210509 snapshot (g:5e0236d3b0e0d7ad98bcee36128433fa755b5558),
11.1, 10.3, 9.3 fail -fcompare-debug when compiling the following testcase w/
-Os -fmodulo-sched -fno-tree-loop-optimize:

int __attribute__ ((simd))
foo (int x)
{
  return x;
}

% aarch64-linux-gnu-gcc-12.0.0 -Os -fcompare-debug -fmodulo-sched
-fno-tree-loop-optimize -c cn8zanql.c
aarch64-linux-gnu-gcc-12.0.0: error: cn8zanql.c: '-fcompare-debug' failure

--- cn8zanql.c.gkd      2021-05-12 10:02:59.380096724 +0700
+++ cn8zanql.gk.c.gkd   2021-05-12 10:02:59.414096616 +0700
@@ -669,6 +669,7 @@
      (nil))
 (code_label # 0 0 13 (nil) [1 uses])
 (note # 0 0 [bb 3] NOTE_INSN_BASIC_BLOCK)
+(note # 0 0 NOTE_INSN_DELETED)
 (insn # 0 0 (set (reg:DI 3 x3)
         (zero_extend:DI (mem:SI (plus:DI (reg/f:DI 5 x5 [103])
                     (reg:DI 1 x1 [99])) [ D.xxxx[iter.14_3]+0 S4 A32])))
"cn8zanql.c":4:10# {*zero_extendsidi2_aarch64}
@@ -679,7 +680,6 @@
      (expr_list:REG_DEAD (reg:SI 3 x3 [orig:104 D.xxxx[iter.14_3] ] [104])
         (expr_list:REG_DEAD (reg:DI 1 x1 [99])
             (nil))))
-(note # 0 0 NOTE_INSN_DELETED)
 (insn # 0 0 (set (reg:DI 1 x1 [99])
         (and:DI (ashift:DI (reg:DI 0 x0 [orig:93 D.xxxx ] [93])
                 (const_int 2 [0x2]))

Is it an issue at all? Should I report more issues of this kind in the future?

Reply via email to