From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30855 invoked by alias); 4 Nov 2006 14:04:48 -0000 Received: (qmail 30830 invoked by alias); 4 Nov 2006 14:04:38 -0000 Date: Sat, 04 Nov 2006 14:04:00 -0000 Message-ID: <20061104140438.30829.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libfortran/29627] [4.1 only] partial unformatted reads shouldn't succeed 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-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-11/txt/msg00260.txt.bz2 List-Id: ------- Comment #10 from tkoenig at gcc dot gnu dot org 2006-11-04 14:04 ------- Subject: Bug 29627 Author: tkoenig Date: Sat Nov 4 14:04:27 2006 New Revision: 118480 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118480 Log: 2006-11-04 Thomas Koenig PR libfortran/29627 Backport from trunk * libgfortran.h: Add ERROR_SHORT_RECORD * runtime/error.c (translate_error): Add case for ERROR_SHORT_RECORD. * io/transfer.c (read_block_direct): Remove unneeded tests for standard input, padding and formatted I/O. If the record is short, read in as much data as possible, then raise the error. 2006-11-04 Thomas Koenig PR libfortran/29627 Backport from trunk * gfortran.dg/unf_short_record_1.f90: New test. Added: branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/unf_short_record_1.f90 Modified: branches/gcc-4_1-branch/gcc/testsuite/ChangeLog branches/gcc-4_1-branch/libgfortran/ChangeLog branches/gcc-4_1-branch/libgfortran/io/transfer.c branches/gcc-4_1-branch/libgfortran/libgfortran.h branches/gcc-4_1-branch/libgfortran/runtime/error.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29627