OSDN Git Service

2010-06-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 19 Jun 2010 00:58:28 +0000 (00:58 +0000)
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 19 Jun 2010 00:58:28 +0000 (00:58 +0000)
commit7fb4c5ad9005b8c91da010b58b194cfbdf8d675b
treec26ee912ace44e4f202d4c98d4191a4565da6421
parent09fe04473a1196781f6b5249d6b39fe878a03f20
2010-06-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/44477
* io/file_pos.c (st_endfile): Add check for ENDFILE when file is
already positioned after the EOF marker. Use find_or_create_unit
instead of find_unit. If unit is not connected, connect it and create
the file with default settings.
* io/transfer.c (data_transfer_init):  Add check for attempted READ or
WRITE when file is already positioned after the EOF marker.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161020 138bc75d-0d04-0410-961f-82ee72b054a4
libgfortran/ChangeLog
libgfortran/io/file_pos.c
libgfortran/io/transfer.c