This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/20179] cannot mix C and Fortran I/O
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Oct 2005 13:25:30 -0000
- Subject: [Bug libfortran/20179] cannot mix C and Fortran I/O
- References: <bug-20179-9955@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #25 from fxcoudert at gcc dot gnu dot org 2005-10-30 13:25 -------
Subject: Bug 20179
Author: fxcoudert
Date: Sun Oct 30 13:25:25 2005
New Revision: 106018
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106018
Log:
PR libfortran/20179
* io/unix.c (flush_if_preconnected): New function.
* io/io.h: Add prototype for flush_if_preconnected.
* io/transfer.c (data_transfer_init): Use flush_if_preconnected
to workaround buggy mixed C-Fortran code.
* gfortran.dg/mixed_io_1.f90: New test.
* gfortran.dg/mixed_io_1.c: New file.
Added:
branches/gcc-4_0-branch/gcc/testsuite/gfortran.dg/mixed_io_1.c
- copied unchanged from r106017,
trunk/gcc/testsuite/gfortran.dg/mixed_io_1.c
branches/gcc-4_0-branch/gcc/testsuite/gfortran.dg/mixed_io_1.f90
- copied unchanged from r106017,
trunk/gcc/testsuite/gfortran.dg/mixed_io_1.f90
Modified:
branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
branches/gcc-4_0-branch/libgfortran/ChangeLog
branches/gcc-4_0-branch/libgfortran/io/io.h
branches/gcc-4_0-branch/libgfortran/io/transfer.c
branches/gcc-4_0-branch/libgfortran/io/unix.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20179