This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Optimization bug in current snapshot
- To: Martin Kahlert <martin dot kahlert at infineon dot com>
- Subject: Re: Optimization bug in current snapshot
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Sat, 11 Nov 2000 21:09:02 +0100
- CC: gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <200011071424.PAA09180@keksy.muc.infineon.com>
Martin Kahlert wrote:
> this shows an optimization error with g77 -O on i686-pc-linux-gnu
> (gcc-20001106):
>
> REAL*8 VALUE(2), TOLD, BK
> DATA VALUE /0D0, 1D0/
> DATA TOLD /0D0/
>
> DO I=1, 2
> BK = VALUE(I)
> IF(BK .GT. TOLD) GOTO 10
> ENDDO
>
> WRITE(*,*) 'Error: BK = ', BK
> STOP
>
> 10 WRITE(*,*) 'No Error: BK = ', BK
> END
I've simplified this somewhat and added it to the g77 testsuite. AFAICS
it only fails on i?86.
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://g95.sourceforge.net/ (under construction)