Hi! On Mon, 7 Nov 2016 12:45:43 -0800, Cesar Philippidis <ce...@codesourcery.com> wrote: > It looks like gomp-4_0-branch was using the GOVD_USE_DEVPTR attribute [...] > I've applied this patch remove GOVD_USE_DEVPTR from gomp4.
I'm seeing: [...]/gcc/gimplify.c: In function 'int gimplify_adjust_omp_clauses_1(splay_tree_node, void*)': [...]/gcc/gimplify.c:8053:24: warning: unused variable 'on' [-Wunused-variable] splay_tree_node on ^ Committed to gomp-4_0-branch in r244266: commit 72aa2b2728e84aff6ac882f366d1c4ed924b906b Author: tschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Tue Jan 10 13:27:11 2017 +0000 Remove unused variables gcc/ * gimplify.c (gimplify_adjust_omp_clauses_1): Clean up. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gomp-4_0-branch@244266 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog.gomp | 2 ++ gcc/gimplify.c | 10 +--------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git gcc/ChangeLog.gomp gcc/ChangeLog.gomp index c8a13d5..006ce81 100644 --- gcc/ChangeLog.gomp +++ gcc/ChangeLog.gomp @@ -1,5 +1,7 @@ 2017-01-10 Thomas Schwinge <tho...@codesourcery.com> + * gimplify.c (gimplify_adjust_omp_clauses_1): Clean up. + Backport from gcc-6-branch r244264: 2017-01-10 Thomas Schwinge <tho...@codesourcery.com> diff --git gcc/gimplify.c gcc/gimplify.c index 1e82a71..057fe0e 100644 --- gcc/gimplify.c +++ gcc/gimplify.c @@ -8064,15 +8064,7 @@ gimplify_adjust_omp_clauses_1 (splay_tree_node n, void *data) OMP_CLAUSE_CHAIN (clause) = nc; } else - { - if (gimplify_omp_ctxp->outer_context) - { - struct gimplify_omp_ctx *ctx = gimplify_omp_ctxp->outer_context; - splay_tree_node on - = splay_tree_lookup (ctx->variables, (splay_tree_key) decl); - } - OMP_CLAUSE_SIZE (clause) = DECL_SIZE_UNIT (decl); - } + OMP_CLAUSE_SIZE (clause) = DECL_SIZE_UNIT (decl); } if (code == OMP_CLAUSE_FIRSTPRIVATE && (flags & GOVD_LASTPRIVATE) != 0) { Grüße Thomas