From: vries Date: Mon, 23 Nov 2015 08:56:49 +0000 (+0000) Subject: Mark by_ref mem_ref in build_receiver_ref as non-trapping X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b16d27b9d40a9488e1f3cd2063a84f26b6dcd507;p=thirdparty%2Fgcc.git Mark by_ref mem_ref in build_receiver_ref as non-trapping 2015-11-23 Tom de Vries * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230738 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f2c7f5af8fd1..7b0545f33d77 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-11-23 Tom de Vries + + * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping. + 2015-11-23 Richard Biener PR tree-optimization/68445 diff --git a/gcc/omp-low.c b/gcc/omp-low.c index b47864eae6e9..0d4c6e59e8cd 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -1249,7 +1249,10 @@ build_receiver_ref (tree var, bool by_ref, omp_context *ctx) TREE_THIS_NOTRAP (x) = 1; x = omp_build_component_ref (x, field); if (by_ref) - x = build_simple_mem_ref (x); + { + x = build_simple_mem_ref (x); + TREE_THIS_NOTRAP (x) = 1; + } return x; }