Hi Thomas,

Here is the fix for the issue discussed in 
http://gcc.gnu.org/ml/gcc/2014-02/msg00257.html

OK to commit to gomp-4_0-branch?

---
 libgomp/ChangeLog.gomp |    5 +++++
 libgomp/target.c       |    5 -----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/libgomp/ChangeLog.gomp b/libgomp/ChangeLog.gomp
index 8f3da2b..12c0c53 100644
--- a/libgomp/ChangeLog.gomp
+++ b/libgomp/ChangeLog.gomp
@@ -1,3 +1,8 @@
+2014-02-17  Ilya Verbin  <ilya.ver...@intel.com>
+
+       * target.c (gomp_map_vars_existing): Don't update copy_from for the
+       existing mappings.
+
 2014-01-28  Thomas Schwinge  <tho...@codesourcery.com>
 
        * testsuite/libgomp.oacc-c/parallel-1.c: Extend.
diff --git a/libgomp/target.c b/libgomp/target.c
index 55d3891..15c20d8 100644
--- a/libgomp/target.c
+++ b/libgomp/target.c
@@ -171,11 +171,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++;
 }
 
-- 
1.7.1

  -- Ilya

Reply via email to