GCC trunk gets an internal compiler error when building SPEC CPU2006 test 447.dealII on powerpc64-linux with "-O2 -fgraphite-identity" or "-O2 -floop-parallelize-all" for either -m32 or -m64, as demonstrated by a minimized testcase that I'll attach to this PR. Perhaps someone else will be able to minimize it more.
elm3b149% /home/janis/tools/gcc-trunk-anonsvn/bin/g++ -c -O2 -fgraphite-identity bug.cc bug.cc: In member function void Base<dim>::getf2d(vector<Tensor<2, dim> >&) const [with int dim = 3]: bug.cc:38:6: internal compiler error: in expand_scalar_variables_expr, at sese.c:907 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. The testcase and dealII compile correctly with GCC 4.4.2 using "-O2 -fgraphite-identity". The failure starts with this patch: http://gcc.gnu.org/viewcvs?view=rev&rev=155739 r155739 | spop | 2010-01-08 16:07:18 +0000 (Fri, 08 Jan 2010) -- Summary: ICE in sese.c with -fgraphite-identity in 447.dealII 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: janis at gcc dot gnu dot org GCC target triplet: powerpc64-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43026