OSDN Git Service

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