diff options
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/gimplify.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e7ade94..284661d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/gimplify.c b/gcc/gimplify.c index 279158d..658c5d2 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -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; } |