OSDN Git Service

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