re PR fortran/60956 (error reading (and writing) large text files in gfortran)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 7 Feb 2015 15:13:15 +0000 (15:13 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 7 Feb 2015 15:13:15 +0000 (15:13 +0000)
commit1060d9404d1ab275b540efe1c7868d08c07a81e1
tree81fec064d6dc7d20671ba02ca25c864dc9cec2f8
parentc0c91386b7ebd2c241d6ee2d5c172e57f5185472
re PR fortran/60956 (error reading (and writing) large text files in gfortran)

2015-02-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/60956
* io/fbuf.c (fbuf_flush_list): New function that only flushes
if current fbuf position exceeds a limit.
* io/fbuf.h: Declare the new function.
* io/io.h (enum unit_mode): Add two new modes.
* io/list_read.c (list_formatted_read_scalar): Call new function.
* io/write.c: Include fbuf.h. (list_formatted_write_scalar):
Call new function.

From-SVN: r220505
libgfortran/ChangeLog
libgfortran/io/fbuf.c
libgfortran/io/fbuf.h
libgfortran/io/io.h
libgfortran/io/list_read.c
libgfortran/io/write.c