From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4604 invoked by alias); 6 Feb 2015 15:00:31 -0000 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 Received: (qmail 4482 invoked by uid 48); 6 Feb 2015 15:00:27 -0000 From: "jvdelisle at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/60956] [4.8/4.9/5 Regression] error reading (and writing) large text files in gfortran Date: Fri, 06 Feb 2015 15:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.7.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jvdelisle at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-02/txt/msg00582.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60956 --- Comment #7 from Jerry DeLisle --- I have finished reviewing the code. We do have specific functions called for list directed reads and writes where we know we will have no back and forth tabbing issues, so we can use fixed length buffering for these cases. write.c (list_formatted_write_scalar). I think set the buffering style in there by setting a function pointer or similar to switch the behavior. Very low overhead in doing so. (similar in the READ case)