[Bug libfortran/35293] [4.4 Regression] truncation errors with gfortran.dg/streamio_11.f90, 3, 4 and 15.
hp at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Feb 24 20:15:00 GMT 2008
------- Comment #3 from hp at gcc dot gnu dot org 2008-02-24 20:14 -------
(In reply to comment #1)
> Are you testing
> with a simulator on x86_64-unknown-linux-gnu? I am trying to understand the
> environment. :)
Hm, I thought I was clear enough with the bug report unambiguously indicating a
cross target, with the *-elf indicating and the message pointed to saying
"(remember, cris-elf is one of those challenged newlib simulator targets)" but
to wit: yes, your reading is correct. If there's a clearer way of saying it,
send patches.
For the pr35132.f90 attachment, abort is called and "hexdump -C foo.txt"
produces:
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000010 00 00 00 00 00 31 32 33 34 35 36 0a 61 62 63 64 |.....123456.abcd|
00000020 65 66 0a 71 77 65 72 74 79 0a |ef.qwerty.|
0000002a
(foo.txt will also be attached as-is for your enjoyment)
I'll work on a patch to unix.c:fd_truncate.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35293
More information about the Gcc-bugs
mailing list