------- Comment #9 from tkoenig at gcc dot gnu dot org 2008-02-26 23:19 ------- (In reply to comment #8)
> > b) fail at runtime (noisily) and xfail the > > corresponding test cases > > *sigh* ok, I'll do it, except for the noise. Thanks a lot! You'll probably want to make the truncate a no-op if we are at the end of file already. IIRC, there may be a few places in the library where we call ftruncate() even if we don't really need to. > As I mentioned, there are a few > bugs there anyway, but nobody commented on that. We know :-( The alloc stream facility has quite a few bugs in unexpected places that tend to be exposed by seemingly harmless changes far away. It needs to be replaced someday, but so far nobody has made a start on this. This is PR 25561, dated 2005-12-25. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35293