OSDN Git Service

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