From: Jerry DeLisle Date: Sat, 12 Apr 2014 00:04:41 +0000 (+0000) Subject: re PR fortran/60810 (list directed io from array results in end of file) X-Git-Tag: releases/gcc-5.1.0~8164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=861b2d2cdebc20803b0e6edbe8a0f736dc10711e;p=thirdparty%2Fgcc.git re PR fortran/60810 (list directed io from array results in end of file) 2014-04-11 Jerry DeLisle PR libfortran/60810 io/unit.c (is_trim_ok): If internal unit is array, do not trim. From-SVN: r209329 --- diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 6d92f9a655fe..7bfdfc439a0e 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,8 @@ +2014-04-11 Jerry DeLisle + + PR libfortran/60810 + io/unit.c (is_trim_ok): If internal unit is array, do not trim. + 2014-03-21 Jerry DeLisle PR libfortran/60148 diff --git a/libgfortran/io/unit.c b/libgfortran/io/unit.c index e522195e5ddd..385818adc1f5 100644 --- a/libgfortran/io/unit.c +++ b/libgfortran/io/unit.c @@ -382,9 +382,7 @@ static bool is_trim_ok (st_parameter_dt *dtp) { /* Check rank and stride. */ - if (dtp->internal_unit_desc - && (GFC_DESCRIPTOR_RANK (dtp->internal_unit_desc) > 1 - || GFC_DESCRIPTOR_STRIDE(dtp->internal_unit_desc, 0) != 1)) + if (dtp->internal_unit_desc) return false; /* Format strings can not have 'BZ' or '/'. */ if (dtp->common.flags & IOPARM_DT_HAS_FORMAT)