This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Recent (middle-end?) regressions in the Fortran testsuite
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Fran?ois-Xavier Coudert <fxcoudert at gmail dot com>
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, GCC Development <gcc at gcc dot gnu dot org>
- Date: Tue, 11 Sep 2007 08:04:02 -0700
- Subject: Re: Recent (middle-end?) regressions in the Fortran testsuite
- References: <19c433eb0709110750x7beb4c26o7f01c577ad32e414@mail.gmail.com>
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