This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/71854] New: ICE at -O3 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: Wed, 13 Jul 2016 06:08:12 +0000
- Subject: [Bug tree-optimization/71854] New: ICE at -O3 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=71854
Bug ID: 71854
Summary: ICE at -O3 in both 32-bit and 64-bit modes on
x86_64-linux-gnu (verify_gimple failed)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ 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 20160712 (experimental) [trunk revision 238270] (GCC)
$
$ gcc-trunk -O3 small.c
small.c: In function ‘main’:
small.c:7:5: error: the first argument of a VEC_COND_EXPR must be of a boolean
vector type of the same number of elements as the result
int main() {
^~~~
vector(8) short int
vector(16) unsigned char
vect_iftmp.25_131 = VEC_COND_EXPR <vect_cst__135, vect_iftmp.24_27,
vect_cst__134>;
small.c:7:5: internal compiler error: verify_gimple failed
0xc009c6 verify_gimple_in_cfg(function*, bool)
../../gcc-source-trunk/gcc/tree-cfg.c:5212
0xae784a execute_function_todo
../../gcc-source-trunk/gcc/passes.c:1964
0xae82cb 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.
$
$ cat small.c
char a, f;
int b, c;
short d;
int e[8];
short fn1(short p1) { return p1 >= 2 || p1 >> c ? p1 : p1 << c; }
int main() {
for (;;) {
d = 0;
for (; d <= 7; d++) {
f = 7 >> b ? a : a << b;
e[d] = fn1(f);
}
}
return 0;
}
$