[Bug tree-optimization/71079] New: ICE on valid code at -O1 and above on x86_64-linux-gnu: verify_gimple failed
su at cs dot ucdavis.edu
gcc-bugzilla@gcc.gnu.org
Thu May 12 07:25:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71079
Bug ID: 71079
Summary: ICE on valid code at -O1 and above on
x86_64-linux-gnu: verify_gimple failed
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: su at cs dot ucdavis.edu
Target Milestone: ---
The following code causes an ICE when compiled with the current gcc trunk at
-O1 and above on x86_64-linux-gnu in both 32-bit and 64-bit modes.
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/7.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-source-trunk/configure --enable-languages=c,c++,lto
--prefix=/usr/local/gcc-trunk --disable-bootstrap
Thread model: posix
gcc version 7.0.0 20160511 (experimental) [trunk revision 236125] (GCC)
$
$ gcc-trunk -O0 -c small.c
$
$ gcc-trunk -O1 -c small.c
small.c: In function ‘fn1’:
small.c:10:1: error: type mismatch in binary expression
}
^
unsigned int
int
unsigned int
_12 = a.0_1 ^ c.4_4;
small.c:10:1: internal compiler error: verify_gimple failed
0xbfe28f verify_gimple_in_cfg(function*, bool)
../../gcc-source-trunk/gcc/tree-cfg.c:5166
0xaecaa2 execute_function_todo
../../gcc-source-trunk/gcc/passes.c:1964
0xaed49b execute_todo
../../gcc-source-trunk/gcc/passes.c:2016
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
$
------------------------------
int a;
unsigned b, c;
void
fn1 ()
{
int d = 1, e, f;
e = ~a ^ ~1;
f = (b || d) ^ c ^ e;
}
More information about the Gcc-bugs
mailing list