On 06/20/2012 11:28 PM, Janne Blomqvist wrote:
the attached patch makes the FTELL intrinsic function work on offsets
larger than 2 GB on 32-bit systems that support large files. As this
is an ABI change the old library function is left untouched, to be
removed when/if the library ABI is bumped.
Regtested on x86_64-unknown-linux-gnu, Ok for trunk?
The patch is okay; however, I wonder whether a name like "ftell64" or
"ftell8" and a comment mentioning additionally the large-file support
will help when reading the file.
Thanks for the patch.
Tobias
2012-06-21 Janne Blomqvist <j...@gcc.gnu.org>
PR fortran/39654
* iresolve.c (gfc_resolve_ftell): Fix result kind and use new
library function.
library ChangeLog:
2012-06-21 Janne Blomqvist <j...@gcc.gnu.org>
PR fortran/39654
* io/intrinsics.c (ftell2): New function.
* gfortran.map (_gfortran_ftell2): Export function.