2004-07-24 Alexander Kabaev <kan@freebsd.org>
[official-gcc.git] / libstdc++-v3 / ChangeLog
blob3a16fce910ed14b175a68f100f93e1459231a15b
1 2004-07-23  Benjamin Kosnik  <bkoz@redhat.com>
3         PR libstdc++/16678
4         * include/bits/locale_facets.tcc: Fix for -Werror.
6 2004-07-23  Jonathan Wakely  <redi@gcc.gnu.org>
8         * docs/html/debug.html: Say debug mode only available since 3.4.0.
10 2004-07-21  Benjamin Kosnik  <bkoz@redhat.com>
12         * docs/doxygen/mainpage.html: Clarify links.
13         * docs/doxygen/stdheader.cc: Add files.
14         * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
15         * docs/doxygen/user.cfg.in: New options, wrap.
17 2004-07-20  Danny Smith  <dannysmith@users.sourceforge.net>
19         * include/c_std/std_cwchar.h (wcsstr): Correct signature.
21 2004-07-19  Benjamin Kosnik  <bkoz@redhat.com>
23         PR libstdc++/15488
24         * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
26 2004-07-17  Richard Sandiford  <rsandifo@redhat.com>
28         PR bootstrap/16469
29         * scripts/create_testsuite_files: Pass -print to find.
31 2004-07-15  Paolo Carlini  <pcarlini@suse.de>
33         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
34         * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
36 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
38         PR libstdc++/14697
39         * acinclude.m4 (glibcxx_shared_libgcc): Correct
40         glibcxx_shared_libgcc test for multilibs.
41         * configure: Rebuilt.
43 2004-07-14  Paolo Carlini  <pcarlini@suse.de>
45         PR libstdc++/16505
46         * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
47         the signature to return void, as per 20.4.4.3.
48         * include/bits/stl_vector.h (vector::vector(size_type,
49         const value_type&, const allocator_type&), vector::vector(size_type),
50         vector::_M_initialize_dispatch): Adjust callers.
51         * include/bits/vector.tcc (vector<>::_M_fill_assign,
52         vector<>::_M_fill_insert): Likewise.
53         * testsuite/20_util/memory/16505.cc: New.
55 2004-07-14  Paolo Carlini  <pcarlini@suse.de>
57         * testsuite/22_locale/locale/cons/12658_thread-1.cc,
58         12658_thread-2.cc: Use __gnu_test::try_named_locale.
60 2004-07-13  Benjamin Kosnik  <bkoz@redhat.com>
62         * docs/html/ext/mt_allocator.html: Add docs for _Tune.
63         * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
64         (__mt_alloc::_S_set_options): Same.
65         Add to comments.
67 2004-07-13  Benjamin Kosnik  <bkoz@redhat.com>
69         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
70         for linux.
71         * configure: Regenerated.
73 2004-07-13  Paolo Carlini  <pcarlini@suse.de>
75         * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
76         to 12658_thread-1.cc and xfail.
77         * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
78         simpler version of 12658_thread-1.cc, still failing on 3_3 and
79         not failing on 3_4/mainline - both on single processor and
80         multiprocessor machines.
82 2004-07-12  Benjamin Kosnik  <bkoz@redhat.com>
84         * docs/html/abi.html: Remove non-public qualification.
86         * include/bits/concurrence.h: Tweak comments.
88 2004-07-11  Paolo Carlini  <pcarlini@suse.de>
90         Add wchar_t counterparts of the basic_streambbuf<char> tests.
91         * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
92         * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
93         Likewise.
94         * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
95         * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
96         3599.cc: Likewise.
97         * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
98         * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
99         * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
100         * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
101         * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
102         Likewise.
103         * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
105         * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
106         tweaks.
107         * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
108         Likewise.
109         * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
110         * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
112 2004-07-11  Phil Edwards  <phil@codesourcery.com>
114         * acinclude.m4:  Cosmetic shell syntax fixes.
115         * configure.ac:  Bring comment inline with reality.
116         * configure.host:  Both of the above.  Move 'arm' case to right
117         place in host_cpu switch.
118         * aclocal.m4, configure:  Regenerate.
120 2004-07-09  Paolo Carlini  <pcarlini@suse.de>
122         Add wchar_t counterparts of the basic_stringbuf<char> tests.
123         * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
124         * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
125         * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
126         3599.cc, 9988.cc: Likewise.
127         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
128         Likewise.
129         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
130         Likewise.
131         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
132         Likewise.
133         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
134         Likewise.
135         * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
136         * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
137         * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
138         * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
139         Likewise.
140         * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
141         9404-1.cc: Likewise.
142         * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
143         9404-2.cc: Likewise.
144         * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
145         3955.cc: Likewise.
146         * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
147         * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
149 2004-07-08  Paolo Carlini  <pcarlini@suse.de>
151         * include/bits/gslice.h: Trivial formatting fixes.
152         * include/bits/gslice_array.h: Likewise.
153         * include/bits/indirect_array.h: Likewise.
154         * include/bits/mask_array.h: Likewise.
155         * include/bits/slice_array.h: Likewise.
156         * include/bits/valarray_after.h: Likewise.
157         * include/bits/valarray_array.h: Likewise.
158         * include/bits/valarray_before.h: Likewise.
159         * include/std/std_valarray.h: Likewise.
161 2004-07-08  Benjamin Kosnik  <bkoz@redhat.com>
163         PR c++/16169
164         * include/bits/basic_string.h (basic_string::operator=): Revert.
166 2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>
168         * configure.ac (libtool_VERSION): To 6:2:0.
169         * configure: Regenerated.
171         * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
172         
173 2004-07-07  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
175         PR libstdc++/16411
176         * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
178 2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>
180         * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
181         -Weffc++ issues.
183 2004-07-07  Paolo Carlini  <pcarlini@suse.de>
185         PR libstdc++/16401
186         * include/bits/sstream.tcc (overflow): When reallocating _M_string
187         use an exponential grow policy.
188         * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
189         * testsuite/performance/27_io/stringbuf_overflow.cc: New.
191 2004-07-06  Anssi Hannula  <anssi.hannula@mbnet.fi>
193         PR libstdc++/15928
194         * crossconfig.m4: Add in bits for djgpp.
195         * configure: Regenerate.
196         
197 2004-07-05  Jonathan Wakely  <redi@gcc.gnu.org>
199         * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
200         instantiation of set and multiset (functor param given as int).
202 2004-07-04  Paolo Carlini  <pcarlini@suse.de>
204         * include/bits/basic_string.h: Trivial formatting fixes and/or
205         const-ification of some variables.
206         * include/bits/deque.tcc: Likewise.
207         * include/bits/stl_algobase.h: Likewise.
208         * include/bits/stl_bvector.h: Likewise.
209         * include/bits/stl_construct.h: Likewise.
210         * include/bits/stl_deque.h: Likewise.
211         * include/bits/stl_pair.h: Likewise.
212         * include/bits/stl_vector.h: Likewise.
213         * include/bits/vector.tcc: Likewise.
215 2004-07-04  Paolo Carlini  <pcarlini@suse.de>
217         * testsuite/25_algorithms/copy/1.cc: Add instantiations for
218         systems with no COMDAT or weak support.
219         * testsuite/25_algorithms/copy/2.cc: Likewise.
220         * testsuite/25_algorithms/copy/3.cc: Likewise.
221         * testsuite/25_algorithms/copy/4.cc: Likewise.
223 2004-07-03  Paul Brook  <paul@codesourcery.com>
225         * configure.ac: Set ABI_TWEAKS_SRCDIR.
226         * configure.host: Set abi_tweaks_dir.  Check for atomicity.h when
227         setting atomicity_dir.  Override type_cpu for arm based targets.
228         * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
229         * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
230         * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
231         * libsupc++/vec.cc: Ditto.
232         * config/cpu/arm/cxxabi_tweaks.h: New file.
233         * config/cpu/generic/cxxabi_tweaks.h: New file.
234         * */Makefile.in: Regenerate.
235         * configure: Regenerate.
237 2004-07-02  Paolo Carlini  <pcarlini@suse.de>
239         * include/bits/type_traits.h (_Is_normal_iterator): Move...
240         * include/bits/cpp_type_traits.h: ... here, renamed to
241         __is_normal_iterator and consistent with the other traits.
242         * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
243         to the struct __copy_normal and three specializations.
244         (__copy_backward_output_normal_iterator,
245         __copy_backward_input_normal_iterator): Likewise, convert to
246         the struct __copy_backward_normal and three specializations.
247         (copy, copy_backward): Use the latter.
248         (__copy_aux, __copy_backward_aux): Very minor tweaks.
250 2004-07-01  Paolo Carlini  <pcarlini@suse.de>
252         * include/bits/stl_algobase.h (__copy_trivial): Remove.
253         (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
254         __is_trivially_copyable, __are_same and __copy::copy.
255         (__copy): Rewrite as a class template and two specializations.
256         (__copy_ni2): Simplify, just call __copy_aux.
257         
258         * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
259         check.
260         * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
261         for destination value type != source value type.
263 2004-07-01  Benjamin Kosnik  <bkoz@redhat.com>
264             Per Bothner  <per@bothner.com>
265             Mohan Embar  <gnustuff@thisiscool.com>
267         PR libstdc++/16248
268         * include/bits/concurrence.h (__glibcxx_mutex_type): New.
269         (__glibcxx_mutex): Encapsulate mutex init function into type for
270         threaded configurations without __GTHREAD_MUTEX_INIT.
271         (lock::lock): Make device member a reference.
272         (lock::~lock): Same.
273         * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
274         to mutex_type.
275         * src/allocator.cc: Same.
276         
277 2004-06-30  Brad Spencer  <spencer@infointeractive.com>
279         * include/ext/mt_allocator.h: Handle allocations at static
280         initialization that happen before _S_options is (automatically)
281         constructed; set _S_init even if _M_force_new is true.
282         
283 2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
285         * config/linker-map.gnu: Revert new exports.
287 2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
288             Stuart Anderson  <anderson@netsweng.com>
289         
290         * config/linker-map.gnu: Add destructor exports for abstract base
291         classes to conform to LSB.
293 2004-06-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
294             Paolo Carlini  <pcarlini@suse.de>
296         * include/bits/cpp_type_traits.h: Add __is_pointer and
297         __is_trivially_copyable.
298         * include/bits/stl_algobase.h (fill, fill_n): Slightly
299         tweak to use the latter.
300         (__copy_backward_dispatch): Remove.
301         (__copy_backward_aux): Rewrite to use __is_pointer and
302         __is_trivially_copyable and __copy_backward::copy_b.
303         (__copy_backward): Rewrite as a class template and two
304         specializations.
306 2004-06-30  Paolo Carlini  <pcarlini@suse.de>
308         * testsuite/25_algorithms/copy.cc: Move to...
309         * testsuite/25_algorithms/copy/1.cc: ... here, extend.
310         * testsuite/25_algorithms/copy/2.cc: New.
311         * testsuite/25_algorithms/copy/3.cc: New.
312         * testsuite/25_algorithms/copy/4.cc: New.
314 2004-06-29  Paul Brook  <paul@codesourcery.com>
316         * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
317         element size in the cookie.
319 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
321         * include/bits/cpp_type_traits.h: Move the additions to
322         namespace __gnu_internal outside of namespace std; trivial
323         formatting fixes.
325 2004-06-28  Benjamin Kosnik  <bkoz@redhat.com>
327         * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
328         Revert -Weffc++ changes that defined copy ctory and or assignment
329         operator.
330         * libsupc++/tinfo.cc (__upcast_result): Same.
331         
332 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
334         * src/localename.cc (locale::_Impl::_Impl): Slightly improve
335         the algorithm used to name the categories.
337 2004-06-28  Paolo Bonzini  <bonzini@gnu.org>
339         * include/Makefile.am: Give a .gch extension to
340         the PCH files, not only to the directory.
341         * include/Makefile.in: Regenerate.
343 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
345         * config/locale/gnu/monetary_members.cc
346         (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
347         assignments of _M_decimal_point and _M_thousands_sep.
349 2004-06-27  Paolo Carlini  <pcarlini@suse.de>
351         * docs/html/17_intro/contribute.html: Update some links.
352         * docs/html/17_intro/porting-howto.html: Likewise.
353         * docs/html/17_intro/porting-howto.xml: Likewise.
354         * docs/html/18_support/howto.html: Likewise.
355         * docs/html/21_strings/howto.html: Likewise.
356         * docs/html/27_io/howto.html: Likewise.
357         * docs/html/configopts.html: Likewise.
358         * docs/html/ext/howto.html: Likewise.
359         * docs/html/faq/index.html: Likewise.
360         * docs/html/install.html: Don't mention 2.x compilers.
362 2004-06-27  Paolo Carlini  <pcarlini@suse.de>
364         * include/ext/rope: Trivial formatting fixes.
365         * include/ext/ropeimpl.h: Likewise.
367 2004-06-26  Paolo Carlini  <pcarlini@suse.de>
369         PR libstdc++/16210
370         * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
371         availability of strto(u)ll, not used anymore in the iostreams.
372         * configure: Regenerate.
374 2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>
376         PR libstdc++/16182      
377         * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
378         AC_DEFINE_UNQUOTED.
379         * configure: Regenerate.
381 2004-06-25  Paul Brook  <paul@codesourcery.com>
383         * libsupc++/cxxabi.h: Define __ARM_EABI__
384         (__guard): Use it.
385         * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
387 2004-06-25  Paul Brook  <paul@codesourcery.com>
389         * include/bits/concurrence.h: Still create mutex object when
390         single-threaded.
392 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
394         * include/bits/stl_algobase.h (fill, fill_n): Revert last
395         change: actually we need to copy construct an object of type
396         _Tp, not of type iterator_traits<>::value_type, therefore the
397         code is ok.
399 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
401         * include/bits/stl_algobase.h (fill, fill_n): Tighten the
402         dispatch: use iterator_traits<>::value_type, not _Tp.
404 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
406         * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
407         * testsuite/25_algorithms/fill/2.cc: Likewise.
409 2004-06-25  Dan Nicolaescu  <dann@ics.uci.edu>
410             Paolo Carlini  <pcarlini@suse.de>
412         * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
413         for fill and fill_n, respectively: when copying is cheap, use a
414         temporary to avoid a memory read in each iteration.
416 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
418         * testsuite/25_algorithms/fill/1.cc: New.
419         * testsuite/25_algorithms/fill/2.cc: Likewise.
421 2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>
423         * include/debug/formatter.h (__gnu_debug::_Error_formatter):
424         Remove copy constructor and assignment operator.
426 2004-06-24  Benjamin Kosnik  <bkoz@redhat.com>
428         * include/bits/concurrence.h (__gnu_cxx::lock): New.
429         * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
430         (__pool_base::_M_get_mutex): New.
431         * include/bits/allocator.h: Tweak.
432         * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
433         * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
434         * include/bits/stl_threads.h: Remove.
435         * include/Makefile.am: Also here.
436         * include/Makefile.in: Regenerate.
438         * src/locale_init.cc: Use __gnu_cxx::lock.
440         * src/allocator.cc: Move all instantiations...
441         * src/allocator-inst.cc: ...here.
442         
443 2004-06-23  Andrew Pinski  <apinski@apple.com>
445         * linkage.m4: Remove check for libmx.   
446         * configure: Regenerate.
448 2004-06-23  Paolo Carlini  <pcarlini@suse.de>
450         PR libstdc++/16154
451         * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
452         Don't require the _DefaultConstructibleConcept.
453         (struct _ForwardIteratorConcept): Require it here.
455 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
457         * include/bits/istream.tcc (getline): Make sure arguments passed
458         to min/max have the same type.
459         * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
460         * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
462 2004-06-22  Benjamin Kosnik  <bkoz@redhat.com>
464         * docs/html/abi.html: Update links.
466 2004-06-22  Paolo Carlini  <pcarlini@suse.de>
468         * testsuite/26_numerics/complex_inserters_extractors.cc,
469         complex_value.cc, buggy_complex.cc: Move to...
470         * testsuite/26_numerics/complex/: ... here.
471         * testsuite/26_numerics/c99_classification_macros_c++.cc,
472         c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
473         fabs_inline.cc: Move to...
474         * testsuite/26_numerics/cmath/: ... here.
475         * testsuite/26_numerics/binary_closure.cc, slice.cc,
476         slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
477         valarray_name_lookup.cc, valarray_operators.cc,
478         valarray_subset_assignment.cc: Move to...
479         * testsuite/26_numerics/valarray/: ... here (new dir).
480         * testsuite/26_numerics/sum_diff.cc: Move to...
481         * testsuite/26_numerics/numeric/: ... here (new dir).
483 2004-06-22  Paolo Carlini  <pcarlini@suse.de>
485         * include/std/std_istream.h (ignore(streamsize __n = 1,
486         int_type __delim = traits_type::eof())): Split into...
487         (ignore(), ignore(streamsize __n), ignore(streamsize __n,
488         int_type __delim)): The first two can be much more simpler
489         and efficient than the fully general case; also, the last
490         two can take advantage of the same mechanism already used
491         for getline.
492         * include/bits/istream.tcc (ignore(streamsize __n = 1,
493         int_type __delim = traits_type::eof()): Remove.
494         (ignore(), ignore(streamsize __n), ignore(streamsize __n,
495         int_type __delim)): New.
497 2004-06-21  Loren J. Rittle  <ljrittle@acm.org>
499         * config/linker-map.gnu: Use wildcards for
500         __basic_file::sys_open(FILE*, _Ios_Openmode).
502 2004-06-20  Paolo Carlini  <pcarlini@suse.de>
504         * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
506 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
508         * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
509         the alignment requested.
510         (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
511         (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
512         (__mt_alloc<>::deallocate): Likewise.
514 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
516         PR libstdc++/16020
517         * include/debug/safe_base.h
518         (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
519         _Safe_sequence_base::operator=): Provide definitions.
520         * testsuite/23_containers/bitset/cons/16020.cc: New.
522 2004-06-18  Benjamin Kosnik  <bkoz@redhat.com>
524         * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
525         (__pool_base): Remove unused template parameter.  Add
526         protected. Move lock data into __pool_base::_Lock. Remove static
527         on member functions.
528         (__pool_base::_M_get_free_list): New.
529         (__pool_alloc): Move _S_force new here.
530         * src/allocator.cc: Move out of line __pool_base definitions here.
531         * config/linker-map.gnu: Export bits from __pool_base.
532         
533 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
535         * config/locale/gnu/numeric_members.cc
536         (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
537         assignments of _M_decimal_point and _M_thousands_sep.
538         * config/locale/gnu/time_members.cc
539         (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
540         and reformat assignments of date and time fields.
542 2004-06-16  Paolo Carlini  <pcarlini@suse.de>
544         * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
545         to use _Data_allocate.
546         * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
547         (rope<>::_S_substring): Likewise.
548         (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
549         (rope<>::c_str()): Likewise.
550         (rope<>::replace_with_c_str()): Likewise.
552         * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
553         Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
554         not _RopeRep.
555         (_Rope_iterator_base<>::_S_setcache): Likewise.
556         (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
557         (rope<>::_S_substring): Likewise.
558         (rope<>::_S_dump): Likewise.
559         (rope<>::_S_fetch_ptr): Likewise.
560         (rope<>::_S_compare): Likewise.
561         (rope<>::replace_with_c_str()): Likewise.               
563         * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
564         * testsuite/ext/rope/2.cc: New.
566 2004-06-16  Paolo Carlini  <pcarlini@suse.de>
567             Matt Austern  <austern@apple.com>
569         * testsuite/ext/rope/3.cc: New.
571 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
573         * acinclude.m4: Remove useless multilib configury.
574         * Makefile.am: Remove useless multilib rules.
575         * aclocal.m4: Regenerate.
576         * Makefile.in: Regenerate.
577         * configure: Regenerate.
579 2004-06-15  Paolo Carlini  <pcarlini@suse.de>
581         * include/ext/hashtable.h: Trivial formatting fixes.
582         * include/ext/rb_tree: Likewise.
584 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
586         * include/ext/hash_map: Trivial formatting fixes.
587         * include/ext/hash_set: Likewise.
588         * include/ext/memory: Likewise.
589         * include/ext/numeric: Likewise.
591 2004-06-14  Benjamin Kosnik  <bkoz@redhat.com>
593         * Makefile.in: Regenerate with automake 1.8.5.
594         * aclocal.m4: Same.
595         * include/Makefile.in: Same.
596         * libmath/Makefile.in: Same.
597         * libsupc++/Makefile.in: Same.
598         * po/Makefile.in: Same.
599         * src/Makefile.in: Same.
600         * testsuite/Makefile.in: Same.
602 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
604         * include/ext/slist: Trivial formatting fixes.
606 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
608         * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
609         Don't use the 'magic number' 10 in the computation of __minlen;
610         never access __name past __minlen; in the loop over __i3, don't
611         decrease __nmatches and increase __i3 at once, only either of
612         the two; tidy.
614 2004-06-13  Paolo Carlini  <pcarlini@suse.de>
616         * include/bits/locale_facets.tcc (time_get<>::do_get_time,
617         time_get<>::do_get_date): Use only once _M_extract_via_format,
618         instead of going through "%X"/"%x" and calling it two times
619         (+ using widen).
621 2004-06-12  Paolo Carlini  <pcarlini@suse.de>
623         * include/ext/algorithm: Trivial formatting fixes.
624         * include/ext/functional: Likewise.
625         * include/ext/hash_fun.h: Likewise.
626         * include/ext/iterator: Likewise.
628 2004-06-12  Paolo Carlini  <pcarlini@suse.de>
630         * include/bits/basic_string.tcc (find(const _CharT*, size_type,
631         size_type)): Reimplement using std::search.
632         * src/string-inst.cc: Instantiate std::search for char/wchar_t.
634 2004-06-12  Dhruv Matani  <dhruvbird@gmx.net>
636         * testsuite/performance/21_strings/string_find.cc: New.
638 2004-06-10  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
640         * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
642 2004-06-10  Jan van Dijk  <jan@etpmod.phys.tue.nl>
644         * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
645         this function return a value.
647 2004-06-09  Paolo Carlini  <pcarlini@suse.de>
649         PR libstdc++/15775
650         * include/bits/stl_deque.h: Consistently with stl_set.h, define
651         pointer as allocator's pointer, likewise for reference,
652         const_pointer, and const_reference.
653         * include/bits/stl_list.h: Likewise.
654         * include/bits/stl_map.h: Likewise.
655         * include/bits/stl_multimap.h: Likewise.
656         * include/bits/stl_vector.h: Likewise.
658 2004-06-09  Benjamin Kosnik  <bkoz@redhat.com>
660         * crossconfig.m4: Remove signbit, signbitf, signbitl.   
661         * linkage.m4: Comment LIBMATHOBJS, tweak others.  AC_DEFINES for
662         builtin math functions instead of AC_DEFINE_UNQUOTED.
663         * configure: Regenerate.
664         
665 2004-06-08  Benjamin Kosnik  <bkoz@redhat.com>
667         * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
668         * docs/doxygen/mainpage.html: Remove links.
670 2004-06-08  Jason Merrill  <jason@redhat.com>
672         * config/linker-map.gnu: Use wildcards for
673         __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
675 2004-06-08  Paolo Carlini  <pcarlini@suse.de>
677         * include/ext/pool_allocator.h: Convert to a global free-list,
678         as per the original SGI/HP design: move the implementation
679         details to struct __pool_base, from which __pool_alloc derives.
680         * src/allocator.cc: Instantiate __pool_base.
682 2004-06-07  Dhruv Matani  <dhruvbird@gmx.net>
683             Paolo Carlini  <pcarlini@suse.de>
685         * testsuite/testsuite_performance.h
686         (resource_counter::allocated_memory): Make it return the right
687         number of bytes requested by the allocators/application. This is
688         the sbrk+mmaped memory.
690 2004-06-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
692         * include/std/std_complex.h (log): Tidy.
694 2004-05-31  Benjamin Kosnik  <bkoz@redhat.com>
696         * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
697         * testsuite/testsuite_abi.cc: Same.
698         * configure.ac (libtool_VERSION): Bump to 6:1:0.
699         * configure: Regenerate.
700         * aclocal.m4: Regenerate.
701         
702 2004-05-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
704         * include/std/std_complex.h (complex<_Tp>): Properly indent
705         to follow C++STYLE. 
706         (complex<>::__rep): New.
707         (__complex_abs): New.  Dispatch to built-ins.
708         (abs): Use them.
709         (__complex_arg): New. Dispatch to built-ins.
710         (arg): Use it.
711         (__complex_cos): New. Dispatch to built-ins.
712         (cos): Use it.
713         (__complex_cosh): New. Dispatch to built-ins.
714         (cosh): Use it.
715         (__complex_exp): New. Dispatch to built-ins.
716         (exp): Use it.
717         (__complex_log): New. Dispatch to built-ins.
718         (log): Use it.
719         (__complex_sin): New. Dispatch to built-ins.
720         (sin): Use it.
721         (__complex_sinh): New. Dispatch to built-ins.
722         (sinh): Use it.
723         (__complex_sqrt): New. Dispatch to built-ins.
724         (sqrt): Use it.
725         (__complex_tan): New. Dispatch to built-ins.
726         (tan): Use it.
727         (__complex_tanh): New. Dispatch to built-ins.
728         (tanh): Use it.
729         (__complex_pow): New. Dispatch to built-ins.
730         (pow): Use it.
732 2004-05-29  Richard B. Kreckel  <Richard.Kreckel@Framatome-ANP.com>
733             Benjamin Kosnik  <bkoz@redhat.com>
734         
735         PR libstdc++/14600
736         * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
737         * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
738         * config/io/basic_file_stdio.cc (__basic_file::file): New.
739         * config/io/basic_file_stdio.h: Define.
741 2004-05-27  Benjamin Kosnik  <bkoz@redhat.com>
743         PR libstdc++/15675
744         * docs/html/documentation.html: Update doxygen links for 3.4.0.
746 2004-05-27  Jan Beulich  <jbeulich@novell.com>
748         * scripts/create_testsuite_files: Tweak.
750 2004-05-25  Benjamin Kosnik  <bkoz@redhat.com>
752         PR libstdc++/15489
753         * scripts/create_testsuite_files: Revert xtype change, add non-GNU
754         bits to do the same thing.
756 2004-05-24  Paolo Carlini  <pcarlini@suse.de>
758         * include/bits/istream.tcc (ignore): Correctly deal with
759         n == numeric_limits<streamsize>::max().
760         * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
762         * include/bits/istream.tcc (basic_istream<>::getline): Prefer
763         '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
764         __n == numeric_limits<>::min().
766         * include/bits/istream.tcc: Minor tweaks.
768         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
769         Tighten.
770         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
771         Likewise.
772         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
773         Likewise.
774         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
775         Likewise.
776         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
778 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
780         PR libstdc++/12854
781         Fixups for -Weffc++.    
782         * include/bits/basic_string.h (basic_string::operator=): Return
783         pointer to this instead of result of assign. Although redundant,
784         this doesn't impact resultant codegen.
785         
786         * include/bits/locale_facets.h (__numpunct_cache): Declare
787         assignment opxserator and copy constructor private.
788         (__timepunct_cache): Same.
789         (__moneypunct_cache): Same.
790         (collate): Use member initialization list for _M_c_locale_collate.
791         * config/locale/gnu/messages_members.h: Same.
792         * config/locale/gnu/time_members.h (__timepunct): Same. 
793         * src/codecvt.cc: Use member initialization list to initialize
794         _M_c_locale_codecvt.    
795         * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
796         * config/os/gnu-linux/ctype_noninline.h: Same.
797         * src/locale.cc (_Impl): Same.
798         * src/locale_init.cc: Same.
799         * src/localename.cc: Same.      
801         * include/bits/basic_ios.h (basic_ios): Complete member
802         initialization list.
803         * include/bits/istream.tcc (basic_istream::sentry): Same.
804         * include/bits/ostream.tcc (basic_ostream::sentry): Same.
805         * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
806         _M_pback to member initialization list.
807         * include/std/std_streambuf.h: Same.
808         * include/std/std_sstream.h: Same, for _M_mode.
809         * src/ios.cc (ios_base): Same.
810         
811         * include/ext/rope: Make derived classes match exception
813          specifications. Add copy constructors and assignment operators.
815         * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
816         constructor and assignment operator protected.
817         (_Safe_iterator_base): Same.
818         * include/debug/formatter.h (_Error_formatter): Define copy
819         constructor and assignment operator.
821         * include/backward/strstream: Declare assignment operator and copy
822         constructor private.
824 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
826         * testsuite/testsuite_hooks.h (func_callback): Declare copy
827         constructor and assignment operator private.    
828         * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
829         exception specifications of base class.
830         * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
831         * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
832         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
833                 
834 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
836         * libsupc++/cxxabi.h: Remove duplicated and useless public and
837         private keywords in class declarations. Format. Use
838         stddef.h. Expose declarations to "C" compilation.
839         * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
840         assignment operator.
841         (__dyncast_result): Same.
842         * libsupc++/vec.cc (uncatch_exception): Same, use member
843         initialization list.
844                  
845 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
847         * testsuite/abi_check.cc: Add unistd.h.
849 2004-05-22  Paolo Carlini  <pcarlini@suse.de>
851         PR libstdc++/15565
852         * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
853         __int_to_char(unsigned long long)): Showpos is not relevant
854         for unsigned types.
855         * testsuite/22_locale/num_put/put/char/15565.cc: New.
856         * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
858         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
859         char.
860         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
861         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
862         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
863         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
864         * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
865         * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
867 2004-05-21  Matthias Klose  <doko@debian.org>
869         * docs/doxygen/run_doxygen:  Bump required version.
871 2004-05-21  Benjamin Kosnik  <bkoz@redhat.com>
873         * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
874         * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
876 2004-05-21  Paolo Carlini  <pcarlini@suse.de>
878         * include/bits/istream.tcc (ignore): Remove redundant line.
879         (readsome): Tidy, closely following 27.6.1.3, p30.
881 2004-05-20  Paolo Carlini  <pcarlini@suse.de>
883         * include/bits/istream.tcc (operator>>(basic_istream<>&,
884         basic_string<>&)): Use a temporary buffer, thus avoiding
885         reallocation for common case.
886         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
887         New.
888         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
889         Likewise.
891         * include/bits/istream.tcc: Const-ification of a few variables.
893         * include/bits/ostream.tcc: Trivial formatting fixes and
894         const-ification of some variables.
896 2004-05-20  Benjamin Kosnik  <bkoz@redhat.com>
898         PR libstdc++/15123
899         PR libstdc++/13928
900         * docs/doxygen/Intro.3: Remove Allocators.3.
901         Add new extension headers, extension namespace list.
902         * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
903         Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
904         __gnu_debug::. Remove __policy_ renames.
905         * docs/doxygen/guide.html: Add dot note.
906         * docs/doxygen/stdheader.cc: Edit, add files.
907         * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
908         
909 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
911         * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
913 2004-05-18  Jan Beulich  <jbeulich@novell.com>
915         PR libstdc++/15489
916         * scripts/create_testsuite_files: Also find source files through
917           symbolic links.
919 2004-05-18  Jan Beulich  <jbeulich@novell.com>
921         PR libstdc++/15488
922         * testsuite/lib/libstdc++.exp: Make test files writable.
924 2004-05-18  Paolo Carlini  <pcarlini@suse.de>
926         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
927         tweaks.
929 2004-05-18  Dhruv Matani  <dhruvbird@gmx.net>
931         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
932         allocation loop which removes blocks from the global free list
933         from O(N) to O(1) when the required blocks are <= the number
934         available.
936 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
938         * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
940 2004-05-17  Benjamin Kosnik  <bkoz@redhat.com>
942         * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
943         * testsuite/23_containers/deque/14340.cc: New.
944         * testsuite/23_containers/list/14340.cc: New.
945         * testsuite/23_containers/map/14340.cc: New.
946         * testsuite/23_containers/multimap/14340.cc: New.
947         * testsuite/23_containers/multiset/14340.cc: New.
948         * testsuite/23_containers/set/14340.cc: New.
949         * testsuite/23_containers/vector/14340.cc: New.
951 2004-05-17  Douglas Gregor   <gregod@cs.rpi.edu>
953         PR libstdc++/14340 
954         * include/debug/safe_iterator.h (_Safe_iterator converting 
955         constructor): Only allow declaration to instantiate when the 
956         incoming _Safe_iterator has exactly the right iterator type.
958 2004-05-17  Jonathan Wakely  <redi@gcc.gnu.org>
960         * include/bits/boost_concept_check.h: Fix old attribute syntax.
961         * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
962         to pass concept-checks.
963         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
964         * testsuite/23_containers/set/modifiers/swap.cc: Same.
965         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
967 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
969         * include/std/std_bitset.h: Minor formatting fixes.
971 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
973         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
974         Consistently update __bin._M_free[0].
975         (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
976         __bin._M_free[0] to simplify the while loop (i.e., the number
977         of iterations becomes known at the outset).
979 2004-05-15  Paolo Carlini  <pcarlini@suse.de>
981         * include/std/std_bitset.h: Trivial formatting fixes.
983 2004-05-14  Paolo Carlini  <pcarlini@suse.de>
984             Ivan Godard  <igodard@pacbell.net>
986         PR libstdc++/15361
987         * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
988         * testsuite/23_containers/bitset/ext/15361.cc: New.
990 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
992         PR libstdc++/15046
993         * crossconfig.m4: Add C99 math bits for linux crosses.
994         * configure: Regenerate.
995         
996 2004-05-13  Simon Marshall <simon.marshall@misys.com>
997             Benjamin Kosnik  <bkoz@redhat.com>
999         PR libstdc++/15090
1000         * include/bits/locale_facets.h: Fix for -fno-for-scope.
1001         * include/debug/safe_sequence.h: Same.
1002         * include/debug/safe_iterator.tcc: Same.
1003         * src/debug.cc: Same.
1004         * src/locale.cc: Same.
1005         * src/locale_init.cc: Same.
1006         * src/localename.cc: Same.
1007         * config/locale/gnu/ctype_members.cc: Same.
1008         * config/locale/gnu/numeric_members.cc: Same.
1009         * testsuite/testsuite_abi.cc: Same.
1010         * testsuite/testsuite_hooks.cc: Same.
1011         
1012 2004-05-13  Jonathan Wakely  <redi@gcc.gnu.org>
1013         
1014         * docs/html/abi.html: Document effect of -fabi-version on value
1015         of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
1016         Fix markup.
1018 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
1020         PR libstdc++/15074      
1021         * docs/html/faq/index.html: Update docs for libsupc++ usage.
1023 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
1025         PR libstdc++/15412
1026         * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
1027         __gnu_internal.
1028         (_GLIBCXX_mutex_address): Same.
1029         (_GLIBCXX_once): Same.  
1030         (_GLIBCXX_mutex_init): Same.
1031         (_GLIBCXX_mutex_address_init): Same.
1032         
1033 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
1034         
1035         * docs/html/abi.html: New.
1036         * docs/html/abi.txt: Remove.
1037         * docs/html/documentation.html: Add link.
1038         * testsuite/Makefile.am: Add files.
1039         * testsuite/Makefile.in: Regenerated.
1040         * testsuite/abi_check.cc: Move and modify code into...
1041         * testsuite/testsuite_abi.cc: Add.
1042         * testsuite/testsuite_abi.h: Add.
1044         * docs/html/17_intro/TODO: Update.
1045         * include/bits/stl_pair.h: Format.
1046         
1047 2004-05-06  Matthias Klose  <doko@debian.org>
1049         * include/backward/iterator.h:  Add GPL copyright info,
1050         with exception clause.
1051         * include/bits/boost_concept_check.h: Likewise.
1052         * include
1053         * libsupc++/tinfo.h: Likewise.
1054         * po/string_literals.cc: Likewise.
1055         
1056 2004-05-03  Andreas Tobler  <a.tobler@schweiz.ch>
1058         * acinclude.m4: Replace -W with more speaking -Wextra.
1059         * configure: Rebuilt.
1061 2004-05-03  Paolo Carlini  <pcarlini@suse.de>
1063         Optimize locale::_M_impl->_M_names for the most common cases:
1064         !_M_names[0] means unnamed; !_M_names[1] means all the categories
1065         the same name (_M_names[0] && _M_names[1] means that the full set
1066         of _M_names must be processed, the general case).
1067         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
1068         Tweak, saving work when !_M_names[1].
1069         (locale::locale(const locale&, _Facet*): Simplify: now just setting
1070         _M_names[0] = 0 means unnamed.
1071         * src/locale.cc (locale::operator==): Deal first with the common,
1072         easy cases, otherwise fall back to locale::name().
1073         (locale::name()): Tweak, if !_M_names[0] just return "*".
1074         (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
1075         copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
1076         * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
1077         * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
1078         Simplify when !std::strchr, just updating _M_names[0]; clean up.
1079         (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
1080         for the general case (full set of names), then do the usual work;
1081         clean up.
1083         * src/locale.cc (locale::name()): Reserve space in __ret.
1084         * src/locale_init.cc (locale::global(const locale&)): Save
1085         the name in a temporary.
1086         * src/localename.cc (locale::locale(const char*)): Reserve space
1087         in __str.
1089 2004-04-29  Paolo Carlini  <pcarlini@suse.de>
1091         * src/locale.cc (locale::operator==): Always avoid constructing
1092         locale::name(), directly compare pairs of _M_names.
1094 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
1096         * include/bits/istream.tcc: Fix comment.
1098 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
1100         * include/bits/stl_vector.h: Trivial formatting fixes.
1101         * include/bits/vector.tcc: Likewise.
1103 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
1105         PR libstdc++/15002 (continued again)
1106         * include/bits/istream.tcc (getline(basic_istream<>&,
1107         basic_string<>&, _CharT)): Use a temporary buffer, thus
1108         avoiding reallocation for common case.
1110         * include/bits/basic_string.tcc (_S_construct(_InIterator,
1111         _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
1112         of temporary buffer to a power of two.
1114         * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
1116 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
1118         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
1119         New.
1120         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
1121         Likewise.
1122         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
1124 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
1125             Petur Runolfsson  <peturr02@ru.is>
1127         PR libstdc++/15002 (continued)
1128         * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
1129         streamsize, char_type)): Use traits::find/copy in a loop to speed
1130         up greatly the function in the common case (I/O buffer size >> 1).
1132 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
1134         * testsuite/27_io/basic_istream/getline/char/4.cc: New. 
1136         * include/bits/istream.tcc (getline(basic_istream<>&,
1137         basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
1138         of sbumpc(), consistently with the other functions, thus also
1139         dealing correctly with the case of exceeded string::max_size().
1141 2004-04-24  Matthias Klose  <doko@debian.org>
1143         Jonathan Wakely  <cow@compsoc.man.ac.uk>
1144         * docs/html/configopts.html: Fix reference to allocator config option.
1146 2004-04-23  Andrew Pinski  <pinskia@physics.uc.edu>
1148         * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
1149         * configure: Regenerate.
1151 2004-04-23  Daniel Jacobowitz  <drow@mvista.com>
1153         PR libstdc++/15047, libstdc++/11610
1154         * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
1155         (libstdc++_init): Don't pass outdir to v3-copy-files.
1157 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
1159         * include/bits/deque.tcc: Trivial formatting fixes.
1160         * include/bits/stl_deque.h: Likewise.
1161         * include/bits/stl_list.h: Likewise.
1162         * include/bits/stl_tree.h: Likewise.
1164 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
1165             Andrew Pinski  <pinskia@physics.uc.edu>
1167         * include/bits/basic_string.tcc (_M_mutate): Don't compute
1168         __src unnecessarily.
1170 2004-04-19  Benjamin Kosnik  <bkoz@redhat.com>
1172         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc: 
1173         Clarify assertion, set test variable to false before assert.
1174         * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
1175         * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
1176         * testsuite/27_io/ios_base/storage/2.cc: Same.
1177         
1178         * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
1179         function returns.
1180         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
1181         * testsuite/27_io/fpos/14320-3.cc: Same.
1182         
1183         * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
1184         * testsuite/27_io/fpos/1.cc: Same.
1185         * testsuite/27_io/basic_stringstream/2.cc: Same.
1186         * testsuite/27_io/basic_stringbuf/4.cc: Same.
1187         * testsuite/27_io/basic_stringbuf/1.cc: Same.
1188         * testsuite/27_io/basic_stringbuf/2.cc: Same.
1189         * testsuite/27_io/basic_streambuf/2.cc: Same.
1190         * testsuite/27_io/basic_ostringstream/2.cc: Same.
1191         * testsuite/27_io/basic_ostream/2.cc: Same.
1192         * testsuite/27_io/basic_ofstream/2.cc: Same.
1193         * testsuite/27_io/basic_istringstream/2.cc: Same.
1194         * testsuite/27_io/basic_istream/2.cc: Same.
1195         * testsuite/27_io/basic_iostream/2.cc: Same.
1196         * testsuite/27_io/basic_ios/2.cc: Same.
1197         * testsuite/27_io/basic_ifstream/2.cc: Same.
1198         * testsuite/27_io/basic_fstream/2.cc: Same.
1199         * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
1201         * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
1202         unsigned against zero.
1203         * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
1204         * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
1206         * testsuite/18_support/new_delete_placement.cc: Initialize
1207         variables before first use.
1208         * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
1209         * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
1210         * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
1211         * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc: 
1212         Same.
1213         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
1214         * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc: 
1215         Same.
1216         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
1217         * testsuite/27_io/types/2.cc: Same.
1219         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
1220         file name.      
1221         * testsuite/27_io/fpos/14775.cc: Same.
1222         
1223 2004-04-19  Paolo Carlini  <pcarlini@suse.de>
1225         PR libstdc++/15002 (partial)
1226         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
1227         Special case __n2 == 1, not calling traits_type::assign/copy. 
1229 2004-04-17  Benjamin Kosnik  <bkoz@redhat.com>
1231         * include/bits/stl_bvector.h: Use _M_impl._M_start.
1232         
1233 2004-04-16  Benjamin Kosnik  <bkoz@redhat.com>
1234         
1235         * include/bits/c++config (_GLIBCXX_STD): New.
1236         * src/list.cc: Use it.
1237         * include/std/std_bitset.h: Same.
1238         * include/bits/vector.tcc: Same.
1239         * include/bits/stl_set.h: Same.
1240         * include/bits/stl_multiset.h: Same.
1241         * include/bits/stl_multimap.h: Same.
1242         * include/bits/stl_map.h: Same.
1243         * include/bits/stl_list.h: Same.
1244         * include/bits/stl_vector.h: Same.
1245         * include/bits/stl_bvector.h: Same.
1246         * include/bits/stl_deque.h: Same.
1247         * include/bits/deque.tcc: Same.
1248         * include/bits/list.tcc: Same.
1249         * include/debug/vector: Same.
1250         * include/debug/set.h: Same.
1251         * include/debug/multiset.h: Same.
1252         * include/debug/multimap.h: Same.
1253         * include/debug/map.h: Same.
1254         * include/debug/list: Same.
1255         * include/debug/deque: Same.
1256         * include/debug/bitset: Same.   
1257         * include/debug/formatter.h (__gnu_debug): Remove using directive.
1258         Add using declaration for std::type_info.
1259         * include/debug/safe_iterator.h: Add using declaration for
1260         std::iterator_traits and std::pair.
1261         * src/debug_list.cc: New.
1262         * src/Makefile.am: Add debug_list.cc.
1263         * src/Makefile.in: Regenerate.
1264         * config/linker-map.gnu: Add _List_node_base exports for std and
1265         __gnu_norm.
1267         * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
1268         idiom that other containers use.
1269         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
1270                         
1271 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
1273         PR libstdc++/14975
1274         * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
1275         in case of error.
1276         * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
1277         * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
1279 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
1281         * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
1282         used anymore.
1283         * config.h.in: Regenerate.
1285 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
1287         * config/locale/generic/monetary_members.cc
1288         (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
1289         btowc unnecessarily, just cast to wchar_t (the concerned chars
1290         all belong to the basic character set).
1291         * config/locale/generic/numeric_members.cc
1292         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1293         * config/locale/gnu/monetary_members.cc
1294         (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
1295         * config/locale/gnu/numeric_members.cc
1296         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1298 2004-04-15  Paolo Carlini  <pcarlini@suse.de>
1300         * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
1301         avoid constructing unnecessarily this->name().
1303 2004-04-14  Zack Weinberg  <zack@codesourcery.com>
1305         * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
1306         Change definition of CXX to use $(shell) instead of backticks.
1307         * testsuite/Makefile.in: Regenerate.
1309 2004-04-12  Dhruv Matani  <dhruvbird@gmx.net>
1311         * testsuite/performance/20_util/allocator/list_sort_search.cc:
1312         Minor formatting fixes.
1313         * testsuite/performance/20_util/allocator/map_mt_find.cc:
1314         Likewise.
1316 2004-04-12  Paolo Carlini <pcarlini@suse.de>
1318         * config/locale/gnu/numeric_members.cc
1319         (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
1320         in __uselocale, since btowc is called for chars belonging to
1321         the basic character set.
1323 2004-04-09  Paolo Carlini  <pcarlini@suse.de>
1325         * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
1326         * testsuite/22_locale/messages/members/char/2.cc: Ditto.
1327         * testsuite/22_locale/messages/members/char/3.cc: Ditto.
1328         * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
1329         * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
1330         * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
1331         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
1332         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
1333         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
1334         * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
1335         * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
1336         * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
1337         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
1338         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
1339         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
1340         * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
1341         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
1343 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
1345         * config/locale/generic/time_members.cc
1346         (__timepunct<char>::_M_initialize_timepunct,
1347         __timepunct<wchar_t>::_M_initialize_timepunct): the correct
1348         _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
1349         * config/locale/gnu/time_members.cc
1350         (__timepunct<char>::_M_initialize_timepunct,
1351         __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
1352         * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
1353         * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
1355         * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
1356         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
1357         * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
1358         * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
1359         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
1360         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
1361         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
1362         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
1363         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
1364         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
1365         * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
1366         * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
1367         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
1368         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
1369         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
1370         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
1371         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
1372         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
1373         * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
1374         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
1375         * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
1376         * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
1377         * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
1378         * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
1379         * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
1380         * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
1381         * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
1382         * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
1383         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
1384         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
1385         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
1386         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
1387         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
1388         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
1389         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
1390         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
1392         * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
1394 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
1396         * config/locale/gnu/monetary_members.cc
1397         (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
1398         _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
1399         and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
1400         _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
1401         * config/locale/gnu/numeric_members.cc
1402         (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
1403         and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
1405 2004-04-06  Benjamin Kosnik  <bkoz@redhat.com>
1407         Fixups for EDG front end.
1408         * include/ext/rope: Instead of non-existent function
1409         _Data_allocate, use allocator's allocate. Use this.
1410         (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
1411         enumerations from _Rope_RopeRep here.
1412         * include/ext/ropeimpl.h: Same.
1413         * src/ext-inst.cc (_S_min_len): Fix up definition.
1415         * config/locale/gnu/ctype_members.cc: Qualify base class members
1416         with this.
1417         * config/locale/generic/ctype_members.cc: Same.
1418         * config/locale/gnu/messages_members.h: Same.
1419         * config/locale/generic/messages_members.h: Same.
1420         * src/ctype.cc: Same.
1421         * include/bits/codecvt.h: Same.
1423         * include/bits/boost_concept_check.h: Declare.
1424         (__error_type_must_be_an_unsigned_integer_type): Remove this.
1425         (__error_type_must_be_an_integer_type): Remove this.
1426         (__error_type_must_be_a_signed_integer_type): Remove this.
1428         * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
1430         * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
1431         specification to definition.
1432         (__cxa_allocate_exception): Same.
1433         * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
1434         * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
1435         (__cxa_get_globals): Same.
1437         * libsupc++/del_op.cc: Add comment about freestanding.
1439 2004-04-05  Paolo Carlini  <pcarlini@suse.de>
1441         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1442         The critical section is actually very small, only two assignments.
1444 2004-04-04  Paolo Carlini  <pcarlini@suse.de>
1445             Petur Runolfsson  <peturr02@ru.is>
1447         * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
1448         adapted from libstdc++/11378.
1450 2004-04-03  Paolo Carlini  <pcarlini@suse.de>
1452         * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
1453         some duplicated code.
1454         (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
1455         in the single threaded case.
1456         * testsuite/performance/20_util/allocator/list_sort_search.cc:
1457         Reorder and renumber the tests consistently with the other testfiles.
1458         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1459         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1460         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1462 2004-04-02  Paolo Carlini  <pcarlini@suse.de>
1464         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1465         Rearrange arithmetic to avoid computing two divisions at
1466         each deallocation.
1468 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
1470         * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
1471         Streamline the second half, wrapping it in a single
1472         '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
1473         conditionals inside loops.
1475 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
1477         PR libstdc++/14775
1478         * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
1479         * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
1480         GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
1481         to _GLIBCXX_RES_LIMITS.
1482         (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
1483         HAVE_LIMIT_*.
1484         * testsuite/testsuite_hooks.h: Declare set_file_limit.
1485         * testsuite/testsuite_hooks.cc: Define it, using getrlimit
1486         and setrlimit(RLIMIT_FSIZE).
1487         * testsuite/27_io/fpos/14775.cc: New.
1488         * config.h.in: Regenerate.
1489         * configure: Likewise.
1491 2004-03-31  Paolo Carlini  <pcarlini@suse.de>
1493         * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
1494         In v3 uses of sscanf, the special floating-point numbers INF,
1495         INFINITY, etc., cannot occur in input, therefore, if the latter
1496         is too large, ERANGE is always stored in errno, no need of finitel.
1498 2004-03-30  Benjamin Kosnik  <bkoz@redhat.com>
1500         PR libstdc++/14783
1501         * include/bits/stl_tree.h: Adjust initialization list order.
1503 2004-03-29  Loren J. Rittle  <ljrittle@acm.org>
1505         * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
1507 2004-03-29  Paolo Carlini  <pcarlini@suse.de>
1509         * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
1510         on allocator behavior, the memory pointed by data2 may well be not
1511         trashed.
1513 2004-03-28  Chavdar Botev  <cbotev@yahoo.com>
1515         PR libstdc++/14245
1516         * include/bits/basic_string.tcc
1517         (basic_string::basic_string(const basic_string&)): Pass to
1518         _Rep::_M_grab the actual allocator of the string being constructed
1519         not the default constructed one.
1521 2004-03-27  Benjamin Kosnik  <bkoz@redhat.com>
1523         libstdc++ PR/13598
1524         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
1525         (__enc_traits::_M_destroy): New.
1526         (__enc_traits::~__enc_traits): Use it.
1527         (__enc_traits::operator=): Use _M_destroy, _M_init.
1528         (__enc_traits::__enc_traits): Same.
1530 2004-03-27  Petur Runolfsson  <peturr02@ru.is>
1532         * testsuite/ext/enc_filebuf/char/13598.cc: New.
1534 2004-03-27  Paolo Carlini  <pcarlini@suse.de>
1536         * include/ext/mt_allocator.h: Uglify consistently names of
1537         variables, members and classes; tidy.
1539 2004-03-27  Dhruv Matani  <dhruvbird@gmx.net>
1541         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1542         Deallocation loop rewrote.
1544 2004-03-26  Paolo Carlini  <pcarlini@suse.de>
1546         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1547         __mt_alloc<>::deallocate): Protect two instances of
1548         block->thread_id with __GTHREADS.
1550 2004-03-25  Gawain Bolton  <gp.bolton@computer.org>
1552         * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
1553         default argument in constructors.
1554         (_Rb_tree::_M_empty_initialize): Remove.
1556 2004-03-25  Benjamin Kosnik  <bkoz@redhat.com>
1558         * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
1559         * testsuite/23_containers/set/operators/1_neg.cc: Same.
1561 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
1563         * include/bits/cpp_type_traits.h: Changed __is_pod
1564         completely. Now, it does not use any of the previous type_traits
1565         to detect the pod types, and it also detects function pointers as
1566         POD types.
1568         * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
1569         which encapsulates the internal implementation of an rb_tree. Made
1570         the allocator a base class of this class instead of the rb_tree,
1571         which was not conforming. This _Rb_tree_impl class is also
1572         specialized on whether the _Compare parameter is a POD type or
1573         not. If so, then it maintains the comparison function as a data
1574         member, otherwise it makes the _Compare parameter a base class of
1575         itself. Also, _M_key_compare is now a function instead of a data
1576         member, so that the above trick can work properly. Delegated the
1577         initialization of the other data members to this newly created
1578         class. Also, now other member functions of rb_tree must refer to
1579         _M_key_compare as _M_impl._M_key_compare(). The other data members
1580         (*) can be referenced to as _M_impl.(*), where
1581         (*) includes _M_header, and _M_node_count.
1583 2004-03-25  Paolo Carlini  <pcarlini@suse.de>
1585         * include/ext/mt_allocator.h (__mt_alloc<>::tune):
1586         Add _M_min_bin, the size in bytes of the smallest bin.
1587         (__mt_alloc<>::tune()): Tweak accordingly.
1588         (__mt_alloc<>::tune(size_t, ...)): Likewise.
1589         (__mt_alloc<>::block_record): Change to a union: members next
1590         and thread_id are never used at the same time.
1591         (__mt_alloc<>::allocate): Update consistently.
1592         (__mt_alloc<>::deallocate): Likewise.
1593         (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
1594         _S_bin_size for the configurable _M_min_size.
1596 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
1598         * include/bits/stl_list.h: Created a _List_impl class and made it
1599         derive from the allocator, instead of the list deriving from the
1600         allocator class, which was not conformant. Changed all references
1601         from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
1602         as above (changed all references to the concerned variables).
1604 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
1606         * include/bits/stl_deque.h: Created a _Deque_impl class and made
1607         it derive from the allocator, instead of the deque deriving from
1608         the allocator class, which was not conformant. Changed all
1609         references to the _M_start, _M_finish, _M_map, and _M_map_size to
1610         _M_impl.*.
1611         (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
1612         qualification in 2 places where it was missing.
1613         (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
1614         above.
1615         * include/bits/deque.tcc: Same as above (changed all references to
1616         the concerned variables).
1618 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
1620         * include/bits/stl_vector.h: Created a _Vector_impl class and made
1621         it derive from the allocator, instead of the _Vector_base class,
1622         deriving from the allocator which was not conformant. Changed all
1623         references to the _M_start, _M_finish, and _M_end_of_storage to
1624         _M_impl.*.
1625         * include/bits/vector.tcc: Same as above (changed all references
1626         to the concerned variables).
1628 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
1630         * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
1631         * testsuite/23_containers/list/cons/clear_allocator.cc: New.
1632         * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
1634 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
1636         * include/ext/malloc_allocator.h: Fixed the construct function to
1637         call global placement new instead of assignment. Added a check
1638         after the return from malloc to check whether returned pointer is
1639         NULL, and if so, throw std::bad_alloc().
1640         * include/ext/debug_allocator.h: Added a check in the deallocate
1641         function to check whether the user has passed a NULL pointer or
1642         not.
1644 2004-03-24  Benjamin Kosnik  <bkoz@redhat.com>
1646         * docs/html/20_util/allocator.html: Add bitmap_allocator links.
1648 2004-03-24  Andreas Schwab  <schwab@suse.de>
1650         * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
1651         warning from IA64 assembler.
1653 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
1655         * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
1656         function call __builtin_ctz instead of the while loop.
1657         (allocate) -> If condition has __builtin_expect.
1658         (deallocate) -> Ditto.
1659         Renamed a few left-over variables and typedefs according to the
1660         C++STYLE mentioned in the documentation.
1661         Protected calls to __gthread* by __gthread_active_p(), whose value
1662         is cached in the local variable __threads_active.
1664 2004-03-24  Felix Yen  <fwy@alumni.brown.edu>
1666         * testsuite/performance/20_util/allocator/producer_consumer.cc:
1667         Use linear algorithm for producer.
1669 2004-03-24  Paolo Carlini  <pcarlini@suse.de>
1671         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1672         __mt_alloc<>::deallocate): Avoid redundant conditionals.
1674 2004-03-23  Benjamin Kosnik  <bkoz@redhat.com>
1676         * include/bits/locale_facets.h: Tweaks for 80 column.
1677         (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
1678         (__moneypunct_cache::_M_cache): Same.
1679         (num_get): Don't inherit from __num_base.
1680         (num_put): Same.
1681         (money_get): Don't inherit from money_base.
1682         (money_put): Same.
1683         (__timepunct::_M_am_pm_format): New.
1684         (time_get::_M_extract_num): Return iterator, use ios_base as argument.
1685         (time_get::_M_extract_name): Same.
1686         (time_get::_M_extract_via_format): Same.
1687         * include/bits/locale_facets.tcc: Tweaks for 80 column.
1688         Use _M_getloc instead of getloc.
1689         * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
1690         * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
1691         * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
1693 2004-03-22  Paolo Carlini  <pcarlini@suse.de>
1695         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
1696         * configure: Regenerate.
1697         * config/allocator/pool_allocator_base.h: New.
1698         * include/ext/pool_allocator.h: Convert to a standard-conforming
1699         allocator.
1700         * src/allocator.cc: Tweak instantiations.
1701         * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
1702         * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
1703         * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
1704         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1705         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1706         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1708 2004-03-22  Hans-Peter Nilsson  <hp@axis.com>
1710         * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
1711         inline" and attribute-unused.  Qualify parameter __mem with
1712         "volatile".
1713         (__exchange_and_add): Ditto.  Add back memory clobber to asm.
1715 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
1717         * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
1718         Remove junk.
1719         * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
1720         Likewise.
1721         * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
1722         Likewise.
1723         * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
1724         Likewise.
1725         * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
1726         Likewise.
1727         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
1728         Likewise.
1729         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
1730         Likewise.
1731         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
1732         Likewise.
1733         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
1734         Likewise.
1735         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
1736         Likewise.
1738 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
1740         * include/std/std_valarray.h: Document DR389 [Ready].
1741         * docs/html/ext/howto.html: Add an entry for DR389.
1743 2004-03-19  Michael Eager  <eager@mvista.com>
1745         * config/cpu/mips/atomicity.h:  Prevent reg loads between LL and
1746         SC instructions.
1748 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
1750         * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
1751         static_cast-s.
1752         * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
1753         * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
1754         * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
1755         * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
1756         * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
1757         * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
1758         * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
1759         * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
1760         * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
1762 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
1763             Petur Runolfsson  <peturr02@ru.is>
1765         PR libstdc++/12077
1766         * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
1767         no way to find out the conversion used by the underlying FILE*.
1768         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
1769         * testsuite/27_io/objects/char/9.cc: Tweak.
1771 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
1773         PR libstdc++/14648
1774         * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
1775         memory allocation/deallocation calls.
1776         * testsuite/ext/14648.cc: New.
1778 2004-03-19  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
1780         PR libstdc++/14647
1781         * include/backward/bvector.h (bit_vector): Allocator is in std
1782         namespace.
1784 2004-03-19  Phil Edwards  <phil@codesourcery.com>
1786         * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT):  Set LIBICONV,
1787         not libiconv.  SUBST this variable as well.
1788         * testsuite/Makefile.am (site.exp):  New target, based on that
1789         created by automake.  Also set libiconv.
1791         * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
1792         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1793         testsuite/Makefile.in:  Regenerate.
1795 2004-03-16  Benjamin Kosnik  <bkoz@redhat.com>
1797         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
1798         new_allocator for all hosts.
1799         * configure: Regenerate.
1801 2004-03-16  Paolo Carlini  <pcarlini@suse.de>
1803         * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
1804         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
1806 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
1808         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1809         Adjust the logic underlying the parsing of symbol to deal
1810         correctly with an optional sign component (i.e., when either
1811         negative_sign or positive_sign is empty)
1812         * testsuite/22_locale/money_get/get/char/19.cc: New.
1813         * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
1815 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
1817         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1818         Do not accept an incomplete currency symbol.
1819         * testsuite/22_locale/money_get/get/char/18.cc: New.
1820         * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
1822 2004-03-13  Benjamin Kosnik  <bkoz@redhat.com>
1824         * config/allocator: New.
1825         * config/allocator/bitmap_allocator_base.h: New.
1826         * config/allocator/malloc_allocator_base.h: New.
1827         * config/allocator/mt_allocator_base.h: New.
1828         * config/allocator/new_allocator_base.h: New.
1829         * include/bits/allocator.h: Include c++allocator.h.
1830         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
1831         * aclocal.m4: Regenerate.
1832         * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
1833         * configure: Regenerate.
1834         * include/Makefile.am (host_headers_extra): Add c++allocator.h.
1835         * include/Makefile.in: Regenerate.
1836         * docs/html/configopts.html: Add enable-libstdcxx-allocator.
1838 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
1840         * include/bits/allocator.h: Revert.
1842 2004-03-12  Paolo Carlini  <pcarlini@suse.de>
1844         * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
1845         * include/bits/gslice_array.h: Add comment about DR 253.
1846         * include/bits/indirect_array.h: Likewise.
1847         * include/bits/mask_array.h: Likewise.
1848         * include/bits/slice_array.h: Likewise.
1850 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
1852         * testsuite/20_util/allocator/14176.cc: New.
1853         * include/ext/mt_allocator.h: Formatting fixes.
1855 2004-03-11  Dhruv Matani  <dhruvbird@HotPOP.com>
1857         * include/Makefile.am (ext_headers): Add
1858         ${ext_srcdir}/bitmap_allocator.h .
1859         * include/Makefile.in: Regenerate.
1860         * docs/html/ext/ballocator_doc.txt: New file.
1861         * include/ext/bitmap_allocator.h: New file.
1862         * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
1863         test.
1864         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1865         * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
1866         test for the bitmap_allocator<>.
1867         * testsuite/performance/20_util/allocator/insert.cc: Likewise.
1868         * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1869         * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1871 2004-03-11  Paolo Carlini  <pcarlini@suse.de>
1873         * include/std/std_complex.h (pow(const complex&, const _Tp&),
1874         pow(const _Tp&, const complex&), pow(const complex&,
1875         const complex&)): Fully qualify with std:: a few calls.
1876         * testsuite/26_numerics/complex/13450.cc: Minor tweak.
1878 2004-03-11  Steven Bosscher  <stevenb@suse.de>
1880         PR libstdc++/11706
1881         * include/c_std/cmath.tcc (__cmath_power): Define inline.
1883 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
1885         * configure.ac: Bump AC_PREREQ to 2.59.
1887 2004-03-10  Paolo Carlini  <pcarlini@suse.de>
1889         * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
1891 2004-03-10  Paul Kienzle  <pkienzle@nist.gov>
1892             Paolo Carlini  <pcarlini@suse.de>
1894         PR libstdc++/13450
1895         * include/std/std_complex.h (pow(const complex&, const _Tp&),
1896         pow(const _Tp&, const complex&)): Use cmath pow only when safe.
1897         * testsuite/26_numerics/complex/13450.cc: New.
1899         * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
1900         * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
1902 2004-03-10  Jerry Quinn  <jlquinn@optonline.net>
1904         PR libstdc++/3247
1905         * include/bits/gslice_array.h (gslice_array()): Make public.
1906         (operator=(gslice_array)): Make public.  Implement.
1907         * include/bits/indirect_array.h (indirect_array()): Make public.
1908         * include/bits/mask_array.h (mask_array()): Make public.
1909         (operator=(mask_array)): Make public.  Implement.
1910         * include/bits/valarray_array.tcc (__valarray_copy):
1911         Comment.  Add versions for gslice_array and mask_array.
1912         * testsuite/26_numerics/valarray_subset_assignment.cc:  New test.
1914 2004-03-09  Benjamin Kosnik  <bkoz@redhat.com>
1916         * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
1917         non-weak systems.
1918         * testsuite/23_containers/vector/modifiers/swap.cc: Same.
1919         * testsuite/23_containers/set/modifiers/swap.cc: Same.
1920         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1921         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1922         * testsuite/23_containers/map/modifiers/swap.cc: Same.
1923         * testsuite/23_containers/list/modifiers/swap.cc: Same.
1925         * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
1927 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
1929         PR c++/13658
1930         * testsuite/23_containers/deque/modifiers/swap.cc: New.
1931         * testsuite/23_containers/list/modifiers/swap.cc: New.
1932         * testsuite/23_containers/map/modifiers/swap.cc: New.
1933         * testsuite/23_containers/multimap/modifiers/swap.cc: New.
1934         * testsuite/23_containers/multiset/modifiers/swap.cc: New.
1935         * testsuite/23_containers/set/modifiers/swap.cc: New.
1936         * testsuite/23_containers/vector/modifiers/swap.cc: New.
1938 2004-03-08  Petur Runolfsson  <peturr02@ru.is>
1940         PR libstdc++/12658
1941         * testsuite/22_locale/locale/cons/12658_thread.cc: New.
1943 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
1945         * docs/html/ext/howto.html: Add entry for DR 103 [WP].
1946         * include/bits/stl_multiset.h: Add comment about DR 103.
1947         * include/bits/stl_set.h: Likewise.
1949 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
1951         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1952         The value _space_ indicates that at least one space is required
1953         at that position.
1954         * testsuite/22_locale/money_get/get/char/17.cc: New.
1955         * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
1957         * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
1958         * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
1960         * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
1961         Remove redundant conditional on __str.size().
1963 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
1965         * include/bits/allocator.h: Switch defaults to mt_alloc.
1967 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
1969         * include/ext/mt_allocator.h (_S_initialize): If
1970         !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
1972 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
1974         PR libstdc++/12658
1975         * src/locale_init.cc (locale::locale): Lock critical regions with
1976         external mutexes.
1977         (locale::global): Same.
1978         * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
1979         Add in once bits for cases without __GTHREAD_MUTEX_INIT.
1980         (__glibcxx_mutex_lock): Same.
1982         * config/cpu/generic/atomicity.h: Remove
1983         _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
1984         * src/misc-inst.cc: Move all locking bits out of this file.
1986         * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
1987         * src/misc-inst.cc: Same.
1988         * config/cpu/hppa/atomicity.h: Same.
1990         * config/linker-map.gnu: Remove types in the signature of atomic
1991         exports, as they may vary.
1993 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
1995         * include/bits/locale_facets.tcc: Tweak the comment preceding
1996         has_facet: doesn't throw.
1998 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
2000         * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
2001         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2002         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2003         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2004         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2005         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2006         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2007         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2009 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
2011         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2012         num_get<>::_M_extract_int, num_get<>::do_get(bool&),
2013         __pad<>::_S_pad): Prefer plain operator== to traits::eq().
2014         * testsuite/testsuite_character.h (struct __gnu_test::character):
2015         Provide operator==.
2016         * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
2017         Likewise.
2019 2004-03-05  Paolo Carlini  <pcarlini@suse.de>
2021         * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
2023 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
2025         * testsuite/23_containers/multiset/insert/1.cc: Test result string.
2027         * testsuite/23_containers/bitset/invalidation/1.cc: Main always
2028         returns 0.
2029         * testsuite/23_containers/deque/invalidation/4.cc: Same.
2030         * testsuite/23_containers/list/invalidation/1.cc: Same.
2031         * testsuite/23_containers/list/invalidation/2.cc: Same.
2032         * testsuite/23_containers/list/invalidation/3.cc: Same.
2033         * testsuite/23_containers/list/invalidation/4.cc: Same.
2034         * testsuite/23_containers/map/invalidation/2.cc: Same.
2035         * testsuite/23_containers/multimap/invalidation/1.cc: Same.
2036         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2037         * testsuite/23_containers/multiset/invalidation/1.cc: Same.
2038         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2039         * testsuite/23_containers/set/invalidation/1.cc: Same.
2040         * testsuite/23_containers/set/invalidation/2.cc: Same.
2041         * testsuite/23_containers/vector/invalidation/1.cc: Same.
2042         * testsuite/23_containers/vector/invalidation/2.cc: Same.
2043         * testsuite/23_containers/vector/invalidation/3.cc: Same.
2044         * testsuite/23_containers/vector/invalidation/4.cc: Same.
2046 2004-03-04  Paolo Carlini  <pcarlini@suse.de>
2048         * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
2049         CXXFLAGS_save.
2050         * testsuite/lib/libstdc++.exp: Don't add it conditionally to
2051         DEFAULT_CXXFLAGS.
2052         * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
2053         from the dg-options.
2054         * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
2055         * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
2056         * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
2057         * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
2058         * testsuite/23_containers/vector/resize/1.cc: Likewise.
2059         * testsuite/26_numerics/complex_value.cc: Likewise.
2060         * testsuite/27_io/ios_base/storage/1.cc: Likewise.
2061         * testsuite/27_io/ios_base/storage/2.cc: Likewise.
2062         * testsuite/27_io/ios_base/storage/3.cc: Likewise.
2063         * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
2064         * testsuite/27_io/objects/char/5.cc: Likewise.
2065         * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
2066         * testsuite/backward/11460.cc: Likewise.
2067         * testsuite/thread/pthread7-rope.cc: Likewise.
2069         * testsuite/21_strings/basic_string/compare/char/1.cc: Add
2070         missing test variable.
2071         * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
2072         missing test variable.
2074 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
2076         * testsuite/20_util/allocator/1.cc: Provide explicit
2077         instantiations for non-weak systems.
2078         * testsuite/20_util/binders.cc: Same.
2079         * testsuite/20_util/allocator/8230.cc: Same.
2080         * testsuite/20_util/allocator/10378.cc: Same.
2081         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
2082         * testsuite/22_locale/ctype/is/char/2.cc: Same.
2083         * testsuite/thread/pthread7-rope.cc: Same.
2084         * testsuite/thread/pthread6.cc: Same.
2085         * testsuite/thread/pthread5.cc: Same.
2086         * testsuite/thread/pthread4.cc: Same.
2087         * testsuite/thread/pthread1.cc: Same.
2088         * testsuite/ext/rope.cc: Same.
2089         * testsuite/ext/hash_set.cc: Same.
2090         * testsuite/ext/hash_map.cc: Same.
2091         * testsuite/ext/concept_checks.cc: Same.
2092         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
2093         * testsuite/25_algorithms/unique/2.cc: Same.
2094         * testsuite/25_algorithms/unique/1.cc: Same.
2095         * testsuite/25_algorithms/rotate.cc: Same.
2096         * testsuite/25_algorithms/min_max.cc: Same.
2097         * testsuite/25_algorithms/equal.cc: Same.
2098         * testsuite/24_iterators/rel_ops.cc: Same.
2099         * testsuite/24_iterators/iterator.cc: Same.
2100         * testsuite/24_iterators/insert_iterator.cc: Same.
2101         * testsuite/24_iterators/front_insert_iterator.cc: Same.
2102         * testsuite/24_iterators/back_insert_iterator.cc: Same.
2103         * testsuite/23_containers/vector/resize/1.cc: Same.
2104         * testsuite/23_containers/vector/modifiers/2.cc: Same.
2105         * testsuite/23_containers/vector/modifiers/1.cc: Same.
2106         * testsuite/23_containers/vector/invalidation/4.cc: Same.
2107         * testsuite/23_containers/vector/invalidation/3.cc: Same.
2108         * testsuite/23_containers/vector/invalidation/2.cc: Same.
2109         * testsuite/23_containers/vector/invalidation/1.cc: Same.
2110         * testsuite/23_containers/vector/element_access/1.cc: Same.
2111         * testsuite/23_containers/vector/cons/6513.cc: Same.
2112         * testsuite/23_containers/vector/cons/3.cc: Same.
2113         * testsuite/23_containers/vector/cons/2.cc: Same.
2114         * testsuite/23_containers/vector/cons/1.cc: Same.
2115         * testsuite/23_containers/vector/capacity/8230.cc: Same.
2116         * testsuite/23_containers/vector/capacity/1.cc: Same.
2117         * testsuite/23_containers/vector/bool/6886.cc: Same.
2118         * testsuite/23_containers/stack/members/7158.cc: Same.
2119         * testsuite/23_containers/set/invalidation/2.cc: Same.
2120         * testsuite/23_containers/set/invalidation/1.cc: Same.
2121         * testsuite/23_containers/queue/members/7157.cc: Same.
2122         * testsuite/23_containers/priority_queue/members/7161.cc: Same.
2123         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2124         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2125         * testsuite/23_containers/multiset/insert/1.cc: Same.
2126         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2127         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2128         * testsuite/23_containers/map/operators/1.cc: Same.
2129         * testsuite/23_containers/map/invalidation/2.cc: Same.
2130         * testsuite/23_containers/map/invalidation/1.cc: Same.
2131         * testsuite/23_containers/map/insert/1.cc: Same.
2132         * testsuite/23_containers/list/operators/4.cc: Same.
2133         * testsuite/23_containers/list/operators/3.cc: Same.
2134         * testsuite/23_containers/list/operators/2.cc: Same.
2135         * testsuite/23_containers/list/operators/1.cc: Same.
2136         * testsuite/23_containers/list/modifiers/3.cc: Same.
2137         * testsuite/23_containers/list/modifiers/2.cc: Same.
2138         * testsuite/23_containers/list/modifiers/1.cc: Same.
2139         * testsuite/23_containers/list/invalidation/4.cc: Same.
2140         * testsuite/23_containers/list/invalidation/3.cc: Same.
2141         * testsuite/23_containers/list/invalidation/2.cc: Same.
2142         * testsuite/23_containers/list/invalidation/1.cc: Same.
2143         * testsuite/23_containers/list/cons/9.cc: Same.
2144         * testsuite/23_containers/list/cons/8.cc: Same.
2145         * testsuite/23_containers/list/cons/7.cc: Same.
2146         * testsuite/23_containers/list/cons/6.cc: Same.
2147         * testsuite/23_containers/list/cons/5.cc: Same.
2148         * testsuite/23_containers/list/cons/4.cc: Same.
2149         * testsuite/23_containers/list/cons/3.cc: Same.
2150         * testsuite/23_containers/list/cons/2.cc: Same.
2151         * testsuite/23_containers/list/cons/1.cc: Same.
2152         * testsuite/23_containers/list/capacity/1.cc: Same.
2153         * testsuite/23_containers/deque/operators/1.cc: Same.
2154         * testsuite/23_containers/deque/invalidation/4.cc: Same.
2155         * testsuite/23_containers/deque/invalidation/3.cc: Same.
2156         * testsuite/23_containers/deque/invalidation/2.cc: Same.
2157         * testsuite/23_containers/deque/invalidation/1.cc: Same.
2158         * testsuite/23_containers/deque/cons/2.cc: Same.
2159         * testsuite/23_containers/deque/cons/1.cc: Same.
2161         * src/allocator.cc: Add char, wchar_t instantiations
2162         to match extern template declarations in memory.h.
2164 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
2166         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2167         Fix warning regression.
2169 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
2171         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2172         Deal properly with empty __digits and negative frac_digits,
2173         clean-up a bit.
2175 2004-03-03  Jonathan Wakely  <redi@gcc.gnu.org>
2177         * docs/html/documentation.html: Regenerate.
2179 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
2181         PR libstdc++/14320
2182         * include/bits/postypes.h (class streamoff): Remove, now
2183         streamoff is just typedef a 64 bit signed integer type.
2184         (class fpos): Tweak consistently.
2185         * testsuite/27_io/fpos/14320-1.cc: New.
2186         * testsuite/27_io/fpos/14320-2.cc: New.
2187         * testsuite/27_io/fpos/14320-3.cc: New.
2188         * testsuite/27_io/fpos/14320-4.cc: New.
2189         * testsuite/27_io/fpos/14320-5.cc: New.
2190         * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
2192 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
2194         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2195         Reorganize a bit the main parsing loop, thus early detecting
2196         an empty value component.
2197         * testsuite/22_locale/money_get/get/char/16.cc: New.
2198         * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
2200 2004-03-02  Benjamin Kosnik  <bkoz@redhat.com>
2202         Support automake 1.8.2
2203         * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
2204         * po/Makefile.am (EXTRA_DIST): New.
2205         * po/Makefile.in: Regenerate.
2206         * Makefile.in: Same.
2207         * include/Makefile.in: Same.
2208         * libmath/Makefile.in: Same.
2209         * libsupc++/Makefile.in: Same.
2210         * src/Makefile.in: Same.
2211         * testsuite/Makefile.in: Same.
2213         * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
2214         __GXX_WEAK__ instead of SUPPORTS_WEAK.
2215         (${host_builddir}/gthr-default.h): Same.
2216         (${host_builddir}/gthr.h): Same.
2217         * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
2218         _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
2219         -fno-weak.
2220         * aclocal.m4: Regenerate.
2221         * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
2222         * config.h.in: Regenerate.
2223         * configure: Same.
2225 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
2227         Support autoconf 2.59
2228         * acinclude.m4: Quote correctly.
2229         * aclocal.m4: Regenerate.
2230         * linkage.m4: Same.
2232 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
2234         * docs/html/test.html: Add multilib RUNTESTFLAGS example.
2236         * docs/html/18_support/howto.html: Add bit about writing to
2237         stderr, mostly by Zack.
2239 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
2241         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2242         money_get<>::do_get(string_type&)): ... and two more.
2244 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
2246         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2247         Fix thinkos in the switch from string_type& to string& as last
2248         argument.
2250 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
2252         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2253         Also when parsing exponent sign, first look for thousands_sep
2254         and decimal_point; tweak a bit.
2255         * testsuite/22_locale/num_get/get/char/15.cc: New.
2256         * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
2258         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2259         num_get<>::_M_extract_int): Reorder some conditionals.
2261 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
2263         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2264         Consistently with numpunct, enforce the requirements in
2265         22.2.6.3, p3 for the thousands separators; tweak a bit.
2266         * testsuite/22_locale/money_get/get/char/15.cc: New.
2267         * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
2269 2004-03-01  David Billinghurst <David.Billinghurst@riotinto.com>
2271         * testsuite/lib/libstdc++.exp (v3-list-tests): Use
2272         testsuite_files from correct multilib blddir when running
2273         testsuite.
2275 2004-02-29  Phil Edwards  <phil@codesourcery.com>
2277         * testsuite/Makefile.am (check-abi, check-abi-verbose):  Copy
2278         the summary file to the logfile.
2279         * testsuite/Makefile.in:  Regenerate.
2281 2004-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2283         * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
2284         volatile.
2285         * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
2286         __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
2288 2004-02-28  Paolo Carlini  <pcarlini@suse.de>
2290         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2291         According to 22.2.3.1, p2, 'units' may be followed by 'e' with
2292         no 'decimal-point' in the middle: in this case too we must fix
2293         up __found_grouping; slightly tweak.
2294         * testsuite/22_locale/num_get/get/char/14.cc: New.
2295         * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
2297 2004-02-27  Eric Christopher  <echristo@redhat.com>
2298             Phil Edwards  <phil@codesourcery.com>
2300         * testsuite/22_locale/collate/compare/wchar_t/2.cc,
2301         testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
2302         testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
2303         testsuite/22_locale/collate/hash/wchar_t/2.cc,
2304         testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
2305         testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
2306         testsuite/22_locale/collate/transform/wchar_t/2.cc,
2307         testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
2308         testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2309         Use dg-require-iconv.
2310         * testsuite/lib/libstdc++.exp:  Load target-supports.exp.
2312 2004-02-27  Phil Edwards  <phil@codesourcery.com>
2313             Eric Christopher  <echristo@redhat.com>
2315         * testsuite/config/default.exp:  Update with comments.
2316         (${tool}_target_compile):  New wrapper routine.
2317         * testsuite/lib/dg-options.exp:  New file, with dg-require-iconv.
2318         * testsuite/lib/libstdc++.exp:  Update with comments and cosmetic
2319         fixes.
2320         (load_gcc_lib, v3track):  New routines.
2321         (v3-init):  Rename to libstdc++_init.
2322         * testsuite/libstdc++-dg/normal.exp:  No longer call v3-init.
2323         Move DEFAULT_CXXFLAGS handling into libstdc++_init.
2325 2004-02-27  Benjamin Kosnik  <bkoz@redhat.com>
2327         * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
2329         * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
2331         * config/os/irix/irix5.2/atomicity.h: Merge..
2332         * config/os/irix/irix6.5/atomicity.h: Merge..
2333         * config/os/irix/atomicity.h: ...into this.
2334         * config/os/irix/atomic_word.h: New.
2335         * configure.host: Set atomic_word_dir for irix.
2337         * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
2338         * i386/atomicity.h: Same.
2339         * m68k/atomicity.h: Same.
2340         * sparc/atomicity.h: Same.
2342 2004-02-27  David Edelsohn  <edelsohn@gnu.org>
2344         * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
2345         static, and inline keywords.
2347 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
2349         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2350         num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
2351         call reserve on the __tmp_gruping string.
2352         (num_get<>::_M_extract_float): Don't append unnecessarily a
2353         char() to the returned string.
2354         * include/bits/locale_facets.tcc: Trivial reformattings.
2356 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
2358         * include/bits/locale_facets.h (money_get<>::_M_extract):
2359         Change signature: now takes a plain string&.
2360         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2361         Update consistently the definition; use the moneypunct cache
2362         to parse the value; use swap to change __units.
2363         (money_get<>::do_get(long double&)): Update call of _M_extract,
2364         avoid ctype::narrow, not correct wrt the standard.
2365         (money_get<>::do_get(string_type&)): Likewise, update call
2366         of _M_extract, use ctype::widen.
2367         * src/locale-inst.cc: Tweak instantiations of _M_extract.
2369 2004-02-26  Ian Lance Taylor  <ian@wasabisystems.com>
2371         * testsuite/demangle/abi_examples/01.cc: Expect error -2.
2372         * testsuite/demangle/abi_examples/02.cc: Likewise.
2373         * testsuite/demangle/regression/cw-11.cc: Likewise.
2374         * testsuite/demangle/regression/cw-16.cc: Change two expected
2375         results to match libiberty demangler output.
2377 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
2379         PR libstdc++/10246
2380         * libsupc++/Makefile.am: Use libiberty demangler.
2381         (c_sources): Add cp-demangle.c.
2382         * libsupc++/Makefile.in: Regenerate.
2383         * src/Makefile.am (sources): Remove demangle.cc.
2384         * src/Makefile.in: Regenerate.
2385         * include/Makefile.am (bits_headers): Move demangle.h.
2386         (ext_headers): ...here.
2387         * include/Makefile.in: Regenerate.
2388         * include/bits/demangle.h: Move...
2389         * include/ext/demangle.h: ...here.
2390         * src/demangle.cc: Remove.
2392 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
2394         * include/bits/demangle.h: Add type template parameter to all
2395         templates with just an Allocator template parameter.
2397 2004-02-25  Benjamin Kosnik  <bkoz@redhat.com>
2399         * include/bits/atomicity.h: New, forward declarations for __atomic_add
2400         and __exchange_and_add.
2401         * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
2402         * config/cpu/cris/atomic_word.h: Same.
2403         * config/cpu/sparc/atomic_word.h: Same.
2404         * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
2405         Qualifiy with __gnu_cxx.
2406         (_Callback_list::_M_add_reference): Same.
2407         * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
2408         (locale::facet::_M_remove_reference): Same.
2409         (locale::_Impl::_M_add_reference): Add.
2410         (locale::_Impl::_M_remove_reference): Same.
2411         * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
2412         (basic_string::_Rep::_M_dispose): Same.
2413         * src/ios.cc (ios_base::xalloc): Same.
2414         * src/ios_init.cc (ios_base::Init::Init): Same.
2415         (ios_base::Init::~Init): Same.
2416         * src/locale.cc (locale::id::_M_id): Same.
2417         * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
2418         static, and inline keywords.
2419         * config/cpu/alpha/atomicity.h: Same.
2420         * config/cpu/cris/atomicity.h: Same.
2421         * config/cpu/generic/atomicity.h: Same.
2422         * config/cpu/hppa/atomicity.h: Same.
2423         * config/cpu/i386/atomicity.h: Same.
2424         * config/cpu/ia64/atomicity.h: Same.
2425         * config/cpu/m68k/atomicity.h: Same.
2426         * config/cpu/mips/atomicity.h: Same.
2427         * config/cpu/powerpc/atomicity.h: Same.
2428         * config/cpu/s390/atomicity.h: Same.
2429         * config/cpu/sparc/atomicity.h: Same.
2431         * src/Makefile.am (host_sources): Add atomicity.cc.
2432         (atomicity.cc): New rule.
2433         * src/Makefile.in: Regenerate.
2434         * include/Makefile.am (host_headers): Remove host atomicity.h.
2435         (host_headers): Add atomic_word.h.
2436         (bits_headers): Add bits atomicity.h.
2437         Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2438         * include/Makefile.in: Regenerate.
2439         * configure.host (atomic_word_dir): Add.
2440         * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
2441         ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2442         * configure: Regenerate.
2443         * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
2445         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
2446         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2448 2004-02-25  Jonathan Wakely  <redi@gcc.gnu.org>
2450         * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
2451         docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
2452         Fix markup, more <link> tags.
2454 2004-02-25  Carlo Wood  <carlo@alinoe.com>
2456         * bits/demangle.h
2457         namespace __gnu_cxx::demangler
2458         (session<Allocator>::qualifier_list_Allocator): Add
2459         (session<Allocator>::M_qualifier_list_alloc): Add
2460         (session<Allocator>::decode_type_with_postfix):
2461         Use M_qualifier_list_alloc instead of calling operator new/delete.
2463 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
2465         PR libstdc++/14252
2466         * include/bits/postypes.h (class streamoff): Add operator++(),
2467         operator++(int), operator--() and operator--(int).
2468         * testsuite/27_io/fpos/14252.cc: New.
2470 2004-02-24  Richard Sandiford  <rsandifo@redhat.com>
2472         * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
2473         error in handling of hex constants.
2475 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
2477         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2478         Prefer basic_string::append to operator+= and a temporary.
2480 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
2482         * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
2483         Only use fputs, not write.
2485 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
2487         * include/ext/malloc_allocator.h: Add operators ==, !=.
2488         * include/ext/new_allocator.h: Add operators ==, !=.
2489         * include/ext/mt_allocator.h (__mt_alloc::tune): New.
2490         (__mt_alloc::_S_get_options): New.
2491         (__mt_alloc::_S_set_options): New.
2492         (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
2493         (__mt_alloc::_S_no_of_bins): To _S_bin_size.
2494         Move functions out of line, simplify, format.
2495         * src/allocator.cc: Simplify explicit instantiations.
2496         * include/bits/allocator.h: Tweak.
2498 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
2500         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2501         Restructure formatting of value component, first dealing with
2502         the non-decimal digits; use reserve.
2504 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
2506         * include/bits/locale_facets.h (class money_get): Inherit
2507         from money_base too; tweak declaration of _M_extract, now
2508         parameterized on _Intl too.
2509         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2510         Update definition to use the cache; call reserve on __res to
2511         avoid multiple reallocations; fix parsing of sign component
2512         according to 22.2.6.1.2, p3.
2513         (money_get<>::do_get(long double&),
2514         money_get<>::do_get(string_type&)): Update calls of _M_extract.
2515         * src/locale-inst.cc:  Add instantiations of
2516         money_get::_M_extract<false> and money_get::_M_extract<true>.
2517         * testsuite/22_locale/money_get/get/char/14.cc: New.
2518         * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
2520 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
2522         * libsupc++/vterminate.cc
2523         (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
2524         calls to terminate.
2525         * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
2527         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2528         not set RLIMIT_AS on HP-UX.
2530 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
2532         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2533         not set RLIMIT_AS on HP-UX.
2535 2004-02-21  Paolo Carlini  <pcarlini@suse.de>
2537         * include/bits/locale_facets.h (class money_base): Add { _S_minus,
2538         _S_zero, _S_end } enum, _S_atoms.
2539         (struct __moneypunct_cache<>): Parameterize on _Intl too; add
2540         _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
2541         _M_negative_sign_size, _M_atoms; tweak constructor consistently.
2542         (__moneypunct_cache<>::~__moneypunct_cache): Update.
2543         (__moneypunct_cache<>::_M_cache): Fill the cache.
2544         (class moneypunct): Tweak __cache_type typedef.
2545         (class money_put): Inherit from money_base too; tweak declaration
2546         of _M_insert, now parameterized on _Intl.
2547         * include/bits/locale_facets.tcc
2548         (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
2549         (money_put<>::_M_insert): Update definition to use the cache;
2550         call reserve on __res to avoid multiple reallocations.
2551         (money_put<>::do_put(long double),
2552         money_put<>::do_put(const string_type&): Update calls of _M_insert.
2553         * config/locale/generic/monetary_members.cc
2554         (moneypunct<char, true>::_M_initialize_moneypunct,
2555         moneypunct<char, false>::_M_initialize_moneypunct,
2556         moneypunct<wchar_t, true>::_M_initialize_moneypunct,
2557         moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
2558         * config/locale/gnu/monetary_members.cc: Likewise.
2559         * config/locale/gnu/monetary_members.cc
2560         (moneypunct<wchar_t, true>::~moneypunct(),
2561         moneypunct<wchar_t, false>::~moneypunct()): Likewise.
2562         * src/globals_locale.cc: Tweak fake_money_cache_c.
2563         * src/locale-inst.cc: Add instantiations for
2564         money_put::_M_insert<false> and money_put::_M_insert<true> and
2565         __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
2566         * src/locale_facets.cc: Define money_base::_S_atoms.
2567         * src/locale_init.cc: Update placement new of
2568         __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
2569         __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
2571         * config/locale/generic/numeric_members.cc: Clean up.
2572         * config/locale/gnu/numeric_members.cc: Likewise.
2573         * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
2574         * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
2575         * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
2576         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
2577         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
2578         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
2580 2004-02-20  Mark Mitchell  <mark@codesourcery.com>
2582         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
2583         FIFO for writing with ios_base::in|ios_base::out.
2584         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
2585         * testsuite/27_io/objects/char/7.cc: Likewise.
2586         * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
2587         with "r+".
2589 2004-02-19  David Edelsohn  <edelsohn@gnu.org>
2591         * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
2592         from iso-8859-1 to ISO8859-1.
2593         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
2594         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
2595         * 22_locale/collate/hash/wchar_t/2.cc: Same.
2596         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
2597         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
2598         * 22_locale/collate/transform/wchar_t/2.cc: Same.
2599         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
2600         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
2602 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
2604         * include/bits/locale_facets.h (money_get<>::_M_extract):
2605         New, helper for do_get.
2606         (money_put<>::_M_insert): Likewise, for do_put.
2607         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2608         money_put<>::_M_insert): Define.
2609         (money_get<>::do_get(long double&), money_get<>::do_get(
2610         string_type&), money_put::do_put(long double),
2611         money_put::do_put(const string_type&)): Use the helpers.
2613 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
2615         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2616         Rewrite, avoiding recursion.
2617         (__gnu_internal::xwrite): Minor tweaks.
2619 2004-02-17  Stefan Olsson  <stefan@xapa.se>
2621         * include/ext/mt_allocator.h: Removed the last
2622         pointer. Deallocated blocks are now added to the front of
2623         freelists as proposed by Felix Yen.  This gives roughly 10%
2624         performance boost and saves some memory.
2625         * docs/html/ext/mt_allocator.html: Change due to that deallocated
2626         blocks now are added to the front of freelists. The reason to this
2627         approach is also explained.
2629 2004-02-17  Paolo Carlini  <pcarlini@suse.de>
2631         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2632         num_get<>::_M_extract_int, money_get<>::do_get): Simplify
2633         grouping fidelity conditional.
2635 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
2637         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
2638         Qualify exception with std::.
2639         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
2640         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2641         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2642         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2643         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2645 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
2647         * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
2648         for now that the catch block is not reached.
2649         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
2651 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
2653         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2654         Fix parsing of the remaining sign characters.
2655         * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
2656         the input is scanned 'til eof.
2657         * 22_locale/money_get/get/char/4.cc: Likewise.
2658         * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
2659         * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
2660         * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
2661         not do_pos_format: the former is the only one that matters during
2662         input.
2663         * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
2665         * 22_locale/money_get/get/char/6.cc: Minor tweak.
2666         * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
2668 2004-02-15  David Asher  <david.asher@cavium.com>
2670         PR libstdc++/11352
2671         * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
2672         access __olds beyond __oldlen.
2674 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
2676         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
2677         sure the exception is actually thrown.
2678         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2679         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2680         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2682 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
2684         PR libstdc++/13858
2685         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
2686         In case of conversion errors, throw ios_failure; simplify.
2687         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
2688         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2689         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
2690         previously we didn't throw in case of conversion errors, instead
2691         just returned eof().
2692         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2693         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2694         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2696         * include/bits/fstream.tcc (basic_filebuf<>::overflow):
2697         Trivial simplification of a conditional.
2699 2004-02-12  Paolo Carlini  <pcarlini@suse.de>
2701         PR libstdc++/13731 (final part: writev)
2702         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2703         New, a wrapper around writev() handling partial writes.
2704         (__basic_file<char>::xwrite): Move to __gnu_internal and make
2705         static.
2706         (__basic_file<char>::xsputn): Update call.
2707         (__basic_file<char>::xsputn_2): Likewise.
2708         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2709         Don't declare, now static.
2711 2004-02-11  Stefan Olsson  <stefan@xapa.se>
2713         * docs/html/ext/mt_allocator.html: New.
2715 2004-02-11  Benjamin Kosnik  <bkoz@redhat.com>
2717         * docs/html/20_util/allocator.html: New file, consolidate
2718         allocator information here. Revamp.
2719         * docs/html/documentation.html: Change links.
2720         * docs/html/20_util/howto.html: Same.
2721         * docs/html/ext/howto.html: Same.
2723 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
2725         PR libstdc++/13731 (first part: write)
2726         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2727         New, declare.
2728         * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
2729         Define it: a wrapper around write() handling partial write.
2730         (__basic_file<char>::xsputn): Use it.
2731         (__basic_file<char>::xsputn_2): Likewise.
2733 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
2734             Petur Runolfsson  <peturr02@ru.is>
2736         PR libstdc++/14078
2737         * include/std/std_istream.h (operator>>(__istream_type& (*)
2738         (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
2739         operator>>(ios_base& (*)(ios_base&))): Declare inline.
2740         * include/std/std_ostream.h (operator<<(__ostream_type& (*)
2741         (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
2742         operator<<(ios_base& (*) (ios_base&))): Likewise.
2743         * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
2745 2004-02-10  Loren J. Rittle  <ljrittle@acm.org>
2747         PR libstdc++/14098
2748         * config/linker-map.gnu: Add typeinfo and typeinfo name for
2749         __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
2751         PR libstdc++/14097
2752         * config/linker-map.gnu: Add typeinfo and typeinfo name for
2753         __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
2755 2004-02-09  Loren J. Rittle  <ljrittle@acm.org>
2757         * include/ext/pool_allocator.h: Include c++config.h.
2759 2004-02-09  Stefan Olsson  <stefan@xapa.se>
2761         * include/ext/mt_allocator.h: thread_id is unused in non threaded
2762         applications and now has a ifdef to remove it completely on
2763         compilers without thread support. Include stdlib.h due to a
2764         compiler warning on getenv().
2766 2004-02-09  Paul Brook  <paul@codesourcery.com>
2768         * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
2770 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
2772         PR libstdc++/14071
2773         * src/locale_init.cc (locale::global(const locale&)): Use
2774         locale::name() in order to decide whether calling setlocale.
2775         * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
2777         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
2778         Avoid computing &= unnecessarily.
2780 2004-02-09  James E Wilson  <wilson@specifixinc.com>
2782         PR libstdc++/5625
2783         * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
2784         __builtin_extend_pointer.
2786 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
2788         PR libstdc++/14072
2789         * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
2790         Don't leave dangling pointers.
2791         * testsuite/27_io/basic_ios/imbue/14072.cc: New.
2792         * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
2793         facet is needed in the final test.
2795 2004-02-09  Bernardo Innocenti  <bernie@develer.com>
2797         * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
2798         * configure: Regenerate.
2800 2004-02-08  Richard Henderson  <rth@redhat.com>
2802         PR libstdc++/14026
2803         * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
2804         uncaughtExceptions during nested catch rethrow.
2805         * testsuite/18_support/14026.cc: New.
2807 2004-02-08  Paolo Carlini  <pcarlini@suse.de>
2809         * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
2810         When working in place remember to set the state to sharable
2811         (otherwise, _M_mutate does it).
2813 2004-02-08  Bernardo Innocenti  <bernie@develer.com>
2815         * include/bits/allocator.h, include/bits/basic_ios.h,
2816         include/bits/basic_ios.tcc, include/bits/basic_string.h,
2817         include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
2818         include/bits/char_traits.h, include/bits/codecvt.h,
2819         include/bits/concurrence.h, include/bits/cpp_type_traits.h,
2820         include/bits/demangle.h, include/bits/deque.tcc,
2821         include/bits/fstream.tcc, include/bits/functexcept.h,
2822         include/bits/gslice.h, include/bits/gslice_array.h,
2823         include/bits/indirect_array.h, include/bits/ios_base.h,
2824         include/bits/istream.tcc, include/bits/list.tcc,
2825         include/bits/locale_classes.h, include/bits/locale_facets.h,
2826         include/bits/locale_facets.tcc, include/bits/localefwd.h,
2827         include/bits/mask_array.h, include/bits/ostream.tcc,
2828         include/bits/postypes.h, include/bits/slice_array.h,
2829         include/bits/sstream.tcc, include/bits/stl_algo.h,
2830         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
2831         include/bits/stl_construct.h, include/bits/stl_deque.h,
2832         include/bits/stl_function.h, include/bits/stl_heap.h,
2833         include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
2834         include/bits/stl_list.h, include/bits/stl_map.h,
2835         include/bits/stl_multimap.h, include/bits/stl_multiset.h,
2836         include/bits/stl_numeric.h, include/bits/stl_pair.h,
2837         include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
2838         include/bits/stl_relops.h, include/bits/stl_set.h,
2839         include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
2840         include/bits/stl_threads.h, include/bits/stl_tree.h,
2841         include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
2842         include/bits/stream_iterator.h, include/bits/streambuf.tcc,
2843         include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
2844         include/bits/type_traits.h, include/bits/valarray_after.h,
2845         include/bits/valarray_array.h, include/bits/valarray_array.tcc,
2846         include/bits/valarray_before.h, include/bits/vector.tcc: Remove
2847         trailing whitespace.
2849 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
2851         * include/bits/basic_string.h: Fix comment.
2853 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
2855         * include/bits/stl_construct.h: Wrap overlong lines, reformat
2856         according to the coding standards.
2857         * include/bits/stl_pair.h: Likewise.
2858         * include/bits/stl_raw_storage_iter.h: Likewise.
2859         * include/bits/stl_stack.h: Likewise.
2860         * include/bits/stl_uninitialized.h: Likewise.
2861         * include/bits/stream_iterator.h: Likewise.
2862         * include/bits/streambuf_iterator.h: Likewise.
2863         * include/bits/type_traits.h: Likewise.
2865 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
2867         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2868         Adjust timings.
2870 2004-02-05  Loren J. Rittle  <ljrittle@acm.org>
2872         * scripts/check_performance: Support PCH.
2874         * scripts/check_performance (CXX): Add -DNOTHREAD.
2875         * testsuite/performance/20_util/allocator/insert.cc: Integrate
2876         threaded tests from insert_insert.cc.  Tweak iterations,
2877         remove special cases.
2878         * testsuite/performance/20_util/allocator/insert_insert.cc:
2879         Make all tests single-threaded. Tweak iterations.
2880         * testsuite/performance/20_util/allocator/map_thread.cc:
2881         Tweak iterations.
2882         * testsuite/performance/20_util/allocator/producer_consumer.cc:
2883         Likewise.
2885 2004-02-05  Geoffrey Keating  <geoffk@apple.com>
2887         PR 12179
2888         * .cvsignore: New.
2889         * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
2890         'gcc-lib'.  Add comment about poorly-named variables.
2891         * aclocal.m4: Regenerate.
2892         * configure: Regenerate.
2894 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
2896         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2897         Thousands-sep are always optional; thousands-sep are not allowed
2898         after the decimal_point.
2899         * testsuite/22_locale/money_get/get/char/12.cc: New.
2900         * testsuite/22_locale/money_get/get/char/13.cc: New.
2901         * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
2902         * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
2904         * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
2905         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2906         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2907         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2908         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2909         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2910         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2911         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2913         * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
2914         the standard.
2915         * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
2917 2004-02-05  Richard Sandiford  <rsandifo@redhat.com>
2919         * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
2920         Define.
2921         * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
2922         it to decide whether FIONREAD should take an off_t or int argument.
2924 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
2926         * include/bits/stl_function.h: Minor formatting changes.
2928 2004-02-04  Zack Weinberg  <zack@codesourcery.com>
2930         Revert previous change to config/abi/*/baseline_symbols.txt.
2932 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
2933             Zack Weinberg  <zack@codesourcery.com>
2935         * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
2936         New function.
2937         (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
2938         (__basic_file<char>::_M_open_mode): Delete.
2939         * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
2941         * testsuite/27_io/basic_filebuf/close/char/9964.cc
2942         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2943         Correct flags to filebuf::open calls.
2945         * config/abi/alpha-freebsd5/baseline_symbols.txt
2946         * config/abi/alpha-linux-gnu/baseline_symbols.txt
2947         * config/abi/hppa-linux-gnu/baseline_symbols.txt
2948         * config/abi/i386-freebsd4/baseline_symbols.txt
2949         * config/abi/i386-freebsd5/baseline_symbols.txt
2950         * config/abi/i486-linux-gnu/baseline_symbols.txt
2951         * config/abi/ia64-linux-gnu/baseline_symbols.txt
2952         * config/abi/mips-linux-gnu/baseline_symbols.txt
2953         * config/abi/sparc-freebsd5/baseline_symbols.txt
2954         * config/abi/sparc-linux-gnu/baseline_symbols.txt
2955         * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
2956         Remove entry for __basic_file<char>::_M_open_mode.
2958 2004-02-04  Loren J. Rittle  <ljrittle@acm.org>
2960         * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
2962 2004-02-04  Felix Yen  <fwy@alumni.brown.edu>
2964         * testsuite/performance/20_util/producer_consumer.cc: New.
2965         * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
2967 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
2969         * testsuite/performance/20_util/allocator.cc: Move to..
2970         * testsuite/performance/20_util/allocator/insert.cc: ...here.
2971         * testsuite/performance/20_util/allocator_thread.cc: Move to...
2972         * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
2973         * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
2974         * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
2976 2004-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
2978         * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
2979         * docs/html/faq/index.txt: Regenerate.
2981 2004-02-04  Dhruv Matani  <dhruvbird@gmx.net>
2983         * include/ext/debug_allocator.h: _M_extra now stands for the
2984         number of extra objects instead of the number of extra bytes.
2985         (debug_allocator::allocate): Adjust.
2986         (debug_allocator::deallocate): Adjust.
2988         * include/ext/pool_allocator.h: Fix typo.
2990 2004-02-03  Felix Yen  <fwy@alumni.brown.edu>
2991             Benjamin Kosnik  <bkoz@redhat.com>
2993         * testsuite/performance/20_util/allocator.cc: Add map,
2994         deque, set tests.
2995         * testsuite/performance/20_util/allocator_thread.cc: Same.
2997 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
2999         * include/bits/basic_string.h (insert(iterator)): Remove,
3000         non-standard and already scheduled for removal.
3002 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
3004         * include/bits/stl_iterator_base_funcs.h: Minor formatting
3005         and indentation tweaks.
3006         * include/bits/stl_iterator_base_types.h: Likewise.
3007         * include/bits/stl_list.h: Likewise.
3008         * include/bits/stl_map.h: Likewise.
3009         * include/bits/stl_tempbuf.h: Likewise.
3011 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
3013         * include/bits/gslice.h, include/bits/gslice_array.h,
3014         include/bits/indirect_array.h, include/bits/mask_array.h,
3015         include/bits/slice_array.h, include/bits/stl_numeric.h,
3016         include/std/std_valarray.h:  Update copyright years.
3018 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
3020         * include/bits/gslice.h (gslice):  Document.
3021         * include/bits/gslice_array.h (gslice_array):  Document.
3022         * include/bits/indirect_array (indirect_array):  Document.
3023         * include/bits/mask_array (mask_array):  Document.
3024         * include/bits/slice_array.h (slice,slice_array):  Document.
3025         * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
3026         adjacent_difference):  Document
3027         * include/std/std_valarray.h (valarray):  Document.
3029 2004-02-02  Benjamin Kosnik  <bkoz@redhat.com>
3031         * docs/html/19_diagnostics/howto.html: Move verbose terminate
3032         documentation...
3033         * docs/html/18_support/howto.html: Here.
3034         * docs/html/documentation.html: Add reference here.
3036 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
3038         * config/locale/gnu/c++locale_internal.h: Remove prototypes
3039         of no longer used GLIBC thread locale functions.
3041 2004-02-02  Eric Christopher  <echristo@redhat.com>
3042             Zack Weinberg  <zack@codesourcery.com>
3044         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
3045         -finput-charset.
3046         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
3047         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
3048         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
3049         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
3050         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
3051         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
3052         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
3053         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3054         Ditto.
3056 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
3058         * include/bits/stl_function.h: Additional minor tweaks.
3059         * include/bits/stl_multiset.h: Likewise.
3061         * include/bits/stl_queue.h: Minor tweaks.
3063 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
3065         PR libstdc++/13976 (continued)
3066         * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
3067         Make the second parameter unnamed, to void unused parameter
3068         warnings.
3069         * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
3071 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
3073         PR libstdc++/13976
3074         * include/ext/malloc_allocator.h (malloc_allocator::allocate):
3075         Make the second parameter unnamed, to void unused parameter
3076         warnings.
3077         * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
3078         * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
3080 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
3082         * include/bits/stl_algo.h: Additional minor tweaks.
3083         * include/bits/stl_map.h: Likewise.
3084         * include/bits/stl_multimap.h: Likewise.
3085         * include/bits/stl_multiset.h: Likewise.
3086         * include/bits/stl_set.h: Likewise.
3087         * include/bits/stl_tree.h: Likewise.
3089 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
3091         * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
3092         Remove, unused.
3094 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
3096         * include/bits/stl_function.h: Additional minor tweaks.
3098 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
3100         * include/bits/deque.tcc: Wrap overlong lines, constify
3101         a few variables, reformat according to the coding standards.
3102         * include/bits/list.tcc: Likewise.
3103         * include/bits/stl_deque.h: Likewise.
3104         * include/bits/stl_function.h: Likewise.
3105         * include/bits/stl_iterator.h: Likewise.
3106         * include/bits/stl_iterator_base_funcs.h: Likewise.
3107         * include/bits/stl_iterator_base_types.h: Likewise.
3108         * include/bits/stl_list.h: Likewise.
3109         * include/bits/stl_map.h: Likewise.
3110         * include/bits/stl_multimap.h: Likewise.
3111         * include/bits/stl_multiset.h: Likewise.
3112         * include/bits/stl_relops.h: Likewise.
3113         * include/bits/stl_set.h: Likewise.
3115 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
3117         * include/bits/stl_bvector.h: Wrap overlong lines, constify
3118         a few variables, reformat according to the coding standards.
3119         * include/bits/stl_tree.h: Likewise.
3121 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
3123         * include/bits/stl_algo.h: Minor additional reformat, add
3124         copyright year.
3125         * include/bits/stl_algobase.h: Add copyright year.
3127 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
3129         * include/bits/stl_algo.h: Wrap overlong lines, constify
3130         a few variables, reformat according to the coding standards.
3131         * include/bits/stl_algobase.h: Likewise.
3132         * include/bits/stl_heap.h: Likewise.
3134 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
3136         * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
3138         * include/bits/basic_string.h: Fix two comments.
3140 2004-01-31  Per Bothner  <per@bothner.com>
3142         * include/ext/mt_allocator.h
3143         (__mt_alloc::_S_thread_freelist_mutex): Guard with
3144         __GTHREAD_MUTEX_INIT.
3146 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
3148         * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
3150 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
3152         * testsuite/21_strings/basic_string/cons/char/6.cc: New.
3153         * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
3154         * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
3156 2004-01-30  Felix Yen  <fwy@alumni.brown.edu>
3158         * testsuite/performance/20_util/allocator_thread.cc (do_loop):
3159         Don't use clear, but instead assign. Use insert.
3161 2004-01-30  Benjamin Kosnik  <bkoz@redhat.com>
3163         * src/demangle.cc: Add instantiations.
3164         * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
3165         * src/Makefile.in: Regenerate.
3167 2004-01-30  David Edelsohn  <edelsohn@gnu.org>
3169         * src/allocator.cc: Protect _S_get_thread_id() and
3170         _S_thread_key_destr() with #ifdef __GTHREADS.
3172 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
3174         Reshuffle performance testsuite.
3175         * testsuite/performance/allocator.cc, allocator_map_thread.cc,
3176         allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
3177         cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
3178         fstream_seek_write.cc, ifstream_extract_float.cc,
3179         ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
3180         list_create_fill_sort.cc, map_create_fill.cc,
3181         narrow_widen_char.cc, narrow_widen_wchar_t.cc,
3182         ofstream_insert_float.cc, ofstream_insert_int.cc,
3183         string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
3184         wchar_t_out.cc: Split into...
3185         * testsuite/performance/20_util/allocator.cc: New.
3186         * testsuite/performance/20_util/allocator_map_thread.cc: New.
3187         * testsuite/performance/20_util/allocator_thread.cc: New.
3188         * testsuite/performance/21_strings/string_append: New.
3189         * testsuite/performance/22_locale/is_wchar_t.cc: New.
3190         * testsuite/performance/22_locale/narrow_widen_char.cc: New.
3191         * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
3192         * testsuite/performance/22_locale/wchar_t_in.cc: New.
3193         * testsuite/performance/22_locale/wchar_t_length.cc: New.
3194         * testsuite/performance/22_locale/wchar_t_out.cc: New.
3195         * testsuite/performance/23_containers/container_benchmark.cc: New.
3196         * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
3197         * testsuite/performance/23_containers/map_create_fill.cc: New.
3198         * testsuite/performance/26_numerics/complex_norm.cc: New.
3199         * testsuite/performance/27_io/cout_insert_int.cc: New.
3200         * testsuite/performance/27_io/filebuf_copy.cc: New.
3201         * testsuite/performance/27_io/filebuf_sputc.cc: New.
3202         * testsuite/performance/27_io/fstream_seek_write.cc: New.
3203         * testsuite/performance/27_io/ifstream_extract_float.cc: New.
3204         * testsuite/performance/27_io/ifstream_extract_int.cc: New.
3205         * testsuite/performance/27_io/ifstream_getline.cc: New.
3206         * testsuite/performance/27_io/ofstream_insert_float.cc: New.
3207         * testsuite/performance/27_io/ofstream_insert_int.cc: New.
3209 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
3211         * include/bits/basic_string.tcc (_Rep::_S_create):
3212         Never allocate a string bigger than max_size(); always keep
3213         __capacity and __size in sync to avoid memory leaks at
3214         deallocation time.
3216 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
3218         * include/bits/basic_string.tcc (_S_construct(_InIterator,
3219         _InIterator, const _Alloc&, input_iterator_tag)): Simplify
3220         the double loop, streamline.
3222         * include/bits/basic_string.tcc: Very minor tweaks.
3224 2004-01-30  Loren J. Rittle  <ljrittle@acm.org>
3226         * scripts/check_performance: Only compile with $THREAD_FLAG
3227         when test is marked to require it.  Allow multiple
3228         compilations/executions of marked tests.
3229         * testsuite/testsuite_performance.h (report_performance):
3230         Report dynamic thread support status.
3231         (report_header): Likewise.
3232         * testsuite/performance/allocator.cc: Stabilize iteration
3233         count.  Support more allocators.  Mark each allocator test to
3234         run and report independently.
3235         * testsuite/performance/allocator_map_thread.cc: Likewise.
3236         * testsuite/performance/allocator_thread.cc: Likewise.
3238 2004-01-29  Stephen M. Webb  <stephen.webb@bregmasoft.com>
3240         * config/local/generic/c_locale.h: Change ::malloc() to new char[].
3241         * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
3242         * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
3243         std::get_temporary_buffer() instead of duplicating its code.
3244         Update to C++STYLE conventions.
3245         * include/std/std_memory.h (get_temporary_buffer): Use ::operator
3246         new() instead of std::malloc().
3247         (return_temporary_buffer): Use ::operator delete() instead of
3248         std::free().
3250 2004-01-29  Benjamin Kosnik  <bkoz@redhat.com>
3252         * include/bits/allocator.h: Temporary switch to new_allocator as
3253         the default to unjam bootstraps.
3255 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
3257         * include/Makefile.am (bits_headers): Remove allocator_traits.h.
3258         * include/Makefile.in: Regenerate.
3259         * include/bits/allocator_traits.h: Remove.
3260         * include/bits/allocator.h: Remove allocator_traits.h include, and
3261         relevant comments.
3262         (allocator): Empty base class, inherit from the underlying allocator.
3263         * src/allocator-inst.cc: Move __pool_alloc instantiation to...
3264         * src/allocator.cc: ...here. New. For the underlying allocators.
3265         Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
3266         * config/linker-map.gnu: Remove __pool_alloc bits.
3267         * src/Makefile.am (sources): Add allocator.cc.
3268         * src/Makefile.in: Regenerate.
3269         * testsuite/20_util/allocator/1.cc: Split second test into...
3270         * testsuite/20_util/allocator/8230.cc: ...this.
3271         * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
3272         typedef to use std::allocatore. Format.
3273         * include/ext/pool_allocator.h: Remove allocator_traits.h include,
3274         _Alloc_traits.
3275         * include/ext/mt_allocator.h (__gnu_cxx): Qualify
3276         __throw_bad_alloc calls. Don't include <memory>.
3277         * include/ext/malloc_allocator.h: Remove <memory> include.
3278         * include/ext/new_allocator.h (new_allocator): Same.
3279         * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
3280         declaration. Switch __alloc to _Alloc.
3281         * include/ext/hashtable.h: Remove __alloc.
3282         * include/backward/alloc.h: Only inject allocator, not
3283         implementation details.
3285         * include/ext/mt_allocator.h: Replace free with delete.
3287 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
3289         * src/globals_io.cc: Change to __gnu_internal namespace.
3290         * src/globals_locale.cc: Same.
3291         * src/locale_init.cc: Same.
3292         * src/ios_init.cc: Same.
3294 2004-01-28  Stefan Olsson  <stefan@snon.net>
3296         * include/ext/mt_allocator.h: Replaced all malloc() calls with
3297         operator new(). Added support for the env variable
3298         GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
3299         one in allocate() as well). Fix typos.
3301 2004-01-28  Paolo Carlini  <pcarlini@suse.de>
3303         * include/bits/basic_string.h (_S_create(size_t,
3304         const _Alloc&): Change signature to take two size_type
3305         arguments.
3306         * include/bits/basic_string.tcc (_S_construct(_InIterator,
3307         _InIterator, const _Alloc&, input_iterator_tag)): Update
3308         call, tweak a bit.
3309         (_S_construct(_InIterator, _InIterator, const _Alloc&,
3310         forward_iterator_tag)): Likewise.
3311         (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
3312         (_M_mutate(size_type, size_type, size_type)): Don't
3313         implement the exponential growth policy, demand it to
3314         _S_create, update call and simplify.
3315         (_M_clone(const _Alloc&, size_type)): Likewise.
3316         (_S_create(size_type, size_type, const _Alloc&)): Implement
3317         the growth policy, simplify otherwise.
3319         * include/bits/basic_string.h (_Rep::operator[]): Tweak
3320         signature to take a size_type, consistently with the other
3321         members.
3323 2004-01-27  Benjamin Kosnik  <bkoz@redhat.com>
3325         * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
3326         delete declarations, add include and test variable.
3328 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
3330         * include/bits/codecvt.h, include/bits/locale_facets.h,
3331         include/bits/postypes.h, include/bits/stl_bvector.h,
3332         include/bits/stl_multiset.h, include/bits/stl_set.h,
3333         include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
3334         include/std/std_complex.h:  Document.
3336 2004-01-27  Jerry Quinn  <jlquinn@optonline.net>
3338         PR libstdc++/11584
3339         * include/bits/ios_base.h (ios_base::_M_grow_words):  Add
3340         iword/pword selector.
3341         (ios_base::iword, ios_base::pword):  Use it.
3342         * src/ios.cc (ios_base::_M_grow_words):  Clear _M_word_zero
3343         iword or pword member on alloc failure.
3344         * testsuite/27_io/ios_base/storage/11584.cc:  New test.
3346 2004-01-27  Ulrich Weigand  <uweigand@de.ibm.com>
3347             PJ Darcy  <darcypj@us.ibm.com>
3349         * configure.host: Add support for *-tpf.
3350         * crossconfig.m4: Likewise.
3351         * configure: Regenerate.
3352         * config/os/tpf: New directory.
3353         * config/os/tpf/os_defines.h: New file.
3354         * config/os/tpf/ctype_base.h: Likewise.
3355         * config/os/tpf/ctype_inline.h: Likewise.
3356         * config/os/tpf/ctype_noninline.h: Likewise.
3358 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
3360         PR libstdc++/13884
3361         * include/bits/sstream.tcc: Guard use of extern template.
3363 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
3365         * include/bits/basic_string.tcc
3366         (basic_string(const basic_string&, size_type, size_type),
3367         basic_string(const basic_string&, size_type, size_type,
3368         const _Alloc&)): Avoid unnecessarily constructing iterators.
3370 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
3372         * config/locale/generic/c_locale.cc: Fix throw messages
3373         to use the __N marker.
3374         * config/locale/gnu/c_locale.cc: Likewise.
3375         * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
3376         Likewise.
3377         * docs/html/17_intro/C++STYLE: Likewise.
3378         * include/bits/basic_ios.tcc: Likewise.
3379         * include/bits/fstream.tcc: Likewise.
3380         * include/bits/vector.tcc: Likewise.
3381         * include/ext/ropeimpl.h: Likewise.
3382         * include/std/std_bitset.h: Likewise.
3383         * src/ios.cc: Likewise.
3384         * src/locale.cc: Likewise.
3385         * src/localename.cc: Likewise.
3387 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
3389         * include/bits/basic_string.h (_M_replace_aux): Use the
3390         __N marker in throw message.
3391         * include/bits/basic_string.tcc (assign(const _CharT*,
3392         size_type), insert(size_type, const _CharT*, size_type),
3393         replace(size_type, size_type, const _CharT*, size_type),
3394         reserve, _Rep::_S_create, resize, _M_replace_dispatch):
3395         Likewise.
3397         * include/bits/basic_string.h, include/bits/basic_string.tcc:
3398         Fold overlong lines, minor formatting changes.
3400 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
3402         * include/bits/basic_string.h (replace(iterator, iterator,
3403         const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
3404         (replace(iterator, iterator, const _CharT*)): Ditto.
3405         (replace(iterator, iterator, const _CharT*, size_type)):
3406         Add missing _GLIBCXX_DEBUG_PEDASSERT.
3408 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
3410         * include/bits/basic_string.tcc (replace(size_type,
3411         size_type, const _CharT*, size_type)): Implement optimized
3412         in-place algorithm for non-overlapping ranges.
3413         * testsuite/21_strings/basic_string/replace/char/6.cc: New.
3414         * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
3416         * include/bits/basic_string.tcc (insert(size_type,
3417         const _CharT*, size_type)): Tweak slightly.
3419 2004-01-26  Andreas Schwab  <schwab@suse.de>
3421         * config/locale/gnu/monetary_members.cc: Restore locale before
3422         rethrowing exception.
3424 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
3426         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
3427         Define inline here.
3428         * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
3429         Move inline.
3431         * include/bits/basic_string.tcc: Very minor tweaks.
3433 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
3435         * testsuite/performance/string_append.cc: Increase number
3436         of iterations.
3438 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
3440         * include/bits/basic_string.h (erase(size_type, size_type),
3441         erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
3442         instead, thus avoiding redundant check for length_error.
3444         * include/bits/basic_string.h: Tweak some comments.
3446 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
3448         * include/bits/basic_string.tcc (operator+(const _CharT*,
3449         const basic_string&)): No need to go through the append
3450         taking two iterators.
3452 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
3454         * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
3455         Revert last change to use std::min: machine language is worse.
3456         (find_last_of(const _CharT*, size_type, size_type)): Ditto.
3457         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3458         (find_last_not_of(_CharT, size_type)): Ditto.
3460         * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
3461         size_type)): Discard the value returned by _M_check.
3462         (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
3463         (append(const basic_string&, size_type, size_type)): Ditto.
3464         (copy(_CharT*, size_type, size_type)): Ditto.
3465         (compare(size_type, size_type, const basic_string&)): Ditto.
3466         (compare(size_type, size_type, const basic_string&,
3467         size_type, size_type)): Ditto.
3468         (compare(size_type, size_type, const _CharT*)): Ditto.
3469         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3471 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
3473         * include/bits/basic_string.h (insert(size_type,
3474         const basic_string&, size_type, size_type)): Define inline here.
3475         * include/bits/basic_string.tcc (insert(size_type,
3476         const basic_string&, size_type, size_type)): Move inline.
3478 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
3480         * include/bits/basic_string.h (assign(const basic_string&,
3481         size_type, size_type)): Define inline here.
3482         (replace(size_type, size_type, const basic_string&,
3483         size_type, size_type)): Ditto.
3484         (_M_replace_dispatch(iterator, iterator, _InputIterator,
3485         _InputIterator, __false_type)): Only declare.
3486         (_M_replace(iterator, iterator, _InputIterator,
3487         _InputIterator)): Remove.
3488         * include/bits/basic_string.tcc (assign(const basic_string&,
3489         size_type, size_type)): Move inline.
3490         (replace(size_type, size_type, const basic_string&,
3491         size_type, size_type)): Ditto.
3492         (_M_replace_dispatch(iterator, iterator, _InputIterator,
3493         _InputIterator, __false_type)): Define, now does also what
3494         _M_replace did before.
3495         * src/string-inst.cc (_M_replace): Don't instantiate.
3497         * include/bits/basic_string.tcc (find(const _CharT*,
3498         size_type, size_type)): Tidy.
3499         (rfind(_CharT, size_type)): Ditto.
3500         (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
3501         (find_first_not_of(_CharT, size_type)): Ditto.
3502         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3503         (find_last_not_of(_CharT, size_type)): Ditto.
3505 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
3507         PR libstdc++/13838
3508         * include/debug/bitset (operator|=): Fix typo.
3509         * testsuite/23_containers/bitset/operations/13838.cc: New.
3511 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
3513         * include/bits/basic_string.tcc (insert(size_type,
3514         const _CharT*, size_type __n)): Fix length_error check.
3515         (replace(size_type, size_type, const _CharT*, size_type):
3516         Ditto; call _M_replace_safe.
3517         (_M_replace_aux(size_type, size_type, size_type, _CharT):
3518         Fix length_error check.
3519         (_M_replace(iterator, iterator, _InputIterator,
3520         _InputIterator)): Ditto, tweak.
3521         (_M_replace_safe(size_type, size_type, const _CharT*,
3522         size_type)): Remove length_error check.
3524         * include/bits/basic_string.tcc (append(const basic_string&),
3525         append(const basic_string&, size_type, size_type)): Tweak
3526         comment.
3528         * include/bits/basic_string.tcc (copy(_CharT*, size_type,
3529         size_type)): If __n == 0 don't call traits::copy.
3531 2004-01-23  Stefan Olsson  <stefan@snon.net>
3533         * include/ext/mt_allocator.h: Reduce lock contention.
3535 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
3537         PR libstdc++/13831
3538         * include/bits/fstream.tcc (underflow): Remove unused
3539         variable.
3540         * include/bits/streambuf_iterator.h (equal): Ditto.
3541         * include/bits/locale_facets.h (_M_convert_from_char):
3542         Ditto.
3544 2004-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3546         PR c/13814
3547         * config/linker-map.gnu (nan): Delete.
3548         * libmath/mathconf.h (NAN, nan): Delete.
3549         * linkage.m4 (nan): Don't check for it.
3550         * libmath/nan.c: Delete file.
3552         * config.h.in, configure: Regenerate.
3554 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
3556         * include/bits/basic_string.h (push_back(_CharT)):
3557         Call _M_replace_aux.
3558         (insert(size_type, const basic_string&)): Trivial tweak.
3559         (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
3560         (insert(iterator, _CharT)): Ditto.
3561         (erase(size_type, size_type)): Ditto.
3562         (erase(iterator)): Ditto.
3563         (erase(iterator, iterator)): Ditto.
3564         (replace(size_type, size_type, size_type, _CharT)): Ditto.
3566 2004-01-23  Loren J. Rittle  <ljrittle@acm.org>
3568         libstdc++/13823
3569         * testsuite/performance/allocator_map_thread.cc: New test.
3571 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
3573         * include/bits/locale_facets.tcc
3574         (money_put::do_put(..., long double)): Use the basic_string
3575         constructor for char arrays, not that for C-strings, to pass
3576         __digits to do_put(..., const string_type&): __ws isn't
3577         null-terminated.
3579 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
3581         * include/bits/basic_string.h (_M_replace_safe): Change
3582         signatures to take size_types and const _CharT*.
3583         (_M_replace_aux): Likewise, takes size_types instead of
3584         iterators.
3585         (append(size_type, _CharT)): Update call.
3586         (assign(size_type, _CharT)): Ditto.
3587         (replace(iterator, iterator, size_type, _CharT)): Ditto.
3588         (_M_replace_dispatch(iterator, iterator, _Integer,
3589         _Integer, __true_type)): Ditto.
3590         * include/bits/basic_string.tcc (assign(const _CharT*,
3591         size_type)): Ditto.
3592         (insert(size_type, const _CharT*, size_type)): Ditto.
3593         (replace(size_type, size_type, const _CharT*,
3594         size_type)): Ditto.
3595         (_M_replace(iterator, iterator, _InputIterator,
3596         _InputIterator)): Ditto.
3597         (append(const basic_string&)): Ditto.
3598         (append(const basic_string&, size_type, size_type): Ditto.
3599         (append(const _CharT*, size_type): Ditto.
3600         (_M_replace_safe, _M_replace_safe): Change definitions
3601         accordingly, simplify.
3602         * string-inst.cc (_M_replace_safe): Don't instantiate.
3604 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
3606         * include/bits/basic_string.tcc (append(const basic_string&)):
3607         Revert previous change.
3608         (append(const basic_string&, size_type, size_type)): Revert
3609         previous change, use _M_check and _M_limit.
3611 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
3613         * include/bits/basic_string.h (_M_check): Change to return
3614         a checked __pos and take an additional const char* argument.
3615         (_M_fold): Rename to _M_limit, change to return a size_type,
3616         corresponding to the __off limited to the actual length.
3617         (insert(size_type, size_type, _CharT)): Update call, call
3618         replace.
3619         (insert(iterator, _CharT)): Call replace(iterator, iterator,
3620         size_type, _CharT) instead.
3621         (erase(size_type, size_type)): Update calls.
3622         (replace(size_type, size_type, size_type, _CharT)): Ditto.
3623         (substr(size_type, size_type)): Use _M_check.
3624         * include/bits/basic_string.tcc (basic_string(const basic_string&,
3625         size_type, size_type)): Update calls.
3626         (basic_string(const basic_string&, size_type, size_type,
3627         const _Alloc&)): Ditto.
3628         (assign(const basic_string&, size_type, size_type)): Use the
3629         new _M_check and _M_limit.
3630         (insert(size_type, const basic_string&, size_type, size_type):
3631         Ditto.
3632         (insert(size_type, const _CharT*, size_type)): Ditto.
3633         (replace(size_type, size_type, const _CharT*, size_type): Ditto.
3634         (replace(size_type, size_type, const basic_string&,
3635         size_type, size_type)): Ditto.
3636         (append(const basic_string&)): Ditto.
3637         (append(const basic_string&, size_type, size_type)): Ditto.
3638         (copy(_CharT*, size_type, size_type)): Ditto.
3639         (compare(size_type, size_type, const basic_string&)): Ditto.
3640         (compare(size_type, size_type, const basic_string&,size_type,
3641         size_type)): Ditto.
3642         (compare(size_type, size_type, const _CharT*)): Ditto.
3643         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3645 2004-01-19  Stefan Olsson  <stefan@snon.net>
3647         * include/ext/mt_allocator.h: If a thread, when it dies, still has
3648         memory on it's freelist this memory is not returned to global
3649         list. Simplification of deallocate so that memory is always
3650         returned to the calling thread id's freelist instead of to
3651         global. Fix typos. Add volatile where appropriate.
3653 2004-01-19  Loren J. Rittle  <ljrittle@acm.org>
3655         * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
3656         * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test.  Like -2 but
3657         use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
3659 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
3661         * src/debug.cc: Make sure all the names are prefixed with
3662         double (or single) underscore.
3664 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
3666         * src/debug.cc: Trivial formatting change.
3668 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
3670         * include/bits/basic_string.tcc (_S_construct(size_type,
3671         _CharT, const _Alloc&)): Remove redundant try/catch.
3672         (_M_mutate(size_type, size_type, size_type)): Ditto.
3673         (_M_clone(const _Alloc&, size_type)): Ditto.
3675 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
3677         * include/bits/basic_string.h (c_str()): Simplify, due to
3678         21.3.4 the internal representation is always kept null-terminated.
3679         * include/bits/basic_string.tcc (_M_clone): Null-terminate.
3680         * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
3681         * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
3682         Ditto.
3684 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
3686         * include/bits/basic_string.h (append(size_type, _CharT)):
3687         Moved inline, just call _M_replace_aux, no source iterators at
3688         risk of being clobbered.
3689         (assign(size_type, _CharT)): Call directly _M_replace_aux.
3690         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3691         input_iterator_tag)): Remove fifth unused argument.
3692         (_M_replace_dispatch(iterator, iterator, _InputIterator,
3693         _InputIterator, __false_type)): Update call.
3694         * include/bits/basic_string.tcc (replace(size_type, size_type,
3695         const _CharT*, size_type)): Update call.
3696         (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
3697         throw string literal.
3698         (_M_replace_safe(iterator, iterator, _ForwardIterator,
3699         _ForwardIterator)): Likewise.
3700         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3701         input_iterator_tag)): Remove fifth unused argument.
3702         (append(size_type __n, _CharT __c)): Move inline.
3703         * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
3704         const C*, const C*, input_iterator_tag)): Remove fifth unused
3705         argument.
3707 2004-01-16  Benjamin Kosnik  <bkoz@redhat.com>
3709         * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
3710         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
3712 2004-01-16  Danny Smith  <dannysmith@users.sourceforge.net>
3714         * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
3715         mkfifo for mingw32.
3717 2004-01-15  Stefan Olsson  <stefan@snon.net>
3719         * include/ext/mt_allocator.h: Reuse thread id's as soon as
3720         possible by changing the behaviour of thread_freelist to do
3721         push_front when threads die instead of push_back.
3723 2004-01-14  Paolo Carlini  <pcarlini@suse.de>
3725         * include/bits/locale_facets.h (struct __numpunct_cache):
3726         Add member _M_grouping_size, caching the length of _M_grouping.
3727         (__numpunct_cache<>::_M_cache): Assign the latter.
3728         (__verify_grouping): Move declaration...
3729         * include/bits/locale_facets.tcc (__verify_grouping):
3730         ... here, change signature to take a const char* and a size_t
3731         for the grouping; not a template anymore.
3732         (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
3733         Likewise change signature and tweak consistently.
3734         (num_get::_M_extract_float, num_get::_M_extract_int,
3735         num_put::_M_insert_int, num_put::_M_insert_float,
3736         money_get::do_get(string_type&), money_get::do_put(string_type)):
3737         Update callers.
3738         * config/locale/generic/numeric_members.cc
3739         (numpunct<>::_M_initialize_numpunct): Assign the new member.
3740         * config/locale/gnu/numeric_members.cc
3741         (numpunct<>::_M_initialize_numpunct): Likewise.
3742         * src/locale-inst.cc (__add_grouping): Tweak signature.
3743         (__verify_grouping): Don't instantiate, not a template anymore.
3745         * include/bits/locale_facets.h: Rename _M_truename_len ->
3746         _M_truename_size, _M_falsename_len -> _M_falsename_size.
3747         * include/bits/locale_facets.tcc: Likewise.
3748         * config/locale/generic/numeric_members.cc: Likewise.
3749         * config/locale/gnu/numeric_members.cc: Likewise.
3751 2004-01-14  Stefan Olsson  <stefan@snon.net>
3753         * include/ext/mt_allocator.h: Fixups.
3754         * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
3755         * testsuite/performance/allocator_thread.cc: Same.
3757 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
3759         * testsuite/performance/ifstream_extract_float.cc: Add higher
3760         precision tests.
3761         * testsuite/performance/ofstream_insert_float.cc: Same.
3763 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
3765         * src/locale-misc-inst.cc (__convert_from_v(long),
3766         __convert_from_v(unsigned long), __convert_from_v(long long),
3767         __convert_from_v(unsigned long long)): Remove, unused.
3769 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
3771         * testsuite/performance/ifstream_extract_float.cc: New.
3772         * testsuite/performance/ofstream_insert_float.cc: Float generation
3773         matches above.
3775         * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
3776         * 20_util/auto_ptr/1.cc: ...this.
3777         * 20_util/auto_ptr/2.cc: Same.
3778         * 20_util/auto_ptr/3.cc: Same.
3779         * 20_util/auto_ptr/3946.cc: Same.
3780         * 20_util/auto_ptr/4.cc: Same.
3781         * 20_util/auto_ptr/5.cc: Same.
3782         * 20_util/auto_ptr/6.cc: Same.
3783         * 20_util/auto_ptr/7.cc: Same.
3784         * 20_util/auto_ptr/assign_neg.cc
3785         * 20_util/pairs.cc: Break into...
3786         * 20_util/pair/1.cc: ...this.
3787         * 20_util/pair/2.cc: Same.
3788         * 20_util/pair/3.cc: Same.
3789         * 20_util/pair/4.cc: Same.
3791 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
3793         * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
3794         Set correctly just basefield, the only group that matters.
3796 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
3798         * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
3799         (_Rope_rep_base): Inherit directly from the rope allocator;
3800         use rebinding instead of _Alloc_traits; pick up data member
3801         from _Rope_rep_alloc_base.
3802         (_Rope_alloc_base): Eliminate.
3803         (_Rope_base): Inherit directly from the rope allocator; use
3804         rebinding instead of _Alloc_traits; pick up data member from
3805         _Rope_alloc_base.
3806         (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
3807         rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
3809 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
3811         PR libstdc++/13650
3812         * include/bits/basic_string.tcc (compare(size_type, size_type,
3813         const _CharT*, size_type)): Implement correctly the resolution
3814         of DR 5: basically, s is a char array, -not- a C string.
3815         * include/bits/basic_string.h: Tweak some comments.
3816         * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
3817         * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
3819 2004-01-12  Andreas Tobler  <a.tobler@schweiz.ch>
3821         * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
3822         Solaris.
3824 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
3826         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
3827         Use try_mkfifo.
3828         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
3829         Likewise.
3831 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
3833         * include/bits/locale_facets.h (struct __numpunct_cache):
3834         Add members _M_truename_len and _M_falsename_len, caching
3835         the lengths of _M_truename and _M_falsename.
3836         (__numpunct_cache<>::_M_cache): Assign the latter.
3837         * include/bits/locale_facets.tcc (num_get::do_get(bool&),
3838         num_put::do_put(bool)): Use the new members, thus avoiding
3839         computing string lengths again and again.
3840         * config/locale/generic/numeric_members.cc
3841         (numpunct<>::_M_initialize_numpunct): Assign the new members.
3842         * config/locale/gnu/numeric_members.cc
3843         (numpunct<>::_M_initialize_numpunct): Likewise.
3845 2004-01-12  Mark Mitchell  <mark@codesourcery.com>
3847         * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
3848         * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
3849         it.
3850         * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
3851         and remove Cygwin XFAIL.
3852         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
3853         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
3854         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
3855         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
3856         Likewise.
3857         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3858         * testsuite/27_io/objects/char/7.cc: Likewise.
3859         * testsuite/27_io/objects/char/9661-1.cc: Likewise.
3860         * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
3861         * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
3863 2004-01-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3865         * include/std/std_complex.h (std::complex<>::real): Return a
3866         reference. Add non-const overload.
3867         (std::complex<>::real): Likewise.
3868         (std::real): Likewise.
3869         (std::imag): Likewise.
3870         (std::operator+): Tidy.
3871         (std::operator-): Likewise.
3872         (std::operator*): Likewise.
3873         (std::operator/): Likewise.
3874         (std::operator>>): Likewise.
3876 2004-01-11  Paolo Carlini  <pcarlini@suse.de>
3878         PR libstdc++/13582
3879         * include/bits/fstream.tcc (imbue): Exploit the external
3880         buffer to imbue 'on the fly' a new locale and convert its
3881         remainder with the new codecvt facet.
3882         (underflow): Tweak slightly to deal with this special case.
3883         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
3884         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
3885         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
3886         * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
3887         * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
3889 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
3891         * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
3892         Import Revision 28.
3894 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
3896         PR libstdc++/13630
3897         * include/bits/locale_classes.h (class locale): Fix category
3898         typedef.
3899         * testsuite/22_locale/locale/13630.cc: Add.
3901 2004-01-10  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
3903         * include/bits/locale_facets.h: Make a name really dependent. This
3904         will be needed when Core Issue 224 is implemented.
3906 2004-01-09  Paolo Carlini  <pcarlini@suse.de>
3908         * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
3909         * testsuite/performance/allocator_thread.cc: Likewise.
3911 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
3913         * crossconfig.m4: Add LFS, io bits to linux cross config.
3914         * acconfig.h: Remove obsolete bits, reorder.
3915         * config.h.in: Regenerate.
3916         * aclocal.m4: Same.
3917         * configure: Same.
3919 2004-01-07  Gawain Bolton  <gp.bolton@computer.org>
3921         * include/bits/stl_list.h:
3922         * include/bits/list.tc:
3923         * src/list.cc:
3924         Performance enhancements for destructor, push_front(),
3925         push_back(), pop_front(), pop_back(), sort()
3926         Eliminated static_casts where possible.
3927         Moved code out of header files into new src/list.cc
3928         implementation file for library where possible.
3929         Remove inheritance from iterator class and create separate
3930         classes for non-constant and constant iterators.
3931         * include/bits/stl_tree.h (_Rb_tree class):
3932         * src/tree.cc:
3933         Only erase contents in destructor.
3934         Eliminate unnecessary initialization in assignment operator.
3935         Optimize for the nominal case by not checking whether
3936         container is empty in clear().
3937         Re-order test in _M_insert() to improve performance.
3938         Move initialization of new node's left & right pointers to
3939         src/tree.cc to where new node's colour is initialized
3940         and to reduce the amount of inline code.
3941         Use  _M_leftmost() and _M_end() to improve readability where
3942         appropriate.
3943         Create separate classes for non-constant and constant
3944         iterators to clarify code, avoid extra template parameters and
3945         casting away constness.
3947 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
3949         * src/Makefile.am (sources): Add list.cc, tree.cc.
3950         * src/stl_tree.cc: Move to...
3951         * src/tree.cc: ...here.
3952         * src/list.cc: Add.
3953         * config/linker-map.gnu: Tweaks.
3954         * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
3955         * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
3957         * bits/stl_vector.h: Column wrap comments.
3959 2004-01-07  Loren J. Rittle  <ljrittle@acm.org>
3961         (re-open) PR libstdc++/12658
3962         * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
3963         (locale::global): Likewise.
3965 2004-01-07  Paolo Carlini  <pcarlini@suse.de>
3967         * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
3968         Remove redundant #include.
3969         * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
3970         * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
3971         re-enable normal testing.
3972         * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
3973         #include.
3974         * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
3975         * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
3976         Likewise.
3977         * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
3978         Likewise.
3979         * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
3980         Likewise.
3981         * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
3982         Likewise.
3983         * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
3984         Likewise.
3985         * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
3986         Likewise.
3987         * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
3988         Likewise.
3989         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
3990         More properly, #include <locale>.
3991         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
3992         Remove redundant #include.
3993         * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
3994         * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
3995         redundant DejaGnu directive.
3996         * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
3997         redundant #include.
3999 2004-01-06  Benjamin Kosnik  <bkoz@redhat.com>
4000             Stefan Olsson  <stefan@snon.net>
4002         * scripts/check_performance: Use -pthread.
4003         * testsuite/performance/allocator.cc: Tweaks, add list.
4004         * testsuite/performance/allocator_thread.cc: New.
4006 2004-01-06  Jerry Quinn  <jlquinn@optonline.net>
4008         * include/bits/locale_facets.h: Document public classes and
4009         functions.
4010         * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
4011         Add comment.
4013 2004-01-06  Paolo Carlini  <pcarlini@suse.de>
4015         * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
4016         Remove redundant #includes.
4017         * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
4018         Likewise.
4019         * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
4020         Likewise.
4021         * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
4022         * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
4023         * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
4024         * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
4025         * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
4026         * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
4027         * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
4028         * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
4029         * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
4030         * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
4031         * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
4032         * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
4033         * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
4034         * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
4035         * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
4036         Likewise.
4037         * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
4038         Likewise.
4039         * testsuite/27_io/basic_istream/readsome/char/8258.cc:
4040         Likewise.
4041         * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
4042         Likewise.
4043         * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
4044         Likewise.
4045         * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
4046         * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
4047         * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
4049 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
4051         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
4052         Remove redundant #includes.
4053         * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
4054         Likewise.
4055         * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
4056         Likewise.
4057         * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
4058         Likewise.
4059         * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
4060         Likewise.
4061         * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
4062         Likewise.
4063         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
4064         Likewise.
4065         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
4066         Likewise.
4067         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
4068         Likewise.
4069         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
4070         Likewise.
4071         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
4072         Likewise.
4073         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
4074         Likewise.
4075         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
4076         Likewise.
4078 2004-01-04  Mark Mitchell  <mark@codesourcery.com>
4080         PR c++/12226
4081         * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
4082         constructor.
4083         * testsuite/27_io/basic_fstream/4.cc: Likewise.
4084         * testsuite/27_io/basic_ifstream/4.cc: Likewise.
4085         * testsuite/27_io/basic_ios/4.cc: Likewise.
4086         * testsuite/27_io/basic_iostream/4.cc: Likewise.
4087         * testsuite/27_io/basic_istream/4.cc: Likewise.
4088         * testsuite/27_io/basic_istingstream/4.cc: Likewise.
4089         * testsuite/27_io/basic_ofstream/4.cc: Likewise.
4090         * testsuite/27_io/basic_ostream/4.cc: Likewise.
4091         * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
4092         * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
4093         * testsuite/27_io/basic_stringstream/4.cc: Likewise.
4095 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
4097         * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
4098         Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
4099         always use double underscored names.
4100         * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
4101         Likewise.
4102         * include/bits/locale_facets.h (struct __numpunct_cache):
4103         Dimension _M_atoms_out and _M_atoms_in one position smaller.
4104         (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out
4105         and _M_atoms_in.