OSDN Git Service

* include/bits/istream.tcc (getline): Make sure arguments passed
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
index 39d1acd..4ab2ddd 100644 (file)
@@ -1,3 +1,506 @@
+2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
+
+       * include/bits/istream.tcc (getline): Make sure arguments passed
+       to min/max have the same type.
+       * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
+       * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
+
+2004-06-22  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * docs/html/abi.html: Update links.
+
+2004-06-22  Paolo Carlini  <pcarlini@suse.de>
+
+       * testsuite/26_numerics/complex_inserters_extractors.cc,
+       complex_value.cc, buggy_complex.cc: Move to...
+       * testsuite/26_numerics/complex/: ... here.
+       * testsuite/26_numerics/c99_classification_macros_c++.cc,
+       c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
+       fabs_inline.cc: Move to...
+       * testsuite/26_numerics/cmath/: ... here.
+       * testsuite/26_numerics/binary_closure.cc, slice.cc,
+       slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
+       valarray_name_lookup.cc, valarray_operators.cc,
+       valarray_subset_assignment.cc: Move to...
+       * testsuite/26_numerics/valarray/: ... here (new dir).
+       * testsuite/26_numerics/sum_diff.cc: Move to...
+       * testsuite/26_numerics/numeric/: ... here (new dir).
+
+2004-06-22  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/std/std_istream.h (ignore(streamsize __n = 1,
+       int_type __delim = traits_type::eof())): Split into...
+       (ignore(), ignore(streamsize __n), ignore(streamsize __n,
+       int_type __delim)): The first two can be much more simpler
+       and efficient than the fully general case; also, the last
+       two can take advantage of the same mechanism already used
+       for getline.
+       * include/bits/istream.tcc (ignore(streamsize __n = 1,
+       int_type __delim = traits_type::eof()): Remove.
+       (ignore(), ignore(streamsize __n), ignore(streamsize __n,
+       int_type __delim)): New.
+
+2004-06-21  Loren J. Rittle  <ljrittle@acm.org>
+
+       * config/linker-map.gnu: Use wildcards for
+       __basic_file::sys_open(FILE*, _Ios_Openmode).
+
+2004-06-20  Paolo Carlini  <pcarlini@suse.de>
+
+       * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
+
+2004-06-18  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
+       the alignment requested.
+       (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
+       (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
+       (__mt_alloc<>::deallocate): Likewise.
+
+2004-06-18  Paolo Carlini  <pcarlini@suse.de>
+
+       PR libstdc++/16020
+       * include/debug/safe_base.h
+       (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
+       _Safe_sequence_base::operator=): Provide definitions.
+       * testsuite/23_containers/bitset/cons/16020.cc: New.
+
+2004-06-18  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
+       (__pool_base): Remove unused template parameter.  Add
+       protected. Move lock data into __pool_base::_Lock. Remove static
+       on member functions.
+       (__pool_base::_M_get_free_list): New.
+       (__pool_alloc): Move _S_force new here.
+       * src/allocator.cc: Move out of line __pool_base definitions here.
+       * config/linker-map.gnu: Export bits from __pool_base.
+       
+2004-06-18  Paolo Carlini  <pcarlini@suse.de>
+
+       * config/locale/gnu/numeric_members.cc
+       (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
+       assignments of _M_decimal_point and _M_thousands_sep.
+       * config/locale/gnu/time_members.cc
+       (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
+       and reformat assignments of date and time fields.
+
+2004-06-16  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
+       to use _Data_allocate.
+       * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
+       (rope<>::_S_substring): Likewise.
+       (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
+       (rope<>::c_str()): Likewise.
+       (rope<>::replace_with_c_str()): Likewise.
+
+       * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
+       Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
+       not _RopeRep.
+       (_Rope_iterator_base<>::_S_setcache): Likewise.
+       (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
+       (rope<>::_S_substring): Likewise.
+       (rope<>::_S_dump): Likewise.
+       (rope<>::_S_fetch_ptr): Likewise.
+       (rope<>::_S_compare): Likewise.
+       (rope<>::replace_with_c_str()): Likewise.               
+
+       * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
+       * testsuite/ext/rope/2.cc: New.
+
+2004-06-16  Paolo Carlini  <pcarlini@suse.de>
+           Matt Austern  <austern@apple.com>
+
+       * testsuite/ext/rope/3.cc: New.
+
+2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
+
+       * acinclude.m4: Remove useless multilib configury.
+       * Makefile.am: Remove useless multilib rules.
+       * aclocal.m4: Regenerate.
+       * Makefile.in: Regenerate.
+       * configure: Regenerate.
+
+2004-06-15  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/ext/hashtable.h: Trivial formatting fixes.
+       * include/ext/rb_tree: Likewise.
+
+2004-06-14  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/ext/hash_map: Trivial formatting fixes.
+       * include/ext/hash_set: Likewise.
+       * include/ext/memory: Likewise.
+       * include/ext/numeric: Likewise.
+
+2004-06-14  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * Makefile.in: Regenerate with automake 1.8.5.
+       * aclocal.m4: Same.
+       * include/Makefile.in: Same.
+       * libmath/Makefile.in: Same.
+       * libsupc++/Makefile.in: Same.
+       * po/Makefile.in: Same.
+       * src/Makefile.in: Same.
+       * testsuite/Makefile.in: Same.
+
+2004-06-14  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/ext/slist: Trivial formatting fixes.
+
+2004-06-14  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
+       Don't use the 'magic number' 10 in the computation of __minlen;
+       never access __name past __minlen; in the loop over __i3, don't
+       decrease __nmatches and increase __i3 at once, only either of
+       the two; tidy.
+
+2004-06-13  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/locale_facets.tcc (time_get<>::do_get_time,
+       time_get<>::do_get_date): Use only once _M_extract_via_format,
+       instead of going through "%X"/"%x" and calling it two times
+       (+ using widen).
+
+2004-06-12  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/ext/algorithm: Trivial formatting fixes.
+       * include/ext/functional: Likewise.
+       * include/ext/hash_fun.h: Likewise.
+       * include/ext/iterator: Likewise.
+
+2004-06-12  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/basic_string.tcc (find(const _CharT*, size_type,
+       size_type)): Reimplement using std::search.
+       * src/string-inst.cc: Instantiate std::search for char/wchar_t.
+
+2004-06-12  Dhruv Matani  <dhruvbird@gmx.net>
+
+       * testsuite/performance/21_strings/string_find.cc: New.
+
+2004-06-10  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
+
+       * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
+
+2004-06-10  Jan van Dijk  <jan@etpmod.phys.tue.nl>
+
+       * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
+       this function return a value.
+
+2004-06-09  Paolo Carlini  <pcarlini@suse.de>
+
+       PR libstdc++/15775
+       * include/bits/stl_deque.h: Consistently with stl_set.h, define
+       pointer as allocator's pointer, likewise for reference,
+       const_pointer, and const_reference.
+       * include/bits/stl_list.h: Likewise.
+       * include/bits/stl_map.h: Likewise.
+       * include/bits/stl_multimap.h: Likewise.
+       * include/bits/stl_vector.h: Likewise.
+
+2004-06-09  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * crossconfig.m4: Remove signbit, signbitf, signbitl.   
+       * linkage.m4: Comment LIBMATHOBJS, tweak others.  AC_DEFINES for
+       builtin math functions instead of AC_DEFINE_UNQUOTED.
+       * configure: Regenerate.
+       
+2004-06-08  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
+       * docs/doxygen/mainpage.html: Remove links.
+
+2004-06-08  Jason Merrill  <jason@redhat.com>
+
+       * config/linker-map.gnu: Use wildcards for
+       __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
+
+2004-06-08  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/ext/pool_allocator.h: Convert to a global free-list,
+       as per the original SGI/HP design: move the implementation
+       details to struct __pool_base, from which __pool_alloc derives.
+       * src/allocator.cc: Instantiate __pool_base.
+
+2004-06-07  Dhruv Matani  <dhruvbird@gmx.net>
+           Paolo Carlini  <pcarlini@suse.de>
+
+       * testsuite/testsuite_performance.h
+       (resource_counter::allocated_memory): Make it return the right
+       number of bytes requested by the allocators/application. This is
+       the sbrk+mmaped memory.
+
+2004-06-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
+
+       * include/std/std_complex.h (log): Tidy.
+
+2004-05-31  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
+       * testsuite/testsuite_abi.cc: Same.
+       * configure.ac (libtool_VERSION): Bump to 6:1:0.
+       * configure: Regenerate.
+       * aclocal.m4: Regenerate.
+       
+2004-05-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
+
+       * include/std/std_complex.h (complex<_Tp>): Properly indent
+       to follow C++STYLE. 
+       (complex<>::__rep): New.
+       (__complex_abs): New.  Dispatch to built-ins.
+       (abs): Use them.
+       (__complex_arg): New. Dispatch to built-ins.
+       (arg): Use it.
+       (__complex_cos): New. Dispatch to built-ins.
+       (cos): Use it.
+       (__complex_cosh): New. Dispatch to built-ins.
+       (cosh): Use it.
+       (__complex_exp): New. Dispatch to built-ins.
+       (exp): Use it.
+       (__complex_log): New. Dispatch to built-ins.
+       (log): Use it.
+       (__complex_sin): New. Dispatch to built-ins.
+       (sin): Use it.
+       (__complex_sinh): New. Dispatch to built-ins.
+       (sinh): Use it.
+       (__complex_sqrt): New. Dispatch to built-ins.
+       (sqrt): Use it.
+       (__complex_tan): New. Dispatch to built-ins.
+       (tan): Use it.
+       (__complex_tanh): New. Dispatch to built-ins.
+       (tanh): Use it.
+       (__complex_pow): New. Dispatch to built-ins.
+       (pow): Use it.
+
+2004-05-29  Richard B. Kreckel  <Richard.Kreckel@Framatome-ANP.com>
+            Benjamin Kosnik  <bkoz@redhat.com>
+       
+       PR libstdc++/14600
+       * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
+       * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
+       * config/io/basic_file_stdio.cc (__basic_file::file): New.
+       * config/io/basic_file_stdio.h: Define.
+
+2004-05-27  Benjamin Kosnik  <bkoz@redhat.com>
+
+       PR libstdc++/15675
+       * docs/html/documentation.html: Update doxygen links for 3.4.0.
+
+2004-05-27  Jan Beulich  <jbeulich@novell.com>
+
+       * scripts/create_testsuite_files: Tweak.
+
+2004-05-25  Benjamin Kosnik  <bkoz@redhat.com>
+
+       PR libstdc++/15489
+       * scripts/create_testsuite_files: Revert xtype change, add non-GNU
+       bits to do the same thing.
+
+2004-05-24  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/istream.tcc (ignore): Correctly deal with
+       n == numeric_limits<streamsize>::max().
+       * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
+
+       * include/bits/istream.tcc (basic_istream<>::getline): Prefer
+       '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
+       __n == numeric_limits<>::min().
+
+       * include/bits/istream.tcc: Minor tweaks.
+
+       * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
+       Tighten.
+       * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
+       Likewise.
+       * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
+       Likewise.
+       * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
+       Likewise.
+       * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
+
+2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
+
+       PR libstdc++/12854
+       Fixups for -Weffc++.    
+       * include/bits/basic_string.h (basic_string::operator=): Return
+       pointer to this instead of result of assign. Although redundant,
+       this doesn't impact resultant codegen.
+       
+       * include/bits/locale_facets.h (__numpunct_cache): Declare
+       assignment opxserator and copy constructor private.
+       (__timepunct_cache): Same.
+       (__moneypunct_cache): Same.
+       (collate): Use member initialization list for _M_c_locale_collate.
+       * config/locale/gnu/messages_members.h: Same.
+       * config/locale/gnu/time_members.h (__timepunct): Same. 
+       * src/codecvt.cc: Use member initialization list to initialize
+       _M_c_locale_codecvt.    
+       * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
+       * config/os/gnu-linux/ctype_noninline.h: Same.
+       * src/locale.cc (_Impl): Same.
+       * src/locale_init.cc: Same.
+       * src/localename.cc: Same.      
+
+       * include/bits/basic_ios.h (basic_ios): Complete member
+       initialization list.
+       * include/bits/istream.tcc (basic_istream::sentry): Same.
+       * include/bits/ostream.tcc (basic_ostream::sentry): Same.
+       * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
+       _M_pback to member initialization list.
+       * include/std/std_streambuf.h: Same.
+       * include/std/std_sstream.h: Same, for _M_mode.
+       * src/ios.cc (ios_base): Same.
+       
+       * include/ext/rope: Make derived classes match exception
+
+        specifications. Add copy constructors and assignment operators.
+
+       * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
+       constructor and assignment operator protected.
+       (_Safe_iterator_base): Same.
+       * include/debug/formatter.h (_Error_formatter): Define copy
+       constructor and assignment operator.
+
+       * include/backward/strstream: Declare assignment operator and copy
+       constructor private.
+
+2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * testsuite/testsuite_hooks.h (func_callback): Declare copy
+       constructor and assignment operator private.    
+       * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
+       exception specifications of base class.
+       * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
+       * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
+       * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
+               
+2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * libsupc++/cxxabi.h: Remove duplicated and useless public and
+        private keywords in class declarations. Format. Use
+        stddef.h. Expose declarations to "C" compilation.
+        * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
+        assignment operator.
+        (__dyncast_result): Same.
+        * libsupc++/vec.cc (uncatch_exception): Same, use member
+        initialization list.
+                 
+2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * testsuite/abi_check.cc: Add unistd.h.
+
+2004-05-22  Paolo Carlini  <pcarlini@suse.de>
+
+       PR libstdc++/15565
+       * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
+       __int_to_char(unsigned long long)): Showpos is not relevant
+       for unsigned types.
+       * testsuite/22_locale/num_put/put/char/15565.cc: New.
+       * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
+
+       * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
+       char.
+       * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
+       * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
+       * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
+       * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
+       * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
+       * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
+
+2004-05-21  Matthias Klose  <doko@debian.org>
+       * docs/doxygen/run_doxygen:  Bump required version.
+
+2004-05-21  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
+       * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
+
+2004-05-21  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/istream.tcc (ignore): Remove redundant line.
+       (readsome): Tidy, closely following 27.6.1.3, p30.
+
+2004-05-20  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/istream.tcc (operator>>(basic_istream<>&,
+       basic_string<>&)): Use a temporary buffer, thus avoiding
+       reallocation for common case.
+       * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
+       New.
+       * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
+       Likewise.
+
+       * include/bits/istream.tcc: Const-ification of a few variables.
+
+       * include/bits/ostream.tcc: Trivial formatting fixes and
+       const-ification of some variables.
+
+2004-05-20  Benjamin Kosnik  <bkoz@redhat.com>
+
+       PR libstdc++/15123
+       PR libstdc++/13928
+       * docs/doxygen/Intro.3: Remove Allocators.3.
+       Add new extension headers, extension namespace list.
+       * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
+       Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
+       __gnu_debug::. Remove __policy_ renames.
+       * docs/doxygen/guide.html: Add dot note.
+       * docs/doxygen/stdheader.cc: Edit, add files.
+       * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
+       
+2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
+
+       * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
+
+2004-05-18  Jan Beulich  <jbeulich@novell.com>
+        PR libstdc++/15489
+        * scripts/create_testsuite_files: Also find source files through
+          symbolic links.
+
+2004-05-18  Jan Beulich  <jbeulich@novell.com>
+
+       PR libstdc++/15488
+       * testsuite/lib/libstdc++.exp: Make test files writable.
+
+2004-05-18  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
+       tweaks.
+
+2004-05-18  Dhruv Matani  <dhruvbird@gmx.net>
+
+       * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
+       allocation loop which removes blocks from the global free list
+       from O(N) to O(1) when the required blocks are <= the number
+       available.
+
+2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
+
+       * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
+
+2004-05-17  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
+       * testsuite/23_containers/deque/14340.cc: New.
+       * testsuite/23_containers/list/14340.cc: New.
+       * testsuite/23_containers/map/14340.cc: New.
+       * testsuite/23_containers/multimap/14340.cc: New.
+       * testsuite/23_containers/multiset/14340.cc: New.
+       * testsuite/23_containers/set/14340.cc: New.
+       * testsuite/23_containers/vector/14340.cc: New.
+
+2004-05-17  Douglas Gregor   <gregod@cs.rpi.edu>
+
+       PR libstdc++/14340 
+       * include/debug/safe_iterator.h (_Safe_iterator converting 
+       constructor): Only allow declaration to instantiate when the 
+       incoming _Safe_iterator has exactly the right iterator type.
+
 2004-05-17  Jonathan Wakely  <redi@gcc.gnu.org>
 
        * include/bits/boost_concept_check.h: Fix old attribute syntax.