------- 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