From 096b85f4b4ad0578059d4c3c6ac1c6c330abb3fb Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Mon, 23 Nov 2015 08:56:49 +0000 Subject: 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. From-SVN: r230738 --- gcc/omp-low.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/omp-low.c') diff --git a/gcc/omp-low.c b/gcc/omp-low.c index b47864e..0d4c6e5 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; } -- cgit v1.1