https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83527
Bug ID: 83527
Summary: [8 Regression] Another statement-frontiers
-fcompare-debug failure
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
Assignee: unassigned at gcc dot gnu.org
Reporter: trippels at gcc dot gnu.org
CC: aoliva at gcc dot gnu.org
Target Milestone: ---
On ppc64le:
trippels@gcc2-power8 linux % cat qla1280.i
extern void fn2(void);
extern void fn3(void);
int a, b;
void fn1() {
int c;
short d;
switch (a) {
case 32800:
fn2();
case 32769:
b = 0;
case 32771:
case 32772:
case 32782:
fn3();
}
if (d || c) {
do
;
while (0);
}
}
trippels@gcc2-power8 linux % gcc -fcompare-debug -O2 -c qla1280.i --save-temps
gcc: error: qla1280.i: -fcompare-debug failure (length)
trippels@gcc2-power8 linux % diff -u qla1280.gkd qla1280.gk.gkd
--- qla1280.gkd 2017-12-21 09:36:57.037420552 +0000
+++ qla1280.gk.gkd 2017-12-21 09:36:57.077421516 +0000
@@ -7,7 +7,7 @@
5: void <L0>;
2: void <L1>;
3: void <L2>;
-1: void <L10>;
+1: void <L9>;
;; Function fn1 (fn1, funcdef_no=0, cgraph_uid=0, symbol_order=2)