PR 44292 Handle large record lengths
commit2563a16d3c7a56cd1e0cfe9b4ccb702edfb12312
authorJanne Blomqvist <jb@gcc.gnu.org>
Sat, 18 Nov 2017 22:05:13 +0000 (19 00:05 +0200)
committerJanne Blomqvist <jb@gcc.gnu.org>
Sat, 18 Nov 2017 22:05:13 +0000 (19 00:05 +0200)
tree8e0e2ff952f1a8b84f943e814b65b68dfd0bbb94
parenta7a389d6eee846a877b79c733d853cd2e6b162da
PR 44292 Handle large record lengths

Now that the ABI supports large record lengths, there's a few places
in libgfortran where we need to use larger types. For internal units
which by definition are in-memory, it's enought to use ptrdiff_t, for
external units gfc_offset.

Regtested on x86_64-pc-linux-gnu?

libgfortran/ChangeLog:

2017-11-19  Janne Blomqvist  <jb@gcc.gnu.org>

        PR fortran/44292
* io/transfer.c (skip_record): Use gfc_offset to handle large
records.
(next_record_r): Likewise.
(sset): Likewise.
(next_record_w): Use gfc_offset/ptrdiff_t appropriately.

From-SVN: r254918
libgfortran/ChangeLog
libgfortran/io/transfer.c