https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81316 Bug 81316 depends on bug 80640, which changed state.
Bug 80640 Summary: Missing memory side effect with __atomic_thread_fence (2) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80640 What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED