OSDN Git Service

2004-11-01 Momchil Velikov <velco@fadata.bg>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
index ac70fd7..4e61672 100644 (file)
@@ -1,3 +1,239 @@
+2004-11-01  Momchil Velikov  <velco@fadata.bg>
+
+       PR libstdc++/18185
+       * libsupc++/eh_globals.cc (get_globals_dtor): Delete unhandled
+       exceptions.
+       * testsuite/thread/18185.cc: New.
+       
+2004-11-01  Chris Jefferson  <chris@bubblescope.net>
+
+        PR libstdc++/18159
+        * include/tr1/tuple (get(pair)): Change occurrences of _I to _Int.
+        (get(const pair)): Likewise.
+
+2004-11-01  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
+       Evaluate *__beg the exact strict minimum number of times; likewise
+       for __beg != __end; in the main parsing loop, call ++__beg in two
+       places only. The former is also a correctness issue, because,
+       according to the standard (22.2.2.1.2, Stage 2), 'in' shall be
+       dereferenced only one time for each increment.
+
+2004-10-31  Benjamin Kosnik  <bkoz@redhat.com>
+
+       PR c++/16728
+       * testsuite/23_containers/set/modifiers/16728.cc: New.
+
+2004-10-30  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/ext/bitmap_allocator.h (allocate(size_type)): Minor tweak.
+
+       * testsuite/ext/bitmap_allocator/check_delete.cc: New.
+       * testsuite/ext/bitmap_allocator/check_new.cc: Likewise.
+
+2004-10-29  Geoffrey Keating  <geoffk@apple.com>
+
+       * configure.host (darwin*): Set os_include_dir to a separate directory
+       for Darwin.
+       * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add a new C locale kind,
+       'darwin'.
+       * config/locale/darwin/ctype_members.cc: New.
+       * config/os/bsd/darwin/ctype_base.h: New.
+       * config/os/bsd/darwin/ctype_inline.h: New.
+       * config/os/bsd/darwin/ctype_noninline.h: New.
+       * config/os/bsd/darwin/os_defines.h: New.
+
+       * testsuite/22_locale/locale/cons/12658_thread-1.cc: Only xfail
+       on Linux.
+
+2004-10-29  Chris Jefferson  <chris@bubblescope.net>
+
+       * include/bit/stl_algo.h (find_first_of(,,,,pred)):
+       Remove invalid EqualOpConcept.
+       * testsuite/25_algorithms/find_first_of/concept_check_1.cc: New.
+
+2004-10-29  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * testsuite/testsuite_allocator.h (check_delete): New.
+       (check_new): Simplify.
+       * testsuite/ext/array_allocator/check_delete.cc: New.
+       * testsuite/ext/array_allocator/check_new.cc: Simplify.
+       * testsuite/ext/debug_allocator/check_delete.cc: New.
+       * testsuite/ext/debug_allocator/check_new.cc: Simplify.
+       * testsuite/ext/malloc_allocator/check_delete.cc: New.
+       * testsuite/ext/malloc_allocator/check_new.cc: Simplify.
+       * testsuite/ext/mt_allocator/check_delete.cc: New.
+       * testsuite/ext/mt_allocator/check_new.cc: Simplify.
+       * testsuite/ext/new_allocator/check_delete.cc: New.
+       * testsuite/ext/new_allocator/check_new.cc: Simplify.
+       * testsuite/ext/pool_allocator/check_delete.cc: New.
+       * testsuite/ext/pool_allocator/check_new.cc: Simplify.
+
+2004-10-28  Chris Jefferson  <chris@bubblescope.net>
+
+       PR libstdc++/18159
+       * include/tr1/tuple: Fix, change formatting.
+
+2004-10-28  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/ext/mt_allocator.h (__common_pool_policy): Add template
+       template parameter for pool class type.
+       (__per_type_pool_policy): Same.
+       (__mt_allocator): Don't inherit policy. Qualify policy_type calls.
+       * testsuite/ext/mt_allocator/check_deallocate_null.cc: Fix.
+       * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: Same.
+       * 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/mt_allocator/instantiate.cc: Same.
+       * testsuite/ext/mt_allocator/tune-1.cc: Same.
+       * testsuite/ext/mt_allocator/tune-2.cc: Same.
+       * testsuite/ext/mt_allocator/tune-3.cc: Same.
+       * testsuite/ext/mt_allocator/tune-4.cc: Same.
+
+2004-10-28  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
+       Cache *__beg in __c when parsing exponent sign too.
+       (num_get<>::do_get(..., bool&)): Cache *__beg.
+       (money_get<>::_M_extract)): Likewise, in money_base::value.
+
+2004-10-27  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/basic_string.h (assign(const basic_string&)):
+       Move out of line...
+       * include/bits/basic_string.tcc: ... here.
+
+2004-10-27  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
+       Move out of line...
+       * include/bits/basic_string.tcc: ... here.
+
+2004-10-26  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/basic_string.h (append(const basic_string&),
+       append(size_type, _CharT)): Move out of line...
+       * include/bits/basic_string.tcc: ... here.
+
+2004-10-26  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/basic_string.h (erase(size_type, size_type),
+       erase(iterator), erase(iterator, iterator)): Call _M_mutate
+       instead of _M_replace_safe, equivalent when the fourth argument
+       is zero and simpler.
+
+2004-10-26  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/ext/array_allocator.h (array::allocate): Check for valid
+       array object, use its size member function directly.
+       * testsuite/ext/array_allocator/3.cc: New.
+       * docs/html/20_util/allocator.html: Add docs.
+       
+2004-10-25  Geoffrey Keating  <geoffk@apple.com>
+
+       * configure.host (darwin*): Build libstdc++ single module
+       and flat namespace.
+       * libsupc++/new_op.cc (new): Make weak.
+       * libsupc++/new_opnt.cc (new): Make weak.
+       * libsupc++/new_opv.cc (new): Make weak.
+       * libsupc++/new_opvnt.cc (new): Make weak.
+       * libsupc++/delete_op.cc (delete): Make weak.
+       * libsupc++/delete_opnt.cc (delete): Make weak.
+       * libsupc++/delete_opv.cc (delete): Make weak.
+       * libsupc++/delete_opvnt.cc (delete): Make weak.
+
+2004-10-25  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * testsuite/Makefile.am (GLIBCXX_INCLUDES): Add.
+       (AUTOMAKE_OPTIONS): Add nostdinc.
+       * testsuite/Makefile.in: Regenerate.
+       * scripts/testsuite_flags.in (build-includes): Remove redundant
+       search for libsupc++.
+       * fragment.am: Clean.
+       
+2004-10-25  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/Makefile.am (tr1_headers): Add tuple.
+       * include/Makefile.in: Regenerate.
+
+2004-10-25  Chris Jefferson  <chris@bubblescope.net>
+
+        * include/tr1/tuple: Implementation of tuple from library TR.
+       * testsuite/tr1/6_containers/tuple/tuple_element.cc: New.
+       * testsuite/tr1/6_containers/tuple/tuple_size.cc: New.
+       * testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc:
+       New.
+       * testsuite/tr1/6_containers/tuple/cons/assignment.cc: New.
+       * testsuite/tr1/6_containers/tuple/cons/big_tuples.cc: New.
+       * testsuite/tr1/6_containers/tuple/cons/constructor.cc: New.
+       * testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc: 
+       New.
+       * testsuite/tr1/6_containers/tuple/creation_functions/tie.cc: New.
+       * testsuite/tr1/6_containers/tuple/element_access/get.cc: New.
+
+2004-10-25  Paolo Carlini  <pcarlini@suse.de>
+       
+       * include/bits/basic_string.h (_Rep::_M_is_safe): Move to
+       basic_string as _M_disjunct, adjust to take only __s.
+       * include/bits/basic_string.tcc: Adjust consistently callers. 
+
+2004-10-25  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
+       Adjust bit missing from the previous commit.
+
+2004-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       PR other/18138
+       * testsuite/lib/libstdc++.exp: Accept more than one multilib libgcc.
+
+2004-10-25  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/basic_string.h (_Rep::_M_is_safe, _M_check_length,
+       _M_move, _M_copy, _M_assign): New, use througout.
+       (operator+=(_CharT)): Define in terms of push_back.
+       (append(const basic_string&)): Define here, inline, and simplify,
+       don't use the full _M_replace_safe.
+       (append(size_type, _CharT)): Likewise, don't use _M_replace_aux.
+       (push_back): Likewise.
+       (assign(const basic_string&)): Define here, inline.
+       * include/bits/basic_string.tcc (append(const _CharT* s, size_type):
+       Fix: when s points inside the _Rep, upon reallocation (reserve) we
+       were copying from deallocated memory.
+       (append(const basic_string&, size_type, size_type)): Simplify,
+       don't use _M_replace_safe.
+       (replace(size_type, size_type, const _CharT*, size_type)): Slightly
+       tweak.
+       (reserve): Likewise.
+       * testsuite/21_strings/basic_string/append/char/2.cc: New.
+       * testsuite/21_strings/basic_string/append/char/3.cc: Likewise.
+       * testsuite/21_strings/basic_string/append/wchar_t/2.cc: Likewise.
+       * testsuite/21_strings/basic_string/append/wchar_t/3.cc: Likewise.
+
+       * testsuite/21_strings/basic_string/assign/char/3.cc: Remove junk.
+       * testsuite/21_strings/basic_string/assign/wchar_t/3.cc: Likewise.
+
+2004-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       * testsuite/ext/mt_allocator/deallocate_global-2.c:
+       s/value_t/value_type/. s/traits_t/traits_type/.
+       s/policy_t/policy_type/. s/allocator_t/allocator_type/.
+       s/string_t/string_type/. s/list_t/list_type/.
+       * testsuite/ext/mt_allocator/deallocate_global-4.cc: Likewise.
+       * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Likewise.
+       * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Likewise.
+       * testsuite/ext/mt_allocator/deallocate_local-2.cc: Likewise.
+       * testsuite/ext/mt_allocator/deallocate_local-4.cc: Likewise.
+       * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Likewise.
+       * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Likewise.
+
 2004-10-21  Benjamin Kosnik  <bkoz@redhat.com>
 
        * include/tr1/array (array): Make safe for zero-sized arrays.