This patch is by Ilya Verbin and was originally posted here:

  https://gcc.gnu.org/ml/gcc-patches/2014-02/msg01011.html

This is a fix for OpenMP semantics re: mapping of memory for a target
device.

Julian

xxxx-xx-xx  Ilya Verbin  <ilya.ver...@intel.com>

       * target.c (gomp_map_vars_existing): Don't update copy_from for
         the existing mappings.
commit 76da6cdeb61190c6b39f02656a91a24e26bc3006
Author: Julian Brown <jul...@codesourcery.com>
Date:   Fri Sep 19 09:03:49 2014 -0700

    Merge r207897.
    
    2014-02-17  Ilya Verbin  <ilya.ver...@intel.com>
    
           * target.c (gomp_map_vars_existing): Don't update copy_from for the
           existing mappings.

diff --git a/libgomp/target.c b/libgomp/target.c
index 55b3781..f1e776b 100644
--- a/libgomp/target.c
+++ b/libgomp/target.c
@@ -170,11 +170,6 @@ gomp_map_vars_existing (splay_tree_key oldn, splay_tree_key newn,
 		"[%p..%p) is already mapped",
 		(void *) newn->host_start, (void *) newn->host_end,
 		(void *) oldn->host_start, (void *) oldn->host_end);
-  if (((kind & 7) == 2 || (kind & 7) == 3)
-      && !oldn->copy_from
-      && oldn->host_start == newn->host_start
-      && oldn->host_end == newn->host_end)
-    oldn->copy_from = true;
   oldn->refcount++;
 }
 

Reply via email to