http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53796
Janne Blomqvist <jb at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jb at gcc dot gnu.org --- Comment #13 from Janne Blomqvist <jb at gcc dot gnu.org> 2012-06-30 20:09:46 UTC --- Considering that we IMHO want to support unformatted sequential records > 2 GB on 64-bit targets without the user having to explicitly specify RECL= when opening, I'd suggest making DEFAULT_RECL match huge(0_C_SIZE_T). The downside is then that if the user inquires for RECL on a 64-bit target where the RECL= variable is a 32-bit integer, we'll have to generate an error, per Steve Lionel's comments. Wrt. the signed vs. unsigned issue, POSIX specifies that off_t must be a signed type, so all file offset calculations (including record size stuff) should be done in signed arithmetic. Now, gfc_offset is a typedef for off_t (or the equivalent type on mingw), so AFAICS we should be ok.