re PR c/48716 (gcc OpenMP static variable declared in scope inside construct is prede...
authorJakub Jelinek <jakub@redhat.com>
Fri, 22 Apr 2011 14:10:45 +0000 (16:10 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 22 Apr 2011 14:10:45 +0000 (16:10 +0200)
commit144f4153e89ec081e3607c97b4d76bcfc06bba19
treeea2c6252d2590e5f5167dd62ab874660e563c51c
parentf9fd305bd4dc6498ec0456b8f3c6c6dfad94b87f
re PR c/48716 (gcc OpenMP static variable declared in scope inside construct is predetermined shared)

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.

From-SVN: r172859
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/pr48716.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/gomp/pr48716.c [new file with mode: 0644]