[Bug tree-optimization/40642] New: [4.5 regression] ICE with -fprofile-generate

bangerth at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Jul 3 16:43:00 GMT 2009


This is a regression in at least current mainline over 4.2. I can't check
4.3 and 4.4 for the moment. I found this working on a successor to the
447.dealII benchmark to be included in the next SPEC testsuite. It triggers
about half a dozen times on that code base.

Either way, here it is:
---------------------------
#include <vector>                                                               

void foo ()                                                                     
{                                                                               
  std::vector<std::vector<std::vector<int> > > v(3);                            
  for (unsigned int d=0; d<3; ++d)                                              
    v[d].resize (13);                                                           
}
---------------------------

>> c++ -O3 -fprofile-generate -c x.cc
x.cc: In function 'void foo()':
x.cc:8:1: error: EH edge 11->18 is missing
x.cc:8:1: error: unnecessary EH edge 11->23
x.cc:8:1: error: EH edge 16->18 is missing
x.cc:8:1: error: unnecessary EH edge 16->23
x.cc:8:1: internal compiler error: verify_flow_info failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


>> c++ -v                            
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../mainline/configure --enable-languages=c,c++
--enable-checking --with-mpfr=/home/bangerth/bin/x86
--with-gmp=/home/bangerth/bin/x86 --prefix=/home/bangerth/bin/x86/gcc-mainline
Thread model: posix
gcc version 4.5.0 20090703 (experimental) [trunk revision 149208] (GCC)


-- 
           Summary: [4.5 regression] ICE with -fprofile-generate
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bangerth at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40642



More information about the Gcc-bugs mailing list