OSDN Git Service

2008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
[pf3gnuchains/gcc-fork.git] / libgfortran / generated / transpose_i8.c
index 4fd1664..37428dd 100644 (file)
@@ -1,5 +1,5 @@
 /* Implementation of the TRANSPOSE intrinsic
-   Copyright 2003, 2005 Free Software Foundation, Inc.
+   Copyright 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
    Contributed by Tobias Schlüter
 
 This file is part of the GNU Fortran 95 runtime library (libgfortran).
@@ -28,9 +28,9 @@ License along with libgfortran; see the file COPYING.  If not,
 write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 Boston, MA 02110-1301, USA.  */
 
-#include "config.h"
-#include <assert.h>
 #include "libgfortran.h"
+#include <assert.h>
+
 
 #if defined (HAVE_GFC_INTEGER_8)
 
@@ -44,7 +44,7 @@ transpose_i8 (gfc_array_i8 * const restrict ret,
 {
   /* r.* indicates the return array.  */
   index_type rxstride, rystride;
-  GFC_INTEGER_8 *rptr;
+  GFC_INTEGER_8 * restrict rptr;
   /* s.* indicates the source array.  */
   index_type sxstride, systride;
   const GFC_INTEGER_8 *sptr;
@@ -71,11 +71,6 @@ transpose_i8 (gfc_array_i8 * const restrict ret,
       ret->offset = 0;
     }
 
-  if (ret->dim[0].stride == 0)
-    ret->dim[0].stride = 1;
-  if (source->dim[0].stride == 0)
-    source->dim[0].stride = 1;
-
   sxstride = source->dim[0].stride;
   systride = source->dim[1].stride;
   xcount = source->dim[0].ubound + 1 - source->dim[0].lbound;