https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60956
--- Comment #10 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- Author: jvdelisle Date: Mon Mar 23 00:16:01 2015 New Revision: 221578 URL: https://gcc.gnu.org/viewcvs?rev=221578&root=gcc&view=rev Log: 2015-03-22 Jerry DeLisle <jvdeli...@gcc.gnu.org> PR libgfortran/60956 Backport from mainline * 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. Modified: branches/gcc-4_9-branch/libgfortran/ChangeLog branches/gcc-4_9-branch/libgfortran/io/fbuf.c branches/gcc-4_9-branch/libgfortran/io/fbuf.h branches/gcc-4_9-branch/libgfortran/io/io.h branches/gcc-4_9-branch/libgfortran/io/list_read.c branches/gcc-4_9-branch/libgfortran/io/write.c