Hi, 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? frontend ChangeLog: 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. -- Janne Blomqvist
ftell.diff
Description: Binary data