From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21593 invoked by alias); 26 Feb 2008 23:19:50 -0000 Received: (qmail 21521 invoked by uid 48); 26 Feb 2008 23:19:04 -0000 Date: Tue, 26 Feb 2008 23:19:00 -0000 Message-ID: <20080226231904.21520.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libfortran/35293] [4.4 Regression] truncation errors with gfortran.dg/streamio_11.f90, 3, 4 and 15. In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "tkoenig at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-02/txt/msg02796.txt.bz2 ------- 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