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