[Bug target/62253] gcc incorrectly mixes direct atomic instructions with calls to atomic library
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62253 Alexey Lapshin changed: What|Removed |Added CC||alexey.lapshin at oracle dot com --- Comment #2 from Alexey Lapshin --- the __atomic_load_8() function from i386 Solaris libatomic.so gcc 4.9.2 still has calls to libat_lock. i.e. library uses pthread implementation for lock free 8-bytes object.
[Bug target/62253] gcc incorrectly mixes direct atomic instructions with calls to atomic library
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62253 --- Comment #1 from Andrew Pinski --- Iirc lib atomic on x86 uses the atomic instructions for 32bit and not the pthread implemention. Also if you have xchng, you can do all functions using that one without using the pthread implemention.