Mark *.omp_data_i as non-trapping
authorTom de Vries <tom@codesourcery.com>
Mon, 13 Jul 2015 09:46:37 +0000 (09:46 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Mon, 13 Jul 2015 09:46:37 +0000 (09:46 +0000)
2015-07-13  Tom de Vries  <tom@codesourcery.com>

* omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.

From-SVN: r225731

gcc/ChangeLog
gcc/omp-low.c

index ccde3b7b88acb3d76051f0ed4b5bfda922d1b5a7..f600ce3db0ce71d46df7adb20b8ee97ec75451e2 100644 (file)
@@ -1,3 +1,7 @@
+2015-07-13  Tom de Vries  <tom@codesourcery.com>
+
+       * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
+
 2015-07-13  Renlin Li  <renlin.li@arm.com>
 
        PR rtl/66556
index 22848a0a324d0d414bb537142be07c84994f0be0..313560633f66e8b3516e907a6495e5586f1cdebe 100644 (file)
@@ -1127,6 +1127,7 @@ build_receiver_ref (tree var, bool by_ref, omp_context *ctx)
     field = x;
 
   x = build_simple_mem_ref (ctx->receiver_decl);
+  TREE_THIS_NOTRAP (x) = 1;
   x = omp_build_component_ref (x, field);
   if (by_ref)
     x = build_simple_mem_ref (x);