OSDN Git Service

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