diff options
author | Tom de Vries <tom@codesourcery.com> | 2015-11-23 08:56:49 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2015-11-23 08:56:49 +0000 |
commit | 096b85f4b4ad0578059d4c3c6ac1c6c330abb3fb (patch) | |
tree | e409d4fea1208f699a1220ee4a332781779010d2 /gcc | |
parent | 7706cb01c0e22bea0f4b583f3e6bc0ee06b224d0 (diff) | |
download | gcc-096b85f4b4ad0578059d4c3c6ac1c6c330abb3fb.zip gcc-096b85f4b4ad0578059d4c3c6ac1c6c330abb3fb.tar.gz gcc-096b85f4b4ad0578059d4c3c6ac1c6c330abb3fb.tar.bz2 |
Mark by_ref mem_ref in build_receiver_ref as non-trapping
2015-11-23 Tom de Vries <tom@codesourcery.com>
* omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
From-SVN: r230738
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/omp-low.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f2c7f5a..7b0545f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-11-23 Tom de Vries <tom@codesourcery.com> + + * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping. + 2015-11-23 Richard Biener <rguenther@suse.de> PR tree-optimization/68445 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; } |