This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/38668] advance="no": no buffering, truncate and seek
- From: "tkoenig at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Dec 2008 10:02:18 -0000
- Subject: [Bug libfortran/38668] advance="no": no buffering, truncate and seek
- References: <bug-38668-10391@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from tkoenig at gcc dot gnu dot org 2008-12-30 10:02 -------
Strange to say, this depends on the bittian-ness.
On x86_64-unknown-linux-gnu with -m32 and on i686-pc-linux-gnu, I get
the behavior described.
On x86_64-unknown-linux-gnu without -m32, I get
lseek(3, 9613, SEEK_SET) = 9613
ftruncate(3, 9613) = 0
write(3, "a", 1) = 1
lseek(3, 9614, SEEK_SET) = 9614
ftruncate(3, 9614) = 0
write(3, "a", 1) = 1
lseek(3, 9615, SEEK_SET) = 9615
ftruncate(3, 9615) = 0
write(3, "a", 1) = 1
lseek(3, 9616, SEEK_SET) = 9616
ftruncate(3, 9616) = 0
write(3, "a", 1) = 1
lseek(3, 9617, SEEK_SET) = 9617
ftruncate(3, 9617) = 0
write(3, "a", 1) = 1
lseek(3, 9618, SEEK_SET) = 9618
--
tkoenig at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38668