http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54786
Bug #: 54786
Summary: Missing fence in std::atomic::store() triggers
wrong reordering.
Classification: Unclassified
Product: gcc
Version: 4.6.3
Status: UNCO
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54786
--- Comment #3 from Oleg Zabluda 2012-10-02
22:04:37 UTC ---
I can confirm that it is fixed in 4.7.0, after the move to __atomic builtins,
at least on x86_64. It would be nice to have it fixed in currently hypothetical
4.6.4, especially fo
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54861
Bug #: 54861
Summary: std::atomic_signal_fence(std::memory_order_seq_cst)
issues unnecessary mfence
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54861
--- Comment #3 from Oleg Zabluda 2012-10-09
18:48:56 UTC ---
I can confirm that this fixes it in gcc 4.7.0.