]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libgfortran/m4/spread.m4
in_pack.m4 (internal_pack_'rtype_code`): Destination pointer is restrict.
[thirdparty/gcc.git] / libgfortran / m4 / spread.m4
index c301d1f1e3221505c0d209545d5102fc61cc5025..b4bdce64316c89fdfb68966740f830487495b5ff 100644 (file)
@@ -49,7 +49,7 @@ spread_'rtype_code` ('rtype` *ret, const 'rtype` *source,
   index_type rrank;
   index_type rs;
   'rtype_name` *rptr;
-  'rtype_name` *dest;
+  'rtype_name` * restrict dest;
   /* s.* indicates the source array.  */
   index_type sstride[GFC_MAX_DIMENSIONS];
   index_type sstride0;
@@ -241,7 +241,7 @@ spread_scalar_'rtype_code` ('rtype` *ret, const 'rtype_name` *source,
 {
   int n;
   int ncopies = pncopies;
-  'rtype_name` * dest;
+  'rtype_name` * restrict dest;
   index_type stride;
 
   if (GFC_DESCRIPTOR_RANK (ret) != 1)