diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-22 14:10:45 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-22 14:10:45 +0000 |
commit | af06e5ef4c5325f4b88b44d3b474c4131e0eab29 (patch) | |
tree | ea2c6252d2590e5f5167dd62ab874660e563c51c /gcc/gimplify.c | |
parent | a5c3797618bc085bcb34fdde79ef1fb2d066acb8 (diff) | |
download | gcc-af06e5ef4c5325f4b88b44d3b474c4131e0eab29.tar.gz |
PR c/48716
* gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
TREE_STATIC variables declared inside of some OpenMP construct.
* gcc.dg/gomp/pr48716.c: New test.
* g++.dg/gomp/pr48716.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172859 138bc75d-0d04-0410-961f-82ee72b054a4
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 f24bea2cb14..a554c20e76b 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -1144,7 +1144,7 @@ gimplify_bind_expr (tree *expr_p, gimple_seq *pre_p) struct gimplify_omp_ctx *ctx = gimplify_omp_ctxp; /* Mark variable as local. */ - if (ctx && !is_global_var (t) + if (ctx && !DECL_EXTERNAL (t) && (! DECL_SEEN_IN_BIND_EXPR_P (t) || splay_tree_lookup (ctx->variables, (splay_tree_key) t) == NULL)) |