This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/19303] [4.1 only] Unformatted record header is 4-bytes on 32-bit targets
- 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: 31 Mar 2006 21:13:50 -0000
- Subject: [Bug libfortran/19303] [4.1 only] Unformatted record header is 4-bytes on 32-bit targets
- References: <bug-19303-3791@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #23 from tkoenig at gcc dot gnu dot org 2006-03-31 21:13 -------
Subject: Bug 19303
Author: tkoenig
Date: Fri Mar 31 21:13:46 2006
New Revision: 112590
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112590
Log:
PR fortran/19303
Backport from mainline
* libgfortran.h (compile_options_t): Add record_marker.
* runtime/compile_options.c (set_record_marker):
New function.
* io/open.c: If we have four-byte record markers, use
GFC_INTEGER_4_HUGE as default record length.
* io/file_pos.c (unformatted_backspace): Handle
different size record markers.
* io/transfer.c (us_read): Likewise.
(us_write): Likewise.
(next_record_r): Likewise.
(write_us_marker): Likewise.
(next_record_w): Likewise.
2006-03-31 Thomas Koenig <Thomas.Koenig@online.de>
PR fortran/19303
Backport from mainline
* gfortran.dg/record_marker_1.f90: New test case.
* gfortran.dg/record_marker_2.f: New test case.
* gfortran.dg/record_marker_3.f90: New test case.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/record_marker_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/record_marker_2.f
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/record_marker_3.f90
Modified:
branches/gcc-4_1-branch/gcc/fortran/ChangeLog
branches/gcc-4_1-branch/gcc/fortran/gfortran.h
branches/gcc-4_1-branch/gcc/fortran/invoke.texi
branches/gcc-4_1-branch/gcc/fortran/lang.opt
branches/gcc-4_1-branch/gcc/fortran/options.c
branches/gcc-4_1-branch/gcc/fortran/trans-decl.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
branches/gcc-4_1-branch/libgfortran/ChangeLog
branches/gcc-4_1-branch/libgfortran/io/file_pos.c
branches/gcc-4_1-branch/libgfortran/io/open.c
branches/gcc-4_1-branch/libgfortran/io/transfer.c
branches/gcc-4_1-branch/libgfortran/libgfortran.h
branches/gcc-4_1-branch/libgfortran/runtime/compile_options.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19303