This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/82290] New: ICE at -O2 on x86_64-linux-gnu: verify_flow_info failed
- From: "su at cs dot ucdavis.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 22 Sep 2017 02:20:43 +0000
- Subject: [Bug rtl-optimization/82290] New: ICE at -O2 on x86_64-linux-gnu: verify_flow_info failed
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82290
Bug ID: 82290
Summary: ICE at -O2 on x86_64-linux-gnu: verify_flow_info
failed
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: su at cs dot ucdavis.edu
Target Milestone: ---
$ gcctk -v
Using built-in specs.
COLLECT_GCC=gcctk
COLLECT_LTO_WRAPPER=/home/su/software/tmp/gcc/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-source-trunk/configure --enable-languages=c,c++,lto
--prefix=/home/su/software/tmp/gcc/gcc-trunk --disable-bootstrap
Thread model: posix
gcc version 8.0.0 20170921 (experimental) [trunk revision 253084] (GCC)
$
$ gcctk -Os -c small.c
$
$ gcctk -O2 -c small.c
small.c: In function ‘fn1’:
small.c:35:1: error: non-cold basic block 6 reachable only by paths crossing
the cold partition
}
^
during RTL pass: bbro
small.c:35:1: internal compiler error: verify_flow_info failed
0x7f12ce verify_flow_info()
../../gcc-source-trunk/gcc/cfghooks.c:259
0x8080d4 checking_verify_flow_info
../../gcc-source-trunk/gcc/cfghooks.h:198
0x8080d4 cfg_layout_finalize()
../../gcc-source-trunk/gcc/cfgrtl.c:4314
0x13552f9 execute
../../gcc-source-trunk/gcc/bb-reorder.c:2601
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
$
-----------------------------------------
int printf (const char *, ...);
struct
{
int a:2;
} b;
int c, e, h, i;
unsigned j;
long d, g;
volatile int f;
void fn1 ()
{
while (1)
while (1)
{
if (h)
break;
int l;
if (i)
{
L:
j = b.a;
g = (g ^ (f && e)) / (c && b.a / (j && d));
e = (g && b.a) & (j || f);
if (!l)
{
printf ("%ld\n", g);
goto L;
}
}
b.a = j;
}
}