This is the mail archive of the
mailing list for the GCC project.
Re: Fortran/PR19303 PATCH: Runtime selection of record markers for unformatted sequential io
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: GNU GFortran <fortran at gcc dot gnu dot org>, GCC patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 18 Feb 2005 15:54:58 -0800
- Subject: Re: Fortran/PR19303 PATCH: Runtime selection of record markers for unformatted sequential io
- References: <20050218233325.GA7014@vipunen.hut.fi>
On Sat, Feb 19, 2005 at 01:33:25AM +0200, Janne Blomqvist wrote:
> - Although the code is structured so that each unit may use a
> different record marker format, currently the only way to change the
> format is via a magic command line switch "-frecm", whose value can be
> either "-frecm=g77" or "-frecm=hp" (the default format cannot be set
> with this switch and is the same format as gfortran previously
> used). It would be relatively straightforward to add an intrinsic to
> change the default record marker type for new units, or maybe
> implement it as an extra option to the OPEN statement.
This looks like a very useful option, particularly if one can
move access='direct' files between 32- and 64-bit machines and
simply flip on an option to read/write the file.
One question though. Why did you make this a magic option?
>From looking through the source, it seems you could modify
lang.opt, options.c, and invoke.texi and maek this a full-fledge
gfortran. Am I missing something that is perhpas system