This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/85331] New: during GIMPLE pass, internal compiler error: Segmentation fault (-O1 and above)
- From: "shlei930 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 11 Apr 2018 00:54:28 +0000
- Subject: [Bug tree-optimization/85331] New: during GIMPLE pass, internal compiler error: Segmentation fault (-O1 and above)
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85331
Bug ID: 85331
Summary: during GIMPLE pass, internal compiler error:
Segmentation fault (-O1 and above)
Product: gcc
Version: 8.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: shlei930 at gmail dot com
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/home/suhua/compilers/trunk/root-gcc/libexec/gcc/x86_64-pc-linux-gnu/8.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc/configure --prefix=/home/suhua/compilers/trunk/root-gcc
--enable-languages=c,c++ --disable-werror --enable-multilib
Thread model: posix
gcc version 8.0.1 20180410 (experimental) [trunk revision 259265] (GCC)
$ gcc-trunk -O1 abc.c
during GIMPLE pass: ccp
abc.c: In function ‘fn1’:
abc.c:9:1: internal compiler error: Segmentation fault
}
^
0xcbd6af crash_signal
../../gcc/gcc/toplev.c:325
0x9f6cae fold_vec_perm
../../gcc/gcc/fold-const.c:8951
0x9e4fee fold_ternary_loc(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*, tree_node*)
../../gcc/gcc/fold-const.c:11747
0x102fac2 gimple_resimplify3(gimple**, code_helper*, tree_node*, tree_node**,
tree_node* (*)(tree_node*))
../../gcc/gcc/gimple-match-head.c:194
0x110fc27 gimple_simplify(gimple*, code_helper*, tree_node**, gimple**,
tree_node* (*)(tree_node*), tree_node* (*)(tree_node*))
../../gcc/gcc/gimple-match-head.c:693
0xa3847a gimple_fold_stmt_to_constant_1(gimple*, tree_node* (*)(tree_node*),
tree_node* (*)(tree_node*))
../../gcc/gcc/gimple-fold.c:6099
0xdc5441 ccp_fold
../../gcc/gcc/tree-ssa-ccp.c:1258
0xdc5441 evaluate_stmt
../../gcc/gcc/tree-ssa-ccp.c:1786
0xdc7515 visit_assignment
../../gcc/gcc/tree-ssa-ccp.c:2355
0xdc75d2 ccp_propagate::visit_stmt(gimple*, edge_def**, tree_node**)
../../gcc/gcc/tree-ssa-ccp.c:2433
0xe4a103 ssa_propagation_engine::simulate_stmt(gimple*)
../../gcc/gcc/tree-ssa-propagate.c:237
0xe4a48a ssa_propagation_engine::simulate_block(basic_block_def*)
../../gcc/gcc/tree-ssa-propagate.c:371
0xe4b696 ssa_propagation_engine::ssa_propagate()
../../gcc/gcc/tree-ssa-propagate.c:800
0xdc0373 do_ssa_ccp
../../gcc/gcc/tree-ssa-ccp.c:2474
0xdc0373 execute
../../gcc/gcc/tree-ssa-ccp.c:2518
Please submit a full bug report,
with preprocessed source if appropriate.
$ cat abc.c
#include <stdint.h>
typedef double vecf __attribute__((vector_size(2 * sizeof(double))));
typedef int64_t veci __attribute__((vector_size(2 * sizeof(int64_t))));
void fn1() {
vecf *r;
vecf y = {};
veci m = {10000000000};
*r = __builtin_shuffle(y, m);
}