https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80878
--- Comment #47 from LIU Hao <lh_mouse at 126 dot com> --- (In reply to Luke Dalessandro from comment #46) > But if 104688 isn't related to this issue, and thus Jakub's comment was in > error, I definitely don't understand the underlying problem and why clang is > fine doing it. Issue here is that if atomic load is implemented with a call to libatomic routines then it's incorrect to implement CAS without a call.