OSDN Git Service

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