]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR middle-end/62092 (libgomp.c++/target-2.C FAIL while compiling for OpenMP 4...
authorJakub Jelinek <jakub@redhat.com>
Fri, 15 Aug 2014 07:40:03 +0000 (09:40 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 15 Aug 2014 07:40:03 +0000 (09:40 +0200)
PR middle-end/62092
* gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
OMP_CLAUSE_SHARED for global vars if the global var is mentioned
in OMP_CLAUSE_MAP in some outer target region.

From-SVN: r214001

gcc/ChangeLog
gcc/gimplify.c

index e7ade949329d04b54f0fb0131189d6e1fabeb6e1..284661dfa1b94c156ed26a17d34a40567fc8c1c8 100644 (file)
@@ -1,3 +1,10 @@
+2014-08-15  Jakub Jelinek  <jakub@redhat.com>
+
+       PR middle-end/62092
+       * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
+       OMP_CLAUSE_SHARED for global vars if the global var is mentioned
+       in OMP_CLAUSE_MAP in some outer target region.
+
 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
 
        * tree-ssa-loop-ivopts.c (ivopts_data): New field
index 279158d4d4a7e79c8c856a0a2de9368dca7ec0eb..658c5d2fac39ec2d22533b1174876e175f6c2626 100644 (file)
@@ -6308,7 +6308,7 @@ gimplify_adjust_omp_clauses_1 (splay_tree_node n, void *data)
                = splay_tree_lookup (ctx->variables, (splay_tree_key) decl);
              if (on && (on->value & (GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE
                                      | GOVD_PRIVATE | GOVD_REDUCTION
-                                     | GOVD_LINEAR)) != 0)
+                                     | GOVD_LINEAR | GOVD_MAP)) != 0)
                break;
              ctx = ctx->outer_context;
            }