summaryrefslogtreecommitdiff
path: root/libgfortran/m4/dotprod.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/dotprod.m4
parentb92d95502eb80ce009645b3efad36efe7fea81c5 (diff)
downloadgcc-b4cafd6717ebdc99a68ca9d2de7090e6053a713c.tar.gz
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/dotprod.m4')
-rw-r--r--libgfortran/m4/dotprod.m49
1 files changed, 5 insertions, 4 deletions
diff --git a/libgfortran/m4/dotprod.m4 b/libgfortran/m4/dotprod.m4
index af41fcc8e85..f46796e7e49 100644
--- a/libgfortran/m4/dotprod.m4
+++ b/libgfortran/m4/dotprod.m4
@@ -38,15 +38,16 @@ include(iparm.m4)dnl
typedef GFC_ARRAY_DESCRIPTOR(GFC_MAX_DIMENSIONS, char) char_array;
-extern rtype_name dot_product_`'rtype_code (rtype * a, rtype * b);
+extern rtype_name dot_product_`'rtype_code (rtype * const restrict a,
+ rtype * const restrict b);
export_proto(dot_product_`'rtype_code);
/* Both parameters will already have been converted to the result type. */
rtype_name
-dot_product_`'rtype_code (rtype * a, rtype * b)
+dot_product_`'rtype_code (rtype * const restrict a, rtype * const restrict b)
{
- rtype_name *pa;
- rtype_name *pb;
+ const rtype_name * restrict pa;
+ const rtype_name * restrict pb;
rtype_name res;
index_type count;
index_type astride;