From: Richard Biener Date: Tue, 24 Feb 2015 15:09:00 +0000 (+0000) Subject: backport: re PR tree-optimization/63844 (open mp parallelization prevents vectorization) X-Git-Tag: releases/gcc-4.8.5~248 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efe337a8eb0be8311ce17e1531b8ff4452ddadf5;p=thirdparty%2Fgcc.git backport: re PR tree-optimization/63844 (open mp parallelization prevents vectorization) 2015-02-24 Richard Biener Backport from mainline 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: r220941 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2231c35aef85..6ee0c856eecd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2015-02-24 Richard Biener + + Backport from mainline + 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. + 2015-02-24 Richard Biener Backport from mainline diff --git a/gcc/omp-low.c b/gcc/omp-low.c index fc7c9910168d..694d24f11ae1 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -1369,7 +1369,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