PR c++/18378
[official-gcc.git] / libstdc++-v3 / ChangeLog
blobfecd6252923d60ba6d27fc8b1fa3bc5d4a74cb4f
1 2004-12-20  Paolo Carlini  <pcarlini@suse.de>
3         * testsuite/27_io/basic_istream/peek/wchar_t/1.cc: New.
4         * testsuite/27_io/basic_istream/peek/wchar_t/12296.cc: Likewise.
5         * testsuite/27_io/basic_istream/peek/wchar_t/6414.cc: Likewise.
6         * testsuite/27_io/basic_istream/putback/wchar_t/1.cc: Likewise.
7         * testsuite/27_io/basic_istream/read/wchar_t/1.cc: Likewise.
8         * testsuite/27_io/basic_istream/read/wchar_t/2.cc: Likewise.
9         * testsuite/27_io/basic_istream/read/wchar_t/3.cc: Likewise.
10         * testsuite/27_io/basic_istream/readsome/wchar_t/6746-1.cc: Likewise.
11         * testsuite/27_io/basic_istream/readsome/wchar_t/6746-2.cc: Likewise.
12         * testsuite/27_io/basic_istream/readsome/wchar_t/8258.cc: Likewise.
13         * testsuite/27_io/basic_istream/seekg/wchar_t/2.cc: Likewise.
14         * testsuite/27_io/basic_istream/seekg/wchar_t/8348-1.cc: Likewise.
15         * testsuite/27_io/basic_istream/seekg/wchar_t/8348-2.cc: Likewise.
16         * testsuite/27_io/basic_istream/seekg/wchar_t/
17         exceptions_badbit_throw.cc: Likewise.
18         * testsuite/27_io/basic_istream/seekg/wchar_t/fstream.cc: Likewise.
19         * testsuite/27_io/basic_istream/seekg/wchar_t/sstream.cc: Likewise.
20         * testsuite/27_io/basic_istream/sentry/wchar_t/1.cc: Likewise.
21         * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
22         * testsuite/27_io/basic_istream/sentry/wchar_t/2.cc: Likewise.
23         * testsuite/27_io/basic_istream/sentry/wchar_t/3.cc: Likewise.
24         * testsuite/27_io/basic_istream/tellg/wchar_t/1.cc: Likewise.
25         * testsuite/27_io/basic_istream/tellg/wchar_t/2.cc: Likewise.
26         * testsuite/27_io/basic_istream/tellg/wchar_t/8348.cc: Likewise.
27         * testsuite/27_io/basic_istream/tellg/wchar_t/
28         exceptions_badbit_throw.cc: Likewise.
29         * testsuite/27_io/basic_istream/tellg/wchar_t/fstream.cc: Likewise.
30         * testsuite/27_io/basic_istream/tellg/wchar_t/sstream.cc: Likewise.
31         * testsuite/27_io/basic_istream/ws/wchar_t/1.cc: Likewise.
33         * testsuite/data/wistream_extractor_other-1.tst: New.
34         * testsuite/data/wistream_extractor_other-1.txt: Likewise.
35         * testsuite/data/wistream_extractor_other-2.tst: Likewise.
36         * testsuite/data/wistream_seeks-1.tst: Likewise.
37         * testsuite/data/wistream_seeks-1.txt: Likewise.
38         * testsuite/data/wistream_unformatted-1.tst: Likewise.
39         * testsuite/data/wistream_unformatted-1.txt: Likewise.
41         * testsuite/27_io/basic_istream/extractors_other/wchar_t/2.cc:
42         Use wistream_extractor_other-1.txt.
44         * testsuite/27_io/basic_istream/peek/char/6414.cc: Minor clean-up.
45         * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
46         * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
47         * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
49 2004-12-19  Paolo Carlini  <pcarlini@suse.de>
51         * testsuite/27_io/basic_istream/exceptions/wchar_t/9561.cc: New.
52         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
53         01.cc: Likewise.
54         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
55         02.cc: Likewise.
56         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
57         03.cc: Likewise.
58         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
59         06.cc: Likewise.
60         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
61         07.cc: Likewise.
62         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
63         08.cc: Likewise.
64         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
65         09.cc: Likewise.
66         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
67         10.cc: Likewise.
68         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
69         11.cc: Likewise.
70         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
71         12.cc: Likewise.
72         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
73         13.cc: Likewise.
74         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
75         9555-ia.cc: Likewise.
76         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
77         exceptions_badbit_throw.cc: Likewise.
78         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
79         exceptions_failbit.cc: Likewise.
80         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
81         exceptions_failbit_throw.cc: Likewise.
82         * testsuite/27_io/basic_istream/extractors_character/wchar_t/
83         1.cc: Likewise.
84         * testsuite/27_io/basic_istream/extractors_character/wchar_t/
85         11095-i.cc: Likewise.
86         * testsuite/27_io/basic_istream/extractors_character/wchar_t/
87         2.cc: Likewise.
88         * testsuite/27_io/basic_istream/extractors_character/wchar_t/
89         3.cc: Likewise.
90         * testsuite/27_io/basic_istream/extractors_character/wchar_t/
91         9555-ic.cc: Likewise.
92         * testsuite/27_io/basic_istream/extractors_other/wchar_t/
93         1.cc: Likewise.
94         * testsuite/27_io/basic_istream/extractors_other/wchar_t/
95         2.cc: Likewise.
96         * testsuite/27_io/basic_istream/extractors_other/wchar_t/
97         3.cc: Likewise.
98         * testsuite/27_io/basic_istream/extractors_other/wchar_t/
99         9318-in.cc: Likewise.
100         * testsuite/27_io/basic_istream/extractors_other/wchar_t/
101         9424-in.cc: Likewise.
102         * testsuite/27_io/basic_istream/extractors_other/wchar_t/
103         9555-io.cc: Likewise.
104         * testsuite/27_io/basic_istream/extractors_other/wchar_t/
105         error_failbit.cc: Likewise.
106         * testsuite/27_io/basic_istream/extractors_other/wchar_t/
107         exceptions_badbit_throw.cc: Likewise.
108         * testsuite/27_io/basic_istream/extractors_other/wchar_t/
109         exceptions_failbit_throw.cc: Likewise.
110         * testsuite/27_io/basic_istream/extractors_other/wchar_t/
111         exceptions_null.cc: Likewise.
113         * testsuite/27_io/basic_istream/extractors_other/char/2.cc: Minor
114         tweaks.
116         * testsuite/testsuite_io.h (struct fail_buf): Fix type of
117         dummy return values.
119 2004-12-19  Dhruv Matani  <dhruvbird@gmx.net>
120         
121         * include/ext/bitmap_allocator.h: Make doxygen style comments for
122         internal functions and classes.
124 2004-12-19  Dhruv Matani  <dhruvbird@gmx.net>
125         
126         * docs/html/20_util/allocator.html: Correct link.
127         * docs/html/ext/ballocator_doc.txt: Remove.
128         * docs/html/ext/ballocator_doc.html: Add.
130 2004-12-16  Danny Smith  <dannysmith@users.sourceforge.net>
132         PR target/18997
133         * config/os/newlib/os_defines.h (_GLIBCXX_GTHREAD_USE_WEAK):
134         Define to 0 for __CYGWIN__.
136 2004-12-16  Paolo Carlini  <pcarlini@suse.de>
138         * include/tr1/type_traits: Implement add_const, add_volatile,
139         and add_cv.
140         * testsuite/tr1/4_metaprogramming/const_volatile_modifications/
141         add_const.cc: New.
142         * testsuite/tr1/4_metaprogramming/const_volatile_modifications/
143         add_cv.cc: Likewise.
144         * testsuite/tr1/4_metaprogramming/const_volatile_modifications/
145         add_volatile.cc: Likewise.
147 2004-12-16  Paolo Carlini  <pcarlini@suse.de>
149         * include/tr1/type_traits: Implement is_function.
150         (struct __sfinae_types, struct __is_function_helper): New.
151         * testsuite/tr1/4_metaprogramming/composite_type_traits/
152         is_object/is_object.cc: New.
153         * testsuite/tr1/4_metaprogramming/composite_type_traits/
154         is_object/typedefs.cc: Likewise.
155         * testsuite/tr1/4_metaprogramming/primary_type_categories/
156         is_function/is_function.cc: Likewise.
157         * testsuite/tr1/4_metaprogramming/primary_type_categories/
158         is_function/typedefs.cc: Likewise.
160 2004-12-13  Paolo Carlini  <pcarlini@suse.de>
162         * include/tr1/type_traits (extent): Minor tweak (i.e., public).
164 2004-12-12  Paolo Carlini  <pcarlini@suse.de>
166         * include/tr1/type_traits: Minor tweak.
167         * testsuite/tr1/4_metaprogramming/type_properties/extent/
168         typedefs.cc: Fix date.
170 2004-12-12  Paolo Carlini  <pcarlini@suse.de>
172         * include/tr1/type_traits: Implement extent.
173         * testsuite/tr1/4_metaprogramming/type_properties/extent/
174         extent.cc: New.
175         * testsuite/tr1/4_metaprogramming/type_properties/extent/
176         typedefs.cc: Likewise.
178 2004-12-12  Paolo Carlini  <pcarlini@suse.de>
180         * include/tr1/type_traits: Implement is_pointer, remove_pointer,
181         and add_pointer; reformat. 
182         (_DEFINE_PRIMARY_SPEC_HELPER, _DEFINE_PRIMARY_SPEC): Generalize
183         and rename to _DEFINE_SPEC_HELPER and _DEFINE_SPEC; update uses.
184         * testsuite/tr1/4_metaprogramming/pointer_modifications/
185         add_pointer.cc: New.
186         * testsuite/tr1/4_metaprogramming/pointer_modifications/
187         remove_pointer.cc: Likewise.
188         * testsuite/tr1/4_metaprogramming/primary_type_categories/
189         is_pointer/is_pointer.cc: Likewise.
190         * testsuite/tr1/4_metaprogramming/primary_type_categories/
191         is_pointer/typedefs.cc: Likewise.
193         * testsuite/tr1/4_metaprogramming/primary_type_categories/
194         is_reference/is_reference.cc: Slightly tweak consistently.
196 2004-12-11  Paolo Carlini  <pcarlini@suse.de>
198         * include/tr1/type_traits: Implement rank.
199         * testsuite/testsuite_tr1.h (test_property): Generalize to any
200         value_type.
201         (test_category, test_relationship): Slightly tweak consistently.
202         * testsuite/tr1/4_metaprogramming/type_properties/rank/
203         rank.cc: New.
204         * testsuite/tr1/4_metaprogramming/type_properties/rank/
205         typedefs.cc: Likewise.
207         * testsuite/tr1/4_metaprogramming/composite_type_traits/
208         is_compound/is_compound.cc: New.
209         * testsuite/tr1/4_metaprogramming/composite_type_traits/
210         is_compound/typedefs.cc: Likewise.
212         * testsuite/tr1/4_metaprogramming/composite_type_traits/
213         is_arithmetic/is_arithmetic.cc: Tweak consistently with the
214         testsuite_tr1.h changes.
215         * testsuite/tr1/4_metaprogramming/composite_type_traits/
216         is_fundamental/is_fundamental.cc: Likewise.
217         * testsuite/tr1/4_metaprogramming/primary_type_categories/
218         is_array/is_array.cc: Likewise.
219         * testsuite/tr1/4_metaprogramming/primary_type_categories/
220         is_floating_point/is_floating_point.cc: Likewise.
221         * testsuite/tr1/4_metaprogramming/primary_type_categories/
222         is_integral/is_integral.cc: Likewise.
223         * testsuite/tr1/4_metaprogramming/primary_type_categories/
224         is_reference/is_reference.cc: Likewise.
225         * testsuite/tr1/4_metaprogramming/primary_type_categories/
226         is_void/is_void.cc: Likewise.
227         * testsuite/tr1/4_metaprogramming/relationships_between_types/
228         is_same/is_same.cc: Likewise.
229         * testsuite/tr1/4_metaprogramming/type_properties/is_const/
230         is_const.cc: Likewise.
231         * testsuite/tr1/4_metaprogramming/type_properties/is_volatile/
232         is_volatile.cc: Likewise.
234 2004-12-10  Paolo Carlini  <pcarlini@suse.de>
236         * include/tr1/type_traits: Implement remove_const, remove_volatile,
237         and remove_cv.
238         * testsuite/tr1/4_metaprogramming/const_volatile_modifications/
239         remove_const.cc: New.
240         * testsuite/tr1/4_metaprogramming/const_volatile_modifications/
241         remove_cv.cc: Likewise.
242         * testsuite/tr1/4_metaprogramming/const_volatile_modifications/
243         remove_volatile.cc: Likewise.
245         * testsuite/tr1/4_metaprogramming/primary_type_categories/
246         is_array/is_array.cc: Slightly tweak consistently, remove typedefs,
247         add a few tests.
249 2004-12-09  Paolo Carlini  <pcarlini@suse.de>
251         * include/tr1/type_traits: Implement remove_extent and
252         remove_all_extents.
253         * testsuite/tr1/4_metaprogramming/array_modifications/
254         remove_all_extents.cc: New.
255         * testsuite/tr1/4_metaprogramming/array_modifications/
256         remove_extent.cc: Likewise.
258 2004-12-08  Paolo Carlini  <pcarlini@suse.de>
260         * include/tr1/type_traits: Implement is_same, add_reference and
261         remove_reference.
262         * testsuite/testsuite_tr1.h (test_relationship): New.
263         * testsuite/tr1/4_metaprogramming/reference_modifications/
264         add_reference.cc: New.
265         * testsuite/tr1/4_metaprogramming/reference_modifications/
266         remove_reference.cc: Likewise.
267         * testsuite/tr1/4_metaprogramming/relationships_between_types/
268         is_same/is_same.cc: Likewise.
269         * testsuite/tr1/4_metaprogramming/relationships_between_types/
270         is_same/typedefs.cc: Likewise.
272         * testsuite/tr1/4_metaprogramming/type_properties/is_const/
273         is_const.cc: Minor tweaks.
274         * testsuite/tr1/4_metaprogramming/type_properties/is_volatile/
275         is_volatile.cc: Likewise.
277 2004-12-08  David Edelsohn  <edelsohn@gnu.org>
279         * Makefile.am (AM_MAKEFLAGS): Remove duplicate LIBCFLAGS and
280         PICFLAG.
281         * Makefile.in: Regenerated.
283 2004-12-07  Paolo Carlini  <pcarlini@suse.de>
285         * include/tr1/type_traits: Implement is_const and is_volatile.
286         * testsuite/testsuite_tr1.h (test_property): New.
287         * testsuite/tr1/4_metaprogramming/type_properties/
288         is_const/is_const.c: New.
289         * testsuite/tr1/4_metaprogramming/type_properties/
290         is_const/typedefs.cc: Likewise.
291         * testsuite/tr1/4_metaprogramming/type_properties/
292         is_volatile/is_volatile.cc: Likewise.
293         * testsuite/tr1/4_metaprogramming/type_properties/
294         is_volatile/typedefs.cc: Likewise.
295         * testsuite/tr1/4_metaprogramming/composite_type_traits/
296         is_arithmetic/is_arithmetic.cc: Slightly tweak to use ClassType
297         from testsuite_tr1.h.
298         * testsuite/tr1/4_metaprogramming/composite_type_traits/
299         is_fundamental/is_fundamental.cc: Likewise.
300         * testsuite/tr1/4_metaprogramming/primary_type_categories/
301         is_array/is_array.cc: Likewise.
302         * testsuite/tr1/4_metaprogramming/primary_type_categories/
303         is_floating_point/is_floating_point.cc: Likewise.
304         * testsuite/tr1/4_metaprogramming/primary_type_categories/
305         is_integral/is_integral.cc: Likewise.
306         * testsuite/tr1/4_metaprogramming/primary_type_categories/
307         is_reference/is_reference.cc: Likewise.
308         * testsuite/tr1/4_metaprogramming/primary_type_categories/
309         is_void/is_void.cc: Likewise.
311 2004-12-06  Paolo Carlini  <pcarlini@suse.de>
313         * include/tr1/type_traits: Implement is_reference.
314         * testsuite/tr1/4_metaprogramming/primary_type_categories/
315         is_reference/is_reference.cc: New.
316         * testsuite/tr1/4_metaprogramming/primary_type_categories/
317         is_reference/typedefs.cc: Likewise.
319 2004-12-05  Paolo Carlini  <pcarlini@suse.de>
321         PR libstdc++/18837
322         * testsuite/testsuite_performance.h: Fix mallinfo macros for
323         hpux.
325 2004-12-04  Richard Henderson  <rth@redhat.com>
327         * testsuite/26_numerics/complex/pow.cc: Use -mieee on alpha.
329 2004-12-04  Richard Henderson  <rth@redhat.com>
331         * include/ext/malloc_allocator.h: Include cstdlib.
333 2004-12-04  Paolo Carlini  <pcarlini@suse.de>
335         * include/tr1/type_traits: New.
336         * include/Makefile.am: Add.
337         * include/Makefile.in: Regenerate.
338         * testsuite/testsuite_tr1.h: New.
339         * testsuite/tr1/4_metaprogramming/composite_type_traits/
340         is_arithmetic/is_arithmetic.cc: New.
341         * testsuite/tr1/4_metaprogramming/composite_type_traits/
342         is_arithmetic/typedefs.cc: Likewise.
343         * testsuite/tr1/4_metaprogramming/composite_type_traits/
344         is_fundamental/is_fundamental.cc: Likewise.
345         * testsuite/tr1/4_metaprogramming/composite_type_traits/
346         is_fundamental/typedefs.cc: Likewise.
347         * testsuite/tr1/4_metaprogramming/helper_classes/
348         true_false_type.cc: Likewise.
349         * testsuite/tr1/4_metaprogramming/helper_classes/
350         true_false_type_typedefs.cc: Likewise.
351         * testsuite/tr1/4_metaprogramming/helper_classes/
352         typedefs.cc: Likewise.
353         * testsuite/tr1/4_metaprogramming/primary_type_categories/
354         is_array/is_array.cc: Likewise.
355         * testsuite/tr1/4_metaprogramming/primary_type_categories/
356         is_array/typedefs.cc: Likewise.
357         * testsuite/tr1/4_metaprogramming/primary_type_categories/
358         is_floating_point/is_floating_point.cc: Likewise.
359         * testsuite/tr1/4_metaprogramming/primary_type_categories/
360         is_floating_point/typedefs.cc: Likewise.
361         * testsuite/tr1/4_metaprogramming/primary_type_categories/
362         is_integral/is_integral.cc: Likewise.
363         * testsuite/tr1/4_metaprogramming/primary_type_categories/
364         is_integral/typedefs.cc: Likewise.
365         * testsuite/tr1/4_metaprogramming/primary_type_categories/
366         is_void/is_void.cc: Likewise.
367         * testsuite/tr1/4_metaprogramming/primary_type_categories/
368         is_void/typedefs.cc: Likewise.
370 2004-12-02  Paolo Carlini  <pcarlini@suse.de>
372         * testsuite/testsuite_io.h (class sync_buf): New, templatized
373         version of sync_streambuf; add typedefs for streambuf/wstreambuf.
374         (class fail_buf): Likewise, for fail_streambuf.
375         (class fail_num_get): Templatize and add char/wchar_t typedefs.
376         (class fail_num_put): Likewise.
377         * testsuite/27_io/basic_istream/extractors_arithmetic/char/
378         exceptions_badbit_throw.cc: Use the latter.
379         * testsuite/27_io/basic_istream/extractors_arithmetic/char/
380         exceptions_failbit_throw.cc: Likewise.
381         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/
382         exceptions_badbit_throw.cc: Likewise.
383         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/
384         exceptions_failbit_throw.cc: Likewise.
386 2004-12-01  Paolo Carlini  <pcarlini@suse.de>
388         * testsuite/27_io/basic_istream/get/wchar_t/1.cc: New.
389         * testsuite/27_io/basic_istream/get/wchar_t/2.cc: Likewise.
390         * testsuite/27_io/basic_istream/get/wchar_t/3.cc: Likewise.
391         * testsuite/27_io/basic_istream/ignore/wchar_t/1.cc: Likewise.
392         * testsuite/27_io/basic_istream/ignore/wchar_t/2.cc: Likewise.
393         * testsuite/27_io/basic_istream/ignore/wchar_t/3.cc: Likewise.
394         * testsuite/27_io/basic_istream/ignore/wchar_t/6360.cc: Likewise.
395         * testsuite/27_io/basic_istream/ignore/wchar_t/7220.cc: Likewise.
397 2004-11-29  Paolo Carlini  <pcarlini@suse.de>
399         * testsuite/21_strings/basic_string/capacity/char/18654.cc: Use
400         better names.
401         * testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc: Same.
403 2004-11-29  Paolo Carlini  <pcarlini@suse.de>
405         PR libstdc++/18654
406         * include/bits/basic_string.tcc (_Rep::_S_create): When shrinking,
407         do not round to pagesize.
408         * testsuite/21_strings/basic_string/capacity/char/18654.cc: New.
409         * testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc: New.
411 2004-11-27  Paolo Carlini  <pcarlini@suse.de>
413         PR libstdc++/18690
414         * include/tr1/utility (get(pair), get(const pair)): Change
415         occurrences of _I to _Int.
417 2004-11-27  Paolo Carlini  <pcarlini@suse.de>
419         * testsuite/27_io/basic_istream/getline/wchar_t/2.cc: Fix typo.
420         * testsuite/27_io/basic_istream/getline/wchar_t/4.cc: Likewise.
422         * testsuite/22_locale/time_put/put/char/17038.cc: Use VERIFY.
423         * testsuite/22_locale/time_put/put/wchar_t/17038.cc: Likewise.
424         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11603.cc: Likewise.
425         * testsuite/27_io/basic_ios/exceptions/char/2.cc: Likewise.
427 2004-11-26  Paolo Carlini  <pcarlini@suse.de>
429         DR 243. get and getline when sentry reports failure [WP]
430         * include/bits/istream.tcc (istream<>::get, istream<>::getline):
431         Store a null character only if the array has a non-zero size.
432         * src/istream.cc (istream<char>::getline, istream<wchar_t>::getline):
433         Likewise.
434         * testsuite/27_io/basic_istream/get/char/3.cc: New.
435         * testsuite/27_io/basic_istream/getline/char/6.cc: New.
436         * testsuite/27_io/basic_istream/getline/wchar_t/6.cc: New.
437         * docs/html/ext/howto.html: Add an entry for DR 243.
439         * testsuite/27_io/basic_istream/getline/wchar_t/1.cc: New.
440         * testsuite/27_io/basic_istream/getline/wchar_t/2.cc: New.
441         * testsuite/27_io/basic_istream/getline/wchar_t/3.cc: New.
442         * testsuite/27_io/basic_istream/getline/wchar_t/4.cc: New.
443         * testsuite/27_io/basic_istream/getline/wchar_t/5.cc: New.
445 2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>
447         * configure: Regenerate for libtool change.
449 2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>
451         * Makefile.in, aclocal.m4: Regenerate with automake 1.9.3.
452         * include/Makefile.in: Likewise.
453         * libmath/Makefile.in: Likewise.
454         * libsupc++/Makefile.in: Likewise.
455         * po/Makefile.in: Likewise.
456         * src/Makefile.in: Likewise.
457         * testsuite/Makefile.in: Likewise.
459 2004-11-24  Jonathan Wakely  <redi@kayari.org>
461         * docs/html/ext/howto.html: Fix incorrect link.
462         * docs/html/documentation.html: Regenerate.
464 2004-11-24  Nathan Myers  <ncm@cantrip.org>
466         * include/bits/streambuf_iterator.h
467         (istreambuf_iterator<>::operator++(), operator++(int)): Don't
468         check unnecessarily the return value of _M_sbuf->sbumpc().
470 2004-11-24  Benjamin Kosnik  <bkoz@redhat.com>
472         * include/Makefile.am (tr1_headers): Add utility, functional.
473         * include/Makefile.in: Regenerate.
475 2004-11-24  Chris Jefferson  <chris@bubblescope.net>
477         * include/tr1/tuple(operator!=): Change operator 
478         definition to match (draft) technical report.
479         (operator>): Same.
480         (operator<=): Same.
481         (operator>=): Same.
482         (ref): Move to include/tr1/functional.
483         (cref): Same.
484         (tuple_size<pair>): Move to include/tr1/utility.
485         (tuple_element<,pair>): Same.
486         * include/tr1/functional: New.
487         * include/tr1/utility: New.
488         * testsuite/tr1/6_container/utility/pair.cc: New.
490 2004-11-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
492         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
493         (do_out, do_unshift, do_in): Remove redundant typedef.
495 2004-11-23  Chris Jefferson  <chris@bubblescope.net>
497         * testsuite/testsuite_iterators.h: New.
498         * testsuite/25_algorithms/search_n/iterator.cc: New.
499         * testsuite/performance/25_algorithms/search_n.cc: New.
501 2004-11-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
503         * testsuite/lib/libstdc++.exp: Use new procs in target-libpath.exp.
505 2004-11-23  Benjamin Kosnik  <bkoz@redhat.com>
507         * docs/doxygen/doxygroups.cc: Add std::tr1 namespace.
508         * docs/doxygen/run_doxygen: Renames for std::tr1.
509         * docs/doxygen/user.cfg.in: Add cxxabi.h.
510         * include/bits/*.tcc: Add file markup.
511         * include/bits/allocator.h: Add link to allocator.html.
512         * include/bits/atomicity.h: Add file markup.
513         * include/bits/concurrence.h: Same.
514         * include/bits/functexcept.h: Same.
515         * include/ext*: Adjust file markup, remove GCC3 bits.
516         * include/std/*: Adjust file markup, remove bits about renamed files.
517         * libsupc++/cxxabi.h: Add file markup.
518         * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust line numbers.
520 2004-11-22  Benjamin Kosnik  <bkoz@redhat.com>
522         * include/bits/locale_facets.h (isspace, isprint, isupper,
523         islower, isalpha, isdigit, ispunct, isxdigit, isalnum, isgraph,
524         toupper, tolower): Add doxygen markup.
525         (codecvt_byname, ctype_byname, numpunct_byname, collate_byname,
526         time_get_byname, time_put_byname, moneypunct_byname,
527         messages_byname): Same.
528         * include/std/std_fstream.h: Remove superfluous markup.
529         * include/std/std_sstream.h: Same.
530         * include/std/std_streambuf.h: Same.
531         * include/ext/enc_filebuf.h: Adjust markup.
532         * include/ext/stdio_filebuf.h: Same.
533         * include/ext/stdio_sync_filebuf.h: Same.
534         * include/bits/codecvt.h: Same.
535         * config/os/gnu-linux/ctype_base.h: Same.
536         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
537         * include/tr1/array: Add markup.
538         * include/tr1/tuple: Same.
539         
540         * docs/doxygen/run_doxygen: Print arguments.
542         * docs/doxygen/user.cfg.in: Tweaks.
544 2004-11-19  Jonathan Wakely  <redi@gcc.gnu.org>
546         * include/bits/basic_string.h, include/bits/locale_classes.h,
547         include/bits/valarray_after.h, include/bits/valarray_before.h,
548         include/ext/stdio_sync_filebuf.h, include/std/std_algorithm.h,
549         include/std/std_functional.h, include/std/std_memory.h,
550         include/std/std_numeric.h: Doxygen fixes.
552 2004-11-19  Paolo Carlini  <pcarlini@suse.de>
554         * testsuite/22_locale/time_get/get_date/char/1.cc: In the checks
555         use, more correctly (and consistently with other testcases) the
556         return value of the facet (the iterator arguments are by value).
557         * testsuite/22_locale/time_get/get_date/char/12791.cc: Likewise.
558         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Likewise.
559         * testsuite/22_locale/time_get/get_date/wchar_t/12791.cc: Likewise.
560         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Likewise.
561         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
562         * testsuite/22_locale/time_get/get_time/char/1.cc: Likewise.
563         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Likewise.
564         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
565         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
566         * testsuite/22_locale/time_get/get_year/char/1.cc: Likewise.
567         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Likewise.
569 2004-11-19  Jonathan Wakely  <redi@gcc.gnu.org>
571         * Makefile.am (doxygen, doxygen-maint, doxygen-man): Remove extra '$'
572         from host_alias variable.
573         * Makefile.in: Regenerate.
575 2004-11-19  Chris Jefferson  <chris@bubblescope.net>
577         * include/bits/stl_list.h (list::back, list::back const):
578         Don't decrement temporary.
580 2004-11-19  Paolo Carlini  <pcarlini@suse.de>
582         * include/bits/stl_deque.h (deque::front, deque::front const,
583         deque::back, deque::back const): Slightly tweak for stylistic
584         consistency.
586 2004-11-18  Paolo Carlini  <pcarlini@suse.de>
588         * testsuite/26_numerics/numeric/sum_diff.cc: Use VERIFY.
589         * testsuite/ext/array_allocator/1.cc: Likewise.
590         * testsuite/ext/array_allocator/2.cc: Likewise.
591         * testsuite/ext/array_allocator/3.cc: Likewise.
592         * testsuite/ext/enc_filebuf/char/13598.cc: Likewise.
594 2004-11-18  Paolo Carlini  <pcarlini@suse.de>
596         * include/bits/locale_facets.tcc (num_get<>::do_get(void*&)):
597         If the failbit is set, don't set it again.
598         (money_get<>::_M_extract): Minor stylistic tweak: consistently
599         with the other functions, take care of eofbit at the end.
601 2004-11-18  Paolo Carlini  <pcarlini@suse.de>
603         DR 434. bitset::to_string() hard to use [Ready]
604         * include/std/std_bitset.h (to_string): Add three overloads, taking
605         fewer template arguments.
606         * docs/html/ext/howto.html: Add an entry for DR 434.
607         * testsuite/23_containers/bitset/to_string/1.cc: New.
609 2004-11-17  Paolo Carlini  <pcarlini@suse.de>
611         * include/bits/istream.tcc (getline(basic_istream<>&, basic_string<>&,
612         _CharT)): Remove temporary kludge for libstdc++/15002.
613         * include/std/std_streambuf.h (class basic_streambuf): Declare
614         getline(basic_istream<>&, basic_string<>&, _CharT) as friend.
615         * include/bits/basic_string.h (getline(basic_istream<>&,
616         basic_string<>&, _CharT)): Declare optimized specializations for
617         char and wchar_t, using protected members of basic_streambuf.
618         * src/istream.cc: Define the latter.
620 2004-11-16  Jonathan Wakely  <redi@gcc.gnu.org>
622         * docs/html/19_diagnostics/howto.html: Document change from
623         _GLIBCPP_CONCEPT_CHECKS to _GLIBCXX_CONCEPT_CHECKS in 3.4.
625 2004-11-16  Matthias Klose  <doko@debian.org>
627         * docs/doxygen/user.cfg.in: Set HAVE_DOT to NO.
629 2004-11-16  Matthias Klose  <doko@debian.org>
631         * Makefile.am (doxygen, doxygen-maint, doxygen-man): Use host_alias
632         instead of build_alias.
633         * docs/doxygen/run_doxygen: Likewise.
634         * docs/doxygen/user.cfg.in: Likewise.
635         * Makefile.in: Regenerate.
637 2004-11-15  Paolo Carlini  <pcarlini@suse.de>
639         * include/bits/streambuf.tcc (__copy_streambufs): Provide
640         a generic version of the function, not using the protected
641         members of basic_streambuf.
642         * include/std/std_streambuf.h (__copy_streambufs): Declare
643         optimized specializations for char and wchar_t.
644         * src/streambuf.cc: New file, define the latter.
645         * src/Makefile.am: Add.
646         * src/Makefile.in: Regenerate.
648 2004-11-15  Matthias Klose  <doko@debian.org>
650         * docs/doxygen/run_doxygen: Add --build_alias option,
651         substitute it in docs/doxygen/user.cfg.in.
652         * docs/doxygen/user.cfg.in: Use build_alias.
653         * Makefile.am: Pass --build_alias to run_doxygen
654         * Makefile.in: Regenerate.
656 2004-11-15  Benjamin Kosnik  <bkoz@redhat.com>
658         * testsuite/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.4.
660 2004-11-15  Paolo Carlini  <pcarlini@suse.de>
662         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 33.
664 2004-11-14  Paolo Carlini  <pcarlini@suse.de>
666         * include/bits/streambuf_iterator.h (istreambuf_iterator::_M_get):
667         Slightly tweak for clarity (also leads to measurably better code).
669 2004-11-12  Andrew Pinski  <pinskia@physics.uc.edu>
671         PR other/14264
672         * testsuite/lib/libstdc++.exp: Set LC_ALL and LANG to C.
674 2004-11-09  Paolo Carlini  <pcarlini@suse.de>
676         * include/bits/locale_facets.tcc (time_get<>::do_get_weekday,
677         time_get<>::do_get_monthname): Absolutely avoid dereferencing
678         end iterators.
680         * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
681         Minor tweak.    
683 2004-11-08  Benjamin Kosnik  <bkoz@redhat.com>
684             Doug Gregor  <dgregor@cs.indiana.edu>
686         PR libstdc++/17664
687         * src/debug.cc : Just use one mutex.
689 2004-11-08  Benjamin Kosnik  <bkoz@redhat.com>
691         * configure.ac (libtool_VERSION): To 6:4:0.
692         * configure: Regenerate.
694         * config/linker-map.gnu: Slide new symbols into GLIBCXX_3.4.4.
696         * docs/doxygen/user.cfg.in: Add more extension files.
698 2004-11-08  Paolo Carlini  <pcarlini@suse.de>
700         * include/bits/streambuf_iterator.h (class istreambuf_iterator):
701         Consistently use _M_c to cache the current char, i.e., not only
702         when operator++(int) is involved; change _M_c to mutable.
703         (_M_get()): Always save the return value of _M_sbuf->sgetc() into
704         _M_c.
705         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Fix
706         (long standing) typo.
707         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
708         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
709         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
711 2004-11-08  Paolo Carlini  <pcarlini@suse.de>
713         * include/bits/istream.tcc (getline(char_type*, streamsize,
714         char_type), ignore(streamsize), ignore(streamsize, int_type)):
715         Restore a generic version of the functions, not using the
716         protected members of basic_streambuf.
717         * include/std/std_istream.h (getline(char_type*, streamsize,
718         char_type), ignore(streamsize), ignore(streamsize, int_type)):
719         Declare optimized specializations for char and wchar_t.
720         * src/istream.cc: New file, define the latter.
721         * src/Makefile.am: Add.
722         * src/Makefile.in: Regenerate.
724 2004-11-07  Paolo Carlini  <pcarlini@suse.de>
726         * testsuite/performance/27_io/ifstream_getline-2.cc: New.
728 2004-11-05  Benjamin Kosnik  <bkoz@redhat.com>
730         PR libstdc++/17218
731         PR libstdc++/17223
732         * docs/doxygen/filter: Remove.
733         * docs/doxygen/filter.sed: Remove.
734         * docs/doxygen/mainpage.html: Add link to functions.
735         * docs/doxygen/run_doxygen: Changes due to new source filtering.
736         * docs/doxygen/user.cfg.in: Update to doxygen 1.3.9.1, tweak.
737         * include/bits/allocator.h: Tweaks for doxygen.
738         * include/bits/char_traits.h: Same.
739         * include/bits/codecvt.h: Same.
740         * include/bits/concurrence.h: Same.
741         * include/bits/locale_facets.h: Same.
742         * include/ext/array_allocator.h: Same.
743         * include/ext/debug_allocator.h: Same.
744         * include/ext/malloc_allocator.h: Same.
745         * include/ext/mt_allocator.h: Same.
746         * include/ext/new_allocator.h: Same.
747         * include/ext/pool_allocator.h: Same.
748         * include/ext/stdio_sync_filebuf.h: Same.
749         * include/std/std_memory.h: Same.
750         * include/tr1/array: Same.
751         * include/tr1/tuple: Same.
752         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
753         * config/os/gnu-linux/ctype_base.h: Same.
755 2004-11-04  Paolo Carlini  <pcarlini@suse.de>
757         * include/bits/locale_facets.tcc (num_get<>::do_get(bool&)):
758         Evaluate __beg == __end the exact strict minimum number of times.
760 2004-11-03  Jonathan Wakely  <redi@gcc.gnu.org>
762         * include/bits/stl_numeric.h (partial_sum, adjacent_difference):
763         Avoid dereferencing two times __first in the prologue.
765 2004-11-03  Paolo Carlini  <pcarlini@suse.de>
767         * include/bits/stl_numeric.h: Trivial formatting fixes.
769 2004-11-03  Benjamin Kosnik  <bkoz@redhat.com>
771         * include/bits/c++config: Spacing.
772         * libsupc++/del_op.cc: Include c++config.h.
773         * libsupc++/del_opnt.cc: Same.
774         * libsupc++/del_opv.cc: Same.
775         * libsupc++/del_opvnt.cc: Same.
776         * libsupc++/new_op.cc: Same.
777         * libsupc++/new_opnt.cc: Same.
778         * libsupc++/new_opv.cc: Same.
779         * libsupc++/new_opvnt.cc: Same.
781 2004-11-03  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
783         * config/os/bsd/darwin/os_defines.h
784         (_GLIBCXX_WEAK_DEFINITION): Define.
785         * include/bits/c++config (_GLIBCXX_WEAK_DEFINITION): Define.
786         * libsupc++/del_op.cc (operator delete(void *)): Use
787         _GLIBCXX_WEAK_DEFINITION.
788         * libsupc++/del_opnt.cc
789         (operator delete(void *, const std::nothrow_t&)): Same.
790         * libsupc++/del_opv.cc (operator delete[](void *)): Same.
791         * libsupc++/del_opvnt.cc
792         (operator delete[](void *, const std::nothrow_t&)): Same.
793         * libsupc++/new_op.cc (operator new(std::size_t)): Same.
794         * libsupc++/new_opnt.cc
795         (operator new(std::size_t, const std::nothrow_t&)): Same
796         * libsupc++/new_opv.cc (operator new[](std::size_t)): Same.
797         * libsupc++/new_opvnt.cc
798         (operator new[](std::size_t, const std::nothrow_t&)): Same.
800 2004-11-02  Paolo Carlini  <pcarlini@suse.de>
802         * include/bits/locale_facets.tcc (num_get<>::_M_extract_int):
803         Evaluate *__beg the exact strict minimum number of times; likewise
804         for __beg != __end; slightly simplify main parsing loop.
806 2004-11-02  Benjamin Kosnik  <bkoz@redhat.com>
807             Lothar Werzinger  <lothar@xcerla.com>
808         
809         PR libstdc++/17664
810         * src/debug.cc: Include concurrence, use mutexes.
811         (_Safe_iterator_base::_M_attach): Here. 
812         (_Safe_iterator_base::_M_detach): Here. 
813         
814 2004-11-02  Benjamin Kosnik  <bkoz@redhat.com>
816         PR libstdc++/17922
817         * include/bits/ios_base.h : Add enum values.
818         * testsuite/testsuite_hooks.h (bitmask_operators): Add function.
819         * testsuite/27_io/ios_base/types/fmtflags/bitmask_operators.cc: New.
820         * testsuite/27_io/ios_base/types/fmtflags/case_label.cc: New.
821         * testsuite/27_io/ios_base/types/iostate/bitmask_operators.cc: New.
822         * testsuite/27_io/ios_base/types/iostate/case_label.cc: New.
823         * testsuite/27_io/ios_base/types/openmode/bitmask_operators.cc: New.
824         * testsuite/27_io/ios_base/types/openmode/case_label.cc: New.
825         * testsuite/27_io/ios_base/types/seekdir/case_label.cc: New.
827         * config/io/c_io_stdio.h (__ios_flags): Mark deprecated.
828         * src/ios.cc: Same.
830         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
831         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
833 2004-11-01  Momchil Velikov  <velco@fadata.bg>
835         PR libstdc++/18185
836         * libsupc++/eh_globals.cc (get_globals_dtor): Delete unhandled
837         exceptions.
838         * testsuite/thread/18185.cc: New.
839         
840 2004-11-01  Chris Jefferson  <chris@bubblescope.net>
842         PR libstdc++/18159
843         * include/tr1/tuple (get(pair)): Change occurrences of _I to _Int.
844         (get(const pair)): Likewise.
846 2004-11-01  Paolo Carlini  <pcarlini@suse.de>
848         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
849         Evaluate *__beg the exact strict minimum number of times; likewise
850         for __beg != __end; in the main parsing loop, call ++__beg in two
851         places only. The former is also a correctness issue, because,
852         according to the standard (22.2.2.1.2, Stage 2), 'in' shall be
853         dereferenced only one time for each increment.
855 2004-10-31  Benjamin Kosnik  <bkoz@redhat.com>
857         PR c++/16728
858         * testsuite/23_containers/set/modifiers/16728.cc: New.
860 2004-10-30  Paolo Carlini  <pcarlini@suse.de>
862         * include/ext/bitmap_allocator.h (allocate(size_type)): Minor tweak.
864         * testsuite/ext/bitmap_allocator/check_delete.cc: New.
865         * testsuite/ext/bitmap_allocator/check_new.cc: Likewise.
867 2004-10-29  Geoffrey Keating  <geoffk@apple.com>
869         * configure.host (darwin*): Set os_include_dir to a separate directory
870         for Darwin.
871         * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add a new C locale kind,
872         'darwin'.
873         * config/locale/darwin/ctype_members.cc: New.
874         * config/os/bsd/darwin/ctype_base.h: New.
875         * config/os/bsd/darwin/ctype_inline.h: New.
876         * config/os/bsd/darwin/ctype_noninline.h: New.
877         * config/os/bsd/darwin/os_defines.h: New.
879         * testsuite/22_locale/locale/cons/12658_thread-1.cc: Only xfail
880         on Linux.
882 2004-10-29  Chris Jefferson  <chris@bubblescope.net>
884         * include/bit/stl_algo.h (find_first_of(,,,,pred)):
885         Remove invalid EqualOpConcept.
886         * testsuite/25_algorithms/find_first_of/concept_check_1.cc: New.
888 2004-10-29  Benjamin Kosnik  <bkoz@redhat.com>
890         * testsuite/testsuite_allocator.h (check_delete): New.
891         (check_new): Simplify.
892         * testsuite/ext/array_allocator/check_delete.cc: New.
893         * testsuite/ext/array_allocator/check_new.cc: Simplify.
894         * testsuite/ext/debug_allocator/check_delete.cc: New.
895         * testsuite/ext/debug_allocator/check_new.cc: Simplify.
896         * testsuite/ext/malloc_allocator/check_delete.cc: New.
897         * testsuite/ext/malloc_allocator/check_new.cc: Simplify.
898         * testsuite/ext/mt_allocator/check_delete.cc: New.
899         * testsuite/ext/mt_allocator/check_new.cc: Simplify.
900         * testsuite/ext/new_allocator/check_delete.cc: New.
901         * testsuite/ext/new_allocator/check_new.cc: Simplify.
902         * testsuite/ext/pool_allocator/check_delete.cc: New.
903         * testsuite/ext/pool_allocator/check_new.cc: Simplify.
905 2004-10-28  Chris Jefferson  <chris@bubblescope.net>
907         PR libstdc++/18159
908         * include/tr1/tuple: Fix, change formatting.
910 2004-10-28  Benjamin Kosnik  <bkoz@redhat.com>
912         * include/ext/mt_allocator.h (__common_pool_policy): Add template
913         template parameter for pool class type.
914         (__per_type_pool_policy): Same.
915         (__mt_allocator): Don't inherit policy. Qualify policy_type calls.
916         * testsuite/ext/mt_allocator/check_deallocate_null.cc: Fix.
917         * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: Same.
918         * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
919         * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
920         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
921         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
922         * testsuite/ext/mt_allocator/deallocate_local-2.cc: Same.
923         * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
924         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
925         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
926         * testsuite/ext/mt_allocator/instantiate.cc: Same.
927         * testsuite/ext/mt_allocator/tune-1.cc: Same.
928         * testsuite/ext/mt_allocator/tune-2.cc: Same.
929         * testsuite/ext/mt_allocator/tune-3.cc: Same.
930         * testsuite/ext/mt_allocator/tune-4.cc: Same.
932 2004-10-28  Paolo Carlini  <pcarlini@suse.de>
934         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
935         Cache *__beg in __c when parsing exponent sign too.
936         (num_get<>::do_get(..., bool&)): Cache *__beg.
937         (money_get<>::_M_extract)): Likewise, in money_base::value.
939 2004-10-27  Paolo Carlini  <pcarlini@suse.de>
941         * include/bits/basic_string.h (assign(const basic_string&)):
942         Move out of line...
943         * include/bits/basic_string.tcc: ... here.
945 2004-10-27  Paolo Carlini  <pcarlini@suse.de>
947         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
948         Move out of line...
949         * include/bits/basic_string.tcc: ... here.
951 2004-10-26  Paolo Carlini  <pcarlini@suse.de>
953         * include/bits/basic_string.h (append(const basic_string&),
954         append(size_type, _CharT)): Move out of line...
955         * include/bits/basic_string.tcc: ... here.
957 2004-10-26  Paolo Carlini  <pcarlini@suse.de>
959         * include/bits/basic_string.h (erase(size_type, size_type),
960         erase(iterator), erase(iterator, iterator)): Call _M_mutate
961         instead of _M_replace_safe, equivalent when the fourth argument
962         is zero and simpler.
964 2004-10-26  Benjamin Kosnik  <bkoz@redhat.com>
966         * include/ext/array_allocator.h (array::allocate): Check for valid
967         array object, use its size member function directly.
968         * testsuite/ext/array_allocator/3.cc: New.
969         * docs/html/20_util/allocator.html: Add docs.
970         
971 2004-10-25  Geoffrey Keating  <geoffk@apple.com>
973         * configure.host (darwin*): Build libstdc++ single module
974         and flat namespace.
975         * libsupc++/new_op.cc (new): Make weak.
976         * libsupc++/new_opnt.cc (new): Make weak.
977         * libsupc++/new_opv.cc (new): Make weak.
978         * libsupc++/new_opvnt.cc (new): Make weak.
979         * libsupc++/delete_op.cc (delete): Make weak.
980         * libsupc++/delete_opnt.cc (delete): Make weak.
981         * libsupc++/delete_opv.cc (delete): Make weak.
982         * libsupc++/delete_opvnt.cc (delete): Make weak.
984 2004-10-25  Benjamin Kosnik  <bkoz@redhat.com>
986         * testsuite/Makefile.am (GLIBCXX_INCLUDES): Add.
987         (AUTOMAKE_OPTIONS): Add nostdinc.
988         * testsuite/Makefile.in: Regenerate.
989         * scripts/testsuite_flags.in (build-includes): Remove redundant
990         search for libsupc++.
991         * fragment.am: Clean.
992         
993 2004-10-25  Benjamin Kosnik  <bkoz@redhat.com>
995         * include/Makefile.am (tr1_headers): Add tuple.
996         * include/Makefile.in: Regenerate.
998 2004-10-25  Chris Jefferson  <chris@bubblescope.net>
1000         * include/tr1/tuple: Implementation of tuple from library TR.
1001         * testsuite/tr1/6_containers/tuple/tuple_element.cc: New.
1002         * testsuite/tr1/6_containers/tuple/tuple_size.cc: New.
1003         * testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc:
1004         New.
1005         * testsuite/tr1/6_containers/tuple/cons/assignment.cc: New.
1006         * testsuite/tr1/6_containers/tuple/cons/big_tuples.cc: New.
1007         * testsuite/tr1/6_containers/tuple/cons/constructor.cc: New.
1008         * testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc: 
1009         New.
1010         * testsuite/tr1/6_containers/tuple/creation_functions/tie.cc: New.
1011         * testsuite/tr1/6_containers/tuple/element_access/get.cc: New.
1013 2004-10-25  Paolo Carlini  <pcarlini@suse.de>
1014         
1015         * include/bits/basic_string.h (_Rep::_M_is_safe): Move to
1016         basic_string as _M_disjunct, adjust to take only __s.
1017         * include/bits/basic_string.tcc: Adjust consistently callers. 
1019 2004-10-25  Paolo Carlini  <pcarlini@suse.de>
1021         * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
1022         Adjust bit missing from the previous commit.
1024 2004-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
1026         PR other/18138
1027         * testsuite/lib/libstdc++.exp: Accept more than one multilib libgcc.
1029 2004-10-25  Paolo Carlini  <pcarlini@suse.de>
1031         * include/bits/basic_string.h (_Rep::_M_is_safe, _M_check_length,
1032         _M_move, _M_copy, _M_assign): New, use througout.
1033         (operator+=(_CharT)): Define in terms of push_back.
1034         (append(const basic_string&)): Define here, inline, and simplify,
1035         don't use the full _M_replace_safe.
1036         (append(size_type, _CharT)): Likewise, don't use _M_replace_aux.
1037         (push_back): Likewise.
1038         (assign(const basic_string&)): Define here, inline.
1039         * include/bits/basic_string.tcc (append(const _CharT* s, size_type):
1040         Fix: when s points inside the _Rep, upon reallocation (reserve) we
1041         were copying from deallocated memory.
1042         (append(const basic_string&, size_type, size_type)): Simplify,
1043         don't use _M_replace_safe.
1044         (replace(size_type, size_type, const _CharT*, size_type)): Slightly
1045         tweak.
1046         (reserve): Likewise.
1047         * testsuite/21_strings/basic_string/append/char/2.cc: New.
1048         * testsuite/21_strings/basic_string/append/char/3.cc: Likewise.
1049         * testsuite/21_strings/basic_string/append/wchar_t/2.cc: Likewise.
1050         * testsuite/21_strings/basic_string/append/wchar_t/3.cc: Likewise.
1052         * testsuite/21_strings/basic_string/assign/char/3.cc: Remove junk.
1053         * testsuite/21_strings/basic_string/assign/wchar_t/3.cc: Likewise.
1055 2004-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
1057         * testsuite/ext/mt_allocator/deallocate_global-2.c:
1058         s/value_t/value_type/. s/traits_t/traits_type/.
1059         s/policy_t/policy_type/. s/allocator_t/allocator_type/.
1060         s/string_t/string_type/. s/list_t/list_type/.
1061         * testsuite/ext/mt_allocator/deallocate_global-4.cc: Likewise.
1062         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Likewise.
1063         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Likewise.
1064         * testsuite/ext/mt_allocator/deallocate_local-2.cc: Likewise.
1065         * testsuite/ext/mt_allocator/deallocate_local-4.cc: Likewise.
1066         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Likewise.
1067         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Likewise.
1069 2004-10-21  Benjamin Kosnik  <bkoz@redhat.com>
1071         * include/tr1/array (array): Make safe for zero-sized arrays.
1072         (array::end): Return one past the end.
1073         (array::at): Use __throw_out_of_range, include functexcept.h.
1074         (operator==): Implement.
1075         (operator!=): Same.
1076         (operator<): Same.
1077         (operator>): Same.
1078         (operator>=): Same.
1079         (operator<=): Same.
1080         * testsuite/tr1/6_containers/array/capacity/(empty.cc,
1081         max_size.cc, size.cc): New.
1082         * testsuite/tr1/6_containers/array/comparison_operators/(equal.cc,
1083         greater.cc, greater_or_equal.cc, less.cc, less_or_equal.cc,
1084         not_equal): New.
1085         * testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc: 
1086         New.
1087         * testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc: 
1088         New.
1089         * testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc: New.
1090         * testsuite/tr1/6_containers/array/requirements/(contiguous.cc,
1091         instantiate, typedefs, zero_size_arrays): New.
1093 2004-10-21  Paolo Carlini  <pcarlini@suse.de>
1094             Benjamin Kosnik  <bkoz@redhat.com>
1096         * include/bits/basic_string.h (_M_set_length_and_sharable): New.
1097         * include/bits/basic_string.tcc (_S_construct, assign(const _CharT*,
1098         size_type), _M_mutate, _M_clone): Use it.
1099         (_Rep::_S_create): Don't set/call _M_length/_M_set_sharable here.
1101 2004-10-21  Paolo Carlini  <pcarlini@suse.de>
1102             Dhruv Matani  <dhruvbird@gmx.net>
1103             Nathan Myers  <ncm@cantrip.org>
1105         * include/bits/vector.tcc (_M_insert_aux, _M_fill_insert,
1106         _M_range_insert): Check at the outset that we are not trying
1107         to exceed max_size, then deal properly with __len overflows.
1108         * testsuite/23_containers/vector/modifiers/insert/1.cc: New.
1109         
1110         * testsuite/testsuite_allocator.h: Remove redundant include.
1112 2004-10-20  Paolo Carlini  <pcarlini@suse.de>
1114         * include/ext/bitmap_allocator.h (allocate): Throw std::bad_alloc
1115         when n > max_size().
1116         * include/ext/malloc_allocator.h (allocate): Likewise.
1117         * include/ext/mt_allocator.h (allocate): Likewise.
1118         * include/ext/new_allocator.h (allocate): Likewise.
1119         * include/ext/array_allocator.h: Use __throw_bad_alloc().
1120         * include/ext/pool_allocator.h: Use __builtin_expect.
1121         * testsuite/ext/array_allocator/check_allocate_max_size.cc: New.
1122         * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc: Likewise.
1123         * testsuite/ext/malloc_allocator/check_allocate_max_size.cc: Likewise.
1124         * testsuite/ext/mt_allocator/check_allocate_max_size.cc: Likewise.
1125         * testsuite/ext/new_allocator/check_allocate_max_size.cc: Likewise.
1126         * testsuite/ext/pool_allocator/check_allocate_max_size.cc: Likewise.
1127         * testsuite/testsuite_allocator.h (check_allocate_max_size): New test.
1129 2004-10-19  Paolo Carlini  <pcarlini@suse.de>
1131         * testsuite/performance/20_util/allocator/list_sort_search.cc:
1132         Include <ext/new_allocator.h>.
1133         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1135 2004-10-18  Paolo Carlini  <pcarlini@suse.de>
1137         * include/bits/basic_string.tcc (_M_mutate): Do not reallocate
1138         unnecessarily when _M_rep() == &_S_empty_rep() and __new_size
1139         == capacity() (== 0): is ok to just leave everything unchanged.
1141         * include/bits/basic_string.h: Minor formatting fixes.
1142         * include/bits/basic_string.tcc: Likewise.
1144 2004-10-17  Benjamin Kosnik  <bkoz@redhat.com>
1146         * include/ext/mt_allocator.h (__pool::_M_get_align): New.
1147         (__mt_alloc::allocate): Use it.
1148         * src/mt_allocator.cc (__pool::_M_reclaim_block): Use it.
1149         (__pool::_M_reserve_block): Simplify block allocation.
1150         
1151 2004-10-17  Dhruv Matani  <dhruvbird@gmx.net>
1152             Paolo Carlini  <pcarlini@suse.de>
1153                 
1154         * include/ext/bitmap_allocator.h: Change unsigned int -> size_t: this
1155         makes the code 64-bit correct and also fixes (together with using at
1156         the beginning a bitmap 2 * size_t bytes wide) alignment issues: now
1157         8 is guaranteed, easily tunable to 16 via _BALLOC_ALIGN_BYTES.
1158         Fix pthread-rope7.cc fail by nulling out __mini_vector<> destructor.
1159         * src/bitmap_allocator.cc: Change to size_t.
1160         * config/linker-map.gnu: Adjust.
1162 2004-10-16  Benjamin Kosnik  <bkoz@redhat.com>
1164         * include/tr1/array: Don't use layout_type.
1166 2004-10-16  Sashan Govender  <sashang@gmail.com>
1168         * include/tr1/array (array::end const): Fix casting from iterator
1169         to const_iterator.
1170         
1171 2004-10-15  Paolo Carlini  <pcarlini@suse.de>
1173         * include/ext/bitmap_allocator.h: Qualify ::operator delete.
1174         * src/bitmap_allocator.cc: Likewise.
1175         * src/mt_allocator.cc: Use ::operator delete, not delete,
1176         consistently with ::operator new.
1178         * include/ext/bitmap_allocator.h (deallocate): Check for null
1179         pointer.
1180         * testsuite/ext/bitmap_allocator/check_deallocate_null.cc: New.
1181         * testsuite/testsuite_allocator.h (check_deallocate_null): Add test.
1183 2004-10-14  Benjamin Kosnik  <bkoz@redhat.com>
1185         * include/ext/mt_allocator.h (__mt_alloc::deallocate): Check for
1186         null pointer.
1187         * include/ext/pool_allocator.h (debug_allocator::deallocate):
1188         Check pointer value.
1189         * include/ext/debug_allocator.h (debug_allocator::deallocate):
1190         Throw exceptions, don't abort.
1191         * include/ext/array_allocator.h
1192         (array_allocator_base::deallocate): Remove unused parameters.
1193         * testsuite/testsuite_allocator.h (check_deallocate_null): New.
1194         * testsuite/ext/mt_allocator/check_deallocate_null.cc: New.
1195         * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: New.
1196         * testsuite/ext/array_allocator/check_deallocate_null.cc: New.
1197         * testsuite/ext/debug_allocator/check_deallocate_null.cc: New.
1198         * testsuite/ext/malloc_allocator/check_deallocate_null.cc: New.
1199         * testsuite/ext/new_allocator/check_deallocate_null.cc: New.
1200         * testsuite/ext/pool_allocator/check_deallocate_null.cc: New.
1202         * testsuite/testsuite_allocator.h (check_new): Add instance argument.
1203         * testsuite/ext/array_allocator/check_new.cc: New.
1204         
1205 2004-10-14  Paolo Carlini  <pcarlini@suse.de>
1207         * include/ext/bitmap_allocator.h (bitmap_allocator::_Alloc_block):
1208         Rename __unused to __M_unused.
1210 2004-10-14  Benjamin Kosnik  <bkoz@redhat.com>
1212         * testsuite/ext/headers.cc: Add includes, compile only.
1213         * testsuite/ext/hash_map.cc: Move to...
1214         * testsuite/ext/hash_map/1.cc: ...here.
1215         * testsuite/ext/14648.cc: Move to...
1216         * testsuite/ext/hash_map/14648.cc: ...here.
1217         * testsuite/ext/hash_map/instantiate.cc: Add.
1218         * testsuite/ext/hash_set.cc: Move to...
1219         * testsuite/ext/hash_set/1.cc: ...here.
1220         * testsuite/ext/hash_set_explicit_instantiation.cc: Move to...
1221         * testsuite/ext/hash_set/instantiate.cc: ...here.
1222         * testsuite/ext/hash_check_construct_destroy.cc: Move to...
1223         * testsuite/ext/hash_set/check_construct_destroy.cc: ...here.
1224         * testsuite/ext/slist_check_construct_destroy.cc: Move to...
1225         * testsuite/ext/slist/check_construct_destroy.cc: ...here.
1226         * testsuite/ext/slist_explicit_instantiation.cc: Move to...
1227         * testsuite/ext/slist/instantiate.cc: ...here.
1228         
1229 2004-10-14  Benjamin Kosnik  <bkoz@redhat.com>
1231         * include/ext/mt_allocator.h: Tweaks.
1232         * src/mt_allocator.cc: Same.
1234 2004-10-14  Dhruv Matani  <dhruvbird@gmx.net>
1236         * ext/bitmap_allocator.h: Clean-up add/remove functions.
1237         * src/bitmap_allocator.cc: New file. Contains the out-of-line
1238         function definitions, static initialization of variables, and
1239         explicit instantiations needed for the allocator.
1240         * src/Makefile.am: Add.
1241         * src/Makefile.in: Regenerate.
1242         * config/linker.map.gnu: Add the necessary symbols.
1244 2004-10-13  Paolo Carlini  <pcarlini@suse.de>
1246         * include/bits/basic_string.tcc (_S_create): Use consistently
1247         the exponential policy, simplify.
1248         * testsuite/performance/21_strings/string_append_2.cc: New.
1250         * include/ext/array_allocator.h (allocate): Fix bad_alloc check.
1251         * testsuite/ext/array_allocator/2.cc: Fix wrt 64-bit archs (in
1252         that case sizeof(_Rep) == 24).
1254 2004-10-12  Paolo Carlini  <pcarlini@suse.de>
1256         PR libstdc++/17948
1257         * include/bits/stl_tree.h (erase(iterator, iterator)): Revert
1258         wrong commit of 2004-10-07.
1259         
1260 2004-10-12  Scott Snyder  <snyder@fnal.gov>
1262         PR libstdc++/17948
1263         * testsuite/23_containers/set/modifiers/17948.cc: New.
1265 2004-10-11  Benjamin Kosnik  <bkoz@redhat.com>
1267         * include/bits/stl_deque.h: Correct for over-long lines.
1269 2004-10-11  Benjamin Kosnik  <bkoz@redhat.com>
1271         PR libstdc++/17937
1272         * include/ext/mt_allocator.h (__pool::_M_destroy): New.
1273         * src/mt_allocator.cc (__pool::~__pool): Change definitions to
1274         _M_destroy.
1275         * acconfig.h: Remove _GLIBCXX_USE___CXA_ATEXIT.
1276         * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): Remove.
1277         * configure.ac: Remove call to GLIBCXX_ENABLE_CXA_EXIT.
1278         * configure: Regenerate.
1279         * config/linker-map.gnu: Tweak exports.
1280         * docs/html/ext/mt_allocator.html: Update docs.
1281         * testsuite/ext/mt_allocator/deallocate_global-2.cc: Fix.
1282         * testsuite/ext/mt_allocator/deallocate_global-4.cc: Fix.       
1283         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Fix.
1284         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Fix.
1285         * testsuite/ext/mt_allocator/deallocate_local-2.cc: Fix.
1286         * testsuite/ext/mt_allocator/deallocate_local-4.cc: Fix.
1287         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Fix.
1288         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Fix.
1290 2004-10-11  Benjamin Kosnik  <bkoz@redhat.com>
1292         PR libstdc++/16614 continued.
1293         * include/ext/mt_allocator.h
1294         (__per_type_pool_policy::_S_get_pool): Use saner defaults based on
1295         specific type characteristics.
1296         (__pool_base): Add constructor that takes a _Tune argument.
1297         (__pool): Same.
1298         * testsuite/ext/mt_allocator/tune-2.cc: Adjust default.
1299         * testsuite/ext/mt_allocator/tune-4.cc: Same.
1300         * testsuite/ext/mt_allocator/tune-3.cc: Same.
1302 2004-10-11  Joachim Kuebart  <kuebart@mathematik.uni-ulm.de>
1303             Paolo Carlini  <pcarlini@suse.de>
1305         * src/pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk):
1306         Deal properly with exceptions thrown by ::operator new(size_t).
1307         * testsuite/ext/pool_allocator/allocate_chunk.cc: New.
1309         * include/ext/pool_allocator.h: Include <cstdlib>.
1311 2004-10-10  Benjamin Kosnik  <bkoz@redhat.com>
1313         * include/bits/functexcept.h: Add guards.
1315         * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Tweak test.
1316         * configure: Regenerate.
1317         
1318 2004-10-10  Paolo Carlini  <pcarlini@suse.de>
1320         * config/locale/gnu/monetary_members.cc (_S_construct_pattern):
1321         Give __ret a default value, thus avoiding spurious warnings.
1323         * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Open either
1324         words or linux.words, otherwise exit.
1325         * testsuite/performance/27_io/ifstream_getline.cc: Slighlty tweak.
1327 2004-10-09  Paolo Carlini  <pcarlini@suse.de>
1329         * include/std/std_memory.h (__get_temporary_buffer): Don't use
1330         INT_MAX, prefer numeric_limits<ptrdiff_t>::max(), ok on 64-bit
1331         platforms too.
1332         * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust dg-error
1333         line numbers.
1335 2004-10-08  Benjamin Kosnik  <bkoz@redhat.com>
1337         * acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
1338         * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): New.
1339         * configure.ac: Call GLIBCXX_ENABLE_CXA_EXIT.
1340         * configure: Regenerate.
1341         * src/mt_allocator.cc (__pool::~__pool): Make conditional on
1342         _GLIBCXX_USE___CXA_ATEXIT macro.
1343         * docs/html/ext/mt_allocator.html: Add note about deallocation.
1344         * testsuite/ext/mt_allocator/deallocate_local-2.cc: Guard checks
1345         with _GLIBCXX_USE___CXA_ATEXIT.
1346         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
1347         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
1348         * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
1349         * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
1350         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
1351         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
1352         * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
1353         
1354 2004-10-07  Phil Edwards  <phil@codesourcery.com>
1356         * testsuite/lib/libstdc++.exp:  Update list of undefined functions.
1358 2004-10-07  Paolo Carlini  <pcarlini@suse.de>
1360         * include/bits/list.tcc (operator=): Avoid iterator postincrement.
1361         * include/bits/stl_tree.h (erase(iterator, iterator)): Likewise.
1363 2004-10-07  Benjamin Kosnik  <bkoz@redhat.com>
1365         * include/tr1: New.
1366         * include/tr1/array: New.
1367         * include/Makefile.am (tr1_headers): New.
1368         (stamp-tr1): New.
1369         (install-headers): New.
1370         (allstamped): Add stamp-tr1.
1372         * include/ext/array_allocator.h: New.
1373         * include/Makefile.am: Add.
1374         * include/Makefile.in: Regenerate.
1375         * testsuite/ext/array_allocator/1.cc: New.
1376         * testsuite/ext/array_allocator/2.cc: New.
1378 2004-10-07  Richard Earnshaw  <rearnsha@arm.com>
1380         * testsuite/lib/libstdc++.exp (libstdc++_exit): New proc.
1382 2004-10-07  Roger Sayle  <roger@eyesopen.com>
1384         PR libstdc++/17850
1385         * configure.ac: Newlib does not provide strtold.
1386         * configure: Regenerate.
1388 2004-10-06  Benjamin Kosnik  <bkoz@redhat.com>
1390         * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
1391         (GLIBCXX_CONFIGURE_TESTSUITE): Use it.
1392         * configure: Regenerated.
1393         * testsuite/Makefile.am (CLEANFILES): Add TEST for
1394         check-performance executables.
1395         (stamp_thread): New.
1396         (all-local): Use it.
1397         * testsuite/Makefile.in: Regenerate.
1398         * scripts/create_testsuite_files: Filter thread tests.
1400         * testsuite/thread/pthread1.cc: Remove macro conditionals: this
1401         file will only be run by thread enabled configurations.
1402         * testsuite/thread/pthread7-rope.cc: Same, add rope_type typedef.
1403         * testsuite/thread/pthread6.cc: Same.
1404         * testsuite/thread/pthread5.cc: Same.
1405         * testsuite/thread/pthread4.cc: Same.
1406         * testsuite/thread/pthread3.cc: Same.
1407         * testsuite/thread/pthread2.cc: Same.
1409         * testsuite/ext/mt_allocator/instantiate.cc: Add in __GTHREADS guard.
1410         * testsuite/ext/mt_allocator/deallocate_global-1.cc: Move to...
1411         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: ...here.
1412         * testsuite/ext/mt_allocator/deallocate_global-3.cc: Move to...
1413         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: ...here. 
1414         * testsuite/ext/mt_allocator/deallocate_local-1.cc: Move to...
1415         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: ...here.
1416         * testsuite/ext/mt_allocator/deallocate_local-3.cc: Move to...
1417         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: ...here.
1419 2004-10-06  Benjamin Kosnik  <bkoz@redhat.com>
1420             Paolo Carlini  <pcarlini@suse.de>
1422         PR libstdc++/17780
1423         * src/mt_allocator.cc (__pool<true>::_M_reserve_block): Revert
1424         to old locking order.
1426 2004-10-06  Paolo Carlini  <pcarlini@suse.de>
1428         * include/std/std_sstream.h (_M_sync): When the caller is
1429         setbuf, don't trust _M_string.capacity() to be the size of
1430         the buffer area, use _M_string.size() in this case.
1431         * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
1432         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.
1434         * include/bits/sstream.tcc (overflow): Avoid calling string::assign
1435         unnecessarily when the current _M_string is empty.
1437 2004-10-06  Paolo Carlini  <pcarlini@suse.de>
1439         * include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)):
1440         Avoid iterator postincrement.
1441         (__rotate): Likewise.
1443         * include/bits/stl_algo.h: Minor formatting tweaks.
1445 2004-10-06  Christopher Jefferson <caj@cs.york.ac.uk>
1447         * include/bits/stl_algo.h (__reverse(random_access_iterator_tag)):
1448         Avoid iterator postincrement; fix swapping middle element with
1449         itself on odd-length inputs.
1451 2004-10-05  Benjamin Kosnik  <bkoz@redhat.com>
1453         PR libstdc++/17780
1454         * include/ext/mt_allocator.h (__pool_base::_Tune): Add default
1455         options as compile-time constant enums.
1456         (__pool_base::_Tune::is_default): New.
1457         (__pool_base::_Block_address): New.
1458         (__pool_base): Rearrange data members.
1459         (__pool::_M_reserve_memory): To _M_reserve_block.
1460         (__pool::_M_reclaim_memory): To _M_reclaim_block.       
1461         (__pool::_Bin_record): Add _Block_address data member.
1462         (__pool<false>): Add _M_thread_freelist_initial.
1463         (__pool::~__pool): Declare.     
1464         (__common_pool_policy): Move static data member to...
1465         (__common_pool_policy::_S_get_pool): ...here, make static local.
1466         (__per_type_pool_policy): Move static data member to...
1467         (__per_type_pool_policy::_S_get_pool): ...here, make static local.
1468         (__mt_alloc::__mt_alloc): Call __policy_type::_S_get_pool.
1469         Remove static member definitions. Use define for __default_policy.
1470         * src/mt_allocator.cc: Same.
1471         * config/linker-map.gnu: Don't export _S_get_pool. Renames.
1472         * testsuite/ext/new_allocator: New.
1473         * testsuite/ext/new_allocator/instantiate.cc: New.
1474         * testsuite/ext/new_allocator/check_new.cc: New.
1475         * testsuite/ext/new_allocator/deallocate_global.cc: New.
1476         * testsuite/ext/new_allocator/deallocate_local.cc: New.
1477         * testsuite/ext/mt_allocator/instantiate.cc: Instantiate all
1478         template arguments.
1479         * testsuite/ext/mt_allocator/deallocate_global-1.cc: New.
1480         * testsuite/ext/mt_allocator/deallocate_global-2.cc: New.
1481         * testsuite/ext/mt_allocator/deallocate_global-3.cc: New.
1482         * testsuite/ext/mt_allocator/deallocate_global-4.cc: New.
1483         * testsuite/ext/mt_allocator/deallocate_local-1.cc: New.
1484         * testsuite/ext/mt_allocator/deallocate_local-2.cc: New.
1485         * testsuite/ext/mt_allocator/deallocate_local-3.cc: New.
1486         * testsuite/ext/mt_allocator/deallocate_local-4.cc: New.
1487         * testsuite/ext/mt_allocator/deallocate.cc: New.
1488         * testsuite/ext/malloc_allocator/deallocate.cc: New.    
1489         * testsuite/ext/malloc_allocator/deallocate_global.cc: New.
1490         * testsuite/ext/malloc_allocator/deallocate_local.cc: New.
1491         
1492 2004-10-05  Ulrich Weigand  <uweigand@de.ibm.com>
1494         * configure.host (abi_baseline_pair): Define for s390-*-linux* and
1495         s390x-*-linux*.
1496         * config/abi/s390-linux-gnu/baseline_symbols.txt: Add missing symbols.
1497         * config/abi/s390x-linux-gnu/baseline_symbols.txt: New file.
1499 2004-10-05  Christopher Jefferson  <caj@cs.york.ac.uk>
1501         * include/bits/stl_algobase.h (iter_swap): delegate to swap via
1502         __iter_swap when iterator's value_types are equal.
1503         (struct __iter_swap): New.
1505 2004-10-04  Benjamin Kosnik  <bkoz@redhat.com>
1507         * configure.ac (libtool_VERSION): To 6:3:0.
1508         * configure: Regnerate.
1509         * testsuite/testsuite_abi.cc (check_version): Add 3.4.3.
1511 2004-10-04  Roger Sayle  <roger@eyesopen.com>
1512             Eric Botcazou  <ebotcazou@libertysurf.fr>
1514         PR libstdc++/17505
1515         * config/linker-map.gnu: Synchronize the current list of stub
1516         functions from libmath.
1518 2004-10-03  Roger Sayle  <roger@eyesopen.com>
1520         * config/locale/generic/c_locale.cc (__convert_to_v): Use
1521         _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
1522         Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
1523         to check for presence of strtold.
1525 2004-10-03  Paolo Carlini  <pcarlini@suse.de>
1527         * include/bits/stl_list.h: Trivial formatting fixes.
1528         * include/bits/stl_tree.h: Likewise.
1530 2004-10-03  Paolo Carlini  <pcarlini@suse.de>
1532         * include/bits/sstream.tcc (seekpos): In case of success, just
1533         return __sp.
1535 2004-10-01  Paolo Carlini  <pcarlini@suse.de>
1537         * include/bits/sstream.tcc (pbackfail): Implement correctly
1538         27.7.1.3/2, bullet 2: if mode & ios_base::out is false do not
1539         write in the buffer.
1540         * testsuite/27_io/basic_stringbuf/pbackfail/char/1.cc: New.
1541         * testsuite/27_io/basic_stringbuf/pbackfail/char/2.cc: Likewise.
1542         * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/1.cc: Likewise.
1543         * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/2.cc: Likewise.
1544         * testsuite/27_io/basic_istream/putback/char/1.cc: Tweak consistently.
1546 2004-10-01  Paolo Carlini  <pcarlini@suse.de>
1548         * include/bits/sstream.tcc (seekpos): Minor rearrangement of two
1549         conditionals consistently with seekoff.
1550         * include/std/std_sstream.h (setbuf): Avoid a string temporary.
1551         (_M_sync): Simplify a bit, clean-up comment.
1553 2004-09-30  Paolo Carlini  <pcarlini@suse.de>
1555         PR libstdc++/10975 (DR 453)
1556         * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
1557         and __off == 0.
1558         * docs/html/ext/howto.html: Add an entry for DR 453.
1559         * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
1560         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
1561         * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
1562         * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
1563         * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
1564         * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
1565         move to...
1566         * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
1567         * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
1568         move to...
1569         * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
1571 2004-09-29  Paolo Carlini  <pcarlini@suse.de>
1573         * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
1574         Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
1575         (str()): Slightly tweak, protect from pptr() == 0.
1576         (_M_update_egptr()): Likewise.
1577         * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
1578         for an empty buffer use __beg instead of _M_string.capacity().
1579         * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
1580         * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
1582         * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
1583         * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
1584         * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
1585         * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
1587 2004-09-29  Paolo Carlini  <pcarlini@suse.de>
1588             Benjamin Kosnik  <bkoz@redhat.com>
1589         
1590         * testsuite/testsuite_io.h (class constraint_buf): New, extended
1591         and templatized version of constraint_filebuf; add typedefs for
1592         streambuf/stringbuf/filebuf and wchar_t counterparts.
1594 2004-09-28  Paolo Carlini  <pcarlini@suse.de>
1596         PR libstdc++/16612
1597         * include/bits/basic_string.h (_M_dispose, _M_refcopy,
1598         basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
1599         don't deal with _S_empty_rep.
1600         * include/bits/basic_string.tcc (_S_construct, _M_destroy,
1601         _M_leak_hard, _M_mutate): Likewise.
1602         * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
1603         * acconfig.h: Add corresponding undef.  
1604         * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
1605         * docs/html/configopts.html: Document --enable-fully-dynamic-string.
1606         * configure: Regenerate.
1607         * config.h.in: Likewise.
1609 2004-09-28  Benjamin Kosnik  <bkoz@redhat.com>
1610             Paolo Carlini  <pcarlini@suse.de>
1612         * testsuite/21_strings/basic_string/operations/char/1.cc: New.
1613         * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
1614         * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
1615         * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc: 
1616         New.
1618 2004-09-28  Paolo Carlini  <pcarlini@suse.de>
1620         * README: Remove obsolete entry about include/c_shadow.
1622 2004-09-24  H.J. Lu  <hongjiu.lu@intel.com>
1624         PR libstdc++/17469
1625         * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
1627 2004-09-24  Paolo Carlini  <pcarlini@suse.de>
1629         * src/localename.cc (locale::locale(const char*)): Minor tweaks:
1630         rename a variable, move an assignment.
1631         (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
1633 2004-09-24  Paul Brook  <paul@codesourcery.com>
1635         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
1636         simulator targets.
1637         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1638         * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
1639         * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
1640         * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
1641         * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
1642         * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
1644 2004-09-23  Zack Weinberg  <zack@codesourcery.com>
1646         * testsuite/20_util/memory/auto_ptr/assign_neg.cc
1647         * testsuite/23_containers/map/operators/1_neg.cc
1648         * testsuite/23_containers/set/operators/1_neg.cc:
1649         Update locations and/or regexps of dg-error markers.
1651 2004-09-23  P.J. Darcy  <darcypj@us.ibm.com>
1653         * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
1654         Add rule to build ${host_builddir}/gthr-tpf.h.
1655         * include/Makefile.in: Regenerate.
1657 2004-09-23  Paolo Carlini  <pcarlini@suse.de>
1658             Magnus Fromreide  <magfr@lysator.liu.se>
1660         * include/bits/boost_concept_check.h (struct _SequenceConcept):
1661         Remove wrong requirement, i.e., not present in Table 67.
1663 2004-09-21  Paolo Carlini  <pcarlini@suse.de>
1665         PR libstdc++/12882 (cont)
1666         * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
1667         * configure: Regenerate.
1668         * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
1669         _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
1670         trivial showmanyc for large files too.
1672 2004-09-17  Jonathan Wakely  <redi@gcc.gnu.org>
1674         * include/bits/stl_algo.h (remove): Remove too restrictive
1675         concept-check.
1677 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
1679         * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
1680         as per Nathan's original suggestion.
1682 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
1684         * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
1685         up a bit.
1686         * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
1687         * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
1688         * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
1690 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
1691             Andrea Arcangeli  <andrea@suse.de>
1693         * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
1694         call unnecessarily sync, that is fflush: the library, since 3.4.0
1695         does not use buffered fread/fwrite.
1696         * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
1698 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
1700         * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
1701         Define.
1702         * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
1703         Define.
1704         * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
1705         (__cxa_vec_new): Use it.
1706         (__cxa_vec_new2): Likewise.
1707         (__cxa_vec_new3): Likewise.
1708         (__cxa_vec_cdtor): Likewise.
1709         (__cxa_vec_cctor): Likeiwse.
1710         (__cxa_vec_dtor): Likewise.
1711         (__cxa_vec_cleanup): Likewise.
1712         (__cxa_vec_delete2): Likewise.
1713         (__cxa_vec_delete3): Likewise.
1714         * libsupc++/vec.cc (__cxa_vec_new): Likewise.
1715         (__cxa_vec_new2): Likewise.
1716         (__cxa_vec_new3): Likewise.
1717         (__cxa_vec_cdtor): Likewise.
1718         (__cxa_vec_cctor): Likeiwse.
1719         (__cxa_vec_dtor): Likewise.
1720         (__cxa_vec_cleanup): Likewise.
1721         (__cxa_vec_delete2): Likewise.
1722         (__cxa_vec_delete3): Likewise.
1723         (__aeabi_vec_ctor_nocookie_nodtor): New function.
1724         (__aeabi_vec_ctor_cookie_nodtor): Likewise.
1725         (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
1726         (__aeabi_vec_new_cookie_noctor): Likewise.
1727         (__aeabi_vec_new_nocookie): Likewise.
1728         (__aeabi_vec_new_cookie_nodtor): Likewise.
1729         (__aeabi_vec_new_cookie): Likewise.
1730         (__aeabi_vec_dtor): Likewise.
1731         (__aeabi_vec_dtor_cookie): Likewise.
1732         (__aeabi_vec_delete): Likewise.
1733         (__aeabi_vec_delete3): Likewise.
1734         (__aeabi_vec_delete3_nodtor): Likewise.
1735         (__aeabi_atexit): Likewise.
1737 2004-09-14  Nathan Myers  <ncm@cantrip.org>
1739         * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
1740         for 11722: copy can replace move; the common case is __avail == 0.
1742 2004-09-14  Paolo Carlini  <pcarlini@suse.de>
1744         * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
1745         to __is_scalar, more clear and consistent with "tr1" naming.
1746         * include/bits/stl_algobase.h: Update consistently throughout.
1748 2004-09-13  Paolo Carlini  <pcarlini@suse.de>
1750         PR libstdc++/11722
1751         * include/std/std_fstream.h (xsgetn): Declare only.
1752         * include/bits/fstream.tcc (xsgetn): Define, optimize for the
1753         always_noconv() case: when __n > __buflen, copy the available
1754         buffer and issue a direct read.
1755         * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
1757         * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
1758         conditional.
1760 2004-09-13  Hans-Peter Nilsson  <hp@bitrange.com>
1762         * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
1763         libstdc++_maybe_build_wrapper instead of using local code.
1765 2004-09-08  Benjamin Kosnik  <bkoz@redhat.com>
1767         * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
1769 2004-09-03  Jan Beulich  <jbeulich@novell.com>
1771         * crossconfig.m4: Add NetWare as a target.
1772         * configure: Regenerate.
1774 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
1776         * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
1777         defined.
1779 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
1780             Simon Richter  <Simon.Richter@hogyros.de>
1782         PR libstdc++/16715
1783         * include/bits/istream.tcc: Add extern template for iostream
1784         char and wchar_t instantiations.
1786 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
1787             Leland Wang  <llwang@infor.org>
1789         PR libstdc++/17259
1790         * include/ext/ropeimpl.h (rope::_S_compare): Use
1791         _Rope_constants::_S_leaf.
1793 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
1795         PR libstdc++/16848
1796         * include/Makefile.am (ext_headers): Remove demangle.h.
1797         * include/Makefile.in: Regenerate.
1798         * include/ext/demangle.h: Remove.
1800 2004-09-01  Benjamin Kosnik  <bkoz@redhat.com>
1802         PR libstdc++/16614
1803         * include/ext/mt_allocator.h (__mt_base): Not type dependent,
1804         split into..
1805         (__pool): New, specialize.
1806         (__common_pool): New, static bits here.
1807         (__per_type_pool): New, and here.
1808         (__mt_alloc_base): New.
1809         (__mt_alloc): Add template parameter, inherit from it.
1810         * src/allocator.cc: Split this...
1811         * src/allocator-inst.cc: And this...
1812         * src/pool_allocator.cc: ...into this.
1813         * src/mt_allocator.cc: ... and this. Add definitions for
1814         __mt_base.
1815         * src/Makefile.am (sources): Split allocator.cc to
1816         pool_allocator.cc and mt_allocator.cc.
1817         * src/Makefile.in: Regenerate.
1818         * config/linker-map.gnu: Add symbols.
1819         * docs/html/ext/mt_allocator.html: Document new design.
1820         * testsuite/ext/mt_allocator/tune-1.cc: New.
1821         * testsuite/ext/mt_allocator/tune-2.cc: New.
1822         * testsuite/ext/mt_allocator/tune-3.cc: New.
1823         * testsuite/ext/mt_allocator/tune-4.cc: New.
1825         * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
1826         * testsuite/ext/allocators.cc: Use check_new, split into...
1827         * testsuite/ext/mt_allocator/check_new.cc: this.
1828         * testsuite/ext/pool_allocator/check_new.cc: this.
1829         * testsuite/ext/malloc_allocator/check_new.cc: this.
1830         * testsuite/ext/debug_allocator/check_new.cc: this.
1831         * testsuite/ext/mt_allocator/instantiate.cc: this.
1832         * testsuite/ext/pool_allocator/instantiate.cc: this.
1833         * testsuite/ext/malloc_allocator/instantiate.cc: this.
1834         * testsuite/ext/debug_allocator/instantiate.cc: this.
1836 2004-08-30  Phil Edwards  <phil@codesourcery.com>
1838         * docs/html/install.html:  Update locales list (from Paolo).
1839         Remove other redundant information and point to the GCC install
1840         documentation.
1842 2004-08-30  Benjamin Kosnik  <bkoz@redhat.com>
1844         * include/ext/pool_allocator.h: Rename __pool_base to
1845         __pool_alloc_base.
1846         * src/allocator.cc: Same.
1847         * config/linker-map.gnu: Same.
1849 2004-08-30  Paolo Carlini  <pcarlini@suse.de>
1850             Kenneth C. Schalk  <ken@xorian.net>
1852         PR libstdc++/17215
1853         * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
1854         Check the return value of fclose/sync, loop on EINTR.
1855         (__basic_file<char>::sys_open): Likewise, for sync.
1857 2004-08-29  Paolo Carlini  <pcarlini@suse.de>
1859         * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
1860         case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
1861         and 7.23.3.5), two if !_GLIBCXX_USE_C99.
1862         * testsuite/22_locale/time_get/get_time/char/4.cc: New.
1863         * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
1865 2004-08-27  Jason Merrill  <jason@redhat.com>
1867         PR c++/13684
1868         * libsupc++/guard.cc (static_mutex): Internal class implementing a
1869         recursive mutex which controls initialization of local statics.
1870         (__gnu_cxx::recursive_init): New exception class.
1871         (__cxa_guard_acquire): Deal with locking and recursion detection.
1872         (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
1874 2004-08-27  Matthias Klose  <doko@debian.org>
1876         * configure.host: For mips*-*-linux* update cpu_include_dir
1877         after atomicity_dir is set.
1879 2004-08-27  Matthias Klose  <doko@debian.org>
1881         * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
1882         * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1883         * configure.host: Set abi_baseline_pair for arm*-*-linux* and
1884         mips*-*-linux*.
1886 2004-08-27  Paolo Carlini  <pcarlini@suse.de>
1888         * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
1889         * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
1890         * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
1891         * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
1892         * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
1894         * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
1895         formatting fixes.
1896         * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
1897         * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
1898         * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
1899         * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1901 2004-08-25  Paolo Carlini  <pcarlini@suse.de>
1903         PR libstdc++/17038 (partial)
1904         * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
1905         __maxlen to 128.
1906         * include/bits/locale_facets.h (class __timepunct): Add FIXME
1907         comment about _M_put.
1908         * config/locale/generic/time_members.cc (_M_put): Always null
1909         terminate __s.
1910         * config/locale/gnu/time_members.cc (_M_put): Likewise.
1911         * testsuite/22_locale/time_put/put/char/17038.cc: New.
1912         * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
1914 2004-08-24  Paolo Carlini  <pcarlini@suse.de>
1916         * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
1917         * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
1918         * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
1919         * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
1920         * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
1921         * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
1923         * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
1924         newlines.
1925         * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
1927 2004-08-22  Matthias Klose  <doko@debian.org>
1929         * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
1930         * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1932 2004-08-23  Paolo Carlini  <pcarlini@suse.de>
1934         * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
1935         * aclocal.m4: Regenerate with automake-1.9.1.
1936         * configure: Regenerate.
1937         * Makefile.in: Likewise.
1938         * include/Makefile.in: Likewise.
1939         * libmath/Makefile.in: Likewise.
1940         * libsupc++/Makefile.in: Likewise.
1941         * po/Makefile.in: Likewise.
1942         * src/Makefile.in: Likewise.
1943         * testsuite/Makefile.in: Likewise.
1945 2004-08-22  Paolo Carlini  <pcarlini@suse.de>
1947         * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
1948         to a signed type, long according to the resolution of DR 359.
1949         * testsuite/22_locale/num_put/put/char/9.cc: New.
1950         * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
1952         * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
1953         Simplify a bit: no need to clear showpos.
1955 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
1957         * include/bits/char_traits.h (struct _Char_traits_match): Remove,
1958         unused.
1960 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
1962         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
1963         wchar_t type for the fill argument; minor formatting tweaks.
1964         * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
1965         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
1966         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
1967         * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
1968         * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
1969         * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
1971 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
1973         * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
1974         with _M_word != _M_local_word two times, redundantly.
1976 2004-08-20  Jason Merrill  <jason@redhat.com>
1978         * include/Makefile.am (${host_builddir}/gthr.h): Don't add
1979         _GLIBCXX_ to #pragma lines.
1980         * include/Makefile.in: Update.
1982 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
1984         PR libstdc++/7219 (continued)
1985         * include/bits/ios_base.h (class ios_base): Expose Annex D.6
1986         typedefs by default.
1987         * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
1988         * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
1989         line number.
1990         * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1992 2004-08-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1994         * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
1995         barrier to locking asm.
1997 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
1999         * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
2000         actually the warning is a front-end bug (c++/17120).
2002 2004-08-20  Matthias Klose  <doko@debian.org>
2004         * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
2006 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
2008         * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
2009         used as truth value warning.
2011 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
2013         * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
2014         baseline.
2016 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
2018         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
2020 2004-08-19  Benjamin Kosnik  <bkoz@redhat.com>
2022         * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
2023         timezone.
2024         * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
2026 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
2028         * testsuite/performance/20_util/allocator/insert.cc: For std::map
2029         instantiate the allocator for a correct pair type.
2030         * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
2031         * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
2032         * testsuite/performance/20_util/allocator/producer_consumer.cc:
2033         Likewise.
2035         * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
2036         minor formatting fixes.
2037         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
2039 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
2041         * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
2042         results.
2043         * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
2044         * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
2045         * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
2046         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
2047         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
2048         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
2049         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
2051 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
2053         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
2055 2004-08-18  Matthias Klose  <doko@debian.org>
2057         * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
2058         * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
2059         * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
2061 2004-08-17  Paolo Carlini  <pcarlini@suse.de>
2063         * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
2065 2004-08-17  Paolo Carlini  <pcarlini@suse.de>
2067         * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
2069 2004-08-17  Benjamin Kosnik  <bkoz@redhat.com>
2071         * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
2073 2004-08-16  Paolo Carlini  <pcarlini@suse.de>
2075         * include/bits/indirect_array.h: Trivial formatting fixes.
2076         * include/bits/valarray_after.h: Likewise.
2077         * include/bits/valarray_array.h: Likewise.
2078         * src/valarray-inst.cc: Likewise.
2080 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
2082         * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
2083         * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
2084         * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
2086         * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
2087         * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
2088         * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
2089         * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
2090         * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
2092 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
2094         * include/bits/deque.tcc: Trivial formatting fixes.
2096 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
2098         * include/bits/deque.tcc: Trivial formatting fixes.
2100         * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
2101         Remove unneded typedef.
2103         * include/bits/locale_facets.tcc: Very minor tweaks.
2105         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
2106         type for the fill argument.
2107         * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
2108         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
2109         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
2110         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
2111         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
2112         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
2113         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
2114         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
2116 2004-08-13  Paolo Carlini  <pcarlini@suse.de>
2118         * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
2119         memmove is not needed, memcpy suffices.
2121 2004-08-13  Paolo Carlini  <pcarlini@suse.de>
2123         * include/std/std_fstream.h (class basic_ifstream,
2124         class basic_ofstream, class basic_fstream): Add const overloads
2125         of is_open, as per DR 365 [WP].
2126         * docs/html/ext/howto.html: Add an entry for DR 365.
2128 2004-08-12  Paolo Carlini  <pcarlini@suse.de>
2130         * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
2132 2004-08-12  Paolo Carlini  <pcarlini@suse.de>
2134         PR libstdc++/16956
2135         * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
2136         to the returned value, reorganize a bit.
2137         * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
2138         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
2140         * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
2141         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
2142         * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
2143         * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
2145 2004-08-12  Paul Brook  <paul@codesourcery.com>
2147         * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
2148         _GLIBCXX_CXA_VEC_CTOR_RETURN.
2149         * config/cpu/generic/cxxabi_tweaks.h: Ditto.
2150         * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
2151         __cxa_vec_ctor_return.
2152         * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
2153         Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
2155 2004-08-12  Kelley Cook  <kcook@gcc.gnu.org>
2157         * Makefile.in, aclocal.m4, configure, include/Makefile.in,
2158         libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
2159         src/Makefile.in, testsuite/Makefile.in: Regenerate
2161 2004-08-12  Jan Beulich  <jbeulich@novell.com>
2163         * config/locale/generic/ctype_members.cc
2164         (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
2165         initializer for return value, as that is invalid for enumerated types.
2166         * config/locale/gnu/ctype_members.cc
2167         (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
2169 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
2171         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
2173 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
2175         * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
2176         variable.
2177         * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
2178         * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
2179         * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
2180         * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
2181         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
2182         * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
2183         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
2184         * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
2185         * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
2186         * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
2187         * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
2188         * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
2189         * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
2190         * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
2191         * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
2192         * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
2193         * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
2194         * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
2195         * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
2196         * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
2197         * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
2199 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
2200             Petur Runolfsson  <peturr02@ru.is>
2202         PR libstdc++/16959
2203         * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
2204         standard streams are constructed.
2205         * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
2207 2004-08-09  Paolo Carlini  <pcarlini@suse.de>
2209         * include/bits/stl_bvector.h: Trivial formatting fixes.
2211 2004-08-09  Paolo Carlini  <pcarlini@suse.de>
2213         * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
2215 2004-08-07  Jonathan Wakely  <redi@gcc.gnu.org>
2216             Paolo Carlini  <pcarlini@suse.de>
2218         * src/debug.cc (_Error_formatter::_M_print_string): In order
2219         to print individual words from __string, _M_format_word can't
2220         be called since may be just sprintf, thus ignoring completely
2221         __n: instead, use memmove and append '\0' by hand.
2223 2004-08-07  Paolo Carlini  <pcarlini@suse.de>
2225         * config/locale/generic/c_locale.h (__convert_from_v): Don't
2226         use a default for __prec, assume __prec >= 0 and simplify.
2227         * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
2228         * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
2229         Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
2231 2004-08-04  Phil Edwards  <phil@codesourcery.com>
2233         * docs/html/configopts.html:  Emphasize that options change.
2234         * docs/html/17_intro/configury.html:  Update links.
2236 2004-08-03  Paolo Carlini  <pcarlini@suse.de>
2238         * include/bits/list.tcc: Trivial formatting fixes.
2240 2004-08-03  Mark Mitchell  <mark@codesourcery.com>
2242         * libsupc++/new_op.cc: Update comments.
2243         * libsupc++/del_op.cc: Likewise.
2245 2004-08-02  Mark Mitchell  <mark@codesourcery.com>
2247         * libsupc++/cxxabi.h: Make all declarations have default
2248         visibility.
2249         * libsupc++/exception: Likewise.
2250         * libsupc++/new: Likewise.
2251         * libsupc++/typeinfo: Likewise.
2252         * libsupc++/unwind-cxx.h: Likewise.
2253         * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
2254         the __cxxabiv1 namespace.
2255         (__cxa_free_exception): Likewise.
2256         * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
2257         (__cxa_bad_typeid): Likewise.
2258         * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
2259         (__cxa_end_catch): Likewise.
2260         * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
2261         (__cxa_get_globals): Likewise.
2262         * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
2263         (__cxa_rethrow): Likewise.
2264         * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
2265         * libsupc++/eh_type.cc: Include <cxxabi.h>.
2267         * Makefile.am (hosted_source): Add libmath and testsuite.
2268         (SUBDIRS): Remove them.
2269         * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
2270         on arm*-*-symbianelf*.
2271         * crossconfig.m4: Add arm*-*-symbianelf* support.
2272         * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
2273         when freestanding.  Do not bring names into std:: namespace with
2274         "using" when freestanding.  Declare required functions and macros
2275         when freestanding.
2276         * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
2277         when freestanding.
2278         * libsupc++/del_op.cc: Declare "free" only when freestanding.
2279         * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
2280         (malloc): Declare when freestanding.
2281         (free): Likewise.
2282         (memset): Likewise.
2283         (__cxa_allocate_exception): Call malloc, not std::malloc.  Likewise
2284         for memset.
2285         (__cxa_free_exception): Likewise for free.
2286         * libsupc++/new_op.cc: Declare "malloc" when freestanding.
2287         * libsupc++/pure.cc (writestr): Define to nothing when
2288         freestanding.
2289         * libsupc++/vterminate.cc: Do not define anything when
2290         freestanding.
2291         * Makefile.in: Regenerated.
2292         * aclocal.m4: Likewise.
2293         * configure: Likewise.
2294         * include/Makefile.in: Likewise.
2295         * libmath/Makefile.in: Likewise.
2296         * libsupc++/Makefile.in: Likewise.
2297         * po/Makefile.in: Likewise.
2298         * src/Makefile.in: Likewise.
2299         * testsuite/Makefile.in: Likewise.
2301 2004-08-01  Matt Austern  <austern@apple.com>
2303         PR libstdc++/16844
2304         * include/bits/stl_list.h (_M_create_node): Remove unused
2305         zero-argument version.
2306         * include/ext/slist (_M_create_node): Pass two arguments to
2307         allocator's construct() member function.
2308         * testsuite/23_containers/deque/explicit_instantiation.cc: New.
2309         * testsuite/23_containers/list/explicit_instantiation.cc: New.
2310         * testsuite/23_containers/vector/explicit_instantiation.cc: New.
2311         * testsuite/23_containers/map/explicit_instantiation.cc: New.
2312         * testsuite/23_containers/set/explicit_instantiation.cc: New.
2313         * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
2314         * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
2315         * testsuite/ext/hash_set_explicit_instantiation.cc: New.
2316         * testsuite/ext/slist_explicit_instantiation.cc: New.
2318 2004-07-30  Paolo Carlini  <pcarlini@suse.de>
2320         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2321         num_get<>::_M_extract_int): In the main parsing loop delay the
2322         life of __q to the actual use point.
2324 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
2326         PR libstdc++/14220
2327         * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
2328         Don't clip the precision passed down to __convert_from_v:
2329         22.2.2.2.2 nowhere says so.
2330         * testsuite/22_locale/num_put/put/char/14220.cc: New.
2331         * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
2333 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
2335         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
2337 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
2338             Petur Runolfsson  <peturr02@ru.is>
2340         PR libstdc++/12658 (continued)
2341         * src/locale_init.cc (locale::locale, locale::global): Use
2342         a single locale_mutex instead of two separate mutexes.
2344 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
2346         PR libstdc++/16813
2347         * include/debug/map.h (insert(_InputIterator, _InputIterator)):
2348         Fix typo.
2349         * testsuite/23_containers/map/insert/16813.cc: New.
2351 2004-07-29  Phil Edwards  <phil@codesourcery.com>
2353         * docs/html/faq/index.html:  Update version references.  Make
2354         clear that code from SGI has diverged greatly.  Remove references
2355         to library snapshots and what's-new sections.
2356         * docs/html/faq/index.txt:  Regenerate.
2358 2004-07-28  Matt Austern  <austern@apple.com>
2360         * include/bits/stl_construct.h (_Destroy): New three-argument
2361         overload that takes an allocator argument.  Another inline
2362         three-argument overload that takes std::allocator and dispatches
2363         to the two-argument version.
2364         * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
2365         Change return type to void to match uninitialized_fill_n.
2366         (__uninitialized_copy_a_): New function.  Like uninitialized_copy
2367         except that it takes an allocator and uses it for construct and
2368         destroy.  If the allocator is std::allocator, dispatches to
2369         uninitialized_copy.
2370         (__uninitialized_fill_a): Likewise.
2371         (__uninitialized_fill_n_a): Likewise.
2372         (__uninitialized_copy_copy): Give it an allocator argument.
2373         (__uninitialized_fill_copy): Likewise.
2374         (__uninitialized_copy_fill): Likewise.
2375         * include/bits/deque.tcc: Use new forms defined in stl_construct.h
2376         and stl_uninitialized.h.  Replace use of single-argument _Construct
2377         and _Destroy with use of allocator's construct and destroy methods.
2378         * include/bits/list.tcc: Likewise.
2379         * include/bits/stl_deque.h: Likewise.
2380         * include/bits/stl_list.h: Likewise.
2381         * include/bits/stl_tree.h: Likewise.
2382         * include/bits/stl_vector.h: Likewise.
2383         * include/bits/vector.tcc: Likewise.
2384         * include/ext/hashtable.h: Use rebind so that allocator_type
2385         has correct type for a container's allocator.  Replace use of
2386         single-argument _Construct and _Destroy with use of allocator's
2387         construct and destroy methods.
2388         * include/ext/memory (__uninitialized_copy_n_a): New function.
2389         Like uninitialized_copy_n except that it takes an extra parameter,
2390         an allocator, and uses it for construct and destroy operations.
2391         * include/ext/rope: Use new forms defined in stl_construct.h,
2392         stl_uninitialized.h, and ext/memory.  Replace use of single-argument
2393         _Construct and _Destroy with allocator construct and destroy methods.
2394         * include/ext/ropeimpl.h: Likewise.
2395         * include/ext/slist.h: Likewise.
2396         * testsuite/testsuite_allocator.h (check_construct_destroy): New.
2397         * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
2398         * testsuite/23_containers/deque/check_construct_destroy.cc: New.
2399         * testsuite/23_containers/list/check_construct_destroy.cc: New.
2400         * testsuite/23_containers/set/check_construct_destroy.cc: New.
2401         * testsuite/23_containers/vector/check_construct_destroy.cc: New.
2402         * testsuite/ext/hash_check_construct_destroy.cc: New.
2403         * testsuite/ext/slist_check_construct_destroy.cc: New.
2405 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
2407         2003-10-01  Eric Christopher  <echristo@redhat.com>
2408         * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
2409         constraint.
2410         2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
2411         * config/cpu/sh/atomicity.h: New.  Use movli and movco on SH4a.
2413 2004-07-23  Benjamin Kosnik  <bkoz@redhat.com>
2415         PR libstdc++/16678
2416         * include/bits/locale_facets.tcc: Fix for -Werror.
2418 2004-07-23  Jonathan Wakely  <redi@gcc.gnu.org>
2420         * docs/html/debug.html: Say debug mode only available since 3.4.0.
2422 2004-07-21  Benjamin Kosnik  <bkoz@redhat.com>
2424         * docs/doxygen/mainpage.html: Clarify links.
2425         * docs/doxygen/stdheader.cc: Add files.
2426         * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
2427         * docs/doxygen/user.cfg.in: New options, wrap.
2429 2004-07-20  Danny Smith  <dannysmith@users.sourceforge.net>
2431         * include/c_std/std_cwchar.h (wcsstr): Correct signature.
2433 2004-07-19  Benjamin Kosnik  <bkoz@redhat.com>
2435         PR libstdc++/15488
2436         * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
2438 2004-07-17  Richard Sandiford  <rsandifo@redhat.com>
2440         PR bootstrap/16469
2441         * scripts/create_testsuite_files: Pass -print to find.
2443 2004-07-15  Paolo Carlini  <pcarlini@suse.de>
2445         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
2446         * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
2448 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
2450         PR libstdc++/14697
2451         * acinclude.m4 (glibcxx_shared_libgcc): Correct
2452         glibcxx_shared_libgcc test for multilibs.
2453         * configure: Rebuilt.
2455 2004-07-14  Paolo Carlini  <pcarlini@suse.de>
2457         PR libstdc++/16505
2458         * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
2459         the signature to return void, as per 20.4.4.3.
2460         * include/bits/stl_vector.h (vector::vector(size_type,
2461         const value_type&, const allocator_type&), vector::vector(size_type),
2462         vector::_M_initialize_dispatch): Adjust callers.
2463         * include/bits/vector.tcc (vector<>::_M_fill_assign,
2464         vector<>::_M_fill_insert): Likewise.
2465         * testsuite/20_util/memory/16505.cc: New.
2467 2004-07-14  Paolo Carlini  <pcarlini@suse.de>
2469         * testsuite/22_locale/locale/cons/12658_thread-1.cc,
2470         12658_thread-2.cc: Use __gnu_test::try_named_locale.
2472 2004-07-13  Benjamin Kosnik  <bkoz@redhat.com>
2474         * docs/html/ext/mt_allocator.html: Add docs for _Tune.
2475         * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
2476         (__mt_alloc::_S_set_options): Same.
2477         Add to comments.
2479 2004-07-13  Benjamin Kosnik  <bkoz@redhat.com>
2481         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
2482         for linux.
2483         * configure: Regenerated.
2485 2004-07-13  Paolo Carlini  <pcarlini@suse.de>
2487         * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
2488         to 12658_thread-1.cc and xfail.
2489         * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
2490         simpler version of 12658_thread-1.cc, still failing on 3_3 and
2491         not failing on 3_4/mainline - both on single processor and
2492         multiprocessor machines.
2494 2004-07-12  Benjamin Kosnik  <bkoz@redhat.com>
2496         * docs/html/abi.html: Remove non-public qualification.
2498         * include/bits/concurrence.h: Tweak comments.
2500 2004-07-11  Paolo Carlini  <pcarlini@suse.de>
2502         Add wchar_t counterparts of the basic_streambbuf<char> tests.
2503         * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
2504         * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
2505         Likewise.
2506         * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
2507         * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
2508         3599.cc: Likewise.
2509         * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
2510         * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
2511         * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
2512         * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
2513         * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
2514         Likewise.
2515         * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
2517         * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
2518         tweaks.
2519         * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
2520         Likewise.
2521         * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
2522         * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
2524 2004-07-11  Phil Edwards  <phil@codesourcery.com>
2526         * acinclude.m4:  Cosmetic shell syntax fixes.
2527         * configure.ac:  Bring comment inline with reality.
2528         * configure.host:  Both of the above.  Move 'arm' case to right
2529         place in host_cpu switch.
2530         * aclocal.m4, configure:  Regenerate.
2532 2004-07-09  Paolo Carlini  <pcarlini@suse.de>
2534         Add wchar_t counterparts of the basic_stringbuf<char> tests.
2535         * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
2536         * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
2537         * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
2538         3599.cc, 9988.cc: Likewise.
2539         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
2540         Likewise.
2541         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
2542         Likewise.
2543         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
2544         Likewise.
2545         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
2546         Likewise.
2547         * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
2548         * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
2549         * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
2550         * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
2551         Likewise.
2552         * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
2553         9404-1.cc: Likewise.
2554         * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
2555         9404-2.cc: Likewise.
2556         * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
2557         3955.cc: Likewise.
2558         * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
2559         * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
2561 2004-07-08  Paolo Carlini  <pcarlini@suse.de>
2563         * include/bits/gslice.h: Trivial formatting fixes.
2564         * include/bits/gslice_array.h: Likewise.
2565         * include/bits/indirect_array.h: Likewise.
2566         * include/bits/mask_array.h: Likewise.
2567         * include/bits/slice_array.h: Likewise.
2568         * include/bits/valarray_after.h: Likewise.
2569         * include/bits/valarray_array.h: Likewise.
2570         * include/bits/valarray_before.h: Likewise.
2571         * include/std/std_valarray.h: Likewise.
2573 2004-07-08  Benjamin Kosnik  <bkoz@redhat.com>
2575         PR c++/16169
2576         * include/bits/basic_string.h (basic_string::operator=): Revert.
2578 2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>
2580         * configure.ac (libtool_VERSION): To 6:2:0.
2581         * configure: Regenerated.
2583         * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
2585 2004-07-07  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
2587         PR libstdc++/16411
2588         * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
2590 2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>
2592         * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
2593         -Weffc++ issues.
2595 2004-07-07  Paolo Carlini  <pcarlini@suse.de>
2597         PR libstdc++/16401
2598         * include/bits/sstream.tcc (overflow): When reallocating _M_string
2599         use an exponential grow policy.
2600         * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
2601         * testsuite/performance/27_io/stringbuf_overflow.cc: New.
2603 2004-07-06  Anssi Hannula  <anssi.hannula@mbnet.fi>
2605         PR libstdc++/15928
2606         * crossconfig.m4: Add in bits for djgpp.
2607         * configure: Regenerate.
2609 2004-07-05  Jonathan Wakely  <redi@gcc.gnu.org>
2611         * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
2612         instantiation of set and multiset (functor param given as int).
2614 2004-07-04  Paolo Carlini  <pcarlini@suse.de>
2616         * include/bits/basic_string.h: Trivial formatting fixes and/or
2617         const-ification of some variables.
2618         * include/bits/deque.tcc: Likewise.
2619         * include/bits/stl_algobase.h: Likewise.
2620         * include/bits/stl_bvector.h: Likewise.
2621         * include/bits/stl_construct.h: Likewise.
2622         * include/bits/stl_deque.h: Likewise.
2623         * include/bits/stl_pair.h: Likewise.
2624         * include/bits/stl_vector.h: Likewise.
2625         * include/bits/vector.tcc: Likewise.
2627 2004-07-04  Paolo Carlini  <pcarlini@suse.de>
2629         * testsuite/25_algorithms/copy/1.cc: Add instantiations for
2630         systems with no COMDAT or weak support.
2631         * testsuite/25_algorithms/copy/2.cc: Likewise.
2632         * testsuite/25_algorithms/copy/3.cc: Likewise.
2633         * testsuite/25_algorithms/copy/4.cc: Likewise.
2635 2004-07-03  Paul Brook  <paul@codesourcery.com>
2637         * configure.ac: Set ABI_TWEAKS_SRCDIR.
2638         * configure.host: Set abi_tweaks_dir.  Check for atomicity.h when
2639         setting atomicity_dir.  Override type_cpu for arm based targets.
2640         * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
2641         * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
2642         * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
2643         * libsupc++/vec.cc: Ditto.
2644         * config/cpu/arm/cxxabi_tweaks.h: New file.
2645         * config/cpu/generic/cxxabi_tweaks.h: New file.
2646         * */Makefile.in: Regenerate.
2647         * configure: Regenerate.
2649 2004-07-02  Paolo Carlini  <pcarlini@suse.de>
2651         * include/bits/type_traits.h (_Is_normal_iterator): Move...
2652         * include/bits/cpp_type_traits.h: ... here, renamed to
2653         __is_normal_iterator and consistent with the other traits.
2654         * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
2655         to the struct __copy_normal and three specializations.
2656         (__copy_backward_output_normal_iterator,
2657         __copy_backward_input_normal_iterator): Likewise, convert to
2658         the struct __copy_backward_normal and three specializations.
2659         (copy, copy_backward): Use the latter.
2660         (__copy_aux, __copy_backward_aux): Very minor tweaks.
2662 2004-07-01  Paolo Carlini  <pcarlini@suse.de>
2664         * include/bits/stl_algobase.h (__copy_trivial): Remove.
2665         (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
2666         __is_trivially_copyable, __are_same and __copy::copy.
2667         (__copy): Rewrite as a class template and two specializations.
2668         (__copy_ni2): Simplify, just call __copy_aux.
2670         * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
2671         check.
2672         * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
2673         for destination value type != source value type.
2675 2004-07-01  Benjamin Kosnik  <bkoz@redhat.com>
2676             Per Bothner  <per@bothner.com>
2677             Mohan Embar  <gnustuff@thisiscool.com>
2679         PR libstdc++/16248
2680         * include/bits/concurrence.h (__glibcxx_mutex_type): New.
2681         (__glibcxx_mutex): Encapsulate mutex init function into type for
2682         threaded configurations without __GTHREAD_MUTEX_INIT.
2683         (lock::lock): Make device member a reference.
2684         (lock::~lock): Same.
2685         * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
2686         to mutex_type.
2687         * src/allocator.cc: Same.
2689 2004-06-30  Brad Spencer  <spencer@infointeractive.com>
2691         * include/ext/mt_allocator.h: Handle allocations at static
2692         initialization that happen before _S_options is (automatically)
2693         constructed; set _S_init even if _M_force_new is true.
2695 2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
2697         * config/linker-map.gnu: Revert new exports.
2699 2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
2700             Stuart Anderson  <anderson@netsweng.com>
2702         * config/linker-map.gnu: Add destructor exports for abstract base
2703         classes to conform to LSB.
2705 2004-06-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2706             Paolo Carlini  <pcarlini@suse.de>
2708         * include/bits/cpp_type_traits.h: Add __is_pointer and
2709         __is_trivially_copyable.
2710         * include/bits/stl_algobase.h (fill, fill_n): Slightly
2711         tweak to use the latter.
2712         (__copy_backward_dispatch): Remove.
2713         (__copy_backward_aux): Rewrite to use __is_pointer and
2714         __is_trivially_copyable and __copy_backward::copy_b.
2715         (__copy_backward): Rewrite as a class template and two
2716         specializations.
2718 2004-06-30  Paolo Carlini  <pcarlini@suse.de>
2720         * testsuite/25_algorithms/copy.cc: Move to...
2721         * testsuite/25_algorithms/copy/1.cc: ... here, extend.
2722         * testsuite/25_algorithms/copy/2.cc: New.
2723         * testsuite/25_algorithms/copy/3.cc: New.
2724         * testsuite/25_algorithms/copy/4.cc: New.
2726 2004-06-29  Paul Brook  <paul@codesourcery.com>
2728         * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
2729         element size in the cookie.
2731 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
2733         * include/bits/cpp_type_traits.h: Move the additions to
2734         namespace __gnu_internal outside of namespace std; trivial
2735         formatting fixes.
2737 2004-06-28  Benjamin Kosnik  <bkoz@redhat.com>
2739         * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
2740         Revert -Weffc++ changes that defined copy ctory and or assignment
2741         operator.
2742         * libsupc++/tinfo.cc (__upcast_result): Same.
2744 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
2746         * src/localename.cc (locale::_Impl::_Impl): Slightly improve
2747         the algorithm used to name the categories.
2749 2004-06-28  Paolo Bonzini  <bonzini@gnu.org>
2751         * include/Makefile.am: Give a .gch extension to
2752         the PCH files, not only to the directory.
2753         * include/Makefile.in: Regenerate.
2755 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
2757         * config/locale/gnu/monetary_members.cc
2758         (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
2759         assignments of _M_decimal_point and _M_thousands_sep.
2761 2004-06-27  Paolo Carlini  <pcarlini@suse.de>
2763         * docs/html/17_intro/contribute.html: Update some links.
2764         * docs/html/17_intro/porting-howto.html: Likewise.
2765         * docs/html/17_intro/porting-howto.xml: Likewise.
2766         * docs/html/18_support/howto.html: Likewise.
2767         * docs/html/21_strings/howto.html: Likewise.
2768         * docs/html/27_io/howto.html: Likewise.
2769         * docs/html/configopts.html: Likewise.
2770         * docs/html/ext/howto.html: Likewise.
2771         * docs/html/faq/index.html: Likewise.
2772         * docs/html/install.html: Don't mention 2.x compilers.
2774 2004-06-27  Paolo Carlini  <pcarlini@suse.de>
2776         * include/ext/rope: Trivial formatting fixes.
2777         * include/ext/ropeimpl.h: Likewise.
2779 2004-06-26  Paolo Carlini  <pcarlini@suse.de>
2781         PR libstdc++/16210
2782         * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
2783         availability of strto(u)ll, not used anymore in the iostreams.
2784         * configure: Regenerate.
2786 2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>
2788         PR libstdc++/16182
2789         * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
2790         AC_DEFINE_UNQUOTED.
2791         * configure: Regenerate.
2793 2004-06-25  Paul Brook  <paul@codesourcery.com>
2795         * libsupc++/cxxabi.h: Define __ARM_EABI__
2796         (__guard): Use it.
2797         * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
2799 2004-06-25  Paul Brook  <paul@codesourcery.com>
2801         * include/bits/concurrence.h: Still create mutex object when
2802         single-threaded.
2804 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
2806         * include/bits/stl_algobase.h (fill, fill_n): Revert last
2807         change: actually we need to copy construct an object of type
2808         _Tp, not of type iterator_traits<>::value_type, therefore the
2809         code is ok.
2811 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
2813         * include/bits/stl_algobase.h (fill, fill_n): Tighten the
2814         dispatch: use iterator_traits<>::value_type, not _Tp.
2816 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
2818         * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
2819         * testsuite/25_algorithms/fill/2.cc: Likewise.
2821 2004-06-25  Dan Nicolaescu  <dann@ics.uci.edu>
2822             Paolo Carlini  <pcarlini@suse.de>
2824         * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
2825         for fill and fill_n, respectively: when copying is cheap, use a
2826         temporary to avoid a memory read in each iteration.
2828 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
2830         * testsuite/25_algorithms/fill/1.cc: New.
2831         * testsuite/25_algorithms/fill/2.cc: Likewise.
2833 2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>
2835         * include/debug/formatter.h (__gnu_debug::_Error_formatter):
2836         Remove copy constructor and assignment operator.
2838 2004-06-24  Benjamin Kosnik  <bkoz@redhat.com>
2840         * include/bits/concurrence.h (__gnu_cxx::lock): New.
2841         * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
2842         (__pool_base::_M_get_mutex): New.
2843         * include/bits/allocator.h: Tweak.
2844         * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
2845         * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
2846         * include/bits/stl_threads.h: Remove.
2847         * include/Makefile.am: Also here.
2848         * include/Makefile.in: Regenerate.
2850         * src/locale_init.cc: Use __gnu_cxx::lock.
2852         * src/allocator.cc: Move all instantiations...
2853         * src/allocator-inst.cc: ...here.
2855 2004-06-23  Andrew Pinski  <apinski@apple.com>
2857         * linkage.m4: Remove check for libmx.
2858         * configure: Regenerate.
2860 2004-06-23  Paolo Carlini  <pcarlini@suse.de>
2862         PR libstdc++/16154
2863         * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
2864         Don't require the _DefaultConstructibleConcept.
2865         (struct _ForwardIteratorConcept): Require it here.
2867 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
2869         * include/bits/istream.tcc (getline): Make sure arguments passed
2870         to min/max have the same type.
2871         * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
2872         * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
2874 2004-06-22  Benjamin Kosnik  <bkoz@redhat.com>
2876         * docs/html/abi.html: Update links.
2878 2004-06-22  Paolo Carlini  <pcarlini@suse.de>
2880         * testsuite/26_numerics/complex_inserters_extractors.cc,
2881         complex_value.cc, buggy_complex.cc: Move to...
2882         * testsuite/26_numerics/complex/: ... here.
2883         * testsuite/26_numerics/c99_classification_macros_c++.cc,
2884         c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
2885         fabs_inline.cc: Move to...
2886         * testsuite/26_numerics/cmath/: ... here.
2887         * testsuite/26_numerics/binary_closure.cc, slice.cc,
2888         slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
2889         valarray_name_lookup.cc, valarray_operators.cc,
2890         valarray_subset_assignment.cc: Move to...
2891         * testsuite/26_numerics/valarray/: ... here (new dir).
2892         * testsuite/26_numerics/sum_diff.cc: Move to...
2893         * testsuite/26_numerics/numeric/: ... here (new dir).
2895 2004-06-22  Paolo Carlini  <pcarlini@suse.de>
2897         * include/std/std_istream.h (ignore(streamsize __n = 1,
2898         int_type __delim = traits_type::eof())): Split into...
2899         (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2900         int_type __delim)): The first two can be much more simpler
2901         and efficient than the fully general case; also, the last
2902         two can take advantage of the same mechanism already used
2903         for getline.
2904         * include/bits/istream.tcc (ignore(streamsize __n = 1,
2905         int_type __delim = traits_type::eof()): Remove.
2906         (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2907         int_type __delim)): New.
2909 2004-06-21  Loren J. Rittle  <ljrittle@acm.org>
2911         * config/linker-map.gnu: Use wildcards for
2912         __basic_file::sys_open(FILE*, _Ios_Openmode).
2914 2004-06-20  Paolo Carlini  <pcarlini@suse.de>
2916         * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
2918 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
2920         * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
2921         the alignment requested.
2922         (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
2923         (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
2924         (__mt_alloc<>::deallocate): Likewise.
2926 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
2928         PR libstdc++/16020
2929         * include/debug/safe_base.h
2930         (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
2931         _Safe_sequence_base::operator=): Provide definitions.
2932         * testsuite/23_containers/bitset/cons/16020.cc: New.
2934 2004-06-18  Benjamin Kosnik  <bkoz@redhat.com>
2936         * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
2937         (__pool_base): Remove unused template parameter.  Add
2938         protected. Move lock data into __pool_base::_Lock. Remove static
2939         on member functions.
2940         (__pool_base::_M_get_free_list): New.
2941         (__pool_alloc): Move _S_force new here.
2942         * src/allocator.cc: Move out of line __pool_base definitions here.
2943         * config/linker-map.gnu: Export bits from __pool_base.
2945 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
2947         * config/locale/gnu/numeric_members.cc
2948         (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
2949         assignments of _M_decimal_point and _M_thousands_sep.
2950         * config/locale/gnu/time_members.cc
2951         (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
2952         and reformat assignments of date and time fields.
2954 2004-06-16  Paolo Carlini  <pcarlini@suse.de>
2956         * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
2957         to use _Data_allocate.
2958         * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
2959         (rope<>::_S_substring): Likewise.
2960         (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
2961         (rope<>::c_str()): Likewise.
2962         (rope<>::replace_with_c_str()): Likewise.
2964         * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
2965         Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
2966         not _RopeRep.
2967         (_Rope_iterator_base<>::_S_setcache): Likewise.
2968         (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
2969         (rope<>::_S_substring): Likewise.
2970         (rope<>::_S_dump): Likewise.
2971         (rope<>::_S_fetch_ptr): Likewise.
2972         (rope<>::_S_compare): Likewise.
2973         (rope<>::replace_with_c_str()): Likewise.
2975         * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
2976         * testsuite/ext/rope/2.cc: New.
2978 2004-06-16  Paolo Carlini  <pcarlini@suse.de>
2979             Matt Austern  <austern@apple.com>
2981         * testsuite/ext/rope/3.cc: New.
2983 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
2985         * acinclude.m4: Remove useless multilib configury.
2986         * Makefile.am: Remove useless multilib rules.
2987         * aclocal.m4: Regenerate.
2988         * Makefile.in: Regenerate.
2989         * configure: Regenerate.
2991 2004-06-15  Paolo Carlini  <pcarlini@suse.de>
2993         * include/ext/hashtable.h: Trivial formatting fixes.
2994         * include/ext/rb_tree: Likewise.
2996 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
2998         * include/ext/hash_map: Trivial formatting fixes.
2999         * include/ext/hash_set: Likewise.
3000         * include/ext/memory: Likewise.
3001         * include/ext/numeric: Likewise.
3003 2004-06-14  Benjamin Kosnik  <bkoz@redhat.com>
3005         * Makefile.in: Regenerate with automake 1.8.5.
3006         * aclocal.m4: Same.
3007         * include/Makefile.in: Same.
3008         * libmath/Makefile.in: Same.
3009         * libsupc++/Makefile.in: Same.
3010         * po/Makefile.in: Same.
3011         * src/Makefile.in: Same.
3012         * testsuite/Makefile.in: Same.
3014 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
3016         * include/ext/slist: Trivial formatting fixes.
3018 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
3020         * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
3021         Don't use the 'magic number' 10 in the computation of __minlen;
3022         never access __name past __minlen; in the loop over __i3, don't
3023         decrease __nmatches and increase __i3 at once, only either of
3024         the two; tidy.
3026 2004-06-13  Paolo Carlini  <pcarlini@suse.de>
3028         * include/bits/locale_facets.tcc (time_get<>::do_get_time,
3029         time_get<>::do_get_date): Use only once _M_extract_via_format,
3030         instead of going through "%X"/"%x" and calling it two times
3031         (+ using widen).
3033 2004-06-12  Paolo Carlini  <pcarlini@suse.de>
3035         * include/ext/algorithm: Trivial formatting fixes.
3036         * include/ext/functional: Likewise.
3037         * include/ext/hash_fun.h: Likewise.
3038         * include/ext/iterator: Likewise.
3040 2004-06-12  Paolo Carlini  <pcarlini@suse.de>
3042         * include/bits/basic_string.tcc (find(const _CharT*, size_type,
3043         size_type)): Reimplement using std::search.
3044         * src/string-inst.cc: Instantiate std::search for char/wchar_t.
3046 2004-06-12  Dhruv Matani  <dhruvbird@gmx.net>
3048         * testsuite/performance/21_strings/string_find.cc: New.
3050 2004-06-10  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
3052         * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
3054 2004-06-10  Jan van Dijk  <jan@etpmod.phys.tue.nl>
3056         * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
3057         this function return a value.
3059 2004-06-09  Paolo Carlini  <pcarlini@suse.de>
3061         PR libstdc++/15775
3062         * include/bits/stl_deque.h: Consistently with stl_set.h, define
3063         pointer as allocator's pointer, likewise for reference,
3064         const_pointer, and const_reference.
3065         * include/bits/stl_list.h: Likewise.
3066         * include/bits/stl_map.h: Likewise.
3067         * include/bits/stl_multimap.h: Likewise.
3068         * include/bits/stl_vector.h: Likewise.
3070 2004-06-09  Benjamin Kosnik  <bkoz@redhat.com>
3072         * crossconfig.m4: Remove signbit, signbitf, signbitl.
3073         * linkage.m4: Comment LIBMATHOBJS, tweak others.  AC_DEFINES for
3074         builtin math functions instead of AC_DEFINE_UNQUOTED.
3075         * configure: Regenerate.
3077 2004-06-08  Benjamin Kosnik  <bkoz@redhat.com>
3079         * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
3080         * docs/doxygen/mainpage.html: Remove links.
3082 2004-06-08  Jason Merrill  <jason@redhat.com>
3084         * config/linker-map.gnu: Use wildcards for
3085         __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
3087 2004-06-08  Paolo Carlini  <pcarlini@suse.de>
3089         * include/ext/pool_allocator.h: Convert to a global free-list,
3090         as per the original SGI/HP design: move the implementation
3091         details to struct __pool_base, from which __pool_alloc derives.
3092         * src/allocator.cc: Instantiate __pool_base.
3094 2004-06-07  Dhruv Matani  <dhruvbird@gmx.net>
3095             Paolo Carlini  <pcarlini@suse.de>
3097         * testsuite/testsuite_performance.h
3098         (resource_counter::allocated_memory): Make it return the right
3099         number of bytes requested by the allocators/application. This is
3100         the sbrk+mmaped memory.
3102 2004-06-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3104         * include/std/std_complex.h (log): Tidy.
3106 2004-05-31  Benjamin Kosnik  <bkoz@redhat.com>
3108         * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
3109         * testsuite/testsuite_abi.cc: Same.
3110         * configure.ac (libtool_VERSION): Bump to 6:1:0.
3111         * configure: Regenerate.
3112         * aclocal.m4: Regenerate.
3114 2004-05-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3116         * include/std/std_complex.h (complex<_Tp>): Properly indent
3117         to follow C++STYLE.
3118         (complex<>::__rep): New.
3119         (__complex_abs): New.  Dispatch to built-ins.
3120         (abs): Use them.
3121         (__complex_arg): New. Dispatch to built-ins.
3122         (arg): Use it.
3123         (__complex_cos): New. Dispatch to built-ins.
3124         (cos): Use it.
3125         (__complex_cosh): New. Dispatch to built-ins.
3126         (cosh): Use it.
3127         (__complex_exp): New. Dispatch to built-ins.
3128         (exp): Use it.
3129         (__complex_log): New. Dispatch to built-ins.
3130         (log): Use it.
3131         (__complex_sin): New. Dispatch to built-ins.
3132         (sin): Use it.
3133         (__complex_sinh): New. Dispatch to built-ins.
3134         (sinh): Use it.
3135         (__complex_sqrt): New. Dispatch to built-ins.
3136         (sqrt): Use it.
3137         (__complex_tan): New. Dispatch to built-ins.
3138         (tan): Use it.
3139         (__complex_tanh): New. Dispatch to built-ins.
3140         (tanh): Use it.
3141         (__complex_pow): New. Dispatch to built-ins.
3142         (pow): Use it.
3144 2004-05-29  Richard B. Kreckel  <Richard.Kreckel@Framatome-ANP.com>
3145             Benjamin Kosnik  <bkoz@redhat.com>
3147         PR libstdc++/14600
3148         * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
3149         * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
3150         * config/io/basic_file_stdio.cc (__basic_file::file): New.
3151         * config/io/basic_file_stdio.h: Define.
3153 2004-05-27  Benjamin Kosnik  <bkoz@redhat.com>
3155         PR libstdc++/15675
3156         * docs/html/documentation.html: Update doxygen links for 3.4.0.
3158 2004-05-27  Jan Beulich  <jbeulich@novell.com>
3160         * scripts/create_testsuite_files: Tweak.
3162 2004-05-25  Benjamin Kosnik  <bkoz@redhat.com>
3164         PR libstdc++/15489
3165         * scripts/create_testsuite_files: Revert xtype change, add non-GNU
3166         bits to do the same thing.
3168 2004-05-24  Paolo Carlini  <pcarlini@suse.de>
3170         * include/bits/istream.tcc (ignore): Correctly deal with
3171         n == numeric_limits<streamsize>::max().
3172         * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
3174         * include/bits/istream.tcc (basic_istream<>::getline): Prefer
3175         '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
3176         __n == numeric_limits<>::min().
3178         * include/bits/istream.tcc: Minor tweaks.
3180         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
3181         Tighten.
3182         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
3183         Likewise.
3184         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
3185         Likewise.
3186         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
3187         Likewise.
3188         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
3190 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
3192         PR libstdc++/12854
3193         Fixups for -Weffc++.
3194         * include/bits/basic_string.h (basic_string::operator=): Return
3195         pointer to this instead of result of assign. Although redundant,
3196         this doesn't impact resultant codegen.
3198         * include/bits/locale_facets.h (__numpunct_cache): Declare
3199         assignment opxserator and copy constructor private.
3200         (__timepunct_cache): Same.
3201         (__moneypunct_cache): Same.
3202         (collate): Use member initialization list for _M_c_locale_collate.
3203         * config/locale/gnu/messages_members.h: Same.
3204         * config/locale/gnu/time_members.h (__timepunct): Same.
3205         * src/codecvt.cc: Use member initialization list to initialize
3206         _M_c_locale_codecvt.
3207         * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
3208         * config/os/gnu-linux/ctype_noninline.h: Same.
3209         * src/locale.cc (_Impl): Same.
3210         * src/locale_init.cc: Same.
3211         * src/localename.cc: Same.
3213         * include/bits/basic_ios.h (basic_ios): Complete member
3214         initialization list.
3215         * include/bits/istream.tcc (basic_istream::sentry): Same.
3216         * include/bits/ostream.tcc (basic_ostream::sentry): Same.
3217         * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
3218         _M_pback to member initialization list.
3219         * include/std/std_streambuf.h: Same.
3220         * include/std/std_sstream.h: Same, for _M_mode.
3221         * src/ios.cc (ios_base): Same.
3223         * include/ext/rope: Make derived classes match exception
3225          specifications. Add copy constructors and assignment operators.
3227         * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
3228         constructor and assignment operator protected.
3229         (_Safe_iterator_base): Same.
3230         * include/debug/formatter.h (_Error_formatter): Define copy
3231         constructor and assignment operator.
3233         * include/backward/strstream: Declare assignment operator and copy
3234         constructor private.
3236 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
3238         * testsuite/testsuite_hooks.h (func_callback): Declare copy
3239         constructor and assignment operator private.
3240         * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
3241         exception specifications of base class.
3242         * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
3243         * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
3244         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
3246 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
3248         * libsupc++/cxxabi.h: Remove duplicated and useless public and
3249         private keywords in class declarations. Format. Use
3250         stddef.h. Expose declarations to "C" compilation.
3251         * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
3252         assignment operator.
3253         (__dyncast_result): Same.
3254         * libsupc++/vec.cc (uncatch_exception): Same, use member
3255         initialization list.
3257 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
3259         * testsuite/abi_check.cc: Add unistd.h.
3261 2004-05-22  Paolo Carlini  <pcarlini@suse.de>
3263         PR libstdc++/15565
3264         * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
3265         __int_to_char(unsigned long long)): Showpos is not relevant
3266         for unsigned types.
3267         * testsuite/22_locale/num_put/put/char/15565.cc: New.
3268         * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
3270         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
3271         char.
3272         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
3273         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
3274         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
3275         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
3276         * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
3277         * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
3279 2004-05-21  Matthias Klose  <doko@debian.org>
3281         * docs/doxygen/run_doxygen:  Bump required version.
3283 2004-05-21  Benjamin Kosnik  <bkoz@redhat.com>
3285         * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
3286         * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
3288 2004-05-21  Paolo Carlini  <pcarlini@suse.de>
3290         * include/bits/istream.tcc (ignore): Remove redundant line.
3291         (readsome): Tidy, closely following 27.6.1.3, p30.
3293 2004-05-20  Paolo Carlini  <pcarlini@suse.de>
3295         * include/bits/istream.tcc (operator>>(basic_istream<>&,
3296         basic_string<>&)): Use a temporary buffer, thus avoiding
3297         reallocation for common case.
3298         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
3299         New.
3300         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
3301         Likewise.
3303         * include/bits/istream.tcc: Const-ification of a few variables.
3305         * include/bits/ostream.tcc: Trivial formatting fixes and
3306         const-ification of some variables.
3308 2004-05-20  Benjamin Kosnik  <bkoz@redhat.com>
3310         PR libstdc++/15123
3311         PR libstdc++/13928
3312         * docs/doxygen/Intro.3: Remove Allocators.3.
3313         Add new extension headers, extension namespace list.
3314         * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
3315         Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
3316         __gnu_debug::. Remove __policy_ renames.
3317         * docs/doxygen/guide.html: Add dot note.
3318         * docs/doxygen/stdheader.cc: Edit, add files.
3319         * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
3321 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
3323         * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
3325 2004-05-18  Jan Beulich  <jbeulich@novell.com>
3327         PR libstdc++/15489
3328         * scripts/create_testsuite_files: Also find source files through
3329         symbolic links.
3331 2004-05-18  Jan Beulich  <jbeulich@novell.com>
3333         PR libstdc++/15488
3334         * testsuite/lib/libstdc++.exp: Make test files writable.
3336 2004-05-18  Paolo Carlini  <pcarlini@suse.de>
3338         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
3339         tweaks.
3341 2004-05-18  Dhruv Matani  <dhruvbird@gmx.net>
3343         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
3344         allocation loop which removes blocks from the global free list
3345         from O(N) to O(1) when the required blocks are <= the number
3346         available.
3348 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
3350         * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
3352 2004-05-17  Benjamin Kosnik  <bkoz@redhat.com>
3354         * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
3355         * testsuite/23_containers/deque/14340.cc: New.
3356         * testsuite/23_containers/list/14340.cc: New.
3357         * testsuite/23_containers/map/14340.cc: New.
3358         * testsuite/23_containers/multimap/14340.cc: New.
3359         * testsuite/23_containers/multiset/14340.cc: New.
3360         * testsuite/23_containers/set/14340.cc: New.
3361         * testsuite/23_containers/vector/14340.cc: New.
3363 2004-05-17  Douglas Gregor   <gregod@cs.rpi.edu>
3365         PR libstdc++/14340
3366         * include/debug/safe_iterator.h (_Safe_iterator converting
3367         constructor): Only allow declaration to instantiate when the
3368         incoming _Safe_iterator has exactly the right iterator type.
3370 2004-05-17  Jonathan Wakely  <redi@gcc.gnu.org>
3372         * include/bits/boost_concept_check.h: Fix old attribute syntax.
3373         * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
3374         to pass concept-checks.
3375         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
3376         * testsuite/23_containers/set/modifiers/swap.cc: Same.
3377         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
3379 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
3381         * include/std/std_bitset.h: Minor formatting fixes.
3383 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
3385         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3386         Consistently update __bin._M_free[0].
3387         (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
3388         __bin._M_free[0] to simplify the while loop (i.e., the number
3389         of iterations becomes known at the outset).
3391 2004-05-15  Paolo Carlini  <pcarlini@suse.de>
3393         * include/std/std_bitset.h: Trivial formatting fixes.
3395 2004-05-14  Paolo Carlini  <pcarlini@suse.de>
3396             Ivan Godard  <igodard@pacbell.net>
3398         PR libstdc++/15361
3399         * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
3400         * testsuite/23_containers/bitset/ext/15361.cc: New.
3402 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
3404         PR libstdc++/15046
3405         * crossconfig.m4: Add C99 math bits for linux crosses.
3406         * configure: Regenerate.
3408 2004-05-13  Simon Marshall <simon.marshall@misys.com>
3409             Benjamin Kosnik  <bkoz@redhat.com>
3411         PR libstdc++/15090
3412         * include/bits/locale_facets.h: Fix for -fno-for-scope.
3413         * include/debug/safe_sequence.h: Same.
3414         * include/debug/safe_iterator.tcc: Same.
3415         * src/debug.cc: Same.
3416         * src/locale.cc: Same.
3417         * src/locale_init.cc: Same.
3418         * src/localename.cc: Same.
3419         * config/locale/gnu/ctype_members.cc: Same.
3420         * config/locale/gnu/numeric_members.cc: Same.
3421         * testsuite/testsuite_abi.cc: Same.
3422         * testsuite/testsuite_hooks.cc: Same.
3424 2004-05-13  Jonathan Wakely  <redi@gcc.gnu.org>
3426         * docs/html/abi.html: Document effect of -fabi-version on value
3427         of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
3428         Fix markup.
3430 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
3432         PR libstdc++/15074
3433         * docs/html/faq/index.html: Update docs for libsupc++ usage.
3435 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
3437         PR libstdc++/15412
3438         * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
3439         __gnu_internal.
3440         (_GLIBCXX_mutex_address): Same.
3441         (_GLIBCXX_once): Same.
3442         (_GLIBCXX_mutex_init): Same.
3443         (_GLIBCXX_mutex_address_init): Same.
3445 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
3447         * docs/html/abi.html: New.
3448         * docs/html/abi.txt: Remove.
3449         * docs/html/documentation.html: Add link.
3450         * testsuite/Makefile.am: Add files.
3451         * testsuite/Makefile.in: Regenerated.
3452         * testsuite/abi_check.cc: Move and modify code into...
3453         * testsuite/testsuite_abi.cc: Add.
3454         * testsuite/testsuite_abi.h: Add.
3456         * docs/html/17_intro/TODO: Update.
3457         * include/bits/stl_pair.h: Format.
3459 2004-05-06  Matthias Klose  <doko@debian.org>
3461         * include/backward/iterator.h:  Add GPL copyright info,
3462         with exception clause.
3463         * include/bits/boost_concept_check.h: Likewise.
3464         * include
3465         * libsupc++/tinfo.h: Likewise.
3466         * po/string_literals.cc: Likewise.
3468 2004-05-03  Andreas Tobler  <a.tobler@schweiz.ch>
3470         * acinclude.m4: Replace -W with more speaking -Wextra.
3471         * configure: Rebuilt.
3473 2004-05-03  Paolo Carlini  <pcarlini@suse.de>
3475         Optimize locale::_M_impl->_M_names for the most common cases:
3476         !_M_names[0] means unnamed; !_M_names[1] means all the categories
3477         the same name (_M_names[0] && _M_names[1] means that the full set
3478         of _M_names must be processed, the general case).
3479         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
3480         Tweak, saving work when !_M_names[1].
3481         (locale::locale(const locale&, _Facet*): Simplify: now just setting
3482         _M_names[0] = 0 means unnamed.
3483         * src/locale.cc (locale::operator==): Deal first with the common,
3484         easy cases, otherwise fall back to locale::name().
3485         (locale::name()): Tweak, if !_M_names[0] just return "*".
3486         (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
3487         copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
3488         * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
3489         * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
3490         Simplify when !std::strchr, just updating _M_names[0]; clean up.
3491         (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
3492         for the general case (full set of names), then do the usual work;
3493         clean up.
3495         * src/locale.cc (locale::name()): Reserve space in __ret.
3496         * src/locale_init.cc (locale::global(const locale&)): Save
3497         the name in a temporary.
3498         * src/localename.cc (locale::locale(const char*)): Reserve space
3499         in __str.
3501 2004-04-29  Paolo Carlini  <pcarlini@suse.de>
3503         * src/locale.cc (locale::operator==): Always avoid constructing
3504         locale::name(), directly compare pairs of _M_names.
3506 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
3508         * include/bits/istream.tcc: Fix comment.
3510 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
3512         * include/bits/stl_vector.h: Trivial formatting fixes.
3513         * include/bits/vector.tcc: Likewise.
3515 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
3517         PR libstdc++/15002 (continued again)
3518         * include/bits/istream.tcc (getline(basic_istream<>&,
3519         basic_string<>&, _CharT)): Use a temporary buffer, thus
3520         avoiding reallocation for common case.
3522         * include/bits/basic_string.tcc (_S_construct(_InIterator,
3523         _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
3524         of temporary buffer to a power of two.
3526         * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
3528 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
3530         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
3531         New.
3532         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
3533         Likewise.
3534         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
3536 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
3537             Petur Runolfsson  <peturr02@ru.is>
3539         PR libstdc++/15002 (continued)
3540         * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
3541         streamsize, char_type)): Use traits::find/copy in a loop to speed
3542         up greatly the function in the common case (I/O buffer size >> 1).
3544 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
3546         * testsuite/27_io/basic_istream/getline/char/4.cc: New.
3548         * include/bits/istream.tcc (getline(basic_istream<>&,
3549         basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
3550         of sbumpc(), consistently with the other functions, thus also
3551         dealing correctly with the case of exceeded string::max_size().
3553 2004-04-24  Matthias Klose  <doko@debian.org>
3555         Jonathan Wakely  <cow@compsoc.man.ac.uk>
3556         * docs/html/configopts.html: Fix reference to allocator config option.
3558 2004-04-23  Andrew Pinski  <pinskia@physics.uc.edu>
3560         * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
3561         * configure: Regenerate.
3563 2004-04-23  Daniel Jacobowitz  <drow@mvista.com>
3565         PR libstdc++/15047, libstdc++/11610
3566         * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
3567         (libstdc++_init): Don't pass outdir to v3-copy-files.
3569 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
3571         * include/bits/deque.tcc: Trivial formatting fixes.
3572         * include/bits/stl_deque.h: Likewise.
3573         * include/bits/stl_list.h: Likewise.
3574         * include/bits/stl_tree.h: Likewise.
3576 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
3577             Andrew Pinski  <pinskia@physics.uc.edu>
3579         * include/bits/basic_string.tcc (_M_mutate): Don't compute
3580         __src unnecessarily.
3582 2004-04-19  Benjamin Kosnik  <bkoz@redhat.com>
3584         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
3585         Clarify assertion, set test variable to false before assert.
3586         * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
3587         * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
3588         * testsuite/27_io/ios_base/storage/2.cc: Same.
3590         * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
3591         function returns.
3592         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
3593         * testsuite/27_io/fpos/14320-3.cc: Same.
3595         * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
3596         * testsuite/27_io/fpos/1.cc: Same.
3597         * testsuite/27_io/basic_stringstream/2.cc: Same.
3598         * testsuite/27_io/basic_stringbuf/4.cc: Same.
3599         * testsuite/27_io/basic_stringbuf/1.cc: Same.
3600         * testsuite/27_io/basic_stringbuf/2.cc: Same.
3601         * testsuite/27_io/basic_streambuf/2.cc: Same.
3602         * testsuite/27_io/basic_ostringstream/2.cc: Same.
3603         * testsuite/27_io/basic_ostream/2.cc: Same.
3604         * testsuite/27_io/basic_ofstream/2.cc: Same.
3605         * testsuite/27_io/basic_istringstream/2.cc: Same.
3606         * testsuite/27_io/basic_istream/2.cc: Same.
3607         * testsuite/27_io/basic_iostream/2.cc: Same.
3608         * testsuite/27_io/basic_ios/2.cc: Same.
3609         * testsuite/27_io/basic_ifstream/2.cc: Same.
3610         * testsuite/27_io/basic_fstream/2.cc: Same.
3611         * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
3613         * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
3614         unsigned against zero.
3615         * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
3616         * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
3618         * testsuite/18_support/new_delete_placement.cc: Initialize
3619         variables before first use.
3620         * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
3621         * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
3622         * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
3623         * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
3624         Same.
3625         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
3626         * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
3627         Same.
3628         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
3629         * testsuite/27_io/types/2.cc: Same.
3631         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
3632         file name.
3633         * testsuite/27_io/fpos/14775.cc: Same.
3635 2004-04-19  Paolo Carlini  <pcarlini@suse.de>
3637         PR libstdc++/15002 (partial)
3638         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
3639         Special case __n2 == 1, not calling traits_type::assign/copy.
3641 2004-04-17  Benjamin Kosnik  <bkoz@redhat.com>
3643         * include/bits/stl_bvector.h: Use _M_impl._M_start.
3645 2004-04-16  Benjamin Kosnik  <bkoz@redhat.com>
3647         * include/bits/c++config (_GLIBCXX_STD): New.
3648         * src/list.cc: Use it.
3649         * include/std/std_bitset.h: Same.
3650         * include/bits/vector.tcc: Same.
3651         * include/bits/stl_set.h: Same.
3652         * include/bits/stl_multiset.h: Same.
3653         * include/bits/stl_multimap.h: Same.
3654         * include/bits/stl_map.h: Same.
3655         * include/bits/stl_list.h: Same.
3656         * include/bits/stl_vector.h: Same.
3657         * include/bits/stl_bvector.h: Same.
3658         * include/bits/stl_deque.h: Same.
3659         * include/bits/deque.tcc: Same.
3660         * include/bits/list.tcc: Same.
3661         * include/debug/vector: Same.
3662         * include/debug/set.h: Same.
3663         * include/debug/multiset.h: Same.
3664         * include/debug/multimap.h: Same.
3665         * include/debug/map.h: Same.
3666         * include/debug/list: Same.
3667         * include/debug/deque: Same.
3668         * include/debug/bitset: Same.
3669         * include/debug/formatter.h (__gnu_debug): Remove using directive.
3670         Add using declaration for std::type_info.
3671         * include/debug/safe_iterator.h: Add using declaration for
3672         std::iterator_traits and std::pair.
3673         * src/debug_list.cc: New.
3674         * src/Makefile.am: Add debug_list.cc.
3675         * src/Makefile.in: Regenerate.
3676         * config/linker-map.gnu: Add _List_node_base exports for std and
3677         __gnu_norm.
3679         * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
3680         idiom that other containers use.
3681         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
3683 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
3685         PR libstdc++/14975
3686         * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
3687         in case of error.
3688         * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
3689         * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
3691 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
3693         * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
3694         used anymore.
3695         * config.h.in: Regenerate.
3697 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
3699         * config/locale/generic/monetary_members.cc
3700         (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
3701         btowc unnecessarily, just cast to wchar_t (the concerned chars
3702         all belong to the basic character set).
3703         * config/locale/generic/numeric_members.cc
3704         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
3705         * config/locale/gnu/monetary_members.cc
3706         (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
3707         * config/locale/gnu/numeric_members.cc
3708         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
3710 2004-04-15  Paolo Carlini  <pcarlini@suse.de>
3712         * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
3713         avoid constructing unnecessarily this->name().
3715 2004-04-14  Zack Weinberg  <zack@codesourcery.com>
3717         * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
3718         Change definition of CXX to use $(shell) instead of backticks.
3719         * testsuite/Makefile.in: Regenerate.
3721 2004-04-12  Dhruv Matani  <dhruvbird@gmx.net>
3723         * testsuite/performance/20_util/allocator/list_sort_search.cc:
3724         Minor formatting fixes.
3725         * testsuite/performance/20_util/allocator/map_mt_find.cc:
3726         Likewise.
3728 2004-04-12  Paolo Carlini <pcarlini@suse.de>
3730         * config/locale/gnu/numeric_members.cc
3731         (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
3732         in __uselocale, since btowc is called for chars belonging to
3733         the basic character set.
3735 2004-04-09  Paolo Carlini  <pcarlini@suse.de>
3737         * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
3738         * testsuite/22_locale/messages/members/char/2.cc: Ditto.
3739         * testsuite/22_locale/messages/members/char/3.cc: Ditto.
3740         * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
3741         * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
3742         * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
3743         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
3744         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
3745         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
3746         * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
3747         * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
3748         * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
3749         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
3750         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
3751         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
3752         * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
3753         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
3755 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
3757         * config/locale/generic/time_members.cc
3758         (__timepunct<char>::_M_initialize_timepunct,
3759         __timepunct<wchar_t>::_M_initialize_timepunct): the correct
3760         _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
3761         * config/locale/gnu/time_members.cc
3762         (__timepunct<char>::_M_initialize_timepunct,
3763         __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
3764         * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
3765         * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
3767         * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
3768         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
3769         * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
3770         * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
3771         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
3772         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
3773         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
3774         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
3775         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
3776         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
3777         * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
3778         * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
3779         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
3780         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
3781         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
3782         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
3783         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
3784         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
3785         * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
3786         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
3787         * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
3788         * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
3789         * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
3790         * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
3791         * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
3792         * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
3793         * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
3794         * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
3795         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
3796         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
3797         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
3798         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
3799         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
3800         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
3801         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
3802         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
3804         * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
3806 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
3808         * config/locale/gnu/monetary_members.cc
3809         (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
3810         _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
3811         and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
3812         _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
3813         * config/locale/gnu/numeric_members.cc
3814         (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
3815         and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
3817 2004-04-06  Benjamin Kosnik  <bkoz@redhat.com>
3819         Fixups for EDG front end.
3820         * include/ext/rope: Instead of non-existent function
3821         _Data_allocate, use allocator's allocate. Use this.
3822         (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
3823         enumerations from _Rope_RopeRep here.
3824         * include/ext/ropeimpl.h: Same.
3825         * src/ext-inst.cc (_S_min_len): Fix up definition.
3827         * config/locale/gnu/ctype_members.cc: Qualify base class members
3828         with this.
3829         * config/locale/generic/ctype_members.cc: Same.
3830         * config/locale/gnu/messages_members.h: Same.
3831         * config/locale/generic/messages_members.h: Same.
3832         * src/ctype.cc: Same.
3833         * include/bits/codecvt.h: Same.
3835         * include/bits/boost_concept_check.h: Declare.
3836         (__error_type_must_be_an_unsigned_integer_type): Remove this.
3837         (__error_type_must_be_an_integer_type): Remove this.
3838         (__error_type_must_be_a_signed_integer_type): Remove this.
3840         * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
3842         * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
3843         specification to definition.
3844         (__cxa_allocate_exception): Same.
3845         * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
3846         * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
3847         (__cxa_get_globals): Same.
3849         * libsupc++/del_op.cc: Add comment about freestanding.
3851 2004-04-05  Paolo Carlini  <pcarlini@suse.de>
3853         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3854         The critical section is actually very small, only two assignments.
3856 2004-04-04  Paolo Carlini  <pcarlini@suse.de>
3857             Petur Runolfsson  <peturr02@ru.is>
3859         * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
3860         adapted from libstdc++/11378.
3862 2004-04-03  Paolo Carlini  <pcarlini@suse.de>
3864         * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
3865         some duplicated code.
3866         (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
3867         in the single threaded case.
3868         * testsuite/performance/20_util/allocator/list_sort_search.cc:
3869         Reorder and renumber the tests consistently with the other testfiles.
3870         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3871         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3872         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3874 2004-04-02  Paolo Carlini  <pcarlini@suse.de>
3876         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3877         Rearrange arithmetic to avoid computing two divisions at
3878         each deallocation.
3880 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
3882         * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
3883         Streamline the second half, wrapping it in a single
3884         '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
3885         conditionals inside loops.
3887 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
3889         PR libstdc++/14775
3890         * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
3891         * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
3892         GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
3893         to _GLIBCXX_RES_LIMITS.
3894         (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
3895         HAVE_LIMIT_*.
3896         * testsuite/testsuite_hooks.h: Declare set_file_limit.
3897         * testsuite/testsuite_hooks.cc: Define it, using getrlimit
3898         and setrlimit(RLIMIT_FSIZE).
3899         * testsuite/27_io/fpos/14775.cc: New.
3900         * config.h.in: Regenerate.
3901         * configure: Likewise.
3903 2004-03-31  Paolo Carlini  <pcarlini@suse.de>
3905         * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
3906         In v3 uses of sscanf, the special floating-point numbers INF,
3907         INFINITY, etc., cannot occur in input, therefore, if the latter
3908         is too large, ERANGE is always stored in errno, no need of finitel.
3910 2004-03-30  Benjamin Kosnik  <bkoz@redhat.com>
3912         PR libstdc++/14783
3913         * include/bits/stl_tree.h: Adjust initialization list order.
3915 2004-03-29  Loren J. Rittle  <ljrittle@acm.org>
3917         * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
3919 2004-03-29  Paolo Carlini  <pcarlini@suse.de>
3921         * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
3922         on allocator behavior, the memory pointed by data2 may well be not
3923         trashed.
3925 2004-03-28  Chavdar Botev  <cbotev@yahoo.com>
3927         PR libstdc++/14245
3928         * include/bits/basic_string.tcc
3929         (basic_string::basic_string(const basic_string&)): Pass to
3930         _Rep::_M_grab the actual allocator of the string being constructed
3931         not the default constructed one.
3933 2004-03-27  Benjamin Kosnik  <bkoz@redhat.com>
3935         libstdc++ PR/13598
3936         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
3937         (__enc_traits::_M_destroy): New.
3938         (__enc_traits::~__enc_traits): Use it.
3939         (__enc_traits::operator=): Use _M_destroy, _M_init.
3940         (__enc_traits::__enc_traits): Same.
3942 2004-03-27  Petur Runolfsson  <peturr02@ru.is>
3944         * testsuite/ext/enc_filebuf/char/13598.cc: New.
3946 2004-03-27  Paolo Carlini  <pcarlini@suse.de>
3948         * include/ext/mt_allocator.h: Uglify consistently names of
3949         variables, members and classes; tidy.
3951 2004-03-27  Dhruv Matani  <dhruvbird@gmx.net>
3953         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3954         Deallocation loop rewrote.
3956 2004-03-26  Paolo Carlini  <pcarlini@suse.de>
3958         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3959         __mt_alloc<>::deallocate): Protect two instances of
3960         block->thread_id with __GTHREADS.
3962 2004-03-25  Gawain Bolton  <gp.bolton@computer.org>
3964         * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
3965         default argument in constructors.
3966         (_Rb_tree::_M_empty_initialize): Remove.
3968 2004-03-25  Benjamin Kosnik  <bkoz@redhat.com>
3970         * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
3971         * testsuite/23_containers/set/operators/1_neg.cc: Same.
3973 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
3975         * include/bits/cpp_type_traits.h: Changed __is_pod
3976         completely. Now, it does not use any of the previous type_traits
3977         to detect the pod types, and it also detects function pointers as
3978         POD types.
3980         * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
3981         which encapsulates the internal implementation of an rb_tree. Made
3982         the allocator a base class of this class instead of the rb_tree,
3983         which was not conforming. This _Rb_tree_impl class is also
3984         specialized on whether the _Compare parameter is a POD type or
3985         not. If so, then it maintains the comparison function as a data
3986         member, otherwise it makes the _Compare parameter a base class of
3987         itself. Also, _M_key_compare is now a function instead of a data
3988         member, so that the above trick can work properly. Delegated the
3989         initialization of the other data members to this newly created
3990         class. Also, now other member functions of rb_tree must refer to
3991         _M_key_compare as _M_impl._M_key_compare(). The other data members
3992         (*) can be referenced to as _M_impl.(*), where
3993         (*) includes _M_header, and _M_node_count.
3995 2004-03-25  Paolo Carlini  <pcarlini@suse.de>
3997         * include/ext/mt_allocator.h (__mt_alloc<>::tune):
3998         Add _M_min_bin, the size in bytes of the smallest bin.
3999         (__mt_alloc<>::tune()): Tweak accordingly.
4000         (__mt_alloc<>::tune(size_t, ...)): Likewise.
4001         (__mt_alloc<>::block_record): Change to a union: members next
4002         and thread_id are never used at the same time.
4003         (__mt_alloc<>::allocate): Update consistently.
4004         (__mt_alloc<>::deallocate): Likewise.
4005         (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
4006         _S_bin_size for the configurable _M_min_size.
4008 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
4010         * include/bits/stl_list.h: Created a _List_impl class and made it
4011         derive from the allocator, instead of the list deriving from the
4012         allocator class, which was not conformant. Changed all references
4013         from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
4014         as above (changed all references to the concerned variables).
4016 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
4018         * include/bits/stl_deque.h: Created a _Deque_impl class and made
4019         it derive from the allocator, instead of the deque deriving from
4020         the allocator class, which was not conformant. Changed all
4021         references to the _M_start, _M_finish, _M_map, and _M_map_size to
4022         _M_impl.*.
4023         (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
4024         qualification in 2 places where it was missing.
4025         (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
4026         above.
4027         * include/bits/deque.tcc: Same as above (changed all references to
4028         the concerned variables).
4030 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
4032         * include/bits/stl_vector.h: Created a _Vector_impl class and made
4033         it derive from the allocator, instead of the _Vector_base class,
4034         deriving from the allocator which was not conformant. Changed all
4035         references to the _M_start, _M_finish, and _M_end_of_storage to
4036         _M_impl.*.
4037         * include/bits/vector.tcc: Same as above (changed all references
4038         to the concerned variables).
4040 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
4042         * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
4043         * testsuite/23_containers/list/cons/clear_allocator.cc: New.
4044         * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
4046 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
4048         * include/ext/malloc_allocator.h: Fixed the construct function to
4049         call global placement new instead of assignment. Added a check
4050         after the return from malloc to check whether returned pointer is
4051         NULL, and if so, throw std::bad_alloc().
4052         * include/ext/debug_allocator.h: Added a check in the deallocate
4053         function to check whether the user has passed a NULL pointer or
4054         not.
4056 2004-03-24  Benjamin Kosnik  <bkoz@redhat.com>
4058         * docs/html/20_util/allocator.html: Add bitmap_allocator links.
4060 2004-03-24  Andreas Schwab  <schwab@suse.de>
4062         * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
4063         warning from IA64 assembler.
4065 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
4067         * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
4068         function call __builtin_ctz instead of the while loop.
4069         (allocate) -> If condition has __builtin_expect.
4070         (deallocate) -> Ditto.
4071         Renamed a few left-over variables and typedefs according to the
4072         C++STYLE mentioned in the documentation.
4073         Protected calls to __gthread* by __gthread_active_p(), whose value
4074         is cached in the local variable __threads_active.
4076 2004-03-24  Felix Yen  <fwy@alumni.brown.edu>
4078         * testsuite/performance/20_util/allocator/producer_consumer.cc:
4079         Use linear algorithm for producer.
4081 2004-03-24  Paolo Carlini  <pcarlini@suse.de>
4083         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
4084         __mt_alloc<>::deallocate): Avoid redundant conditionals.
4086 2004-03-23  Benjamin Kosnik  <bkoz@redhat.com>
4088         * include/bits/locale_facets.h: Tweaks for 80 column.
4089         (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
4090         (__moneypunct_cache::_M_cache): Same.
4091         (num_get): Don't inherit from __num_base.
4092         (num_put): Same.
4093         (money_get): Don't inherit from money_base.
4094         (money_put): Same.
4095         (__timepunct::_M_am_pm_format): New.
4096         (time_get::_M_extract_num): Return iterator, use ios_base as argument.
4097         (time_get::_M_extract_name): Same.
4098         (time_get::_M_extract_via_format): Same.
4099         * include/bits/locale_facets.tcc: Tweaks for 80 column.
4100         Use _M_getloc instead of getloc.
4101         * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
4102         * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
4103         * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
4105 2004-03-22  Paolo Carlini  <pcarlini@suse.de>
4107         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
4108         * configure: Regenerate.
4109         * config/allocator/pool_allocator_base.h: New.
4110         * include/ext/pool_allocator.h: Convert to a standard-conforming
4111         allocator.
4112         * src/allocator.cc: Tweak instantiations.
4113         * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
4114         * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
4115         * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
4116         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
4117         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
4118         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
4120 2004-03-22  Hans-Peter Nilsson  <hp@axis.com>
4122         * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
4123         inline" and attribute-unused.  Qualify parameter __mem with
4124         "volatile".
4125         (__exchange_and_add): Ditto.  Add back memory clobber to asm.
4127 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
4129         * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
4130         Remove junk.
4131         * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
4132         Likewise.
4133         * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
4134         Likewise.
4135         * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
4136         Likewise.
4137         * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
4138         Likewise.
4139         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
4140         Likewise.
4141         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
4142         Likewise.
4143         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
4144         Likewise.
4145         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
4146         Likewise.
4147         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
4148         Likewise.
4150 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
4152         * include/std/std_valarray.h: Document DR389 [Ready].
4153         * docs/html/ext/howto.html: Add an entry for DR389.
4155 2004-03-19  Michael Eager  <eager@mvista.com>
4157         * config/cpu/mips/atomicity.h:  Prevent reg loads between LL and
4158         SC instructions.
4160 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
4162         * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
4163         static_cast-s.
4164         * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
4165         * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
4166         * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
4167         * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
4168         * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
4169         * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
4170         * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
4171         * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
4172         * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
4174 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
4175             Petur Runolfsson  <peturr02@ru.is>
4177         PR libstdc++/12077
4178         * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
4179         no way to find out the conversion used by the underlying FILE*.
4180         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
4181         * testsuite/27_io/objects/char/9.cc: Tweak.
4183 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
4185         PR libstdc++/14648
4186         * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
4187         memory allocation/deallocation calls.
4188         * testsuite/ext/14648.cc: New.
4190 2004-03-19  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
4192         PR libstdc++/14647
4193         * include/backward/bvector.h (bit_vector): Allocator is in std
4194         namespace.
4196 2004-03-19  Phil Edwards  <phil@codesourcery.com>
4198         * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT):  Set LIBICONV,
4199         not libiconv.  SUBST this variable as well.
4200         * testsuite/Makefile.am (site.exp):  New target, based on that
4201         created by automake.  Also set libiconv.
4203         * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
4204         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
4205         testsuite/Makefile.in:  Regenerate.
4207 2004-03-16  Benjamin Kosnik  <bkoz@redhat.com>
4209         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
4210         new_allocator for all hosts.
4211         * configure: Regenerate.
4213 2004-03-16  Paolo Carlini  <pcarlini@suse.de>
4215         * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
4216         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
4218 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
4220         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4221         Adjust the logic underlying the parsing of symbol to deal
4222         correctly with an optional sign component (i.e., when either
4223         negative_sign or positive_sign is empty)
4224         * testsuite/22_locale/money_get/get/char/19.cc: New.
4225         * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
4227 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
4229         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4230         Do not accept an incomplete currency symbol.
4231         * testsuite/22_locale/money_get/get/char/18.cc: New.
4232         * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
4234 2004-03-13  Benjamin Kosnik  <bkoz@redhat.com>
4236         * config/allocator: New.
4237         * config/allocator/bitmap_allocator_base.h: New.
4238         * config/allocator/malloc_allocator_base.h: New.
4239         * config/allocator/mt_allocator_base.h: New.
4240         * config/allocator/new_allocator_base.h: New.
4241         * include/bits/allocator.h: Include c++allocator.h.
4242         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
4243         * aclocal.m4: Regenerate.
4244         * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
4245         * configure: Regenerate.
4246         * include/Makefile.am (host_headers_extra): Add c++allocator.h.
4247         * include/Makefile.in: Regenerate.
4248         * docs/html/configopts.html: Add enable-libstdcxx-allocator.
4250 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
4252         * include/bits/allocator.h: Revert.
4254 2004-03-12  Paolo Carlini  <pcarlini@suse.de>
4256         * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
4257         * include/bits/gslice_array.h: Add comment about DR 253.
4258         * include/bits/indirect_array.h: Likewise.
4259         * include/bits/mask_array.h: Likewise.
4260         * include/bits/slice_array.h: Likewise.
4262 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
4264         * testsuite/20_util/allocator/14176.cc: New.
4265         * include/ext/mt_allocator.h: Formatting fixes.
4267 2004-03-11  Dhruv Matani  <dhruvbird@HotPOP.com>
4269         * include/Makefile.am (ext_headers): Add
4270         ${ext_srcdir}/bitmap_allocator.h .
4271         * include/Makefile.in: Regenerate.
4272         * docs/html/ext/ballocator_doc.txt: New file.
4273         * include/ext/bitmap_allocator.h: New file.
4274         * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
4275         test.
4276         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
4277         * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
4278         test for the bitmap_allocator<>.
4279         * testsuite/performance/20_util/allocator/insert.cc: Likewise.
4280         * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
4281         * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
4283 2004-03-11  Paolo Carlini  <pcarlini@suse.de>
4285         * include/std/std_complex.h (pow(const complex&, const _Tp&),
4286         pow(const _Tp&, const complex&), pow(const complex&,
4287         const complex&)): Fully qualify with std:: a few calls.
4288         * testsuite/26_numerics/complex/13450.cc: Minor tweak.
4290 2004-03-11  Steven Bosscher  <stevenb@suse.de>
4292         PR libstdc++/11706
4293         * include/c_std/cmath.tcc (__cmath_power): Define inline.
4295 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
4297         * configure.ac: Bump AC_PREREQ to 2.59.
4299 2004-03-10  Paolo Carlini  <pcarlini@suse.de>
4301         * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
4303 2004-03-10  Paul Kienzle  <pkienzle@nist.gov>
4304             Paolo Carlini  <pcarlini@suse.de>
4306         PR libstdc++/13450
4307         * include/std/std_complex.h (pow(const complex&, const _Tp&),
4308         pow(const _Tp&, const complex&)): Use cmath pow only when safe.
4309         * testsuite/26_numerics/complex/13450.cc: New.
4311         * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
4312         * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
4314 2004-03-10  Jerry Quinn  <jlquinn@optonline.net>
4316         PR libstdc++/3247
4317         * include/bits/gslice_array.h (gslice_array()): Make public.
4318         (operator=(gslice_array)): Make public.  Implement.
4319         * include/bits/indirect_array.h (indirect_array()): Make public.
4320         * include/bits/mask_array.h (mask_array()): Make public.
4321         (operator=(mask_array)): Make public.  Implement.
4322         * include/bits/valarray_array.tcc (__valarray_copy):
4323         Comment.  Add versions for gslice_array and mask_array.
4324         * testsuite/26_numerics/valarray_subset_assignment.cc:  New test.
4326 2004-03-09  Benjamin Kosnik  <bkoz@redhat.com>
4328         * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
4329         non-weak systems.
4330         * testsuite/23_containers/vector/modifiers/swap.cc: Same.
4331         * testsuite/23_containers/set/modifiers/swap.cc: Same.
4332         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
4333         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
4334         * testsuite/23_containers/map/modifiers/swap.cc: Same.
4335         * testsuite/23_containers/list/modifiers/swap.cc: Same.
4337         * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
4339 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
4341         PR c++/13658
4342         * testsuite/23_containers/deque/modifiers/swap.cc: New.
4343         * testsuite/23_containers/list/modifiers/swap.cc: New.
4344         * testsuite/23_containers/map/modifiers/swap.cc: New.
4345         * testsuite/23_containers/multimap/modifiers/swap.cc: New.
4346         * testsuite/23_containers/multiset/modifiers/swap.cc: New.
4347         * testsuite/23_containers/set/modifiers/swap.cc: New.
4348         * testsuite/23_containers/vector/modifiers/swap.cc: New.
4350 2004-03-08  Petur Runolfsson  <peturr02@ru.is>
4352         PR libstdc++/12658
4353         * testsuite/22_locale/locale/cons/12658_thread.cc: New.
4355 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
4357         * docs/html/ext/howto.html: Add entry for DR 103 [WP].
4358         * include/bits/stl_multiset.h: Add comment about DR 103.
4359         * include/bits/stl_set.h: Likewise.
4361 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
4363         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4364         The value _space_ indicates that at least one space is required
4365         at that position.
4366         * testsuite/22_locale/money_get/get/char/17.cc: New.
4367         * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
4369         * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
4370         * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
4372         * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
4373         Remove redundant conditional on __str.size().
4375 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
4377         * include/bits/allocator.h: Switch defaults to mt_alloc.
4379 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
4381         * include/ext/mt_allocator.h (_S_initialize): If
4382         !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
4384 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
4386         PR libstdc++/12658
4387         * src/locale_init.cc (locale::locale): Lock critical regions with
4388         external mutexes.
4389         (locale::global): Same.
4390         * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
4391         Add in once bits for cases without __GTHREAD_MUTEX_INIT.
4392         (__glibcxx_mutex_lock): Same.
4394         * config/cpu/generic/atomicity.h: Remove
4395         _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
4396         * src/misc-inst.cc: Move all locking bits out of this file.
4398         * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
4399         * src/misc-inst.cc: Same.
4400         * config/cpu/hppa/atomicity.h: Same.
4402         * config/linker-map.gnu: Remove types in the signature of atomic
4403         exports, as they may vary.
4405 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
4407         * include/bits/locale_facets.tcc: Tweak the comment preceding
4408         has_facet: doesn't throw.
4410 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
4412         * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
4413         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
4414         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
4415         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
4416         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
4417         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
4418         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
4419         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
4421 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
4423         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4424         num_get<>::_M_extract_int, num_get<>::do_get(bool&),
4425         __pad<>::_S_pad): Prefer plain operator== to traits::eq().
4426         * testsuite/testsuite_character.h (struct __gnu_test::character):
4427         Provide operator==.
4428         * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
4429         Likewise.
4431 2004-03-05  Paolo Carlini  <pcarlini@suse.de>
4433         * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
4435 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
4437         * testsuite/23_containers/multiset/insert/1.cc: Test result string.
4439         * testsuite/23_containers/bitset/invalidation/1.cc: Main always
4440         returns 0.
4441         * testsuite/23_containers/deque/invalidation/4.cc: Same.
4442         * testsuite/23_containers/list/invalidation/1.cc: Same.
4443         * testsuite/23_containers/list/invalidation/2.cc: Same.
4444         * testsuite/23_containers/list/invalidation/3.cc: Same.
4445         * testsuite/23_containers/list/invalidation/4.cc: Same.
4446         * testsuite/23_containers/map/invalidation/2.cc: Same.
4447         * testsuite/23_containers/multimap/invalidation/1.cc: Same.
4448         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
4449         * testsuite/23_containers/multiset/invalidation/1.cc: Same.
4450         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
4451         * testsuite/23_containers/set/invalidation/1.cc: Same.
4452         * testsuite/23_containers/set/invalidation/2.cc: Same.
4453         * testsuite/23_containers/vector/invalidation/1.cc: Same.
4454         * testsuite/23_containers/vector/invalidation/2.cc: Same.
4455         * testsuite/23_containers/vector/invalidation/3.cc: Same.
4456         * testsuite/23_containers/vector/invalidation/4.cc: Same.
4458 2004-03-04  Paolo Carlini  <pcarlini@suse.de>
4460         * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
4461         CXXFLAGS_save.
4462         * testsuite/lib/libstdc++.exp: Don't add it conditionally to
4463         DEFAULT_CXXFLAGS.
4464         * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
4465         from the dg-options.
4466         * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
4467         * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
4468         * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
4469         * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
4470         * testsuite/23_containers/vector/resize/1.cc: Likewise.
4471         * testsuite/26_numerics/complex_value.cc: Likewise.
4472         * testsuite/27_io/ios_base/storage/1.cc: Likewise.
4473         * testsuite/27_io/ios_base/storage/2.cc: Likewise.
4474         * testsuite/27_io/ios_base/storage/3.cc: Likewise.
4475         * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
4476         * testsuite/27_io/objects/char/5.cc: Likewise.
4477         * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
4478         * testsuite/backward/11460.cc: Likewise.
4479         * testsuite/thread/pthread7-rope.cc: Likewise.
4481         * testsuite/21_strings/basic_string/compare/char/1.cc: Add
4482         missing test variable.
4483         * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
4484         missing test variable.
4486 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
4488         * testsuite/20_util/allocator/1.cc: Provide explicit
4489         instantiations for non-weak systems.
4490         * testsuite/20_util/binders.cc: Same.
4491         * testsuite/20_util/allocator/8230.cc: Same.
4492         * testsuite/20_util/allocator/10378.cc: Same.
4493         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
4494         * testsuite/22_locale/ctype/is/char/2.cc: Same.
4495         * testsuite/thread/pthread7-rope.cc: Same.
4496         * testsuite/thread/pthread6.cc: Same.
4497         * testsuite/thread/pthread5.cc: Same.
4498         * testsuite/thread/pthread4.cc: Same.
4499         * testsuite/thread/pthread1.cc: Same.
4500         * testsuite/ext/rope.cc: Same.
4501         * testsuite/ext/hash_set.cc: Same.
4502         * testsuite/ext/hash_map.cc: Same.
4503         * testsuite/ext/concept_checks.cc: Same.
4504         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
4505         * testsuite/25_algorithms/unique/2.cc: Same.
4506         * testsuite/25_algorithms/unique/1.cc: Same.
4507         * testsuite/25_algorithms/rotate.cc: Same.
4508         * testsuite/25_algorithms/min_max.cc: Same.
4509         * testsuite/25_algorithms/equal.cc: Same.
4510         * testsuite/24_iterators/rel_ops.cc: Same.
4511         * testsuite/24_iterators/iterator.cc: Same.
4512         * testsuite/24_iterators/insert_iterator.cc: Same.
4513         * testsuite/24_iterators/front_insert_iterator.cc: Same.
4514         * testsuite/24_iterators/back_insert_iterator.cc: Same.
4515         * testsuite/23_containers/vector/resize/1.cc: Same.
4516         * testsuite/23_containers/vector/modifiers/2.cc: Same.
4517         * testsuite/23_containers/vector/modifiers/1.cc: Same.
4518         * testsuite/23_containers/vector/invalidation/4.cc: Same.
4519         * testsuite/23_containers/vector/invalidation/3.cc: Same.
4520         * testsuite/23_containers/vector/invalidation/2.cc: Same.
4521         * testsuite/23_containers/vector/invalidation/1.cc: Same.
4522         * testsuite/23_containers/vector/element_access/1.cc: Same.
4523         * testsuite/23_containers/vector/cons/6513.cc: Same.
4524         * testsuite/23_containers/vector/cons/3.cc: Same.
4525         * testsuite/23_containers/vector/cons/2.cc: Same.
4526         * testsuite/23_containers/vector/cons/1.cc: Same.
4527         * testsuite/23_containers/vector/capacity/8230.cc: Same.
4528         * testsuite/23_containers/vector/capacity/1.cc: Same.
4529         * testsuite/23_containers/vector/bool/6886.cc: Same.
4530         * testsuite/23_containers/stack/members/7158.cc: Same.
4531         * testsuite/23_containers/set/invalidation/2.cc: Same.
4532         * testsuite/23_containers/set/invalidation/1.cc: Same.
4533         * testsuite/23_containers/queue/members/7157.cc: Same.
4534         * testsuite/23_containers/priority_queue/members/7161.cc: Same.
4535         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
4536         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
4537         * testsuite/23_containers/multiset/insert/1.cc: Same.
4538         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
4539         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
4540         * testsuite/23_containers/map/operators/1.cc: Same.
4541         * testsuite/23_containers/map/invalidation/2.cc: Same.
4542         * testsuite/23_containers/map/invalidation/1.cc: Same.
4543         * testsuite/23_containers/map/insert/1.cc: Same.
4544         * testsuite/23_containers/list/operators/4.cc: Same.
4545         * testsuite/23_containers/list/operators/3.cc: Same.
4546         * testsuite/23_containers/list/operators/2.cc: Same.
4547         * testsuite/23_containers/list/operators/1.cc: Same.
4548         * testsuite/23_containers/list/modifiers/3.cc: Same.
4549         * testsuite/23_containers/list/modifiers/2.cc: Same.
4550         * testsuite/23_containers/list/modifiers/1.cc: Same.
4551         * testsuite/23_containers/list/invalidation/4.cc: Same.
4552         * testsuite/23_containers/list/invalidation/3.cc: Same.
4553         * testsuite/23_containers/list/invalidation/2.cc: Same.
4554         * testsuite/23_containers/list/invalidation/1.cc: Same.
4555         * testsuite/23_containers/list/cons/9.cc: Same.
4556         * testsuite/23_containers/list/cons/8.cc: Same.
4557         * testsuite/23_containers/list/cons/7.cc: Same.
4558         * testsuite/23_containers/list/cons/6.cc: Same.
4559         * testsuite/23_containers/list/cons/5.cc: Same.
4560         * testsuite/23_containers/list/cons/4.cc: Same.
4561         * testsuite/23_containers/list/cons/3.cc: Same.
4562         * testsuite/23_containers/list/cons/2.cc: Same.
4563         * testsuite/23_containers/list/cons/1.cc: Same.
4564         * testsuite/23_containers/list/capacity/1.cc: Same.
4565         * testsuite/23_containers/deque/operators/1.cc: Same.
4566         * testsuite/23_containers/deque/invalidation/4.cc: Same.
4567         * testsuite/23_containers/deque/invalidation/3.cc: Same.
4568         * testsuite/23_containers/deque/invalidation/2.cc: Same.
4569         * testsuite/23_containers/deque/invalidation/1.cc: Same.
4570         * testsuite/23_containers/deque/cons/2.cc: Same.
4571         * testsuite/23_containers/deque/cons/1.cc: Same.
4573         * src/allocator.cc: Add char, wchar_t instantiations
4574         to match extern template declarations in memory.h.
4576 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
4578         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4579         Fix warning regression.
4581 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
4583         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4584         Deal properly with empty __digits and negative frac_digits,
4585         clean-up a bit.
4587 2004-03-03  Jonathan Wakely  <redi@gcc.gnu.org>
4589         * docs/html/documentation.html: Regenerate.
4591 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
4593         PR libstdc++/14320
4594         * include/bits/postypes.h (class streamoff): Remove, now
4595         streamoff is just typedef a 64 bit signed integer type.
4596         (class fpos): Tweak consistently.
4597         * testsuite/27_io/fpos/14320-1.cc: New.
4598         * testsuite/27_io/fpos/14320-2.cc: New.
4599         * testsuite/27_io/fpos/14320-3.cc: New.
4600         * testsuite/27_io/fpos/14320-4.cc: New.
4601         * testsuite/27_io/fpos/14320-5.cc: New.
4602         * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
4604 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
4606         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4607         Reorganize a bit the main parsing loop, thus early detecting
4608         an empty value component.
4609         * testsuite/22_locale/money_get/get/char/16.cc: New.
4610         * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
4612 2004-03-02  Benjamin Kosnik  <bkoz@redhat.com>
4614         Support automake 1.8.2
4615         * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
4616         * po/Makefile.am (EXTRA_DIST): New.
4617         * po/Makefile.in: Regenerate.
4618         * Makefile.in: Same.
4619         * include/Makefile.in: Same.
4620         * libmath/Makefile.in: Same.
4621         * libsupc++/Makefile.in: Same.
4622         * src/Makefile.in: Same.
4623         * testsuite/Makefile.in: Same.
4625         * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
4626         __GXX_WEAK__ instead of SUPPORTS_WEAK.
4627         (${host_builddir}/gthr-default.h): Same.
4628         (${host_builddir}/gthr.h): Same.
4629         * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
4630         _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
4631         -fno-weak.
4632         * aclocal.m4: Regenerate.
4633         * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
4634         * config.h.in: Regenerate.
4635         * configure: Same.
4637 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
4639         Support autoconf 2.59
4640         * acinclude.m4: Quote correctly.
4641         * aclocal.m4: Regenerate.
4642         * linkage.m4: Same.
4644 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
4646         * docs/html/test.html: Add multilib RUNTESTFLAGS example.
4648         * docs/html/18_support/howto.html: Add bit about writing to
4649         stderr, mostly by Zack.
4651 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
4653         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
4654         money_get<>::do_get(string_type&)): ... and two more.
4656 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
4658         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4659         Fix thinkos in the switch from string_type& to string& as last
4660         argument.
4662 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
4664         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
4665         Also when parsing exponent sign, first look for thousands_sep
4666         and decimal_point; tweak a bit.
4667         * testsuite/22_locale/num_get/get/char/15.cc: New.
4668         * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
4670         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4671         num_get<>::_M_extract_int): Reorder some conditionals.
4673 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
4675         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4676         Consistently with numpunct, enforce the requirements in
4677         22.2.6.3, p3 for the thousands separators; tweak a bit.
4678         * testsuite/22_locale/money_get/get/char/15.cc: New.
4679         * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
4681 2004-03-01  David Billinghurst <David.Billinghurst@riotinto.com>
4683         * testsuite/lib/libstdc++.exp (v3-list-tests): Use
4684         testsuite_files from correct multilib blddir when running
4685         testsuite.
4687 2004-02-29  Phil Edwards  <phil@codesourcery.com>
4689         * testsuite/Makefile.am (check-abi, check-abi-verbose):  Copy
4690         the summary file to the logfile.
4691         * testsuite/Makefile.in:  Regenerate.
4693 2004-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4695         * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
4696         volatile.
4697         * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
4698         __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
4700 2004-02-28  Paolo Carlini  <pcarlini@suse.de>
4702         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
4703         According to 22.2.3.1, p2, 'units' may be followed by 'e' with
4704         no 'decimal-point' in the middle: in this case too we must fix
4705         up __found_grouping; slightly tweak.
4706         * testsuite/22_locale/num_get/get/char/14.cc: New.
4707         * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
4709 2004-02-27  Eric Christopher  <echristo@redhat.com>
4710             Phil Edwards  <phil@codesourcery.com>
4712         * testsuite/22_locale/collate/compare/wchar_t/2.cc,
4713         testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
4714         testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
4715         testsuite/22_locale/collate/hash/wchar_t/2.cc,
4716         testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
4717         testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
4718         testsuite/22_locale/collate/transform/wchar_t/2.cc,
4719         testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
4720         testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4721         Use dg-require-iconv.
4722         * testsuite/lib/libstdc++.exp:  Load target-supports.exp.
4724 2004-02-27  Phil Edwards  <phil@codesourcery.com>
4725             Eric Christopher  <echristo@redhat.com>
4727         * testsuite/config/default.exp:  Update with comments.
4728         (${tool}_target_compile):  New wrapper routine.
4729         * testsuite/lib/dg-options.exp:  New file, with dg-require-iconv.
4730         * testsuite/lib/libstdc++.exp:  Update with comments and cosmetic
4731         fixes.
4732         (load_gcc_lib, v3track):  New routines.
4733         (v3-init):  Rename to libstdc++_init.
4734         * testsuite/libstdc++-dg/normal.exp:  No longer call v3-init.
4735         Move DEFAULT_CXXFLAGS handling into libstdc++_init.
4737 2004-02-27  Benjamin Kosnik  <bkoz@redhat.com>
4739         * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
4741         * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
4743         * config/os/irix/irix5.2/atomicity.h: Merge..
4744         * config/os/irix/irix6.5/atomicity.h: Merge..
4745         * config/os/irix/atomicity.h: ...into this.
4746         * config/os/irix/atomic_word.h: New.
4747         * configure.host: Set atomic_word_dir for irix.
4749         * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
4750         * i386/atomicity.h: Same.
4751         * m68k/atomicity.h: Same.
4752         * sparc/atomicity.h: Same.
4754 2004-02-27  David Edelsohn  <edelsohn@gnu.org>
4756         * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
4757         static, and inline keywords.
4759 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
4761         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4762         num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
4763         call reserve on the __tmp_gruping string.
4764         (num_get<>::_M_extract_float): Don't append unnecessarily a
4765         char() to the returned string.
4766         * include/bits/locale_facets.tcc: Trivial reformattings.
4768 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
4770         * include/bits/locale_facets.h (money_get<>::_M_extract):
4771         Change signature: now takes a plain string&.
4772         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4773         Update consistently the definition; use the moneypunct cache
4774         to parse the value; use swap to change __units.
4775         (money_get<>::do_get(long double&)): Update call of _M_extract,
4776         avoid ctype::narrow, not correct wrt the standard.
4777         (money_get<>::do_get(string_type&)): Likewise, update call
4778         of _M_extract, use ctype::widen.
4779         * src/locale-inst.cc: Tweak instantiations of _M_extract.
4781 2004-02-26  Ian Lance Taylor  <ian@wasabisystems.com>
4783         * testsuite/demangle/abi_examples/01.cc: Expect error -2.
4784         * testsuite/demangle/abi_examples/02.cc: Likewise.
4785         * testsuite/demangle/regression/cw-11.cc: Likewise.
4786         * testsuite/demangle/regression/cw-16.cc: Change two expected
4787         results to match libiberty demangler output.
4789 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
4791         PR libstdc++/10246
4792         * libsupc++/Makefile.am: Use libiberty demangler.
4793         (c_sources): Add cp-demangle.c.
4794         * libsupc++/Makefile.in: Regenerate.
4795         * src/Makefile.am (sources): Remove demangle.cc.
4796         * src/Makefile.in: Regenerate.
4797         * include/Makefile.am (bits_headers): Move demangle.h.
4798         (ext_headers): ...here.
4799         * include/Makefile.in: Regenerate.
4800         * include/bits/demangle.h: Move...
4801         * include/ext/demangle.h: ...here.
4802         * src/demangle.cc: Remove.
4804 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
4806         * include/bits/demangle.h: Add type template parameter to all
4807         templates with just an Allocator template parameter.
4809 2004-02-25  Benjamin Kosnik  <bkoz@redhat.com>
4811         * include/bits/atomicity.h: New, forward declarations for __atomic_add
4812         and __exchange_and_add.
4813         * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
4814         * config/cpu/cris/atomic_word.h: Same.
4815         * config/cpu/sparc/atomic_word.h: Same.
4816         * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
4817         Qualifiy with __gnu_cxx.
4818         (_Callback_list::_M_add_reference): Same.
4819         * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
4820         (locale::facet::_M_remove_reference): Same.
4821         (locale::_Impl::_M_add_reference): Add.
4822         (locale::_Impl::_M_remove_reference): Same.
4823         * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
4824         (basic_string::_Rep::_M_dispose): Same.
4825         * src/ios.cc (ios_base::xalloc): Same.
4826         * src/ios_init.cc (ios_base::Init::Init): Same.
4827         (ios_base::Init::~Init): Same.
4828         * src/locale.cc (locale::id::_M_id): Same.
4829         * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
4830         static, and inline keywords.
4831         * config/cpu/alpha/atomicity.h: Same.
4832         * config/cpu/cris/atomicity.h: Same.
4833         * config/cpu/generic/atomicity.h: Same.
4834         * config/cpu/hppa/atomicity.h: Same.
4835         * config/cpu/i386/atomicity.h: Same.
4836         * config/cpu/ia64/atomicity.h: Same.
4837         * config/cpu/m68k/atomicity.h: Same.
4838         * config/cpu/mips/atomicity.h: Same.
4839         * config/cpu/powerpc/atomicity.h: Same.
4840         * config/cpu/s390/atomicity.h: Same.
4841         * config/cpu/sparc/atomicity.h: Same.
4843         * src/Makefile.am (host_sources): Add atomicity.cc.
4844         (atomicity.cc): New rule.
4845         * src/Makefile.in: Regenerate.
4846         * include/Makefile.am (host_headers): Remove host atomicity.h.
4847         (host_headers): Add atomic_word.h.
4848         (bits_headers): Add bits atomicity.h.
4849         Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
4850         * include/Makefile.in: Regenerate.
4851         * configure.host (atomic_word_dir): Add.
4852         * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
4853         ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
4854         * configure: Regenerate.
4855         * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
4857         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
4858         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
4860 2004-02-25  Jonathan Wakely  <redi@gcc.gnu.org>
4862         * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
4863         docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
4864         Fix markup, more <link> tags.
4866 2004-02-25  Carlo Wood  <carlo@alinoe.com>
4868         * bits/demangle.h
4869         namespace __gnu_cxx::demangler
4870         (session<Allocator>::qualifier_list_Allocator): Add
4871         (session<Allocator>::M_qualifier_list_alloc): Add
4872         (session<Allocator>::decode_type_with_postfix):
4873         Use M_qualifier_list_alloc instead of calling operator new/delete.
4875 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
4877         PR libstdc++/14252
4878         * include/bits/postypes.h (class streamoff): Add operator++(),
4879         operator++(int), operator--() and operator--(int).
4880         * testsuite/27_io/fpos/14252.cc: New.
4882 2004-02-24  Richard Sandiford  <rsandifo@redhat.com>
4884         * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
4885         error in handling of hex constants.
4887 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
4889         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4890         Prefer basic_string::append to operator+= and a temporary.
4892 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
4894         * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
4895         Only use fputs, not write.
4897 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
4899         * include/ext/malloc_allocator.h: Add operators ==, !=.
4900         * include/ext/new_allocator.h: Add operators ==, !=.
4901         * include/ext/mt_allocator.h (__mt_alloc::tune): New.
4902         (__mt_alloc::_S_get_options): New.
4903         (__mt_alloc::_S_set_options): New.
4904         (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
4905         (__mt_alloc::_S_no_of_bins): To _S_bin_size.
4906         Move functions out of line, simplify, format.
4907         * src/allocator.cc: Simplify explicit instantiations.
4908         * include/bits/allocator.h: Tweak.
4910 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
4912         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4913         Restructure formatting of value component, first dealing with
4914         the non-decimal digits; use reserve.
4916 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
4918         * include/bits/locale_facets.h (class money_get): Inherit
4919         from money_base too; tweak declaration of _M_extract, now
4920         parameterized on _Intl too.
4921         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4922         Update definition to use the cache; call reserve on __res to
4923         avoid multiple reallocations; fix parsing of sign component
4924         according to 22.2.6.1.2, p3.
4925         (money_get<>::do_get(long double&),
4926         money_get<>::do_get(string_type&)): Update calls of _M_extract.
4927         * src/locale-inst.cc:  Add instantiations of
4928         money_get::_M_extract<false> and money_get::_M_extract<true>.
4929         * testsuite/22_locale/money_get/get/char/14.cc: New.
4930         * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
4932 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
4934         * libsupc++/vterminate.cc
4935         (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
4936         calls to terminate.
4937         * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
4939         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
4940         not set RLIMIT_AS on HP-UX.
4942 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
4944         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
4945         not set RLIMIT_AS on HP-UX.
4947 2004-02-21  Paolo Carlini  <pcarlini@suse.de>
4949         * include/bits/locale_facets.h (class money_base): Add { _S_minus,
4950         _S_zero, _S_end } enum, _S_atoms.
4951         (struct __moneypunct_cache<>): Parameterize on _Intl too; add
4952         _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
4953         _M_negative_sign_size, _M_atoms; tweak constructor consistently.
4954         (__moneypunct_cache<>::~__moneypunct_cache): Update.
4955         (__moneypunct_cache<>::_M_cache): Fill the cache.
4956         (class moneypunct): Tweak __cache_type typedef.
4957         (class money_put): Inherit from money_base too; tweak declaration
4958         of _M_insert, now parameterized on _Intl.
4959         * include/bits/locale_facets.tcc
4960         (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
4961         (money_put<>::_M_insert): Update definition to use the cache;
4962         call reserve on __res to avoid multiple reallocations.
4963         (money_put<>::do_put(long double),
4964         money_put<>::do_put(const string_type&): Update calls of _M_insert.
4965         * config/locale/generic/monetary_members.cc
4966         (moneypunct<char, true>::_M_initialize_moneypunct,
4967         moneypunct<char, false>::_M_initialize_moneypunct,
4968         moneypunct<wchar_t, true>::_M_initialize_moneypunct,
4969         moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
4970         * config/locale/gnu/monetary_members.cc: Likewise.
4971         * config/locale/gnu/monetary_members.cc
4972         (moneypunct<wchar_t, true>::~moneypunct(),
4973         moneypunct<wchar_t, false>::~moneypunct()): Likewise.
4974         * src/globals_locale.cc: Tweak fake_money_cache_c.
4975         * src/locale-inst.cc: Add instantiations for
4976         money_put::_M_insert<false> and money_put::_M_insert<true> and
4977         __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
4978         * src/locale_facets.cc: Define money_base::_S_atoms.
4979         * src/locale_init.cc: Update placement new of
4980         __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
4981         __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
4983         * config/locale/generic/numeric_members.cc: Clean up.
4984         * config/locale/gnu/numeric_members.cc: Likewise.
4985         * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
4986         * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
4987         * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
4988         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
4989         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
4990         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
4992 2004-02-20  Mark Mitchell  <mark@codesourcery.com>
4994         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
4995         FIFO for writing with ios_base::in|ios_base::out.
4996         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
4997         * testsuite/27_io/objects/char/7.cc: Likewise.
4998         * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
4999         with "r+".
5001 2004-02-19  David Edelsohn  <edelsohn@gnu.org>
5003         * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
5004         from iso-8859-1 to ISO8859-1.
5005         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
5006         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
5007         * 22_locale/collate/hash/wchar_t/2.cc: Same.
5008         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
5009         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
5010         * 22_locale/collate/transform/wchar_t/2.cc: Same.
5011         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
5012         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
5014 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
5016         * include/bits/locale_facets.h (money_get<>::_M_extract):
5017         New, helper for do_get.
5018         (money_put<>::_M_insert): Likewise, for do_put.
5019         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
5020         money_put<>::_M_insert): Define.
5021         (money_get<>::do_get(long double&), money_get<>::do_get(
5022         string_type&), money_put::do_put(long double),
5023         money_put::do_put(const string_type&)): Use the helpers.
5025 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
5027         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
5028         Rewrite, avoiding recursion.
5029         (__gnu_internal::xwrite): Minor tweaks.
5031 2004-02-17  Stefan Olsson  <stefan@xapa.se>
5033         * include/ext/mt_allocator.h: Removed the last
5034         pointer. Deallocated blocks are now added to the front of
5035         freelists as proposed by Felix Yen.  This gives roughly 10%
5036         performance boost and saves some memory.
5037         * docs/html/ext/mt_allocator.html: Change due to that deallocated
5038         blocks now are added to the front of freelists. The reason to this
5039         approach is also explained.
5041 2004-02-17  Paolo Carlini  <pcarlini@suse.de>
5043         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
5044         num_get<>::_M_extract_int, money_get<>::do_get): Simplify
5045         grouping fidelity conditional.
5047 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
5049         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
5050         Qualify exception with std::.
5051         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
5052         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
5053         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
5054         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
5055         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
5057 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
5059         * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
5060         for now that the catch block is not reached.
5061         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
5063 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
5065         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
5066         Fix parsing of the remaining sign characters.
5067         * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
5068         the input is scanned 'til eof.
5069         * 22_locale/money_get/get/char/4.cc: Likewise.
5070         * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
5071         * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
5072         * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
5073         not do_pos_format: the former is the only one that matters during
5074         input.
5075         * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
5077         * 22_locale/money_get/get/char/6.cc: Minor tweak.
5078         * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
5080 2004-02-15  David Asher  <david.asher@cavium.com>
5082         PR libstdc++/11352
5083         * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
5084         access __olds beyond __oldlen.
5086 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
5088         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
5089         sure the exception is actually thrown.
5090         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
5091         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
5092         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
5094 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
5096         PR libstdc++/13858
5097         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
5098         In case of conversion errors, throw ios_failure; simplify.
5099         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
5100         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
5101         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
5102         previously we didn't throw in case of conversion errors, instead
5103         just returned eof().
5104         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
5105         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
5106         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
5108         * include/bits/fstream.tcc (basic_filebuf<>::overflow):
5109         Trivial simplification of a conditional.
5111 2004-02-12  Paolo Carlini  <pcarlini@suse.de>
5113         PR libstdc++/13731 (final part: writev)
5114         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
5115         New, a wrapper around writev() handling partial writes.
5116         (__basic_file<char>::xwrite): Move to __gnu_internal and make
5117         static.
5118         (__basic_file<char>::xsputn): Update call.
5119         (__basic_file<char>::xsputn_2): Likewise.
5120         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
5121         Don't declare, now static.
5123 2004-02-11  Stefan Olsson  <stefan@xapa.se>
5125         * docs/html/ext/mt_allocator.html: New.
5127 2004-02-11  Benjamin Kosnik  <bkoz@redhat.com>
5129         * docs/html/20_util/allocator.html: New file, consolidate
5130         allocator information here. Revamp.
5131         * docs/html/documentation.html: Change links.
5132         * docs/html/20_util/howto.html: Same.
5133         * docs/html/ext/howto.html: Same.
5135 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
5137         PR libstdc++/13731 (first part: write)
5138         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
5139         New, declare.
5140         * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
5141         Define it: a wrapper around write() handling partial write.
5142         (__basic_file<char>::xsputn): Use it.
5143         (__basic_file<char>::xsputn_2): Likewise.
5145 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
5146             Petur Runolfsson  <peturr02@ru.is>
5148         PR libstdc++/14078
5149         * include/std/std_istream.h (operator>>(__istream_type& (*)
5150         (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
5151         operator>>(ios_base& (*)(ios_base&))): Declare inline.
5152         * include/std/std_ostream.h (operator<<(__ostream_type& (*)
5153         (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
5154         operator<<(ios_base& (*) (ios_base&))): Likewise.
5155         * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
5157 2004-02-10  Loren J. Rittle  <ljrittle@acm.org>
5159         PR libstdc++/14098
5160         * config/linker-map.gnu: Add typeinfo and typeinfo name for
5161         __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
5163         PR libstdc++/14097
5164         * config/linker-map.gnu: Add typeinfo and typeinfo name for
5165         __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
5167 2004-02-09  Loren J. Rittle  <ljrittle@acm.org>
5169         * include/ext/pool_allocator.h: Include c++config.h.
5171 2004-02-09  Stefan Olsson  <stefan@xapa.se>
5173         * include/ext/mt_allocator.h: thread_id is unused in non threaded
5174         applications and now has a ifdef to remove it completely on
5175         compilers without thread support. Include stdlib.h due to a
5176         compiler warning on getenv().
5178 2004-02-09  Paul Brook  <paul@codesourcery.com>
5180         * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
5182 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
5184         PR libstdc++/14071
5185         * src/locale_init.cc (locale::global(const locale&)): Use
5186         locale::name() in order to decide whether calling setlocale.
5187         * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
5189         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
5190         Avoid computing &= unnecessarily.
5192 2004-02-09  James E Wilson  <wilson@specifixinc.com>
5194         PR libstdc++/5625
5195         * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
5196         __builtin_extend_pointer.
5198 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
5200         PR libstdc++/14072
5201         * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
5202         Don't leave dangling pointers.
5203         * testsuite/27_io/basic_ios/imbue/14072.cc: New.
5204         * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
5205         facet is needed in the final test.
5207 2004-02-09  Bernardo Innocenti  <bernie@develer.com>
5209         * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
5210         * configure: Regenerate.
5212 2004-02-08  Richard Henderson  <rth@redhat.com>
5214         PR libstdc++/14026
5215         * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
5216         uncaughtExceptions during nested catch rethrow.
5217         * testsuite/18_support/14026.cc: New.
5219 2004-02-08  Paolo Carlini  <pcarlini@suse.de>
5221         * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
5222         When working in place remember to set the state to sharable
5223         (otherwise, _M_mutate does it).
5225 2004-02-08  Bernardo Innocenti  <bernie@develer.com>
5227         * include/bits/allocator.h, include/bits/basic_ios.h,
5228         include/bits/basic_ios.tcc, include/bits/basic_string.h,
5229         include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
5230         include/bits/char_traits.h, include/bits/codecvt.h,
5231         include/bits/concurrence.h, include/bits/cpp_type_traits.h,
5232         include/bits/demangle.h, include/bits/deque.tcc,
5233         include/bits/fstream.tcc, include/bits/functexcept.h,
5234         include/bits/gslice.h, include/bits/gslice_array.h,
5235         include/bits/indirect_array.h, include/bits/ios_base.h,
5236         include/bits/istream.tcc, include/bits/list.tcc,
5237         include/bits/locale_classes.h, include/bits/locale_facets.h,
5238         include/bits/locale_facets.tcc, include/bits/localefwd.h,
5239         include/bits/mask_array.h, include/bits/ostream.tcc,
5240         include/bits/postypes.h, include/bits/slice_array.h,
5241         include/bits/sstream.tcc, include/bits/stl_algo.h,
5242         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
5243         include/bits/stl_construct.h, include/bits/stl_deque.h,
5244         include/bits/stl_function.h, include/bits/stl_heap.h,
5245         include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
5246         include/bits/stl_list.h, include/bits/stl_map.h,
5247         include/bits/stl_multimap.h, include/bits/stl_multiset.h,
5248         include/bits/stl_numeric.h, include/bits/stl_pair.h,
5249         include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
5250         include/bits/stl_relops.h, include/bits/stl_set.h,
5251         include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
5252         include/bits/stl_threads.h, include/bits/stl_tree.h,
5253         include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
5254         include/bits/stream_iterator.h, include/bits/streambuf.tcc,
5255         include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
5256         include/bits/type_traits.h, include/bits/valarray_after.h,
5257         include/bits/valarray_array.h, include/bits/valarray_array.tcc,
5258         include/bits/valarray_before.h, include/bits/vector.tcc: Remove
5259         trailing whitespace.
5261 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
5263         * include/bits/basic_string.h: Fix comment.
5265 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
5267         * include/bits/stl_construct.h: Wrap overlong lines, reformat
5268         according to the coding standards.
5269         * include/bits/stl_pair.h: Likewise.
5270         * include/bits/stl_raw_storage_iter.h: Likewise.
5271         * include/bits/stl_stack.h: Likewise.
5272         * include/bits/stl_uninitialized.h: Likewise.
5273         * include/bits/stream_iterator.h: Likewise.
5274         * include/bits/streambuf_iterator.h: Likewise.
5275         * include/bits/type_traits.h: Likewise.
5277 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
5279         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
5280         Adjust timings.
5282 2004-02-05  Loren J. Rittle  <ljrittle@acm.org>
5284         * scripts/check_performance: Support PCH.
5286         * scripts/check_performance (CXX): Add -DNOTHREAD.
5287         * testsuite/performance/20_util/allocator/insert.cc: Integrate
5288         threaded tests from insert_insert.cc.  Tweak iterations,
5289         remove special cases.
5290         * testsuite/performance/20_util/allocator/insert_insert.cc:
5291         Make all tests single-threaded. Tweak iterations.
5292         * testsuite/performance/20_util/allocator/map_thread.cc:
5293         Tweak iterations.
5294         * testsuite/performance/20_util/allocator/producer_consumer.cc:
5295         Likewise.
5297 2004-02-05  Geoffrey Keating  <geoffk@apple.com>
5299         PR 12179
5300         * .cvsignore: New.
5301         * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
5302         'gcc-lib'.  Add comment about poorly-named variables.
5303         * aclocal.m4: Regenerate.
5304         * configure: Regenerate.
5306 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
5308         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
5309         Thousands-sep are always optional; thousands-sep are not allowed
5310         after the decimal_point.
5311         * testsuite/22_locale/money_get/get/char/12.cc: New.
5312         * testsuite/22_locale/money_get/get/char/13.cc: New.
5313         * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
5314         * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
5316         * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
5317         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
5318         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
5319         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
5320         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
5321         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
5322         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
5323         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
5325         * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
5326         the standard.
5327         * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
5329 2004-02-05  Richard Sandiford  <rsandifo@redhat.com>
5331         * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
5332         Define.
5333         * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
5334         it to decide whether FIONREAD should take an off_t or int argument.
5336 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
5338         * include/bits/stl_function.h: Minor formatting changes.
5340 2004-02-04  Zack Weinberg  <zack@codesourcery.com>
5342         Revert previous change to config/abi/*/baseline_symbols.txt.
5344 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
5345             Zack Weinberg  <zack@codesourcery.com>
5347         * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
5348         New function.
5349         (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
5350         (__basic_file<char>::_M_open_mode): Delete.
5351         * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
5353         * testsuite/27_io/basic_filebuf/close/char/9964.cc
5354         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
5355         Correct flags to filebuf::open calls.
5357         * config/abi/alpha-freebsd5/baseline_symbols.txt
5358         * config/abi/alpha-linux-gnu/baseline_symbols.txt
5359         * config/abi/hppa-linux-gnu/baseline_symbols.txt
5360         * config/abi/i386-freebsd4/baseline_symbols.txt
5361         * config/abi/i386-freebsd5/baseline_symbols.txt
5362         * config/abi/i486-linux-gnu/baseline_symbols.txt
5363         * config/abi/ia64-linux-gnu/baseline_symbols.txt
5364         * config/abi/mips-linux-gnu/baseline_symbols.txt
5365         * config/abi/sparc-freebsd5/baseline_symbols.txt
5366         * config/abi/sparc-linux-gnu/baseline_symbols.txt
5367         * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
5368         Remove entry for __basic_file<char>::_M_open_mode.
5370 2004-02-04  Loren J. Rittle  <ljrittle@acm.org>
5372         * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
5374 2004-02-04  Felix Yen  <fwy@alumni.brown.edu>
5376         * testsuite/performance/20_util/producer_consumer.cc: New.
5377         * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
5379 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
5381         * testsuite/performance/20_util/allocator.cc: Move to..
5382         * testsuite/performance/20_util/allocator/insert.cc: ...here.
5383         * testsuite/performance/20_util/allocator_thread.cc: Move to...
5384         * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
5385         * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
5386         * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
5388 2004-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
5390         * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
5391         * docs/html/faq/index.txt: Regenerate.
5393 2004-02-04  Dhruv Matani  <dhruvbird@gmx.net>
5395         * include/ext/debug_allocator.h: _M_extra now stands for the
5396         number of extra objects instead of the number of extra bytes.
5397         (debug_allocator::allocate): Adjust.
5398         (debug_allocator::deallocate): Adjust.
5400         * include/ext/pool_allocator.h: Fix typo.
5402 2004-02-03  Felix Yen  <fwy@alumni.brown.edu>
5403             Benjamin Kosnik  <bkoz@redhat.com>
5405         * testsuite/performance/20_util/allocator.cc: Add map,
5406         deque, set tests.
5407         * testsuite/performance/20_util/allocator_thread.cc: Same.
5409 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
5411         * include/bits/basic_string.h (insert(iterator)): Remove,
5412         non-standard and already scheduled for removal.
5414 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
5416         * include/bits/stl_iterator_base_funcs.h: Minor formatting
5417         and indentation tweaks.
5418         * include/bits/stl_iterator_base_types.h: Likewise.
5419         * include/bits/stl_list.h: Likewise.
5420         * include/bits/stl_map.h: Likewise.
5421         * include/bits/stl_tempbuf.h: Likewise.
5423 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
5425         * include/bits/gslice.h, include/bits/gslice_array.h,
5426         include/bits/indirect_array.h, include/bits/mask_array.h,
5427         include/bits/slice_array.h, include/bits/stl_numeric.h,
5428         include/std/std_valarray.h:  Update copyright years.
5430 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
5432         * include/bits/gslice.h (gslice):  Document.
5433         * include/bits/gslice_array.h (gslice_array):  Document.
5434         * include/bits/indirect_array (indirect_array):  Document.
5435         * include/bits/mask_array (mask_array):  Document.
5436         * include/bits/slice_array.h (slice,slice_array):  Document.
5437         * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
5438         adjacent_difference):  Document
5439         * include/std/std_valarray.h (valarray):  Document.
5441 2004-02-02  Benjamin Kosnik  <bkoz@redhat.com>
5443         * docs/html/19_diagnostics/howto.html: Move verbose terminate
5444         documentation...
5445         * docs/html/18_support/howto.html: Here.
5446         * docs/html/documentation.html: Add reference here.
5448 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
5450         * config/locale/gnu/c++locale_internal.h: Remove prototypes
5451         of no longer used GLIBC thread locale functions.
5453 2004-02-02  Eric Christopher  <echristo@redhat.com>
5454             Zack Weinberg  <zack@codesourcery.com>
5456         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
5457         -finput-charset.
5458         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
5459         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
5460         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
5461         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
5462         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
5463         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
5464         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
5465         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
5466         Ditto.
5468 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
5470         * include/bits/stl_function.h: Additional minor tweaks.
5471         * include/bits/stl_multiset.h: Likewise.
5473         * include/bits/stl_queue.h: Minor tweaks.
5475 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
5477         PR libstdc++/13976 (continued)
5478         * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
5479         Make the second parameter unnamed, to void unused parameter
5480         warnings.
5481         * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
5483 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
5485         PR libstdc++/13976
5486         * include/ext/malloc_allocator.h (malloc_allocator::allocate):
5487         Make the second parameter unnamed, to void unused parameter
5488         warnings.
5489         * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
5490         * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
5492 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
5494         * include/bits/stl_algo.h: Additional minor tweaks.
5495         * include/bits/stl_map.h: Likewise.
5496         * include/bits/stl_multimap.h: Likewise.
5497         * include/bits/stl_multiset.h: Likewise.
5498         * include/bits/stl_set.h: Likewise.
5499         * include/bits/stl_tree.h: Likewise.
5501 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
5503         * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
5504         Remove, unused.
5506 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
5508         * include/bits/stl_function.h: Additional minor tweaks.
5510 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
5512         * include/bits/deque.tcc: Wrap overlong lines, constify
5513         a few variables, reformat according to the coding standards.
5514         * include/bits/list.tcc: Likewise.
5515         * include/bits/stl_deque.h: Likewise.
5516         * include/bits/stl_function.h: Likewise.
5517         * include/bits/stl_iterator.h: Likewise.
5518         * include/bits/stl_iterator_base_funcs.h: Likewise.
5519         * include/bits/stl_iterator_base_types.h: Likewise.
5520         * include/bits/stl_list.h: Likewise.
5521         * include/bits/stl_map.h: Likewise.
5522         * include/bits/stl_multimap.h: Likewise.
5523         * include/bits/stl_multiset.h: Likewise.
5524         * include/bits/stl_relops.h: Likewise.
5525         * include/bits/stl_set.h: Likewise.
5527 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
5529         * include/bits/stl_bvector.h: Wrap overlong lines, constify
5530         a few variables, reformat according to the coding standards.
5531         * include/bits/stl_tree.h: Likewise.
5533 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
5535         * include/bits/stl_algo.h: Minor additional reformat, add
5536         copyright year.
5537         * include/bits/stl_algobase.h: Add copyright year.
5539 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
5541         * include/bits/stl_algo.h: Wrap overlong lines, constify
5542         a few variables, reformat according to the coding standards.
5543         * include/bits/stl_algobase.h: Likewise.
5544         * include/bits/stl_heap.h: Likewise.
5546 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
5548         * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
5550         * include/bits/basic_string.h: Fix two comments.
5552 2004-01-31  Per Bothner  <per@bothner.com>
5554         * include/ext/mt_allocator.h
5555         (__mt_alloc::_S_thread_freelist_mutex): Guard with
5556         __GTHREAD_MUTEX_INIT.
5558 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
5560         * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
5562 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
5564         * testsuite/21_strings/basic_string/cons/char/6.cc: New.
5565         * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
5566         * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
5568 2004-01-30  Felix Yen  <fwy@alumni.brown.edu>
5570         * testsuite/performance/20_util/allocator_thread.cc (do_loop):
5571         Don't use clear, but instead assign. Use insert.
5573 2004-01-30  Benjamin Kosnik  <bkoz@redhat.com>
5575         * src/demangle.cc: Add instantiations.
5576         * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
5577         * src/Makefile.in: Regenerate.
5579 2004-01-30  David Edelsohn  <edelsohn@gnu.org>
5581         * src/allocator.cc: Protect _S_get_thread_id() and
5582         _S_thread_key_destr() with #ifdef __GTHREADS.
5584 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
5586         Reshuffle performance testsuite.
5587         * testsuite/performance/allocator.cc, allocator_map_thread.cc,
5588         allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
5589         cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
5590         fstream_seek_write.cc, ifstream_extract_float.cc,
5591         ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
5592         list_create_fill_sort.cc, map_create_fill.cc,
5593         narrow_widen_char.cc, narrow_widen_wchar_t.cc,
5594         ofstream_insert_float.cc, ofstream_insert_int.cc,
5595         string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
5596         wchar_t_out.cc: Split into...
5597         * testsuite/performance/20_util/allocator.cc: New.
5598         * testsuite/performance/20_util/allocator_map_thread.cc: New.
5599         * testsuite/performance/20_util/allocator_thread.cc: New.
5600         * testsuite/performance/21_strings/string_append: New.
5601         * testsuite/performance/22_locale/is_wchar_t.cc: New.
5602         * testsuite/performance/22_locale/narrow_widen_char.cc: New.
5603         * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
5604         * testsuite/performance/22_locale/wchar_t_in.cc: New.
5605         * testsuite/performance/22_locale/wchar_t_length.cc: New.
5606         * testsuite/performance/22_locale/wchar_t_out.cc: New.
5607         * testsuite/performance/23_containers/container_benchmark.cc: New.
5608         * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
5609         * testsuite/performance/23_containers/map_create_fill.cc: New.
5610         * testsuite/performance/26_numerics/complex_norm.cc: New.
5611         * testsuite/performance/27_io/cout_insert_int.cc: New.
5612         * testsuite/performance/27_io/filebuf_copy.cc: New.
5613         * testsuite/performance/27_io/filebuf_sputc.cc: New.
5614         * testsuite/performance/27_io/fstream_seek_write.cc: New.
5615         * testsuite/performance/27_io/ifstream_extract_float.cc: New.
5616         * testsuite/performance/27_io/ifstream_extract_int.cc: New.
5617         * testsuite/performance/27_io/ifstream_getline.cc: New.
5618         * testsuite/performance/27_io/ofstream_insert_float.cc: New.
5619         * testsuite/performance/27_io/ofstream_insert_int.cc: New.
5621 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
5623         * include/bits/basic_string.tcc (_Rep::_S_create):
5624         Never allocate a string bigger than max_size(); always keep
5625         __capacity and __size in sync to avoid memory leaks at
5626         deallocation time.
5628 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
5630         * include/bits/basic_string.tcc (_S_construct(_InIterator,
5631         _InIterator, const _Alloc&, input_iterator_tag)): Simplify
5632         the double loop, streamline.
5634         * include/bits/basic_string.tcc: Very minor tweaks.
5636 2004-01-30  Loren J. Rittle  <ljrittle@acm.org>
5638         * scripts/check_performance: Only compile with $THREAD_FLAG
5639         when test is marked to require it.  Allow multiple
5640         compilations/executions of marked tests.
5641         * testsuite/testsuite_performance.h (report_performance):
5642         Report dynamic thread support status.
5643         (report_header): Likewise.
5644         * testsuite/performance/allocator.cc: Stabilize iteration
5645         count.  Support more allocators.  Mark each allocator test to
5646         run and report independently.
5647         * testsuite/performance/allocator_map_thread.cc: Likewise.
5648         * testsuite/performance/allocator_thread.cc: Likewise.
5650 2004-01-29  Stephen M. Webb  <stephen.webb@bregmasoft.com>
5652         * config/local/generic/c_locale.h: Change ::malloc() to new char[].
5653         * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
5654         * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
5655         std::get_temporary_buffer() instead of duplicating its code.
5656         Update to C++STYLE conventions.
5657         * include/std/std_memory.h (get_temporary_buffer): Use ::operator
5658         new() instead of std::malloc().
5659         (return_temporary_buffer): Use ::operator delete() instead of
5660         std::free().
5662 2004-01-29  Benjamin Kosnik  <bkoz@redhat.com>
5664         * include/bits/allocator.h: Temporary switch to new_allocator as
5665         the default to unjam bootstraps.
5667 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
5669         * include/Makefile.am (bits_headers): Remove allocator_traits.h.
5670         * include/Makefile.in: Regenerate.
5671         * include/bits/allocator_traits.h: Remove.
5672         * include/bits/allocator.h: Remove allocator_traits.h include, and
5673         relevant comments.
5674         (allocator): Empty base class, inherit from the underlying allocator.
5675         * src/allocator-inst.cc: Move __pool_alloc instantiation to...
5676         * src/allocator.cc: ...here. New. For the underlying allocators.
5677         Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
5678         * config/linker-map.gnu: Remove __pool_alloc bits.
5679         * src/Makefile.am (sources): Add allocator.cc.
5680         * src/Makefile.in: Regenerate.
5681         * testsuite/20_util/allocator/1.cc: Split second test into...
5682         * testsuite/20_util/allocator/8230.cc: ...this.
5683         * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
5684         typedef to use std::allocatore. Format.
5685         * include/ext/pool_allocator.h: Remove allocator_traits.h include,
5686         _Alloc_traits.
5687         * include/ext/mt_allocator.h (__gnu_cxx): Qualify
5688         __throw_bad_alloc calls. Don't include <memory>.
5689         * include/ext/malloc_allocator.h: Remove <memory> include.
5690         * include/ext/new_allocator.h (new_allocator): Same.
5691         * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
5692         declaration. Switch __alloc to _Alloc.
5693         * include/ext/hashtable.h: Remove __alloc.
5694         * include/backward/alloc.h: Only inject allocator, not
5695         implementation details.
5697         * include/ext/mt_allocator.h: Replace free with delete.
5699 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
5701         * src/globals_io.cc: Change to __gnu_internal namespace.
5702         * src/globals_locale.cc: Same.
5703         * src/locale_init.cc: Same.
5704         * src/ios_init.cc: Same.
5706 2004-01-28  Stefan Olsson  <stefan@snon.net>
5708         * include/ext/mt_allocator.h: Replaced all malloc() calls with
5709         operator new(). Added support for the env variable
5710         GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
5711         one in allocate() as well). Fix typos.
5713 2004-01-28  Paolo Carlini  <pcarlini@suse.de>
5715         * include/bits/basic_string.h (_S_create(size_t,
5716         const _Alloc&): Change signature to take two size_type
5717         arguments.
5718         * include/bits/basic_string.tcc (_S_construct(_InIterator,
5719         _InIterator, const _Alloc&, input_iterator_tag)): Update
5720         call, tweak a bit.
5721         (_S_construct(_InIterator, _InIterator, const _Alloc&,
5722         forward_iterator_tag)): Likewise.
5723         (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
5724         (_M_mutate(size_type, size_type, size_type)): Don't
5725         implement the exponential growth policy, demand it to
5726         _S_create, update call and simplify.
5727         (_M_clone(const _Alloc&, size_type)): Likewise.
5728         (_S_create(size_type, size_type, const _Alloc&)): Implement
5729         the growth policy, simplify otherwise.
5731         * include/bits/basic_string.h (_Rep::operator[]): Tweak
5732         signature to take a size_type, consistently with the other
5733         members.
5735 2004-01-27  Benjamin Kosnik  <bkoz@redhat.com>
5737         * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
5738         delete declarations, add include and test variable.
5740 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
5742         * include/bits/codecvt.h, include/bits/locale_facets.h,
5743         include/bits/postypes.h, include/bits/stl_bvector.h,
5744         include/bits/stl_multiset.h, include/bits/stl_set.h,
5745         include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
5746         include/std/std_complex.h:  Document.
5748 2004-01-27  Jerry Quinn  <jlquinn@optonline.net>
5750         PR libstdc++/11584
5751         * include/bits/ios_base.h (ios_base::_M_grow_words):  Add
5752         iword/pword selector.
5753         (ios_base::iword, ios_base::pword):  Use it.
5754         * src/ios.cc (ios_base::_M_grow_words):  Clear _M_word_zero
5755         iword or pword member on alloc failure.
5756         * testsuite/27_io/ios_base/storage/11584.cc:  New test.
5758 2004-01-27  Ulrich Weigand  <uweigand@de.ibm.com>
5759             PJ Darcy  <darcypj@us.ibm.com>
5761         * configure.host: Add support for *-tpf.
5762         * crossconfig.m4: Likewise.
5763         * configure: Regenerate.
5764         * config/os/tpf: New directory.
5765         * config/os/tpf/os_defines.h: New file.
5766         * config/os/tpf/ctype_base.h: Likewise.
5767         * config/os/tpf/ctype_inline.h: Likewise.
5768         * config/os/tpf/ctype_noninline.h: Likewise.
5770 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
5772         PR libstdc++/13884
5773         * include/bits/sstream.tcc: Guard use of extern template.
5775 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
5777         * include/bits/basic_string.tcc
5778         (basic_string(const basic_string&, size_type, size_type),
5779         basic_string(const basic_string&, size_type, size_type,
5780         const _Alloc&)): Avoid unnecessarily constructing iterators.
5782 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
5784         * config/locale/generic/c_locale.cc: Fix throw messages
5785         to use the __N marker.
5786         * config/locale/gnu/c_locale.cc: Likewise.
5787         * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
5788         Likewise.
5789         * docs/html/17_intro/C++STYLE: Likewise.
5790         * include/bits/basic_ios.tcc: Likewise.
5791         * include/bits/fstream.tcc: Likewise.
5792         * include/bits/vector.tcc: Likewise.
5793         * include/ext/ropeimpl.h: Likewise.
5794         * include/std/std_bitset.h: Likewise.
5795         * src/ios.cc: Likewise.
5796         * src/locale.cc: Likewise.
5797         * src/localename.cc: Likewise.
5799 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
5801         * include/bits/basic_string.h (_M_replace_aux): Use the
5802         __N marker in throw message.
5803         * include/bits/basic_string.tcc (assign(const _CharT*,
5804         size_type), insert(size_type, const _CharT*, size_type),
5805         replace(size_type, size_type, const _CharT*, size_type),
5806         reserve, _Rep::_S_create, resize, _M_replace_dispatch):
5807         Likewise.
5809         * include/bits/basic_string.h, include/bits/basic_string.tcc:
5810         Fold overlong lines, minor formatting changes.
5812 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
5814         * include/bits/basic_string.h (replace(iterator, iterator,
5815         const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
5816         (replace(iterator, iterator, const _CharT*)): Ditto.
5817         (replace(iterator, iterator, const _CharT*, size_type)):
5818         Add missing _GLIBCXX_DEBUG_PEDASSERT.
5820 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
5822         * include/bits/basic_string.tcc (replace(size_type,
5823         size_type, const _CharT*, size_type)): Implement optimized
5824         in-place algorithm for non-overlapping ranges.
5825         * testsuite/21_strings/basic_string/replace/char/6.cc: New.
5826         * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
5828         * include/bits/basic_string.tcc (insert(size_type,
5829         const _CharT*, size_type)): Tweak slightly.
5831 2004-01-26  Andreas Schwab  <schwab@suse.de>
5833         * config/locale/gnu/monetary_members.cc: Restore locale before
5834         rethrowing exception.
5836 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
5838         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
5839         Define inline here.
5840         * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
5841         Move inline.
5843         * include/bits/basic_string.tcc: Very minor tweaks.
5845 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
5847         * testsuite/performance/string_append.cc: Increase number
5848         of iterations.
5850 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
5852         * include/bits/basic_string.h (erase(size_type, size_type),
5853         erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
5854         instead, thus avoiding redundant check for length_error.
5856         * include/bits/basic_string.h: Tweak some comments.
5858 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
5860         * include/bits/basic_string.tcc (operator+(const _CharT*,
5861         const basic_string&)): No need to go through the append
5862         taking two iterators.
5864 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
5866         * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
5867         Revert last change to use std::min: machine language is worse.
5868         (find_last_of(const _CharT*, size_type, size_type)): Ditto.
5869         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5870         (find_last_not_of(_CharT, size_type)): Ditto.
5872         * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
5873         size_type)): Discard the value returned by _M_check.
5874         (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
5875         (append(const basic_string&, size_type, size_type)): Ditto.
5876         (copy(_CharT*, size_type, size_type)): Ditto.
5877         (compare(size_type, size_type, const basic_string&)): Ditto.
5878         (compare(size_type, size_type, const basic_string&,
5879         size_type, size_type)): Ditto.
5880         (compare(size_type, size_type, const _CharT*)): Ditto.
5881         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5883 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
5885         * include/bits/basic_string.h (insert(size_type,
5886         const basic_string&, size_type, size_type)): Define inline here.
5887         * include/bits/basic_string.tcc (insert(size_type,
5888         const basic_string&, size_type, size_type)): Move inline.
5890 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
5892         * include/bits/basic_string.h (assign(const basic_string&,
5893         size_type, size_type)): Define inline here.
5894         (replace(size_type, size_type, const basic_string&,
5895         size_type, size_type)): Ditto.
5896         (_M_replace_dispatch(iterator, iterator, _InputIterator,
5897         _InputIterator, __false_type)): Only declare.
5898         (_M_replace(iterator, iterator, _InputIterator,
5899         _InputIterator)): Remove.
5900         * include/bits/basic_string.tcc (assign(const basic_string&,
5901         size_type, size_type)): Move inline.
5902         (replace(size_type, size_type, const basic_string&,
5903         size_type, size_type)): Ditto.
5904         (_M_replace_dispatch(iterator, iterator, _InputIterator,
5905         _InputIterator, __false_type)): Define, now does also what
5906         _M_replace did before.
5907         * src/string-inst.cc (_M_replace): Don't instantiate.
5909         * include/bits/basic_string.tcc (find(const _CharT*,
5910         size_type, size_type)): Tidy.
5911         (rfind(_CharT, size_type)): Ditto.
5912         (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
5913         (find_first_not_of(_CharT, size_type)): Ditto.
5914         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5915         (find_last_not_of(_CharT, size_type)): Ditto.
5917 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
5919         PR libstdc++/13838
5920         * include/debug/bitset (operator|=): Fix typo.
5921         * testsuite/23_containers/bitset/operations/13838.cc: New.
5923 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
5925         * include/bits/basic_string.tcc (insert(size_type,
5926         const _CharT*, size_type __n)): Fix length_error check.
5927         (replace(size_type, size_type, const _CharT*, size_type):
5928         Ditto; call _M_replace_safe.
5929         (_M_replace_aux(size_type, size_type, size_type, _CharT):
5930         Fix length_error check.
5931         (_M_replace(iterator, iterator, _InputIterator,
5932         _InputIterator)): Ditto, tweak.
5933         (_M_replace_safe(size_type, size_type, const _CharT*,
5934         size_type)): Remove length_error check.
5936         * include/bits/basic_string.tcc (append(const basic_string&),
5937         append(const basic_string&, size_type, size_type)): Tweak
5938         comment.
5940         * include/bits/basic_string.tcc (copy(_CharT*, size_type,
5941         size_type)): If __n == 0 don't call traits::copy.
5943 2004-01-23  Stefan Olsson  <stefan@snon.net>
5945         * include/ext/mt_allocator.h: Reduce lock contention.
5947 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
5949         PR libstdc++/13831
5950         * include/bits/fstream.tcc (underflow): Remove unused
5951         variable.
5952         * include/bits/streambuf_iterator.h (equal): Ditto.
5953         * include/bits/locale_facets.h (_M_convert_from_char):
5954         Ditto.
5956 2004-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5958         PR c/13814
5959         * config/linker-map.gnu (nan): Delete.
5960         * libmath/mathconf.h (NAN, nan): Delete.
5961         * linkage.m4 (nan): Don't check for it.
5962         * libmath/nan.c: Delete file.
5964         * config.h.in, configure: Regenerate.
5966 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
5968         * include/bits/basic_string.h (push_back(_CharT)):
5969         Call _M_replace_aux.
5970         (insert(size_type, const basic_string&)): Trivial tweak.
5971         (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
5972         (insert(iterator, _CharT)): Ditto.
5973         (erase(size_type, size_type)): Ditto.
5974         (erase(iterator)): Ditto.
5975         (erase(iterator, iterator)): Ditto.
5976         (replace(size_type, size_type, size_type, _CharT)): Ditto.
5978 2004-01-23  Loren J. Rittle  <ljrittle@acm.org>
5980         libstdc++/13823
5981         * testsuite/performance/allocator_map_thread.cc: New test.
5983 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
5985         * include/bits/locale_facets.tcc
5986         (money_put::do_put(..., long double)): Use the basic_string
5987         constructor for char arrays, not that for C-strings, to pass
5988         __digits to do_put(..., const string_type&): __ws isn't
5989         null-terminated.
5991 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
5993         * include/bits/basic_string.h (_M_replace_safe): Change
5994         signatures to take size_types and const _CharT*.
5995         (_M_replace_aux): Likewise, takes size_types instead of
5996         iterators.
5997         (append(size_type, _CharT)): Update call.
5998         (assign(size_type, _CharT)): Ditto.
5999         (replace(iterator, iterator, size_type, _CharT)): Ditto.
6000         (_M_replace_dispatch(iterator, iterator, _Integer,
6001         _Integer, __true_type)): Ditto.
6002         * include/bits/basic_string.tcc (assign(const _CharT*,
6003         size_type)): Ditto.
6004         (insert(size_type, const _CharT*, size_type)): Ditto.
6005         (replace(size_type, size_type, const _CharT*,
6006         size_type)): Ditto.
6007         (_M_replace(iterator, iterator, _InputIterator,
6008         _InputIterator)): Ditto.
6009         (append(const basic_string&)): Ditto.
6010         (append(const basic_string&, size_type, size_type): Ditto.
6011         (append(const _CharT*, size_type): Ditto.
6012         (_M_replace_safe, _M_replace_safe): Change definitions
6013         accordingly, simplify.
6014         * string-inst.cc (_M_replace_safe): Don't instantiate.
6016 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
6018         * include/bits/basic_string.tcc (append(const basic_string&)):
6019         Revert previous change.
6020         (append(const basic_string&, size_type, size_type)): Revert
6021         previous change, use _M_check and _M_limit.
6023 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
6025         * include/bits/basic_string.h (_M_check): Change to return
6026         a checked __pos and take an additional const char* argument.
6027         (_M_fold): Rename to _M_limit, change to return a size_type,
6028         corresponding to the __off limited to the actual length.
6029         (insert(size_type, size_type, _CharT)): Update call, call
6030         replace.
6031         (insert(iterator, _CharT)): Call replace(iterator, iterator,
6032         size_type, _CharT) instead.
6033         (erase(size_type, size_type)): Update calls.
6034         (replace(size_type, size_type, size_type, _CharT)): Ditto.
6035         (substr(size_type, size_type)): Use _M_check.
6036         * include/bits/basic_string.tcc (basic_string(const basic_string&,
6037         size_type, size_type)): Update calls.
6038         (basic_string(const basic_string&, size_type, size_type,
6039         const _Alloc&)): Ditto.
6040         (assign(const basic_string&, size_type, size_type)): Use the
6041         new _M_check and _M_limit.
6042         (insert(size_type, const basic_string&, size_type, size_type):
6043         Ditto.
6044         (insert(size_type, const _CharT*, size_type)): Ditto.
6045         (replace(size_type, size_type, const _CharT*, size_type): Ditto.
6046         (replace(size_type, size_type, const basic_string&,
6047         size_type, size_type)): Ditto.
6048         (append(const basic_string&)): Ditto.
6049         (append(const basic_string&, size_type, size_type)): Ditto.
6050         (copy(_CharT*, size_type, size_type)): Ditto.
6051         (compare(size_type, size_type, const basic_string&)): Ditto.
6052         (compare(size_type, size_type, const basic_string&,size_type,
6053         size_type)): Ditto.
6054         (compare(size_type, size_type, const _CharT*)): Ditto.
6055         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
6057 2004-01-19  Stefan Olsson  <stefan@snon.net>
6059         * include/ext/mt_allocator.h: If a thread, when it dies, still has
6060         memory on it's freelist this memory is not returned to global
6061         list. Simplification of deallocate so that memory is always
6062         returned to the calling thread id's freelist instead of to
6063         global. Fix typos. Add volatile where appropriate.
6065 2004-01-19  Loren J. Rittle  <ljrittle@acm.org>
6067         * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
6068         * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test.  Like -2 but
6069         use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
6071 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
6073         * src/debug.cc: Make sure all the names are prefixed with
6074         double (or single) underscore.
6076 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
6078         * src/debug.cc: Trivial formatting change.
6080 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
6082         * include/bits/basic_string.tcc (_S_construct(size_type,
6083         _CharT, const _Alloc&)): Remove redundant try/catch.
6084         (_M_mutate(size_type, size_type, size_type)): Ditto.
6085         (_M_clone(const _Alloc&, size_type)): Ditto.
6087 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
6089         * include/bits/basic_string.h (c_str()): Simplify, due to
6090         21.3.4 the internal representation is always kept null-terminated.
6091         * include/bits/basic_string.tcc (_M_clone): Null-terminate.
6092         * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
6093         * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
6094         Ditto.
6096 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
6098         * include/bits/basic_string.h (append(size_type, _CharT)):
6099         Moved inline, just call _M_replace_aux, no source iterators at
6100         risk of being clobbered.
6101         (assign(size_type, _CharT)): Call directly _M_replace_aux.
6102         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
6103         input_iterator_tag)): Remove fifth unused argument.
6104         (_M_replace_dispatch(iterator, iterator, _InputIterator,
6105         _InputIterator, __false_type)): Update call.
6106         * include/bits/basic_string.tcc (replace(size_type, size_type,
6107         const _CharT*, size_type)): Update call.
6108         (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
6109         throw string literal.
6110         (_M_replace_safe(iterator, iterator, _ForwardIterator,
6111         _ForwardIterator)): Likewise.
6112         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
6113         input_iterator_tag)): Remove fifth unused argument.
6114         (append(size_type __n, _CharT __c)): Move inline.
6115         * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
6116         const C*, const C*, input_iterator_tag)): Remove fifth unused
6117         argument.
6119 2004-01-16  Benjamin Kosnik  <bkoz@redhat.com>
6121         * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
6122         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
6124 2004-01-16  Danny Smith  <dannysmith@users.sourceforge.net>
6126         * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
6127         mkfifo for mingw32.
6129 2004-01-15  Stefan Olsson  <stefan@snon.net>
6131         * include/ext/mt_allocator.h: Reuse thread id's as soon as
6132         possible by changing the behaviour of thread_freelist to do
6133         push_front when threads die instead of push_back.
6135 2004-01-14  Paolo Carlini  <pcarlini@suse.de>
6137         * include/bits/locale_facets.h (struct __numpunct_cache):
6138         Add member _M_grouping_size, caching the length of _M_grouping.
6139         (__numpunct_cache<>::_M_cache): Assign the latter.
6140         (__verify_grouping): Move declaration...
6141         * include/bits/locale_facets.tcc (__verify_grouping):
6142         ... here, change signature to take a const char* and a size_t
6143         for the grouping; not a template anymore.
6144         (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
6145         Likewise change signature and tweak consistently.
6146         (num_get::_M_extract_float, num_get::_M_extract_int,
6147         num_put::_M_insert_int, num_put::_M_insert_float,
6148         money_get::do_get(string_type&), money_get::do_put(string_type)):
6149         Update callers.
6150         * config/locale/generic/numeric_members.cc
6151         (numpunct<>::_M_initialize_numpunct): Assign the new member.
6152         * config/locale/gnu/numeric_members.cc
6153         (numpunct<>::_M_initialize_numpunct): Likewise.
6154         * src/locale-inst.cc (__add_grouping): Tweak signature.
6155         (__verify_grouping): Don't instantiate, not a template anymore.
6157         * include/bits/locale_facets.h: Rename _M_truename_len ->
6158         _M_truename_size, _M_falsename_len -> _M_falsename_size.
6159         * include/bits/locale_facets.tcc: Likewise.
6160         * config/locale/generic/numeric_members.cc: Likewise.
6161         * config/locale/gnu/numeric_members.cc: Likewise.
6163 2004-01-14  Stefan Olsson  <stefan@snon.net>
6165         * include/ext/mt_allocator.h: Fixups.
6166         * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
6167         * testsuite/performance/allocator_thread.cc: Same.
6169 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
6171         * testsuite/performance/ifstream_extract_float.cc: Add higher
6172         precision tests.
6173         * testsuite/performance/ofstream_insert_float.cc: Same.
6175 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
6177         * src/locale-misc-inst.cc (__convert_from_v(long),
6178         __convert_from_v(unsigned long), __convert_from_v(long long),
6179         __convert_from_v(unsigned long long)): Remove, unused.
6181 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
6183         * testsuite/performance/ifstream_extract_float.cc: New.
6184         * testsuite/performance/ofstream_insert_float.cc: Float generation
6185         matches above.
6187         * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
6188         * 20_util/auto_ptr/1.cc: ...this.
6189         * 20_util/auto_ptr/2.cc: Same.
6190         * 20_util/auto_ptr/3.cc: Same.
6191         * 20_util/auto_ptr/3946.cc: Same.
6192         * 20_util/auto_ptr/4.cc: Same.
6193         * 20_util/auto_ptr/5.cc: Same.
6194         * 20_util/auto_ptr/6.cc: Same.
6195         * 20_util/auto_ptr/7.cc: Same.
6196         * 20_util/auto_ptr/assign_neg.cc
6197         * 20_util/pairs.cc: Break into...
6198         * 20_util/pair/1.cc: ...this.
6199         * 20_util/pair/2.cc: Same.
6200         * 20_util/pair/3.cc: Same.
6201         * 20_util/pair/4.cc: Same.
6203 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
6205         * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
6206         Set correctly just basefield, the only group that matters.
6208 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
6210         * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
6211         (_Rope_rep_base): Inherit directly from the rope allocator;
6212         use rebinding instead of _Alloc_traits; pick up data member
6213         from _Rope_rep_alloc_base.
6214         (_Rope_alloc_base): Eliminate.
6215         (_Rope_base): Inherit directly from the rope allocator; use
6216         rebinding instead of _Alloc_traits; pick up data member from
6217         _Rope_alloc_base.
6218         (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
6219         rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
6221 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
6223         PR libstdc++/13650
6224         * include/bits/basic_string.tcc (compare(size_type, size_type,
6225         const _CharT*, size_type)): Implement correctly the resolution
6226         of DR 5: basically, s is a char array, -not- a C string.
6227         * include/bits/basic_string.h: Tweak some comments.
6228         * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
6229         * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
6231 2004-01-12  Andreas Tobler  <a.tobler@schweiz.ch>
6233         * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
6234         Solaris.
6236 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
6238         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
6239         Use try_mkfifo.
6240         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
6241         Likewise.
6243 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
6245         * include/bits/locale_facets.h (struct __numpunct_cache):
6246         Add members _M_truename_len and _M_falsename_len, caching
6247         the lengths of _M_truename and _M_falsename.
6248         (__numpunct_cache<>::_M_cache): Assign the latter.
6249         * include/bits/locale_facets.tcc (num_get::do_get(bool&),
6250         num_put::do_put(bool)): Use the new members, thus avoiding
6251         computing string lengths again and again.
6252         * config/locale/generic/numeric_members.cc
6253         (numpunct<>::_M_initialize_numpunct): Assign the new members.
6254         * config/locale/gnu/numeric_members.cc
6255         (numpunct<>::_M_initialize_numpunct): Likewise.
6257 2004-01-12  Mark Mitchell  <mark@codesourcery.com>
6259         * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
6260         * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
6261         it.
6262         * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
6263         and remove Cygwin XFAIL.
6264         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
6265         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
6266         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
6267         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
6268         Likewise.
6269         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
6270         * testsuite/27_io/objects/char/7.cc: Likewise.
6271         * testsuite/27_io/objects/char/9661-1.cc: Likewise.
6272         * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
6273         * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
6275 2004-01-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6277         * include/std/std_complex.h (std::complex<>::real): Return a
6278         reference. Add non-const overload.
6279         (std::complex<>::real): Likewise.
6280         (std::real): Likewise.
6281         (std::imag): Likewise.
6282         (std::operator+): Tidy.
6283         (std::operator-): Likewise.
6284         (std::operator*): Likewise.
6285         (std::operator/): Likewise.
6286         (std::operator>>): Likewise.
6288 2004-01-11  Paolo Carlini  <pcarlini@suse.de>
6290         PR libstdc++/13582
6291         * include/bits/fstream.tcc (imbue): Exploit the external
6292         buffer to imbue 'on the fly' a new locale and convert its
6293         remainder with the new codecvt facet.
6294         (underflow): Tweak slightly to deal with this special case.
6295         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
6296         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
6297         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
6298         * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
6299         * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
6301 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
6303         * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
6304         Import Revision 28.
6306 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
6308         PR libstdc++/13630
6309         * include/bits/locale_classes.h (class locale): Fix category
6310         typedef.
6311         * testsuite/22_locale/locale/13630.cc: Add.
6313 2004-01-10  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
6315         * include/bits/locale_facets.h: Make a name really dependent. This
6316         will be needed when Core Issue 224 is implemented.
6318 2004-01-09  Paolo Carlini  <pcarlini@suse.de>
6320         * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
6321         * testsuite/performance/allocator_thread.cc: Likewise.
6323 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
6325         * crossconfig.m4: Add LFS, io bits to linux cross config.
6326         * acconfig.h: Remove obsolete bits, reorder.
6327         * config.h.in: Regenerate.
6328         * aclocal.m4: Same.
6329         * configure: Same.
6331 2004-01-07  Gawain Bolton  <gp.bolton@computer.org>
6333         * include/bits/stl_list.h:
6334         * include/bits/list.tc:
6335         * src/list.cc:
6336         Performance enhancements for destructor, push_front(),
6337         push_back(), pop_front(), pop_back(), sort()
6338         Eliminated static_casts where possible.
6339         Moved code out of header files into new src/list.cc
6340         implementation file for library where possible.
6341         Remove inheritance from iterator class and create separate
6342         classes for non-constant and constant iterators.
6343         * include/bits/stl_tree.h (_Rb_tree class):
6344         * src/tree.cc:
6345         Only erase contents in destructor.
6346         Eliminate unnecessary initialization in assignment operator.
6347         Optimize for the nominal case by not checking whether
6348         container is empty in clear().
6349         Re-order test in _M_insert() to improve performance.
6350         Move initialization of new node's left & right pointers to
6351         src/tree.cc to where new node's colour is initialized
6352         and to reduce the amount of inline code.
6353         Use  _M_leftmost() and _M_end() to improve readability where
6354         appropriate.
6355         Create separate classes for non-constant and constant
6356         iterators to clarify code, avoid extra template parameters and
6357         casting away constness.
6359 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
6361         * src/Makefile.am (sources): Add list.cc, tree.cc.
6362         * src/stl_tree.cc: Move to...
6363         * src/tree.cc: ...here.
6364         * src/list.cc: Add.
6365         * config/linker-map.gnu: Tweaks.
6366         * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
6367         * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
6369         * bits/stl_vector.h: Column wrap comments.
6371 2004-01-07  Loren J. Rittle  <ljrittle@acm.org>
6373         (re-open) PR libstdc++/12658
6374         * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
6375         (locale::global): Likewise.
6377 2004-01-07  Paolo Carlini  <pcarlini@suse.de>
6379         * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
6380         Remove redundant #include.
6381         * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
6382         * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
6383         re-enable normal testing.
6384         * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
6385         #include.
6386         * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
6387         * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
6388         Likewise.
6389         * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
6390         Likewise.
6391         * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
6392         Likewise.
6393         * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
6394         Likewise.
6395         * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
6396         Likewise.
6397         * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
6398         Likewise.
6399         * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
6400         Likewise.
6401         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
6402         More properly, #include <locale>.
6403         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
6404         Remove redundant #include.
6405         * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
6406         * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
6407         redundant DejaGnu directive.
6408         * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
6409         redundant #include.
6411 2004-01-06  Benjamin Kosnik  <bkoz@redhat.com>
6412             Stefan Olsson  <stefan@snon.net>
6414         * scripts/check_performance: Use -pthread.
6415         * testsuite/performance/allocator.cc: Tweaks, add list.
6416         * testsuite/performance/allocator_thread.cc: New.
6418 2004-01-06  Jerry Quinn  <jlquinn@optonline.net>
6420         * include/bits/locale_facets.h: Document public classes and
6421         functions.
6422         * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
6423         Add comment.
6425 2004-01-06  Paolo Carlini  <pcarlini@suse.de>
6427         * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
6428         Remove redundant #includes.
6429         * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
6430         Likewise.
6431         * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
6432         Likewise.
6433         * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
6434         * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
6435         * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
6436         * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
6437         * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
6438         * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
6439         * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
6440         * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
6441         * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
6442         * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
6443         * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
6444         * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
6445         * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
6446         * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
6447         * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
6448         Likewise.
6449         * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
6450         Likewise.
6451         * testsuite/27_io/basic_istream/readsome/char/8258.cc:
6452         Likewise.
6453         * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
6454         Likewise.
6455         * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
6456         Likewise.
6457         * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
6458         * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
6459         * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
6461 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
6463         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
6464         Remove redundant #includes.
6465         * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
6466         Likewise.
6467         * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
6468         Likewise.
6469         * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
6470         Likewise.
6471         * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
6472         Likewise.
6473         * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
6474         Likewise.
6475         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
6476         Likewise.
6477         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
6478         Likewise.
6479         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
6480         Likewise.
6481         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
6482         Likewise.
6483         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
6484         Likewise.
6485         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
6486         Likewise.
6487         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
6488         Likewise.
6490 2004-01-04  Mark Mitchell  <mark@codesourcery.com>
6492         PR c++/12226
6493         * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
6494         constructor.
6495         * testsuite/27_io/basic_fstream/4.cc: Likewise.
6496         * testsuite/27_io/basic_ifstream/4.cc: Likewise.
6497         * testsuite/27_io/basic_ios/4.cc: Likewise.
6498         * testsuite/27_io/basic_iostream/4.cc: Likewise.
6499         * testsuite/27_io/basic_istream/4.cc: Likewise.
6500         * testsuite/27_io/basic_istingstream/4.cc: Likewise.
6501         * testsuite/27_io/basic_ofstream/4.cc: Likewise.
6502         * testsuite/27_io/basic_ostream/4.cc: Likewise.
6503         * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
6504         * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
6505         * testsuite/27_io/basic_stringstream/4.cc: Likewise.
6507 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
6509         * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
6510         Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
6511         always use double underscored names.
6512         * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
6513         Likewise.
6514         * include/bits/locale_facets.h (struct __numpunct_cache):
6515         Dimension _M_atoms_out and _M_atoms_in one position smaller.
6516         (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out
6517         and _M_atoms_in.