--
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
--- 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
---
--- 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 =