This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] libstdc++/23956
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 22 Sep 2005 03:56:40 -0500
- Subject: [v3] libstdc++/23956
As pointed out in the bugzilla entry.
Bits that can now be removed pending the resolution of previous
construction/destruction ordering issues.
tested x86/linux
gcc, queued for gcc-4.0.3
-benjamin
2005-09-21 Guillaume Melquiond <guillaume.melquiond@ens-lyon.fr>
PR libstdc++/23956
* include/ext/mt_allocator.h: Remove excess
policy_type::_S_get_pool calls in constructors.
Index: include/ext/mt_allocator.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/ext/mt_allocator.h,v
retrieving revision 1.48
diff -c -p -r1.48 mt_allocator.h
*** include/ext/mt_allocator.h 12 Sep 2005 04:49:09 -0000 1.48
--- include/ext/mt_allocator.h 22 Sep 2005 08:46:22 -0000
*************** namespace __gnu_cxx
*** 620,634 ****
typedef __mt_alloc<_Tp1, pol_type> other;
};
! __mt_alloc() throw()
! { __policy_type::_S_get_pool(); }
! __mt_alloc(const __mt_alloc&) throw()
! { __policy_type::_S_get_pool(); }
template<typename _Tp1, typename _Poolp1>
! __mt_alloc(const __mt_alloc<_Tp1, _Poolp1>& obj) throw()
! { __policy_type::_S_get_pool(); }
~__mt_alloc() throw() { }
--- 620,631 ----
typedef __mt_alloc<_Tp1, pol_type> other;
};
! __mt_alloc() throw() { }
! __mt_alloc(const __mt_alloc&) throw() { }
template<typename _Tp1, typename _Poolp1>
! __mt_alloc(const __mt_alloc<_Tp1, _Poolp1>& obj) throw() { }
~__mt_alloc() throw() { }