This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
profile mode fix
- From: François Dumont <frs dot dumont at gmail dot com>
- To: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 26 Jan 2014 10:43:24 +0100
- Subject: profile mode fix
- Authentication-results: sourceware.org; auth=none
Hi
This is a patch to fix PR 55033 in profile mode. Like in debug mode
it was missing noexcept qualifier on move constructor.
2014-01-26 François Dumont <fdumont@gcc.gnu.org>
PR libstdc++/55083
* include/profile/unordered_base.h (_Unordered_profile()): Add
noexcept qualifier.
(_Unordered_profile(const _Unordered_profile&)): Likewise.
(_Unordered_profile(_Unordered_profile&&)): Likewise.
Tested under Linux x86_64 profile mode.
With this patch I have no more failure in profile mode.
Ok to commit ?
François
Index: include/profile/unordered_base.h
===================================================================
--- include/profile/unordered_base.h (revision 207074)
+++ include/profile/unordered_base.h (working copy)
@@ -154,15 +154,15 @@
using __unique_keys = std::integral_constant<bool, _Unique_keys>;
protected:
- _Unordered_profile()
+ _Unordered_profile() noexcept
{
auto& __uc = _M_conjure();
__profcxx_hashtable_construct(&__uc, __uc.bucket_count());
__profcxx_hashtable_construct2(&__uc);
}
- _Unordered_profile(const _Unordered_profile&)
+ _Unordered_profile(const _Unordered_profile&) noexcept
: _Unordered_profile() { }
- _Unordered_profile(_Unordered_profile&&)
+ _Unordered_profile(_Unordered_profile&&) noexcept
: _Unordered_profile() { }
~_Unordered_profile() noexcept