[Patch, libgfortran] Fix PR26499 End of File incorrectly positioned after binary I/O.
Jerry DeLisle
jvdelisle@verizon.net
Sat Mar 4 00:53:00 GMT 2006
:REVIEWPATCH:
This is the third installment of this patch. Dale developed a test program that
tests many combinations using rewind instead of backspace and found another failure.
The attached revised patch is against current trunk and replaces the previous
two patches I submitted. I will include the test cases already given plus one more.
Once again, OK for trunk and 4.1.1? (Sorry for the repeats, but I fix them as
they come.)
Regards,
Jerry
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr26499.diff
Type: text/x-patch
Size: 4134 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20060304/4dd1142a/attachment.bin>
More information about the Fortran
mailing list