This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/71206] New: ICE on valid code at all optimization levels in both 32-bit and 64-bit modes on x86_64-linux-gnu. (verify_gimple failed)
- From: "chengniansun at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 19 May 2016 20:36:22 +0000
- Subject: [Bug tree-optimization/71206] New: ICE on valid code at all optimization levels in both 32-bit and 64-bit modes on x86_64-linux-gnu. (verify_gimple failed)
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71206
Bug ID: 71206
Summary: ICE on valid code at all optimization levels in both
32-bit and 64-bit modes on x86_64-linux-gnu.
(verify_gimple failed)
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
The following code crashes the trunk at all optimization levels in both 32-bit
and 64-bit modes on x86_64-linux-gnu.
$: 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 20160519 (experimental) [trunk revision 236439] (GCC)
$:
$: gcc-trunk -O0 small.c
small.c: In function âfn1â:
small.c:4:6: error: type mismatch in binary expression
void fn1() { fn1(b ^ (2 || c) ^ ((a || 3) ^ d)); }
^~~
unsigned int
unsigned int
int
_3 = b.0_1 ^ d.1_2;
small.c:4:6: internal compiler error: verify_gimple failed
0xbdf79d verify_gimple_in_seq(gimple*)
../../gcc-source-trunk/gcc/tree-cfg.c:4833
0x950c71 gimplify_body(tree_node*, bool)
../../gcc-source-trunk/gcc/gimplify.c:11548
0x9510a6 gimplify_function_tree(tree_node*)
../../gcc-source-trunk/gcc/gimplify.c:11636
0x7b62f7 cgraph_node::analyze()
../../gcc-source-trunk/gcc/cgraphunit.c:625
0x7b951b analyze_functions
../../gcc-source-trunk/gcc/cgraphunit.c:1086
0x7ba09c symbol_table::finalize_compilation_unit()
../../gcc-source-trunk/gcc/cgraphunit.c:2543
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.
$:
$: cat small.c
char a;
unsigned b;
int c, d;
void fn1() { fn1(b ^ (2 || c) ^ ((a || 3) ^ d)); }
int main() {}