This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
fortran/893: Preliminary loop exit compiled wrongly
- To: gcc-gnats at gcc dot gnu dot org
- Subject: fortran/893: Preliminary loop exit compiled wrongly
- From: toon at moene dot indiv dot nluug dot nl
- Date: 26 Nov 2000 16:30:48 -0000
- Reply-To: toon at moene dot indiv dot nluug dot nl
>Number: 893
>Category: fortran
>Synopsis: Preliminary loop exit compiled wrongly
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 26 08:36:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: Martin Kahlert
>Release: current snapshots
>Organization:
>Environment:
i?86-linux
>Description:
The following code:
DOUBLE PRECISION 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
CALL ABORT
10 CONTINUE
WRITE(*,*)'No Error: BK = ', BK
END
which is g77 (execute) testsuite item 20001111.f compiles
wrongly on i?86-linux with any optimisation on.
>How-To-Repeat:
g77 -O 20001111.f
on i?86-linux
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: