http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47878
--- Comment #28 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2011-03-07 03:08:12 UTC --- Author: jvdelisle Date: Mon Mar 7 03:08:08 2011 New Revision: 170732 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170732 Log: 2011-03-06 Jakub Jelinek <ja...@redhat.com> Backport from mainline PR fortran/47878 * io/transfer.c (read_sf): Call fbuf_getptr only at the end, and subtract n, dtp->u.p.sf_seen_eor and seen_comma from it. 2011-03-06 Janne Blomqvist <j...@gcc.gnu.org> Jerry DeLisle <jvdeli...@gcc.gnu.org> Backport from mainline PR libfortran/47694 * io/io.h (fbuf_getptr): New inline function. * io/transfer.c (read_sf): Use fbuf_getptr and fbuf_getc to scan through the string instead of fbuf_read. Modified: branches/gcc-4_4-branch/libgfortran/ChangeLog branches/gcc-4_4-branch/libgfortran/io/io.h branches/gcc-4_4-branch/libgfortran/io/transfer.c