summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2014-11-19 09:47:19 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2014-11-19 09:47:19 +0000
commit5455b100be4d53866338cd8b09483e6f0010aa69 (patch)
treee12ba0f6713f31eaacfe7412e00c73180456fff4
parent98712d8ba8c3f87fc59fe2d5ba8726ece4be891d (diff)
downloadgcc-5455b100be4d53866338cd8b09483e6f0010aa69.tar.gz
2014-11-19 Richard Biener <rguenther@suse.de>
PR tree-optimization/63844 * omp-low.c (fixup_child_record_type): Use a restrict qualified referece type for the receiver parameter. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217757 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/omp-low.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f81db234c5d..172822d3a60 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2014-11-19 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/63844
+ * omp-low.c (fixup_child_record_type): Use a restrict qualified
+ referece type for the receiver parameter.
+
2014-11-19 Jakub Jelinek <jakub@redhat.com>
PR sanitizer/63913
diff --git a/gcc/omp-low.c b/gcc/omp-low.c
index 915d55f7f93..9874fa5e492 100644
--- a/gcc/omp-low.c
+++ b/gcc/omp-low.c
@@ -1517,7 +1517,8 @@ fixup_child_record_type (omp_context *ctx)
layout_type (type);
}
- TREE_TYPE (ctx->receiver_decl) = build_pointer_type (type);
+ TREE_TYPE (ctx->receiver_decl)
+ = build_qualified_type (build_reference_type (type), TYPE_QUAL_RESTRICT);
}
/* Instantiate decls as necessary in CTX to satisfy the data sharing