https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95750
--- Comment #2 from andysem at mail dot ru --- gcc 10.1 only optimizes __atomic_store_n(seq_cst) to xchg, but not the fence. Also, consider applying the same optimization to __sync_synchronize().
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95750
--- Comment #2 from andysem at mail dot ru --- gcc 10.1 only optimizes __atomic_store_n(seq_cst) to xchg, but not the fence. Also, consider applying the same optimization to __sync_synchronize().