[Bug libstdc++/54786] New: Missing fence in std::atomic::store() triggers wrong reordering.

2012-10-02 Thread ozabluda at gmail dot com
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

[Bug libstdc++/54786] Missing fence in std::atomic::store() triggers wrong reordering.

2012-10-02 Thread ozabluda at gmail dot com
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

[Bug c++/54861] New: std::atomic_signal_fence(std::memory_order_seq_cst) issues unnecessary mfence

2012-10-08 Thread ozabluda at gmail dot com
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:

[Bug libstdc++/54861] std::atomic_signal_fence(std::memory_order_seq_cst) issues unnecessary mfence

2012-10-09 Thread ozabluda at gmail dot com
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.