This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/29921] [4.3 regression]: internal compiler error: in set_lattice_value, at tree-ssa-ccp.c:437



------- Comment #7 from hjl at lucon dot org  2006-11-22 19:34 -------
Reduced:

[hjl@gnu-14 29921]$ cat bar.f90 
      SUBROUTINE foo(DPRS,DEN,LBOT,LTOP,KTS,KTE)
      IMPLICIT NONE
      INTEGER,INTENT(IN) :: KTS,KTE
      INTEGER,INTENT(OUT) :: LBOT,LTOP
      REAL,DIMENSION(KTS:KTE),INTENT(IN) :: DPRS
      REAL, INTENT(IN) :: DEN
      REAL :: PSUM, SUMDP
      INTEGER :: L
      SUMDP=0.
      DO L=LTOP,LBOT
        SUMDP=SUMDP+DPRS(L)
      ENDDO
      SUMDP=1./SUMDP
      PSUM  =0.
      DO L=LTOP,LBOT
        PSUM=PSUM+DPRS(L)
      ENDDO
      PSUM  =PSUM*SUMDP
      IF(-DEN/PSUM.LT.5.E-5)THEN
        LBOT=0
      ENDIF
      END SUBROUTINE foo
[hjl@gnu-14 29921]$ 


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]