https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103069
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #17 from Jakub Jelinek <jakub at gcc dot gnu.org> --- _Pragma("GCC target \"relax-cmpxchg-loop\"") should do that (ditto target("relax-cmpxchg-loop") attribute).