This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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++)
     {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]