This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [patch,libgfortran] Fix PR29277 Formated stream output



> -----Original Message-----
> From: gcc-patches-owner@gcc.gnu.org 
> [mailto:gcc-patches-owner@gcc.gnu.org] On Behalf Of Jerry DeLisle
> Sent: Monday, 16 October 2006 9:47 a.m.
>
> 
> PING
> 
> I would suggest this patch go in as is.  This will work on 
> every system I can 
> find except mingw.  Cygwin does its own CR-LF magic.  This 
> should actually 
> execute fine on mingw, but will not embed a CR accept at the 
> ends of records. >

 
> > 2006-10-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
> > 
> >     PR libgfortran/29277
> >     * io/list_read.c (next_char): Update strm_pos.
> >     (eat_separator): Delete extra call to unget_char.
> >     * io/transfer.c (read_block): Use read_sf for formatted 
> stream I/O.
> >     (next_record_r): Update strm_pos for formatted stream 
> I/O and handle
> >     end-of-record correctly.
> >     (next_record_w): Ditto.
> >     (next_record): Enable next record (r/w) functions and 
> update strm_pos.
> >     (finalize_transfer): Call next_record to finish the record.
> > 
> > 

This causes no new regression on i686-pc-mingw32, after modfiying the
streamio_4.f90 testcase.
I have runtestsuite from cygwin bash shell, and I have also tested the
streamio tests manually in cmd.exe shell and zsh.exe shell

Thanks

Danny


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]