This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, libgfortran] Fix PR26499 End of File incorrectly positioned after binary I/O.
2006-03-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/26499
* io/file_pos (st_rewind): Flush always.
* io/unix.c (fd_truncate): Return SUCCESS rather than FAILURE for
special files like /dev/null.
* io/transfer.c (st_write_done): Remove broken logic that
prevented
calling fd_truncate.
Unfortunately, I don't have time to regtest it, but I think it's OK.
Given that you tested it thoroughly, please apply it to trunk and wait
a week before applying to 4.1.
FX