OSDN Git Service

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