gcc/libstdc++-v3/include/ext
Benjamin Kosnik 12cde21b12 re PR libstdc++/17780 (std::allocator vs. static init)
2004-10-05  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/17780
	* include/ext/mt_allocator.h (__pool_base::_Tune): Add default
	options as compile-time constant enums.
	(__pool_base::_Tune::is_default): New.
	(__pool_base::_Block_address): New.
	(__pool_base): Rearrange data members.
	(__pool::_M_reserve_memory): To _M_reserve_block.
	(__pool::_M_reclaim_memory): To _M_reclaim_block.
	(__pool::_Bin_record): Add _Block_address data member.
	(__pool<false>): Add _M_thread_freelist_initial.
	(__pool::~__pool): Declare.
	(__common_pool_policy): Move static data member to...
	(__common_pool_policy::_S_get_pool): ...here, make static local.
	(__per_type_pool_policy): Move static data member to...
	(__per_type_pool_policy::_S_get_pool): ...here, make static local.
	(__mt_alloc::__mt_alloc): Call __policy_type::_S_get_pool.
	Remove static member definitions. Use define for __default_policy.
	* src/mt_allocator.cc: Same.
	* config/linker-map.gnu: Don't export _S_get_pool. Renames.
	* testsuite/ext/new_allocator: New.
	* testsuite/ext/new_allocator/instantiate.cc: New.
	* testsuite/ext/new_allocator/check_new.cc: New.
	* testsuite/ext/new_allocator/deallocate_global.cc: New.
	* testsuite/ext/new_allocator/deallocate_local.cc: New.
	* testsuite/ext/mt_allocator/instantiate.cc: Instantiate all
	template arguments.
	* testsuite/ext/mt_allocator/deallocate_global-1.cc: New.
	* testsuite/ext/mt_allocator/deallocate_global-2.cc: New.
	* testsuite/ext/mt_allocator/deallocate_global-3.cc: New.
	* testsuite/ext/mt_allocator/deallocate_global-4.cc: New.
	* testsuite/ext/mt_allocator/deallocate_local-1.cc: New.
	* testsuite/ext/mt_allocator/deallocate_local-2.cc: New.
	* testsuite/ext/mt_allocator/deallocate_local-3.cc: New.
	* testsuite/ext/mt_allocator/deallocate_local-4.cc: New.
	* testsuite/ext/mt_allocator/deallocate.cc: New.
	* testsuite/ext/malloc_allocator/deallocate.cc: New.
	* testsuite/ext/malloc_allocator/deallocate_global.cc: New.
	* testsuite/ext/malloc_allocator/deallocate_local.cc: New.

From-SVN: r88589
2004-10-06 04:22:42 +00:00
..
algorithm [multiple changes] 2004-06-12 08:10:24 +00:00
bitmap_allocator.h bitmap_allocator.h: (_Bit_scan_forward) -> Made this function call __builtin_ctz instead of the... 2004-03-24 18:27:43 +00:00
debug_allocator.h malloc_allocator.h: Fixed the construct function to call global placement new instead of assignment. 2004-03-24 21:40:01 +00:00
enc_filebuf.h enc_filebuf.h: Move concept-check macro to class scope. 2004-05-18 10:09:39 +01:00
functional [multiple changes] 2004-06-12 08:10:24 +00:00
hash_fun.h [multiple changes] 2004-06-12 08:10:24 +00:00
hash_map hash_map: Trivial formatting fixes. 2004-06-14 19:40:45 +00:00
hash_set hash_map: Trivial formatting fixes. 2004-06-14 19:40:45 +00:00
hashtable.h stl_construct.h (_Destroy): New three-argument overload that takes an allocator argument. 2004-07-28 16:37:20 +00:00
iterator [multiple changes] 2004-06-12 08:10:24 +00:00
malloc_allocator.h malloc_allocator.h: Fixed the construct function to call global placement new instead of assignment. 2004-03-24 21:40:01 +00:00
memory stl_construct.h (_Destroy): New three-argument overload that takes an allocator argument. 2004-07-28 16:37:20 +00:00
mt_allocator.h re PR libstdc++/17780 (std::allocator vs. static init) 2004-10-06 04:22:42 +00:00
new_allocator.h malloc_allocator.h: Add operators ==, !=. 2004-02-23 15:41:43 +00:00
numeric hash_map: Trivial formatting fixes. 2004-06-14 19:40:45 +00:00
pod_char_traits.h algorithm, [...]: Remove trailing whitespace. 2003-12-09 05:31:53 +01:00
pool_allocator.h pool_allocator.h: Rename __pool_base to __pool_alloc_base. 2004-08-30 18:22:01 +00:00
rb_tree hashtable.h: Trivial formatting fixes. 2004-06-15 13:43:56 +00:00
rope stl_construct.h (_Destroy): New three-argument overload that takes an allocator argument. 2004-07-28 16:37:20 +00:00
ropeimpl.h re PR libstdc++/17259 (One more _S_leaf incorrectly qualified with _RopeRep:: in ropeimpl.h) 2004-09-02 18:22:20 +00:00
slist re PR libstdc++/16844 (Explicit instantiation failing) 2004-08-02 04:40:19 +00:00
stdio_filebuf.h re PR libstdc++/14600 (__gnu_cxx::stdio_sync_filebuf should expose internal FILE*) 2004-05-29 14:40:59 +00:00
stdio_sync_filebuf.h re PR libstdc++/14600 (__gnu_cxx::stdio_sync_filebuf should expose internal FILE*) 2004-05-29 14:40:59 +00:00