diff options
author | Jan Hubicka <jh@suse.cz> | 2009-04-19 00:02:19 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2009-04-18 22:02:19 +0000 |
commit | 5d51b87af49e8a1862c2e6c2cb9fd0a434a3e28f (patch) | |
tree | 885f3095053fda74542e8236d86880dcd955c1fc /libstdc++-v3/src | |
parent | 50a681c4ee5933c5a561620c7df36716f39374bb (diff) | |
download | gcc-5d51b87af49e8a1862c2e6c2cb9fd0a434a3e28f.zip gcc-5d51b87af49e8a1862c2e6c2cb9fd0a434a3e28f.tar.gz gcc-5d51b87af49e8a1862c2e6c2cb9fd0a434a3e28f.tar.bz2 |
pool_allocator.cc (_M_get_free_list, [...]): Mark throw ()
* src/pool_allocator.cc (_M_get_free_list, _M_get_mutex): Mark throw ()
* src/mt_allocator.cc (_M_reclaim_block, _M_reclaim_block,
_M_destroy_thread_key): Mark throw ()
* debug.cc (_M_get_mutex, _M_attach_single, _M_detach_single,
_M_singular, _M_can_compare _M_get_mutex, _M_message,
_M_get_max_length): Mark throw ().
* include/debug/formatter.h (_M_message, _M_format_word,
_M_get_max_length): Mark throw ().
* include/debug/safe_base.h (_M_get_mutex, _M_attach_single,
_M_detach_single): Mark throw ().
(_M_singular, _M_can_compare, _M_get_mutex): Mark pure and throw ().
* include/ext/pool_allocator.h (_M_get_free_list): Mark const and
throw ()
(_M_get_mutex): Mark throw ().
* include/ext/mt_allocator.h (_M_reclaim_block): Mark throw ();
(_M_destroy_thread_key): Mark CONST and throw.
* include/bits/stl_list.h (swap, transfer, reverse, hook, unhook): Mark
throw ().
From-SVN: r146330
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r-- | libstdc++-v3/src/debug.cc | 18 | ||||
-rw-r--r-- | libstdc++-v3/src/mt_allocator.cc | 6 | ||||
-rw-r--r-- | libstdc++-v3/src/pool_allocator.cc | 4 |
3 files changed, 14 insertions, 14 deletions
diff --git a/libstdc++-v3/src/debug.cc b/libstdc++-v3/src/debug.cc index c1e4ddd..6ce2e10 100644 --- a/libstdc++-v3/src/debug.cc +++ b/libstdc++-v3/src/debug.cc @@ -185,7 +185,7 @@ namespace __gnu_debug __gnu_cxx::__mutex& _Safe_sequence_base:: - _M_get_mutex() + _M_get_mutex() throw () { return get_safe_base_mutex(); } void @@ -198,7 +198,7 @@ namespace __gnu_debug void _Safe_iterator_base:: - _M_attach_single(_Safe_sequence_base* __seq, bool __constant) + _M_attach_single(_Safe_sequence_base* __seq, bool __constant) throw () { _M_detach_single(); @@ -235,7 +235,7 @@ namespace __gnu_debug void _Safe_iterator_base:: - _M_detach_single() + _M_detach_single() throw () { if (_M_sequence) { @@ -259,12 +259,12 @@ namespace __gnu_debug bool _Safe_iterator_base:: - _M_singular() const + _M_singular() const throw () { return !_M_sequence || _M_version != _M_sequence->_M_version; } bool _Safe_iterator_base:: - _M_can_compare(const _Safe_iterator_base& __x) const + _M_can_compare(const _Safe_iterator_base& __x) const throw () { return (!_M_singular() && !__x._M_singular() && _M_sequence == __x._M_sequence); @@ -272,7 +272,7 @@ namespace __gnu_debug __gnu_cxx::__mutex& _Safe_iterator_base:: - _M_get_mutex() + _M_get_mutex() throw () { return get_safe_base_mutex(); } void @@ -471,7 +471,7 @@ namespace __gnu_debug } const _Error_formatter& - _Error_formatter::_M_message(_Debug_msg_id __id) const + _Error_formatter::_M_message(_Debug_msg_id __id) const throw () { return this->_M_message(_S_debug_messages[__id]); } void @@ -531,7 +531,7 @@ namespace __gnu_debug void _Error_formatter::_M_format_word(char* __buf, int __n __attribute__ ((__unused__)), - const char* __fmt, _Tp __s) const + const char* __fmt, _Tp __s) const throw () { #ifdef _GLIBCXX_USE_C99 std::snprintf(__buf, __n, __fmt, __s); @@ -674,7 +674,7 @@ namespace __gnu_debug } void - _Error_formatter::_M_get_max_length() const + _Error_formatter::_M_get_max_length() const throw () { const char* __nptr = std::getenv("GLIBCXX_DEBUG_MESSAGE_LENGTH"); if (__nptr) diff --git a/libstdc++-v3/src/mt_allocator.cc b/libstdc++-v3/src/mt_allocator.cc index 95dc587..9c3af0e 100644 --- a/libstdc++-v3/src/mt_allocator.cc +++ b/libstdc++-v3/src/mt_allocator.cc @@ -108,7 +108,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) } void - __pool<false>::_M_reclaim_block(char* __p, size_t __bytes) + __pool<false>::_M_reclaim_block(char* __p, size_t __bytes) throw () { // Round up to power of 2 and figure out which bin to use. const size_t __which = _M_binmap[__bytes]; @@ -256,7 +256,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) } void - __pool<true>::_M_reclaim_block(char* __p, size_t __bytes) + __pool<true>::_M_reclaim_block(char* __p, size_t __bytes) throw () { // Round up to power of 2 and figure out which bin to use. const size_t __which = _M_binmap[__bytes]; @@ -649,7 +649,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) // XXX GLIBCXX_ABI Deprecated void - __pool<true>::_M_destroy_thread_key(void*) { } + __pool<true>::_M_destroy_thread_key(void*) throw () { } // XXX GLIBCXX_ABI Deprecated void diff --git a/libstdc++-v3/src/pool_allocator.cc b/libstdc++-v3/src/pool_allocator.cc index cafd4d3..e0da5e7 100644 --- a/libstdc++-v3/src/pool_allocator.cc +++ b/libstdc++-v3/src/pool_allocator.cc @@ -44,14 +44,14 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) // Definitions for __pool_alloc_base. __pool_alloc_base::_Obj* volatile* - __pool_alloc_base::_M_get_free_list(size_t __bytes) + __pool_alloc_base::_M_get_free_list(size_t __bytes) throw () { size_t __i = ((__bytes + (size_t)_S_align - 1) / (size_t)_S_align - 1); return _S_free_list + __i; } __mutex& - __pool_alloc_base::_M_get_mutex() + __pool_alloc_base::_M_get_mutex() throw () { return get_palloc_mutex(); } // Allocate memory in large chunks in order to avoid fragmenting the |