OSDN Git Service

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