OSDN Git Service

2010-01-08 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 9 Jan 2010 02:49:53 +0000 (02:49 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 9 Jan 2010 02:49:53 +0000 (02:49 +0000)
commitd79da0e907feba3c6a5ca258d7ded778cee56fed
tree48fa6995cf164184782c7de0dd7715af315d6905
parenteda7c5f409abb11746f6df5948bc8c0631b4459b
2010-01-08  Paolo Carlini  <paolo.carlini@oracle.com>

* include/debug/set.h: Protect move assignment operator vs self
assignment.
* include/debug/unordered_map: Likewise.
  * include/debug/multiset.h: Likewise.
  * include/debug/vector: Likewise.
* include/debug/unordered_set: Likewise.
* include/debug/deque: Likewise.
* include/debug/map.h: Likewise.
* include/debug/list: Likewise.
* include/debug/multimap.h: Likewise.
* include/tr1_impl/unordered_map: Likewise.
* include/tr1_impl/unordered_set: Likewise.
* include/profile/set.h: Likewise.
* include/profile/unordered_map: Likewise.
* include/profile/multiset.h: Likewise.
* include/profile/unordered_set: Likewise.
* include/profile/vector: Likewise.
* include/profile/deque: Likewise.
* include/profile/map.h: Likewise.
* include/profile/list: Likewise.
* include/profile/multimap.h: Likewise.
* include/ext/vstring.h: Likewise.
* include/bits/stl_list.h: Likewise.
* include/bits/stl_map.h: Likewise.
* include/bits/stl_set.h: Likewise.
* include/bits/stl_multimap.h: Likewise.
* include/bits/stl_vector.h: Likewise.
* include/bits/stl_deque.h: Likewise.
* include/bits/stl_multiset.h: Likewise.
* include/ext/vstring.h: Use clear().
* testsuite/ext/vstring/cons/self_move_assign.cc: New.
* testsuite/23_containers/unordered_map/cons/self_move_assign.cc:
Likewise.
* testsuite/23_containers/multimap/cons/self_move_assign.cc: Likewise.
* testsuite/23_containers/set/cons/self_move_assign.cc: Likewise.
* testsuite/23_containers/unordered_multimap/cons/
self_move_assign.cc: Likewise.
* testsuite/23_containers/forward_list/cons/self_move_assign.cc:
Likewise.
* testsuite/23_containers/unordered_set/cons/self_move_assign.cc:
Likewise.
  * testsuite/23_containers/vector/cons/self_move_assign.cc: Likewise.
* testsuite/23_containers/deque/cons/self_move_assign.cc: Likewise.
* testsuite/23_containers/multiset/cons/self_move_assign.cc: Likewise.
* testsuite/23_containers/list/cons/self_move_assign.cc: Likewise.
* testsuite/23_containers/unordered_multiset/cons/
self_move_assign.cc: Likewise.
* testsuite/23_containers/map/cons/self_move_assign.cc: Likewise.

* testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
Adjust dg-error line numbers.
  * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
Likewise.
  * testsuite/23_containers/vector/requirements/dr438/
constructor_1_neg.cc: Likewise.
* testsuite/23_containers/vector/requirements/dr438/
constructor_2_neg.cc: Likewise.
* testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
Likewise.
* testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
Likewise.
* testsuite/23_containers/deque/requirements/dr438/
constructor_1_neg.cc: Likewise.
* testsuite/23_containers/deque/requirements/dr438/
constructor_2_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
Likewise.
* testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
Likewise.
* testsuite/23_containers/list/requirements/dr438/
constructor_1_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/
constructor_2_neg.cc: Likewise.

* testsuite/ext/vstring/moveable.cc: Move to...
* testsuite/ext/vstring/cons/moveable.cc: ... here.
* testsuite/23_containers/unordered_map/moveable.cc: Move to...
* testsuite/23_containers/unordered_map/cons/moveable.cc ... here.
* testsuite/23_containers/multimap/moveable.cc: Move to...
* testsuite/23_containers/multimap/cons/moveable.cc: ... here.
* testsuite/23_containers/set/moveable.cc: Move to...
* testsuite/23_containers/set/cons/moveable.cc: ... here.
* testsuite/23_containers/unordered_multimap/moveable.cc: Move to...
* testsuite/23_containers/unordered_multimap/cons/moveable.cc:
... here.
* testsuite/23_containers/forward_list/moveable.cc: Move to...
* testsuite/23_containers/forward_list/cons/moveable.cc: ... here.
* testsuite/23_containers/unordered_set/moveable.cc Move to...
* testsuite/23_containers/unordered_set/moveable.cc: ... here.
* testsuite/23_containers/vector/cons/moveable.cc Move to...
* testsuite/23_containers/vector/cons/moveable2.cc: ... this.
* testsuite/23_containers/deque/cons/moveable.cc Move to...
* testsuite/23_containers/deque/cons/moveable2.cc: ... this.
* testsuite/23_containers/multiset/moveable.cc Move to...
* testsuite/23_containers/multiset/cons/moveable.cc: ... here.
* testsuite/23_containers/list/moveable.h Move to...
* testsuite/23_containers/list/cons/moveable.h: ... here.
* testsuite/23_containers/list/moveable.cc Move to...
* testsuite/23_containers/list/cons/moveable.cc: ... here.
* testsuite/23_containers/unordered_multiset/moveable.cc Move to...
* testsuite/23_containers/unordered_multiset/cons/moveable.cc:
... here.
* testsuite/23_containers/map/moveable.cc Move to...
* testsuite/23_containers/map/cons/moveable.cc: ... here.
* testsuite/23_containers/vector/moveable.cc: Move to...
* testsuite/23_containers/vector/cons/moveable.cc: ... here.
* testsuite/23_containers/deque/moveable.cc: Move to...
* testsuite/23_containers/deque/cons/moveable.cc: ... here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155754 138bc75d-0d04-0410-961f-82ee72b054a4
71 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_deque.h
libstdc++-v3/include/bits/stl_list.h
libstdc++-v3/include/bits/stl_map.h
libstdc++-v3/include/bits/stl_multimap.h
libstdc++-v3/include/bits/stl_multiset.h
libstdc++-v3/include/bits/stl_set.h
libstdc++-v3/include/bits/stl_vector.h
libstdc++-v3/include/debug/deque
libstdc++-v3/include/debug/list
libstdc++-v3/include/debug/map.h
libstdc++-v3/include/debug/multimap.h
libstdc++-v3/include/debug/multiset.h
libstdc++-v3/include/debug/set.h
libstdc++-v3/include/debug/unordered_map
libstdc++-v3/include/debug/unordered_set
libstdc++-v3/include/debug/vector
libstdc++-v3/include/ext/vstring.h
libstdc++-v3/include/profile/deque
libstdc++-v3/include/profile/list
libstdc++-v3/include/profile/map.h
libstdc++-v3/include/profile/multimap.h
libstdc++-v3/include/profile/multiset.h
libstdc++-v3/include/profile/set.h
libstdc++-v3/include/profile/unordered_map
libstdc++-v3/include/profile/unordered_set
libstdc++-v3/include/profile/vector
libstdc++-v3/include/tr1_impl/unordered_map
libstdc++-v3/include/tr1_impl/unordered_set
libstdc++-v3/testsuite/23_containers/deque/cons/moveable.cc
libstdc++-v3/testsuite/23_containers/deque/cons/moveable2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/deque/cons/self_move_assign.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/assign_neg.cc
libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc
libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc
libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/insert_neg.cc
libstdc++-v3/testsuite/23_containers/forward_list/cons/moveable.cc [moved from libstdc++-v3/testsuite/23_containers/forward_list/moveable.cc with 100% similarity]
libstdc++-v3/testsuite/23_containers/forward_list/cons/self_move_assign.cc [moved from libstdc++-v3/testsuite/23_containers/deque/moveable.cc with 65% similarity]
libstdc++-v3/testsuite/23_containers/list/cons/moveable.cc [moved from libstdc++-v3/testsuite/23_containers/list/moveable.cc with 100% similarity]
libstdc++-v3/testsuite/23_containers/list/cons/moveable.h [moved from libstdc++-v3/testsuite/23_containers/list/moveable.h with 100% similarity]
libstdc++-v3/testsuite/23_containers/list/cons/self_move_assign.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/list/requirements/dr438/assign_neg.cc
libstdc++-v3/testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc
libstdc++-v3/testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc
libstdc++-v3/testsuite/23_containers/list/requirements/dr438/insert_neg.cc
libstdc++-v3/testsuite/23_containers/map/cons/moveable.cc [moved from libstdc++-v3/testsuite/23_containers/map/moveable.cc with 100% similarity]
libstdc++-v3/testsuite/23_containers/map/cons/self_move_assign.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/multimap/cons/moveable.cc [moved from libstdc++-v3/testsuite/23_containers/multimap/moveable.cc with 100% similarity]
libstdc++-v3/testsuite/23_containers/multimap/cons/self_move_assign.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/multiset/cons/moveable.cc [moved from libstdc++-v3/testsuite/23_containers/multiset/moveable.cc with 100% similarity]
libstdc++-v3/testsuite/23_containers/multiset/cons/self_move_assign.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/set/cons/moveable.cc [moved from libstdc++-v3/testsuite/23_containers/set/moveable.cc with 100% similarity]
libstdc++-v3/testsuite/23_containers/set/cons/self_move_assign.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/unordered_map/cons/moveable.cc [moved from libstdc++-v3/testsuite/23_containers/unordered_map/moveable.cc with 100% similarity]
libstdc++-v3/testsuite/23_containers/unordered_map/cons/self_move_assign.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/unordered_multimap/cons/moveable.cc [moved from libstdc++-v3/testsuite/23_containers/unordered_multimap/moveable.cc with 100% similarity]
libstdc++-v3/testsuite/23_containers/unordered_multimap/cons/self_move_assign.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/unordered_multiset/cons/moveable.cc [moved from libstdc++-v3/testsuite/23_containers/unordered_multiset/moveable.cc with 100% similarity]
libstdc++-v3/testsuite/23_containers/unordered_multiset/cons/self_move_assign.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/unordered_set/cons/moveable.cc [moved from libstdc++-v3/testsuite/23_containers/unordered_set/moveable.cc with 100% similarity]
libstdc++-v3/testsuite/23_containers/unordered_set/cons/self_move_assign.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/vector/cons/moveable.cc
libstdc++-v3/testsuite/23_containers/vector/cons/moveable2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/vector/cons/self_move_assign.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/vector/moveable.cc [deleted file]
libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/assign_neg.cc
libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc
libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc
libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/insert_neg.cc
libstdc++-v3/testsuite/ext/vstring/cons/moveable.cc [moved from libstdc++-v3/testsuite/ext/vstring/moveable.cc with 100% similarity]
libstdc++-v3/testsuite/ext/vstring/cons/self_move_assign.cc [new file with mode: 0644]