OSDN Git Service

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