From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26845 invoked by alias); 18 Oct 2011 13:00:23 -0000 Received: (qmail 26826 invoked by uid 22791); 18 Oct 2011 13:00:21 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 18 Oct 2011 13:00:01 +0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/50016] [4.6/4.7 Regression] Drastic I/O performance regression on Windows Date: Tue, 18 Oct 2011 13:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libfortran X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.2 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2011-10/txt/msg01799.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50016 --- Comment #14 from Tobias Burnus 2011-10-18 12:58:46 UTC --- Author: burnus Date: Tue Oct 18 12:58:42 2011 New Revision: 180138 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=180138 Log: 2011-10-18 Tobias Burnus Janne Blomqvist PR fortran/50016 * io/file_pos.c (st_flush): Call _commit on MinGW(-w64). * io/intrinsics.c (flush_i4, flush_i8): Ditto. * io/unix.c (flush_all_units_1, flush_all_units): Ditto. (buf_flush): Remove _commit call. * io/inquire.c (inquire_via_unit): Flush internal buffer and call file_length instead of invoking stat via file_size. Modified: branches/gcc-4_6-branch/libgfortran/ChangeLog branches/gcc-4_6-branch/libgfortran/io/file_pos.c branches/gcc-4_6-branch/libgfortran/io/inquire.c branches/gcc-4_6-branch/libgfortran/io/intrinsics.c branches/gcc-4_6-branch/libgfortran/io/unix.c