]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2014-11-19 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 Nov 2014 09:47:19 +0000 (09:47 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 Nov 2014 09:47:19 +0000 (09:47 +0000)
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

gcc/ChangeLog
gcc/omp-low.c

index f81db234c5d9b389cb623785fca1441b22a8e92f..172822d3a60fac221bccaa777c91f4614341cb63 100644 (file)
@@ -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
index 915d55f7f93843f57cc95bbe2a2404e925e76666..9874fa5e4926714e9021aa57eb43fe8d7d4a2abe 100644 (file)
@@ -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