PR 56981 Flush buffer at record boundary if possible.
commit155fbd31d06d6603c92572185c1175b285a9ee3d
authorjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 8 Jun 2014 05:43:29 +0000 (8 05:43 +0000)
committerjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 8 Jun 2014 05:43:29 +0000 (8 05:43 +0000)
treece7c2693e80de90ba4a312ca3616c556a673856e
parent1b39e0dff8e1586b50d6e4f68feda702cf90d31d
PR 56981 Flush buffer at record boundary if possible.

2014-06-08  Janne Blomqvist  <jb@gcc.gnu.org>

PR libfortran/56981
* io/unix.h (struct stream_vtable): Add new member function,
markeor.
(smarkeor): New inline function.
(flush_if_unbuffered): Remove prototype.
* io/unix.c (raw_markeor): New function.
(raw_vtable): Initialize markeor member.
(buf_markeor): New function.
(buf_vtable): Initialize markeor member.
(mem_vtable): Likewise.
(mem4_vtable): Likewise.
(flush_if_unbuffered): Remove function.
* io/transfer.c (next_record): Call smarkeor instead of
flush_if_unbuffered.

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