From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30780 invoked by alias); 9 Mar 2010 14:41:42 -0000 Received: (qmail 30737 invoked by alias); 9 Mar 2010 14:41:29 -0000 Date: Tue, 09 Mar 2010 14:41:00 -0000 Message-ID: <20100309144129.30736.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/43265] [4.3/4.4/4.5 Regression] No EOF condition if reading with '(x)' from an empty file In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jvdelisle 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: 2010-03/txt/msg00796.txt.bz2 ------- Comment #12 from jvdelisle at gcc dot gnu dot org 2010-03-09 14:41 ------- Subject: Bug 43265 Author: jvdelisle Date: Tue Mar 9 14:41:17 2010 New Revision: 157310 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157310 Log: 2010-03-09 Jerry DeLisle PR libfortran/43265 * io/read.c: Include fbuf.h and unix.h to enable lower level I/O for read_x. (read_x): Replace the use of read_sf with equivalent lower level I/O, eliminating unneeded code and handling EOF and EOR conditions. * io/io.h: Revise prototype for read_sf. * io/transfer.c (read_sf): Delete no_error parameter and all uses of it. (read_block_form): Likewise. (next_record_r): Delete wrong code call to hit_eof. Modified: trunk/libgfortran/ChangeLog trunk/libgfortran/io/io.h trunk/libgfortran/io/read.c trunk/libgfortran/io/transfer.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43265