[Bug tree-optimization/57517] [4.7/4.8/4.9 Regression] internal compiler error: in eliminate_temp_copies, at tree-predcom.c:1913

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Nov 18 14:40:00 GMT 2013


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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Ok, so we are having a combined chain where the combination is in a
conditional path.

Reduced testcase:

SUBROUTINE cal_helicity (uh, ph, phb, wavg, ims, ime, its, ite)
  INTEGER, INTENT( IN ) :: ims, ime, its, ite
  REAL, DIMENSION( ims:ime), INTENT( IN ) :: ph, phb, wavg
  REAL, DIMENSION( ims:ime), INTENT( INOUT ) :: uh
  INTEGER :: i
  REAL :: zu
  DO i = its, ite
    zu =  (ph(i ) + phb(i)) + (ph(i-1) + phb(i-1))
    IF (wavg(i) .GT. 0) THEN
      uh(i) = uh(i) + zu 
    ENDIF
  END DO
END SUBROUTINE cal_helicity

which again fails on trunk as well.



More information about the Gcc-bugs mailing list