[Bug debug/105630] New: [10/11/12/13 Regression] '-fcompare-debug' failure w/ -O1 -ftree-parallelize-loops=2

asolokha at gmx dot com gcc-bugzilla@gcc.gnu.org
Tue May 17 15:24:45 GMT 2022


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

            Bug ID: 105630
           Summary: [10/11/12/13 Regression] '-fcompare-debug' failure w/
                    -O1 -ftree-parallelize-loops=2
           Product: gcc
           Version: 13.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 13.0.0 20220515 snapshot (g:18547874ee205d830acb31f1e3c1c89fc7725c14) fails
-fcompare-debug check when compiling the following testcase w/ -O1
-ftree-parallelize-loops=2:

int m;
static int n;

void
foo (void)
{
  int *arr[] = { &n, &n, &n };
  int unused = n;

  m = 0;
}

void
bar (int *arr, int i)
{
  while (i < 1)
    arr[i++] = 1;
}

aarch64-linux-gnu-gcc-13.0.0 -O1 -fcompare-debug -ftree-parallelize-loops=2 -c
fjosrfpk.c
aarch64-linux-gnu-gcc-13.0.0: error: fjosrfpk.c: '-fcompare-debug' failure

--- fjosrfpk.c.gkd
+++ fjosrfpk.gk.c.gkd
@@ -360,7 +360,7 @@
 1:   int i;
 2:   signed int D.xxxx;

-;; Function bar._loopfn.0 (bar._loopfn.0, funcdef_no=2, cgraph_uid=3,
symbol_order=5)
+;; Function bar._loopfn.0 (bar._loopfn.0, funcdef_no=2, cgraph_uid=3,
symbol_order=6)

 (note # 0 0 NOTE_INSN_DELETED)
 (note # 0 0 [bb 2] NOTE_INSN_BASIC_BLOCK)

It was originally reported in PR105415 comment 8.


More information about the Gcc-bugs mailing list