diff options
author | jvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-04-12 00:04:41 +0000 |
---|---|---|
committer | jvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-04-12 00:04:41 +0000 |
commit | 5586221933a20e23fe752d3d84ca32384cb4544d (patch) | |
tree | 662a26cb7f03dbe7c1c2bb3832a0425e333c1b41 | |
parent | 4012a98606090eeb906fd6d4affb6dc079086f2e (diff) | |
download | gcc-5586221933a20e23fe752d3d84ca32384cb4544d.tar.gz |
2014-04-11 Jerry DeLisle <jvdelisle@gcc.gnu>
PR libfortran/60810
io/unit.c (is_trim_ok): If internal unit is array, do not trim.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@209329 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | libgfortran/ChangeLog | 5 | ||||
-rw-r--r-- | libgfortran/io/unit.c | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 6d92f9a655f..7bfdfc439a0 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,8 @@ +2014-04-11 Jerry DeLisle <jvdelisle@gcc.gnu> + + PR libfortran/60810 + io/unit.c (is_trim_ok): If internal unit is array, do not trim. + 2014-03-21 Jerry DeLisle <jvdelisle@gcc.gnu> PR libfortran/60148 diff --git a/libgfortran/io/unit.c b/libgfortran/io/unit.c index e522195e5dd..385818adc1f 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) |