[Bug tree-optimization/81500] [8 Regression] ICE with -O3 in process_use, at tree-vect-stmts.c:506

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Fri Jul 21 09:22:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81500

--- Comment #3 from David Binderman <dcb314 at hotmail dot com> ---
Possible duplicate for this reduced code:

struct a {
  int b;
  int c
};
struct d {
  struct a *e
} f(struct d *g) {
  int h;
  int b;
  for (; h; ++h) {
    int i = g->e[h].c + 1;
    g->e[h].c = g->e[h].b;
    g->e[h].b = b;
    b = i;
  }
  if (b)
    j();
}

$ ~/gcc/results/bin/gcc -c -O3 -w bug370.c
during GIMPLE pass: vect
bug370.c: In function ‘f’:
bug370.c:7:3: internal compiler error: in vect_analyze_stmt, at
tree-vect-stmts.c:8524
 } f(struct d *g) {
   ^
0xef7559 vect_analyze_stmt(gimple*, bool*, _slp_tree*, _slp_instance*)
        ../../trunk/gcc/tree-vect-stmts.c:8519
0xf1217a vect_slp_analyze_node_operations
        ../../trunk/gcc/tree-vect-slp.c:2510
0xf12075 vect_slp_analyze_node_operations
        ../../trunk/gcc/tree-vect-slp.c:2453
0xf175ef vect_slp_analyze_operations(vec<_slp_instance*, va_heap, vl_ptr>,
void*)


More information about the Gcc-bugs mailing list