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

--- Comment #2 from Zhendong Su <su at cs dot ucdavis.edu> ---
Here is another test case that triggers the same ICE: 

$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-unknown-linux-gnu/4.10.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-trunk/configure --prefix=/usr/local/gcc-trunk
--enable-languages=c,c++ --disable-werror --enable-multilib
Thread model: posix
gcc version 4.10.0 20140804 (experimental) [trunk revision 213529] (GCC) 
$ 
$ gcc-trunk -O3 small.c 
small.c: In function ‘main’:
small.c:9:1: internal compiler error: in check_probability, at
basic-block.h:956
 main ()
 ^
0xbb3e56 check_probability
    ../../gcc-trunk/gcc/basic-block.h:956
0xbb1631 check_probability
    ../../gcc-trunk/gcc/tree-vect-loop-manip.c:653
0xbb1631 combine_probabilities
    ../../gcc-trunk/gcc/basic-block.h:965
0xbb1631 slpeel_tree_peel_loop_to_edge
    ../../gcc-trunk/gcc/tree-vect-loop-manip.c:1371
0xbb19a4 vect_do_peeling_for_loop_bound(_loop_vec_info*, tree_node*,
tree_node*, unsigned int, bool)
    ../../gcc-trunk/gcc/tree-vect-loop-manip.c:1761
0xba2b07 vect_transform_loop(_loop_vec_info*)
    ../../gcc-trunk/gcc/tree-vect-loop.c:5853
0xbbfae6 vectorize_loops()
    ../../gcc-trunk/gcc/tree-vectorizer.c:478
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.
$ 


--------------------------


struct
{
  unsigned int f0;
} a;

int b, c;

int
main ()
{
  unsigned int d;
  int e[5];

  for (; b < 1; b++)
    d = 0;
  for (; d < 1; d++)
    a.f0 = 0;
  for (; a.f0 < 1; a.f0++)
    ;
  for (c = 0; c < 5; c++)
    e[c] = 1;
  if (e[0])
    c = 0;

  return 0;
}

Reply via email to