OSDN Git Service

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