re PR middle-end/49897 (nesting lastprivate gives incorrect result)
authorJakub Jelinek <jakub@redhat.com>
Fri, 29 Jul 2011 17:45:42 +0000 (19:45 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 29 Jul 2011 17:45:42 +0000 (19:45 +0200)
commit2514265077f4260ae10377791317c6754b3292df
treecc238d8f70d98c37fa0b8f86e59aeaeb9dd01f24
parent8984005841121ca4d6336da74d64e5ebe89ab5ea
re PR middle-end/49897 (nesting lastprivate gives incorrect result)

PR middle-end/49897
PR middle-end/49898
* omp-low.c (use_pointer_for_field): If disallowing copy-in/out
in nested parallel and outer is a gimple_reg, mark it as addressable
and set its bit in task_shared_vars bitmap too.

* testsuite/libgomp.c/pr49897-1.c: New test.
* testsuite/libgomp.c/pr49897-2.c: New test.
* testsuite/libgomp.c/pr49898-1.c: New test.
* testsuite/libgomp.c/pr49898-2.c: New test.

From-SVN: r176945
gcc/ChangeLog
gcc/omp-low.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/pr49897-1.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/pr49897-2.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/pr49898-1.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/pr49898-2.c [new file with mode: 0644]