re PR middle-end/25261 ([gomp] Nested function calls in #pragma omp parallel blocks)
authorJakub Jelinek <jakub@redhat.com>
Tue, 26 Sep 2006 18:10:58 +0000 (20:10 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 26 Sep 2006 18:10:58 +0000 (20:10 +0200)
commita70ad3bb3e56ff95a717b80842d4b56a2b680856
tree363a6e44b0cedce330dc22f91e904959a53d14b3
parent9b9e4cd6a909fd68c16d27c7f011300933db2f10
re PR middle-end/25261 ([gomp] Nested function calls in #pragma omp parallel blocks)

PR middle-end/25261
PR middle-end/28790
* tree-nested.c (struct nesting_info): Added static_chain_added.
(convert_call_expr): Set static_chain_added when adding static
chain.  Handle OMP_PARALLEL and OMP_SECTION.

* gcc.dg/gomp/nestedfn-1.c: New test.

* testsuite/libgomp.c/nestedfn-4.c: New test.
* testsuite/libgomp.c/nestedfn-5.c: New test.
* testsuite/libgomp.fortran/nestedfn3.f90: New test.

From-SVN: r117235
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/gomp/nestedfn-1.c [new file with mode: 0644]
gcc/tree-nested.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/nestedfn-4.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/nestedfn-5.c [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/nestedfn3.f90 [new file with mode: 0644]