This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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() { }
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]