[patch, libfortran] PR32235 incorrectly position text file after backspace
Jerry DeLisle
jvdelisle@verizon.net
Sun Jun 10 02:28:00 GMT 2007
:ADDPATCH fortran:
The attached patch fixes this bug by moving the code that tests for the end of
file condition from st_read, back to next_record_r. I have regression tested
this on x86-64-gnu-linux.
I need someone (HJ or Richard?) to test this with the SPEC testsuite to make
sure we do not regress there. (The patch is against libgfortran/io/transfer.c)
If it passes SPEC as well, OK for trunk?
Test case included.
Regards,
Jerry
2007-06-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/32235
* io/transfer.c (st_read): Remove test for end of file condition.
(next_record_r): Add test for end of file condition.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr32235.diff
Type: text/x-patch
Size: 942 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070610/3c48ed1e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: backspace_9.f
Type: text/x-fortran
Size: 1214 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070610/3c48ed1e/attachment-0001.bin>
More information about the Gcc-patches
mailing list