Re: Need Help: compiling old Fortran program



On Jun 29, 12:23 pm, Förster vom Silberwald <chain_l...@xxxxxxxxxxx>
wrote:


Maybe as an addenmdum: using the F90 compiler on our Sun workstations
I get through the compiling stage:

==
igam02ws% f90 ./R*.f -c

IF (R(J) .EQ. 0.D0) GO TO 30
^
"./RADINV.f", Line = 540, Column = 36: WARNING: Transfer of control
into the DO loop starting at line 542 is not safe.

f90comp: 1159 SOURCE LINES
f90comp: 0 ERRORS, 1 WARNINGS, 0 OTHER MESSAGES, 0 ANSI
==

Silly question: I always thought gnu compilers are more forgiveable.
As already written my first turn was under a g77 compiler on my
Macintosh.

Sorry typo: posted the output of the extended program written in 1984.
However, the output related to my original program by means of a F90
compiler on the Sun. F90 accepts it:

==
igam02ws% f90 ./preprces.f -c

IF (R(J) .EQ. 0.D0) GO TO 40
^
"./preprces.f", Line = 585, Column = 36: WARNING: Transfer of control
into the DO loop starting at line 587 is not safe.

5 (QSAVE(I,J,3,L3) .GT. Q1EST))) GO TO
160

^
"./preprces.f", Line = 1189, Column = 69: WARNING: Transfer of control
into the DO loop starting at line 1190 is not safe.

f90comp: 1257 SOURCE LINES
f90comp: 0 ERRORS, 2 WARNINGS, 0 OTHER MESSAGES, 0 ANSI
==

.



Relevant Pages

  • Re: Letter to US Sen. Byron Dorgan re unpaid overtime
    ... >> both less efficient and less safe than the Fortran and Basic standard. ... >> The C for loop is actually trying to do what a do loop does. ... sloppy thinking that results from confusing a programming language ... > I do not believe that you are capable of writing a conforming C compiler. ...
    (comp.programming)
  • Re: Letter to US Sen. Byron Dorgan re unpaid overtime
    ... it's a for loop in the C sense. ... > sloppy thinking that results from confusing a programming language ... >> I do not believe that you are capable of writing a conforming C compiler. ... Does Microsoft's C compiler perform this optimisation? ...
    (comp.programming)
  • Re: Histogram of character frequencies
    ... generated object code may simply be a loop in which elements are ... believe any C compiler anywhere would reject it. ... On the first iteration of the loop you test the end of file indicator ...
    (comp.lang.c)
  • Re: Fridays the thirteenth. (And a little puzzle.)
    ... -- compiler) is the usual method ... int febdays ... -- We're going to go round a loop dealing with each year in turn. ... -- other languages call) ...
    (uk.people.silversurfers)
  • Re: Interesting article by Randall Hyde
    ... >>> a test before executing the loop. ... is a compiler writer forced to ... And another thing you might consider is that compiler optimization was ... Then the programmer will have to protect the execution of that loop. ...
    (comp.lang.asm.x86)