]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
pool_allocator.cc (_M_get_free_list, [...]): Mark throw ()
authorJan Hubicka <jh@suse.cz>
Sat, 18 Apr 2009 22:02:19 +0000 (00:02 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 18 Apr 2009 22:02:19 +0000 (22:02 +0000)
* 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

libstdc++-v3/ChangeLog
libstdc++-v3/include/debug/formatter.h
libstdc++-v3/include/debug/safe_base.h
libstdc++-v3/include/ext/mt_allocator.h
libstdc++-v3/include/ext/pool_allocator.h
libstdc++-v3/src/debug.cc
libstdc++-v3/src/mt_allocator.cc
libstdc++-v3/src/pool_allocator.cc

index 4994ce8eba1e26e5464b1cc08be967675dfbcd1d..8b0d0e03beaf2af3a161b0dee448e726624a7b2f 100644 (file)
@@ -1,3 +1,24 @@
+2009-04-18  Jan Hubicka  <jh@suse.cz>
+
+       * 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 ().
+
 2009-04-18  Jan Hubicka  <jh@suse.cz>
 
        * src/condition_variable.cc (condition_variable,
        * include/std/mutex (mutex): Mark throw ().
        * include/bits/stl_list.h (swap, transfer, reverse, hook, unhook): Mark
        throw.
-       * include/bits/functional_hash.h (operator()  on size_t): Mark pure and throw ().
+       * include/bits/functional_hash.h (operator()  on size_t): Mark pure
+       and throw ().
        * include/bits/locale_facets.tcc (__verify_grouping): Mark pure.
        * include/bits/locale_classes.h (_S_initialize_once,
        _S_clone_c_locale): Mark throw ().
        (_S_get_c_name): Mark const and throw ().
-       (_M_id, _M_compare, _M_transform, _M_compare, _M_transform): Mark throw ().
+       (_M_id, _M_compare, _M_transform, _M_compare, _M_transform): Mark
+       throw ().
        * include/bits/locale_facets.h (__convert_to_v explicit instances):
        Mark throw ().
-       (_M_convert_to_wmask, _M_initialize_ctype, _S_format_float): Mark throw ().
+       (_M_convert_to_wmask, _M_initialize_ctype, _S_format_float): Mark
+       throw ().
        * include/bits/ios_base.h (_M_dispose_callbacks, _M_init, imbue,
        ios_base): Mark throw ()
        * include/bits/locale_facets_nonio.h (_M_put): Mark throw.
index 6f4f8edc9d145f569ecff6cfa950901d2eb8d24e..6dffc6b786dac549e84d7b7320938c8ec6cb4616 100644 (file)
@@ -346,7 +346,7 @@ namespace __gnu_debug
     { _M_text = __text; return *this; }
 
     const _Error_formatter&
-    _M_message(_Debug_msg_id __id) const;
+    _M_message(_Debug_msg_id __id) const throw ();
 
     _GLIBCXX_NORETURN void
     _M_error() const;
@@ -359,7 +359,7 @@ namespace __gnu_debug
 
     template<typename _Tp>
       void
-      _M_format_word(char*, int, const char*, _Tp) const;
+      _M_format_word(char*, int, const char*, _Tp) const throw ();
 
     void
     _M_print_word(const char* __word) const;
@@ -368,7 +368,7 @@ namespace __gnu_debug
     _M_print_string(const char* __string) const;
 
     void
-    _M_get_max_length() const;
+    _M_get_max_length() const throw ();
 
     enum { __max_parameters = 9 };
 
index 1bef5e7ef15f7edba1d7e291d24df52b6026f0e3..9d44539b732fdebf82e3f904f564f76b3cf632ff 100644 (file)
@@ -105,7 +105,7 @@ namespace __gnu_debug
     ~_Safe_iterator_base() { this->_M_detach(); }
 
     /** For use in _Safe_iterator. */
-    __gnu_cxx::__mutex& _M_get_mutex();
+    __gnu_cxx::__mutex& _M_get_mutex() throw ();
 
   public:
     /** Attaches this iterator to the given sequence, detaching it
@@ -116,7 +116,7 @@ namespace __gnu_debug
     void _M_attach(_Safe_sequence_base* __seq, bool __constant);
 
     /** Likewise, but not thread-safe. */
-    void _M_attach_single(_Safe_sequence_base* __seq, bool __constant);
+    void _M_attach_single(_Safe_sequence_base* __seq, bool __constant) throw ();
 
     /** Detach the iterator for whatever sequence it is attached to,
      * if any.
@@ -124,19 +124,19 @@ namespace __gnu_debug
     void _M_detach();
 
     /** Likewise, but not thread-safe. */
-    void _M_detach_single();
+    void _M_detach_single() throw ();
 
     /** Determines if we are attached to the given sequence. */
     bool _M_attached_to(const _Safe_sequence_base* __seq) const
     { return _M_sequence == __seq; }
 
     /** Is this iterator singular? */
-    bool _M_singular() const;
+    _GLIBCXX_PURE bool _M_singular() const throw ();
 
     /** Can we compare this iterator to the given iterator @p __x?
        Returns true if both iterators are nonsingular and reference
        the same sequence. */
-    bool _M_can_compare(const _Safe_iterator_base& __x) const;
+    _GLIBCXX_PURE bool _M_can_compare(const _Safe_iterator_base& __x) const throw ();
   };
 
   /**
@@ -207,7 +207,7 @@ namespace __gnu_debug
     _M_swap(_Safe_sequence_base& __x);
 
     /** For use in _Safe_sequence. */
-    __gnu_cxx::__mutex& _M_get_mutex();
+    __gnu_cxx::__mutex& _M_get_mutex() throw ();
 
   public:
     /** Invalidates all iterators. */
index f03f3a61030cb2113c996905ac9392ac32596c67..fc31fe8a737af1a60f783e5863f37ca1771fb144 100644 (file)
@@ -221,7 +221,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
       _M_reserve_block(size_t __bytes, const size_t __thread_id);
     
       void
-      _M_reclaim_block(char* __p, size_t __bytes);
+      _M_reclaim_block(char* __p, size_t __bytes) throw ();
     
       size_t 
       _M_get_thread_id() { return 0; }
@@ -332,7 +332,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
       _M_reserve_block(size_t __bytes, const size_t __thread_id);
     
       void
-      _M_reclaim_block(char* __p, size_t __bytes);
+      _M_reclaim_block(char* __p, size_t __bytes) throw ();
     
       const _Bin_record&
       _M_get_bin(size_t __which)
@@ -351,8 +351,8 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
       }
 
       // XXX GLIBCXX_ABI Deprecated
-      void 
-      _M_destroy_thread_key(void*);
+      _GLIBCXX_CONST void 
+      _M_destroy_thread_key(void*) throw ();
 
       size_t 
       _M_get_thread_id();
index 87d145d71efcc5c19390bc79cdb897f7bfe02f3c..d7077b1986b69fbdab7c7ad783b91527d8961a8d 100644 (file)
@@ -96,11 +96,11 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
       _M_round_up(size_t __bytes)
       { return ((__bytes + (size_t)_S_align - 1) & ~((size_t)_S_align - 1)); }
       
-      _Obj* volatile*
-      _M_get_free_list(size_t __bytes);
+      _GLIBCXX_CONST _Obj* volatile*
+      _M_get_free_list(size_t __bytes) throw ();
     
       __mutex&
-      _M_get_mutex();
+      _M_get_mutex() throw ();
 
       // Returns an object of size __n, and optionally adds to size __n
       // free list.
index c1e4ddd4e46c49f7ca4a63ceac862194c4d7d5cd..6ce2e101f252f4d7283231b33dd121e1d8fcbd24 100644 (file)
@@ -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)
index 95dc587c2b79e95a076fbcbf2993ec4659939fd3..9c3af0e60d5c9258858429c304acf952a4027c4f 100644 (file)
@@ -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
index cafd4d303d0c47e488b01da240998e2a4fb0e42a..e0da5e738842aa1506975d198b3e7a41bdcf26a4 100644 (file)
@@ -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