OSDN Git Service

PR libfortran/26985
[pf3gnuchains/gcc-fork.git] / libgfortran / generated / reshape_i4.c
index bf7bba3..2c8ee4b 100644 (file)
@@ -33,18 +33,26 @@ Boston, MA 02110-1301, USA.  */
 #include <assert.h>
 #include "libgfortran.h"
 
+#if defined (HAVE_GFC_INTEGER_4)
+
 typedef GFC_ARRAY_DESCRIPTOR(1, index_type) shape_type;
 
 /* The shape parameter is ignored. We can currently deduce the shape from the
    return array.  */
 
-extern void reshape_4 (gfc_array_i4 *, gfc_array_i4 *, shape_type *,
-                                   gfc_array_i4 *, shape_type *);
+extern void reshape_4 (gfc_array_i4 * const restrict, 
+       gfc_array_i4 * const restrict, 
+       shape_type * const restrict,
+       gfc_array_i4 * const restrict, 
+       shape_type * const restrict);
 export_proto(reshape_4);
 
 void
-reshape_4 (gfc_array_i4 * ret, gfc_array_i4 * source, shape_type * shape,
-                      gfc_array_i4 * pad, shape_type * order)
+reshape_4 (gfc_array_i4 * const restrict ret, 
+       gfc_array_i4 * const restrict source, 
+       shape_type * const restrict shape,
+       gfc_array_i4 * const restrict pad, 
+       shape_type * const restrict order)
 {
   /* r.* indicates the return array.  */
   index_type rcount[GFC_MAX_DIMENSIONS];
@@ -256,3 +264,5 @@ reshape_4 (gfc_array_i4 * ret, gfc_array_i4 * source, shape_type * shape,
         }
     }
 }
+
+#endif