This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: Fortran/PR19303 PATCH: Runtime selection of record markers for unformatted sequential io


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

Janne,

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
dependent?

-- 
Steve


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