https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88996
emsr at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |emsr at gcc dot gnu.org --- Comment #1 from emsr at gcc dot gnu.org --- Created attachment 45499 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45499&action=edit Patch that just does the thing for C++11 onwards. I did ed@bad-horse:~/bin$ nm lib64/libstdc++.so | grep memory_order 00000000000a9120 T _ZNSt9__atomic011atomic_flag12test_and_setESt12memory_order 00000000000a9170 T _ZNSt9__atomic011atomic_flag5clearESt12memory_order 00000000000a9120 T _ZNVSt9__atomic011atomic_flag12test_and_setESt12memory_order@@GLIBCXX_3.4.11 and ed@bad-horse:~/bin$ nm lib32/libstdc++.so | grep memory_order 0008ae00 T _ZNSt9__atomic011atomic_flag12test_and_setESt12memory_order 0008ae70 T _ZNSt9__atomic011atomic_flag5clearESt12memory_order 0008ae00 T _ZNVSt9__atomic011atomic_flag12test_and_setESt12memory_order@@GLIBCXX_3.4.11 0008ae70 T _ZNVSt9__atomic011atomic_flag5clearESt12memory_order@@GLIBCXX_3.4.11 on x96_64-linux. This is what all teh abi files have. We'll need to check this on all the targets.