OSDN Git Service

2009-04-15 Janne Blomqvist <jb@gcc.gnu.org>
authorjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Apr 2009 19:38:32 +0000 (19:38 +0000)
committerjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Apr 2009 19:38:32 +0000 (19:38 +0000)
PR libfortran/38688
* io/transfer.c (finalize_transfer): Don't flush for advance='no'.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146134 138bc75d-0d04-0410-961f-82ee72b054a4

libgfortran/ChangeLog
libgfortran/io/transfer.c

index e0b9a2c..451cbce 100644 (file)
@@ -1,3 +1,8 @@
+2009-04-15  Janne Blomqvist  <jb@gcc.gnu.org>
+
+       PR libfortran/38688
+       * io/transfer.c (finalize_transfer): Don't flush for advance='no'.
+
 2009-04-15 Danny Smith  <dannysmith@clear.net.nz>
 
        * io/write.c (itoa) : Rename back to gfc_itoa.
index 717041d..94454a6 100644 (file)
@@ -3169,7 +3169,6 @@ finalize_transfer (st_parameter_dt *dtp)
       dtp->u.p.current_unit->saved_pos =
        dtp->u.p.max_pos > 0 ? dtp->u.p.max_pos - bytes_written : 0;
       fbuf_flush (dtp->u.p.current_unit, dtp->u.p.mode);
-      sflush (dtp->u.p.current_unit->s);
       return;
     }
   else if (dtp->u.p.current_unit->flags.form == FORM_FORMATTED