https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70191
Alexey Lapshin <alexey.lapshin at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |FIXED --- Comment #2 from Alexey Lapshin <alexey.lapshin at oracle dot com> --- Correct. But it seems that libatomic library does not check existence of cmpxchg16b. Thus it would use locked implementation even if target supports cmpxchg16b. i.e. old compiled code should work correctly with newly compiled code. If old code has call to __atomic_load_16 and new code has inlined implementation - they would work incorrectly.