http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49244
Michał Górny <mgorny at gentoo dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mgorny at gentoo dot org --- Comment #3 from Michał Górny <mgorny at gentoo dot org> 2012-08-23 09:46:56 UTC --- I believe that this became more important with C++11 <atomic>, and a separate intrinsics will be not be enough anymore. I believe that GCC should be able to optimize out such a simple cases.