OSDN Git Service

PR libfortran/20179
authorfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 30 Oct 2005 12:48:52 +0000 (12:48 +0000)
committerfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 30 Oct 2005 12:48:52 +0000 (12:48 +0000)
commit2488b3b658a0a6b4379c3b741a1e4293a6fba53a
treebc65843092bd8c38d837724dae7a759a0d4c5e3e
parentb3d3a36669ced44de3bc059a1b06f5ab24ac503b
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@106017 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/mixed_io_1.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/mixed_io_1.f90 [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/io/io.h
libgfortran/io/transfer.c
libgfortran/io/unix.c