gimplify.c (omp_is_private): Don't return true if decl is not already private on...
authorJakub Jelinek <jakub@redhat.com>
Fri, 27 Jun 2008 19:45:14 +0000 (21:45 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 27 Jun 2008 19:45:14 +0000 (21:45 +0200)
commitca2b131143a3195e603493aadd0a0b4a18ad737f
tree8a25e70be23ac06cb0b9b579a0923434c229535c
parentb357f682db35f4431e3011e7486a0ac865686e3e
gimplify.c (omp_is_private): Don't return true if decl is not already private on #pragma omp for or #pragma...

* gimplify.c (omp_is_private): Don't return true if decl
is not already private on #pragma omp for or #pragma omp parallel for.

* gcc.dg/gomp/pr27388-3.c: Adjust dg-final.

* testsuite/libgomp.c/loop-10.c: New test.
* libgomp.c/loop-3.c (main): Add lastprivate clause.
* libgomp.c++/loop-6.C (main): Likewise.

From-SVN: r137199
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/gomp/pr27388-3.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c++/loop-6.C
libgomp/testsuite/libgomp.c/loop-10.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/loop-3.c