------- Comment #6 from kargl at gcc dot gnu dot org  2008-03-20 00:56 -------
(In reply to comment #4)
> Since I do not have access to this system, can you try this:
> 
> Index: transfer.c
> ===================================================================
> --- transfer.c  (revision 133275)
> +++ transfer.c  (working copy)
> @@ -2604,7 +2604,8 @@ next_record_w (st_parameter_dt *dtp, int
>           if (is_stream_io (dtp))
>             {
>               dtp->u.p.current_unit->strm_pos += len;
> -             struncate(dtp->u.p.current_unit->s);
> +             if (done)
> +               struncate(dtp->u.p.current_unit->s);
>             }
>         }
> 
> streamio_15.f90 passes with this and it should reduce the number of calls to
> truncate.  If this fixes it, then I would think we have some other latent bug
> and not really fixed it.
> 

The patch does not fix the problem.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35632

Reply via email to