This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/39654] New: ABI bug: FTELL intrinsic function not capable of large files
- From: "jb at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Apr 2009 17:17:39 -0000
- Subject: [Bug fortran/39654] New: ABI bug: FTELL intrinsic function not capable of large files
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The FTELL function in libgfortran/io/intrinsics.c has the prototype
extern size_t PREFIX(ftell) (int *);
where the return value is the file position of the unit given in the int
argument. On 32-bit platforms this will not work for files > 4 GB. The return
type should be GFC_IO_INT which is a typedef for off_t which is 64-bit on LFS
capable systems.
--
Summary: ABI bug: FTELL intrinsic function not capable of large
files
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jb at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39654