OSDN Git Service

2010-03-12 Benjamin Kosnik <bkoz@redhat.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
index 63171f9..2fae3e6 100644 (file)
@@ -1,3 +1,319 @@
+2010-03-12  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * scripts/run_doxygen: Adjust.
+       * doc/doxygen/user.cfg.in: Adjust latex, xml prefs.
+       * doc/xml/api.xml: Update.
+       * doc/Makefile.am: Re-do stamp rules.
+       * doc/Makefile.in: Regenerate.
+
+2010-03-10  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * include/bits/hashtable_policy.h (_Rehash_base<_Prime_rehash_policy,
+       _Hashtable>::reserve): Add, per DR 1189.
+       * include/bits/hashtable.h (_Hashtable<>::size_type,
+       _Hashtable<>::difference_type): Do not typedef from _Allocator.
+       * testsuite/23_containers/unordered_map/dr1189.cc: New.
+       * testsuite/23_containers/unordered_set/dr1189.cc: Likewise.
+       * testsuite/23_containers/unordered_multimap/dr1189.cc: Likewise.
+       * testsuite/23_containers/unordered_multiset/dr1189.cc: Likewise.
+
+2010-03-08  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       Revert:
+       2010-02-11  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR libstdc++/41975, DR 579
+       * include/bits/hashtable.h (_Hashtable<>::_M_erase_node): Remove.
+       (erase(const_iterator), erase(const_iterator, const_iterator)):
+       Change return type to void.
+       * include/debug/unordered_map: Adjust.
+       * include/debug/unordered_set: Likewise.
+       * testsuite/util/exception/safety.h: Likewise.
+       * testsuite/23_containers/unordered_map/erase/1.cc: Likewise.
+       * testsuite/23_containers/unordered_map/erase/24061-map.cc: Likewise.
+       * testsuite/23_containers/unordered_set/erase/1.cc:  Likewise.
+       * testsuite/23_containers/unordered_set/erase/24061-map.cc: Likewise.
+       * testsuite/23_containers/unordered_multimap/erase/1.cc:  Likewise.
+       * testsuite/23_containers/unordered_multimap/erase/24061-map.cc:
+       Likewise.
+       * testsuite/23_containers/unordered_multiset/erase/1.cc:  Likewise.
+       * testsuite/23_containers/unordered_multiset/erase/24061-map.cc:
+       Likewise.
+
+2010-03-04  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * testsuite/util/testsuite_container_traits.h (traits_base): Add
+       has_throwing_erase trait.
+       (traits<vector>, traits<deque>): Typedef the latter to true_type.
+       * testsuite/util/exception/safety.h (generation_prohibited):
+       Do not test vector::erase and deque::erase: can throw if
+       either copy constructor or assignment operator of value_type
+       throws.
+       * testsuite/23_containers/vector/requirements/exception/
+       generation_prohibited.cc: Remove xfail.
+       * testsuite/23_containers/deque/requirements/exception/
+       generation_prohibited.cc: Likewise.
+
+       * include/ext/throw_allocator.h (hash<__gnu_cxx::throw_value_limit>::
+       operator(), hash<__gnu_cxx::throw_value_random>::operator()): Pass
+       argument by const ref.
+
+       * testsuite/util/testsuite_container_traits.h (traits<map>,
+       traits<multimap>, traits<set>, traits<multiset>,
+       traits<unordered_map>, traits<unordered_multimap>,
+       traits<unordered_set>, traits<unordered_multiset>): Typedef
+       consistently has_erase and has_insert as true_type.
+
+       * testsuite/util/testsuite_container_traits.h
+       (traits<unordered_map>, traits<unordered_multimap>,
+       traits<unordered_set>, traits<unordered_multiset>): Do not wrongly
+       typedef has_size_type_constructor as true_type: the constructor
+       accepting a size_type actually gets the initial number of
+       buckets.
+
+2010-03-03  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * doc/Makefile.am: Re-organize xml sources.
+       (doc-latex-doxygen): New.
+       (doc-pdf-doxygen): New.
+       (stamp-xml-doxygen, stamp-latex-doxygen): New.
+       * doc/Makefile.in: Regenerate.
+       * doc/doxygen/user.cfg.in: Add support here.
+       * doc/xml/manual/appendix_contributing.xml: Add specifics.
+
+       * doc/xml/manual/concurrency.xml: New.
+       * doc/xml/manual/atomics.xml: New.
+       * doc/xml/manual/spine.xml: Adjust.
+       * doc/xml/manual/diagnostics.xml: Adjust.
+
+2010-03-03  Paolo Carlini  <paolo.carlini@oracle.com>
+           Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * include/bits/unique_ptr.h (unique_ptr<>::get_deleter): Simplify
+       return type.
+       * testsuite/20_util/unique_ptr/modifiers/reset_neg.cc: Adjust
+       dg-error line number.
+       * testsuite/20_util/unique_ptr/assign/assign_neg.cc: Likewise.
+
+2010-03-02  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * include/debug/bitset (hash): Minor tweaks.
+       * include/debug/vector (hash): Likewise.
+       * include/profile/bitset (hash): Likewise.
+       * include/profile/vector (hash): Likewise.
+
+2010-03-02  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * include/bits/functional_hash.h (_Fnv_hash_base<>::hash): Change
+       to template.
+       * include/tr1/functional_hash.h (_Fnv_hash_base<>::hash): Likewise.
+       * include/bits/vector.tcc (hash): Adjust.
+       * include/bits/basic_string.h (hash): Likewise.
+       * include/std/bitset (hash): Likewise.
+       * src/hash-string-aux.cc (hash): Likewise.
+
+2010-03-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * include/std/mutex (lock_guard::lock_guard): Do not lock mutex when
+       adopt_lock_t constructor is used.
+       * testsuite/30_threads/lock_guard/cons/1.cc: New.
+
+2010-03-02  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * include/bits/stl_bvector.h (hash<vector<bool, _Alloc>>::
+       operator()(const vector<bool, _Alloc>&)): Move definition...
+       * include/bits/vector.tcc: ... here.
+
+2010-03-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * testsuite/Makefile.am (check-DEJAGNU): Include de* in normal0
+       dirs.
+       * testsuite/Makefile.in: Regenerate.
+
+2010-03-02  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * include/bits/stl_bvector.h (hash<vector<bool, _Alloc>>): Add.
+       * include/debug/vector (hash<__debug::vector<bool, _Alloc>>):
+       Likewise.
+       * include/profile/vector (hash<__profile::vector<bool, _Alloc>>):
+       Likewise.
+       * testsuite/23_containers/vector/bool/hash/1.cc: New.
+
+       * include/std/bitset (hash<bitset<_Nb>>): Small tweaks.
+       (hash<bitset<0>>): Add.
+       * include/debug/bitset (hash<__debug::bitset<_Nb>>): Forward to
+       hash<bitset<_Nb>>.
+       * include/profile/bitset (hash<__profile::bitset<_Nb>>): Likewise.
+       * testsuite/23_containers/bitset/hash/1.cc: Improve.
+
+2010-03-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       PR libstdc++/43230
+       * testsuite/30_threads/promise/members/set_value3.cc
+       (tester::~tester): Remove.
+
+2010-03-02  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * include/std/bitset (_Base_bitset<>::_M_getdata()): Add.
+       (hash<bitset<_Nb>>): Add, use the latter.
+       * include/debug/bitset (hash<__debug::bitset<_Nb>>): Add.
+       * include/profile/bitset (hash<__profile::bitset<_Nb>>): Likewise.
+       * testsuite/23_containers/bitset/hash/1.cc: New.
+
+2010-03-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       PR libstdc++/43183
+       * include/bits/unique_ptr.h (reset): Fix as per working paper.
+       (operator*, operator->, operator[], operator bool, release): Use
+       pointer's null value instead of 0.
+       * testsuite/20_util/unique_ptr/assign/assign_neg.cc: Adjust.
+       * testsuite/20_util/unique_ptr/modifiers/reset_neg.cc: Adjust.
+       * testsuite/20_util/unique_ptr/modifiers/43183.cc: New.
+
+2010-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * include/std/iomanip (get_money, put_money): Add in C++0x mode; tidy.
+       * testsuite/27_io/manipulators/extended/get_money/char/1.cc: New.
+       * testsuite/27_io/manipulators/extended/get_money/wchar_t/1.cc:
+       Likewise.
+       * testsuite/27_io/manipulators/extended/put_money/char/1.cc: Likewise.
+       * testsuite/27_io/manipulators/extended/put_money/wchar_t/1.cc:
+       Likewise.
+
+2010-03-01  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/bits/atomicfwd_cxx.h: Add typedefs to group.
+
+2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       PR libstdc++/32499
+       * testsuite/Makefile.am (check-DEJAGNU
+       $(check_DEJAGNU_normal_targets)): Export AR, RANLIB.
+       * testsuite/Makefile.in: Regenerate.
+
+2010-02-28  Gerald Pfeifer  <gerald@pfeifer.com>
+
+       * doc/html/ext/pb_ds/references.html: Adjust link to SGI's STL
+       site.
+
+2010-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * src/hash-long-double-aux.cc (hash<long double>::
+       operator()(long double)): Hash both -0 and +0 to 0.
+
+2010-02-25  Ed Smith-Rowland  <3dw4rd@verizon.net>
+
+       * include/bits/random.tcc (operator<<): Use max_digits10.
+
+2010-02-25  Ed Smith-Rowland  <3dw4rd@verizon.net>
+
+       * include/std/limits (__numeric_limits_base::max_digits10,
+       numeric_limits<>::max_digits10, numeric_limits<>::lowest): Add.
+       * src/limits.cc: Define max_digits10.
+       * config/abi/pre/gnu.ver: Adjust.
+       * testsuite/18_support/numeric_limits/dr559.cc: Test max_digits10
+       and lowest too.
+       * testsuite/18_support/numeric_limits/lowest.cc: New.
+       * testsuite/18_support/numeric_limits/max_digits10.cc: New.
+
+2010-02-25  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * include/bits/functional_hash.h (__hash_combine): Remove.
+       (_Fnv_hash_base<>::hash(const char*, size_t)): Add defaulted
+       hash parameter.
+       (_Fnv_hash::__hash_combine(const _Tp&, size_t)): Add.
+       * include/std/system_error (hash<system_error>): Adjust.
+       * src/compatibility-c++0x.cc (hash<system_error>): Likewise.
+
+2010-02-24  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * doc/xml/faq.xml: Adjust structure for pdf index.
+       * doc/xml/manual/mt_allocator.xml: Same.
+       * doc/xml/manual/allocator.xml: Same.
+       * doc/xml/manual/ctype.xml: Same.
+       * doc/xml/manual/numerics.xml: Same.
+       * doc/xml/manual/codecvt.xml: Same.
+       * doc/xml/manual/intro.xml: Same.
+       * doc/xml/manual/shared_ptr.xml: Same.
+       * doc/xml/manual/status_cxxtr1.xml: Same.
+       * doc/xml/manual/auto_ptr.xml: Same.
+       * doc/xml/manual/internals.xml: Same.
+       * doc/xml/manual/status_cxx1998.xml: Same.
+       * doc/xml/manual/parallel_mode.xml: Same.
+       * doc/xml/manual/profile_mode.xml: Same.
+       * doc/xml/manual/containers.xml: Same.
+       * doc/xml/manual/io.xml: Same.
+       * doc/xml/manual/concurrency_extensions.xml: Same.
+       * doc/xml/manual/appendix_porting.xml: Same.
+       * doc/xml/manual/utilities.xml: Same.
+       * doc/xml/manual/support.xml: Same.
+       * doc/xml/manual/bitmap_allocator.xml: Same.
+       * doc/xml/manual/configure.xml: Same.
+       * doc/xml/manual/build_hacking.xml: Same.
+       * doc/xml/manual/evolution.xml: Same.
+       * doc/xml/manual/using.xml: Same.
+       * doc/xml/manual/debug.xml: Same.
+       * doc/xml/manual/localization.xml: Same.
+       * doc/xml/manual/strings.xml: Same.
+       * doc/xml/manual/debug_mode.xml: Same.
+       * doc/xml/manual/locale.xml: Same.
+       * doc/xml/manual/extensions.xml: Same.
+       * doc/xml/manual/appendix_contributing.xml: Same.
+       * doc/xml/manual/prerequisites.xml: Same.
+       * doc/xml/manual/messages.xml: Same.
+       * doc/xml/manual/diagnostics.xml: Same.
+       * doc/xml/manual/algorithms.xml: Same.
+       * doc/xml/manual/appendix_free.xml: Same.
+       * doc/xml/manual/iterators.xml: Same.
+       * doc/xml/manual/spine.xml: Same.
+       * doc/xml/manual/status_cxxtr24733.xml: Same.
+       * doc/xml/manual/status_cxx200x.xml: Same.
+       * doc/Makefile.am: Refactor.
+       * doc/Makefile.in: Regenerate.
+
+       * include/bits/c++0x_warning.h: Tweak doxygen file markup.
+
+2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * testsuite/ext/new_allocator/deallocate_global.cc: Require
+       __cxa_atexit.
+       * testsuite/ext/throw_allocator/deallocate_global.cc: Likewise.
+
+2010-02-23  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * doc/xml/manual/concurrency.xml: Move...
+       * doc/xml/manual/concurrency_extensions.xml: ...here.
+       * doc/xml/manual/extensions.xml: Adjust.
+       * doc/Makefile.am: Adjust.
+       * doc/Makefile.in: Regenerate.
+
+2010-02-23  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/bits/random.h: Doxygen group markup fixes.
+
+2010-02-23  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * include/bits/functional_hash.h (struct _Fnv_hash): Rename
+       to _Fnv_hash_base.
+       (struct _Fnv_hash): Add, derives from the latter.
+       (__hash_combine): Add.
+       (hash<float>::operator()(float), hash<double>::operator()(double)):
+       Adjust.
+       * include/bits/basic_string.h (hash<string>, hash<wstring>,
+       hash<u16string>, hash<u32string>): Adjust.
+       * src/hash-string-aux.cc: Adjust.
+       * src/compatibility-c++0x.cc (hash<error_code>): Use __hash_combine.
+       * include/std/system_error (hash<error_code>): Likewise.
+       * include/std/thread (struct hash<thread::id>): Add.
+       * include/tr1/functional_hash.h : Rename to _Fnv_hash_base.
+       (struct _Fnv_hash): Add, derives from the latter.
+       (hash<float>::operator()(float), hash<double>::operator()(double)):
+       Adjust.
+       * testsuite/30_threads/thread/id/hash.cc: New.
+       * testsuite/30_threads/thread/cons/assign_neg.cc: Adjust dg-error
+       line number.
+       * testsuite/30_threads/thread/cons/copy_neg.cc: Likewise.
+
 2010-02-22  Janis Johnson  <janis187@us.ibm.com>
 
        * src/compatibility-ldbl.cc: Include new hash-long-double-aux.cc.