2014-04-11 Jerry DeLisle <jvdelisle@gcc.gnu>
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 12 Apr 2014 00:04:41 +0000 (00:04 +0000)
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 12 Apr 2014 00:04:41 +0000 (00:04 +0000)
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

libgfortran/ChangeLog
libgfortran/io/unit.c

index 6d92f9a..7bfdfc4 100644 (file)
@@ -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
index e522195..385818a 100644 (file)
@@ -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)