From: Aditya Kumar Date: Tue, 6 Dec 2016 10:43:49 +0000 (+0000) Subject: Add missing noexcept on std::_Sp_locker constructors X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b6f684ae25e66e3f9ad40c29af8b42f67421652e;p=gcc.git Add missing noexcept on std::_Sp_locker constructors 2016-12-06 Aditya Kumar * src/c++11/shared_ptr.cc (_Sp_locker::_Sp_locker(const void* p)): Add noexcept on constructor. (_Sp_locker::_Sp_locker(const void* p1, const void* p2)): Same. From-SVN: r243291 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 1b52efedb30..5dd75042480 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2016-12-06 Aditya Kumar + + * src/c++11/shared_ptr.cc (_Sp_locker::_Sp_locker(const void* p)): Add + noexcept on constructor. + (_Sp_locker::_Sp_locker(const void* p1, const void* p2)): Same. + 2016-12-06 Jonathan Wakely * include/bits/basic_string.h (basic_string::find, basic_string::rfind) diff --git a/libstdc++-v3/src/c++11/shared_ptr.cc b/libstdc++-v3/src/c++11/shared_ptr.cc index 9028040f72d..b4addd04cc0 100644 --- a/libstdc++-v3/src/c++11/shared_ptr.cc +++ b/libstdc++-v3/src/c++11/shared_ptr.cc @@ -56,7 +56,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION { return _Hash_impl::hash(addr) & __gnu_internal::mask; } } - _Sp_locker::_Sp_locker(const void* p) + _Sp_locker::_Sp_locker(const void* p) noexcept { if (__gthread_active_p()) { @@ -67,7 +67,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _M_key1 = _M_key2 = __gnu_internal::invalid; } - _Sp_locker::_Sp_locker(const void* p1, const void* p2) + _Sp_locker::_Sp_locker(const void* p1, const void* p2) noexcept { if (__gthread_active_p()) {