diff options
author | Jakub Jelinek <jakub@redhat.com> | 2014-08-15 09:40:03 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2014-08-15 09:40:03 +0200 |
commit | 7de20fbd6e9490871a9e4ebf3ee261d943061b1c (patch) | |
tree | 1b1020670186e844813f2aa6599f04cd1bfc8814 /gcc/gimplify.c | |
parent | d50b463e75b1fbfda20d14d7a8c65bcf014ba41f (diff) | |
download | gcc-7de20fbd6e9490871a9e4ebf3ee261d943061b1c.zip gcc-7de20fbd6e9490871a9e4ebf3ee261d943061b1c.tar.gz gcc-7de20fbd6e9490871a9e4ebf3ee261d943061b1c.tar.bz2 |
re PR middle-end/62092 (libgomp.c++/target-2.C FAIL while compiling for OpenMP 4.0 offload target)
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
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r-- | gcc/gimplify.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |