OSDN Git Service

Update comment to reflect test.
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
index 62c0534..2d6cc33 100644 (file)
@@ -1,3 +1,208 @@
+2004-03-29  Loren J. Rittle  <ljrittle@acm.org>
+
+       * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
+
+2004-03-29  Paolo Carlini  <pcarlini@suse.de>
+
+       * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
+       on allocator behavior, the memory pointed by data2 may well be not
+       trashed.
+
+2004-03-28  Chavdar Botev  <cbotev@yahoo.com>
+
+       PR libstdc++/14245
+       * include/bits/basic_string.tcc
+       (basic_string::basic_string(const basic_string&)): Pass to
+       _Rep::_M_grab the actual allocator of the string being constructed
+       not the default constructed one.
+
+2004-03-27  Benjamin Kosnik  <bkoz@redhat.com>
+
+       libstdc++ PR/13598
+       * config/locale/ieee_1003.1-2001/codecvt_specializations.h
+       (__enc_traits::_M_destroy): New.
+       (__enc_traits::~__enc_traits): Use it.
+       (__enc_traits::operator=): Use _M_destroy, _M_init.
+       (__enc_traits::__enc_traits): Same.
+
+2004-03-27  Petur Runolfsson  <peturr02@ru.is>
+
+       * testsuite/ext/enc_filebuf/char/13598.cc: New.
+
+2004-03-27  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/ext/mt_allocator.h: Uglify consistently names of
+       variables, members and classes; tidy.
+
+2004-03-27  Dhruv Matani  <dhruvbird@gmx.net>
+
+       * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
+       Deallocation loop rewrote.
+
+2004-03-26  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
+       __mt_alloc<>::deallocate): Protect two instances of
+       block->thread_id with __GTHREADS.
+
+2004-03-25  Gawain Bolton  <gp.bolton@computer.org>
+
+       * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
+       default argument in constructors.
+       (_Rb_tree::_M_empty_initialize): Remove.
+       
+2004-03-25  Benjamin Kosnik  <bkoz@redhat.com>
+       
+       * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
+       * testsuite/23_containers/set/operators/1_neg.cc: Same.
+
+2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
+
+       * include/bits/cpp_type_traits.h: Changed __is_pod
+       completely. Now, it does not use any of the previous type_traits
+       to detect the pod types, and it also detects function pointers as
+       POD types.
+
+       * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
+       which encapsulates the internal implementation of an rb_tree. Made
+       the allocator a base class of this class instead of the rb_tree,
+       which was not conforming. This _Rb_tree_impl class is also
+       specialized on whether the _Compare parameter is a POD type or
+       not. If so, then it maintains the comparison function as a data
+       member, otherwise it makes the _Compare parameter a base class of
+       itself. Also, _M_key_compare is now a function instead of a data
+       member, so that the above trick can work properly. Delegated the
+       initialization of the other data members to this newly created
+       class. Also, now other member functions of rb_tree must refer to
+       _M_key_compare as _M_impl._M_key_compare(). The other data members
+       (*) can be referenced to as _M_impl.(*), where
+       (*) includes _M_header, and _M_node_count.
+
+2004-03-25  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/ext/mt_allocator.h (__mt_alloc<>::tune):
+       Add _M_min_bin, the size in bytes of the smallest bin.
+       (__mt_alloc<>::tune()): Tweak accordingly.
+       (__mt_alloc<>::tune(size_t, ...)): Likewise.
+       (__mt_alloc<>::block_record): Change to a union: members next
+       and thread_id are never used at the same time.
+       (__mt_alloc<>::allocate): Update consistently.
+       (__mt_alloc<>::deallocate): Likewise.
+       (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
+       _S_bin_size for the configurable _M_min_size.
+
+2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
+
+       * include/bits/stl_list.h: Created a _List_impl class and made it
+       derive from the allocator, instead of the list deriving from the
+       allocator class, which was not conformant. Changed all references
+       from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
+       as above (changed all references to the concerned variables).
+
+2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
+
+       * include/bits/stl_deque.h: Created a _Deque_impl class and made
+       it derive from the allocator, instead of the deque deriving from
+       the allocator class, which was not conformant. Changed all
+       references to the _M_start, _M_finish, _M_map, and _M_map_size to
+       _M_impl.*.
+       (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
+       qualification in 2 places where it was missing.
+       (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
+       above.
+       * include/bits/deque.tcc: Same as above (changed all references to
+       the concerned variables).
+
+2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
+
+       * include/bits/stl_vector.h: Created a _Vector_impl class and made
+       it derive from the allocator, instead of the _Vector_base class,
+       deriving from the allocator which was not conformant. Changed all
+       references to the _M_start, _M_finish, and _M_end_of_storage to
+       _M_impl.*.
+       * include/bits/vector.tcc: Same as above (changed all references
+       to the concerned variables).
+
+2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
+
+       * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
+       * testsuite/23_containers/list/cons/clear_allocator.cc: New.
+       * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
+       
+2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
+
+       * include/ext/malloc_allocator.h: Fixed the construct function to
+       call global placement new instead of assignment. Added a check
+       after the return from malloc to check whether returned pointer is
+       NULL, and if so, throw std::bad_alloc().
+       * include/ext/debug_allocator.h: Added a check in the deallocate
+       function to check whether the user has passed a NULL pointer or
+       not.
+       
+2004-03-24  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * docs/html/20_util/allocator.html: Add bitmap_allocator links.
+
+2004-03-24  Andreas Schwab  <schwab@suse.de>
+
+       * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
+       warning from IA64 assembler.
+
+2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
+       
+       * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
+       function call __builtin_ctz instead of the while loop.
+       (allocate) -> If condition has __builtin_expect.
+       (deallocate) -> Ditto.
+       Renamed a few left-over variables and typedefs according to the
+       C++STYLE mentioned in the documentation.
+       Protected calls to __gthread* by __gthread_active_p(), whose value
+       is cached in the local variable __threads_active.
+
+2004-03-24  Felix Yen  <fwy@alumni.brown.edu>
+
+       * testsuite/performance/20_util/allocator/producer_consumer.cc:
+       Use linear algorithm for producer.
+       
+2004-03-24  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
+       __mt_alloc<>::deallocate): Avoid redundant conditionals.
+
+2004-03-23  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/bits/locale_facets.h: Tweaks for 80 column.
+       (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
+       (__moneypunct_cache::_M_cache): Same.
+       (num_get): Don't inherit from __num_base.
+       (num_put): Same.
+       (money_get): Don't inherit from money_base.
+       (money_put): Same.
+       (__timepunct::_M_am_pm_format): New.
+       (time_get::_M_extract_num): Return iterator, use ios_base as argument.
+       (time_get::_M_extract_name): Same.
+       (time_get::_M_extract_via_format): Same.
+       * include/bits/locale_facets.tcc: Tweaks for 80 column.
+       Use _M_getloc instead of getloc.
+       * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
+       * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
+       * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
+
+2004-03-22  Paolo Carlini  <pcarlini@suse.de>
+
+       * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
+       * configure: Regenerate.
+       * config/allocator/pool_allocator_base.h: New.
+       * include/ext/pool_allocator.h: Convert to a standard-conforming
+       allocator.
+       * src/allocator.cc: Tweak instantiations.
+       * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
+       * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
+       * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
+       * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
+       * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
+       * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
+
 2004-03-22  Hans-Peter Nilsson  <hp@axis.com>
 
        * config/cpu/cris/atomicity.h (__atomic_add): Remove "static