OSDN Git Service

Update file position for inquire lazily.
authorjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 31 Oct 2011 14:59:19 +0000 (14:59 +0000)
committerjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 31 Oct 2011 14:59:19 +0000 (14:59 +0000)
commit68f57f43da4451a9e2d4a281a8cf93292087df7d
tree41e75a36bf344be0552dbdadfdb4a498e01f5710
parent411780149a7445ab51177f7337ac89748a09d143
Update file position for inquire lazily.

libgfortran ChangeLog:

2011-10-31  Janne Blomqvist  <jb@gcc.gnu.org>

* io/inquire.c (inquire_via_unit): Check whether we're at the
beginning or end if the position is unspecified. If the position
is not one of the 3 standard ones, return unspecified.
* io/io.h (update_position): Remove prototype.
* io/transfer.c (next_record): Set the position to unspecified,
letting inquire figure it out more exactly when needed.
* io/unit.c (update_position): Remove function.

testsuite ChangeLog:

2011-10-31  Janne Blomqvist  <jb@gcc.gnu.org>

* gfortran.dg/inquire_5.f90: Update testcase to match the standard
and current implementation.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180703 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/inquire_5.f90
libgfortran/ChangeLog
libgfortran/io/inquire.c
libgfortran/io/io.h
libgfortran/io/transfer.c
libgfortran/io/unit.c