re PR middle-end/35549 (Invalid use of copy-in/out for shared vars in nested parallels)
authorJakub Jelinek <jakub@redhat.com>
Wed, 12 Mar 2008 09:55:48 +0000 (10:55 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 12 Mar 2008 09:55:48 +0000 (10:55 +0100)
commit7c8f7639c5512799bed5c441e06964bd4ca32961
treecda5526042cb74fb68ccf75d855c64c449f59a35
parent628781031e0b4f75bb9a59a045b5ed2a4daf568b
re PR middle-end/35549 (Invalid use of copy-in/out for shared vars in nested parallels)

PR middle-end/35549
* omp-low.c (maybe_lookup_decl): Constify first argument.
(use_pointer_for_field): Change last argument from bool to
omp_context *.  Disallow shared copy-in/out in nested
parallel if decl is shared in outer parallel too.
(build_outer_var_ref, scan_sharing_clauses,
lower_rec_input_clauses, lower_copyprivate_clauses,
lower_send_clauses, lower_send_shared_vars): Adjust callers.

* testsuite/libgomp.c/pr35549.c: New test.

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