gcc/libstdc++-v3/testsuite/ext
Jonathan Wakely 375f837be1 re PR libstdc++/49561 ([C++0x] std::list::size complexity)
PR libstdc++/49561
	* acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_CXX11_ABI): Define.
	* configure.ac: Use GLIBCXX_ENABLE_LIBSTDCXX_CXX11_ABI.
	* configure: Regenerate.
	* include/Makefile.am (stamp-cxx11-abi): New target.
	(c++config.h): Set _GLIBCXX_USE_CXX11_ABI macro.
	* include/Makefile.in: Regenerate.
	* include/bits/c++config: Add _GLIBCXX_USE_CXX11_ABI placeholder and
	define _GLIBCXX_DEFAULT_ABI_TAG.
	* include/bits/list.tcc (list::emplace(const_iterator, _Args&...)):
	Increment size.
	(list::emplace(const_iterator, const value_type&)): Likewise.
	(list::merge(list&), list::merge(list&, _StrictWeakOrdering)): Adjust
	list sizes.
	* include/bits/stl_list.h (_List_base, list): Add ABI tag macro.
	(_List_base::_M_size): New data member in cxx11 ABI mode.
	(_List_base::_S_distance(_List_node_base*, _List_node_base*)): New
	function.
	(_List_base::_M_get_size(), _List_base::_M_set_size(size_t),
	_List_base::_M_inc_size(size_t), _List_base::_M_dec_size(size_t),
	_List_base::_M_distance, _List_base::_M_node_count): New functions for
	accessing list size correctly for the ABI mode.
	(_List_base::_List_base(_List_base&&)): Copy size and reset source.
	(_List_base::_M_init()): Initialize size member.
	(list::size()): Use _List_base::_M_node_count.
	(list::swap(list&)): Swap sizes.
	(list::splice(iterator, list&)): Update sizes.
	(list::splice(iterator, list&, iterator)): Likewise.
	(list::insert(iterator, const value_type&)): Update size.
	(list::insert(iterator, _Args&&...)): Likewise.
	(list::_M_erase(iterator)): Likewise.
	* testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
	Adjust.
	* testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
	Adjust.
	* testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
	Adjust.
	* testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
	Adjust.
	* testsuite/ext/profile/mutex_extensions_neg.cc: Adjust.

From-SVN: r216094
2014-10-10 16:33:57 +01:00
..
array_allocator Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
bitmap_allocator Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
codecvt Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
concurrence_lock_error Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
concurrence_unlock_error Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
debug_allocator Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
enc_filebuf Remove obsolete Solaris 9 support 2014-04-22 12:30:59 +00:00
ext_pointer Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
forced_error Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
iota Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_heap Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_sorted Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
malloc_allocator Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
mt_allocator Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
new_allocator Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
numeric_traits Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
pb_ds Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
pool_allocator Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
profile re PR libstdc++/49561 ([C++0x] std::list::size complexity) 2014-10-10 16:33:57 +01:00
random *: Fix incorrect standard references in comments. 2014-08-28 16:46:02 +01:00
rope re PR libstdc++/61946 (rope construction, passing allocator referenct without const) 2014-07-29 18:30:25 +01:00
slist Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
stdio_filebuf Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
stdio_sync_filebuf Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
throw_allocator Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
throw_value container.cc: Do not use uninitialized members in mem-initializers. 2014-04-15 20:05:52 +01:00
type_traits Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
vstring Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
concept_checks.cc Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
headers.cc Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
median.cc Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
pod_char_traits.cc Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00