On Tue, Sep 11, 2007 at 03:50:39PM +0100, Fran?ois-Xavier Coudert wrote: > The last few days have seen a regression in the Fortran testsuite on > i386-linux and x86_64-linux (filed as PR33391). The following code > gives wrong results at -O2 while it works at -O1: > > program test > integer(kind=1) :: i > > do i = -128, 127 > end do > if (i /= -128) call abort > end program test > > > Also of interest, gfortran.dg/vect/vect-{1,2,4}.f90 have started > failing on ia64 and i386 (but not x86_64 and i686, apparently). >
See the long thread I started at http://gcc.gnu.org/ml/gcc/2007-09/msg00043.html According to honza some inlining changes have broken gfortran http://gcc.gnu.org/ml/gcc/2007-09/msg00044.html such that the overflowing of the index i is now detected and disallowed. I haven't tried to verify nor find the exact commit that broke gfortran. One can supposely add -fno-strict-overflow, but I think that this is bogus and whatever commit is causing the regression should be reverted. -- Steve