gcc/libstdc++-v3/testsuite
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
..
17_intro re PR libstdc++/60793 (Add target *-*-dragonfly* to dg-options on 172 libstdc++ tests) 2014-05-23 11:19:20 +01:00
18_support 62154.cc: Disable when the target doesn't provide atomic builtins. 2014-08-21 09:11:00 +00:00
19_diagnostics Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
20_util re PR libstdc++/60132 (C++11: lack of is_trivially_copy_constructible) 2014-10-09 08:37:26 +00:00
21_strings basic_string.h (getline): Qualify call to prevent ADL and add overloads for rvalue streams. 2014-08-12 16:19:53 +01:00
22_locale re PR libstdc++/60793 (Add target *-*-dragonfly* to dg-options on 172 libstdc++ tests) 2014-05-23 11:19:20 +01:00
23_containers re PR libstdc++/49561 ([C++0x] std::list::size complexity) 2014-10-10 16:33:57 +01:00
24_iterators container.cc: Do not use uninitialized members in mem-initializers. 2014-04-15 20:05:52 +01:00
25_algorithms testsuite_counter_type.h (counter_type::operator<(const counter_type&)): Update less_compare_count. 2014-10-07 21:26:55 +00:00
26_numerics ctgmath: Include <complex>. 2014-10-02 16:52:24 +01:00
27_io re PR libstdc++/59987 ([C++11]: Missing ios_base::hexfloat format specifier) 2014-10-06 16:55:53 +01:00
28_regex re PR libstdc++/63199 (Inserting std::wregex to std::vector loses some std::wregex values) 2014-09-25 04:43:19 +00:00
29_atomics re PR libstdc++/63322 (std::atomic<T> where T is not trivially copyable should be disabled.) 2014-10-09 19:17:23 +01:00
30_threads mutex (try_lock): Do not swallow exceptions. 2014-09-22 15:54:35 +01:00
abi Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
backward Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
config Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
data make_graph_test_infos.xml: Edit. 2011-08-15 00:51:06 +00:00
decimal Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
experimental Makefile.am: Add new header. 2014-10-06 13:26:45 +01:00
ext re PR libstdc++/49561 ([C++0x] std::list::size complexity) 2014-10-10 16:33:57 +01:00
lib Makefile.in (dg_target_exps): Remove. 2014-09-15 20:23:36 +02:00
libstdc++-abi Makefile.in (dg_target_exps): Remove. 2014-09-15 20:23:36 +02:00
libstdc++-dg Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
libstdc++-prettyprinters printers.py (SingleObjContainerPrinter): New base class for experimental::any and experimental::optional printers. 2014-07-15 13:00:18 +01:00
libstdc++-xmethods Makefile.in (dg_target_exps): Remove. 2014-09-15 20:23:36 +02:00
performance regex_compiler.h (__detail::_BracketMatcher): Reorder members to avoid wasted space when not using a cache. 2014-06-02 20:36:14 +01:00
tr1 parser.c (cp_parser_init_declarator): Remove redundant check of decl_specifiers->type. 2014-08-14 09:15:11 +00:00
tr2 Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
util testsuite_counter_type.h (counter_type::operator<(const counter_type&)): Update less_compare_count. 2014-10-07 21:26:55 +00:00
Makefile.am Makefile.in (check-parallel-%): Add @. 2014-09-22 12:33:35 -04:00
Makefile.in Makefile.in (check-parallel-%): Add @. 2014-09-22 12:33:35 -04:00