2004-07-08 Paolo Carlini <pcarlini@suse.de>
[official-gcc.git] / libstdc++-v3 / ChangeLog
blob4b0036b3bc6f1255fe8a367ac9953306e2e72f35
1 2004-07-08  Paolo Carlini  <pcarlini@suse.de>
3         * include/bits/gslice.h: Trivial formatting fixes.
4         * include/bits/gslice_array.h: Likewise.
5         * include/bits/indirect_array.h: Likewise.
6         * include/bits/mask_array.h: Likewise.
7         * include/bits/slice_array.h: Likewise.
8         * include/bits/valarray_after.h: Likewise.
9         * include/bits/valarray_array.h: Likewise.
10         * include/bits/valarray_before.h: Likewise.
11         * include/std/std_valarray.h: Likewise.
13 2004-07-08  Benjamin Kosnik  <bkoz@redhat.com>
15         PR c++/16169
16         * include/bits/basic_string.h (basic_string::operator=): Revert.
18 2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>
20         * configure.ac (libtool_VERSION): To 6:2:0.
21         * configure: Regenerated.
23         * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
24         
25 2004-07-07  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
27         PR libstdc++/16411
28         * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
30 2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>
32         * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
33         -Weffc++ issues.
35 2004-07-07  Paolo Carlini  <pcarlini@suse.de>
37         PR libstdc++/16401
38         * include/bits/sstream.tcc (overflow): When reallocating _M_string
39         use an exponential grow policy.
40         * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
41         * testsuite/performance/27_io/stringbuf_overflow.cc: New.
43 2004-07-06  Anssi Hannula  <anssi.hannula@mbnet.fi>
45         PR libstdc++/15928
46         * crossconfig.m4: Add in bits for djgpp.
47         * configure: Regenerate.
48         
49 2004-07-05  Jonathan Wakely  <redi@gcc.gnu.org>
51         * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
52         instantiation of set and multiset (functor param given as int).
54 2004-07-04  Paolo Carlini  <pcarlini@suse.de>
56         * include/bits/basic_string.h: Trivial formatting fixes and/or
57         const-ification of some variables.
58         * include/bits/deque.tcc: Likewise.
59         * include/bits/stl_algobase.h: Likewise.
60         * include/bits/stl_bvector.h: Likewise.
61         * include/bits/stl_construct.h: Likewise.
62         * include/bits/stl_deque.h: Likewise.
63         * include/bits/stl_pair.h: Likewise.
64         * include/bits/stl_vector.h: Likewise.
65         * include/bits/vector.tcc: Likewise.
67 2004-07-04  Paolo Carlini  <pcarlini@suse.de>
69         * testsuite/25_algorithms/copy/1.cc: Add instantiations for
70         systems with no COMDAT or weak support.
71         * testsuite/25_algorithms/copy/2.cc: Likewise.
72         * testsuite/25_algorithms/copy/3.cc: Likewise.
73         * testsuite/25_algorithms/copy/4.cc: Likewise.
75 2004-07-03  Paul Brook  <paul@codesourcery.com>
77         * configure.ac: Set ABI_TWEAKS_SRCDIR.
78         * configure.host: Set abi_tweaks_dir.  Check for atomicity.h when
79         setting atomicity_dir.  Override type_cpu for arm based targets.
80         * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
81         * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
82         * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
83         * libsupc++/vec.cc: Ditto.
84         * config/cpu/arm/cxxabi_tweaks.h: New file.
85         * config/cpu/generic/cxxabi_tweaks.h: New file.
86         * */Makefile.in: Regenerate.
87         * configure: Regenerate.
89 2004-07-02  Paolo Carlini  <pcarlini@suse.de>
91         * include/bits/type_traits.h (_Is_normal_iterator): Move...
92         * include/bits/cpp_type_traits.h: ... here, renamed to
93         __is_normal_iterator and consistent with the other traits.
94         * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
95         to the struct __copy_normal and three specializations.
96         (__copy_backward_output_normal_iterator,
97         __copy_backward_input_normal_iterator): Likewise, convert to
98         the struct __copy_backward_normal and three specializations.
99         (copy, copy_backward): Use the latter.
100         (__copy_aux, __copy_backward_aux): Very minor tweaks.
102 2004-07-01  Paolo Carlini  <pcarlini@suse.de>
104         * include/bits/stl_algobase.h (__copy_trivial): Remove.
105         (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
106         __is_trivially_copyable, __are_same and __copy::copy.
107         (__copy): Rewrite as a class template and two specializations.
108         (__copy_ni2): Simplify, just call __copy_aux.
109         
110         * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
111         check.
112         * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
113         for destination value type != source value type.
115 2004-07-01  Benjamin Kosnik  <bkoz@redhat.com>
116             Per Bothner  <per@bothner.com>
117             Mohan Embar  <gnustuff@thisiscool.com>
119         PR libstdc++/16248
120         * include/bits/concurrence.h (__glibcxx_mutex_type): New.
121         (__glibcxx_mutex): Encapsulate mutex init function into type for
122         threaded configurations without __GTHREAD_MUTEX_INIT.
123         (lock::lock): Make device member a reference.
124         (lock::~lock): Same.
125         * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
126         to mutex_type.
127         * src/allocator.cc: Same.
128         
129 2004-06-30  Brad Spencer  <spencer@infointeractive.com>
131         * include/ext/mt_allocator.h: Handle allocations at static
132         initialization that happen before _S_options is (automatically)
133         constructed; set _S_init even if _M_force_new is true.
134         
135 2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
137         * config/linker-map.gnu: Revert new exports.
139 2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
140             Stuart Anderson  <anderson@netsweng.com>
141         
142         * config/linker-map.gnu: Add destructor exports for abstract base
143         classes to conform to LSB.
145 2004-06-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
146             Paolo Carlini  <pcarlini@suse.de>
148         * include/bits/cpp_type_traits.h: Add __is_pointer and
149         __is_trivially_copyable.
150         * include/bits/stl_algobase.h (fill, fill_n): Slightly
151         tweak to use the latter.
152         (__copy_backward_dispatch): Remove.
153         (__copy_backward_aux): Rewrite to use __is_pointer and
154         __is_trivially_copyable and __copy_backward::copy_b.
155         (__copy_backward): Rewrite as a class template and two
156         specializations.
158 2004-06-30  Paolo Carlini  <pcarlini@suse.de>
160         * testsuite/25_algorithms/copy.cc: Move to...
161         * testsuite/25_algorithms/copy/1.cc: ... here, extend.
162         * testsuite/25_algorithms/copy/2.cc: New.
163         * testsuite/25_algorithms/copy/3.cc: New.
164         * testsuite/25_algorithms/copy/4.cc: New.
166 2004-06-29  Paul Brook  <paul@codesourcery.com>
168         * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
169         element size in the cookie.
171 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
173         * include/bits/cpp_type_traits.h: Move the additions to
174         namespace __gnu_internal outside of namespace std; trivial
175         formatting fixes.
177 2004-06-28  Benjamin Kosnik  <bkoz@redhat.com>
179         * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
180         Revert -Weffc++ changes that defined copy ctory and or assignment
181         operator.
182         * libsupc++/tinfo.cc (__upcast_result): Same.
183         
184 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
186         * src/localename.cc (locale::_Impl::_Impl): Slightly improve
187         the algorithm used to name the categories.
189 2004-06-28  Paolo Bonzini  <bonzini@gnu.org>
191         * include/Makefile.am: Give a .gch extension to
192         the PCH files, not only to the directory.
193         * include/Makefile.in: Regenerate.
195 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
197         * config/locale/gnu/monetary_members.cc
198         (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
199         assignments of _M_decimal_point and _M_thousands_sep.
201 2004-06-27  Paolo Carlini  <pcarlini@suse.de>
203         * docs/html/17_intro/contribute.html: Update some links.
204         * docs/html/17_intro/porting-howto.html: Likewise.
205         * docs/html/17_intro/porting-howto.xml: Likewise.
206         * docs/html/18_support/howto.html: Likewise.
207         * docs/html/21_strings/howto.html: Likewise.
208         * docs/html/27_io/howto.html: Likewise.
209         * docs/html/configopts.html: Likewise.
210         * docs/html/ext/howto.html: Likewise.
211         * docs/html/faq/index.html: Likewise.
212         * docs/html/install.html: Don't mention 2.x compilers.
214 2004-06-27  Paolo Carlini  <pcarlini@suse.de>
216         * include/ext/rope: Trivial formatting fixes.
217         * include/ext/ropeimpl.h: Likewise.
219 2004-06-26  Paolo Carlini  <pcarlini@suse.de>
221         PR libstdc++/16210
222         * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
223         availability of strto(u)ll, not used anymore in the iostreams.
224         * configure: Regenerate.
226 2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>
228         PR libstdc++/16182      
229         * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
230         AC_DEFINE_UNQUOTED.
231         * configure: Regenerate.
233 2004-06-25  Paul Brook  <paul@codesourcery.com>
235         * libsupc++/cxxabi.h: Define __ARM_EABI__
236         (__guard): Use it.
237         * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
239 2004-06-25  Paul Brook  <paul@codesourcery.com>
241         * include/bits/concurrence.h: Still create mutex object when
242         single-threaded.
244 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
246         * include/bits/stl_algobase.h (fill, fill_n): Revert last
247         change: actually we need to copy construct an object of type
248         _Tp, not of type iterator_traits<>::value_type, therefore the
249         code is ok.
251 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
253         * include/bits/stl_algobase.h (fill, fill_n): Tighten the
254         dispatch: use iterator_traits<>::value_type, not _Tp.
256 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
258         * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
259         * testsuite/25_algorithms/fill/2.cc: Likewise.
261 2004-06-25  Dan Nicolaescu  <dann@ics.uci.edu>
262             Paolo Carlini  <pcarlini@suse.de>
264         * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
265         for fill and fill_n, respectively: when copying is cheap, use a
266         temporary to avoid a memory read in each iteration.
268 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
270         * testsuite/25_algorithms/fill/1.cc: New.
271         * testsuite/25_algorithms/fill/2.cc: Likewise.
273 2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>
275         * include/debug/formatter.h (__gnu_debug::_Error_formatter):
276         Remove copy constructor and assignment operator.
278 2004-06-24  Benjamin Kosnik  <bkoz@redhat.com>
280         * include/bits/concurrence.h (__gnu_cxx::lock): New.
281         * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
282         (__pool_base::_M_get_mutex): New.
283         * include/bits/allocator.h: Tweak.
284         * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
285         * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
286         * include/bits/stl_threads.h: Remove.
287         * include/Makefile.am: Also here.
288         * include/Makefile.in: Regenerate.
290         * src/locale_init.cc: Use __gnu_cxx::lock.
292         * src/allocator.cc: Move all instantiations...
293         * src/allocator-inst.cc: ...here.
294         
295 2004-06-23  Andrew Pinski  <apinski@apple.com>
297         * linkage.m4: Remove check for libmx.   
298         * configure: Regenerate.
300 2004-06-23  Paolo Carlini  <pcarlini@suse.de>
302         PR libstdc++/16154
303         * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
304         Don't require the _DefaultConstructibleConcept.
305         (struct _ForwardIteratorConcept): Require it here.
307 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
309         * include/bits/istream.tcc (getline): Make sure arguments passed
310         to min/max have the same type.
311         * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
312         * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
314 2004-06-22  Benjamin Kosnik  <bkoz@redhat.com>
316         * docs/html/abi.html: Update links.
318 2004-06-22  Paolo Carlini  <pcarlini@suse.de>
320         * testsuite/26_numerics/complex_inserters_extractors.cc,
321         complex_value.cc, buggy_complex.cc: Move to...
322         * testsuite/26_numerics/complex/: ... here.
323         * testsuite/26_numerics/c99_classification_macros_c++.cc,
324         c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
325         fabs_inline.cc: Move to...
326         * testsuite/26_numerics/cmath/: ... here.
327         * testsuite/26_numerics/binary_closure.cc, slice.cc,
328         slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
329         valarray_name_lookup.cc, valarray_operators.cc,
330         valarray_subset_assignment.cc: Move to...
331         * testsuite/26_numerics/valarray/: ... here (new dir).
332         * testsuite/26_numerics/sum_diff.cc: Move to...
333         * testsuite/26_numerics/numeric/: ... here (new dir).
335 2004-06-22  Paolo Carlini  <pcarlini@suse.de>
337         * include/std/std_istream.h (ignore(streamsize __n = 1,
338         int_type __delim = traits_type::eof())): Split into...
339         (ignore(), ignore(streamsize __n), ignore(streamsize __n,
340         int_type __delim)): The first two can be much more simpler
341         and efficient than the fully general case; also, the last
342         two can take advantage of the same mechanism already used
343         for getline.
344         * include/bits/istream.tcc (ignore(streamsize __n = 1,
345         int_type __delim = traits_type::eof()): Remove.
346         (ignore(), ignore(streamsize __n), ignore(streamsize __n,
347         int_type __delim)): New.
349 2004-06-21  Loren J. Rittle  <ljrittle@acm.org>
351         * config/linker-map.gnu: Use wildcards for
352         __basic_file::sys_open(FILE*, _Ios_Openmode).
354 2004-06-20  Paolo Carlini  <pcarlini@suse.de>
356         * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
358 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
360         * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
361         the alignment requested.
362         (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
363         (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
364         (__mt_alloc<>::deallocate): Likewise.
366 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
368         PR libstdc++/16020
369         * include/debug/safe_base.h
370         (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
371         _Safe_sequence_base::operator=): Provide definitions.
372         * testsuite/23_containers/bitset/cons/16020.cc: New.
374 2004-06-18  Benjamin Kosnik  <bkoz@redhat.com>
376         * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
377         (__pool_base): Remove unused template parameter.  Add
378         protected. Move lock data into __pool_base::_Lock. Remove static
379         on member functions.
380         (__pool_base::_M_get_free_list): New.
381         (__pool_alloc): Move _S_force new here.
382         * src/allocator.cc: Move out of line __pool_base definitions here.
383         * config/linker-map.gnu: Export bits from __pool_base.
384         
385 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
387         * config/locale/gnu/numeric_members.cc
388         (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
389         assignments of _M_decimal_point and _M_thousands_sep.
390         * config/locale/gnu/time_members.cc
391         (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
392         and reformat assignments of date and time fields.
394 2004-06-16  Paolo Carlini  <pcarlini@suse.de>
396         * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
397         to use _Data_allocate.
398         * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
399         (rope<>::_S_substring): Likewise.
400         (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
401         (rope<>::c_str()): Likewise.
402         (rope<>::replace_with_c_str()): Likewise.
404         * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
405         Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
406         not _RopeRep.
407         (_Rope_iterator_base<>::_S_setcache): Likewise.
408         (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
409         (rope<>::_S_substring): Likewise.
410         (rope<>::_S_dump): Likewise.
411         (rope<>::_S_fetch_ptr): Likewise.
412         (rope<>::_S_compare): Likewise.
413         (rope<>::replace_with_c_str()): Likewise.               
415         * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
416         * testsuite/ext/rope/2.cc: New.
418 2004-06-16  Paolo Carlini  <pcarlini@suse.de>
419             Matt Austern  <austern@apple.com>
421         * testsuite/ext/rope/3.cc: New.
423 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
425         * acinclude.m4: Remove useless multilib configury.
426         * Makefile.am: Remove useless multilib rules.
427         * aclocal.m4: Regenerate.
428         * Makefile.in: Regenerate.
429         * configure: Regenerate.
431 2004-06-15  Paolo Carlini  <pcarlini@suse.de>
433         * include/ext/hashtable.h: Trivial formatting fixes.
434         * include/ext/rb_tree: Likewise.
436 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
438         * include/ext/hash_map: Trivial formatting fixes.
439         * include/ext/hash_set: Likewise.
440         * include/ext/memory: Likewise.
441         * include/ext/numeric: Likewise.
443 2004-06-14  Benjamin Kosnik  <bkoz@redhat.com>
445         * Makefile.in: Regenerate with automake 1.8.5.
446         * aclocal.m4: Same.
447         * include/Makefile.in: Same.
448         * libmath/Makefile.in: Same.
449         * libsupc++/Makefile.in: Same.
450         * po/Makefile.in: Same.
451         * src/Makefile.in: Same.
452         * testsuite/Makefile.in: Same.
454 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
456         * include/ext/slist: Trivial formatting fixes.
458 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
460         * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
461         Don't use the 'magic number' 10 in the computation of __minlen;
462         never access __name past __minlen; in the loop over __i3, don't
463         decrease __nmatches and increase __i3 at once, only either of
464         the two; tidy.
466 2004-06-13  Paolo Carlini  <pcarlini@suse.de>
468         * include/bits/locale_facets.tcc (time_get<>::do_get_time,
469         time_get<>::do_get_date): Use only once _M_extract_via_format,
470         instead of going through "%X"/"%x" and calling it two times
471         (+ using widen).
473 2004-06-12  Paolo Carlini  <pcarlini@suse.de>
475         * include/ext/algorithm: Trivial formatting fixes.
476         * include/ext/functional: Likewise.
477         * include/ext/hash_fun.h: Likewise.
478         * include/ext/iterator: Likewise.
480 2004-06-12  Paolo Carlini  <pcarlini@suse.de>
482         * include/bits/basic_string.tcc (find(const _CharT*, size_type,
483         size_type)): Reimplement using std::search.
484         * src/string-inst.cc: Instantiate std::search for char/wchar_t.
486 2004-06-12  Dhruv Matani  <dhruvbird@gmx.net>
488         * testsuite/performance/21_strings/string_find.cc: New.
490 2004-06-10  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
492         * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
494 2004-06-10  Jan van Dijk  <jan@etpmod.phys.tue.nl>
496         * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
497         this function return a value.
499 2004-06-09  Paolo Carlini  <pcarlini@suse.de>
501         PR libstdc++/15775
502         * include/bits/stl_deque.h: Consistently with stl_set.h, define
503         pointer as allocator's pointer, likewise for reference,
504         const_pointer, and const_reference.
505         * include/bits/stl_list.h: Likewise.
506         * include/bits/stl_map.h: Likewise.
507         * include/bits/stl_multimap.h: Likewise.
508         * include/bits/stl_vector.h: Likewise.
510 2004-06-09  Benjamin Kosnik  <bkoz@redhat.com>
512         * crossconfig.m4: Remove signbit, signbitf, signbitl.   
513         * linkage.m4: Comment LIBMATHOBJS, tweak others.  AC_DEFINES for
514         builtin math functions instead of AC_DEFINE_UNQUOTED.
515         * configure: Regenerate.
516         
517 2004-06-08  Benjamin Kosnik  <bkoz@redhat.com>
519         * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
520         * docs/doxygen/mainpage.html: Remove links.
522 2004-06-08  Jason Merrill  <jason@redhat.com>
524         * config/linker-map.gnu: Use wildcards for
525         __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
527 2004-06-08  Paolo Carlini  <pcarlini@suse.de>
529         * include/ext/pool_allocator.h: Convert to a global free-list,
530         as per the original SGI/HP design: move the implementation
531         details to struct __pool_base, from which __pool_alloc derives.
532         * src/allocator.cc: Instantiate __pool_base.
534 2004-06-07  Dhruv Matani  <dhruvbird@gmx.net>
535             Paolo Carlini  <pcarlini@suse.de>
537         * testsuite/testsuite_performance.h
538         (resource_counter::allocated_memory): Make it return the right
539         number of bytes requested by the allocators/application. This is
540         the sbrk+mmaped memory.
542 2004-06-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
544         * include/std/std_complex.h (log): Tidy.
546 2004-05-31  Benjamin Kosnik  <bkoz@redhat.com>
548         * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
549         * testsuite/testsuite_abi.cc: Same.
550         * configure.ac (libtool_VERSION): Bump to 6:1:0.
551         * configure: Regenerate.
552         * aclocal.m4: Regenerate.
553         
554 2004-05-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
556         * include/std/std_complex.h (complex<_Tp>): Properly indent
557         to follow C++STYLE. 
558         (complex<>::__rep): New.
559         (__complex_abs): New.  Dispatch to built-ins.
560         (abs): Use them.
561         (__complex_arg): New. Dispatch to built-ins.
562         (arg): Use it.
563         (__complex_cos): New. Dispatch to built-ins.
564         (cos): Use it.
565         (__complex_cosh): New. Dispatch to built-ins.
566         (cosh): Use it.
567         (__complex_exp): New. Dispatch to built-ins.
568         (exp): Use it.
569         (__complex_log): New. Dispatch to built-ins.
570         (log): Use it.
571         (__complex_sin): New. Dispatch to built-ins.
572         (sin): Use it.
573         (__complex_sinh): New. Dispatch to built-ins.
574         (sinh): Use it.
575         (__complex_sqrt): New. Dispatch to built-ins.
576         (sqrt): Use it.
577         (__complex_tan): New. Dispatch to built-ins.
578         (tan): Use it.
579         (__complex_tanh): New. Dispatch to built-ins.
580         (tanh): Use it.
581         (__complex_pow): New. Dispatch to built-ins.
582         (pow): Use it.
584 2004-05-29  Richard B. Kreckel  <Richard.Kreckel@Framatome-ANP.com>
585             Benjamin Kosnik  <bkoz@redhat.com>
586         
587         PR libstdc++/14600
588         * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
589         * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
590         * config/io/basic_file_stdio.cc (__basic_file::file): New.
591         * config/io/basic_file_stdio.h: Define.
593 2004-05-27  Benjamin Kosnik  <bkoz@redhat.com>
595         PR libstdc++/15675
596         * docs/html/documentation.html: Update doxygen links for 3.4.0.
598 2004-05-27  Jan Beulich  <jbeulich@novell.com>
600         * scripts/create_testsuite_files: Tweak.
602 2004-05-25  Benjamin Kosnik  <bkoz@redhat.com>
604         PR libstdc++/15489
605         * scripts/create_testsuite_files: Revert xtype change, add non-GNU
606         bits to do the same thing.
608 2004-05-24  Paolo Carlini  <pcarlini@suse.de>
610         * include/bits/istream.tcc (ignore): Correctly deal with
611         n == numeric_limits<streamsize>::max().
612         * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
614         * include/bits/istream.tcc (basic_istream<>::getline): Prefer
615         '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
616         __n == numeric_limits<>::min().
618         * include/bits/istream.tcc: Minor tweaks.
620         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
621         Tighten.
622         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
623         Likewise.
624         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
625         Likewise.
626         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
627         Likewise.
628         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
630 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
632         PR libstdc++/12854
633         Fixups for -Weffc++.    
634         * include/bits/basic_string.h (basic_string::operator=): Return
635         pointer to this instead of result of assign. Although redundant,
636         this doesn't impact resultant codegen.
637         
638         * include/bits/locale_facets.h (__numpunct_cache): Declare
639         assignment opxserator and copy constructor private.
640         (__timepunct_cache): Same.
641         (__moneypunct_cache): Same.
642         (collate): Use member initialization list for _M_c_locale_collate.
643         * config/locale/gnu/messages_members.h: Same.
644         * config/locale/gnu/time_members.h (__timepunct): Same. 
645         * src/codecvt.cc: Use member initialization list to initialize
646         _M_c_locale_codecvt.    
647         * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
648         * config/os/gnu-linux/ctype_noninline.h: Same.
649         * src/locale.cc (_Impl): Same.
650         * src/locale_init.cc: Same.
651         * src/localename.cc: Same.      
653         * include/bits/basic_ios.h (basic_ios): Complete member
654         initialization list.
655         * include/bits/istream.tcc (basic_istream::sentry): Same.
656         * include/bits/ostream.tcc (basic_ostream::sentry): Same.
657         * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
658         _M_pback to member initialization list.
659         * include/std/std_streambuf.h: Same.
660         * include/std/std_sstream.h: Same, for _M_mode.
661         * src/ios.cc (ios_base): Same.
662         
663         * include/ext/rope: Make derived classes match exception
665          specifications. Add copy constructors and assignment operators.
667         * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
668         constructor and assignment operator protected.
669         (_Safe_iterator_base): Same.
670         * include/debug/formatter.h (_Error_formatter): Define copy
671         constructor and assignment operator.
673         * include/backward/strstream: Declare assignment operator and copy
674         constructor private.
676 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
678         * testsuite/testsuite_hooks.h (func_callback): Declare copy
679         constructor and assignment operator private.    
680         * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
681         exception specifications of base class.
682         * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
683         * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
684         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
685                 
686 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
688         * libsupc++/cxxabi.h: Remove duplicated and useless public and
689         private keywords in class declarations. Format. Use
690         stddef.h. Expose declarations to "C" compilation.
691         * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
692         assignment operator.
693         (__dyncast_result): Same.
694         * libsupc++/vec.cc (uncatch_exception): Same, use member
695         initialization list.
696                  
697 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
699         * testsuite/abi_check.cc: Add unistd.h.
701 2004-05-22  Paolo Carlini  <pcarlini@suse.de>
703         PR libstdc++/15565
704         * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
705         __int_to_char(unsigned long long)): Showpos is not relevant
706         for unsigned types.
707         * testsuite/22_locale/num_put/put/char/15565.cc: New.
708         * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
710         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
711         char.
712         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
713         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
714         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
715         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
716         * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
717         * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
719 2004-05-21  Matthias Klose  <doko@debian.org>
721         * docs/doxygen/run_doxygen:  Bump required version.
723 2004-05-21  Benjamin Kosnik  <bkoz@redhat.com>
725         * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
726         * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
728 2004-05-21  Paolo Carlini  <pcarlini@suse.de>
730         * include/bits/istream.tcc (ignore): Remove redundant line.
731         (readsome): Tidy, closely following 27.6.1.3, p30.
733 2004-05-20  Paolo Carlini  <pcarlini@suse.de>
735         * include/bits/istream.tcc (operator>>(basic_istream<>&,
736         basic_string<>&)): Use a temporary buffer, thus avoiding
737         reallocation for common case.
738         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
739         New.
740         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
741         Likewise.
743         * include/bits/istream.tcc: Const-ification of a few variables.
745         * include/bits/ostream.tcc: Trivial formatting fixes and
746         const-ification of some variables.
748 2004-05-20  Benjamin Kosnik  <bkoz@redhat.com>
750         PR libstdc++/15123
751         PR libstdc++/13928
752         * docs/doxygen/Intro.3: Remove Allocators.3.
753         Add new extension headers, extension namespace list.
754         * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
755         Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
756         __gnu_debug::. Remove __policy_ renames.
757         * docs/doxygen/guide.html: Add dot note.
758         * docs/doxygen/stdheader.cc: Edit, add files.
759         * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
760         
761 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
763         * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
765 2004-05-18  Jan Beulich  <jbeulich@novell.com>
767         PR libstdc++/15489
768         * scripts/create_testsuite_files: Also find source files through
769           symbolic links.
771 2004-05-18  Jan Beulich  <jbeulich@novell.com>
773         PR libstdc++/15488
774         * testsuite/lib/libstdc++.exp: Make test files writable.
776 2004-05-18  Paolo Carlini  <pcarlini@suse.de>
778         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
779         tweaks.
781 2004-05-18  Dhruv Matani  <dhruvbird@gmx.net>
783         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
784         allocation loop which removes blocks from the global free list
785         from O(N) to O(1) when the required blocks are <= the number
786         available.
788 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
790         * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
792 2004-05-17  Benjamin Kosnik  <bkoz@redhat.com>
794         * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
795         * testsuite/23_containers/deque/14340.cc: New.
796         * testsuite/23_containers/list/14340.cc: New.
797         * testsuite/23_containers/map/14340.cc: New.
798         * testsuite/23_containers/multimap/14340.cc: New.
799         * testsuite/23_containers/multiset/14340.cc: New.
800         * testsuite/23_containers/set/14340.cc: New.
801         * testsuite/23_containers/vector/14340.cc: New.
803 2004-05-17  Douglas Gregor   <gregod@cs.rpi.edu>
805         PR libstdc++/14340 
806         * include/debug/safe_iterator.h (_Safe_iterator converting 
807         constructor): Only allow declaration to instantiate when the 
808         incoming _Safe_iterator has exactly the right iterator type.
810 2004-05-17  Jonathan Wakely  <redi@gcc.gnu.org>
812         * include/bits/boost_concept_check.h: Fix old attribute syntax.
813         * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
814         to pass concept-checks.
815         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
816         * testsuite/23_containers/set/modifiers/swap.cc: Same.
817         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
819 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
821         * include/std/std_bitset.h: Minor formatting fixes.
823 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
825         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
826         Consistently update __bin._M_free[0].
827         (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
828         __bin._M_free[0] to simplify the while loop (i.e., the number
829         of iterations becomes known at the outset).
831 2004-05-15  Paolo Carlini  <pcarlini@suse.de>
833         * include/std/std_bitset.h: Trivial formatting fixes.
835 2004-05-14  Paolo Carlini  <pcarlini@suse.de>
836             Ivan Godard  <igodard@pacbell.net>
838         PR libstdc++/15361
839         * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
840         * testsuite/23_containers/bitset/ext/15361.cc: New.
842 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
844         PR libstdc++/15046
845         * crossconfig.m4: Add C99 math bits for linux crosses.
846         * configure: Regenerate.
847         
848 2004-05-13  Simon Marshall <simon.marshall@misys.com>
849             Benjamin Kosnik  <bkoz@redhat.com>
851         PR libstdc++/15090
852         * include/bits/locale_facets.h: Fix for -fno-for-scope.
853         * include/debug/safe_sequence.h: Same.
854         * include/debug/safe_iterator.tcc: Same.
855         * src/debug.cc: Same.
856         * src/locale.cc: Same.
857         * src/locale_init.cc: Same.
858         * src/localename.cc: Same.
859         * config/locale/gnu/ctype_members.cc: Same.
860         * config/locale/gnu/numeric_members.cc: Same.
861         * testsuite/testsuite_abi.cc: Same.
862         * testsuite/testsuite_hooks.cc: Same.
863         
864 2004-05-13  Jonathan Wakely  <redi@gcc.gnu.org>
865         
866         * docs/html/abi.html: Document effect of -fabi-version on value
867         of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
868         Fix markup.
870 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
872         PR libstdc++/15074      
873         * docs/html/faq/index.html: Update docs for libsupc++ usage.
875 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
877         PR libstdc++/15412
878         * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
879         __gnu_internal.
880         (_GLIBCXX_mutex_address): Same.
881         (_GLIBCXX_once): Same.  
882         (_GLIBCXX_mutex_init): Same.
883         (_GLIBCXX_mutex_address_init): Same.
884         
885 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
886         
887         * docs/html/abi.html: New.
888         * docs/html/abi.txt: Remove.
889         * docs/html/documentation.html: Add link.
890         * testsuite/Makefile.am: Add files.
891         * testsuite/Makefile.in: Regenerated.
892         * testsuite/abi_check.cc: Move and modify code into...
893         * testsuite/testsuite_abi.cc: Add.
894         * testsuite/testsuite_abi.h: Add.
896         * docs/html/17_intro/TODO: Update.
897         * include/bits/stl_pair.h: Format.
898         
899 2004-05-06  Matthias Klose  <doko@debian.org>
901         * include/backward/iterator.h:  Add GPL copyright info,
902         with exception clause.
903         * include/bits/boost_concept_check.h: Likewise.
904         * include
905         * libsupc++/tinfo.h: Likewise.
906         * po/string_literals.cc: Likewise.
907         
908 2004-05-03  Andreas Tobler  <a.tobler@schweiz.ch>
910         * acinclude.m4: Replace -W with more speaking -Wextra.
911         * configure: Rebuilt.
913 2004-05-03  Paolo Carlini  <pcarlini@suse.de>
915         Optimize locale::_M_impl->_M_names for the most common cases:
916         !_M_names[0] means unnamed; !_M_names[1] means all the categories
917         the same name (_M_names[0] && _M_names[1] means that the full set
918         of _M_names must be processed, the general case).
919         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
920         Tweak, saving work when !_M_names[1].
921         (locale::locale(const locale&, _Facet*): Simplify: now just setting
922         _M_names[0] = 0 means unnamed.
923         * src/locale.cc (locale::operator==): Deal first with the common,
924         easy cases, otherwise fall back to locale::name().
925         (locale::name()): Tweak, if !_M_names[0] just return "*".
926         (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
927         copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
928         * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
929         * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
930         Simplify when !std::strchr, just updating _M_names[0]; clean up.
931         (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
932         for the general case (full set of names), then do the usual work;
933         clean up.
935         * src/locale.cc (locale::name()): Reserve space in __ret.
936         * src/locale_init.cc (locale::global(const locale&)): Save
937         the name in a temporary.
938         * src/localename.cc (locale::locale(const char*)): Reserve space
939         in __str.
941 2004-04-29  Paolo Carlini  <pcarlini@suse.de>
943         * src/locale.cc (locale::operator==): Always avoid constructing
944         locale::name(), directly compare pairs of _M_names.
946 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
948         * include/bits/istream.tcc: Fix comment.
950 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
952         * include/bits/stl_vector.h: Trivial formatting fixes.
953         * include/bits/vector.tcc: Likewise.
955 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
957         PR libstdc++/15002 (continued again)
958         * include/bits/istream.tcc (getline(basic_istream<>&,
959         basic_string<>&, _CharT)): Use a temporary buffer, thus
960         avoiding reallocation for common case.
962         * include/bits/basic_string.tcc (_S_construct(_InIterator,
963         _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
964         of temporary buffer to a power of two.
966         * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
968 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
970         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
971         New.
972         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
973         Likewise.
974         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
976 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
977             Petur Runolfsson  <peturr02@ru.is>
979         PR libstdc++/15002 (continued)
980         * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
981         streamsize, char_type)): Use traits::find/copy in a loop to speed
982         up greatly the function in the common case (I/O buffer size >> 1).
984 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
986         * testsuite/27_io/basic_istream/getline/char/4.cc: New. 
988         * include/bits/istream.tcc (getline(basic_istream<>&,
989         basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
990         of sbumpc(), consistently with the other functions, thus also
991         dealing correctly with the case of exceeded string::max_size().
993 2004-04-24  Matthias Klose  <doko@debian.org>
995         Jonathan Wakely  <cow@compsoc.man.ac.uk>
996         * docs/html/configopts.html: Fix reference to allocator config option.
998 2004-04-23  Andrew Pinski  <pinskia@physics.uc.edu>
1000         * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
1001         * configure: Regenerate.
1003 2004-04-23  Daniel Jacobowitz  <drow@mvista.com>
1005         PR libstdc++/15047, libstdc++/11610
1006         * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
1007         (libstdc++_init): Don't pass outdir to v3-copy-files.
1009 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
1011         * include/bits/deque.tcc: Trivial formatting fixes.
1012         * include/bits/stl_deque.h: Likewise.
1013         * include/bits/stl_list.h: Likewise.
1014         * include/bits/stl_tree.h: Likewise.
1016 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
1017             Andrew Pinski  <pinskia@physics.uc.edu>
1019         * include/bits/basic_string.tcc (_M_mutate): Don't compute
1020         __src unnecessarily.
1022 2004-04-19  Benjamin Kosnik  <bkoz@redhat.com>
1024         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc: 
1025         Clarify assertion, set test variable to false before assert.
1026         * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
1027         * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
1028         * testsuite/27_io/ios_base/storage/2.cc: Same.
1029         
1030         * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
1031         function returns.
1032         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
1033         * testsuite/27_io/fpos/14320-3.cc: Same.
1034         
1035         * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
1036         * testsuite/27_io/fpos/1.cc: Same.
1037         * testsuite/27_io/basic_stringstream/2.cc: Same.
1038         * testsuite/27_io/basic_stringbuf/4.cc: Same.
1039         * testsuite/27_io/basic_stringbuf/1.cc: Same.
1040         * testsuite/27_io/basic_stringbuf/2.cc: Same.
1041         * testsuite/27_io/basic_streambuf/2.cc: Same.
1042         * testsuite/27_io/basic_ostringstream/2.cc: Same.
1043         * testsuite/27_io/basic_ostream/2.cc: Same.
1044         * testsuite/27_io/basic_ofstream/2.cc: Same.
1045         * testsuite/27_io/basic_istringstream/2.cc: Same.
1046         * testsuite/27_io/basic_istream/2.cc: Same.
1047         * testsuite/27_io/basic_iostream/2.cc: Same.
1048         * testsuite/27_io/basic_ios/2.cc: Same.
1049         * testsuite/27_io/basic_ifstream/2.cc: Same.
1050         * testsuite/27_io/basic_fstream/2.cc: Same.
1051         * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
1053         * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
1054         unsigned against zero.
1055         * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
1056         * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
1058         * testsuite/18_support/new_delete_placement.cc: Initialize
1059         variables before first use.
1060         * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
1061         * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
1062         * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
1063         * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc: 
1064         Same.
1065         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
1066         * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc: 
1067         Same.
1068         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
1069         * testsuite/27_io/types/2.cc: Same.
1071         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
1072         file name.      
1073         * testsuite/27_io/fpos/14775.cc: Same.
1074         
1075 2004-04-19  Paolo Carlini  <pcarlini@suse.de>
1077         PR libstdc++/15002 (partial)
1078         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
1079         Special case __n2 == 1, not calling traits_type::assign/copy. 
1081 2004-04-17  Benjamin Kosnik  <bkoz@redhat.com>
1083         * include/bits/stl_bvector.h: Use _M_impl._M_start.
1084         
1085 2004-04-16  Benjamin Kosnik  <bkoz@redhat.com>
1086         
1087         * include/bits/c++config (_GLIBCXX_STD): New.
1088         * src/list.cc: Use it.
1089         * include/std/std_bitset.h: Same.
1090         * include/bits/vector.tcc: Same.
1091         * include/bits/stl_set.h: Same.
1092         * include/bits/stl_multiset.h: Same.
1093         * include/bits/stl_multimap.h: Same.
1094         * include/bits/stl_map.h: Same.
1095         * include/bits/stl_list.h: Same.
1096         * include/bits/stl_vector.h: Same.
1097         * include/bits/stl_bvector.h: Same.
1098         * include/bits/stl_deque.h: Same.
1099         * include/bits/deque.tcc: Same.
1100         * include/bits/list.tcc: Same.
1101         * include/debug/vector: Same.
1102         * include/debug/set.h: Same.
1103         * include/debug/multiset.h: Same.
1104         * include/debug/multimap.h: Same.
1105         * include/debug/map.h: Same.
1106         * include/debug/list: Same.
1107         * include/debug/deque: Same.
1108         * include/debug/bitset: Same.   
1109         * include/debug/formatter.h (__gnu_debug): Remove using directive.
1110         Add using declaration for std::type_info.
1111         * include/debug/safe_iterator.h: Add using declaration for
1112         std::iterator_traits and std::pair.
1113         * src/debug_list.cc: New.
1114         * src/Makefile.am: Add debug_list.cc.
1115         * src/Makefile.in: Regenerate.
1116         * config/linker-map.gnu: Add _List_node_base exports for std and
1117         __gnu_norm.
1119         * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
1120         idiom that other containers use.
1121         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
1122                         
1123 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
1125         PR libstdc++/14975
1126         * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
1127         in case of error.
1128         * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
1129         * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
1131 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
1133         * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
1134         used anymore.
1135         * config.h.in: Regenerate.
1137 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
1139         * config/locale/generic/monetary_members.cc
1140         (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
1141         btowc unnecessarily, just cast to wchar_t (the concerned chars
1142         all belong to the basic character set).
1143         * config/locale/generic/numeric_members.cc
1144         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1145         * config/locale/gnu/monetary_members.cc
1146         (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
1147         * config/locale/gnu/numeric_members.cc
1148         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1150 2004-04-15  Paolo Carlini  <pcarlini@suse.de>
1152         * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
1153         avoid constructing unnecessarily this->name().
1155 2004-04-14  Zack Weinberg  <zack@codesourcery.com>
1157         * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
1158         Change definition of CXX to use $(shell) instead of backticks.
1159         * testsuite/Makefile.in: Regenerate.
1161 2004-04-12  Dhruv Matani  <dhruvbird@gmx.net>
1163         * testsuite/performance/20_util/allocator/list_sort_search.cc:
1164         Minor formatting fixes.
1165         * testsuite/performance/20_util/allocator/map_mt_find.cc:
1166         Likewise.
1168 2004-04-12  Paolo Carlini <pcarlini@suse.de>
1170         * config/locale/gnu/numeric_members.cc
1171         (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
1172         in __uselocale, since btowc is called for chars belonging to
1173         the basic character set.
1175 2004-04-09  Paolo Carlini  <pcarlini@suse.de>
1177         * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
1178         * testsuite/22_locale/messages/members/char/2.cc: Ditto.
1179         * testsuite/22_locale/messages/members/char/3.cc: Ditto.
1180         * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
1181         * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
1182         * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
1183         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
1184         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
1185         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
1186         * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
1187         * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
1188         * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
1189         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
1190         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
1191         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
1192         * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
1193         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
1195 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
1197         * config/locale/generic/time_members.cc
1198         (__timepunct<char>::_M_initialize_timepunct,
1199         __timepunct<wchar_t>::_M_initialize_timepunct): the correct
1200         _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
1201         * config/locale/gnu/time_members.cc
1202         (__timepunct<char>::_M_initialize_timepunct,
1203         __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
1204         * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
1205         * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
1207         * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
1208         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
1209         * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
1210         * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
1211         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
1212         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
1213         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
1214         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
1215         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
1216         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
1217         * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
1218         * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
1219         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
1220         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
1221         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
1222         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
1223         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
1224         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
1225         * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
1226         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
1227         * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
1228         * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
1229         * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
1230         * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
1231         * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
1232         * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
1233         * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
1234         * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
1235         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
1236         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
1237         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
1238         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
1239         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
1240         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
1241         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
1242         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
1244         * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
1246 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
1248         * config/locale/gnu/monetary_members.cc
1249         (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
1250         _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
1251         and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
1252         _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
1253         * config/locale/gnu/numeric_members.cc
1254         (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
1255         and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
1257 2004-04-06  Benjamin Kosnik  <bkoz@redhat.com>
1259         Fixups for EDG front end.
1260         * include/ext/rope: Instead of non-existent function
1261         _Data_allocate, use allocator's allocate. Use this.
1262         (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
1263         enumerations from _Rope_RopeRep here.
1264         * include/ext/ropeimpl.h: Same.
1265         * src/ext-inst.cc (_S_min_len): Fix up definition.
1267         * config/locale/gnu/ctype_members.cc: Qualify base class members
1268         with this.
1269         * config/locale/generic/ctype_members.cc: Same.
1270         * config/locale/gnu/messages_members.h: Same.
1271         * config/locale/generic/messages_members.h: Same.
1272         * src/ctype.cc: Same.
1273         * include/bits/codecvt.h: Same.
1275         * include/bits/boost_concept_check.h: Declare.
1276         (__error_type_must_be_an_unsigned_integer_type): Remove this.
1277         (__error_type_must_be_an_integer_type): Remove this.
1278         (__error_type_must_be_a_signed_integer_type): Remove this.
1280         * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
1282         * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
1283         specification to definition.
1284         (__cxa_allocate_exception): Same.
1285         * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
1286         * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
1287         (__cxa_get_globals): Same.
1289         * libsupc++/del_op.cc: Add comment about freestanding.
1291 2004-04-05  Paolo Carlini  <pcarlini@suse.de>
1293         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1294         The critical section is actually very small, only two assignments.
1296 2004-04-04  Paolo Carlini  <pcarlini@suse.de>
1297             Petur Runolfsson  <peturr02@ru.is>
1299         * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
1300         adapted from libstdc++/11378.
1302 2004-04-03  Paolo Carlini  <pcarlini@suse.de>
1304         * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
1305         some duplicated code.
1306         (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
1307         in the single threaded case.
1308         * testsuite/performance/20_util/allocator/list_sort_search.cc:
1309         Reorder and renumber the tests consistently with the other testfiles.
1310         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1311         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1312         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1314 2004-04-02  Paolo Carlini  <pcarlini@suse.de>
1316         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1317         Rearrange arithmetic to avoid computing two divisions at
1318         each deallocation.
1320 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
1322         * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
1323         Streamline the second half, wrapping it in a single
1324         '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
1325         conditionals inside loops.
1327 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
1329         PR libstdc++/14775
1330         * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
1331         * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
1332         GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
1333         to _GLIBCXX_RES_LIMITS.
1334         (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
1335         HAVE_LIMIT_*.
1336         * testsuite/testsuite_hooks.h: Declare set_file_limit.
1337         * testsuite/testsuite_hooks.cc: Define it, using getrlimit
1338         and setrlimit(RLIMIT_FSIZE).
1339         * testsuite/27_io/fpos/14775.cc: New.
1340         * config.h.in: Regenerate.
1341         * configure: Likewise.
1343 2004-03-31  Paolo Carlini  <pcarlini@suse.de>
1345         * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
1346         In v3 uses of sscanf, the special floating-point numbers INF,
1347         INFINITY, etc., cannot occur in input, therefore, if the latter
1348         is too large, ERANGE is always stored in errno, no need of finitel.
1350 2004-03-30  Benjamin Kosnik  <bkoz@redhat.com>
1352         PR libstdc++/14783
1353         * include/bits/stl_tree.h: Adjust initialization list order.
1355 2004-03-29  Loren J. Rittle  <ljrittle@acm.org>
1357         * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
1359 2004-03-29  Paolo Carlini  <pcarlini@suse.de>
1361         * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
1362         on allocator behavior, the memory pointed by data2 may well be not
1363         trashed.
1365 2004-03-28  Chavdar Botev  <cbotev@yahoo.com>
1367         PR libstdc++/14245
1368         * include/bits/basic_string.tcc
1369         (basic_string::basic_string(const basic_string&)): Pass to
1370         _Rep::_M_grab the actual allocator of the string being constructed
1371         not the default constructed one.
1373 2004-03-27  Benjamin Kosnik  <bkoz@redhat.com>
1375         libstdc++ PR/13598
1376         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
1377         (__enc_traits::_M_destroy): New.
1378         (__enc_traits::~__enc_traits): Use it.
1379         (__enc_traits::operator=): Use _M_destroy, _M_init.
1380         (__enc_traits::__enc_traits): Same.
1382 2004-03-27  Petur Runolfsson  <peturr02@ru.is>
1384         * testsuite/ext/enc_filebuf/char/13598.cc: New.
1386 2004-03-27  Paolo Carlini  <pcarlini@suse.de>
1388         * include/ext/mt_allocator.h: Uglify consistently names of
1389         variables, members and classes; tidy.
1391 2004-03-27  Dhruv Matani  <dhruvbird@gmx.net>
1393         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1394         Deallocation loop rewrote.
1396 2004-03-26  Paolo Carlini  <pcarlini@suse.de>
1398         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1399         __mt_alloc<>::deallocate): Protect two instances of
1400         block->thread_id with __GTHREADS.
1402 2004-03-25  Gawain Bolton  <gp.bolton@computer.org>
1404         * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
1405         default argument in constructors.
1406         (_Rb_tree::_M_empty_initialize): Remove.
1408 2004-03-25  Benjamin Kosnik  <bkoz@redhat.com>
1410         * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
1411         * testsuite/23_containers/set/operators/1_neg.cc: Same.
1413 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
1415         * include/bits/cpp_type_traits.h: Changed __is_pod
1416         completely. Now, it does not use any of the previous type_traits
1417         to detect the pod types, and it also detects function pointers as
1418         POD types.
1420         * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
1421         which encapsulates the internal implementation of an rb_tree. Made
1422         the allocator a base class of this class instead of the rb_tree,
1423         which was not conforming. This _Rb_tree_impl class is also
1424         specialized on whether the _Compare parameter is a POD type or
1425         not. If so, then it maintains the comparison function as a data
1426         member, otherwise it makes the _Compare parameter a base class of
1427         itself. Also, _M_key_compare is now a function instead of a data
1428         member, so that the above trick can work properly. Delegated the
1429         initialization of the other data members to this newly created
1430         class. Also, now other member functions of rb_tree must refer to
1431         _M_key_compare as _M_impl._M_key_compare(). The other data members
1432         (*) can be referenced to as _M_impl.(*), where
1433         (*) includes _M_header, and _M_node_count.
1435 2004-03-25  Paolo Carlini  <pcarlini@suse.de>
1437         * include/ext/mt_allocator.h (__mt_alloc<>::tune):
1438         Add _M_min_bin, the size in bytes of the smallest bin.
1439         (__mt_alloc<>::tune()): Tweak accordingly.
1440         (__mt_alloc<>::tune(size_t, ...)): Likewise.
1441         (__mt_alloc<>::block_record): Change to a union: members next
1442         and thread_id are never used at the same time.
1443         (__mt_alloc<>::allocate): Update consistently.
1444         (__mt_alloc<>::deallocate): Likewise.
1445         (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
1446         _S_bin_size for the configurable _M_min_size.
1448 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
1450         * include/bits/stl_list.h: Created a _List_impl class and made it
1451         derive from the allocator, instead of the list deriving from the
1452         allocator class, which was not conformant. Changed all references
1453         from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
1454         as above (changed all references to the concerned variables).
1456 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
1458         * include/bits/stl_deque.h: Created a _Deque_impl class and made
1459         it derive from the allocator, instead of the deque deriving from
1460         the allocator class, which was not conformant. Changed all
1461         references to the _M_start, _M_finish, _M_map, and _M_map_size to
1462         _M_impl.*.
1463         (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
1464         qualification in 2 places where it was missing.
1465         (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
1466         above.
1467         * include/bits/deque.tcc: Same as above (changed all references to
1468         the concerned variables).
1470 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
1472         * include/bits/stl_vector.h: Created a _Vector_impl class and made
1473         it derive from the allocator, instead of the _Vector_base class,
1474         deriving from the allocator which was not conformant. Changed all
1475         references to the _M_start, _M_finish, and _M_end_of_storage to
1476         _M_impl.*.
1477         * include/bits/vector.tcc: Same as above (changed all references
1478         to the concerned variables).
1480 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
1482         * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
1483         * testsuite/23_containers/list/cons/clear_allocator.cc: New.
1484         * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
1486 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
1488         * include/ext/malloc_allocator.h: Fixed the construct function to
1489         call global placement new instead of assignment. Added a check
1490         after the return from malloc to check whether returned pointer is
1491         NULL, and if so, throw std::bad_alloc().
1492         * include/ext/debug_allocator.h: Added a check in the deallocate
1493         function to check whether the user has passed a NULL pointer or
1494         not.
1496 2004-03-24  Benjamin Kosnik  <bkoz@redhat.com>
1498         * docs/html/20_util/allocator.html: Add bitmap_allocator links.
1500 2004-03-24  Andreas Schwab  <schwab@suse.de>
1502         * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
1503         warning from IA64 assembler.
1505 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
1507         * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
1508         function call __builtin_ctz instead of the while loop.
1509         (allocate) -> If condition has __builtin_expect.
1510         (deallocate) -> Ditto.
1511         Renamed a few left-over variables and typedefs according to the
1512         C++STYLE mentioned in the documentation.
1513         Protected calls to __gthread* by __gthread_active_p(), whose value
1514         is cached in the local variable __threads_active.
1516 2004-03-24  Felix Yen  <fwy@alumni.brown.edu>
1518         * testsuite/performance/20_util/allocator/producer_consumer.cc:
1519         Use linear algorithm for producer.
1521 2004-03-24  Paolo Carlini  <pcarlini@suse.de>
1523         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1524         __mt_alloc<>::deallocate): Avoid redundant conditionals.
1526 2004-03-23  Benjamin Kosnik  <bkoz@redhat.com>
1528         * include/bits/locale_facets.h: Tweaks for 80 column.
1529         (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
1530         (__moneypunct_cache::_M_cache): Same.
1531         (num_get): Don't inherit from __num_base.
1532         (num_put): Same.
1533         (money_get): Don't inherit from money_base.
1534         (money_put): Same.
1535         (__timepunct::_M_am_pm_format): New.
1536         (time_get::_M_extract_num): Return iterator, use ios_base as argument.
1537         (time_get::_M_extract_name): Same.
1538         (time_get::_M_extract_via_format): Same.
1539         * include/bits/locale_facets.tcc: Tweaks for 80 column.
1540         Use _M_getloc instead of getloc.
1541         * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
1542         * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
1543         * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
1545 2004-03-22  Paolo Carlini  <pcarlini@suse.de>
1547         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
1548         * configure: Regenerate.
1549         * config/allocator/pool_allocator_base.h: New.
1550         * include/ext/pool_allocator.h: Convert to a standard-conforming
1551         allocator.
1552         * src/allocator.cc: Tweak instantiations.
1553         * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
1554         * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
1555         * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
1556         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1557         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1558         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1560 2004-03-22  Hans-Peter Nilsson  <hp@axis.com>
1562         * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
1563         inline" and attribute-unused.  Qualify parameter __mem with
1564         "volatile".
1565         (__exchange_and_add): Ditto.  Add back memory clobber to asm.
1567 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
1569         * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
1570         Remove junk.
1571         * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
1572         Likewise.
1573         * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
1574         Likewise.
1575         * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
1576         Likewise.
1577         * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
1578         Likewise.
1579         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
1580         Likewise.
1581         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
1582         Likewise.
1583         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
1584         Likewise.
1585         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
1586         Likewise.
1587         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
1588         Likewise.
1590 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
1592         * include/std/std_valarray.h: Document DR389 [Ready].
1593         * docs/html/ext/howto.html: Add an entry for DR389.
1595 2004-03-19  Michael Eager  <eager@mvista.com>
1597         * config/cpu/mips/atomicity.h:  Prevent reg loads between LL and
1598         SC instructions.
1600 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
1602         * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
1603         static_cast-s.
1604         * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
1605         * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
1606         * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
1607         * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
1608         * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
1609         * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
1610         * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
1611         * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
1612         * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
1614 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
1615             Petur Runolfsson  <peturr02@ru.is>
1617         PR libstdc++/12077
1618         * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
1619         no way to find out the conversion used by the underlying FILE*.
1620         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
1621         * testsuite/27_io/objects/char/9.cc: Tweak.
1623 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
1625         PR libstdc++/14648
1626         * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
1627         memory allocation/deallocation calls.
1628         * testsuite/ext/14648.cc: New.
1630 2004-03-19  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
1632         PR libstdc++/14647
1633         * include/backward/bvector.h (bit_vector): Allocator is in std
1634         namespace.
1636 2004-03-19  Phil Edwards  <phil@codesourcery.com>
1638         * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT):  Set LIBICONV,
1639         not libiconv.  SUBST this variable as well.
1640         * testsuite/Makefile.am (site.exp):  New target, based on that
1641         created by automake.  Also set libiconv.
1643         * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
1644         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1645         testsuite/Makefile.in:  Regenerate.
1647 2004-03-16  Benjamin Kosnik  <bkoz@redhat.com>
1649         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
1650         new_allocator for all hosts.
1651         * configure: Regenerate.
1653 2004-03-16  Paolo Carlini  <pcarlini@suse.de>
1655         * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
1656         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
1658 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
1660         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1661         Adjust the logic underlying the parsing of symbol to deal
1662         correctly with an optional sign component (i.e., when either
1663         negative_sign or positive_sign is empty)
1664         * testsuite/22_locale/money_get/get/char/19.cc: New.
1665         * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
1667 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
1669         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1670         Do not accept an incomplete currency symbol.
1671         * testsuite/22_locale/money_get/get/char/18.cc: New.
1672         * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
1674 2004-03-13  Benjamin Kosnik  <bkoz@redhat.com>
1676         * config/allocator: New.
1677         * config/allocator/bitmap_allocator_base.h: New.
1678         * config/allocator/malloc_allocator_base.h: New.
1679         * config/allocator/mt_allocator_base.h: New.
1680         * config/allocator/new_allocator_base.h: New.
1681         * include/bits/allocator.h: Include c++allocator.h.
1682         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
1683         * aclocal.m4: Regenerate.
1684         * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
1685         * configure: Regenerate.
1686         * include/Makefile.am (host_headers_extra): Add c++allocator.h.
1687         * include/Makefile.in: Regenerate.
1688         * docs/html/configopts.html: Add enable-libstdcxx-allocator.
1690 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
1692         * include/bits/allocator.h: Revert.
1694 2004-03-12  Paolo Carlini  <pcarlini@suse.de>
1696         * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
1697         * include/bits/gslice_array.h: Add comment about DR 253.
1698         * include/bits/indirect_array.h: Likewise.
1699         * include/bits/mask_array.h: Likewise.
1700         * include/bits/slice_array.h: Likewise.
1702 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
1704         * testsuite/20_util/allocator/14176.cc: New.
1705         * include/ext/mt_allocator.h: Formatting fixes.
1707 2004-03-11  Dhruv Matani  <dhruvbird@HotPOP.com>
1709         * include/Makefile.am (ext_headers): Add
1710         ${ext_srcdir}/bitmap_allocator.h .
1711         * include/Makefile.in: Regenerate.
1712         * docs/html/ext/ballocator_doc.txt: New file.
1713         * include/ext/bitmap_allocator.h: New file.
1714         * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
1715         test.
1716         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1717         * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
1718         test for the bitmap_allocator<>.
1719         * testsuite/performance/20_util/allocator/insert.cc: Likewise.
1720         * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1721         * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1723 2004-03-11  Paolo Carlini  <pcarlini@suse.de>
1725         * include/std/std_complex.h (pow(const complex&, const _Tp&),
1726         pow(const _Tp&, const complex&), pow(const complex&,
1727         const complex&)): Fully qualify with std:: a few calls.
1728         * testsuite/26_numerics/complex/13450.cc: Minor tweak.
1730 2004-03-11  Steven Bosscher  <stevenb@suse.de>
1732         PR libstdc++/11706
1733         * include/c_std/cmath.tcc (__cmath_power): Define inline.
1735 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
1737         * configure.ac: Bump AC_PREREQ to 2.59.
1739 2004-03-10  Paolo Carlini  <pcarlini@suse.de>
1741         * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
1743 2004-03-10  Paul Kienzle  <pkienzle@nist.gov>
1744             Paolo Carlini  <pcarlini@suse.de>
1746         PR libstdc++/13450
1747         * include/std/std_complex.h (pow(const complex&, const _Tp&),
1748         pow(const _Tp&, const complex&)): Use cmath pow only when safe.
1749         * testsuite/26_numerics/complex/13450.cc: New.
1751         * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
1752         * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
1754 2004-03-10  Jerry Quinn  <jlquinn@optonline.net>
1756         PR libstdc++/3247
1757         * include/bits/gslice_array.h (gslice_array()): Make public.
1758         (operator=(gslice_array)): Make public.  Implement.
1759         * include/bits/indirect_array.h (indirect_array()): Make public.
1760         * include/bits/mask_array.h (mask_array()): Make public.
1761         (operator=(mask_array)): Make public.  Implement.
1762         * include/bits/valarray_array.tcc (__valarray_copy):
1763         Comment.  Add versions for gslice_array and mask_array.
1764         * testsuite/26_numerics/valarray_subset_assignment.cc:  New test.
1766 2004-03-09  Benjamin Kosnik  <bkoz@redhat.com>
1768         * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
1769         non-weak systems.
1770         * testsuite/23_containers/vector/modifiers/swap.cc: Same.
1771         * testsuite/23_containers/set/modifiers/swap.cc: Same.
1772         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1773         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1774         * testsuite/23_containers/map/modifiers/swap.cc: Same.
1775         * testsuite/23_containers/list/modifiers/swap.cc: Same.
1777         * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
1779 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
1781         PR c++/13658
1782         * testsuite/23_containers/deque/modifiers/swap.cc: New.
1783         * testsuite/23_containers/list/modifiers/swap.cc: New.
1784         * testsuite/23_containers/map/modifiers/swap.cc: New.
1785         * testsuite/23_containers/multimap/modifiers/swap.cc: New.
1786         * testsuite/23_containers/multiset/modifiers/swap.cc: New.
1787         * testsuite/23_containers/set/modifiers/swap.cc: New.
1788         * testsuite/23_containers/vector/modifiers/swap.cc: New.
1790 2004-03-08  Petur Runolfsson  <peturr02@ru.is>
1792         PR libstdc++/12658
1793         * testsuite/22_locale/locale/cons/12658_thread.cc: New.
1795 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
1797         * docs/html/ext/howto.html: Add entry for DR 103 [WP].
1798         * include/bits/stl_multiset.h: Add comment about DR 103.
1799         * include/bits/stl_set.h: Likewise.
1801 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
1803         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1804         The value _space_ indicates that at least one space is required
1805         at that position.
1806         * testsuite/22_locale/money_get/get/char/17.cc: New.
1807         * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
1809         * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
1810         * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
1812         * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
1813         Remove redundant conditional on __str.size().
1815 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
1817         * include/bits/allocator.h: Switch defaults to mt_alloc.
1819 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
1821         * include/ext/mt_allocator.h (_S_initialize): If
1822         !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
1824 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
1826         PR libstdc++/12658
1827         * src/locale_init.cc (locale::locale): Lock critical regions with
1828         external mutexes.
1829         (locale::global): Same.
1830         * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
1831         Add in once bits for cases without __GTHREAD_MUTEX_INIT.
1832         (__glibcxx_mutex_lock): Same.
1834         * config/cpu/generic/atomicity.h: Remove
1835         _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
1836         * src/misc-inst.cc: Move all locking bits out of this file.
1838         * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
1839         * src/misc-inst.cc: Same.
1840         * config/cpu/hppa/atomicity.h: Same.
1842         * config/linker-map.gnu: Remove types in the signature of atomic
1843         exports, as they may vary.
1845 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
1847         * include/bits/locale_facets.tcc: Tweak the comment preceding
1848         has_facet: doesn't throw.
1850 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
1852         * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
1853         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
1854         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
1855         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
1856         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
1857         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
1858         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
1859         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
1861 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
1863         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1864         num_get<>::_M_extract_int, num_get<>::do_get(bool&),
1865         __pad<>::_S_pad): Prefer plain operator== to traits::eq().
1866         * testsuite/testsuite_character.h (struct __gnu_test::character):
1867         Provide operator==.
1868         * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
1869         Likewise.
1871 2004-03-05  Paolo Carlini  <pcarlini@suse.de>
1873         * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
1875 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
1877         * testsuite/23_containers/multiset/insert/1.cc: Test result string.
1879         * testsuite/23_containers/bitset/invalidation/1.cc: Main always
1880         returns 0.
1881         * testsuite/23_containers/deque/invalidation/4.cc: Same.
1882         * testsuite/23_containers/list/invalidation/1.cc: Same.
1883         * testsuite/23_containers/list/invalidation/2.cc: Same.
1884         * testsuite/23_containers/list/invalidation/3.cc: Same.
1885         * testsuite/23_containers/list/invalidation/4.cc: Same.
1886         * testsuite/23_containers/map/invalidation/2.cc: Same.
1887         * testsuite/23_containers/multimap/invalidation/1.cc: Same.
1888         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1889         * testsuite/23_containers/multiset/invalidation/1.cc: Same.
1890         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1891         * testsuite/23_containers/set/invalidation/1.cc: Same.
1892         * testsuite/23_containers/set/invalidation/2.cc: Same.
1893         * testsuite/23_containers/vector/invalidation/1.cc: Same.
1894         * testsuite/23_containers/vector/invalidation/2.cc: Same.
1895         * testsuite/23_containers/vector/invalidation/3.cc: Same.
1896         * testsuite/23_containers/vector/invalidation/4.cc: Same.
1898 2004-03-04  Paolo Carlini  <pcarlini@suse.de>
1900         * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
1901         CXXFLAGS_save.
1902         * testsuite/lib/libstdc++.exp: Don't add it conditionally to
1903         DEFAULT_CXXFLAGS.
1904         * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
1905         from the dg-options.
1906         * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
1907         * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
1908         * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
1909         * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
1910         * testsuite/23_containers/vector/resize/1.cc: Likewise.
1911         * testsuite/26_numerics/complex_value.cc: Likewise.
1912         * testsuite/27_io/ios_base/storage/1.cc: Likewise.
1913         * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1914         * testsuite/27_io/ios_base/storage/3.cc: Likewise.
1915         * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1916         * testsuite/27_io/objects/char/5.cc: Likewise.
1917         * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
1918         * testsuite/backward/11460.cc: Likewise.
1919         * testsuite/thread/pthread7-rope.cc: Likewise.
1921         * testsuite/21_strings/basic_string/compare/char/1.cc: Add
1922         missing test variable.
1923         * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
1924         missing test variable.
1926 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
1928         * testsuite/20_util/allocator/1.cc: Provide explicit
1929         instantiations for non-weak systems.
1930         * testsuite/20_util/binders.cc: Same.
1931         * testsuite/20_util/allocator/8230.cc: Same.
1932         * testsuite/20_util/allocator/10378.cc: Same.
1933         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
1934         * testsuite/22_locale/ctype/is/char/2.cc: Same.
1935         * testsuite/thread/pthread7-rope.cc: Same.
1936         * testsuite/thread/pthread6.cc: Same.
1937         * testsuite/thread/pthread5.cc: Same.
1938         * testsuite/thread/pthread4.cc: Same.
1939         * testsuite/thread/pthread1.cc: Same.
1940         * testsuite/ext/rope.cc: Same.
1941         * testsuite/ext/hash_set.cc: Same.
1942         * testsuite/ext/hash_map.cc: Same.
1943         * testsuite/ext/concept_checks.cc: Same.
1944         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
1945         * testsuite/25_algorithms/unique/2.cc: Same.
1946         * testsuite/25_algorithms/unique/1.cc: Same.
1947         * testsuite/25_algorithms/rotate.cc: Same.
1948         * testsuite/25_algorithms/min_max.cc: Same.
1949         * testsuite/25_algorithms/equal.cc: Same.
1950         * testsuite/24_iterators/rel_ops.cc: Same.
1951         * testsuite/24_iterators/iterator.cc: Same.
1952         * testsuite/24_iterators/insert_iterator.cc: Same.
1953         * testsuite/24_iterators/front_insert_iterator.cc: Same.
1954         * testsuite/24_iterators/back_insert_iterator.cc: Same.
1955         * testsuite/23_containers/vector/resize/1.cc: Same.
1956         * testsuite/23_containers/vector/modifiers/2.cc: Same.
1957         * testsuite/23_containers/vector/modifiers/1.cc: Same.
1958         * testsuite/23_containers/vector/invalidation/4.cc: Same.
1959         * testsuite/23_containers/vector/invalidation/3.cc: Same.
1960         * testsuite/23_containers/vector/invalidation/2.cc: Same.
1961         * testsuite/23_containers/vector/invalidation/1.cc: Same.
1962         * testsuite/23_containers/vector/element_access/1.cc: Same.
1963         * testsuite/23_containers/vector/cons/6513.cc: Same.
1964         * testsuite/23_containers/vector/cons/3.cc: Same.
1965         * testsuite/23_containers/vector/cons/2.cc: Same.
1966         * testsuite/23_containers/vector/cons/1.cc: Same.
1967         * testsuite/23_containers/vector/capacity/8230.cc: Same.
1968         * testsuite/23_containers/vector/capacity/1.cc: Same.
1969         * testsuite/23_containers/vector/bool/6886.cc: Same.
1970         * testsuite/23_containers/stack/members/7158.cc: Same.
1971         * testsuite/23_containers/set/invalidation/2.cc: Same.
1972         * testsuite/23_containers/set/invalidation/1.cc: Same.
1973         * testsuite/23_containers/queue/members/7157.cc: Same.
1974         * testsuite/23_containers/priority_queue/members/7161.cc: Same.
1975         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1976         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1977         * testsuite/23_containers/multiset/insert/1.cc: Same.
1978         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1979         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1980         * testsuite/23_containers/map/operators/1.cc: Same.
1981         * testsuite/23_containers/map/invalidation/2.cc: Same.
1982         * testsuite/23_containers/map/invalidation/1.cc: Same.
1983         * testsuite/23_containers/map/insert/1.cc: Same.
1984         * testsuite/23_containers/list/operators/4.cc: Same.
1985         * testsuite/23_containers/list/operators/3.cc: Same.
1986         * testsuite/23_containers/list/operators/2.cc: Same.
1987         * testsuite/23_containers/list/operators/1.cc: Same.
1988         * testsuite/23_containers/list/modifiers/3.cc: Same.
1989         * testsuite/23_containers/list/modifiers/2.cc: Same.
1990         * testsuite/23_containers/list/modifiers/1.cc: Same.
1991         * testsuite/23_containers/list/invalidation/4.cc: Same.
1992         * testsuite/23_containers/list/invalidation/3.cc: Same.
1993         * testsuite/23_containers/list/invalidation/2.cc: Same.
1994         * testsuite/23_containers/list/invalidation/1.cc: Same.
1995         * testsuite/23_containers/list/cons/9.cc: Same.
1996         * testsuite/23_containers/list/cons/8.cc: Same.
1997         * testsuite/23_containers/list/cons/7.cc: Same.
1998         * testsuite/23_containers/list/cons/6.cc: Same.
1999         * testsuite/23_containers/list/cons/5.cc: Same.
2000         * testsuite/23_containers/list/cons/4.cc: Same.
2001         * testsuite/23_containers/list/cons/3.cc: Same.
2002         * testsuite/23_containers/list/cons/2.cc: Same.
2003         * testsuite/23_containers/list/cons/1.cc: Same.
2004         * testsuite/23_containers/list/capacity/1.cc: Same.
2005         * testsuite/23_containers/deque/operators/1.cc: Same.
2006         * testsuite/23_containers/deque/invalidation/4.cc: Same.
2007         * testsuite/23_containers/deque/invalidation/3.cc: Same.
2008         * testsuite/23_containers/deque/invalidation/2.cc: Same.
2009         * testsuite/23_containers/deque/invalidation/1.cc: Same.
2010         * testsuite/23_containers/deque/cons/2.cc: Same.
2011         * testsuite/23_containers/deque/cons/1.cc: Same.
2013         * src/allocator.cc: Add char, wchar_t instantiations
2014         to match extern template declarations in memory.h.
2016 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
2018         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2019         Fix warning regression.
2021 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
2023         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2024         Deal properly with empty __digits and negative frac_digits,
2025         clean-up a bit.
2027 2004-03-03  Jonathan Wakely  <redi@gcc.gnu.org>
2029         * docs/html/documentation.html: Regenerate.
2031 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
2033         PR libstdc++/14320
2034         * include/bits/postypes.h (class streamoff): Remove, now
2035         streamoff is just typedef a 64 bit signed integer type.
2036         (class fpos): Tweak consistently.
2037         * testsuite/27_io/fpos/14320-1.cc: New.
2038         * testsuite/27_io/fpos/14320-2.cc: New.
2039         * testsuite/27_io/fpos/14320-3.cc: New.
2040         * testsuite/27_io/fpos/14320-4.cc: New.
2041         * testsuite/27_io/fpos/14320-5.cc: New.
2042         * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
2044 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
2046         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2047         Reorganize a bit the main parsing loop, thus early detecting
2048         an empty value component.
2049         * testsuite/22_locale/money_get/get/char/16.cc: New.
2050         * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
2052 2004-03-02  Benjamin Kosnik  <bkoz@redhat.com>
2054         Support automake 1.8.2
2055         * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
2056         * po/Makefile.am (EXTRA_DIST): New.
2057         * po/Makefile.in: Regenerate.
2058         * Makefile.in: Same.
2059         * include/Makefile.in: Same.
2060         * libmath/Makefile.in: Same.
2061         * libsupc++/Makefile.in: Same.
2062         * src/Makefile.in: Same.
2063         * testsuite/Makefile.in: Same.
2065         * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
2066         __GXX_WEAK__ instead of SUPPORTS_WEAK.
2067         (${host_builddir}/gthr-default.h): Same.
2068         (${host_builddir}/gthr.h): Same.
2069         * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
2070         _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
2071         -fno-weak.
2072         * aclocal.m4: Regenerate.
2073         * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
2074         * config.h.in: Regenerate.
2075         * configure: Same.
2077 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
2079         Support autoconf 2.59
2080         * acinclude.m4: Quote correctly.
2081         * aclocal.m4: Regenerate.
2082         * linkage.m4: Same.
2084 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
2086         * docs/html/test.html: Add multilib RUNTESTFLAGS example.
2088         * docs/html/18_support/howto.html: Add bit about writing to
2089         stderr, mostly by Zack.
2091 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
2093         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2094         money_get<>::do_get(string_type&)): ... and two more.
2096 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
2098         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2099         Fix thinkos in the switch from string_type& to string& as last
2100         argument.
2102 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
2104         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2105         Also when parsing exponent sign, first look for thousands_sep
2106         and decimal_point; tweak a bit.
2107         * testsuite/22_locale/num_get/get/char/15.cc: New.
2108         * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
2110         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2111         num_get<>::_M_extract_int): Reorder some conditionals.
2113 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
2115         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2116         Consistently with numpunct, enforce the requirements in
2117         22.2.6.3, p3 for the thousands separators; tweak a bit.
2118         * testsuite/22_locale/money_get/get/char/15.cc: New.
2119         * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
2121 2004-03-01  David Billinghurst <David.Billinghurst@riotinto.com>
2123         * testsuite/lib/libstdc++.exp (v3-list-tests): Use
2124         testsuite_files from correct multilib blddir when running
2125         testsuite.
2127 2004-02-29  Phil Edwards  <phil@codesourcery.com>
2129         * testsuite/Makefile.am (check-abi, check-abi-verbose):  Copy
2130         the summary file to the logfile.
2131         * testsuite/Makefile.in:  Regenerate.
2133 2004-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2135         * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
2136         volatile.
2137         * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
2138         __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
2140 2004-02-28  Paolo Carlini  <pcarlini@suse.de>
2142         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2143         According to 22.2.3.1, p2, 'units' may be followed by 'e' with
2144         no 'decimal-point' in the middle: in this case too we must fix
2145         up __found_grouping; slightly tweak.
2146         * testsuite/22_locale/num_get/get/char/14.cc: New.
2147         * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
2149 2004-02-27  Eric Christopher  <echristo@redhat.com>
2150             Phil Edwards  <phil@codesourcery.com>
2152         * testsuite/22_locale/collate/compare/wchar_t/2.cc,
2153         testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
2154         testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
2155         testsuite/22_locale/collate/hash/wchar_t/2.cc,
2156         testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
2157         testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
2158         testsuite/22_locale/collate/transform/wchar_t/2.cc,
2159         testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
2160         testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2161         Use dg-require-iconv.
2162         * testsuite/lib/libstdc++.exp:  Load target-supports.exp.
2164 2004-02-27  Phil Edwards  <phil@codesourcery.com>
2165             Eric Christopher  <echristo@redhat.com>
2167         * testsuite/config/default.exp:  Update with comments.
2168         (${tool}_target_compile):  New wrapper routine.
2169         * testsuite/lib/dg-options.exp:  New file, with dg-require-iconv.
2170         * testsuite/lib/libstdc++.exp:  Update with comments and cosmetic
2171         fixes.
2172         (load_gcc_lib, v3track):  New routines.
2173         (v3-init):  Rename to libstdc++_init.
2174         * testsuite/libstdc++-dg/normal.exp:  No longer call v3-init.
2175         Move DEFAULT_CXXFLAGS handling into libstdc++_init.
2177 2004-02-27  Benjamin Kosnik  <bkoz@redhat.com>
2179         * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
2181         * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
2183         * config/os/irix/irix5.2/atomicity.h: Merge..
2184         * config/os/irix/irix6.5/atomicity.h: Merge..
2185         * config/os/irix/atomicity.h: ...into this.
2186         * config/os/irix/atomic_word.h: New.
2187         * configure.host: Set atomic_word_dir for irix.
2189         * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
2190         * i386/atomicity.h: Same.
2191         * m68k/atomicity.h: Same.
2192         * sparc/atomicity.h: Same.
2194 2004-02-27  David Edelsohn  <edelsohn@gnu.org>
2196         * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
2197         static, and inline keywords.
2199 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
2201         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2202         num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
2203         call reserve on the __tmp_gruping string.
2204         (num_get<>::_M_extract_float): Don't append unnecessarily a
2205         char() to the returned string.
2206         * include/bits/locale_facets.tcc: Trivial reformattings.
2208 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
2210         * include/bits/locale_facets.h (money_get<>::_M_extract):
2211         Change signature: now takes a plain string&.
2212         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2213         Update consistently the definition; use the moneypunct cache
2214         to parse the value; use swap to change __units.
2215         (money_get<>::do_get(long double&)): Update call of _M_extract,
2216         avoid ctype::narrow, not correct wrt the standard.
2217         (money_get<>::do_get(string_type&)): Likewise, update call
2218         of _M_extract, use ctype::widen.
2219         * src/locale-inst.cc: Tweak instantiations of _M_extract.
2221 2004-02-26  Ian Lance Taylor  <ian@wasabisystems.com>
2223         * testsuite/demangle/abi_examples/01.cc: Expect error -2.
2224         * testsuite/demangle/abi_examples/02.cc: Likewise.
2225         * testsuite/demangle/regression/cw-11.cc: Likewise.
2226         * testsuite/demangle/regression/cw-16.cc: Change two expected
2227         results to match libiberty demangler output.
2229 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
2231         PR libstdc++/10246
2232         * libsupc++/Makefile.am: Use libiberty demangler.
2233         (c_sources): Add cp-demangle.c.
2234         * libsupc++/Makefile.in: Regenerate.
2235         * src/Makefile.am (sources): Remove demangle.cc.
2236         * src/Makefile.in: Regenerate.
2237         * include/Makefile.am (bits_headers): Move demangle.h.
2238         (ext_headers): ...here.
2239         * include/Makefile.in: Regenerate.
2240         * include/bits/demangle.h: Move...
2241         * include/ext/demangle.h: ...here.
2242         * src/demangle.cc: Remove.
2244 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
2246         * include/bits/demangle.h: Add type template parameter to all
2247         templates with just an Allocator template parameter.
2249 2004-02-25  Benjamin Kosnik  <bkoz@redhat.com>
2251         * include/bits/atomicity.h: New, forward declarations for __atomic_add
2252         and __exchange_and_add.
2253         * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
2254         * config/cpu/cris/atomic_word.h: Same.
2255         * config/cpu/sparc/atomic_word.h: Same.
2256         * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
2257         Qualifiy with __gnu_cxx.
2258         (_Callback_list::_M_add_reference): Same.
2259         * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
2260         (locale::facet::_M_remove_reference): Same.
2261         (locale::_Impl::_M_add_reference): Add.
2262         (locale::_Impl::_M_remove_reference): Same.
2263         * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
2264         (basic_string::_Rep::_M_dispose): Same.
2265         * src/ios.cc (ios_base::xalloc): Same.
2266         * src/ios_init.cc (ios_base::Init::Init): Same.
2267         (ios_base::Init::~Init): Same.
2268         * src/locale.cc (locale::id::_M_id): Same.
2269         * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
2270         static, and inline keywords.
2271         * config/cpu/alpha/atomicity.h: Same.
2272         * config/cpu/cris/atomicity.h: Same.
2273         * config/cpu/generic/atomicity.h: Same.
2274         * config/cpu/hppa/atomicity.h: Same.
2275         * config/cpu/i386/atomicity.h: Same.
2276         * config/cpu/ia64/atomicity.h: Same.
2277         * config/cpu/m68k/atomicity.h: Same.
2278         * config/cpu/mips/atomicity.h: Same.
2279         * config/cpu/powerpc/atomicity.h: Same.
2280         * config/cpu/s390/atomicity.h: Same.
2281         * config/cpu/sparc/atomicity.h: Same.
2283         * src/Makefile.am (host_sources): Add atomicity.cc.
2284         (atomicity.cc): New rule.
2285         * src/Makefile.in: Regenerate.
2286         * include/Makefile.am (host_headers): Remove host atomicity.h.
2287         (host_headers): Add atomic_word.h.
2288         (bits_headers): Add bits atomicity.h.
2289         Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2290         * include/Makefile.in: Regenerate.
2291         * configure.host (atomic_word_dir): Add.
2292         * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
2293         ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2294         * configure: Regenerate.
2295         * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
2297         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
2298         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2300 2004-02-25  Jonathan Wakely  <redi@gcc.gnu.org>
2302         * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
2303         docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
2304         Fix markup, more <link> tags.
2306 2004-02-25  Carlo Wood  <carlo@alinoe.com>
2308         * bits/demangle.h
2309         namespace __gnu_cxx::demangler
2310         (session<Allocator>::qualifier_list_Allocator): Add
2311         (session<Allocator>::M_qualifier_list_alloc): Add
2312         (session<Allocator>::decode_type_with_postfix):
2313         Use M_qualifier_list_alloc instead of calling operator new/delete.
2315 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
2317         PR libstdc++/14252
2318         * include/bits/postypes.h (class streamoff): Add operator++(),
2319         operator++(int), operator--() and operator--(int).
2320         * testsuite/27_io/fpos/14252.cc: New.
2322 2004-02-24  Richard Sandiford  <rsandifo@redhat.com>
2324         * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
2325         error in handling of hex constants.
2327 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
2329         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2330         Prefer basic_string::append to operator+= and a temporary.
2332 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
2334         * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
2335         Only use fputs, not write.
2337 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
2339         * include/ext/malloc_allocator.h: Add operators ==, !=.
2340         * include/ext/new_allocator.h: Add operators ==, !=.
2341         * include/ext/mt_allocator.h (__mt_alloc::tune): New.
2342         (__mt_alloc::_S_get_options): New.
2343         (__mt_alloc::_S_set_options): New.
2344         (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
2345         (__mt_alloc::_S_no_of_bins): To _S_bin_size.
2346         Move functions out of line, simplify, format.
2347         * src/allocator.cc: Simplify explicit instantiations.
2348         * include/bits/allocator.h: Tweak.
2350 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
2352         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2353         Restructure formatting of value component, first dealing with
2354         the non-decimal digits; use reserve.
2356 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
2358         * include/bits/locale_facets.h (class money_get): Inherit
2359         from money_base too; tweak declaration of _M_extract, now
2360         parameterized on _Intl too.
2361         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2362         Update definition to use the cache; call reserve on __res to
2363         avoid multiple reallocations; fix parsing of sign component
2364         according to 22.2.6.1.2, p3.
2365         (money_get<>::do_get(long double&),
2366         money_get<>::do_get(string_type&)): Update calls of _M_extract.
2367         * src/locale-inst.cc:  Add instantiations of
2368         money_get::_M_extract<false> and money_get::_M_extract<true>.
2369         * testsuite/22_locale/money_get/get/char/14.cc: New.
2370         * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
2372 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
2374         * libsupc++/vterminate.cc
2375         (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
2376         calls to terminate.
2377         * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
2379         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2380         not set RLIMIT_AS on HP-UX.
2382 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
2384         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2385         not set RLIMIT_AS on HP-UX.
2387 2004-02-21  Paolo Carlini  <pcarlini@suse.de>
2389         * include/bits/locale_facets.h (class money_base): Add { _S_minus,
2390         _S_zero, _S_end } enum, _S_atoms.
2391         (struct __moneypunct_cache<>): Parameterize on _Intl too; add
2392         _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
2393         _M_negative_sign_size, _M_atoms; tweak constructor consistently.
2394         (__moneypunct_cache<>::~__moneypunct_cache): Update.
2395         (__moneypunct_cache<>::_M_cache): Fill the cache.
2396         (class moneypunct): Tweak __cache_type typedef.
2397         (class money_put): Inherit from money_base too; tweak declaration
2398         of _M_insert, now parameterized on _Intl.
2399         * include/bits/locale_facets.tcc
2400         (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
2401         (money_put<>::_M_insert): Update definition to use the cache;
2402         call reserve on __res to avoid multiple reallocations.
2403         (money_put<>::do_put(long double),
2404         money_put<>::do_put(const string_type&): Update calls of _M_insert.
2405         * config/locale/generic/monetary_members.cc
2406         (moneypunct<char, true>::_M_initialize_moneypunct,
2407         moneypunct<char, false>::_M_initialize_moneypunct,
2408         moneypunct<wchar_t, true>::_M_initialize_moneypunct,
2409         moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
2410         * config/locale/gnu/monetary_members.cc: Likewise.
2411         * config/locale/gnu/monetary_members.cc
2412         (moneypunct<wchar_t, true>::~moneypunct(),
2413         moneypunct<wchar_t, false>::~moneypunct()): Likewise.
2414         * src/globals_locale.cc: Tweak fake_money_cache_c.
2415         * src/locale-inst.cc: Add instantiations for
2416         money_put::_M_insert<false> and money_put::_M_insert<true> and
2417         __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
2418         * src/locale_facets.cc: Define money_base::_S_atoms.
2419         * src/locale_init.cc: Update placement new of
2420         __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
2421         __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
2423         * config/locale/generic/numeric_members.cc: Clean up.
2424         * config/locale/gnu/numeric_members.cc: Likewise.
2425         * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
2426         * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
2427         * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
2428         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
2429         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
2430         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
2432 2004-02-20  Mark Mitchell  <mark@codesourcery.com>
2434         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
2435         FIFO for writing with ios_base::in|ios_base::out.
2436         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
2437         * testsuite/27_io/objects/char/7.cc: Likewise.
2438         * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
2439         with "r+".
2441 2004-02-19  David Edelsohn  <edelsohn@gnu.org>
2443         * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
2444         from iso-8859-1 to ISO8859-1.
2445         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
2446         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
2447         * 22_locale/collate/hash/wchar_t/2.cc: Same.
2448         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
2449         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
2450         * 22_locale/collate/transform/wchar_t/2.cc: Same.
2451         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
2452         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
2454 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
2456         * include/bits/locale_facets.h (money_get<>::_M_extract):
2457         New, helper for do_get.
2458         (money_put<>::_M_insert): Likewise, for do_put.
2459         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2460         money_put<>::_M_insert): Define.
2461         (money_get<>::do_get(long double&), money_get<>::do_get(
2462         string_type&), money_put::do_put(long double),
2463         money_put::do_put(const string_type&)): Use the helpers.
2465 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
2467         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2468         Rewrite, avoiding recursion.
2469         (__gnu_internal::xwrite): Minor tweaks.
2471 2004-02-17  Stefan Olsson  <stefan@xapa.se>
2473         * include/ext/mt_allocator.h: Removed the last
2474         pointer. Deallocated blocks are now added to the front of
2475         freelists as proposed by Felix Yen.  This gives roughly 10%
2476         performance boost and saves some memory.
2477         * docs/html/ext/mt_allocator.html: Change due to that deallocated
2478         blocks now are added to the front of freelists. The reason to this
2479         approach is also explained.
2481 2004-02-17  Paolo Carlini  <pcarlini@suse.de>
2483         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2484         num_get<>::_M_extract_int, money_get<>::do_get): Simplify
2485         grouping fidelity conditional.
2487 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
2489         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
2490         Qualify exception with std::.
2491         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
2492         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2493         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2494         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2495         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2497 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
2499         * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
2500         for now that the catch block is not reached.
2501         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
2503 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
2505         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2506         Fix parsing of the remaining sign characters.
2507         * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
2508         the input is scanned 'til eof.
2509         * 22_locale/money_get/get/char/4.cc: Likewise.
2510         * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
2511         * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
2512         * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
2513         not do_pos_format: the former is the only one that matters during
2514         input.
2515         * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
2517         * 22_locale/money_get/get/char/6.cc: Minor tweak.
2518         * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
2520 2004-02-15  David Asher  <david.asher@cavium.com>
2522         PR libstdc++/11352
2523         * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
2524         access __olds beyond __oldlen.
2526 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
2528         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
2529         sure the exception is actually thrown.
2530         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2531         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2532         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2534 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
2536         PR libstdc++/13858
2537         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
2538         In case of conversion errors, throw ios_failure; simplify.
2539         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
2540         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2541         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
2542         previously we didn't throw in case of conversion errors, instead
2543         just returned eof().
2544         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2545         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2546         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2548         * include/bits/fstream.tcc (basic_filebuf<>::overflow):
2549         Trivial simplification of a conditional.
2551 2004-02-12  Paolo Carlini  <pcarlini@suse.de>
2553         PR libstdc++/13731 (final part: writev)
2554         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2555         New, a wrapper around writev() handling partial writes.
2556         (__basic_file<char>::xwrite): Move to __gnu_internal and make
2557         static.
2558         (__basic_file<char>::xsputn): Update call.
2559         (__basic_file<char>::xsputn_2): Likewise.
2560         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2561         Don't declare, now static.
2563 2004-02-11  Stefan Olsson  <stefan@xapa.se>
2565         * docs/html/ext/mt_allocator.html: New.
2567 2004-02-11  Benjamin Kosnik  <bkoz@redhat.com>
2569         * docs/html/20_util/allocator.html: New file, consolidate
2570         allocator information here. Revamp.
2571         * docs/html/documentation.html: Change links.
2572         * docs/html/20_util/howto.html: Same.
2573         * docs/html/ext/howto.html: Same.
2575 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
2577         PR libstdc++/13731 (first part: write)
2578         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2579         New, declare.
2580         * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
2581         Define it: a wrapper around write() handling partial write.
2582         (__basic_file<char>::xsputn): Use it.
2583         (__basic_file<char>::xsputn_2): Likewise.
2585 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
2586             Petur Runolfsson  <peturr02@ru.is>
2588         PR libstdc++/14078
2589         * include/std/std_istream.h (operator>>(__istream_type& (*)
2590         (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
2591         operator>>(ios_base& (*)(ios_base&))): Declare inline.
2592         * include/std/std_ostream.h (operator<<(__ostream_type& (*)
2593         (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
2594         operator<<(ios_base& (*) (ios_base&))): Likewise.
2595         * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
2597 2004-02-10  Loren J. Rittle  <ljrittle@acm.org>
2599         PR libstdc++/14098
2600         * config/linker-map.gnu: Add typeinfo and typeinfo name for
2601         __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
2603         PR libstdc++/14097
2604         * config/linker-map.gnu: Add typeinfo and typeinfo name for
2605         __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
2607 2004-02-09  Loren J. Rittle  <ljrittle@acm.org>
2609         * include/ext/pool_allocator.h: Include c++config.h.
2611 2004-02-09  Stefan Olsson  <stefan@xapa.se>
2613         * include/ext/mt_allocator.h: thread_id is unused in non threaded
2614         applications and now has a ifdef to remove it completely on
2615         compilers without thread support. Include stdlib.h due to a
2616         compiler warning on getenv().
2618 2004-02-09  Paul Brook  <paul@codesourcery.com>
2620         * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
2622 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
2624         PR libstdc++/14071
2625         * src/locale_init.cc (locale::global(const locale&)): Use
2626         locale::name() in order to decide whether calling setlocale.
2627         * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
2629         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
2630         Avoid computing &= unnecessarily.
2632 2004-02-09  James E Wilson  <wilson@specifixinc.com>
2634         PR libstdc++/5625
2635         * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
2636         __builtin_extend_pointer.
2638 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
2640         PR libstdc++/14072
2641         * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
2642         Don't leave dangling pointers.
2643         * testsuite/27_io/basic_ios/imbue/14072.cc: New.
2644         * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
2645         facet is needed in the final test.
2647 2004-02-09  Bernardo Innocenti  <bernie@develer.com>
2649         * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
2650         * configure: Regenerate.
2652 2004-02-08  Richard Henderson  <rth@redhat.com>
2654         PR libstdc++/14026
2655         * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
2656         uncaughtExceptions during nested catch rethrow.
2657         * testsuite/18_support/14026.cc: New.
2659 2004-02-08  Paolo Carlini  <pcarlini@suse.de>
2661         * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
2662         When working in place remember to set the state to sharable
2663         (otherwise, _M_mutate does it).
2665 2004-02-08  Bernardo Innocenti  <bernie@develer.com>
2667         * include/bits/allocator.h, include/bits/basic_ios.h,
2668         include/bits/basic_ios.tcc, include/bits/basic_string.h,
2669         include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
2670         include/bits/char_traits.h, include/bits/codecvt.h,
2671         include/bits/concurrence.h, include/bits/cpp_type_traits.h,
2672         include/bits/demangle.h, include/bits/deque.tcc,
2673         include/bits/fstream.tcc, include/bits/functexcept.h,
2674         include/bits/gslice.h, include/bits/gslice_array.h,
2675         include/bits/indirect_array.h, include/bits/ios_base.h,
2676         include/bits/istream.tcc, include/bits/list.tcc,
2677         include/bits/locale_classes.h, include/bits/locale_facets.h,
2678         include/bits/locale_facets.tcc, include/bits/localefwd.h,
2679         include/bits/mask_array.h, include/bits/ostream.tcc,
2680         include/bits/postypes.h, include/bits/slice_array.h,
2681         include/bits/sstream.tcc, include/bits/stl_algo.h,
2682         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
2683         include/bits/stl_construct.h, include/bits/stl_deque.h,
2684         include/bits/stl_function.h, include/bits/stl_heap.h,
2685         include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
2686         include/bits/stl_list.h, include/bits/stl_map.h,
2687         include/bits/stl_multimap.h, include/bits/stl_multiset.h,
2688         include/bits/stl_numeric.h, include/bits/stl_pair.h,
2689         include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
2690         include/bits/stl_relops.h, include/bits/stl_set.h,
2691         include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
2692         include/bits/stl_threads.h, include/bits/stl_tree.h,
2693         include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
2694         include/bits/stream_iterator.h, include/bits/streambuf.tcc,
2695         include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
2696         include/bits/type_traits.h, include/bits/valarray_after.h,
2697         include/bits/valarray_array.h, include/bits/valarray_array.tcc,
2698         include/bits/valarray_before.h, include/bits/vector.tcc: Remove
2699         trailing whitespace.
2701 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
2703         * include/bits/basic_string.h: Fix comment.
2705 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
2707         * include/bits/stl_construct.h: Wrap overlong lines, reformat
2708         according to the coding standards.
2709         * include/bits/stl_pair.h: Likewise.
2710         * include/bits/stl_raw_storage_iter.h: Likewise.
2711         * include/bits/stl_stack.h: Likewise.
2712         * include/bits/stl_uninitialized.h: Likewise.
2713         * include/bits/stream_iterator.h: Likewise.
2714         * include/bits/streambuf_iterator.h: Likewise.
2715         * include/bits/type_traits.h: Likewise.
2717 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
2719         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2720         Adjust timings.
2722 2004-02-05  Loren J. Rittle  <ljrittle@acm.org>
2724         * scripts/check_performance: Support PCH.
2726         * scripts/check_performance (CXX): Add -DNOTHREAD.
2727         * testsuite/performance/20_util/allocator/insert.cc: Integrate
2728         threaded tests from insert_insert.cc.  Tweak iterations,
2729         remove special cases.
2730         * testsuite/performance/20_util/allocator/insert_insert.cc:
2731         Make all tests single-threaded. Tweak iterations.
2732         * testsuite/performance/20_util/allocator/map_thread.cc:
2733         Tweak iterations.
2734         * testsuite/performance/20_util/allocator/producer_consumer.cc:
2735         Likewise.
2737 2004-02-05  Geoffrey Keating  <geoffk@apple.com>
2739         PR 12179
2740         * .cvsignore: New.
2741         * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
2742         'gcc-lib'.  Add comment about poorly-named variables.
2743         * aclocal.m4: Regenerate.
2744         * configure: Regenerate.
2746 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
2748         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2749         Thousands-sep are always optional; thousands-sep are not allowed
2750         after the decimal_point.
2751         * testsuite/22_locale/money_get/get/char/12.cc: New.
2752         * testsuite/22_locale/money_get/get/char/13.cc: New.
2753         * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
2754         * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
2756         * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
2757         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2758         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2759         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2760         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2761         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2762         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2763         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2765         * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
2766         the standard.
2767         * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
2769 2004-02-05  Richard Sandiford  <rsandifo@redhat.com>
2771         * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
2772         Define.
2773         * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
2774         it to decide whether FIONREAD should take an off_t or int argument.
2776 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
2778         * include/bits/stl_function.h: Minor formatting changes.
2780 2004-02-04  Zack Weinberg  <zack@codesourcery.com>
2782         Revert previous change to config/abi/*/baseline_symbols.txt.
2784 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
2785             Zack Weinberg  <zack@codesourcery.com>
2787         * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
2788         New function.
2789         (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
2790         (__basic_file<char>::_M_open_mode): Delete.
2791         * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
2793         * testsuite/27_io/basic_filebuf/close/char/9964.cc
2794         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2795         Correct flags to filebuf::open calls.
2797         * config/abi/alpha-freebsd5/baseline_symbols.txt
2798         * config/abi/alpha-linux-gnu/baseline_symbols.txt
2799         * config/abi/hppa-linux-gnu/baseline_symbols.txt
2800         * config/abi/i386-freebsd4/baseline_symbols.txt
2801         * config/abi/i386-freebsd5/baseline_symbols.txt
2802         * config/abi/i486-linux-gnu/baseline_symbols.txt
2803         * config/abi/ia64-linux-gnu/baseline_symbols.txt
2804         * config/abi/mips-linux-gnu/baseline_symbols.txt
2805         * config/abi/sparc-freebsd5/baseline_symbols.txt
2806         * config/abi/sparc-linux-gnu/baseline_symbols.txt
2807         * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
2808         Remove entry for __basic_file<char>::_M_open_mode.
2810 2004-02-04  Loren J. Rittle  <ljrittle@acm.org>
2812         * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
2814 2004-02-04  Felix Yen  <fwy@alumni.brown.edu>
2816         * testsuite/performance/20_util/producer_consumer.cc: New.
2817         * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
2819 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
2821         * testsuite/performance/20_util/allocator.cc: Move to..
2822         * testsuite/performance/20_util/allocator/insert.cc: ...here.
2823         * testsuite/performance/20_util/allocator_thread.cc: Move to...
2824         * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
2825         * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
2826         * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
2828 2004-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
2830         * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
2831         * docs/html/faq/index.txt: Regenerate.
2833 2004-02-04  Dhruv Matani  <dhruvbird@gmx.net>
2835         * include/ext/debug_allocator.h: _M_extra now stands for the
2836         number of extra objects instead of the number of extra bytes.
2837         (debug_allocator::allocate): Adjust.
2838         (debug_allocator::deallocate): Adjust.
2840         * include/ext/pool_allocator.h: Fix typo.
2842 2004-02-03  Felix Yen  <fwy@alumni.brown.edu>
2843             Benjamin Kosnik  <bkoz@redhat.com>
2845         * testsuite/performance/20_util/allocator.cc: Add map,
2846         deque, set tests.
2847         * testsuite/performance/20_util/allocator_thread.cc: Same.
2849 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
2851         * include/bits/basic_string.h (insert(iterator)): Remove,
2852         non-standard and already scheduled for removal.
2854 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
2856         * include/bits/stl_iterator_base_funcs.h: Minor formatting
2857         and indentation tweaks.
2858         * include/bits/stl_iterator_base_types.h: Likewise.
2859         * include/bits/stl_list.h: Likewise.
2860         * include/bits/stl_map.h: Likewise.
2861         * include/bits/stl_tempbuf.h: Likewise.
2863 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
2865         * include/bits/gslice.h, include/bits/gslice_array.h,
2866         include/bits/indirect_array.h, include/bits/mask_array.h,
2867         include/bits/slice_array.h, include/bits/stl_numeric.h,
2868         include/std/std_valarray.h:  Update copyright years.
2870 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
2872         * include/bits/gslice.h (gslice):  Document.
2873         * include/bits/gslice_array.h (gslice_array):  Document.
2874         * include/bits/indirect_array (indirect_array):  Document.
2875         * include/bits/mask_array (mask_array):  Document.
2876         * include/bits/slice_array.h (slice,slice_array):  Document.
2877         * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
2878         adjacent_difference):  Document
2879         * include/std/std_valarray.h (valarray):  Document.
2881 2004-02-02  Benjamin Kosnik  <bkoz@redhat.com>
2883         * docs/html/19_diagnostics/howto.html: Move verbose terminate
2884         documentation...
2885         * docs/html/18_support/howto.html: Here.
2886         * docs/html/documentation.html: Add reference here.
2888 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
2890         * config/locale/gnu/c++locale_internal.h: Remove prototypes
2891         of no longer used GLIBC thread locale functions.
2893 2004-02-02  Eric Christopher  <echristo@redhat.com>
2894             Zack Weinberg  <zack@codesourcery.com>
2896         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
2897         -finput-charset.
2898         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
2899         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
2900         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
2901         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
2902         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
2903         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
2904         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
2905         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2906         Ditto.
2908 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
2910         * include/bits/stl_function.h: Additional minor tweaks.
2911         * include/bits/stl_multiset.h: Likewise.
2913         * include/bits/stl_queue.h: Minor tweaks.
2915 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
2917         PR libstdc++/13976 (continued)
2918         * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
2919         Make the second parameter unnamed, to void unused parameter
2920         warnings.
2921         * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
2923 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
2925         PR libstdc++/13976
2926         * include/ext/malloc_allocator.h (malloc_allocator::allocate):
2927         Make the second parameter unnamed, to void unused parameter
2928         warnings.
2929         * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
2930         * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
2932 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
2934         * include/bits/stl_algo.h: Additional minor tweaks.
2935         * include/bits/stl_map.h: Likewise.
2936         * include/bits/stl_multimap.h: Likewise.
2937         * include/bits/stl_multiset.h: Likewise.
2938         * include/bits/stl_set.h: Likewise.
2939         * include/bits/stl_tree.h: Likewise.
2941 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
2943         * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
2944         Remove, unused.
2946 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
2948         * include/bits/stl_function.h: Additional minor tweaks.
2950 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
2952         * include/bits/deque.tcc: Wrap overlong lines, constify
2953         a few variables, reformat according to the coding standards.
2954         * include/bits/list.tcc: Likewise.
2955         * include/bits/stl_deque.h: Likewise.
2956         * include/bits/stl_function.h: Likewise.
2957         * include/bits/stl_iterator.h: Likewise.
2958         * include/bits/stl_iterator_base_funcs.h: Likewise.
2959         * include/bits/stl_iterator_base_types.h: Likewise.
2960         * include/bits/stl_list.h: Likewise.
2961         * include/bits/stl_map.h: Likewise.
2962         * include/bits/stl_multimap.h: Likewise.
2963         * include/bits/stl_multiset.h: Likewise.
2964         * include/bits/stl_relops.h: Likewise.
2965         * include/bits/stl_set.h: Likewise.
2967 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
2969         * include/bits/stl_bvector.h: Wrap overlong lines, constify
2970         a few variables, reformat according to the coding standards.
2971         * include/bits/stl_tree.h: Likewise.
2973 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
2975         * include/bits/stl_algo.h: Minor additional reformat, add
2976         copyright year.
2977         * include/bits/stl_algobase.h: Add copyright year.
2979 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
2981         * include/bits/stl_algo.h: Wrap overlong lines, constify
2982         a few variables, reformat according to the coding standards.
2983         * include/bits/stl_algobase.h: Likewise.
2984         * include/bits/stl_heap.h: Likewise.
2986 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
2988         * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
2990         * include/bits/basic_string.h: Fix two comments.
2992 2004-01-31  Per Bothner  <per@bothner.com>
2994         * include/ext/mt_allocator.h
2995         (__mt_alloc::_S_thread_freelist_mutex): Guard with
2996         __GTHREAD_MUTEX_INIT.
2998 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
3000         * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
3002 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
3004         * testsuite/21_strings/basic_string/cons/char/6.cc: New.
3005         * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
3006         * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
3008 2004-01-30  Felix Yen  <fwy@alumni.brown.edu>
3010         * testsuite/performance/20_util/allocator_thread.cc (do_loop):
3011         Don't use clear, but instead assign. Use insert.
3013 2004-01-30  Benjamin Kosnik  <bkoz@redhat.com>
3015         * src/demangle.cc: Add instantiations.
3016         * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
3017         * src/Makefile.in: Regenerate.
3019 2004-01-30  David Edelsohn  <edelsohn@gnu.org>
3021         * src/allocator.cc: Protect _S_get_thread_id() and
3022         _S_thread_key_destr() with #ifdef __GTHREADS.
3024 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
3026         Reshuffle performance testsuite.
3027         * testsuite/performance/allocator.cc, allocator_map_thread.cc,
3028         allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
3029         cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
3030         fstream_seek_write.cc, ifstream_extract_float.cc,
3031         ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
3032         list_create_fill_sort.cc, map_create_fill.cc,
3033         narrow_widen_char.cc, narrow_widen_wchar_t.cc,
3034         ofstream_insert_float.cc, ofstream_insert_int.cc,
3035         string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
3036         wchar_t_out.cc: Split into...
3037         * testsuite/performance/20_util/allocator.cc: New.
3038         * testsuite/performance/20_util/allocator_map_thread.cc: New.
3039         * testsuite/performance/20_util/allocator_thread.cc: New.
3040         * testsuite/performance/21_strings/string_append: New.
3041         * testsuite/performance/22_locale/is_wchar_t.cc: New.
3042         * testsuite/performance/22_locale/narrow_widen_char.cc: New.
3043         * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
3044         * testsuite/performance/22_locale/wchar_t_in.cc: New.
3045         * testsuite/performance/22_locale/wchar_t_length.cc: New.
3046         * testsuite/performance/22_locale/wchar_t_out.cc: New.
3047         * testsuite/performance/23_containers/container_benchmark.cc: New.
3048         * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
3049         * testsuite/performance/23_containers/map_create_fill.cc: New.
3050         * testsuite/performance/26_numerics/complex_norm.cc: New.
3051         * testsuite/performance/27_io/cout_insert_int.cc: New.
3052         * testsuite/performance/27_io/filebuf_copy.cc: New.
3053         * testsuite/performance/27_io/filebuf_sputc.cc: New.
3054         * testsuite/performance/27_io/fstream_seek_write.cc: New.
3055         * testsuite/performance/27_io/ifstream_extract_float.cc: New.
3056         * testsuite/performance/27_io/ifstream_extract_int.cc: New.
3057         * testsuite/performance/27_io/ifstream_getline.cc: New.
3058         * testsuite/performance/27_io/ofstream_insert_float.cc: New.
3059         * testsuite/performance/27_io/ofstream_insert_int.cc: New.
3061 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
3063         * include/bits/basic_string.tcc (_Rep::_S_create):
3064         Never allocate a string bigger than max_size(); always keep
3065         __capacity and __size in sync to avoid memory leaks at
3066         deallocation time.
3068 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
3070         * include/bits/basic_string.tcc (_S_construct(_InIterator,
3071         _InIterator, const _Alloc&, input_iterator_tag)): Simplify
3072         the double loop, streamline.
3074         * include/bits/basic_string.tcc: Very minor tweaks.
3076 2004-01-30  Loren J. Rittle  <ljrittle@acm.org>
3078         * scripts/check_performance: Only compile with $THREAD_FLAG
3079         when test is marked to require it.  Allow multiple
3080         compilations/executions of marked tests.
3081         * testsuite/testsuite_performance.h (report_performance):
3082         Report dynamic thread support status.
3083         (report_header): Likewise.
3084         * testsuite/performance/allocator.cc: Stabilize iteration
3085         count.  Support more allocators.  Mark each allocator test to
3086         run and report independently.
3087         * testsuite/performance/allocator_map_thread.cc: Likewise.
3088         * testsuite/performance/allocator_thread.cc: Likewise.
3090 2004-01-29  Stephen M. Webb  <stephen.webb@bregmasoft.com>
3092         * config/local/generic/c_locale.h: Change ::malloc() to new char[].
3093         * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
3094         * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
3095         std::get_temporary_buffer() instead of duplicating its code.
3096         Update to C++STYLE conventions.
3097         * include/std/std_memory.h (get_temporary_buffer): Use ::operator
3098         new() instead of std::malloc().
3099         (return_temporary_buffer): Use ::operator delete() instead of
3100         std::free().
3102 2004-01-29  Benjamin Kosnik  <bkoz@redhat.com>
3104         * include/bits/allocator.h: Temporary switch to new_allocator as
3105         the default to unjam bootstraps.
3107 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
3109         * include/Makefile.am (bits_headers): Remove allocator_traits.h.
3110         * include/Makefile.in: Regenerate.
3111         * include/bits/allocator_traits.h: Remove.
3112         * include/bits/allocator.h: Remove allocator_traits.h include, and
3113         relevant comments.
3114         (allocator): Empty base class, inherit from the underlying allocator.
3115         * src/allocator-inst.cc: Move __pool_alloc instantiation to...
3116         * src/allocator.cc: ...here. New. For the underlying allocators.
3117         Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
3118         * config/linker-map.gnu: Remove __pool_alloc bits.
3119         * src/Makefile.am (sources): Add allocator.cc.
3120         * src/Makefile.in: Regenerate.
3121         * testsuite/20_util/allocator/1.cc: Split second test into...
3122         * testsuite/20_util/allocator/8230.cc: ...this.
3123         * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
3124         typedef to use std::allocatore. Format.
3125         * include/ext/pool_allocator.h: Remove allocator_traits.h include,
3126         _Alloc_traits.
3127         * include/ext/mt_allocator.h (__gnu_cxx): Qualify
3128         __throw_bad_alloc calls. Don't include <memory>.
3129         * include/ext/malloc_allocator.h: Remove <memory> include.
3130         * include/ext/new_allocator.h (new_allocator): Same.
3131         * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
3132         declaration. Switch __alloc to _Alloc.
3133         * include/ext/hashtable.h: Remove __alloc.
3134         * include/backward/alloc.h: Only inject allocator, not
3135         implementation details.
3137         * include/ext/mt_allocator.h: Replace free with delete.
3139 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
3141         * src/globals_io.cc: Change to __gnu_internal namespace.
3142         * src/globals_locale.cc: Same.
3143         * src/locale_init.cc: Same.
3144         * src/ios_init.cc: Same.
3146 2004-01-28  Stefan Olsson  <stefan@snon.net>
3148         * include/ext/mt_allocator.h: Replaced all malloc() calls with
3149         operator new(). Added support for the env variable
3150         GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
3151         one in allocate() as well). Fix typos.
3153 2004-01-28  Paolo Carlini  <pcarlini@suse.de>
3155         * include/bits/basic_string.h (_S_create(size_t,
3156         const _Alloc&): Change signature to take two size_type
3157         arguments.
3158         * include/bits/basic_string.tcc (_S_construct(_InIterator,
3159         _InIterator, const _Alloc&, input_iterator_tag)): Update
3160         call, tweak a bit.
3161         (_S_construct(_InIterator, _InIterator, const _Alloc&,
3162         forward_iterator_tag)): Likewise.
3163         (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
3164         (_M_mutate(size_type, size_type, size_type)): Don't
3165         implement the exponential growth policy, demand it to
3166         _S_create, update call and simplify.
3167         (_M_clone(const _Alloc&, size_type)): Likewise.
3168         (_S_create(size_type, size_type, const _Alloc&)): Implement
3169         the growth policy, simplify otherwise.
3171         * include/bits/basic_string.h (_Rep::operator[]): Tweak
3172         signature to take a size_type, consistently with the other
3173         members.
3175 2004-01-27  Benjamin Kosnik  <bkoz@redhat.com>
3177         * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
3178         delete declarations, add include and test variable.
3180 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
3182         * include/bits/codecvt.h, include/bits/locale_facets.h,
3183         include/bits/postypes.h, include/bits/stl_bvector.h,
3184         include/bits/stl_multiset.h, include/bits/stl_set.h,
3185         include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
3186         include/std/std_complex.h:  Document.
3188 2004-01-27  Jerry Quinn  <jlquinn@optonline.net>
3190         PR libstdc++/11584
3191         * include/bits/ios_base.h (ios_base::_M_grow_words):  Add
3192         iword/pword selector.
3193         (ios_base::iword, ios_base::pword):  Use it.
3194         * src/ios.cc (ios_base::_M_grow_words):  Clear _M_word_zero
3195         iword or pword member on alloc failure.
3196         * testsuite/27_io/ios_base/storage/11584.cc:  New test.
3198 2004-01-27  Ulrich Weigand  <uweigand@de.ibm.com>
3199             PJ Darcy  <darcypj@us.ibm.com>
3201         * configure.host: Add support for *-tpf.
3202         * crossconfig.m4: Likewise.
3203         * configure: Regenerate.
3204         * config/os/tpf: New directory.
3205         * config/os/tpf/os_defines.h: New file.
3206         * config/os/tpf/ctype_base.h: Likewise.
3207         * config/os/tpf/ctype_inline.h: Likewise.
3208         * config/os/tpf/ctype_noninline.h: Likewise.
3210 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
3212         PR libstdc++/13884
3213         * include/bits/sstream.tcc: Guard use of extern template.
3215 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
3217         * include/bits/basic_string.tcc
3218         (basic_string(const basic_string&, size_type, size_type),
3219         basic_string(const basic_string&, size_type, size_type,
3220         const _Alloc&)): Avoid unnecessarily constructing iterators.
3222 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
3224         * config/locale/generic/c_locale.cc: Fix throw messages
3225         to use the __N marker.
3226         * config/locale/gnu/c_locale.cc: Likewise.
3227         * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
3228         Likewise.
3229         * docs/html/17_intro/C++STYLE: Likewise.
3230         * include/bits/basic_ios.tcc: Likewise.
3231         * include/bits/fstream.tcc: Likewise.
3232         * include/bits/vector.tcc: Likewise.
3233         * include/ext/ropeimpl.h: Likewise.
3234         * include/std/std_bitset.h: Likewise.
3235         * src/ios.cc: Likewise.
3236         * src/locale.cc: Likewise.
3237         * src/localename.cc: Likewise.
3239 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
3241         * include/bits/basic_string.h (_M_replace_aux): Use the
3242         __N marker in throw message.
3243         * include/bits/basic_string.tcc (assign(const _CharT*,
3244         size_type), insert(size_type, const _CharT*, size_type),
3245         replace(size_type, size_type, const _CharT*, size_type),
3246         reserve, _Rep::_S_create, resize, _M_replace_dispatch):
3247         Likewise.
3249         * include/bits/basic_string.h, include/bits/basic_string.tcc:
3250         Fold overlong lines, minor formatting changes.
3252 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
3254         * include/bits/basic_string.h (replace(iterator, iterator,
3255         const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
3256         (replace(iterator, iterator, const _CharT*)): Ditto.
3257         (replace(iterator, iterator, const _CharT*, size_type)):
3258         Add missing _GLIBCXX_DEBUG_PEDASSERT.
3260 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
3262         * include/bits/basic_string.tcc (replace(size_type,
3263         size_type, const _CharT*, size_type)): Implement optimized
3264         in-place algorithm for non-overlapping ranges.
3265         * testsuite/21_strings/basic_string/replace/char/6.cc: New.
3266         * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
3268         * include/bits/basic_string.tcc (insert(size_type,
3269         const _CharT*, size_type)): Tweak slightly.
3271 2004-01-26  Andreas Schwab  <schwab@suse.de>
3273         * config/locale/gnu/monetary_members.cc: Restore locale before
3274         rethrowing exception.
3276 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
3278         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
3279         Define inline here.
3280         * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
3281         Move inline.
3283         * include/bits/basic_string.tcc: Very minor tweaks.
3285 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
3287         * testsuite/performance/string_append.cc: Increase number
3288         of iterations.
3290 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
3292         * include/bits/basic_string.h (erase(size_type, size_type),
3293         erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
3294         instead, thus avoiding redundant check for length_error.
3296         * include/bits/basic_string.h: Tweak some comments.
3298 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
3300         * include/bits/basic_string.tcc (operator+(const _CharT*,
3301         const basic_string&)): No need to go through the append
3302         taking two iterators.
3304 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
3306         * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
3307         Revert last change to use std::min: machine language is worse.
3308         (find_last_of(const _CharT*, size_type, size_type)): Ditto.
3309         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3310         (find_last_not_of(_CharT, size_type)): Ditto.
3312         * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
3313         size_type)): Discard the value returned by _M_check.
3314         (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
3315         (append(const basic_string&, size_type, size_type)): Ditto.
3316         (copy(_CharT*, size_type, size_type)): Ditto.
3317         (compare(size_type, size_type, const basic_string&)): Ditto.
3318         (compare(size_type, size_type, const basic_string&,
3319         size_type, size_type)): Ditto.
3320         (compare(size_type, size_type, const _CharT*)): Ditto.
3321         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3323 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
3325         * include/bits/basic_string.h (insert(size_type,
3326         const basic_string&, size_type, size_type)): Define inline here.
3327         * include/bits/basic_string.tcc (insert(size_type,
3328         const basic_string&, size_type, size_type)): Move inline.
3330 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
3332         * include/bits/basic_string.h (assign(const basic_string&,
3333         size_type, size_type)): Define inline here.
3334         (replace(size_type, size_type, const basic_string&,
3335         size_type, size_type)): Ditto.
3336         (_M_replace_dispatch(iterator, iterator, _InputIterator,
3337         _InputIterator, __false_type)): Only declare.
3338         (_M_replace(iterator, iterator, _InputIterator,
3339         _InputIterator)): Remove.
3340         * include/bits/basic_string.tcc (assign(const basic_string&,
3341         size_type, size_type)): Move inline.
3342         (replace(size_type, size_type, const basic_string&,
3343         size_type, size_type)): Ditto.
3344         (_M_replace_dispatch(iterator, iterator, _InputIterator,
3345         _InputIterator, __false_type)): Define, now does also what
3346         _M_replace did before.
3347         * src/string-inst.cc (_M_replace): Don't instantiate.
3349         * include/bits/basic_string.tcc (find(const _CharT*,
3350         size_type, size_type)): Tidy.
3351         (rfind(_CharT, size_type)): Ditto.
3352         (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
3353         (find_first_not_of(_CharT, size_type)): Ditto.
3354         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3355         (find_last_not_of(_CharT, size_type)): Ditto.
3357 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
3359         PR libstdc++/13838
3360         * include/debug/bitset (operator|=): Fix typo.
3361         * testsuite/23_containers/bitset/operations/13838.cc: New.
3363 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
3365         * include/bits/basic_string.tcc (insert(size_type,
3366         const _CharT*, size_type __n)): Fix length_error check.
3367         (replace(size_type, size_type, const _CharT*, size_type):
3368         Ditto; call _M_replace_safe.
3369         (_M_replace_aux(size_type, size_type, size_type, _CharT):
3370         Fix length_error check.
3371         (_M_replace(iterator, iterator, _InputIterator,
3372         _InputIterator)): Ditto, tweak.
3373         (_M_replace_safe(size_type, size_type, const _CharT*,
3374         size_type)): Remove length_error check.
3376         * include/bits/basic_string.tcc (append(const basic_string&),
3377         append(const basic_string&, size_type, size_type)): Tweak
3378         comment.
3380         * include/bits/basic_string.tcc (copy(_CharT*, size_type,
3381         size_type)): If __n == 0 don't call traits::copy.
3383 2004-01-23  Stefan Olsson  <stefan@snon.net>
3385         * include/ext/mt_allocator.h: Reduce lock contention.
3387 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
3389         PR libstdc++/13831
3390         * include/bits/fstream.tcc (underflow): Remove unused
3391         variable.
3392         * include/bits/streambuf_iterator.h (equal): Ditto.
3393         * include/bits/locale_facets.h (_M_convert_from_char):
3394         Ditto.
3396 2004-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3398         PR c/13814
3399         * config/linker-map.gnu (nan): Delete.
3400         * libmath/mathconf.h (NAN, nan): Delete.
3401         * linkage.m4 (nan): Don't check for it.
3402         * libmath/nan.c: Delete file.
3404         * config.h.in, configure: Regenerate.
3406 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
3408         * include/bits/basic_string.h (push_back(_CharT)):
3409         Call _M_replace_aux.
3410         (insert(size_type, const basic_string&)): Trivial tweak.
3411         (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
3412         (insert(iterator, _CharT)): Ditto.
3413         (erase(size_type, size_type)): Ditto.
3414         (erase(iterator)): Ditto.
3415         (erase(iterator, iterator)): Ditto.
3416         (replace(size_type, size_type, size_type, _CharT)): Ditto.
3418 2004-01-23  Loren J. Rittle  <ljrittle@acm.org>
3420         libstdc++/13823
3421         * testsuite/performance/allocator_map_thread.cc: New test.
3423 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
3425         * include/bits/locale_facets.tcc
3426         (money_put::do_put(..., long double)): Use the basic_string
3427         constructor for char arrays, not that for C-strings, to pass
3428         __digits to do_put(..., const string_type&): __ws isn't
3429         null-terminated.
3431 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
3433         * include/bits/basic_string.h (_M_replace_safe): Change
3434         signatures to take size_types and const _CharT*.
3435         (_M_replace_aux): Likewise, takes size_types instead of
3436         iterators.
3437         (append(size_type, _CharT)): Update call.
3438         (assign(size_type, _CharT)): Ditto.
3439         (replace(iterator, iterator, size_type, _CharT)): Ditto.
3440         (_M_replace_dispatch(iterator, iterator, _Integer,
3441         _Integer, __true_type)): Ditto.
3442         * include/bits/basic_string.tcc (assign(const _CharT*,
3443         size_type)): Ditto.
3444         (insert(size_type, const _CharT*, size_type)): Ditto.
3445         (replace(size_type, size_type, const _CharT*,
3446         size_type)): Ditto.
3447         (_M_replace(iterator, iterator, _InputIterator,
3448         _InputIterator)): Ditto.
3449         (append(const basic_string&)): Ditto.
3450         (append(const basic_string&, size_type, size_type): Ditto.
3451         (append(const _CharT*, size_type): Ditto.
3452         (_M_replace_safe, _M_replace_safe): Change definitions
3453         accordingly, simplify.
3454         * string-inst.cc (_M_replace_safe): Don't instantiate.
3456 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
3458         * include/bits/basic_string.tcc (append(const basic_string&)):
3459         Revert previous change.
3460         (append(const basic_string&, size_type, size_type)): Revert
3461         previous change, use _M_check and _M_limit.
3463 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
3465         * include/bits/basic_string.h (_M_check): Change to return
3466         a checked __pos and take an additional const char* argument.
3467         (_M_fold): Rename to _M_limit, change to return a size_type,
3468         corresponding to the __off limited to the actual length.
3469         (insert(size_type, size_type, _CharT)): Update call, call
3470         replace.
3471         (insert(iterator, _CharT)): Call replace(iterator, iterator,
3472         size_type, _CharT) instead.
3473         (erase(size_type, size_type)): Update calls.
3474         (replace(size_type, size_type, size_type, _CharT)): Ditto.
3475         (substr(size_type, size_type)): Use _M_check.
3476         * include/bits/basic_string.tcc (basic_string(const basic_string&,
3477         size_type, size_type)): Update calls.
3478         (basic_string(const basic_string&, size_type, size_type,
3479         const _Alloc&)): Ditto.
3480         (assign(const basic_string&, size_type, size_type)): Use the
3481         new _M_check and _M_limit.
3482         (insert(size_type, const basic_string&, size_type, size_type):
3483         Ditto.
3484         (insert(size_type, const _CharT*, size_type)): Ditto.
3485         (replace(size_type, size_type, const _CharT*, size_type): Ditto.
3486         (replace(size_type, size_type, const basic_string&,
3487         size_type, size_type)): Ditto.
3488         (append(const basic_string&)): Ditto.
3489         (append(const basic_string&, size_type, size_type)): Ditto.
3490         (copy(_CharT*, size_type, size_type)): Ditto.
3491         (compare(size_type, size_type, const basic_string&)): Ditto.
3492         (compare(size_type, size_type, const basic_string&,size_type,
3493         size_type)): Ditto.
3494         (compare(size_type, size_type, const _CharT*)): Ditto.
3495         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3497 2004-01-19  Stefan Olsson  <stefan@snon.net>
3499         * include/ext/mt_allocator.h: If a thread, when it dies, still has
3500         memory on it's freelist this memory is not returned to global
3501         list. Simplification of deallocate so that memory is always
3502         returned to the calling thread id's freelist instead of to
3503         global. Fix typos. Add volatile where appropriate.
3505 2004-01-19  Loren J. Rittle  <ljrittle@acm.org>
3507         * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
3508         * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test.  Like -2 but
3509         use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
3511 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
3513         * src/debug.cc: Make sure all the names are prefixed with
3514         double (or single) underscore.
3516 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
3518         * src/debug.cc: Trivial formatting change.
3520 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
3522         * include/bits/basic_string.tcc (_S_construct(size_type,
3523         _CharT, const _Alloc&)): Remove redundant try/catch.
3524         (_M_mutate(size_type, size_type, size_type)): Ditto.
3525         (_M_clone(const _Alloc&, size_type)): Ditto.
3527 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
3529         * include/bits/basic_string.h (c_str()): Simplify, due to
3530         21.3.4 the internal representation is always kept null-terminated.
3531         * include/bits/basic_string.tcc (_M_clone): Null-terminate.
3532         * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
3533         * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
3534         Ditto.
3536 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
3538         * include/bits/basic_string.h (append(size_type, _CharT)):
3539         Moved inline, just call _M_replace_aux, no source iterators at
3540         risk of being clobbered.
3541         (assign(size_type, _CharT)): Call directly _M_replace_aux.
3542         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3543         input_iterator_tag)): Remove fifth unused argument.
3544         (_M_replace_dispatch(iterator, iterator, _InputIterator,
3545         _InputIterator, __false_type)): Update call.
3546         * include/bits/basic_string.tcc (replace(size_type, size_type,
3547         const _CharT*, size_type)): Update call.
3548         (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
3549         throw string literal.
3550         (_M_replace_safe(iterator, iterator, _ForwardIterator,
3551         _ForwardIterator)): Likewise.
3552         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3553         input_iterator_tag)): Remove fifth unused argument.
3554         (append(size_type __n, _CharT __c)): Move inline.
3555         * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
3556         const C*, const C*, input_iterator_tag)): Remove fifth unused
3557         argument.
3559 2004-01-16  Benjamin Kosnik  <bkoz@redhat.com>
3561         * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
3562         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
3564 2004-01-16  Danny Smith  <dannysmith@users.sourceforge.net>
3566         * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
3567         mkfifo for mingw32.
3569 2004-01-15  Stefan Olsson  <stefan@snon.net>
3571         * include/ext/mt_allocator.h: Reuse thread id's as soon as
3572         possible by changing the behaviour of thread_freelist to do
3573         push_front when threads die instead of push_back.
3575 2004-01-14  Paolo Carlini  <pcarlini@suse.de>
3577         * include/bits/locale_facets.h (struct __numpunct_cache):
3578         Add member _M_grouping_size, caching the length of _M_grouping.
3579         (__numpunct_cache<>::_M_cache): Assign the latter.
3580         (__verify_grouping): Move declaration...
3581         * include/bits/locale_facets.tcc (__verify_grouping):
3582         ... here, change signature to take a const char* and a size_t
3583         for the grouping; not a template anymore.
3584         (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
3585         Likewise change signature and tweak consistently.
3586         (num_get::_M_extract_float, num_get::_M_extract_int,
3587         num_put::_M_insert_int, num_put::_M_insert_float,
3588         money_get::do_get(string_type&), money_get::do_put(string_type)):
3589         Update callers.
3590         * config/locale/generic/numeric_members.cc
3591         (numpunct<>::_M_initialize_numpunct): Assign the new member.
3592         * config/locale/gnu/numeric_members.cc
3593         (numpunct<>::_M_initialize_numpunct): Likewise.
3594         * src/locale-inst.cc (__add_grouping): Tweak signature.
3595         (__verify_grouping): Don't instantiate, not a template anymore.
3597         * include/bits/locale_facets.h: Rename _M_truename_len ->
3598         _M_truename_size, _M_falsename_len -> _M_falsename_size.
3599         * include/bits/locale_facets.tcc: Likewise.
3600         * config/locale/generic/numeric_members.cc: Likewise.
3601         * config/locale/gnu/numeric_members.cc: Likewise.
3603 2004-01-14  Stefan Olsson  <stefan@snon.net>
3605         * include/ext/mt_allocator.h: Fixups.
3606         * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
3607         * testsuite/performance/allocator_thread.cc: Same.
3609 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
3611         * testsuite/performance/ifstream_extract_float.cc: Add higher
3612         precision tests.
3613         * testsuite/performance/ofstream_insert_float.cc: Same.
3615 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
3617         * src/locale-misc-inst.cc (__convert_from_v(long),
3618         __convert_from_v(unsigned long), __convert_from_v(long long),
3619         __convert_from_v(unsigned long long)): Remove, unused.
3621 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
3623         * testsuite/performance/ifstream_extract_float.cc: New.
3624         * testsuite/performance/ofstream_insert_float.cc: Float generation
3625         matches above.
3627         * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
3628         * 20_util/auto_ptr/1.cc: ...this.
3629         * 20_util/auto_ptr/2.cc: Same.
3630         * 20_util/auto_ptr/3.cc: Same.
3631         * 20_util/auto_ptr/3946.cc: Same.
3632         * 20_util/auto_ptr/4.cc: Same.
3633         * 20_util/auto_ptr/5.cc: Same.
3634         * 20_util/auto_ptr/6.cc: Same.
3635         * 20_util/auto_ptr/7.cc: Same.
3636         * 20_util/auto_ptr/assign_neg.cc
3637         * 20_util/pairs.cc: Break into...
3638         * 20_util/pair/1.cc: ...this.
3639         * 20_util/pair/2.cc: Same.
3640         * 20_util/pair/3.cc: Same.
3641         * 20_util/pair/4.cc: Same.
3643 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
3645         * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
3646         Set correctly just basefield, the only group that matters.
3648 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
3650         * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
3651         (_Rope_rep_base): Inherit directly from the rope allocator;
3652         use rebinding instead of _Alloc_traits; pick up data member
3653         from _Rope_rep_alloc_base.
3654         (_Rope_alloc_base): Eliminate.
3655         (_Rope_base): Inherit directly from the rope allocator; use
3656         rebinding instead of _Alloc_traits; pick up data member from
3657         _Rope_alloc_base.
3658         (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
3659         rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
3661 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
3663         PR libstdc++/13650
3664         * include/bits/basic_string.tcc (compare(size_type, size_type,
3665         const _CharT*, size_type)): Implement correctly the resolution
3666         of DR 5: basically, s is a char array, -not- a C string.
3667         * include/bits/basic_string.h: Tweak some comments.
3668         * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
3669         * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
3671 2004-01-12  Andreas Tobler  <a.tobler@schweiz.ch>
3673         * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
3674         Solaris.
3676 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
3678         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
3679         Use try_mkfifo.
3680         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
3681         Likewise.
3683 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
3685         * include/bits/locale_facets.h (struct __numpunct_cache):
3686         Add members _M_truename_len and _M_falsename_len, caching
3687         the lengths of _M_truename and _M_falsename.
3688         (__numpunct_cache<>::_M_cache): Assign the latter.
3689         * include/bits/locale_facets.tcc (num_get::do_get(bool&),
3690         num_put::do_put(bool)): Use the new members, thus avoiding
3691         computing string lengths again and again.
3692         * config/locale/generic/numeric_members.cc
3693         (numpunct<>::_M_initialize_numpunct): Assign the new members.
3694         * config/locale/gnu/numeric_members.cc
3695         (numpunct<>::_M_initialize_numpunct): Likewise.
3697 2004-01-12  Mark Mitchell  <mark@codesourcery.com>
3699         * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
3700         * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
3701         it.
3702         * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
3703         and remove Cygwin XFAIL.
3704         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
3705         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
3706         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
3707         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
3708         Likewise.
3709         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3710         * testsuite/27_io/objects/char/7.cc: Likewise.
3711         * testsuite/27_io/objects/char/9661-1.cc: Likewise.
3712         * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
3713         * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
3715 2004-01-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3717         * include/std/std_complex.h (std::complex<>::real): Return a
3718         reference. Add non-const overload.
3719         (std::complex<>::real): Likewise.
3720         (std::real): Likewise.
3721         (std::imag): Likewise.
3722         (std::operator+): Tidy.
3723         (std::operator-): Likewise.
3724         (std::operator*): Likewise.
3725         (std::operator/): Likewise.
3726         (std::operator>>): Likewise.
3728 2004-01-11  Paolo Carlini  <pcarlini@suse.de>
3730         PR libstdc++/13582
3731         * include/bits/fstream.tcc (imbue): Exploit the external
3732         buffer to imbue 'on the fly' a new locale and convert its
3733         remainder with the new codecvt facet.
3734         (underflow): Tweak slightly to deal with this special case.
3735         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
3736         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
3737         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
3738         * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
3739         * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
3741 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
3743         * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
3744         Import Revision 28.
3746 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
3748         PR libstdc++/13630
3749         * include/bits/locale_classes.h (class locale): Fix category
3750         typedef.
3751         * testsuite/22_locale/locale/13630.cc: Add.
3753 2004-01-10  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
3755         * include/bits/locale_facets.h: Make a name really dependent. This
3756         will be needed when Core Issue 224 is implemented.
3758 2004-01-09  Paolo Carlini  <pcarlini@suse.de>
3760         * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
3761         * testsuite/performance/allocator_thread.cc: Likewise.
3763 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
3765         * crossconfig.m4: Add LFS, io bits to linux cross config.
3766         * acconfig.h: Remove obsolete bits, reorder.
3767         * config.h.in: Regenerate.
3768         * aclocal.m4: Same.
3769         * configure: Same.
3771 2004-01-07  Gawain Bolton  <gp.bolton@computer.org>
3773         * include/bits/stl_list.h:
3774         * include/bits/list.tc:
3775         * src/list.cc:
3776         Performance enhancements for destructor, push_front(),
3777         push_back(), pop_front(), pop_back(), sort()
3778         Eliminated static_casts where possible.
3779         Moved code out of header files into new src/list.cc
3780         implementation file for library where possible.
3781         Remove inheritance from iterator class and create separate
3782         classes for non-constant and constant iterators.
3783         * include/bits/stl_tree.h (_Rb_tree class):
3784         * src/tree.cc:
3785         Only erase contents in destructor.
3786         Eliminate unnecessary initialization in assignment operator.
3787         Optimize for the nominal case by not checking whether
3788         container is empty in clear().
3789         Re-order test in _M_insert() to improve performance.
3790         Move initialization of new node's left & right pointers to
3791         src/tree.cc to where new node's colour is initialized
3792         and to reduce the amount of inline code.
3793         Use  _M_leftmost() and _M_end() to improve readability where
3794         appropriate.
3795         Create separate classes for non-constant and constant
3796         iterators to clarify code, avoid extra template parameters and
3797         casting away constness.
3799 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
3801         * src/Makefile.am (sources): Add list.cc, tree.cc.
3802         * src/stl_tree.cc: Move to...
3803         * src/tree.cc: ...here.
3804         * src/list.cc: Add.
3805         * config/linker-map.gnu: Tweaks.
3806         * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
3807         * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
3809         * bits/stl_vector.h: Column wrap comments.
3811 2004-01-07  Loren J. Rittle  <ljrittle@acm.org>
3813         (re-open) PR libstdc++/12658
3814         * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
3815         (locale::global): Likewise.
3817 2004-01-07  Paolo Carlini  <pcarlini@suse.de>
3819         * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
3820         Remove redundant #include.
3821         * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
3822         * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
3823         re-enable normal testing.
3824         * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
3825         #include.
3826         * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
3827         * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
3828         Likewise.
3829         * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
3830         Likewise.
3831         * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
3832         Likewise.
3833         * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
3834         Likewise.
3835         * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
3836         Likewise.
3837         * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
3838         Likewise.
3839         * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
3840         Likewise.
3841         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
3842         More properly, #include <locale>.
3843         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
3844         Remove redundant #include.
3845         * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
3846         * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
3847         redundant DejaGnu directive.
3848         * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
3849         redundant #include.
3851 2004-01-06  Benjamin Kosnik  <bkoz@redhat.com>
3852             Stefan Olsson  <stefan@snon.net>
3854         * scripts/check_performance: Use -pthread.
3855         * testsuite/performance/allocator.cc: Tweaks, add list.
3856         * testsuite/performance/allocator_thread.cc: New.
3858 2004-01-06  Jerry Quinn  <jlquinn@optonline.net>
3860         * include/bits/locale_facets.h: Document public classes and
3861         functions.
3862         * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
3863         Add comment.
3865 2004-01-06  Paolo Carlini  <pcarlini@suse.de>
3867         * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
3868         Remove redundant #includes.
3869         * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
3870         Likewise.
3871         * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
3872         Likewise.
3873         * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
3874         * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
3875         * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
3876         * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
3877         * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
3878         * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
3879         * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
3880         * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
3881         * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
3882         * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
3883         * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
3884         * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
3885         * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
3886         * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
3887         * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
3888         Likewise.
3889         * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
3890         Likewise.
3891         * testsuite/27_io/basic_istream/readsome/char/8258.cc:
3892         Likewise.
3893         * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
3894         Likewise.
3895         * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
3896         Likewise.
3897         * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
3898         * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
3899         * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
3901 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
3903         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
3904         Remove redundant #includes.
3905         * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
3906         Likewise.
3907         * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
3908         Likewise.
3909         * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
3910         Likewise.
3911         * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
3912         Likewise.
3913         * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
3914         Likewise.
3915         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
3916         Likewise.
3917         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3918         Likewise.
3919         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3920         Likewise.
3921         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3922         Likewise.
3923         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
3924         Likewise.
3925         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
3926         Likewise.
3927         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
3928         Likewise.
3930 2004-01-04  Mark Mitchell  <mark@codesourcery.com>
3932         PR c++/12226
3933         * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
3934         constructor.
3935         * testsuite/27_io/basic_fstream/4.cc: Likewise.
3936         * testsuite/27_io/basic_ifstream/4.cc: Likewise.
3937         * testsuite/27_io/basic_ios/4.cc: Likewise.
3938         * testsuite/27_io/basic_iostream/4.cc: Likewise.
3939         * testsuite/27_io/basic_istream/4.cc: Likewise.
3940         * testsuite/27_io/basic_istingstream/4.cc: Likewise.
3941         * testsuite/27_io/basic_ofstream/4.cc: Likewise.
3942         * testsuite/27_io/basic_ostream/4.cc: Likewise.
3943         * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
3944         * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
3945         * testsuite/27_io/basic_stringstream/4.cc: Likewise.
3947 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
3949         * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
3950         Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
3951         always use double underscored names.
3952         * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
3953         Likewise.
3954         * include/bits/locale_facets.h (struct __numpunct_cache):
3955         Dimension _M_atoms_out and _M_atoms_in one position smaller.
3956         (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out
3957         and _M_atoms_in.