This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/35632] [Regression] stream io broken on FreeBSD due to ftruncate changes.
- From: "hp at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Mar 2008 04:43:13 -0000
- Subject: [Bug fortran/35632] [Regression] stream io broken on FreeBSD due to ftruncate changes.
- References: <bug-35632-10110@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from hp at gcc dot gnu dot org 2008-03-19 04:43 -------
(In reply to comment #2)
> Hmmm, reverting Hans-Peter's patch does not fix the problem. Apologies
> to Hans-Peter for jumping the gun.
Apology accepted. FWIW, looking at your strace output and streamio_4.f90, it
seems this fd 0x3 isn't a special file and the ftruncate calls succeed, so my
patch shouldn't have had any effect. But you know that now. I did a similar
strace for streamio_4 on x86_64-unknown-linux-gnu with r132965 and came to the
same conclusions; the lots-of-small-increment ftruncate-calls were introduced
with r132512 and not affected by my patch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35632