[Bug fortran/49792] OpenMP workshare: Wrong result with array assignment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49792 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #5 from Jakub Jelinek --- .
[Bug fortran/49792] OpenMP workshare: Wrong result with array assignment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49792 --- Comment #4 from Dominique d'Humieres --- > Fixed for 4.6+ so far. Any reason why this PR is not closed as FIXED?
[Bug fortran/49792] OpenMP workshare: Wrong result with array assignment
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49792 --- Comment #1 from Jakub Jelinek jakub at gcc dot gnu.org 2011-08-19 13:25:26 UTC --- Author: jakub Date: Fri Aug 19 13:25:22 2011 New Revision: 177898 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=177898 Log: PR fortran/49792 * trans-expr.c (gfc_trans_assignment_1): Set OMPWS_SCALARIZER_WS bit in ompws_flags only if loop.temp_ss is NULL, and clear it if lhs needs reallocation. * trans-openmp.c (gfc_trans_omp_workshare): Don't return early if code is NULL, emit a barrier if workshare emitted no code at all and NOWAIT clause isn't present. * testsuite/libgomp.fortran/pr49792-1.f90: New test. * testsuite/libgomp.fortran/pr49792-2.f90: New test. Added: trunk/libgomp/testsuite/libgomp.fortran/pr49792-1.f90 trunk/libgomp/testsuite/libgomp.fortran/pr49792-2.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-expr.c trunk/gcc/fortran/trans-openmp.c trunk/libgomp/ChangeLog
[Bug fortran/49792] OpenMP workshare: Wrong result with array assignment
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49792 --- Comment #2 from Jakub Jelinek jakub at gcc dot gnu.org 2011-08-19 13:26:54 UTC --- Author: jakub Date: Fri Aug 19 13:26:50 2011 New Revision: 177900 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=177900 Log: PR fortran/49792 * trans-expr.c (gfc_trans_assignment_1): Set OMPWS_SCALARIZER_WS bit in ompws_flags only if loop.temp_ss is NULL, and clear it if lhs needs reallocation. * trans-openmp.c (gfc_trans_omp_workshare): Don't return early if code is NULL, emit a barrier if workshare emitted no code at all and NOWAIT clause isn't present. * testsuite/libgomp.fortran/pr49792-1.f90: New test. * testsuite/libgomp.fortran/pr49792-2.f90: New test. Added: branches/gcc-4_6-branch/libgomp/testsuite/libgomp.fortran/pr49792-1.f90 branches/gcc-4_6-branch/libgomp/testsuite/libgomp.fortran/pr49792-2.f90 Modified: branches/gcc-4_6-branch/gcc/fortran/ChangeLog branches/gcc-4_6-branch/gcc/fortran/trans-expr.c branches/gcc-4_6-branch/gcc/fortran/trans-openmp.c branches/gcc-4_6-branch/libgomp/ChangeLog
[Bug fortran/49792] OpenMP workshare: Wrong result with array assignment
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49792 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed||2011-08-19 CC||jakub at gcc dot gnu.org AssignedTo|unassigned at gcc dot |jakub at gcc dot gnu.org |gnu.org | Ever Confirmed|0 |1 --- Comment #3 from Jakub Jelinek jakub at gcc dot gnu.org 2011-08-19 13:35:46 UTC --- Fixed for 4.6+ so far.