libgfortran/io/io.h defines the "struct st_parameter_open" with
However, the Fortran 95/2003/2008 standard allows any kind of integer expression and not only the default type. As http://gcc.gnu.org/ml/fortran/2010-05/msg00302.html shows, gfortran currently fails if the RECL= is larger than 2 GB.
Expected: The size is increased to GFC_INTEGER_8 to allow large-record access.
See also http://gcc.gnu.org/wiki/LibgfortranAbiCleanup
I would like to work this one.
I have managed a patch that writes one very big record as in the test case. I don't have sufficient memory to actually test a read.
It should be noted that the record length stored in gfc_unit which is created at runtime is a 64 bit value already. The front-end changes needed to support large record lengths is almost trivial.
On the library side, writing is fairly simple as well. Reading is a little bit more complicated. Hopefully soon I will post a partial patch (or maybe even a complete but untested one) I know Steve has a machine with lots of RAM, is there anyone else who would like to help with testing this?
See also: PR 29602