This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/49898] [4.5/4.6/4.7 Regression] nested reduction on #pragma omp for 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:46:36 +0000
- Subject: [Bug middle-end/49898] [4.5/4.6/4.7 Regression] nested reduction on #pragma omp for gives incorrect result
- Auto-submitted: auto-generated
- References: <bug-49898-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49898
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-29 17:45:46 UTC ---
Author: jakub
Date: Fri Jul 29 17:45:42 2011
New Revision: 176945
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176945
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:
trunk/libgomp/testsuite/libgomp.c/pr49897-1.c
trunk/libgomp/testsuite/libgomp.c/pr49897-2.c
trunk/libgomp/testsuite/libgomp.c/pr49898-1.c
trunk/libgomp/testsuite/libgomp.c/pr49898-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/omp-low.c
trunk/libgomp/ChangeLog