This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/49897] [4.5/4.6/4.7 Regression] nesting lastprivate gives incorrect result
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 29 Jul 2011 17:49:16 +0000
- Subject: [Bug middle-end/49897] [4.5/4.6/4.7 Regression] nesting lastprivate gives incorrect result
- Auto-submitted: auto-generated
- References: <bug-49897-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49897
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-29 17:48:45 UTC ---
Author: jakub
Date: Fri Jul 29 17:48:42 2011
New Revision: 176946
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176946
Log:
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.
Added:
branches/gcc-4_6-branch/libgomp/testsuite/libgomp.c/pr49897-1.c
branches/gcc-4_6-branch/libgomp/testsuite/libgomp.c/pr49897-2.c
branches/gcc-4_6-branch/libgomp/testsuite/libgomp.c/pr49898-1.c
branches/gcc-4_6-branch/libgomp/testsuite/libgomp.c/pr49898-2.c
Modified:
branches/gcc-4_6-branch/gcc/ChangeLog
branches/gcc-4_6-branch/gcc/omp-low.c
branches/gcc-4_6-branch/libgomp/ChangeLog