2012-10-09 Andrew MacLeod <amacleod@redhat.com>
PR libstdc++/54861
* include/bits/atomic_base.h (atomic_signal_fence): Call
__atomic_signal_fence instead of __atomic_thread_fence.
===================================================================
*************** _GLIBCXX_BEGIN_NAMESPACE_VERSION
inline void
atomic_signal_fence(memory_order __m) noexcept
! { __atomic_thread_fence(__m); }
/// kill_dependency
template<typename _Tp>
inline void
atomic_signal_fence(memory_order __m) noexcept
! { __atomic_signal_fence(__m); }
/// kill_dependency
template<typename _Tp>
This bootstraps and causes no new regressions on the 4.7 branch. Is it OK to check this into the 4.7 branch right now? Thanks Andrew -------- Original Message -------- Subject: PR 54861 - libstdc++ header file typo Date: Tue, 09 Oct 2012 14:40:46 -0400 From: Andrew MacLeod <amacleod@redhat.com> To: gcc-patches <gcc-patches@gcc.gnu.org> There is a typo in the header files for libstdc++ where the atomic_signal_fence() method is actually calling __atomic_thread_fence() instead of __atomic_signal_fence(). This results in extra barriers in the executable that don't need to be there. fixed as trivial and checked into mainline. Is it OK to check this into the 4.7 branch once I've verified it there as well? ie, it's not frozen or anything right now is it? Thanks Andrew