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]

fortran/893: Preliminary loop exit compiled wrongly



>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:

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