]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libfortran/38668 (advance="no": no buffering, truncate and seek)
authorJanne Blomqvist <jb@gcc.gnu.org>
Wed, 15 Apr 2009 19:38:32 +0000 (22:38 +0300)
committerJanne Blomqvist <jb@gcc.gnu.org>
Wed, 15 Apr 2009 19:38:32 +0000 (22:38 +0300)
2009-04-15  Janne Blomqvist  <jb@gcc.gnu.org>

PR libfortran/38688
* io/transfer.c (finalize_transfer): Don't flush for advance='no'.

From-SVN: r146134

libgfortran/ChangeLog
libgfortran/io/transfer.c

index e0b9a2c7a52b428dc7830457a1c60eb58d5510f0..451cbce119dd1dd04b856f4607484c81cc214a25 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 717041d0b41d3b83452b1d7f820d1de628c52501..94454a6776f405610a40a8974f7f70ab3aede243 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