]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libstdc++/33633 (-D_GLIBCXX_DEBUG vs ext/hash_*)
authorBenjamin Kosnik <bkoz@redhat.com>
Wed, 10 Oct 2007 15:23:59 +0000 (15:23 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Wed, 10 Oct 2007 15:23:59 +0000 (15:23 +0000)
2007-10-10  Benjamin Kosnik  <bkoz@redhat.com>

PR libstdc++/33633
* include/debug/hash_multimap.h: Change _GLIBCXX_EXT to _GLIBCXX_EXT_D.
* include/debug/hash_set.h: Same.
* include/debug/hash_multiset.h: Same.
* include/debug/hash_map.h: Same.

2007-10-10  Benjamin Kosnik  <bkoz@redhat.com>

* include/parallel/losertree.h (loser_tree_traits_unguarded): To
loser_tree_unguarded_traits.
* include/parallel/multiway_merge.h (__gnu_parallel): Same.

From-SVN: r129210

libstdc++-v3/ChangeLog
libstdc++-v3/include/debug/hash_map.h
libstdc++-v3/include/debug/hash_multimap.h
libstdc++-v3/include/debug/hash_multiset.h
libstdc++-v3/include/debug/hash_set.h
libstdc++-v3/include/parallel/losertree.h
libstdc++-v3/include/parallel/multiway_merge.h

index 44afe2e44878a239fddea3b885da83e0f619dd57..145a75cd38c97d53b31ab601250a35316f70f0d0 100644 (file)
@@ -1,3 +1,17 @@
+2007-10-10  Benjamin Kosnik  <bkoz@redhat.com>
+
+       PR libstdc++/33633
+       * include/debug/hash_multimap.h: Change _GLIBCXX_EXT to _GLIBCXX_EXT_D.
+       * include/debug/hash_set.h: Same.
+       * include/debug/hash_multiset.h: Same.
+       * include/debug/hash_map.h: Same.
+
+2007-10-10  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/parallel/losertree.h (loser_tree_traits_unguarded): To 
+       loser_tree_unguarded_traits.
+       * include/parallel/multiway_merge.h (__gnu_parallel): Same.
+
 2007-10-10  Paolo Carlini  <pcarlini@suse.de>
            Chris Fairles  <chris.fairles@gmail.com>
 
@@ -20,7 +34,7 @@
         * libsupc++/guard.cc: Make single conditional variable
         implementation dependent to __GTHREAD_HAS_COND.
 
-2007-10-09  Benjamin Kosnik  <bkoz@montsouris.artheist.org>
+2007-10-09  Benjamin Kosnik  <bkoz@redhat.com>
 
        PR libstdc++/33489 continued.           
        * include/parallel/features.h (_GLIBCXX_LOSER_TREE): Set to zero.
index 1eb6acb869c3077b460859b449b158e2d3e5ee45..aeac90b8a136056c7711d46e00e9c987c1618600 100644 (file)
@@ -1,6 +1,6 @@
 // Debugging hash_map implementation -*- C++ -*-
 
-// Copyright (C) 2003, 2005, 2006
+// Copyright (C) 2003, 2005, 2006, 2007
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -47,11 +47,11 @@ namespace __debug
           typename _EqualKey = std::equal_to<_Value>,
           typename _Alloc = std::allocator<_Value> >
     class hash_map
-    : public _GLIBCXX_EXT::hash_map<_Value, _Tp, _HashFcn, _EqualKey, _Alloc>,
+    : public _GLIBCXX_EXT_D::hash_map<_Value, _Tp, _HashFcn, _EqualKey, _Alloc>,
       public __gnu_debug::_Safe_sequence<hash_map<_Value, _Tp, _HashFcn,
                                                 _EqualKey, _Alloc> >
     {
-      typedef _GLIBCXX_EXT::hash_map<_Value, _Tp, _HashFcn, _EqualKey, _Alloc>
+      typedef _GLIBCXX_EXT_D::hash_map<_Value, _Tp, _HashFcn, _EqualKey, _Alloc>
                                                        _Base;
       typedef __gnu_debug::_Safe_sequence<hash_map>    _Safe_base;
 
index e3c689ac7cd295c89e793abd15e84b80d70a2a8e..985fbc83030f6deefb35380d79d27bc67061db74 100644 (file)
@@ -47,11 +47,11 @@ namespace __debug
           typename _EqualKey = std::equal_to<_Value>,
           typename _Alloc =  std::allocator<_Value> >
     class hash_multimap
-    : public _GLIBCXX_EXT::hash_multimap<_Value,_Tp,_HashFcn,_EqualKey,_Alloc>,
+    : public _GLIBCXX_EXT_D::hash_multimap<_Value,_Tp,_HashFcn,_EqualKey,_Alloc>,
       public __gnu_debug::_Safe_sequence<hash_multimap<_Value, _Tp, _HashFcn,
                                                       _EqualKey, _Alloc> >
     {
-      typedef _GLIBCXX_EXT::hash_multimap<_Value,_Tp,_HashFcn,_EqualKey,_Alloc>
+      typedef _GLIBCXX_EXT_D::hash_multimap<_Value,_Tp,_HashFcn,_EqualKey,_Alloc>
                                                        _Base;
       typedef __gnu_debug::_Safe_sequence<hash_multimap> _Safe_base;
 
index 93464969487140b0c73bb60417b94f0b207b3038..11efb5b68464272cc196fd1fd9df75961a53dfde 100644 (file)
@@ -47,11 +47,11 @@ namespace __debug
           typename _EqualKey = std::equal_to<_Value>,
           typename _Alloc =  std::allocator<_Value> >
     class hash_multiset
-    : public _GLIBCXX_EXT::hash_multiset<_Value, _HashFcn, _EqualKey, _Alloc>,
+    : public _GLIBCXX_EXT_D::hash_multiset<_Value, _HashFcn, _EqualKey, _Alloc>,
       public __gnu_debug::_Safe_sequence<hash_multiset<_Value, _HashFcn,
                                                       _EqualKey, _Alloc> >
     {
-      typedef _GLIBCXX_EXT:: hash_multiset<_Value,_HashFcn, _EqualKey,_Alloc>
+      typedef _GLIBCXX_EXT_D:: hash_multiset<_Value,_HashFcn, _EqualKey,_Alloc>
                                                        _Base;
       typedef __gnu_debug::_Safe_sequence<hash_multiset> _Safe_base;
 
index 2d3e0b303fb66c2600275df508040ba7b65f34be..9178063289b0032cfb43597b154e0c659e5b663e 100644 (file)
@@ -1,6 +1,6 @@
 // Debugging hash_set implementation -*- C++ -*-
 
-// Copyright (C) 2003, 2005, 2006
+// Copyright (C) 2003, 2005, 2006, 2007
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -47,11 +47,11 @@ namespace __debug
           typename _EqualKey = std::equal_to<_Value>,
           typename _Alloc =  std::allocator<_Value> >
     class hash_set
-    : public _GLIBCXX_EXT::hash_set<_Value, _HashFcn, _EqualKey,_Alloc>,
+    : public _GLIBCXX_EXT_D::hash_set<_Value, _HashFcn, _EqualKey,_Alloc>,
       public __gnu_debug::_Safe_sequence<hash_set<_Value, _HashFcn, _EqualKey,
                                                  _Alloc> >
     {
-      typedef _GLIBCXX_EXT::hash_set<_Value, _HashFcn, _EqualKey,_Alloc> _Base;
+      typedef _GLIBCXX_EXT_D::hash_set<_Value, _HashFcn, _EqualKey,_Alloc> _Base;
       typedef __gnu_debug::_Safe_sequence<hash_set> _Safe_base;
 
     public:
index 8117995e34aed759b895fb6f791854e71916cd7f..5c7a8085e20940a33e59771c50ce93fc530a79a0 100644 (file)
@@ -1094,7 +1094,7 @@ namespace __gnu_parallel
   };
 
   template<typename _ValueTp, class Comparator>
-  struct loser_tree_traits_unguarded
+  struct loser_tree_unguarded_traits
   {
 #if _GLIBCXX_LOSER_TREE_UNGUARDED
     typedef LoserTreeUnguarded<_ValueTp, Comparator> LT;
@@ -1102,7 +1102,7 @@ namespace __gnu_parallel
 #  if _GLIBCXX_LOSER_TREE_POINTER_UNGUARDED
     typedef LoserTreePointerUnguarded<_ValueTp, Comparator> LT;
 #  else
-#    error Must define some type in losertree.h.
+#    error Must define some unguarded type in losertree.h.
 #  endif
 #endif
   };
index b72321547955c75177859c29cc6141c317920b07..c727e44f0fcaad10a75b6f72dde9de636c9d5db7 100644 (file)
@@ -1109,7 +1109,7 @@ namespace __gnu_parallel
       {
        difference_type unguarded_length = std::min(length, total_length - overhang);
        target_end = multiway_merge_loser_tree_unguarded
-         <typename loser_tree_traits_unguarded<value_type, Comparator>::LT>
+         <typename loser_tree_unguarded_traits<value_type, Comparator>::LT>
          (seqs_begin, seqs_end, target, comp, unguarded_length, stable);
        overhang = length - unguarded_length;
       }
@@ -1166,7 +1166,7 @@ namespace __gnu_parallel
 
     difference_type unguarded_length = std::min(length, total_length - overhang);
     target_end = multiway_merge_loser_tree_unguarded
-      <typename loser_tree_traits_unguarded<value_type, Comparator>::LT>
+      <typename loser_tree_unguarded_traits<value_type, Comparator>::LT>
       (seqs_begin, seqs_end, target, comp, unguarded_length, stable);
     overhang = length - unguarded_length;