OSDN Git Service

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