GCC trunk gets an internal compiler error when building SPEC CPU2006 test 416.gamess with "-O2 -floop-interchange" on powerpc-linux, as demonstrated by this minimized testcase:
SUBROUTINE EFGRDM(NCF,NFRG,G,RTRMS,GM,IOPT,K1) IMPLICIT DOUBLE PRECISION (A-H,O-Z) DIMENSION G(*),RTRMS(*),GM(*) DUM = 0 DO I=1,NFRG DO J=1,3 IF (IOPT.EQ.0) THEN GM(K1)=G(K1) END IF END DO DO J=1,3 JDX=NCF*9+IOPT*9*NFRG DO M=1,3 DUM=DUM+RTRMS(JDX+M) END DO GM(K1)=DUM END DO END DO RETURN END elm3b187% /opt/gcc-nightly/trunk/bin/gfortran -c -O2 -floop-interchange bug.f bug.f: In function efgrdm: bug.f:1:0: internal compiler error: in scan_tree_for_params, at graphite-sese-to-poly.c:815 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. A Graphite-enabled trunk build is broken during the 19-hour range from r150250 to 150300. The test passes with the build just before that range and fails with r150301, the first revision that builds after a merge from the Graphite branch. -- Summary: ICE in Graphite's scan_tree_for_params for 416.gamess 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: powerpc-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42285