summaryrefslogtreecommitdiffstats
path: root/libgfortran/m4/iforeach.m4
diff options
context:
space:
mode:
authorjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>2005-11-27 21:03:33 +0000
committerjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>2005-11-27 21:03:33 +0000
commitb4cafd6717ebdc99a68ca9d2de7090e6053a713c (patch)
treeb1791f0354ad0366d696ec9df523d82d3bd9fe26 /libgfortran/m4/iforeach.m4
parentb92d95502eb80ce009645b3efad36efe7fea81c5 (diff)
downloadppe42-gcc-b4cafd6717ebdc99a68ca9d2de7090e6053a713c.tar.gz
ppe42-gcc-b4cafd6717ebdc99a68ca9d2de7090e6053a713c.zip
libgfortran ChangeLog:
2005-11-27 Janne Blomqvist <jb@gcc.gnu.org> * m4/*: Add const restrict to function arguments. * generated/*.c: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107573 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/m4/iforeach.m4')
-rw-r--r--libgfortran/m4/iforeach.m418
1 files changed, 11 insertions, 7 deletions
diff --git a/libgfortran/m4/iforeach.m4 b/libgfortran/m4/iforeach.m4
index 837c6ac802a..8c5ebc9cdc3 100644
--- a/libgfortran/m4/iforeach.m4
+++ b/libgfortran/m4/iforeach.m4
@@ -4,17 +4,19 @@ dnl This file is part of the GNU Fortran 95 Runtime Library (libgfortran)
dnl Distributed under the GNU GPL with exception. See COPYING for details.
define(START_FOREACH_FUNCTION,
`
-extern void name`'rtype_qual`_'atype_code (rtype * retarray, atype *array);
+extern void name`'rtype_qual`_'atype_code (rtype * const restrict retarray,
+ atype * const restrict array);
export_proto(name`'rtype_qual`_'atype_code);
void
-name`'rtype_qual`_'atype_code (rtype * retarray, atype *array)
+name`'rtype_qual`_'atype_code (rtype * const restrict retarray,
+ atype * const restrict array)
{
index_type count[GFC_MAX_DIMENSIONS];
index_type extent[GFC_MAX_DIMENSIONS];
index_type sstride[GFC_MAX_DIMENSIONS];
index_type dstride;
- atype_name *base;
+ const atype_name *base;
rtype_name *dest;
index_type rank;
index_type n;
@@ -111,12 +113,14 @@ define(FINISH_FOREACH_FUNCTION,
}')dnl
define(START_MASKED_FOREACH_FUNCTION,
`
-extern void `m'name`'rtype_qual`_'atype_code (rtype *, atype *, gfc_array_l4 *);
+extern void `m'name`'rtype_qual`_'atype_code (rtype * const restrict,
+ atype * const restrict, gfc_array_l4 * const restrict);
export_proto(`m'name`'rtype_qual`_'atype_code);
void
-`m'name`'rtype_qual`_'atype_code (rtype * retarray, atype *array,
- gfc_array_l4 * mask)
+`m'name`'rtype_qual`_'atype_code (rtype * const restrict retarray,
+ atype * const restrict array,
+ gfc_array_l4 * const restrict mask)
{
index_type count[GFC_MAX_DIMENSIONS];
index_type extent[GFC_MAX_DIMENSIONS];
@@ -124,7 +128,7 @@ void
index_type mstride[GFC_MAX_DIMENSIONS];
index_type dstride;
rtype_name *dest;
- atype_name *base;
+ const atype_name *base;
GFC_LOGICAL_4 *mbase;
int rank;
index_type n;
OpenPOWER on IntegriCloud