Created attachment 28856 [details] reduced testcase Compiler output: $ gcc -O -ftree-vectorize testcase.C testcase.C: In function 'void test01()': testcase.C:13:1: internal compiler error: in check_probability, at basic-block.h:944 test01 () ^ 0x84ddff check_probability /mnt/svn/gcc-trunk/gcc/basic-block.h:944 0x84ddff inverse_probability /mnt/svn/gcc-trunk/gcc/basic-block.h:972 0x84ddff scale_loop_profile(loop*, int, int) /mnt/svn/gcc-trunk/gcc/cfgloopmanip.c:522 0xd85d4e vect_transform_loop(_loop_vec_info*) /mnt/svn/gcc-trunk/gcc/tree-vect-loop.c:5739 0xd9e426 vectorize_loops() /mnt/svn/gcc-trunk/gcc/tree-vectorizer.c:124 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. $ gcc -v Using built-in specs. COLLECT_GCC=/mnt/svn/gcc-trunk/binary-latest/bin/gcc COLLECT_LTO_WRAPPER=/mnt/svn/gcc-trunk/binary-194017-lto-fortran-checking-yes-rtl-df/libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /mnt/svn/gcc-trunk//configure --enable-checking=yes,rtl,df --enable-languages=c,c++,lto,fortran --prefix=/mnt/svn/gcc-trunk/binary-194017-lto-fortran-checking-yes-rtl-df/ --without-cloog --without-ppl Thread model: posix gcc version 4.8.0 20121201 (experimental) (GCC) Tested revisions: r194017 - crash
Revision 190641 is OK. Revision 193382 gives the ICE. Note that there is no ICE for revision 194020 configured with --enable-checking=release.
Started with http://gcc.gnu.org/viewcvs?view=revision&revision=193667
Simplified testcase (in C): int *bar (void); void foo (void) { long x; int *y = bar (); for (x = -1 / sizeof (int); x; --x, ++y) *y = 0; }
I think this actually started with http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193241 instead.
It is caused by revision 193241: http://gcc.gnu.org/ml/gcc-cvs/2012-11/msg00188.html
Mine.
Author: hubicka Date: Wed Jan 9 21:29:07 2013 New Revision: 195067 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195067 Log: PR tree-optimization/55569 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type. * cfgloop.h (scale_loop_profile): Likewise. Added: trunk/gcc/testsuite/gcc.c-torture/compile/pr55569.c (with props) Modified: trunk/gcc/ChangeLog trunk/gcc/cfgloop.h trunk/gcc/cfgloopmanip.c trunk/gcc/testsuite/ChangeLog Propchange: trunk/gcc/testsuite/gcc.c-torture/compile/pr55569.c ('svn:mime-type' added)
Fixed.