[Bug libgomp/42602] libgomp.fortran/recursion1.f90 aborted at random

2010-01-04 Thread hjl dot tools at gmail dot com
-- hjl dot tools at gmail dot com changed: What|Removed |Added Target Milestone|--- |4.5.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42602

[Bug libgomp/42602] libgomp.fortran/recursion1.f90 aborted at random

2010-01-04 Thread hjl dot tools at gmail dot com
--- Comment #2 from hjl dot tools at gmail dot com 2010-01-04 14:22 --- A patch is posted at http://gcc.gnu.org/ml/gcc-patches/2010-01/msg00141.html -- hjl dot tools at gmail dot com changed: What|Removed |Added ---

[Bug libgomp/42602] libgomp.fortran/recursion1.f90 aborted at random

2010-01-04 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2010-01-04 08:02 --- There is no such guarantee, the testcase contains data race. It can increment a shared variable in multiple threads using non-atomic instructions. One fix would be to use !$omp atomic s = s + n instead of just s =