public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Toon Moene <toon@moene.indiv.nluug.nl>
To: Rob Willson <rwillson@emerald.tufts.edu>, gcc-help@gcc.gnu.org
Subject: Re: Problem with g77 Fortran
Date: Wed, 10 Jul 2002 14:55:00 -0000	[thread overview]
Message-ID: <3D2CAD6B.9A02198C@moene.indiv.nluug.nl> (raw)
In-Reply-To: <3D24A9AC.4A816DA6@moene.indiv.nluug.nl>

I wrote:

> Rob Willson wrote:

> > open(unit=1,file='datafile.dat', recl=132,status='old')

> >       Read(1,10) x,y,z
> > 10    FOrmat(3f10.2)
> >
> > When I say:  f77 -o prog prog.f , I get a statement.." sfe: formatted io
> > is not allowed"
> 
> The "recl=132" makes the run time library think this is a direct access
> file.  Removing it will make the program work.

This analysis is not correct - it makes the run time library think this
is an unformatted file.

> I'll look up whether this is correct behaviour.

I asked around on comp.lang.fortran; this is the result:

Fortran 77 left this open - Fortran 90 interpreted it as:  The record
length is the maximum you can use (write to) on sequential I/O.

I made a fix to the g77 run time library to allow RECL=nnn without
having it assuming you want unformatted I/O.

This change will be in the next major release.

Cheers,

-- 
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)

      reply	other threads:[~2002-07-10 21:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-03 14:13 Rob Willson
2002-07-04 13:38 ` Toon Moene
2002-07-10 14:55   ` Toon Moene [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D2CAD6B.9A02198C@moene.indiv.nluug.nl \
    --to=toon@moene.indiv.nluug.nl \
    --cc=gcc-help@gcc.gnu.org \
    --cc=rwillson@emerald.tufts.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).