Update file position for inquire lazily.
authorJanne Blomqvist <jb@gcc.gnu.org>
Mon, 31 Oct 2011 14:59:19 +0000 (16:59 +0200)
committerJanne Blomqvist <jb@gcc.gnu.org>
Mon, 31 Oct 2011 14:59:19 +0000 (16:59 +0200)
commit08810e5257936014e242527cdbb2de6beddf24e8
tree41e75a36bf344be0552dbdadfdb4a498e01f5710
parent3469bd8660b6c79a4727287ef4214d2b9c864ba6
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.

From-SVN: r180703
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