OSDN Git Service

2006-09-20 Paolo Carlini <pcarlini@suse.de>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Sep 2006 00:11:52 +0000 (00:11 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Sep 2006 00:11:52 +0000 (00:11 +0000)
commitab0da02967f3464e1794430d4a07d752035e8b26
tree3bbaff3c7dfa297f621de5704fd92b3bbed413c2
parent8e7a741f32fb3fad67e3f7b6833f5ff7a6ca0ed1
2006-09-20  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/29134
* include/bits/stl_list.h (list<>::max_size): Forward to allocator'
max_size.
* include/bits/stl_vector.h (vector<>::max_size): Likewise.
* include/bits/stl_deque.h (deque<>::max_size): Likewise.
* include/bits/stl_tree.h (_Rb_tree<>::max_size): Likewise.
* include/tr1/hashtable (_Hashtable<>::max_size): Likewise.
* testsuite/23_containers/vector/capacity/29134.cc: Add.
* testsuite/23_containers/deque/capacity/29134.cc: Likewise.
* testsuite/23_containers/list/capacity/29134.cc: Likewise.
* testsuite/23_containers/set/capacity/29134.cc: Likewise.
* testsuite/23_containers/map/capacity/29134.cc: Likewise.
* testsuite/23_containers/multiset/capacity/29134.cc: Likewise.
* testsuite/23_containers/multimap/capacity/29134.cc: Likewise.
* testsuite/tr1/6_containers/unordered/capacity/29134-set.cc: Likewise.
* testsuite/tr1/6_containers/unordered/capacity/29134-map.cc: Likewise.
* testsuite/tr1/6_containers/unordered/capacity/29134-multiset.cc:
Likewise.
* testsuite/tr1/6_containers/unordered/capacity/29134-multimap.cc:
Likewise.

* include/bits/deque.tcc (deque<>::_M_new_elements_at_front,
deque<>::_M_new_elements_at_back): Check for length errors.
* testsuite/23_containers/deque/capacity/29134-2.cc: New.
* testsuite/23_containers/vector/capacity/29134-2.cc: Likewise.

* include/tr1/hashtable (_Hashtable<>::_M_get_Value_allocator): Add.
(_Hashtable<>::_M_allocate_node, _M_deallocate_node): Use it.
* testsuite/tr1/6_containers/unordered/instantiate/set.cc: Add test.
* testsuite/tr1/6_containers/unordered/instantiate/map.cc: Likewise.
* testsuite/tr1/6_containers/unordered/instantiate/multiset.cc:
Likewise.
* testsuite/tr1/6_containers/unordered/instantiate/multimap.cc:
Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117099 138bc75d-0d04-0410-961f-82ee72b054a4
24 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/deque.tcc
libstdc++-v3/include/bits/stl_deque.h
libstdc++-v3/include/bits/stl_list.h
libstdc++-v3/include/bits/stl_tree.h
libstdc++-v3/include/bits/stl_vector.h
libstdc++-v3/include/tr1/hashtable
libstdc++-v3/testsuite/23_containers/deque/capacity/29134-2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/deque/capacity/29134.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/list/capacity/29134.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/map/capacity/29134.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/multimap/capacity/29134.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/multiset/capacity/29134.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/set/capacity/29134.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/vector/capacity/29134-2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/vector/capacity/29134.cc [new file with mode: 0644]
libstdc++-v3/testsuite/tr1/6_containers/unordered/capacity/29134-map.cc [new file with mode: 0644]
libstdc++-v3/testsuite/tr1/6_containers/unordered/capacity/29134-multimap.cc [new file with mode: 0644]
libstdc++-v3/testsuite/tr1/6_containers/unordered/capacity/29134-multiset.cc [new file with mode: 0644]
libstdc++-v3/testsuite/tr1/6_containers/unordered/capacity/29134-set.cc [new file with mode: 0644]
libstdc++-v3/testsuite/tr1/6_containers/unordered/instantiate/map.cc
libstdc++-v3/testsuite/tr1/6_containers/unordered/instantiate/multimap.cc
libstdc++-v3/testsuite/tr1/6_containers/unordered/instantiate/multiset.cc
libstdc++-v3/testsuite/tr1/6_containers/unordered/instantiate/set.cc