* omp-low.c (lookup_decl_in_outer_ctx): Allow calling this
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Dec 2007 23:06:55 +0000 (23:06 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Dec 2007 23:06:55 +0000 (23:06 +0000)
commit87b3137583b2e3d77f8384334bc196289e7ae51e
tree29377c3f249eb97a42a6b0e5ab3ed8a3948909b0
parent2cf28cedf702cca4cc954ffb24c0144575b59ebe
* omp-low.c (lookup_decl_in_outer_ctx): Allow calling this
with !ctx->is_nested.
(maybe_lookup_decl_in_outer_ctx): Look up in outer contexts
even if !ctx->is_nested.
(lower_copyprivate_clauses, lower_send_clauses,
lower_send_shared_vars): Call lookup_decl_in_outer_ctx
unconditionally.

* testsuite/libgomp.c/private-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130590 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/omp-low.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/private-1.c [new file with mode: 0644]