OSDN Git Service

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