This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch, libgfortran] Committed stride0 check removal
- From: Janne Blomqvist <Janne dot Blomqvist at tkk dot fi>
- To: gfortran <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 30 Jul 2006 13:28:56 +0300
- Subject: [Patch, libgfortran] Committed stride0 check removal
Hi,
I committed as obvious the following patch which removes a check for
stride==0 that I had missed in my other patch
(http://gcc.gnu.org/ml/fortran/2006-06/msg00036.html ). This check is
unnecessary now that the 4.2 frontend never generates array descriptors
with stride 0, and the library so version has been bumped for 4.2.
--
Janne Blomqvist
2006-07-30 Janne Blomqvist <jb@gcc.gnu.org>
* io/transfer.c (transfer_array): Remove stride0 fix.
Index: transfer.c
===================================================================
--- transfer.c (revision 115817)
+++ transfer.c (working copy)
@@ -1229,9 +1229,6 @@ transfer_array (st_parameter_dt *dtp, gf
internal_error (&dtp->common, "transfer_array(): Bad type");
}
- if (desc->dim[0].stride == 0)
- desc->dim[0].stride = 1;
-
rank = GFC_DESCRIPTOR_RANK (desc);
for (n = 0; n < rank; n++)
{