https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107567
Hans-Peter Nilsson <hp at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Target Milestone|--- |14.0 Resolution|--- |FIXED CC| |hp at gcc dot gnu.org --- Comment #2 from Hans-Peter Nilsson <hp at gcc dot gnu.org> --- As gcc will, in the next release (gcc-14), with the program and options in the description, emit a call to __atomic_test_and_set along the expectations in the description, I believe this issue is resolved. Thanks for the report, sorry it took so long for someone to fix it.