https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105415
Bug ID: 105415 Summary: [10/11/12 Regression] '-fcompare-debug' failure w/ -O2 -ftree-parallelize-loops=2 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: --- Target: aarch64-linux-gnu gcc 12.0.1 20220424 snapshot (g:6b7441a46c771aa6ecdc0c8ed96197417d036b9a) fails -fcompare-debug check when compiling the following testcase w/ -O2 -ftree-parallelize-loops=2: int m; static int n; void foo (void) { int s = 0; while (m < 1) { s += n; ++m; } } void bar (int *arr, int i) { while (i < 1) arr[i++] = 1; } % aarch64-linux-gnu-gcc-12.0.1 -O2 -fcompare-debug -ftree-parallelize-loops=2 -c plkjnne3.c aarch64-linux-gnu-gcc-12.0.1: error: plkjnne3.c: '-fcompare-debug' failure --- plkjnne3.c.gkd 2022-04-28 09:43:03.113041561 +0700 +++ plkjnne3.gk.c.gkd 2022-04-28 09:43:03.148041580 +0700 @@ -388,7 +388,7 @@ 1: int i; 2: signed int D.xxxx; -;; Function bar._loopfn.0 (bar._loopfn.0, funcdef_no=2, cgraph_uid=3, symbol_order=4) +;; Function bar._loopfn.0 (bar._loopfn.0, funcdef_no=2, cgraph_uid=3, symbol_order=5) (note # 0 0 NOTE_INSN_DELETED) (note # 0 0 [bb 2] NOTE_INSN_BASIC_BLOCK)