On 9 August 2013 17:59, Joe Buck wrote:
> The i386 architecture lacks atomic compare instructions, to the point
> where libstdc++ can't be built with that architecture (correct and
> efficient atomic operations are vital important for libstdc++, andon i386
> it can't be done).

I think libstdc++ can be built for i386, but uses a global spinlock
for all atomic ops, instead of actual atomic instructions.

See libstdc++-v3/include/ext/atomicity.h and
libstdc++-v3/config/cpu/i386/atomicity.h

I look forward to the day when (not if) GCC drops support for i386 :-)

Reply via email to