Part 1.1 of PR25561.
authorJanne Blomqvist <jb@gcc.gnu.org>
Fri, 16 May 2008 17:42:44 +0000 (20:42 +0300)
committerJanne Blomqvist <jb@gcc.gnu.org>
Fri, 16 May 2008 17:42:44 +0000 (20:42 +0300)
commit8947fd62fa9414017f0fe4f3075112e2a9ce9e44
treeb8d80d6121e1e056d1aaacd9882dd2ff45f168cb
parent65686652e48ae64f331078abe64b344e3318cfb8
Part 1.1 of PR25561.

2008-05-15  Janne Blomqvist  <jb@gcc.gnu.org>

PR libfortran/25561
* io/io.h (struct fbuf): Change pointer to position offset.
* io/fbuf.c (fbuf_init): Reduce default size of buffer, ptr=>pos
changes.
(fbuf_reset): ptr=>pos changes.
(fbuf_alloc): If the request doesn't fit, don't waste memory by
keeping flushed bytes. ptr=>pos changes.
(fbuf_flush): ptr=>pos changes.
(fbuf_seek): Don't seek past the left tab limit, don't update active
byte count.
* io/open.c (new_unit): If RECL has been specified, used that as
initial buffer size.

From-SVN: r135433
libgfortran/ChangeLog
libgfortran/io/fbuf.c
libgfortran/io/io.h
libgfortran/io/open.c