re PR libfortran/35132 (Formatted stream I/O write should truncate)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Thu, 21 Feb 2008 02:27:07 +0000 (02:27 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Thu, 21 Feb 2008 02:27:07 +0000 (02:27 +0000)
commite32883d1a20e755d07956165d0f0362728c749f4
tree63b91da41f92dac4c36797756c45d2f7f9fff586
parentd5e0c0ae6254a3b019855e77df5c3af25a7da1db
re PR libfortran/35132 (Formatted stream I/O write should truncate)

2008-02-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/35132
* io/transfer.c (next_record_w): Truncate after the last record for
STREAM I/O.

PR libfortran/34954
* io/transfer.c (data_transfer_init): Initialize dtp->rec if writing.

PR libfortran/34974
* io/transfer.c (formatted_transfer_scalar): Flush the buffer if skips
is less than zero. (next_record_w): Use sseek to position the file to
the max position reached.

From-SVN: r132512
libgfortran/ChangeLog
libgfortran/io/transfer.c