https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89899
--- Comment #3 from Jonathan Wakely ---
With the MSVC compiler 'volatile' has additional non-standard semantics.
You need to use locks or atomics for other compilers.
http://isvolatileusefulwiththreads.in/c++
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89899
--- Comment #2 from hosang ---
Our member mentioned this code is lock-free implementation for performance.
The gcc result is different from msvc.
Is there any chance impractical memory write reorder by gcc?
Thank you very much
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89899
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---