OSDN Git Service

2005-11-05 Paolo Carlini <pcarlini@suse.de>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
index dedb911..2dfb62d 100644 (file)
@@ -1,3 +1,387 @@
+2005-11-05  Paolo Carlini  <pcarlini@suse.de>
+
+       PR libstdc++/22203
+       * include/bits/c++config: Include cpu_defines.h.
+       * include/Makefile.am: Add cpu_defines.h to host_headers.
+       * configure.host: Add cpu_defines_dir.
+       * configure.ac: Use it.
+       * config/cpu/powerpc/cpu_defines.h: New.
+       * config/cpu/generic/cpu_defines.h: Likewise.
+       * configure: Regenerate.
+       * Makefile.in: Likewise.
+       * include/Makefile.in: Likewise.
+       * libmath/Makefile.in: Likewise.
+       * libsupc++/Makefile.in: Likewise.
+       * po/Makefile.in: Likewise.
+       * src/Makefile.in: Likewise.    
+       * testsuite/Makefile.in: Likewise.
+
+2005-11-03  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/ext/sso_string_base.h (__sso_string_base<>::_M_swap):
+       Change the various traits_type::copy call to always copy the
+       entire local buffer; return early and don't do a full swap on
+       the lengths for two common cases; change two _S_copy to plain
+       traits_type::copy.
+
+2005-11-02  Thomas Kho  <tkho@ucla.edu>
+
+       PR libstdc++/23425
+       * include/bits/stl_vector.h (vector<>::clear): Open code
+       in terms of _Destroy.
+
+2005-11-02  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/vector.tcc (vector<>::_M_fill_assign): Qualify fill_n.
+
+2005-11-01  Paolo Carlini  <pcarlini@suse.de>
+
+       PR libstdc++/24595
+       * include/tr1/boost_shared_ptr.h (shared_ptr<>::get_deleter):
+       Move out of shared_ptr.
+       * testsuite/tr1/2_general_utilities/memory/shared_ptr/misc/24595.cc:
+       New.
+
+2005-10-30  Paolo Carlini  <pcarlini@suse.de>
+
+       PR libstdc++/20213
+       * include/c_std/std_csignal.h: Adjust comment as per 17.4.1.2/4.
+       * include/c_std/std_cstdlib.h: Likewise.
+       * include/c_std/std_cstdio.h: Likewise.
+       * include/c_std/std_cstdarg.h: Likewise.
+       * include/c_std/std_cctype.h: Likewise.
+       * include/c_std/std_cerrno.h: Likewise.
+       * include/c_std/std_cmath.h: Likewise.
+       * include/c_std/std_ciso646.h: Likewise.
+       * include/c_std/std_ctime.h: Likewise.
+       * include/c_std/std_clocale.h: Likewise.
+       * include/c_std/std_climits.h: Likewise.
+       * include/c_std/std_cassert.h: Likewise.
+       * include/c_std/std_csetjmp.h: Likewise.
+       * include/c_std/std_cwchar.h: Likewise.
+       * include/c_std/std_cfloat.h: Likewise.
+       * include/c_std/std_cstring.h: Likewise.
+       * include/c_std/std_cstddef.h: Likewise.
+       * include/c_std/std_cwctype.h: Likewise.
+
+2005-10-29  Carey Evans  <carey.evans@gmail.com>
+
+       PR libstdc++/22087
+       * config/os/djgpp/ctype_inline.h: Fix.
+       * config/os/djgpp/ctype_noninline.h: Likewise.
+
+2005-10-28  Paolo Carlini  <pcarlini@suse.de>
+
+       PR libstdc++/24559
+       * include/c_std/std_cwchar.h (wcspbrk): Adjust signature.
+       * testsuite/21_strings/c_strings/wchar_t/24559.cc: New.
+
+2005-10-25  Paolo Carlini  <pcarlini@suse.de>
+
+       * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 39.
+       * docs/html/ext/howto.html: Adjust.
+
+2005-10-21  Paolo Carlini  <pcarlini@suse.de>
+
+       PR libstdc++/24450
+       * config/locale/generic/time_members.h (__timepunct<>::
+       __timepunct(__c_locale, const char*, size_t)): Avoid leaking
+       memory if new throws inside _M_initialize_timepunct.
+       * config/locale/gnu/time_members.h (__timepunct<>::
+       __timepunct(__c_locale, const char*, size_t)): Likewise.
+       * config/locale/gnu/message_members.h (messages<>::
+       messages(__c_locale, const char*, size_t)): Rearrange to
+       avoid memory leaks.
+
+2005-10-19  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/ext/sso_string_base.h (_M_swap): Rewrite.
+
+2005-10-19  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/ext/rc_string_base.h (_S_terminal): Remove.
+       (_M_set_length): Adjust.
+       (_S_max_size): Change to anonymous enum.
+       (_M_max_size()): Add, returns the latter.
+       * include/ext/sso_string_base.h: Likewise.
+       * include/ext/vstring.h (max_size): Adjust.
+
+2005-10-17  Jonathan Wakely  <redi@gcc.gnu.org>
+
+       PR libstdc++/24244
+       * include/tr1/boost_shared_ptr.h (_Sp_counted_base::_Sp_counted_base()):
+       When __GTHREAD_MUTEX_INIT is defined, initialize the mutex.
+
+2005-10-15  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/tr1/functional: Add missing #pragma GCC system_header.
+
+2005-10-14  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/tr1/hashtable (hashtable::m_erase): Rename to erase_node.
+       (hashtable::erase(iterator), erase(const_iterator)): Adjust.
+
+2005-10-13  Richard Earnshaw  <richard.earnsahw@arm.com>
+
+       PR libstdc++/23926
+       * acinclude.m4 (port_specific_symbol_files): More symbol versioning
+       fixes.
+       * configure: Regenerate.
+
+2005-10-13  Hans-Peter Nilsson  <hp@axis.com>
+
+       * testsuite/lib/libstdc++.exp (libstdc++_init): Require
+       native testing before setting v3-sharedlib to 1.
+
+2005-10-12  Joe Buck  <Joe.Buck@synopsys.com>
+
+       * docs/html/27_io/howto.html: Use reference to ifstream when
+       including iosfwd.
+
+2005-10-11  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       PR libstdc++/23926
+       * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Fix typo in check
+       for GNU LD.
+       * configure: Regenerate.
+
+2005-10-10  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * configure.ac (libtool_VERSION): To 6:7:0.
+       * configure: Regenerate.
+       * testsuite/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.7.
+       * config/linker-map.gnu: Export locale::_Impl::_M_install_cache.
+
+2005-10-10  Ian Lance Taylor  <ian@airs.com>
+
+       PR libstdc++/13583
+       * include/bits/locale_classes.h (locale::_Impl::_M_install_cache):
+       Move out of line.
+       * src/locale.cc: Define here, add mutex.
+
+2005-10-09  Paolo Carlini  <pcarlini@suse.de>
+
+       PR libstdc++/24061 (issue 6.19)
+       * include/tr1/hashtable (struct node_const_iterator, struct
+       hashtable_const_iterator): New, add const variants to enable separate
+       overloadings for iterator and const_iterator in unordered_set and
+       unordered_multiset (as required by issue 6.19).
+       (class hashtable): Change the mutable_iterators template parameter
+       to constant_iterators and adjust throughout the logic.
+       (hashtable::insert(iterator, const value_type&), erase(iterator)
+       erase(iterator, iterator)): New, as per issue 6.19.
+       (hashtable::m_erase(node*, node**)): New, called by erase(iterator)
+       and erase(const_iterator).
+       (hashtable::Insert_Conv_Type): New, used by insert(iterator,
+       const value_type&) and insert(const_iterator, const value_type&)
+       to delegate the work to insert(const value_type&).
+       * include/tr1/unordered_map (class unordered_map, unordered_multimap):
+       Adjust typedefs.
+       * include/tr1/unordered_set (class unordered_set, unordered_multiset):
+       Likewise.
+       * testsuite/tr1/6_containers/unordered/erase/24061-map.cc: New.
+       * testsuite/tr1/6_containers/unordered/erase/24061-multimap.cc: New.
+       * testsuite/tr1/6_containers/unordered/erase/24061-multiset.cc: New.
+       * testsuite/tr1/6_containers/unordered/erase/24061-set.cc: New.
+       * testsuite/tr1/6_containers/unordered/insert/24061-map.cc: New.
+       * testsuite/tr1/6_containers/unordered/insert/24061-multimap.cc: New.
+       * testsuite/tr1/6_containers/unordered/insert/24061-multiset.cc: New.
+       * testsuite/tr1/6_containers/unordered/insert/24061-set.cc: New.
+
+2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
+
+       Merge from csl-arm-branch:
+       2004-12-15  Daniel Jacobowitz  <dan@codesourcery.com>
+       * libstdc++-v3/config/linker-map.gnu: Add ARM EABI symbols.
+
+2005-10-07  Paolo Carlini  <pcarlini@suse.de>
+
+       Fix libstdc++/24196 for ext/vstring/rc by returning to the behavior
+       of basic_string pre-2003-06-13; remove fully-dynamic-string stuff.
+       * include/ext/rc_string_base.h (_M_refcopy): Move inside the
+       _Rep class and remove code in macro.
+       (__rc_string_base()): Construct with _S_empty_rep()._M_refcopy().
+       (_M_dispose, _M_leak_hard): Remove code in macro.
+       (_S_construct): Return _S_empty_rep()._M_refcopy() for empty string.
+       (_M_grab): Adjust.
+
+       * include/ext/rc_string_base.h (_Rep::_M_refdata()): Minor tweak,
+       mark throw().
+
+2005-10-07  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * docs/doxygen/user.cfg.in: Update to Doyxygen 1.4.4.
+
+2005-10-05  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/ext/sso_string_base.h (struct __sso_string_local):
+       Remove, actually POD types cannot have user defined constructors
+       (being aggregates) and therefore can always be members of unions.
+       (class __sso_string_base): Adjust consistently.
+
+2005-10-05  Paolo Carlini  <pcarlini@suse.de>
+
+       PR libstdc++/24198
+       * testsuite/27_io/basic_filebuf/3.cc: Use __gnu_test::pod_ushort
+       instead.
+       * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
+       * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
+       * testsuite/27_io/basic_fstream/3.cc: Likewise; run the test.
+       * testsuite/27_io/basic_ifstream/3.cc: Likewise; run the test.
+       * testsuite/27_io/basic_ios/3.cc: Likewise.
+       * testsuite/27_io/basic_iostream/3.cc: Likewise; run the test.
+       * testsuite/27_io/basic_istream/3.cc: Likewise; run the test.
+       * testsuite/27_io/basic_istringstream/3.cc: Likewise; run the test.
+       * testsuite/27_io/basic_ofstream/3.cc: Likewise; run the test.
+       * testsuite/27_io/basic_ostream/3.cc: Likewise; run the test.
+       * testsuite/27_io/basic_ostringstream/3.cc: Likewise; run the test.
+       * testsuite/27_io/basic_streambuf/3.cc: Likewise.
+       * testsuite/27_io/basic_stringbuf/3.cc: Likewise.
+       * testsuite/27_io/basic_stringstream/3.cc: Likewise; run the test.
+
+2005-10-05  Paolo Carlini  <pcarlini@suse.de>
+
+       PR libstdc++/11729 (DR 280, [Ready])
+       * include/bits/stl_iterator.h: Add reverse_iterator global
+       functions with two template parameters (operator==, !=, <,
+       >, <=, >=, -).
+       * testsuite/24_iterators/reverse_iterator/11729.cc: New.
+       * docs/html/ext/howto.html: Add an entry for issue 280.
+
+2005-10-03  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/tr1/hashtable
+       (node_iterator::node_iterator(const node_iterator<,true,>&)): Fix to
+       take a "false" (i.e., is_const == false) node_iterator.
+       (hashtable_iterator::hashtable_iterator(const hashtable_iterator<,
+       true,>&)): Likewise for hashtable_iterator.
+       (hashtable::const_local_iterator): Fix typedef (is_const == true).
+       (hashtable::const_iterator): Likewise.
+       * testsuite/tr1/6_containers/unordered/types/map_iterator.cc: New.
+       * testsuite/tr1/6_containers/unordered/types/multimap_iterator.cc: New.
+       * testsuite/tr1/6_containers/unordered/types/set_iterator.cc: New.
+       * testsuite/tr1/6_containers/unordered/types/multiset_iterator.cc: New.
+2005-10-02  Paolo Carlini  <pcarlini@suse.de>
+
+       PR libstdc++/24054
+       * include/tr1/hashtable (erase(const key_type&)): Return the
+       number of elements erased.
+       * testsuite/tr1/6_containers/unordered/hashtable/24054.cc: New.
+
+2005-10-01  Kenny Simpson  <theonetruekenny@yahoo.com>
+
+       * include/tr1/tuple_iterate.h (tuple::operator=(const std::pair<>&)):
+       Add missing return.
+
+2005-09-30  Paolo Carlini  <pcarlini@suse.de>
+
+       PR libstdc++/24064
+       * include/tr1/hashtable (hash_code_base<>::store_code): Add.
+       (hashtable<>::insert(const value_type&)): Use it.
+       * testsuite/tr1/6_containers/unordered/hashtable/24064.cc: New.
+
+2005-09-30  Paolo Carlini  <pcarlini@suse.de>
+
+       PR libstdc++/23953
+       * include/bits/locale_facets.tcc (__numpunct_cache<>::_M_cache,
+       __moneypunct_cache<>::_M_cache): Check that grouping()[0] > 0.
+       (__verify_grouping): Do the last check only if __grouping[__min] > 0.
+       (__add_grouping<>): End recursion if *__gbeg <= 0.
+       * testsuite/22_locale/num_get/get/char/23953.cc: New.
+       * testsuite/22_locale/num_get/get/wchar_t/23953.cc: Likewise.
+       * testsuite/22_locale/num_put/put/char/23953.cc: Likewise.
+       * testsuite/22_locale/num_put/put/wchar_t/23953.cc: Likewise.
+
+2005-09-29  Chris Jefferson <chris@bubblescope.net>
+
+       PR libstdc++/23978
+       * include/tr1/tuple_iterate.h (tuple): Add operator=(std::pair).
+       * testsuite/tr1/6_containers/tuple/creation_functions/23978.cc: New.
+       
+       * include/tr1/functional (ref, cref): Make inline.
+       * include/tr1/tuple_iterate.h (tie): Correct formatting.
+       (make_tuple): Make inline.
+
+2005-09-25  Benjamin Kosnik  <bkoz@redhat.com>
+           Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       * include/ext/mt_allocator.h
+       (__per_type_pool<...true>::_S_initialize_once): Always call
+       _M_initialize_once.
+       (__common_pool<...true>::_S_initialize_once): Same.
+
+2005-09-23  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * testsuite/ext/mt_allocator/tune-1.cc: Clarify for single-thread.
+       * testsuite/ext/mt_allocator/tune-2.cc: Same.
+       * testsuite/ext/mt_allocator/tune-3.cc: Same.
+       * testsuite/ext/mt_allocator/tune-4.cc: Same.
+
+2005-09-21  Guillaume Melquiond  <guillaume.melquiond@ens-lyon.fr>
+
+       PR libstdc++/23956
+       * include/ext/mt_allocator.h: Remove excess
+       policy_type::_S_get_pool calls in constructors.
+       
+2005-09-18  Paolo Carlini  <pcarlini@suse.de>
+
+       PR libstdc++/23417 (cont)
+       * include/bits/stl_tree.h (_Rb_tree_impl<true>): Use member
+       initialization list for -Weffc++.
+
+2005-09-16  Janis Johnson  <janis187@us.ibm.com>
+
+       * testsuite/27_io/basic_ostream/inserters_arithmetic/char/23871.cc:
+       New.
+
+2005-09-15  Benjamin Kosnik  <bkoz@redhat.com>
+
+       PR libstdc++/21674
+       PR libstdc++/22205
+       PR libstdc++/22222
+       * include/bits/c++config: Set _GLIBCXX_STD regardless of __GXX_WEAK__.
+       Add in check for __NO_INLINE__ for warning.
+       * testsuite/lib/dg-options.exp (dg-require-debug-mode): New.
+       * testsuite/lib/libstdc++.exp (check_v3_target_debug_mode): New.
+       * testsuite/21_strings/basic_string/element_access/char/21674.cc:
+       Use it.
+       * testsuite/21_strings/basic_string/element_access/wchar_t/21674.cc:
+       Use it.
+
+2005-09-15  Paolo Carlini  <pcarlini@suse.de>
+
+       PR libstdc++/23875
+       * include/std/std_ostream.h (operator<<(short), operator<<(unsigned
+       short), operator<<(int), operator<<(unsigned int), operator<<(float)):
+       Don't call operator<<(long), operator<<(unsigned long), or
+       operator<<(double), do the work mandated by the resolution of DR117...
+       * include/bits/ostream.tcc (operator<<(short), operator<<(unsigned
+       short), operator<<(int), operator<<(unsigned int), operator<<(float)):
+       ... here.
+       * testsuite/27_io/basic_ostream/inserters_arithmetic/pod/23875.cc: New.
+
+2005-09-15  Mark Mitchell  <mark@codesourcery.com>
+
+       * testsuite/testsuite_character.h: Specialize character<>
+       templates in __gnu_cxx, not in __gnu_test.
+
+2005-09-13  Jonathan Wakely  <cow@compsoc.man.ac.uk>
+           Benjamin Kosnik  <bkoz@redhat.com>
+
+       PR libstdc++/21674
+       * testsuite/21_strings/basic_string/element_access/char/21674.cc: New.
+       * testsuite/21_strings/basic_string/element_access/wchar_t/21674.cc: 
+       New.
+
+2005-09-12  David Edelsohn  <dje@gcc.gnu.org>
+
+       PR libstdc++/22554
+       PR libstdc++/23734
+       * include/Makefile.am (stamp-assoc): Install each subgroup
+       of headers separately.
+       * include/Makefile.in: Regenerate.
+       
 2005-09-12  Benjamin Kosnik  <bkoz@redhat.com>
 
        * testsuite/ext/mt_allocator/22309_thread.cc: Remove dg-do run.
@@ -5,7 +389,7 @@
        shared only for linux.
        
 2005-09-12  Benjamin Kosnik  <bkoz@redhat.com>
-           David Edelsohn <dje@gcc.gnu.org>
+           David Edelsohn  <dje@gcc.gnu.org>
 
        PR libstdc++/22554
        PR libstdc++/23734
 
 2005-09-01  Benjamin Kosnik  <bkoz@redhat.com>
 
-        * testsuite/lib/libstdc++.exp (check_v3_target_cxa_atexit): New.
-        * testsuite/lib/dg-options.exp (dg-require-cxa-atexit): New.
-        * testsuite/ext/mt_allocator/deallocate_local-6.cc: New.
-        * testsuite/ext/mt_allocator/deallocate_local-8.cc: New.
-        * testsuite/ext/mt_allocator/deallocate_local_thread-5.cc: New.
-        * testsuite/ext/mt_allocator/deallocate_local_thread-7.cc: New.
-        * docs/html/ext/mt_allocator.html: Add link to examples.
-        * testsuite/testsuite_allocator.h: Tweak.
-        * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
-        * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
-        * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
-        * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
-        * testsuite/ext/mt_allocator/deallocate_local-2.cc: Same.
-        * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
-        * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
-        * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
-        * testsuite/ext/new_allocator/deallocate_global.cc: Same.
-        * testsuite/ext/new_allocator/deallocate_local.cc: Same.
+       * testsuite/lib/libstdc++.exp (check_v3_target_cxa_atexit): New.
+       * testsuite/lib/dg-options.exp (dg-require-cxa-atexit): New.
+       * testsuite/ext/mt_allocator/deallocate_local-6.cc: New.
+       * testsuite/ext/mt_allocator/deallocate_local-8.cc: New.
+       * testsuite/ext/mt_allocator/deallocate_local_thread-5.cc: New.
+       * testsuite/ext/mt_allocator/deallocate_local_thread-7.cc: New.
+       * docs/html/ext/mt_allocator.html: Add link to examples.
+       * testsuite/testsuite_allocator.h: Tweak.
+       * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
+       * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
+       * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
+       * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
+       * testsuite/ext/mt_allocator/deallocate_local-2.cc: Same.
+       * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
+       * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
+       * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
+       * testsuite/ext/new_allocator/deallocate_global.cc: Same.
+       * testsuite/ext/new_allocator/deallocate_local.cc: Same.
 
 2005-08-31  Paolo Carlini  <pcarlini@suse.de>
            Kaspar Fischer <fischerk@inf.ethz.ch>