This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/29627] [4.2/4.1 only] partial unformatted reads shouldn't succeed
- From: "tkoenig at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Nov 2006 11:22:43 -0000
- Subject: [Bug libfortran/29627] [4.2/4.1 only] partial unformatted reads shouldn't succeed
- References: <bug-29627-10391@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from tkoenig at gcc dot gnu dot org 2006-11-03 11:22 -------
Subject: Bug 29627
Author: tkoenig
Date: Fri Nov 3 11:22:27 2006
New Revision: 118453
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118453
Log:
2006-11-03 Thomas Koenig <Thomas.Koenig@online.de>
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): Separate codepaths
for stream and record unformatted I/O. 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-03 Thomas Koenig <Thomas.Koenig@online.de>
PR libfortran/29627
Backport from trunk
* gfortran.dg/unf_short_record_1.f90: New test.
Added:
branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/unf_short_record_1.f90
Modified:
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
branches/gcc-4_2-branch/libgfortran/ChangeLog
branches/gcc-4_2-branch/libgfortran/io/transfer.c
branches/gcc-4_2-branch/libgfortran/libgfortran.h
branches/gcc-4_2-branch/libgfortran/runtime/error.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29627