omp-low.c (lookup_decl_in_outer_ctx): Allow calling this with !ctx->is_nested.
authorJakub Jelinek <jakub@redhat.com>
Mon, 3 Dec 2007 23:06:55 +0000 (00:06 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 3 Dec 2007 23:06:55 +0000 (00:06 +0100)
commitd2dda7fed054ab18eaabd73adb0ca30b7bcb6605
tree29377c3f249eb97a42a6b0e5ab3ed8a3948909b0
parent22164c3db7653556de1044be9491034c1c40bf8e
omp-low.c (lookup_decl_in_outer_ctx): Allow calling this with !ctx->is_nested.

* 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.

From-SVN: r130590
gcc/ChangeLog
gcc/omp-low.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/private-1.c [new file with mode: 0644]