From a2a2fe4bfaff0a8e97698b92296ca760222d2605 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 19 Nov 2014 09:47:19 +0000 Subject: [PATCH] re PR tree-optimization/63844 (open mp parallelization prevents vectorization) 2014-11-19 Richard Biener PR tree-optimization/63844 * omp-low.c (fixup_child_record_type): Use a restrict qualified referece type for the receiver parameter. From-SVN: r217757 --- gcc/ChangeLog | 6 ++++++ gcc/omp-low.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) 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 + + 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 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 -- 2.30.2