Add PR.
[official-gcc.git] / libstdc++-v3 / ChangeLog
blob6452377a92235e31b77cc5efad5ba8dcaf0a3d91
1 2004-09-21  Paolo Carlini  <pcarlini@suse.de>
3         PR libstdc++/12882 (cont)
4         * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
5         * configure: Regenerate.
6         * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
7         _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
8         trivial showmanyc for large files too.
10 2004-09-17  Jonathan Wakely  <redi@gcc.gnu.org>
12         * include/bits/stl_algo.h (remove): Remove too restrictive
13         concept-check.
15 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
17         * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
18         as per Nathan's original suggestion.
20 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
22         * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
23         up a bit.
24         * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
25         * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
26         * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
28 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
29             Andrea Arcangeli  <andrea@suse.de>
31         * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
32         call unnecessarily sync, that is fflush: the library, since 3.4.0
33         does not use buffered fread/fwrite.
34         * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
36 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
38         * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
39         Define.
40         * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
41         Define.
42         * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
43         (__cxa_vec_new): Use it.
44         (__cxa_vec_new2): Likewise.
45         (__cxa_vec_new3): Likewise.
46         (__cxa_vec_cdtor): Likewise.
47         (__cxa_vec_cctor): Likeiwse.
48         (__cxa_vec_dtor): Likewise.
49         (__cxa_vec_cleanup): Likewise.
50         (__cxa_vec_delete2): Likewise.
51         (__cxa_vec_delete3): Likewise.
52         * libsupc++/vec.cc (__cxa_vec_new): Likewise.
53         (__cxa_vec_new2): Likewise.
54         (__cxa_vec_new3): Likewise.
55         (__cxa_vec_cdtor): Likewise.
56         (__cxa_vec_cctor): Likeiwse.
57         (__cxa_vec_dtor): Likewise.
58         (__cxa_vec_cleanup): Likewise.
59         (__cxa_vec_delete2): Likewise.
60         (__cxa_vec_delete3): Likewise.
61         (__aeabi_vec_ctor_nocookie_nodtor): New function.
62         (__aeabi_vec_ctor_cookie_nodtor): Likewise.
63         (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
64         (__aeabi_vec_new_cookie_noctor): Likewise.
65         (__aeabi_vec_new_nocookie): Likewise.
66         (__aeabi_vec_new_cookie_nodtor): Likewise.
67         (__aeabi_vec_new_cookie): Likewise.
68         (__aeabi_vec_dtor): Likewise.
69         (__aeabi_vec_dtor_cookie): Likewise.
70         (__aeabi_vec_delete): Likewise.
71         (__aeabi_vec_delete3): Likewise.
72         (__aeabi_vec_delete3_nodtor): Likewise.
73         (__aeabi_atexit): Likewise.
75 2004-09-14  Nathan Myers  <ncm@cantrip.org>
77         * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
78         for 11722: copy can replace move; the common case is __avail == 0.
80 2004-09-14  Paolo Carlini  <pcarlini@suse.de>
82         * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
83         to __is_scalar, more clear and consistent with "tr1" naming.
84         * include/bits/stl_algobase.h: Update consistently throughout.
86 2004-09-13  Paolo Carlini  <pcarlini@suse.de>
88         PR libstdc++/11722
89         * include/std/std_fstream.h (xsgetn): Declare only.
90         * include/bits/fstream.tcc (xsgetn): Define, optimize for the
91         always_noconv() case: when __n > __buflen, copy the available
92         buffer and issue a direct read.
93         * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
95         * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
96         conditional.
98 2004-09-13  Hans-Peter Nilsson  <hp@bitrange.com>
100         * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
101         libstdc++_maybe_build_wrapper instead of using local code.
103 2004-09-08  Benjamin Kosnik  <bkoz@redhat.com>
105         * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
107 2004-09-03  Jan Beulich  <jbeulich@novell.com>
109         * crossconfig.m4: Add NetWare as a target.
110         * configure: Regenerate.
112 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
114         * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
115         defined. 
117 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
118             Simon Richter  <Simon.Richter@hogyros.de>
119         
120         PR libstdc++/16715
121         * include/bits/istream.tcc: Add extern template for iostream
122         char and wchar_t instantiations.
124 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
125             Leland Wang  <llwang@infor.org>
126         
127         PR libstdc++/17259
128         * include/ext/ropeimpl.h (rope::_S_compare): Use
129         _Rope_constants::_S_leaf.
131 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
133         PR libstdc++/16848
134         * include/Makefile.am (ext_headers): Remove demangle.h.
135         * include/Makefile.in: Regenerate.
136         * include/ext/demangle.h: Remove.
138 2004-09-01  Benjamin Kosnik  <bkoz@redhat.com>
140         PR libstdc++/16614
141         * include/ext/mt_allocator.h (__mt_base): Not type dependent,
142         split into..
143         (__pool): New, specialize.
144         (__common_pool): New, static bits here.
145         (__per_type_pool): New, and here.
146         (__mt_alloc_base): New.
147         (__mt_alloc): Add template parameter, inherit from it.
148         * src/allocator.cc: Split this...
149         * src/allocator-inst.cc: And this...
150         * src/pool_allocator.cc: ...into this.
151         * src/mt_allocator.cc: ... and this. Add definitions for
152         __mt_base.
153         * src/Makefile.am (sources): Split allocator.cc to
154         pool_allocator.cc and mt_allocator.cc.
155         * src/Makefile.in: Regenerate.
156         * config/linker-map.gnu: Add symbols.
157         * docs/html/ext/mt_allocator.html: Document new design.
158         * testsuite/ext/mt_allocator/tune-1.cc: New.
159         * testsuite/ext/mt_allocator/tune-2.cc: New.
160         * testsuite/ext/mt_allocator/tune-3.cc: New.
161         * testsuite/ext/mt_allocator/tune-4.cc: New.    
163         * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
164         * testsuite/ext/allocators.cc: Use check_new, split into...
165         * testsuite/ext/mt_allocator/check_new.cc: this.
166         * testsuite/ext/pool_allocator/check_new.cc: this.
167         * testsuite/ext/malloc_allocator/check_new.cc: this.    
168         * testsuite/ext/debug_allocator/check_new.cc: this.     
169         * testsuite/ext/mt_allocator/instantiate.cc: this.
170         * testsuite/ext/pool_allocator/instantiate.cc: this.
171         * testsuite/ext/malloc_allocator/instantiate.cc: this.  
172         * testsuite/ext/debug_allocator/instantiate.cc: this.
173         
174 2004-08-30  Phil Edwards  <phil@codesourcery.com>
176         * docs/html/install.html:  Update locales list (from Paolo).
177         Remove other redundant information and point to the GCC install
178         documentation.
180 2004-08-30  Benjamin Kosnik  <bkoz@redhat.com>
182         * include/ext/pool_allocator.h: Rename __pool_base to
183         __pool_alloc_base.
184         * src/allocator.cc: Same.
185         * config/linker-map.gnu: Same.
187 2004-08-30  Paolo Carlini  <pcarlini@suse.de>
188             Kenneth C. Schalk  <ken@xorian.net>
190         PR libstdc++/17215
191         * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
192         Check the return value of fclose/sync, loop on EINTR.
193         (__basic_file<char>::sys_open): Likewise, for sync.
195 2004-08-29  Paolo Carlini  <pcarlini@suse.de>
197         * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
198         case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
199         and 7.23.3.5), two if !_GLIBCXX_USE_C99.
200         * testsuite/22_locale/time_get/get_time/char/4.cc: New.
201         * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
203 2004-08-27  Jason Merrill  <jason@redhat.com>
205         PR c++/13684
206         * libsupc++/guard.cc (static_mutex): Internal class implementing a
207         recursive mutex which controls initialization of local statics.
208         (__gnu_cxx::recursive_init): New exception class.
209         (__cxa_guard_acquire): Deal with locking and recursion detection.
210         (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
212 2004-08-27  Matthias Klose  <doko@debian.org>
214         * configure.host: For mips*-*-linux* update cpu_include_dir
215         after atomicity_dir is set.
217 2004-08-27  Matthias Klose  <doko@debian.org>
219         * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
220         * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
221         * configure.host: Set abi_baseline_pair for arm*-*-linux* and
222         mips*-*-linux*.
224 2004-08-27  Paolo Carlini  <pcarlini@suse.de>
226         * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
227         * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
228         * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
229         * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
230         * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
231         
232         * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
233         formatting fixes.
234         * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
235         * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
236         * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
237         * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
239 2004-08-25  Paolo Carlini  <pcarlini@suse.de>
241         PR libstdc++/17038 (partial)
242         * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
243         __maxlen to 128.
244         * include/bits/locale_facets.h (class __timepunct): Add FIXME
245         comment about _M_put.
246         * config/locale/generic/time_members.cc (_M_put): Always null
247         terminate __s.
248         * config/locale/gnu/time_members.cc (_M_put): Likewise.
249         * testsuite/22_locale/time_put/put/char/17038.cc: New.
250         * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
252 2004-08-24  Paolo Carlini  <pcarlini@suse.de>
254         * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
255         * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
256         * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
257         * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
258         * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
259         * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
261         * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
262         newlines.
263         * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
265 2004-08-22  Matthias Klose  <doko@debian.org>
267         * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
268         * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
270 2004-08-23  Paolo Carlini  <pcarlini@suse.de>
272         * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
273         * aclocal.m4: Regenerate with automake-1.9.1.
274         * configure: Regenerate.
275         * Makefile.in: Likewise.
276         * include/Makefile.in: Likewise.
277         * libmath/Makefile.in: Likewise.
278         * libsupc++/Makefile.in: Likewise.
279         * po/Makefile.in: Likewise.
280         * src/Makefile.in: Likewise.
281         * testsuite/Makefile.in: Likewise.
283 2004-08-22  Paolo Carlini  <pcarlini@suse.de>
285         * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
286         to a signed type, long according to the resolution of DR 359.
287         * testsuite/22_locale/num_put/put/char/9.cc: New.
288         * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
290         * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
291         Simplify a bit: no need to clear showpos.
293 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
295         * include/bits/char_traits.h (struct _Char_traits_match): Remove,
296         unused.
298 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
300         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
301         wchar_t type for the fill argument; minor formatting tweaks.
302         * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
303         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
304         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
305         * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
306         * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
307         * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
309 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
311         * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
312         with _M_word != _M_local_word two times, redundantly.
314 2004-08-20  Jason Merrill  <jason@redhat.com>
316         * include/Makefile.am (${host_builddir}/gthr.h): Don't add
317         _GLIBCXX_ to #pragma lines.
318         * include/Makefile.in: Update.
320 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
322         PR libstdc++/7219 (continued)
323         * include/bits/ios_base.h (class ios_base): Expose Annex D.6
324         typedefs by default.
325         * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
326         * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
327         line number.
328         * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
330 2004-08-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
332         * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
333         barrier to locking asm.
334         
335 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
337         * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
338         actually the warning is a front-end bug (c++/17120).
340 2004-08-20  Matthias Klose  <doko@debian.org>
342         * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
344 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
346         * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
347         used as truth value warning.
349 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
351         * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
352         baseline.
354 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
356         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
358 2004-08-19  Benjamin Kosnik  <bkoz@redhat.com>
360         * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
361         timezone.
362         * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
364 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
366         * testsuite/performance/20_util/allocator/insert.cc: For std::map
367         instantiate the allocator for a correct pair type.
368         * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
369         * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
370         * testsuite/performance/20_util/allocator/producer_consumer.cc:
371         Likewise.
373         * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
374         minor formatting fixes.
375         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
377 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
379         * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
380         results.
381         * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
382         * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
383         * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
384         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
385         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
386         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
387         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
389 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
391         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
393 2004-08-18  Matthias Klose  <doko@debian.org>
395         * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
396         * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
397         * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
399 2004-08-17  Paolo Carlini  <pcarlini@suse.de>
401         * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
403 2004-08-17  Paolo Carlini  <pcarlini@suse.de>
405         * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
407 2004-08-17  Benjamin Kosnik  <bkoz@redhat.com>
409         * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
411 2004-08-16  Paolo Carlini  <pcarlini@suse.de>
413         * include/bits/indirect_array.h: Trivial formatting fixes.
414         * include/bits/valarray_after.h: Likewise.
415         * include/bits/valarray_array.h: Likewise.
416         * src/valarray-inst.cc: Likewise.
418 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
420         * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
421         * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
422         * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
424         * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
425         * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
426         * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
427         * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
428         * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
430 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
432         * include/bits/deque.tcc: Trivial formatting fixes.
434 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
436         * include/bits/deque.tcc: Trivial formatting fixes.
438         * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
439         Remove unneded typedef.
441         * include/bits/locale_facets.tcc: Very minor tweaks.
443         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
444         type for the fill argument.
445         * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
446         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
447         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
448         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
449         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
450         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
451         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
452         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
454 2004-08-13  Paolo Carlini  <pcarlini@suse.de>
455         
456         * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
457         memmove is not needed, memcpy suffices.
459 2004-08-13  Paolo Carlini  <pcarlini@suse.de>
461         * include/std/std_fstream.h (class basic_ifstream,
462         class basic_ofstream, class basic_fstream): Add const overloads
463         of is_open, as per DR 365 [WP].
464         * docs/html/ext/howto.html: Add an entry for DR 365.
466 2004-08-12  Paolo Carlini  <pcarlini@suse.de>
468         * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
470 2004-08-12  Paolo Carlini  <pcarlini@suse.de>
472         PR libstdc++/16956
473         * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
474         to the returned value, reorganize a bit.
475         * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
476         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
478         * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
479         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
480         * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
481         * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
483 2004-08-12  Paul Brook  <paul@codesourcery.com>
485         * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
486         _GLIBCXX_CXA_VEC_CTOR_RETURN.
487         * config/cpu/generic/cxxabi_tweaks.h: Ditto.
488         * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
489         __cxa_vec_ctor_return.
490         * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
491         Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
493 2004-08-12  Kelley Cook  <kcook@gcc.gnu.org>
495         * Makefile.in, aclocal.m4, configure, include/Makefile.in,
496         libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
497         src/Makefile.in, testsuite/Makefile.in: Regenerate
499 2004-08-12  Jan Beulich  <jbeulich@novell.com>
501         * config/locale/generic/ctype_members.cc
502         (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
503         initializer for return value, as that is invalid for enumerated types.
504         * config/locale/gnu/ctype_members.cc
505         (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
507 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
509         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
511 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
512         
513         * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
514         variable.
515         * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
516         * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
517         * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
518         * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
519         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
520         * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
521         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
522         * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
523         * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
524         * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
525         * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
526         * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
527         * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
528         * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
529         * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
530         * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
531         * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
532         * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
533         * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
534         * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
535         * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
537 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
538             Petur Runolfsson  <peturr02@ru.is>
540         PR libstdc++/16959
541         * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
542         standard streams are constructed.
543         * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
545 2004-08-09  Paolo Carlini  <pcarlini@suse.de>
547         * include/bits/stl_bvector.h: Trivial formatting fixes.
549 2004-08-09  Paolo Carlini  <pcarlini@suse.de>
551         * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
553 2004-08-07  Jonathan Wakely  <redi@gcc.gnu.org>
554             Paolo Carlini  <pcarlini@suse.de>
555         
556         * src/debug.cc (_Error_formatter::_M_print_string): In order
557         to print individual words from __string, _M_format_word can't
558         be called since may be just sprintf, thus ignoring completely
559         __n: instead, use memmove and append '\0' by hand.
561 2004-08-07  Paolo Carlini  <pcarlini@suse.de>
563         * config/locale/generic/c_locale.h (__convert_from_v): Don't
564         use a default for __prec, assume __prec >= 0 and simplify.
565         * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
566         * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
567         Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
569 2004-08-04  Phil Edwards  <phil@codesourcery.com>
571         * docs/html/configopts.html:  Emphasize that options change.
572         * docs/html/17_intro/configury.html:  Update links.
574 2004-08-03  Paolo Carlini  <pcarlini@suse.de>
576         * include/bits/list.tcc: Trivial formatting fixes.
578 2004-08-03  Mark Mitchell  <mark@codesourcery.com>
580         * libsupc++/new_op.cc: Update comments.
581         * libsupc++/del_op.cc: Likewise.
583 2004-08-02  Mark Mitchell  <mark@codesourcery.com>
585         * libsupc++/cxxabi.h: Make all declarations have default
586         visibility.
587         * libsupc++/exception: Likewise.
588         * libsupc++/new: Likewise.
589         * libsupc++/typeinfo: Likewise.
590         * libsupc++/unwind-cxx.h: Likewise.
591         * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
592         the __cxxabiv1 namespace.
593         (__cxa_free_exception): Likewise.
594         * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
595         (__cxa_bad_typeid): Likewise.
596         * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
597         (__cxa_end_catch): Likewise.
598         * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
599         (__cxa_get_globals): Likewise.
600         * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
601         (__cxa_rethrow): Likewise.
602         * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
603         * libsupc++/eh_type.cc: Include <cxxabi.h>.
605         * Makefile.am (hosted_source): Add libmath and testsuite.
606         (SUBDIRS): Remove them.
607         * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
608         on arm*-*-symbianelf*.
609         * crossconfig.m4: Add arm*-*-symbianelf* support.
610         * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
611         when freestanding.  Do not bring names into std:: namespace with
612         "using" when freestanding.  Declare required functions and macros
613         when freestanding. 
614         * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
615         when freestanding.
616         * libsupc++/del_op.cc: Declare "free" only when freestanding.
617         * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
618         (malloc): Declare when freestanding.
619         (free): Likewise.
620         (memset): Likewise.
621         (__cxa_allocate_exception): Call malloc, not std::malloc.  Likewise
622         for memset.
623         (__cxa_free_exception): Likewise for free.
624         * libsupc++/new_op.cc: Declare "malloc" when freestanding.
625         * libsupc++/pure.cc (writestr): Define to nothing when
626         freestanding.
627         * libsupc++/vterminate.cc: Do not define anything when
628         freestanding.
629         * Makefile.in: Regenerated.
630         * aclocal.m4: Likewise.
631         * configure: Likewise.
632         * include/Makefile.in: Likewise.
633         * libmath/Makefile.in: Likewise.
634         * libsupc++/Makefile.in: Likewise.
635         * po/Makefile.in: Likewise.
636         * src/Makefile.in: Likewise.
637         * testsuite/Makefile.in: Likewise.
638         
639 2004-08-01  Matt Austern  <austern@apple.com>
641         PR libstdc++/16844
642         * include/bits/stl_list.h (_M_create_node): Remove unused 
643         zero-argument version.
644         * include/ext/slist (_M_create_node): Pass two arguments to
645         allocator's construct() member function.
646         * testsuite/23_containers/deque/explicit_instantiation.cc: New.
647         * testsuite/23_containers/list/explicit_instantiation.cc: New.
648         * testsuite/23_containers/vector/explicit_instantiation.cc: New.
649         * testsuite/23_containers/map/explicit_instantiation.cc: New.
650         * testsuite/23_containers/set/explicit_instantiation.cc: New.
651         * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
652         * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
653         * testsuite/ext/hash_set_explicit_instantiation.cc: New.
654         * testsuite/ext/slist_explicit_instantiation.cc: New.
655         
656 2004-07-30  Paolo Carlini  <pcarlini@suse.de>
658         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
659         num_get<>::_M_extract_int): In the main parsing loop delay the
660         life of __q to the actual use point.
662 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
664         PR libstdc++/14220
665         * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
666         Don't clip the precision passed down to __convert_from_v:
667         22.2.2.2.2 nowhere says so.
668         * testsuite/22_locale/num_put/put/char/14220.cc: New.
669         * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
671 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
673         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
675 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
676             Petur Runolfsson  <peturr02@ru.is>
678         PR libstdc++/12658 (continued)
679         * src/locale_init.cc (locale::locale, locale::global): Use
680         a single locale_mutex instead of two separate mutexes.
682 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
684         PR libstdc++/16813
685         * include/debug/map.h (insert(_InputIterator, _InputIterator)):
686         Fix typo.
687         * testsuite/23_containers/map/insert/16813.cc: New.
689 2004-07-29  Phil Edwards  <phil@codesourcery.com>
691         * docs/html/faq/index.html:  Update version references.  Make
692         clear that code from SGI has diverged greatly.  Remove references
693         to library snapshots and what's-new sections.
694         * docs/html/faq/index.txt:  Regenerate.
696 2004-07-28  Matt Austern  <austern@apple.com>
698         * include/bits/stl_construct.h (_Destroy): New three-argument
699         overload that takes an allocator argument.  Another inline
700         three-argument overload that takes std::allocator and dispatches
701         to the two-argument version.
702         * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
703         Change return type to void to match uninitialized_fill_n.
704         (__uninitialized_copy_a_): New function.  Like uninitialized_copy
705         except that it takes an allocator and uses it for construct and
706         destroy.  If the allocator is std::allocator, dispatches to
707         uninitialized_copy.
708         (__uninitialized_fill_a): Likewise.
709         (__uninitialized_fill_n_a): Likewise.
710         (__uninitialized_copy_copy): Give it an allocator argument.
711         (__uninitialized_fill_copy): Likewise.
712         (__uninitialized_copy_fill): Likewise.
713         * include/bits/deque.tcc: Use new forms defined in stl_construct.h
714         and stl_uninitialized.h.  Replace use of single-argument _Construct
715         and _Destroy with use of allocator's construct and destroy methods.
716         * include/bits/list.tcc: Likewise.
717         * include/bits/stl_deque.h: Likewise.
718         * include/bits/stl_list.h: Likewise.
719         * include/bits/stl_tree.h: Likewise.
720         * include/bits/stl_vector.h: Likewise.
721         * include/bits/vector.tcc: Likewise.
722         * include/ext/hashtable.h: Use rebind so that allocator_type
723         has correct type for a container's allocator.  Replace use of 
724         single-argument _Construct and _Destroy with use of allocator's 
725         construct and destroy methods.
726         * include/ext/memory (__uninitialized_copy_n_a): New function.
727         Like uninitialized_copy_n except that it takes an extra parameter,
728         an allocator, and uses it for construct and destroy operations.
729         * include/ext/rope: Use new forms defined in stl_construct.h,
730         stl_uninitialized.h, and ext/memory.  Replace use of single-argument 
731         _Construct and _Destroy with allocator construct and destroy methods.
732         * include/ext/ropeimpl.h: Likewise.
733         * include/ext/slist.h: Likewise.
734         * testsuite/testsuite_allocator.h (check_construct_destroy): New.
735         * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
736         * testsuite/23_containers/deque/check_construct_destroy.cc: New.
737         * testsuite/23_containers/list/check_construct_destroy.cc: New.
738         * testsuite/23_containers/set/check_construct_destroy.cc: New.  
739         * testsuite/23_containers/vector/check_construct_destroy.cc: New. 
740         * testsuite/ext/hash_check_construct_destroy.cc: New.
741         * testsuite/ext/slist_check_construct_destroy.cc: New.
742         
743 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
745         2003-10-01  Eric Christopher  <echristo@redhat.com>
746         * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
747         constraint.
748         2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
749         * config/cpu/sh/atomicity.h: New.  Use movli and movco on SH4a.
751 2004-07-23  Benjamin Kosnik  <bkoz@redhat.com>
753         PR libstdc++/16678
754         * include/bits/locale_facets.tcc: Fix for -Werror.
756 2004-07-23  Jonathan Wakely  <redi@gcc.gnu.org>
758         * docs/html/debug.html: Say debug mode only available since 3.4.0.
760 2004-07-21  Benjamin Kosnik  <bkoz@redhat.com>
762         * docs/doxygen/mainpage.html: Clarify links.
763         * docs/doxygen/stdheader.cc: Add files.
764         * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
765         * docs/doxygen/user.cfg.in: New options, wrap.
767 2004-07-20  Danny Smith  <dannysmith@users.sourceforge.net>
769         * include/c_std/std_cwchar.h (wcsstr): Correct signature.
771 2004-07-19  Benjamin Kosnik  <bkoz@redhat.com>
773         PR libstdc++/15488
774         * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
776 2004-07-17  Richard Sandiford  <rsandifo@redhat.com>
778         PR bootstrap/16469
779         * scripts/create_testsuite_files: Pass -print to find.
781 2004-07-15  Paolo Carlini  <pcarlini@suse.de>
783         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
784         * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
786 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
788         PR libstdc++/14697
789         * acinclude.m4 (glibcxx_shared_libgcc): Correct
790         glibcxx_shared_libgcc test for multilibs.
791         * configure: Rebuilt.
793 2004-07-14  Paolo Carlini  <pcarlini@suse.de>
795         PR libstdc++/16505
796         * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
797         the signature to return void, as per 20.4.4.3.
798         * include/bits/stl_vector.h (vector::vector(size_type,
799         const value_type&, const allocator_type&), vector::vector(size_type),
800         vector::_M_initialize_dispatch): Adjust callers.
801         * include/bits/vector.tcc (vector<>::_M_fill_assign,
802         vector<>::_M_fill_insert): Likewise.
803         * testsuite/20_util/memory/16505.cc: New.
805 2004-07-14  Paolo Carlini  <pcarlini@suse.de>
807         * testsuite/22_locale/locale/cons/12658_thread-1.cc,
808         12658_thread-2.cc: Use __gnu_test::try_named_locale.
810 2004-07-13  Benjamin Kosnik  <bkoz@redhat.com>
812         * docs/html/ext/mt_allocator.html: Add docs for _Tune.
813         * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
814         (__mt_alloc::_S_set_options): Same.
815         Add to comments.
817 2004-07-13  Benjamin Kosnik  <bkoz@redhat.com>
819         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
820         for linux.
821         * configure: Regenerated.
823 2004-07-13  Paolo Carlini  <pcarlini@suse.de>
825         * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
826         to 12658_thread-1.cc and xfail.
827         * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
828         simpler version of 12658_thread-1.cc, still failing on 3_3 and
829         not failing on 3_4/mainline - both on single processor and
830         multiprocessor machines.
832 2004-07-12  Benjamin Kosnik  <bkoz@redhat.com>
834         * docs/html/abi.html: Remove non-public qualification.
836         * include/bits/concurrence.h: Tweak comments.
838 2004-07-11  Paolo Carlini  <pcarlini@suse.de>
840         Add wchar_t counterparts of the basic_streambbuf<char> tests.
841         * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
842         * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
843         Likewise.
844         * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
845         * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
846         3599.cc: Likewise.
847         * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
848         * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
849         * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
850         * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
851         * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
852         Likewise.
853         * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
855         * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
856         tweaks.
857         * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
858         Likewise.
859         * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
860         * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
862 2004-07-11  Phil Edwards  <phil@codesourcery.com>
864         * acinclude.m4:  Cosmetic shell syntax fixes.
865         * configure.ac:  Bring comment inline with reality.
866         * configure.host:  Both of the above.  Move 'arm' case to right
867         place in host_cpu switch.
868         * aclocal.m4, configure:  Regenerate.
870 2004-07-09  Paolo Carlini  <pcarlini@suse.de>
872         Add wchar_t counterparts of the basic_stringbuf<char> tests.
873         * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
874         * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
875         * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
876         3599.cc, 9988.cc: Likewise.
877         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
878         Likewise.
879         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
880         Likewise.
881         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
882         Likewise.
883         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
884         Likewise.
885         * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
886         * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
887         * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
888         * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
889         Likewise.
890         * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
891         9404-1.cc: Likewise.
892         * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
893         9404-2.cc: Likewise.
894         * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
895         3955.cc: Likewise.
896         * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
897         * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
899 2004-07-08  Paolo Carlini  <pcarlini@suse.de>
901         * include/bits/gslice.h: Trivial formatting fixes.
902         * include/bits/gslice_array.h: Likewise.
903         * include/bits/indirect_array.h: Likewise.
904         * include/bits/mask_array.h: Likewise.
905         * include/bits/slice_array.h: Likewise.
906         * include/bits/valarray_after.h: Likewise.
907         * include/bits/valarray_array.h: Likewise.
908         * include/bits/valarray_before.h: Likewise.
909         * include/std/std_valarray.h: Likewise.
911 2004-07-08  Benjamin Kosnik  <bkoz@redhat.com>
913         PR c++/16169
914         * include/bits/basic_string.h (basic_string::operator=): Revert.
916 2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>
918         * configure.ac (libtool_VERSION): To 6:2:0.
919         * configure: Regenerated.
921         * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
922         
923 2004-07-07  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
925         PR libstdc++/16411
926         * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
928 2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>
930         * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
931         -Weffc++ issues.
933 2004-07-07  Paolo Carlini  <pcarlini@suse.de>
935         PR libstdc++/16401
936         * include/bits/sstream.tcc (overflow): When reallocating _M_string
937         use an exponential grow policy.
938         * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
939         * testsuite/performance/27_io/stringbuf_overflow.cc: New.
941 2004-07-06  Anssi Hannula  <anssi.hannula@mbnet.fi>
943         PR libstdc++/15928
944         * crossconfig.m4: Add in bits for djgpp.
945         * configure: Regenerate.
946         
947 2004-07-05  Jonathan Wakely  <redi@gcc.gnu.org>
949         * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
950         instantiation of set and multiset (functor param given as int).
952 2004-07-04  Paolo Carlini  <pcarlini@suse.de>
954         * include/bits/basic_string.h: Trivial formatting fixes and/or
955         const-ification of some variables.
956         * include/bits/deque.tcc: Likewise.
957         * include/bits/stl_algobase.h: Likewise.
958         * include/bits/stl_bvector.h: Likewise.
959         * include/bits/stl_construct.h: Likewise.
960         * include/bits/stl_deque.h: Likewise.
961         * include/bits/stl_pair.h: Likewise.
962         * include/bits/stl_vector.h: Likewise.
963         * include/bits/vector.tcc: Likewise.
965 2004-07-04  Paolo Carlini  <pcarlini@suse.de>
967         * testsuite/25_algorithms/copy/1.cc: Add instantiations for
968         systems with no COMDAT or weak support.
969         * testsuite/25_algorithms/copy/2.cc: Likewise.
970         * testsuite/25_algorithms/copy/3.cc: Likewise.
971         * testsuite/25_algorithms/copy/4.cc: Likewise.
973 2004-07-03  Paul Brook  <paul@codesourcery.com>
975         * configure.ac: Set ABI_TWEAKS_SRCDIR.
976         * configure.host: Set abi_tweaks_dir.  Check for atomicity.h when
977         setting atomicity_dir.  Override type_cpu for arm based targets.
978         * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
979         * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
980         * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
981         * libsupc++/vec.cc: Ditto.
982         * config/cpu/arm/cxxabi_tweaks.h: New file.
983         * config/cpu/generic/cxxabi_tweaks.h: New file.
984         * */Makefile.in: Regenerate.
985         * configure: Regenerate.
987 2004-07-02  Paolo Carlini  <pcarlini@suse.de>
989         * include/bits/type_traits.h (_Is_normal_iterator): Move...
990         * include/bits/cpp_type_traits.h: ... here, renamed to
991         __is_normal_iterator and consistent with the other traits.
992         * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
993         to the struct __copy_normal and three specializations.
994         (__copy_backward_output_normal_iterator,
995         __copy_backward_input_normal_iterator): Likewise, convert to
996         the struct __copy_backward_normal and three specializations.
997         (copy, copy_backward): Use the latter.
998         (__copy_aux, __copy_backward_aux): Very minor tweaks.
1000 2004-07-01  Paolo Carlini  <pcarlini@suse.de>
1002         * include/bits/stl_algobase.h (__copy_trivial): Remove.
1003         (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
1004         __is_trivially_copyable, __are_same and __copy::copy.
1005         (__copy): Rewrite as a class template and two specializations.
1006         (__copy_ni2): Simplify, just call __copy_aux.
1007         
1008         * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
1009         check.
1010         * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
1011         for destination value type != source value type.
1013 2004-07-01  Benjamin Kosnik  <bkoz@redhat.com>
1014             Per Bothner  <per@bothner.com>
1015             Mohan Embar  <gnustuff@thisiscool.com>
1017         PR libstdc++/16248
1018         * include/bits/concurrence.h (__glibcxx_mutex_type): New.
1019         (__glibcxx_mutex): Encapsulate mutex init function into type for
1020         threaded configurations without __GTHREAD_MUTEX_INIT.
1021         (lock::lock): Make device member a reference.
1022         (lock::~lock): Same.
1023         * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
1024         to mutex_type.
1025         * src/allocator.cc: Same.
1026         
1027 2004-06-30  Brad Spencer  <spencer@infointeractive.com>
1029         * include/ext/mt_allocator.h: Handle allocations at static
1030         initialization that happen before _S_options is (automatically)
1031         constructed; set _S_init even if _M_force_new is true.
1032         
1033 2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
1035         * config/linker-map.gnu: Revert new exports.
1037 2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
1038             Stuart Anderson  <anderson@netsweng.com>
1039         
1040         * config/linker-map.gnu: Add destructor exports for abstract base
1041         classes to conform to LSB.
1043 2004-06-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1044             Paolo Carlini  <pcarlini@suse.de>
1046         * include/bits/cpp_type_traits.h: Add __is_pointer and
1047         __is_trivially_copyable.
1048         * include/bits/stl_algobase.h (fill, fill_n): Slightly
1049         tweak to use the latter.
1050         (__copy_backward_dispatch): Remove.
1051         (__copy_backward_aux): Rewrite to use __is_pointer and
1052         __is_trivially_copyable and __copy_backward::copy_b.
1053         (__copy_backward): Rewrite as a class template and two
1054         specializations.
1056 2004-06-30  Paolo Carlini  <pcarlini@suse.de>
1058         * testsuite/25_algorithms/copy.cc: Move to...
1059         * testsuite/25_algorithms/copy/1.cc: ... here, extend.
1060         * testsuite/25_algorithms/copy/2.cc: New.
1061         * testsuite/25_algorithms/copy/3.cc: New.
1062         * testsuite/25_algorithms/copy/4.cc: New.
1064 2004-06-29  Paul Brook  <paul@codesourcery.com>
1066         * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
1067         element size in the cookie.
1069 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
1071         * include/bits/cpp_type_traits.h: Move the additions to
1072         namespace __gnu_internal outside of namespace std; trivial
1073         formatting fixes.
1075 2004-06-28  Benjamin Kosnik  <bkoz@redhat.com>
1077         * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
1078         Revert -Weffc++ changes that defined copy ctory and or assignment
1079         operator.
1080         * libsupc++/tinfo.cc (__upcast_result): Same.
1081         
1082 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
1084         * src/localename.cc (locale::_Impl::_Impl): Slightly improve
1085         the algorithm used to name the categories.
1087 2004-06-28  Paolo Bonzini  <bonzini@gnu.org>
1089         * include/Makefile.am: Give a .gch extension to
1090         the PCH files, not only to the directory.
1091         * include/Makefile.in: Regenerate.
1093 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
1095         * config/locale/gnu/monetary_members.cc
1096         (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
1097         assignments of _M_decimal_point and _M_thousands_sep.
1099 2004-06-27  Paolo Carlini  <pcarlini@suse.de>
1101         * docs/html/17_intro/contribute.html: Update some links.
1102         * docs/html/17_intro/porting-howto.html: Likewise.
1103         * docs/html/17_intro/porting-howto.xml: Likewise.
1104         * docs/html/18_support/howto.html: Likewise.
1105         * docs/html/21_strings/howto.html: Likewise.
1106         * docs/html/27_io/howto.html: Likewise.
1107         * docs/html/configopts.html: Likewise.
1108         * docs/html/ext/howto.html: Likewise.
1109         * docs/html/faq/index.html: Likewise.
1110         * docs/html/install.html: Don't mention 2.x compilers.
1112 2004-06-27  Paolo Carlini  <pcarlini@suse.de>
1114         * include/ext/rope: Trivial formatting fixes.
1115         * include/ext/ropeimpl.h: Likewise.
1117 2004-06-26  Paolo Carlini  <pcarlini@suse.de>
1119         PR libstdc++/16210
1120         * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
1121         availability of strto(u)ll, not used anymore in the iostreams.
1122         * configure: Regenerate.
1124 2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>
1126         PR libstdc++/16182      
1127         * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
1128         AC_DEFINE_UNQUOTED.
1129         * configure: Regenerate.
1131 2004-06-25  Paul Brook  <paul@codesourcery.com>
1133         * libsupc++/cxxabi.h: Define __ARM_EABI__
1134         (__guard): Use it.
1135         * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
1137 2004-06-25  Paul Brook  <paul@codesourcery.com>
1139         * include/bits/concurrence.h: Still create mutex object when
1140         single-threaded.
1142 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
1144         * include/bits/stl_algobase.h (fill, fill_n): Revert last
1145         change: actually we need to copy construct an object of type
1146         _Tp, not of type iterator_traits<>::value_type, therefore the
1147         code is ok.
1149 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
1151         * include/bits/stl_algobase.h (fill, fill_n): Tighten the
1152         dispatch: use iterator_traits<>::value_type, not _Tp.
1154 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
1156         * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
1157         * testsuite/25_algorithms/fill/2.cc: Likewise.
1159 2004-06-25  Dan Nicolaescu  <dann@ics.uci.edu>
1160             Paolo Carlini  <pcarlini@suse.de>
1162         * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
1163         for fill and fill_n, respectively: when copying is cheap, use a
1164         temporary to avoid a memory read in each iteration.
1166 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
1168         * testsuite/25_algorithms/fill/1.cc: New.
1169         * testsuite/25_algorithms/fill/2.cc: Likewise.
1171 2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>
1173         * include/debug/formatter.h (__gnu_debug::_Error_formatter):
1174         Remove copy constructor and assignment operator.
1176 2004-06-24  Benjamin Kosnik  <bkoz@redhat.com>
1178         * include/bits/concurrence.h (__gnu_cxx::lock): New.
1179         * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
1180         (__pool_base::_M_get_mutex): New.
1181         * include/bits/allocator.h: Tweak.
1182         * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
1183         * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
1184         * include/bits/stl_threads.h: Remove.
1185         * include/Makefile.am: Also here.
1186         * include/Makefile.in: Regenerate.
1188         * src/locale_init.cc: Use __gnu_cxx::lock.
1190         * src/allocator.cc: Move all instantiations...
1191         * src/allocator-inst.cc: ...here.
1192         
1193 2004-06-23  Andrew Pinski  <apinski@apple.com>
1195         * linkage.m4: Remove check for libmx.   
1196         * configure: Regenerate.
1198 2004-06-23  Paolo Carlini  <pcarlini@suse.de>
1200         PR libstdc++/16154
1201         * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
1202         Don't require the _DefaultConstructibleConcept.
1203         (struct _ForwardIteratorConcept): Require it here.
1205 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
1207         * include/bits/istream.tcc (getline): Make sure arguments passed
1208         to min/max have the same type.
1209         * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
1210         * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
1212 2004-06-22  Benjamin Kosnik  <bkoz@redhat.com>
1214         * docs/html/abi.html: Update links.
1216 2004-06-22  Paolo Carlini  <pcarlini@suse.de>
1218         * testsuite/26_numerics/complex_inserters_extractors.cc,
1219         complex_value.cc, buggy_complex.cc: Move to...
1220         * testsuite/26_numerics/complex/: ... here.
1221         * testsuite/26_numerics/c99_classification_macros_c++.cc,
1222         c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
1223         fabs_inline.cc: Move to...
1224         * testsuite/26_numerics/cmath/: ... here.
1225         * testsuite/26_numerics/binary_closure.cc, slice.cc,
1226         slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
1227         valarray_name_lookup.cc, valarray_operators.cc,
1228         valarray_subset_assignment.cc: Move to...
1229         * testsuite/26_numerics/valarray/: ... here (new dir).
1230         * testsuite/26_numerics/sum_diff.cc: Move to...
1231         * testsuite/26_numerics/numeric/: ... here (new dir).
1233 2004-06-22  Paolo Carlini  <pcarlini@suse.de>
1235         * include/std/std_istream.h (ignore(streamsize __n = 1,
1236         int_type __delim = traits_type::eof())): Split into...
1237         (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1238         int_type __delim)): The first two can be much more simpler
1239         and efficient than the fully general case; also, the last
1240         two can take advantage of the same mechanism already used
1241         for getline.
1242         * include/bits/istream.tcc (ignore(streamsize __n = 1,
1243         int_type __delim = traits_type::eof()): Remove.
1244         (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1245         int_type __delim)): New.
1247 2004-06-21  Loren J. Rittle  <ljrittle@acm.org>
1249         * config/linker-map.gnu: Use wildcards for
1250         __basic_file::sys_open(FILE*, _Ios_Openmode).
1252 2004-06-20  Paolo Carlini  <pcarlini@suse.de>
1254         * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
1256 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
1258         * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
1259         the alignment requested.
1260         (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
1261         (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
1262         (__mt_alloc<>::deallocate): Likewise.
1264 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
1266         PR libstdc++/16020
1267         * include/debug/safe_base.h
1268         (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
1269         _Safe_sequence_base::operator=): Provide definitions.
1270         * testsuite/23_containers/bitset/cons/16020.cc: New.
1272 2004-06-18  Benjamin Kosnik  <bkoz@redhat.com>
1274         * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
1275         (__pool_base): Remove unused template parameter.  Add
1276         protected. Move lock data into __pool_base::_Lock. Remove static
1277         on member functions.
1278         (__pool_base::_M_get_free_list): New.
1279         (__pool_alloc): Move _S_force new here.
1280         * src/allocator.cc: Move out of line __pool_base definitions here.
1281         * config/linker-map.gnu: Export bits from __pool_base.
1282         
1283 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
1285         * config/locale/gnu/numeric_members.cc
1286         (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
1287         assignments of _M_decimal_point and _M_thousands_sep.
1288         * config/locale/gnu/time_members.cc
1289         (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
1290         and reformat assignments of date and time fields.
1292 2004-06-16  Paolo Carlini  <pcarlini@suse.de>
1294         * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
1295         to use _Data_allocate.
1296         * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
1297         (rope<>::_S_substring): Likewise.
1298         (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
1299         (rope<>::c_str()): Likewise.
1300         (rope<>::replace_with_c_str()): Likewise.
1302         * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
1303         Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
1304         not _RopeRep.
1305         (_Rope_iterator_base<>::_S_setcache): Likewise.
1306         (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
1307         (rope<>::_S_substring): Likewise.
1308         (rope<>::_S_dump): Likewise.
1309         (rope<>::_S_fetch_ptr): Likewise.
1310         (rope<>::_S_compare): Likewise.
1311         (rope<>::replace_with_c_str()): Likewise.               
1313         * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
1314         * testsuite/ext/rope/2.cc: New.
1316 2004-06-16  Paolo Carlini  <pcarlini@suse.de>
1317             Matt Austern  <austern@apple.com>
1319         * testsuite/ext/rope/3.cc: New.
1321 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
1323         * acinclude.m4: Remove useless multilib configury.
1324         * Makefile.am: Remove useless multilib rules.
1325         * aclocal.m4: Regenerate.
1326         * Makefile.in: Regenerate.
1327         * configure: Regenerate.
1329 2004-06-15  Paolo Carlini  <pcarlini@suse.de>
1331         * include/ext/hashtable.h: Trivial formatting fixes.
1332         * include/ext/rb_tree: Likewise.
1334 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
1336         * include/ext/hash_map: Trivial formatting fixes.
1337         * include/ext/hash_set: Likewise.
1338         * include/ext/memory: Likewise.
1339         * include/ext/numeric: Likewise.
1341 2004-06-14  Benjamin Kosnik  <bkoz@redhat.com>
1343         * Makefile.in: Regenerate with automake 1.8.5.
1344         * aclocal.m4: Same.
1345         * include/Makefile.in: Same.
1346         * libmath/Makefile.in: Same.
1347         * libsupc++/Makefile.in: Same.
1348         * po/Makefile.in: Same.
1349         * src/Makefile.in: Same.
1350         * testsuite/Makefile.in: Same.
1352 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
1354         * include/ext/slist: Trivial formatting fixes.
1356 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
1358         * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
1359         Don't use the 'magic number' 10 in the computation of __minlen;
1360         never access __name past __minlen; in the loop over __i3, don't
1361         decrease __nmatches and increase __i3 at once, only either of
1362         the two; tidy.
1364 2004-06-13  Paolo Carlini  <pcarlini@suse.de>
1366         * include/bits/locale_facets.tcc (time_get<>::do_get_time,
1367         time_get<>::do_get_date): Use only once _M_extract_via_format,
1368         instead of going through "%X"/"%x" and calling it two times
1369         (+ using widen).
1371 2004-06-12  Paolo Carlini  <pcarlini@suse.de>
1373         * include/ext/algorithm: Trivial formatting fixes.
1374         * include/ext/functional: Likewise.
1375         * include/ext/hash_fun.h: Likewise.
1376         * include/ext/iterator: Likewise.
1378 2004-06-12  Paolo Carlini  <pcarlini@suse.de>
1380         * include/bits/basic_string.tcc (find(const _CharT*, size_type,
1381         size_type)): Reimplement using std::search.
1382         * src/string-inst.cc: Instantiate std::search for char/wchar_t.
1384 2004-06-12  Dhruv Matani  <dhruvbird@gmx.net>
1386         * testsuite/performance/21_strings/string_find.cc: New.
1388 2004-06-10  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
1390         * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
1392 2004-06-10  Jan van Dijk  <jan@etpmod.phys.tue.nl>
1394         * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
1395         this function return a value.
1397 2004-06-09  Paolo Carlini  <pcarlini@suse.de>
1399         PR libstdc++/15775
1400         * include/bits/stl_deque.h: Consistently with stl_set.h, define
1401         pointer as allocator's pointer, likewise for reference,
1402         const_pointer, and const_reference.
1403         * include/bits/stl_list.h: Likewise.
1404         * include/bits/stl_map.h: Likewise.
1405         * include/bits/stl_multimap.h: Likewise.
1406         * include/bits/stl_vector.h: Likewise.
1408 2004-06-09  Benjamin Kosnik  <bkoz@redhat.com>
1410         * crossconfig.m4: Remove signbit, signbitf, signbitl.   
1411         * linkage.m4: Comment LIBMATHOBJS, tweak others.  AC_DEFINES for
1412         builtin math functions instead of AC_DEFINE_UNQUOTED.
1413         * configure: Regenerate.
1414         
1415 2004-06-08  Benjamin Kosnik  <bkoz@redhat.com>
1417         * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
1418         * docs/doxygen/mainpage.html: Remove links.
1420 2004-06-08  Jason Merrill  <jason@redhat.com>
1422         * config/linker-map.gnu: Use wildcards for
1423         __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
1425 2004-06-08  Paolo Carlini  <pcarlini@suse.de>
1427         * include/ext/pool_allocator.h: Convert to a global free-list,
1428         as per the original SGI/HP design: move the implementation
1429         details to struct __pool_base, from which __pool_alloc derives.
1430         * src/allocator.cc: Instantiate __pool_base.
1432 2004-06-07  Dhruv Matani  <dhruvbird@gmx.net>
1433             Paolo Carlini  <pcarlini@suse.de>
1435         * testsuite/testsuite_performance.h
1436         (resource_counter::allocated_memory): Make it return the right
1437         number of bytes requested by the allocators/application. This is
1438         the sbrk+mmaped memory.
1440 2004-06-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1442         * include/std/std_complex.h (log): Tidy.
1444 2004-05-31  Benjamin Kosnik  <bkoz@redhat.com>
1446         * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
1447         * testsuite/testsuite_abi.cc: Same.
1448         * configure.ac (libtool_VERSION): Bump to 6:1:0.
1449         * configure: Regenerate.
1450         * aclocal.m4: Regenerate.
1451         
1452 2004-05-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1454         * include/std/std_complex.h (complex<_Tp>): Properly indent
1455         to follow C++STYLE. 
1456         (complex<>::__rep): New.
1457         (__complex_abs): New.  Dispatch to built-ins.
1458         (abs): Use them.
1459         (__complex_arg): New. Dispatch to built-ins.
1460         (arg): Use it.
1461         (__complex_cos): New. Dispatch to built-ins.
1462         (cos): Use it.
1463         (__complex_cosh): New. Dispatch to built-ins.
1464         (cosh): Use it.
1465         (__complex_exp): New. Dispatch to built-ins.
1466         (exp): Use it.
1467         (__complex_log): New. Dispatch to built-ins.
1468         (log): Use it.
1469         (__complex_sin): New. Dispatch to built-ins.
1470         (sin): Use it.
1471         (__complex_sinh): New. Dispatch to built-ins.
1472         (sinh): Use it.
1473         (__complex_sqrt): New. Dispatch to built-ins.
1474         (sqrt): Use it.
1475         (__complex_tan): New. Dispatch to built-ins.
1476         (tan): Use it.
1477         (__complex_tanh): New. Dispatch to built-ins.
1478         (tanh): Use it.
1479         (__complex_pow): New. Dispatch to built-ins.
1480         (pow): Use it.
1482 2004-05-29  Richard B. Kreckel  <Richard.Kreckel@Framatome-ANP.com>
1483             Benjamin Kosnik  <bkoz@redhat.com>
1484         
1485         PR libstdc++/14600
1486         * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
1487         * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
1488         * config/io/basic_file_stdio.cc (__basic_file::file): New.
1489         * config/io/basic_file_stdio.h: Define.
1491 2004-05-27  Benjamin Kosnik  <bkoz@redhat.com>
1493         PR libstdc++/15675
1494         * docs/html/documentation.html: Update doxygen links for 3.4.0.
1496 2004-05-27  Jan Beulich  <jbeulich@novell.com>
1498         * scripts/create_testsuite_files: Tweak.
1500 2004-05-25  Benjamin Kosnik  <bkoz@redhat.com>
1502         PR libstdc++/15489
1503         * scripts/create_testsuite_files: Revert xtype change, add non-GNU
1504         bits to do the same thing.
1506 2004-05-24  Paolo Carlini  <pcarlini@suse.de>
1508         * include/bits/istream.tcc (ignore): Correctly deal with
1509         n == numeric_limits<streamsize>::max().
1510         * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
1512         * include/bits/istream.tcc (basic_istream<>::getline): Prefer
1513         '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
1514         __n == numeric_limits<>::min().
1516         * include/bits/istream.tcc: Minor tweaks.
1518         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
1519         Tighten.
1520         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
1521         Likewise.
1522         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
1523         Likewise.
1524         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
1525         Likewise.
1526         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
1528 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
1530         PR libstdc++/12854
1531         Fixups for -Weffc++.    
1532         * include/bits/basic_string.h (basic_string::operator=): Return
1533         pointer to this instead of result of assign. Although redundant,
1534         this doesn't impact resultant codegen.
1535         
1536         * include/bits/locale_facets.h (__numpunct_cache): Declare
1537         assignment opxserator and copy constructor private.
1538         (__timepunct_cache): Same.
1539         (__moneypunct_cache): Same.
1540         (collate): Use member initialization list for _M_c_locale_collate.
1541         * config/locale/gnu/messages_members.h: Same.
1542         * config/locale/gnu/time_members.h (__timepunct): Same. 
1543         * src/codecvt.cc: Use member initialization list to initialize
1544         _M_c_locale_codecvt.    
1545         * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
1546         * config/os/gnu-linux/ctype_noninline.h: Same.
1547         * src/locale.cc (_Impl): Same.
1548         * src/locale_init.cc: Same.
1549         * src/localename.cc: Same.      
1551         * include/bits/basic_ios.h (basic_ios): Complete member
1552         initialization list.
1553         * include/bits/istream.tcc (basic_istream::sentry): Same.
1554         * include/bits/ostream.tcc (basic_ostream::sentry): Same.
1555         * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
1556         _M_pback to member initialization list.
1557         * include/std/std_streambuf.h: Same.
1558         * include/std/std_sstream.h: Same, for _M_mode.
1559         * src/ios.cc (ios_base): Same.
1560         
1561         * include/ext/rope: Make derived classes match exception
1563          specifications. Add copy constructors and assignment operators.
1565         * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
1566         constructor and assignment operator protected.
1567         (_Safe_iterator_base): Same.
1568         * include/debug/formatter.h (_Error_formatter): Define copy
1569         constructor and assignment operator.
1571         * include/backward/strstream: Declare assignment operator and copy
1572         constructor private.
1574 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
1576         * testsuite/testsuite_hooks.h (func_callback): Declare copy
1577         constructor and assignment operator private.    
1578         * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
1579         exception specifications of base class.
1580         * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
1581         * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
1582         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
1583                 
1584 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
1586         * libsupc++/cxxabi.h: Remove duplicated and useless public and
1587         private keywords in class declarations. Format. Use
1588         stddef.h. Expose declarations to "C" compilation.
1589         * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
1590         assignment operator.
1591         (__dyncast_result): Same.
1592         * libsupc++/vec.cc (uncatch_exception): Same, use member
1593         initialization list.
1594                  
1595 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
1597         * testsuite/abi_check.cc: Add unistd.h.
1599 2004-05-22  Paolo Carlini  <pcarlini@suse.de>
1601         PR libstdc++/15565
1602         * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
1603         __int_to_char(unsigned long long)): Showpos is not relevant
1604         for unsigned types.
1605         * testsuite/22_locale/num_put/put/char/15565.cc: New.
1606         * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
1608         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
1609         char.
1610         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
1611         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
1612         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
1613         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
1614         * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
1615         * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
1617 2004-05-21  Matthias Klose  <doko@debian.org>
1619         * docs/doxygen/run_doxygen:  Bump required version.
1621 2004-05-21  Benjamin Kosnik  <bkoz@redhat.com>
1623         * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
1624         * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
1626 2004-05-21  Paolo Carlini  <pcarlini@suse.de>
1628         * include/bits/istream.tcc (ignore): Remove redundant line.
1629         (readsome): Tidy, closely following 27.6.1.3, p30.
1631 2004-05-20  Paolo Carlini  <pcarlini@suse.de>
1633         * include/bits/istream.tcc (operator>>(basic_istream<>&,
1634         basic_string<>&)): Use a temporary buffer, thus avoiding
1635         reallocation for common case.
1636         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
1637         New.
1638         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
1639         Likewise.
1641         * include/bits/istream.tcc: Const-ification of a few variables.
1643         * include/bits/ostream.tcc: Trivial formatting fixes and
1644         const-ification of some variables.
1646 2004-05-20  Benjamin Kosnik  <bkoz@redhat.com>
1648         PR libstdc++/15123
1649         PR libstdc++/13928
1650         * docs/doxygen/Intro.3: Remove Allocators.3.
1651         Add new extension headers, extension namespace list.
1652         * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
1653         Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
1654         __gnu_debug::. Remove __policy_ renames.
1655         * docs/doxygen/guide.html: Add dot note.
1656         * docs/doxygen/stdheader.cc: Edit, add files.
1657         * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
1658         
1659 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
1661         * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
1663 2004-05-18  Jan Beulich  <jbeulich@novell.com>
1665         PR libstdc++/15489
1666         * scripts/create_testsuite_files: Also find source files through
1667         symbolic links.
1669 2004-05-18  Jan Beulich  <jbeulich@novell.com>
1671         PR libstdc++/15488
1672         * testsuite/lib/libstdc++.exp: Make test files writable.
1674 2004-05-18  Paolo Carlini  <pcarlini@suse.de>
1676         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
1677         tweaks.
1679 2004-05-18  Dhruv Matani  <dhruvbird@gmx.net>
1681         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
1682         allocation loop which removes blocks from the global free list
1683         from O(N) to O(1) when the required blocks are <= the number
1684         available.
1686 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
1688         * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
1690 2004-05-17  Benjamin Kosnik  <bkoz@redhat.com>
1692         * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
1693         * testsuite/23_containers/deque/14340.cc: New.
1694         * testsuite/23_containers/list/14340.cc: New.
1695         * testsuite/23_containers/map/14340.cc: New.
1696         * testsuite/23_containers/multimap/14340.cc: New.
1697         * testsuite/23_containers/multiset/14340.cc: New.
1698         * testsuite/23_containers/set/14340.cc: New.
1699         * testsuite/23_containers/vector/14340.cc: New.
1701 2004-05-17  Douglas Gregor   <gregod@cs.rpi.edu>
1703         PR libstdc++/14340 
1704         * include/debug/safe_iterator.h (_Safe_iterator converting 
1705         constructor): Only allow declaration to instantiate when the 
1706         incoming _Safe_iterator has exactly the right iterator type.
1708 2004-05-17  Jonathan Wakely  <redi@gcc.gnu.org>
1710         * include/bits/boost_concept_check.h: Fix old attribute syntax.
1711         * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
1712         to pass concept-checks.
1713         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1714         * testsuite/23_containers/set/modifiers/swap.cc: Same.
1715         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1717 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
1719         * include/std/std_bitset.h: Minor formatting fixes.
1721 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
1723         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1724         Consistently update __bin._M_free[0].
1725         (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
1726         __bin._M_free[0] to simplify the while loop (i.e., the number
1727         of iterations becomes known at the outset).
1729 2004-05-15  Paolo Carlini  <pcarlini@suse.de>
1731         * include/std/std_bitset.h: Trivial formatting fixes.
1733 2004-05-14  Paolo Carlini  <pcarlini@suse.de>
1734             Ivan Godard  <igodard@pacbell.net>
1736         PR libstdc++/15361
1737         * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
1738         * testsuite/23_containers/bitset/ext/15361.cc: New.
1740 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
1742         PR libstdc++/15046
1743         * crossconfig.m4: Add C99 math bits for linux crosses.
1744         * configure: Regenerate.
1745         
1746 2004-05-13  Simon Marshall <simon.marshall@misys.com>
1747             Benjamin Kosnik  <bkoz@redhat.com>
1749         PR libstdc++/15090
1750         * include/bits/locale_facets.h: Fix for -fno-for-scope.
1751         * include/debug/safe_sequence.h: Same.
1752         * include/debug/safe_iterator.tcc: Same.
1753         * src/debug.cc: Same.
1754         * src/locale.cc: Same.
1755         * src/locale_init.cc: Same.
1756         * src/localename.cc: Same.
1757         * config/locale/gnu/ctype_members.cc: Same.
1758         * config/locale/gnu/numeric_members.cc: Same.
1759         * testsuite/testsuite_abi.cc: Same.
1760         * testsuite/testsuite_hooks.cc: Same.
1761         
1762 2004-05-13  Jonathan Wakely  <redi@gcc.gnu.org>
1763         
1764         * docs/html/abi.html: Document effect of -fabi-version on value
1765         of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
1766         Fix markup.
1768 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
1770         PR libstdc++/15074      
1771         * docs/html/faq/index.html: Update docs for libsupc++ usage.
1773 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
1775         PR libstdc++/15412
1776         * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
1777         __gnu_internal.
1778         (_GLIBCXX_mutex_address): Same.
1779         (_GLIBCXX_once): Same.  
1780         (_GLIBCXX_mutex_init): Same.
1781         (_GLIBCXX_mutex_address_init): Same.
1782         
1783 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
1784         
1785         * docs/html/abi.html: New.
1786         * docs/html/abi.txt: Remove.
1787         * docs/html/documentation.html: Add link.
1788         * testsuite/Makefile.am: Add files.
1789         * testsuite/Makefile.in: Regenerated.
1790         * testsuite/abi_check.cc: Move and modify code into...
1791         * testsuite/testsuite_abi.cc: Add.
1792         * testsuite/testsuite_abi.h: Add.
1794         * docs/html/17_intro/TODO: Update.
1795         * include/bits/stl_pair.h: Format.
1796         
1797 2004-05-06  Matthias Klose  <doko@debian.org>
1799         * include/backward/iterator.h:  Add GPL copyright info,
1800         with exception clause.
1801         * include/bits/boost_concept_check.h: Likewise.
1802         * include
1803         * libsupc++/tinfo.h: Likewise.
1804         * po/string_literals.cc: Likewise.
1805         
1806 2004-05-03  Andreas Tobler  <a.tobler@schweiz.ch>
1808         * acinclude.m4: Replace -W with more speaking -Wextra.
1809         * configure: Rebuilt.
1811 2004-05-03  Paolo Carlini  <pcarlini@suse.de>
1813         Optimize locale::_M_impl->_M_names for the most common cases:
1814         !_M_names[0] means unnamed; !_M_names[1] means all the categories
1815         the same name (_M_names[0] && _M_names[1] means that the full set
1816         of _M_names must be processed, the general case).
1817         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
1818         Tweak, saving work when !_M_names[1].
1819         (locale::locale(const locale&, _Facet*): Simplify: now just setting
1820         _M_names[0] = 0 means unnamed.
1821         * src/locale.cc (locale::operator==): Deal first with the common,
1822         easy cases, otherwise fall back to locale::name().
1823         (locale::name()): Tweak, if !_M_names[0] just return "*".
1824         (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
1825         copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
1826         * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
1827         * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
1828         Simplify when !std::strchr, just updating _M_names[0]; clean up.
1829         (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
1830         for the general case (full set of names), then do the usual work;
1831         clean up.
1833         * src/locale.cc (locale::name()): Reserve space in __ret.
1834         * src/locale_init.cc (locale::global(const locale&)): Save
1835         the name in a temporary.
1836         * src/localename.cc (locale::locale(const char*)): Reserve space
1837         in __str.
1839 2004-04-29  Paolo Carlini  <pcarlini@suse.de>
1841         * src/locale.cc (locale::operator==): Always avoid constructing
1842         locale::name(), directly compare pairs of _M_names.
1844 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
1846         * include/bits/istream.tcc: Fix comment.
1848 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
1850         * include/bits/stl_vector.h: Trivial formatting fixes.
1851         * include/bits/vector.tcc: Likewise.
1853 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
1855         PR libstdc++/15002 (continued again)
1856         * include/bits/istream.tcc (getline(basic_istream<>&,
1857         basic_string<>&, _CharT)): Use a temporary buffer, thus
1858         avoiding reallocation for common case.
1860         * include/bits/basic_string.tcc (_S_construct(_InIterator,
1861         _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
1862         of temporary buffer to a power of two.
1864         * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
1866 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
1868         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
1869         New.
1870         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
1871         Likewise.
1872         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
1874 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
1875             Petur Runolfsson  <peturr02@ru.is>
1877         PR libstdc++/15002 (continued)
1878         * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
1879         streamsize, char_type)): Use traits::find/copy in a loop to speed
1880         up greatly the function in the common case (I/O buffer size >> 1).
1882 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
1884         * testsuite/27_io/basic_istream/getline/char/4.cc: New. 
1886         * include/bits/istream.tcc (getline(basic_istream<>&,
1887         basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
1888         of sbumpc(), consistently with the other functions, thus also
1889         dealing correctly with the case of exceeded string::max_size().
1891 2004-04-24  Matthias Klose  <doko@debian.org>
1893         Jonathan Wakely  <cow@compsoc.man.ac.uk>
1894         * docs/html/configopts.html: Fix reference to allocator config option.
1896 2004-04-23  Andrew Pinski  <pinskia@physics.uc.edu>
1898         * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
1899         * configure: Regenerate.
1901 2004-04-23  Daniel Jacobowitz  <drow@mvista.com>
1903         PR libstdc++/15047, libstdc++/11610
1904         * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
1905         (libstdc++_init): Don't pass outdir to v3-copy-files.
1907 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
1909         * include/bits/deque.tcc: Trivial formatting fixes.
1910         * include/bits/stl_deque.h: Likewise.
1911         * include/bits/stl_list.h: Likewise.
1912         * include/bits/stl_tree.h: Likewise.
1914 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
1915             Andrew Pinski  <pinskia@physics.uc.edu>
1917         * include/bits/basic_string.tcc (_M_mutate): Don't compute
1918         __src unnecessarily.
1920 2004-04-19  Benjamin Kosnik  <bkoz@redhat.com>
1922         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc: 
1923         Clarify assertion, set test variable to false before assert.
1924         * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
1925         * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
1926         * testsuite/27_io/ios_base/storage/2.cc: Same.
1927         
1928         * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
1929         function returns.
1930         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
1931         * testsuite/27_io/fpos/14320-3.cc: Same.
1932         
1933         * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
1934         * testsuite/27_io/fpos/1.cc: Same.
1935         * testsuite/27_io/basic_stringstream/2.cc: Same.
1936         * testsuite/27_io/basic_stringbuf/4.cc: Same.
1937         * testsuite/27_io/basic_stringbuf/1.cc: Same.
1938         * testsuite/27_io/basic_stringbuf/2.cc: Same.
1939         * testsuite/27_io/basic_streambuf/2.cc: Same.
1940         * testsuite/27_io/basic_ostringstream/2.cc: Same.
1941         * testsuite/27_io/basic_ostream/2.cc: Same.
1942         * testsuite/27_io/basic_ofstream/2.cc: Same.
1943         * testsuite/27_io/basic_istringstream/2.cc: Same.
1944         * testsuite/27_io/basic_istream/2.cc: Same.
1945         * testsuite/27_io/basic_iostream/2.cc: Same.
1946         * testsuite/27_io/basic_ios/2.cc: Same.
1947         * testsuite/27_io/basic_ifstream/2.cc: Same.
1948         * testsuite/27_io/basic_fstream/2.cc: Same.
1949         * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
1951         * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
1952         unsigned against zero.
1953         * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
1954         * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
1956         * testsuite/18_support/new_delete_placement.cc: Initialize
1957         variables before first use.
1958         * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
1959         * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
1960         * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
1961         * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc: 
1962         Same.
1963         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
1964         * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc: 
1965         Same.
1966         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
1967         * testsuite/27_io/types/2.cc: Same.
1969         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
1970         file name.      
1971         * testsuite/27_io/fpos/14775.cc: Same.
1972         
1973 2004-04-19  Paolo Carlini  <pcarlini@suse.de>
1975         PR libstdc++/15002 (partial)
1976         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
1977         Special case __n2 == 1, not calling traits_type::assign/copy. 
1979 2004-04-17  Benjamin Kosnik  <bkoz@redhat.com>
1981         * include/bits/stl_bvector.h: Use _M_impl._M_start.
1982         
1983 2004-04-16  Benjamin Kosnik  <bkoz@redhat.com>
1984         
1985         * include/bits/c++config (_GLIBCXX_STD): New.
1986         * src/list.cc: Use it.
1987         * include/std/std_bitset.h: Same.
1988         * include/bits/vector.tcc: Same.
1989         * include/bits/stl_set.h: Same.
1990         * include/bits/stl_multiset.h: Same.
1991         * include/bits/stl_multimap.h: Same.
1992         * include/bits/stl_map.h: Same.
1993         * include/bits/stl_list.h: Same.
1994         * include/bits/stl_vector.h: Same.
1995         * include/bits/stl_bvector.h: Same.
1996         * include/bits/stl_deque.h: Same.
1997         * include/bits/deque.tcc: Same.
1998         * include/bits/list.tcc: Same.
1999         * include/debug/vector: Same.
2000         * include/debug/set.h: Same.
2001         * include/debug/multiset.h: Same.
2002         * include/debug/multimap.h: Same.
2003         * include/debug/map.h: Same.
2004         * include/debug/list: Same.
2005         * include/debug/deque: Same.
2006         * include/debug/bitset: Same.   
2007         * include/debug/formatter.h (__gnu_debug): Remove using directive.
2008         Add using declaration for std::type_info.
2009         * include/debug/safe_iterator.h: Add using declaration for
2010         std::iterator_traits and std::pair.
2011         * src/debug_list.cc: New.
2012         * src/Makefile.am: Add debug_list.cc.
2013         * src/Makefile.in: Regenerate.
2014         * config/linker-map.gnu: Add _List_node_base exports for std and
2015         __gnu_norm.
2017         * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
2018         idiom that other containers use.
2019         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2020                         
2021 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
2023         PR libstdc++/14975
2024         * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
2025         in case of error.
2026         * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
2027         * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
2029 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
2031         * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
2032         used anymore.
2033         * config.h.in: Regenerate.
2035 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
2037         * config/locale/generic/monetary_members.cc
2038         (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
2039         btowc unnecessarily, just cast to wchar_t (the concerned chars
2040         all belong to the basic character set).
2041         * config/locale/generic/numeric_members.cc
2042         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2043         * config/locale/gnu/monetary_members.cc
2044         (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
2045         * config/locale/gnu/numeric_members.cc
2046         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2048 2004-04-15  Paolo Carlini  <pcarlini@suse.de>
2050         * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
2051         avoid constructing unnecessarily this->name().
2053 2004-04-14  Zack Weinberg  <zack@codesourcery.com>
2055         * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
2056         Change definition of CXX to use $(shell) instead of backticks.
2057         * testsuite/Makefile.in: Regenerate.
2059 2004-04-12  Dhruv Matani  <dhruvbird@gmx.net>
2061         * testsuite/performance/20_util/allocator/list_sort_search.cc:
2062         Minor formatting fixes.
2063         * testsuite/performance/20_util/allocator/map_mt_find.cc:
2064         Likewise.
2066 2004-04-12  Paolo Carlini <pcarlini@suse.de>
2068         * config/locale/gnu/numeric_members.cc
2069         (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
2070         in __uselocale, since btowc is called for chars belonging to
2071         the basic character set.
2073 2004-04-09  Paolo Carlini  <pcarlini@suse.de>
2075         * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
2076         * testsuite/22_locale/messages/members/char/2.cc: Ditto.
2077         * testsuite/22_locale/messages/members/char/3.cc: Ditto.
2078         * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
2079         * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
2080         * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
2081         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
2082         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
2083         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
2084         * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
2085         * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
2086         * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
2087         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
2088         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
2089         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
2090         * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
2091         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
2093 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
2095         * config/locale/generic/time_members.cc
2096         (__timepunct<char>::_M_initialize_timepunct,
2097         __timepunct<wchar_t>::_M_initialize_timepunct): the correct
2098         _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
2099         * config/locale/gnu/time_members.cc
2100         (__timepunct<char>::_M_initialize_timepunct,
2101         __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
2102         * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
2103         * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
2105         * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
2106         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
2107         * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
2108         * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
2109         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
2110         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
2111         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
2112         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
2113         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
2114         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
2115         * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
2116         * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
2117         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
2118         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
2119         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
2120         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
2121         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
2122         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
2123         * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
2124         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
2125         * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
2126         * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
2127         * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
2128         * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
2129         * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
2130         * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
2131         * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
2132         * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
2133         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
2134         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
2135         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
2136         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
2137         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
2138         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
2139         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
2140         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
2142         * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
2144 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
2146         * config/locale/gnu/monetary_members.cc
2147         (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
2148         _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
2149         and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
2150         _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
2151         * config/locale/gnu/numeric_members.cc
2152         (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
2153         and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
2155 2004-04-06  Benjamin Kosnik  <bkoz@redhat.com>
2157         Fixups for EDG front end.
2158         * include/ext/rope: Instead of non-existent function
2159         _Data_allocate, use allocator's allocate. Use this.
2160         (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
2161         enumerations from _Rope_RopeRep here.
2162         * include/ext/ropeimpl.h: Same.
2163         * src/ext-inst.cc (_S_min_len): Fix up definition.
2165         * config/locale/gnu/ctype_members.cc: Qualify base class members
2166         with this.
2167         * config/locale/generic/ctype_members.cc: Same.
2168         * config/locale/gnu/messages_members.h: Same.
2169         * config/locale/generic/messages_members.h: Same.
2170         * src/ctype.cc: Same.
2171         * include/bits/codecvt.h: Same.
2173         * include/bits/boost_concept_check.h: Declare.
2174         (__error_type_must_be_an_unsigned_integer_type): Remove this.
2175         (__error_type_must_be_an_integer_type): Remove this.
2176         (__error_type_must_be_a_signed_integer_type): Remove this.
2178         * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
2180         * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
2181         specification to definition.
2182         (__cxa_allocate_exception): Same.
2183         * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
2184         * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
2185         (__cxa_get_globals): Same.
2187         * libsupc++/del_op.cc: Add comment about freestanding.
2189 2004-04-05  Paolo Carlini  <pcarlini@suse.de>
2191         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2192         The critical section is actually very small, only two assignments.
2194 2004-04-04  Paolo Carlini  <pcarlini@suse.de>
2195             Petur Runolfsson  <peturr02@ru.is>
2197         * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
2198         adapted from libstdc++/11378.
2200 2004-04-03  Paolo Carlini  <pcarlini@suse.de>
2202         * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
2203         some duplicated code.
2204         (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
2205         in the single threaded case.
2206         * testsuite/performance/20_util/allocator/list_sort_search.cc:
2207         Reorder and renumber the tests consistently with the other testfiles.
2208         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
2209         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
2210         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
2212 2004-04-02  Paolo Carlini  <pcarlini@suse.de>
2214         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2215         Rearrange arithmetic to avoid computing two divisions at
2216         each deallocation.
2218 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
2220         * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
2221         Streamline the second half, wrapping it in a single
2222         '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
2223         conditionals inside loops.
2225 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
2227         PR libstdc++/14775
2228         * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
2229         * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
2230         GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
2231         to _GLIBCXX_RES_LIMITS.
2232         (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
2233         HAVE_LIMIT_*.
2234         * testsuite/testsuite_hooks.h: Declare set_file_limit.
2235         * testsuite/testsuite_hooks.cc: Define it, using getrlimit
2236         and setrlimit(RLIMIT_FSIZE).
2237         * testsuite/27_io/fpos/14775.cc: New.
2238         * config.h.in: Regenerate.
2239         * configure: Likewise.
2241 2004-03-31  Paolo Carlini  <pcarlini@suse.de>
2243         * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
2244         In v3 uses of sscanf, the special floating-point numbers INF,
2245         INFINITY, etc., cannot occur in input, therefore, if the latter
2246         is too large, ERANGE is always stored in errno, no need of finitel.
2248 2004-03-30  Benjamin Kosnik  <bkoz@redhat.com>
2250         PR libstdc++/14783
2251         * include/bits/stl_tree.h: Adjust initialization list order.
2253 2004-03-29  Loren J. Rittle  <ljrittle@acm.org>
2255         * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
2257 2004-03-29  Paolo Carlini  <pcarlini@suse.de>
2259         * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
2260         on allocator behavior, the memory pointed by data2 may well be not
2261         trashed.
2263 2004-03-28  Chavdar Botev  <cbotev@yahoo.com>
2265         PR libstdc++/14245
2266         * include/bits/basic_string.tcc
2267         (basic_string::basic_string(const basic_string&)): Pass to
2268         _Rep::_M_grab the actual allocator of the string being constructed
2269         not the default constructed one.
2271 2004-03-27  Benjamin Kosnik  <bkoz@redhat.com>
2273         libstdc++ PR/13598
2274         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
2275         (__enc_traits::_M_destroy): New.
2276         (__enc_traits::~__enc_traits): Use it.
2277         (__enc_traits::operator=): Use _M_destroy, _M_init.
2278         (__enc_traits::__enc_traits): Same.
2280 2004-03-27  Petur Runolfsson  <peturr02@ru.is>
2282         * testsuite/ext/enc_filebuf/char/13598.cc: New.
2284 2004-03-27  Paolo Carlini  <pcarlini@suse.de>
2286         * include/ext/mt_allocator.h: Uglify consistently names of
2287         variables, members and classes; tidy.
2289 2004-03-27  Dhruv Matani  <dhruvbird@gmx.net>
2291         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2292         Deallocation loop rewrote.
2294 2004-03-26  Paolo Carlini  <pcarlini@suse.de>
2296         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
2297         __mt_alloc<>::deallocate): Protect two instances of
2298         block->thread_id with __GTHREADS.
2300 2004-03-25  Gawain Bolton  <gp.bolton@computer.org>
2302         * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
2303         default argument in constructors.
2304         (_Rb_tree::_M_empty_initialize): Remove.
2306 2004-03-25  Benjamin Kosnik  <bkoz@redhat.com>
2308         * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
2309         * testsuite/23_containers/set/operators/1_neg.cc: Same.
2311 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
2313         * include/bits/cpp_type_traits.h: Changed __is_pod
2314         completely. Now, it does not use any of the previous type_traits
2315         to detect the pod types, and it also detects function pointers as
2316         POD types.
2318         * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
2319         which encapsulates the internal implementation of an rb_tree. Made
2320         the allocator a base class of this class instead of the rb_tree,
2321         which was not conforming. This _Rb_tree_impl class is also
2322         specialized on whether the _Compare parameter is a POD type or
2323         not. If so, then it maintains the comparison function as a data
2324         member, otherwise it makes the _Compare parameter a base class of
2325         itself. Also, _M_key_compare is now a function instead of a data
2326         member, so that the above trick can work properly. Delegated the
2327         initialization of the other data members to this newly created
2328         class. Also, now other member functions of rb_tree must refer to
2329         _M_key_compare as _M_impl._M_key_compare(). The other data members
2330         (*) can be referenced to as _M_impl.(*), where
2331         (*) includes _M_header, and _M_node_count.
2333 2004-03-25  Paolo Carlini  <pcarlini@suse.de>
2335         * include/ext/mt_allocator.h (__mt_alloc<>::tune):
2336         Add _M_min_bin, the size in bytes of the smallest bin.
2337         (__mt_alloc<>::tune()): Tweak accordingly.
2338         (__mt_alloc<>::tune(size_t, ...)): Likewise.
2339         (__mt_alloc<>::block_record): Change to a union: members next
2340         and thread_id are never used at the same time.
2341         (__mt_alloc<>::allocate): Update consistently.
2342         (__mt_alloc<>::deallocate): Likewise.
2343         (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
2344         _S_bin_size for the configurable _M_min_size.
2346 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
2348         * include/bits/stl_list.h: Created a _List_impl class and made it
2349         derive from the allocator, instead of the list deriving from the
2350         allocator class, which was not conformant. Changed all references
2351         from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
2352         as above (changed all references to the concerned variables).
2354 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
2356         * include/bits/stl_deque.h: Created a _Deque_impl class and made
2357         it derive from the allocator, instead of the deque deriving from
2358         the allocator class, which was not conformant. Changed all
2359         references to the _M_start, _M_finish, _M_map, and _M_map_size to
2360         _M_impl.*.
2361         (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
2362         qualification in 2 places where it was missing.
2363         (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
2364         above.
2365         * include/bits/deque.tcc: Same as above (changed all references to
2366         the concerned variables).
2368 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
2370         * include/bits/stl_vector.h: Created a _Vector_impl class and made
2371         it derive from the allocator, instead of the _Vector_base class,
2372         deriving from the allocator which was not conformant. Changed all
2373         references to the _M_start, _M_finish, and _M_end_of_storage to
2374         _M_impl.*.
2375         * include/bits/vector.tcc: Same as above (changed all references
2376         to the concerned variables).
2378 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
2380         * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
2381         * testsuite/23_containers/list/cons/clear_allocator.cc: New.
2382         * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
2384 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
2386         * include/ext/malloc_allocator.h: Fixed the construct function to
2387         call global placement new instead of assignment. Added a check
2388         after the return from malloc to check whether returned pointer is
2389         NULL, and if so, throw std::bad_alloc().
2390         * include/ext/debug_allocator.h: Added a check in the deallocate
2391         function to check whether the user has passed a NULL pointer or
2392         not.
2394 2004-03-24  Benjamin Kosnik  <bkoz@redhat.com>
2396         * docs/html/20_util/allocator.html: Add bitmap_allocator links.
2398 2004-03-24  Andreas Schwab  <schwab@suse.de>
2400         * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
2401         warning from IA64 assembler.
2403 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
2405         * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
2406         function call __builtin_ctz instead of the while loop.
2407         (allocate) -> If condition has __builtin_expect.
2408         (deallocate) -> Ditto.
2409         Renamed a few left-over variables and typedefs according to the
2410         C++STYLE mentioned in the documentation.
2411         Protected calls to __gthread* by __gthread_active_p(), whose value
2412         is cached in the local variable __threads_active.
2414 2004-03-24  Felix Yen  <fwy@alumni.brown.edu>
2416         * testsuite/performance/20_util/allocator/producer_consumer.cc:
2417         Use linear algorithm for producer.
2419 2004-03-24  Paolo Carlini  <pcarlini@suse.de>
2421         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
2422         __mt_alloc<>::deallocate): Avoid redundant conditionals.
2424 2004-03-23  Benjamin Kosnik  <bkoz@redhat.com>
2426         * include/bits/locale_facets.h: Tweaks for 80 column.
2427         (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
2428         (__moneypunct_cache::_M_cache): Same.
2429         (num_get): Don't inherit from __num_base.
2430         (num_put): Same.
2431         (money_get): Don't inherit from money_base.
2432         (money_put): Same.
2433         (__timepunct::_M_am_pm_format): New.
2434         (time_get::_M_extract_num): Return iterator, use ios_base as argument.
2435         (time_get::_M_extract_name): Same.
2436         (time_get::_M_extract_via_format): Same.
2437         * include/bits/locale_facets.tcc: Tweaks for 80 column.
2438         Use _M_getloc instead of getloc.
2439         * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
2440         * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
2441         * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
2443 2004-03-22  Paolo Carlini  <pcarlini@suse.de>
2445         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
2446         * configure: Regenerate.
2447         * config/allocator/pool_allocator_base.h: New.
2448         * include/ext/pool_allocator.h: Convert to a standard-conforming
2449         allocator.
2450         * src/allocator.cc: Tweak instantiations.
2451         * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
2452         * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
2453         * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
2454         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
2455         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
2456         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
2458 2004-03-22  Hans-Peter Nilsson  <hp@axis.com>
2460         * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
2461         inline" and attribute-unused.  Qualify parameter __mem with
2462         "volatile".
2463         (__exchange_and_add): Ditto.  Add back memory clobber to asm.
2465 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
2467         * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
2468         Remove junk.
2469         * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
2470         Likewise.
2471         * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
2472         Likewise.
2473         * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
2474         Likewise.
2475         * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
2476         Likewise.
2477         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
2478         Likewise.
2479         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
2480         Likewise.
2481         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
2482         Likewise.
2483         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
2484         Likewise.
2485         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
2486         Likewise.
2488 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
2490         * include/std/std_valarray.h: Document DR389 [Ready].
2491         * docs/html/ext/howto.html: Add an entry for DR389.
2493 2004-03-19  Michael Eager  <eager@mvista.com>
2495         * config/cpu/mips/atomicity.h:  Prevent reg loads between LL and
2496         SC instructions.
2498 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
2500         * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
2501         static_cast-s.
2502         * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
2503         * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
2504         * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
2505         * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
2506         * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
2507         * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
2508         * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
2509         * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
2510         * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
2512 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
2513             Petur Runolfsson  <peturr02@ru.is>
2515         PR libstdc++/12077
2516         * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
2517         no way to find out the conversion used by the underlying FILE*.
2518         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
2519         * testsuite/27_io/objects/char/9.cc: Tweak.
2521 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
2523         PR libstdc++/14648
2524         * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
2525         memory allocation/deallocation calls.
2526         * testsuite/ext/14648.cc: New.
2528 2004-03-19  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
2530         PR libstdc++/14647
2531         * include/backward/bvector.h (bit_vector): Allocator is in std
2532         namespace.
2534 2004-03-19  Phil Edwards  <phil@codesourcery.com>
2536         * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT):  Set LIBICONV,
2537         not libiconv.  SUBST this variable as well.
2538         * testsuite/Makefile.am (site.exp):  New target, based on that
2539         created by automake.  Also set libiconv.
2541         * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
2542         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2543         testsuite/Makefile.in:  Regenerate.
2545 2004-03-16  Benjamin Kosnik  <bkoz@redhat.com>
2547         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
2548         new_allocator for all hosts.
2549         * configure: Regenerate.
2551 2004-03-16  Paolo Carlini  <pcarlini@suse.de>
2553         * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
2554         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2556 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
2558         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2559         Adjust the logic underlying the parsing of symbol to deal
2560         correctly with an optional sign component (i.e., when either
2561         negative_sign or positive_sign is empty)
2562         * testsuite/22_locale/money_get/get/char/19.cc: New.
2563         * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
2565 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
2567         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2568         Do not accept an incomplete currency symbol.
2569         * testsuite/22_locale/money_get/get/char/18.cc: New.
2570         * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
2572 2004-03-13  Benjamin Kosnik  <bkoz@redhat.com>
2574         * config/allocator: New.
2575         * config/allocator/bitmap_allocator_base.h: New.
2576         * config/allocator/malloc_allocator_base.h: New.
2577         * config/allocator/mt_allocator_base.h: New.
2578         * config/allocator/new_allocator_base.h: New.
2579         * include/bits/allocator.h: Include c++allocator.h.
2580         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
2581         * aclocal.m4: Regenerate.
2582         * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
2583         * configure: Regenerate.
2584         * include/Makefile.am (host_headers_extra): Add c++allocator.h.
2585         * include/Makefile.in: Regenerate.
2586         * docs/html/configopts.html: Add enable-libstdcxx-allocator.
2588 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
2590         * include/bits/allocator.h: Revert.
2592 2004-03-12  Paolo Carlini  <pcarlini@suse.de>
2594         * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
2595         * include/bits/gslice_array.h: Add comment about DR 253.
2596         * include/bits/indirect_array.h: Likewise.
2597         * include/bits/mask_array.h: Likewise.
2598         * include/bits/slice_array.h: Likewise.
2600 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
2602         * testsuite/20_util/allocator/14176.cc: New.
2603         * include/ext/mt_allocator.h: Formatting fixes.
2605 2004-03-11  Dhruv Matani  <dhruvbird@HotPOP.com>
2607         * include/Makefile.am (ext_headers): Add
2608         ${ext_srcdir}/bitmap_allocator.h .
2609         * include/Makefile.in: Regenerate.
2610         * docs/html/ext/ballocator_doc.txt: New file.
2611         * include/ext/bitmap_allocator.h: New file.
2612         * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
2613         test.
2614         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
2615         * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
2616         test for the bitmap_allocator<>.
2617         * testsuite/performance/20_util/allocator/insert.cc: Likewise.
2618         * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
2619         * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
2621 2004-03-11  Paolo Carlini  <pcarlini@suse.de>
2623         * include/std/std_complex.h (pow(const complex&, const _Tp&),
2624         pow(const _Tp&, const complex&), pow(const complex&,
2625         const complex&)): Fully qualify with std:: a few calls.
2626         * testsuite/26_numerics/complex/13450.cc: Minor tweak.
2628 2004-03-11  Steven Bosscher  <stevenb@suse.de>
2630         PR libstdc++/11706
2631         * include/c_std/cmath.tcc (__cmath_power): Define inline.
2633 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
2635         * configure.ac: Bump AC_PREREQ to 2.59.
2637 2004-03-10  Paolo Carlini  <pcarlini@suse.de>
2639         * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
2641 2004-03-10  Paul Kienzle  <pkienzle@nist.gov>
2642             Paolo Carlini  <pcarlini@suse.de>
2644         PR libstdc++/13450
2645         * include/std/std_complex.h (pow(const complex&, const _Tp&),
2646         pow(const _Tp&, const complex&)): Use cmath pow only when safe.
2647         * testsuite/26_numerics/complex/13450.cc: New.
2649         * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
2650         * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
2652 2004-03-10  Jerry Quinn  <jlquinn@optonline.net>
2654         PR libstdc++/3247
2655         * include/bits/gslice_array.h (gslice_array()): Make public.
2656         (operator=(gslice_array)): Make public.  Implement.
2657         * include/bits/indirect_array.h (indirect_array()): Make public.
2658         * include/bits/mask_array.h (mask_array()): Make public.
2659         (operator=(mask_array)): Make public.  Implement.
2660         * include/bits/valarray_array.tcc (__valarray_copy):
2661         Comment.  Add versions for gslice_array and mask_array.
2662         * testsuite/26_numerics/valarray_subset_assignment.cc:  New test.
2664 2004-03-09  Benjamin Kosnik  <bkoz@redhat.com>
2666         * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
2667         non-weak systems.
2668         * testsuite/23_containers/vector/modifiers/swap.cc: Same.
2669         * testsuite/23_containers/set/modifiers/swap.cc: Same.
2670         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2671         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2672         * testsuite/23_containers/map/modifiers/swap.cc: Same.
2673         * testsuite/23_containers/list/modifiers/swap.cc: Same.
2675         * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
2677 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
2679         PR c++/13658
2680         * testsuite/23_containers/deque/modifiers/swap.cc: New.
2681         * testsuite/23_containers/list/modifiers/swap.cc: New.
2682         * testsuite/23_containers/map/modifiers/swap.cc: New.
2683         * testsuite/23_containers/multimap/modifiers/swap.cc: New.
2684         * testsuite/23_containers/multiset/modifiers/swap.cc: New.
2685         * testsuite/23_containers/set/modifiers/swap.cc: New.
2686         * testsuite/23_containers/vector/modifiers/swap.cc: New.
2688 2004-03-08  Petur Runolfsson  <peturr02@ru.is>
2690         PR libstdc++/12658
2691         * testsuite/22_locale/locale/cons/12658_thread.cc: New.
2693 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
2695         * docs/html/ext/howto.html: Add entry for DR 103 [WP].
2696         * include/bits/stl_multiset.h: Add comment about DR 103.
2697         * include/bits/stl_set.h: Likewise.
2699 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
2701         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2702         The value _space_ indicates that at least one space is required
2703         at that position.
2704         * testsuite/22_locale/money_get/get/char/17.cc: New.
2705         * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
2707         * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
2708         * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
2710         * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
2711         Remove redundant conditional on __str.size().
2713 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
2715         * include/bits/allocator.h: Switch defaults to mt_alloc.
2717 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
2719         * include/ext/mt_allocator.h (_S_initialize): If
2720         !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
2722 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
2724         PR libstdc++/12658
2725         * src/locale_init.cc (locale::locale): Lock critical regions with
2726         external mutexes.
2727         (locale::global): Same.
2728         * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
2729         Add in once bits for cases without __GTHREAD_MUTEX_INIT.
2730         (__glibcxx_mutex_lock): Same.
2732         * config/cpu/generic/atomicity.h: Remove
2733         _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
2734         * src/misc-inst.cc: Move all locking bits out of this file.
2736         * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
2737         * src/misc-inst.cc: Same.
2738         * config/cpu/hppa/atomicity.h: Same.
2740         * config/linker-map.gnu: Remove types in the signature of atomic
2741         exports, as they may vary.
2743 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
2745         * include/bits/locale_facets.tcc: Tweak the comment preceding
2746         has_facet: doesn't throw.
2748 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
2750         * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
2751         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2752         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2753         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2754         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2755         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2756         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2757         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2759 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
2761         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2762         num_get<>::_M_extract_int, num_get<>::do_get(bool&),
2763         __pad<>::_S_pad): Prefer plain operator== to traits::eq().
2764         * testsuite/testsuite_character.h (struct __gnu_test::character):
2765         Provide operator==.
2766         * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
2767         Likewise.
2769 2004-03-05  Paolo Carlini  <pcarlini@suse.de>
2771         * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
2773 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
2775         * testsuite/23_containers/multiset/insert/1.cc: Test result string.
2777         * testsuite/23_containers/bitset/invalidation/1.cc: Main always
2778         returns 0.
2779         * testsuite/23_containers/deque/invalidation/4.cc: Same.
2780         * testsuite/23_containers/list/invalidation/1.cc: Same.
2781         * testsuite/23_containers/list/invalidation/2.cc: Same.
2782         * testsuite/23_containers/list/invalidation/3.cc: Same.
2783         * testsuite/23_containers/list/invalidation/4.cc: Same.
2784         * testsuite/23_containers/map/invalidation/2.cc: Same.
2785         * testsuite/23_containers/multimap/invalidation/1.cc: Same.
2786         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2787         * testsuite/23_containers/multiset/invalidation/1.cc: Same.
2788         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2789         * testsuite/23_containers/set/invalidation/1.cc: Same.
2790         * testsuite/23_containers/set/invalidation/2.cc: Same.
2791         * testsuite/23_containers/vector/invalidation/1.cc: Same.
2792         * testsuite/23_containers/vector/invalidation/2.cc: Same.
2793         * testsuite/23_containers/vector/invalidation/3.cc: Same.
2794         * testsuite/23_containers/vector/invalidation/4.cc: Same.
2796 2004-03-04  Paolo Carlini  <pcarlini@suse.de>
2798         * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
2799         CXXFLAGS_save.
2800         * testsuite/lib/libstdc++.exp: Don't add it conditionally to
2801         DEFAULT_CXXFLAGS.
2802         * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
2803         from the dg-options.
2804         * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
2805         * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
2806         * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
2807         * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
2808         * testsuite/23_containers/vector/resize/1.cc: Likewise.
2809         * testsuite/26_numerics/complex_value.cc: Likewise.
2810         * testsuite/27_io/ios_base/storage/1.cc: Likewise.
2811         * testsuite/27_io/ios_base/storage/2.cc: Likewise.
2812         * testsuite/27_io/ios_base/storage/3.cc: Likewise.
2813         * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
2814         * testsuite/27_io/objects/char/5.cc: Likewise.
2815         * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
2816         * testsuite/backward/11460.cc: Likewise.
2817         * testsuite/thread/pthread7-rope.cc: Likewise.
2819         * testsuite/21_strings/basic_string/compare/char/1.cc: Add
2820         missing test variable.
2821         * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
2822         missing test variable.
2824 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
2826         * testsuite/20_util/allocator/1.cc: Provide explicit
2827         instantiations for non-weak systems.
2828         * testsuite/20_util/binders.cc: Same.
2829         * testsuite/20_util/allocator/8230.cc: Same.
2830         * testsuite/20_util/allocator/10378.cc: Same.
2831         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
2832         * testsuite/22_locale/ctype/is/char/2.cc: Same.
2833         * testsuite/thread/pthread7-rope.cc: Same.
2834         * testsuite/thread/pthread6.cc: Same.
2835         * testsuite/thread/pthread5.cc: Same.
2836         * testsuite/thread/pthread4.cc: Same.
2837         * testsuite/thread/pthread1.cc: Same.
2838         * testsuite/ext/rope.cc: Same.
2839         * testsuite/ext/hash_set.cc: Same.
2840         * testsuite/ext/hash_map.cc: Same.
2841         * testsuite/ext/concept_checks.cc: Same.
2842         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
2843         * testsuite/25_algorithms/unique/2.cc: Same.
2844         * testsuite/25_algorithms/unique/1.cc: Same.
2845         * testsuite/25_algorithms/rotate.cc: Same.
2846         * testsuite/25_algorithms/min_max.cc: Same.
2847         * testsuite/25_algorithms/equal.cc: Same.
2848         * testsuite/24_iterators/rel_ops.cc: Same.
2849         * testsuite/24_iterators/iterator.cc: Same.
2850         * testsuite/24_iterators/insert_iterator.cc: Same.
2851         * testsuite/24_iterators/front_insert_iterator.cc: Same.
2852         * testsuite/24_iterators/back_insert_iterator.cc: Same.
2853         * testsuite/23_containers/vector/resize/1.cc: Same.
2854         * testsuite/23_containers/vector/modifiers/2.cc: Same.
2855         * testsuite/23_containers/vector/modifiers/1.cc: Same.
2856         * testsuite/23_containers/vector/invalidation/4.cc: Same.
2857         * testsuite/23_containers/vector/invalidation/3.cc: Same.
2858         * testsuite/23_containers/vector/invalidation/2.cc: Same.
2859         * testsuite/23_containers/vector/invalidation/1.cc: Same.
2860         * testsuite/23_containers/vector/element_access/1.cc: Same.
2861         * testsuite/23_containers/vector/cons/6513.cc: Same.
2862         * testsuite/23_containers/vector/cons/3.cc: Same.
2863         * testsuite/23_containers/vector/cons/2.cc: Same.
2864         * testsuite/23_containers/vector/cons/1.cc: Same.
2865         * testsuite/23_containers/vector/capacity/8230.cc: Same.
2866         * testsuite/23_containers/vector/capacity/1.cc: Same.
2867         * testsuite/23_containers/vector/bool/6886.cc: Same.
2868         * testsuite/23_containers/stack/members/7158.cc: Same.
2869         * testsuite/23_containers/set/invalidation/2.cc: Same.
2870         * testsuite/23_containers/set/invalidation/1.cc: Same.
2871         * testsuite/23_containers/queue/members/7157.cc: Same.
2872         * testsuite/23_containers/priority_queue/members/7161.cc: Same.
2873         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2874         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2875         * testsuite/23_containers/multiset/insert/1.cc: Same.
2876         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2877         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2878         * testsuite/23_containers/map/operators/1.cc: Same.
2879         * testsuite/23_containers/map/invalidation/2.cc: Same.
2880         * testsuite/23_containers/map/invalidation/1.cc: Same.
2881         * testsuite/23_containers/map/insert/1.cc: Same.
2882         * testsuite/23_containers/list/operators/4.cc: Same.
2883         * testsuite/23_containers/list/operators/3.cc: Same.
2884         * testsuite/23_containers/list/operators/2.cc: Same.
2885         * testsuite/23_containers/list/operators/1.cc: Same.
2886         * testsuite/23_containers/list/modifiers/3.cc: Same.
2887         * testsuite/23_containers/list/modifiers/2.cc: Same.
2888         * testsuite/23_containers/list/modifiers/1.cc: Same.
2889         * testsuite/23_containers/list/invalidation/4.cc: Same.
2890         * testsuite/23_containers/list/invalidation/3.cc: Same.
2891         * testsuite/23_containers/list/invalidation/2.cc: Same.
2892         * testsuite/23_containers/list/invalidation/1.cc: Same.
2893         * testsuite/23_containers/list/cons/9.cc: Same.
2894         * testsuite/23_containers/list/cons/8.cc: Same.
2895         * testsuite/23_containers/list/cons/7.cc: Same.
2896         * testsuite/23_containers/list/cons/6.cc: Same.
2897         * testsuite/23_containers/list/cons/5.cc: Same.
2898         * testsuite/23_containers/list/cons/4.cc: Same.
2899         * testsuite/23_containers/list/cons/3.cc: Same.
2900         * testsuite/23_containers/list/cons/2.cc: Same.
2901         * testsuite/23_containers/list/cons/1.cc: Same.
2902         * testsuite/23_containers/list/capacity/1.cc: Same.
2903         * testsuite/23_containers/deque/operators/1.cc: Same.
2904         * testsuite/23_containers/deque/invalidation/4.cc: Same.
2905         * testsuite/23_containers/deque/invalidation/3.cc: Same.
2906         * testsuite/23_containers/deque/invalidation/2.cc: Same.
2907         * testsuite/23_containers/deque/invalidation/1.cc: Same.
2908         * testsuite/23_containers/deque/cons/2.cc: Same.
2909         * testsuite/23_containers/deque/cons/1.cc: Same.
2911         * src/allocator.cc: Add char, wchar_t instantiations
2912         to match extern template declarations in memory.h.
2914 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
2916         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2917         Fix warning regression.
2919 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
2921         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2922         Deal properly with empty __digits and negative frac_digits,
2923         clean-up a bit.
2925 2004-03-03  Jonathan Wakely  <redi@gcc.gnu.org>
2927         * docs/html/documentation.html: Regenerate.
2929 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
2931         PR libstdc++/14320
2932         * include/bits/postypes.h (class streamoff): Remove, now
2933         streamoff is just typedef a 64 bit signed integer type.
2934         (class fpos): Tweak consistently.
2935         * testsuite/27_io/fpos/14320-1.cc: New.
2936         * testsuite/27_io/fpos/14320-2.cc: New.
2937         * testsuite/27_io/fpos/14320-3.cc: New.
2938         * testsuite/27_io/fpos/14320-4.cc: New.
2939         * testsuite/27_io/fpos/14320-5.cc: New.
2940         * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
2942 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
2944         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2945         Reorganize a bit the main parsing loop, thus early detecting
2946         an empty value component.
2947         * testsuite/22_locale/money_get/get/char/16.cc: New.
2948         * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
2950 2004-03-02  Benjamin Kosnik  <bkoz@redhat.com>
2952         Support automake 1.8.2
2953         * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
2954         * po/Makefile.am (EXTRA_DIST): New.
2955         * po/Makefile.in: Regenerate.
2956         * Makefile.in: Same.
2957         * include/Makefile.in: Same.
2958         * libmath/Makefile.in: Same.
2959         * libsupc++/Makefile.in: Same.
2960         * src/Makefile.in: Same.
2961         * testsuite/Makefile.in: Same.
2963         * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
2964         __GXX_WEAK__ instead of SUPPORTS_WEAK.
2965         (${host_builddir}/gthr-default.h): Same.
2966         (${host_builddir}/gthr.h): Same.
2967         * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
2968         _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
2969         -fno-weak.
2970         * aclocal.m4: Regenerate.
2971         * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
2972         * config.h.in: Regenerate.
2973         * configure: Same.
2975 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
2977         Support autoconf 2.59
2978         * acinclude.m4: Quote correctly.
2979         * aclocal.m4: Regenerate.
2980         * linkage.m4: Same.
2982 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
2984         * docs/html/test.html: Add multilib RUNTESTFLAGS example.
2986         * docs/html/18_support/howto.html: Add bit about writing to
2987         stderr, mostly by Zack.
2989 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
2991         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2992         money_get<>::do_get(string_type&)): ... and two more.
2994 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
2996         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2997         Fix thinkos in the switch from string_type& to string& as last
2998         argument.
3000 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
3002         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3003         Also when parsing exponent sign, first look for thousands_sep
3004         and decimal_point; tweak a bit.
3005         * testsuite/22_locale/num_get/get/char/15.cc: New.
3006         * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
3008         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3009         num_get<>::_M_extract_int): Reorder some conditionals.
3011 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
3013         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3014         Consistently with numpunct, enforce the requirements in
3015         22.2.6.3, p3 for the thousands separators; tweak a bit.
3016         * testsuite/22_locale/money_get/get/char/15.cc: New.
3017         * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
3019 2004-03-01  David Billinghurst <David.Billinghurst@riotinto.com>
3021         * testsuite/lib/libstdc++.exp (v3-list-tests): Use
3022         testsuite_files from correct multilib blddir when running
3023         testsuite.
3025 2004-02-29  Phil Edwards  <phil@codesourcery.com>
3027         * testsuite/Makefile.am (check-abi, check-abi-verbose):  Copy
3028         the summary file to the logfile.
3029         * testsuite/Makefile.in:  Regenerate.
3031 2004-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3033         * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
3034         volatile.
3035         * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
3036         __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
3038 2004-02-28  Paolo Carlini  <pcarlini@suse.de>
3040         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3041         According to 22.2.3.1, p2, 'units' may be followed by 'e' with
3042         no 'decimal-point' in the middle: in this case too we must fix
3043         up __found_grouping; slightly tweak.
3044         * testsuite/22_locale/num_get/get/char/14.cc: New.
3045         * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
3047 2004-02-27  Eric Christopher  <echristo@redhat.com>
3048             Phil Edwards  <phil@codesourcery.com>
3050         * testsuite/22_locale/collate/compare/wchar_t/2.cc,
3051         testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
3052         testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
3053         testsuite/22_locale/collate/hash/wchar_t/2.cc,
3054         testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
3055         testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
3056         testsuite/22_locale/collate/transform/wchar_t/2.cc,
3057         testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
3058         testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3059         Use dg-require-iconv.
3060         * testsuite/lib/libstdc++.exp:  Load target-supports.exp.
3062 2004-02-27  Phil Edwards  <phil@codesourcery.com>
3063             Eric Christopher  <echristo@redhat.com>
3065         * testsuite/config/default.exp:  Update with comments.
3066         (${tool}_target_compile):  New wrapper routine.
3067         * testsuite/lib/dg-options.exp:  New file, with dg-require-iconv.
3068         * testsuite/lib/libstdc++.exp:  Update with comments and cosmetic
3069         fixes.
3070         (load_gcc_lib, v3track):  New routines.
3071         (v3-init):  Rename to libstdc++_init.
3072         * testsuite/libstdc++-dg/normal.exp:  No longer call v3-init.
3073         Move DEFAULT_CXXFLAGS handling into libstdc++_init.
3075 2004-02-27  Benjamin Kosnik  <bkoz@redhat.com>
3077         * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
3079         * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
3081         * config/os/irix/irix5.2/atomicity.h: Merge..
3082         * config/os/irix/irix6.5/atomicity.h: Merge..
3083         * config/os/irix/atomicity.h: ...into this.
3084         * config/os/irix/atomic_word.h: New.
3085         * configure.host: Set atomic_word_dir for irix.
3087         * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
3088         * i386/atomicity.h: Same.
3089         * m68k/atomicity.h: Same.
3090         * sparc/atomicity.h: Same.
3092 2004-02-27  David Edelsohn  <edelsohn@gnu.org>
3094         * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
3095         static, and inline keywords.
3097 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
3099         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3100         num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
3101         call reserve on the __tmp_gruping string.
3102         (num_get<>::_M_extract_float): Don't append unnecessarily a
3103         char() to the returned string.
3104         * include/bits/locale_facets.tcc: Trivial reformattings.
3106 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
3108         * include/bits/locale_facets.h (money_get<>::_M_extract):
3109         Change signature: now takes a plain string&.
3110         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3111         Update consistently the definition; use the moneypunct cache
3112         to parse the value; use swap to change __units.
3113         (money_get<>::do_get(long double&)): Update call of _M_extract,
3114         avoid ctype::narrow, not correct wrt the standard.
3115         (money_get<>::do_get(string_type&)): Likewise, update call
3116         of _M_extract, use ctype::widen.
3117         * src/locale-inst.cc: Tweak instantiations of _M_extract.
3119 2004-02-26  Ian Lance Taylor  <ian@wasabisystems.com>
3121         * testsuite/demangle/abi_examples/01.cc: Expect error -2.
3122         * testsuite/demangle/abi_examples/02.cc: Likewise.
3123         * testsuite/demangle/regression/cw-11.cc: Likewise.
3124         * testsuite/demangle/regression/cw-16.cc: Change two expected
3125         results to match libiberty demangler output.
3127 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
3129         PR libstdc++/10246
3130         * libsupc++/Makefile.am: Use libiberty demangler.
3131         (c_sources): Add cp-demangle.c.
3132         * libsupc++/Makefile.in: Regenerate.
3133         * src/Makefile.am (sources): Remove demangle.cc.
3134         * src/Makefile.in: Regenerate.
3135         * include/Makefile.am (bits_headers): Move demangle.h.
3136         (ext_headers): ...here.
3137         * include/Makefile.in: Regenerate.
3138         * include/bits/demangle.h: Move...
3139         * include/ext/demangle.h: ...here.
3140         * src/demangle.cc: Remove.
3142 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
3144         * include/bits/demangle.h: Add type template parameter to all
3145         templates with just an Allocator template parameter.
3147 2004-02-25  Benjamin Kosnik  <bkoz@redhat.com>
3149         * include/bits/atomicity.h: New, forward declarations for __atomic_add
3150         and __exchange_and_add.
3151         * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
3152         * config/cpu/cris/atomic_word.h: Same.
3153         * config/cpu/sparc/atomic_word.h: Same.
3154         * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
3155         Qualifiy with __gnu_cxx.
3156         (_Callback_list::_M_add_reference): Same.
3157         * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
3158         (locale::facet::_M_remove_reference): Same.
3159         (locale::_Impl::_M_add_reference): Add.
3160         (locale::_Impl::_M_remove_reference): Same.
3161         * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
3162         (basic_string::_Rep::_M_dispose): Same.
3163         * src/ios.cc (ios_base::xalloc): Same.
3164         * src/ios_init.cc (ios_base::Init::Init): Same.
3165         (ios_base::Init::~Init): Same.
3166         * src/locale.cc (locale::id::_M_id): Same.
3167         * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
3168         static, and inline keywords.
3169         * config/cpu/alpha/atomicity.h: Same.
3170         * config/cpu/cris/atomicity.h: Same.
3171         * config/cpu/generic/atomicity.h: Same.
3172         * config/cpu/hppa/atomicity.h: Same.
3173         * config/cpu/i386/atomicity.h: Same.
3174         * config/cpu/ia64/atomicity.h: Same.
3175         * config/cpu/m68k/atomicity.h: Same.
3176         * config/cpu/mips/atomicity.h: Same.
3177         * config/cpu/powerpc/atomicity.h: Same.
3178         * config/cpu/s390/atomicity.h: Same.
3179         * config/cpu/sparc/atomicity.h: Same.
3181         * src/Makefile.am (host_sources): Add atomicity.cc.
3182         (atomicity.cc): New rule.
3183         * src/Makefile.in: Regenerate.
3184         * include/Makefile.am (host_headers): Remove host atomicity.h.
3185         (host_headers): Add atomic_word.h.
3186         (bits_headers): Add bits atomicity.h.
3187         Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3188         * include/Makefile.in: Regenerate.
3189         * configure.host (atomic_word_dir): Add.
3190         * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
3191         ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3192         * configure: Regenerate.
3193         * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
3195         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
3196         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3198 2004-02-25  Jonathan Wakely  <redi@gcc.gnu.org>
3200         * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
3201         docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
3202         Fix markup, more <link> tags.
3204 2004-02-25  Carlo Wood  <carlo@alinoe.com>
3206         * bits/demangle.h
3207         namespace __gnu_cxx::demangler
3208         (session<Allocator>::qualifier_list_Allocator): Add
3209         (session<Allocator>::M_qualifier_list_alloc): Add
3210         (session<Allocator>::decode_type_with_postfix):
3211         Use M_qualifier_list_alloc instead of calling operator new/delete.
3213 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
3215         PR libstdc++/14252
3216         * include/bits/postypes.h (class streamoff): Add operator++(),
3217         operator++(int), operator--() and operator--(int).
3218         * testsuite/27_io/fpos/14252.cc: New.
3220 2004-02-24  Richard Sandiford  <rsandifo@redhat.com>
3222         * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
3223         error in handling of hex constants.
3225 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
3227         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3228         Prefer basic_string::append to operator+= and a temporary.
3230 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
3232         * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
3233         Only use fputs, not write.
3235 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
3237         * include/ext/malloc_allocator.h: Add operators ==, !=.
3238         * include/ext/new_allocator.h: Add operators ==, !=.
3239         * include/ext/mt_allocator.h (__mt_alloc::tune): New.
3240         (__mt_alloc::_S_get_options): New.
3241         (__mt_alloc::_S_set_options): New.
3242         (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
3243         (__mt_alloc::_S_no_of_bins): To _S_bin_size.
3244         Move functions out of line, simplify, format.
3245         * src/allocator.cc: Simplify explicit instantiations.
3246         * include/bits/allocator.h: Tweak.
3248 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
3250         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3251         Restructure formatting of value component, first dealing with
3252         the non-decimal digits; use reserve.
3254 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
3256         * include/bits/locale_facets.h (class money_get): Inherit
3257         from money_base too; tweak declaration of _M_extract, now
3258         parameterized on _Intl too.
3259         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3260         Update definition to use the cache; call reserve on __res to
3261         avoid multiple reallocations; fix parsing of sign component
3262         according to 22.2.6.1.2, p3.
3263         (money_get<>::do_get(long double&),
3264         money_get<>::do_get(string_type&)): Update calls of _M_extract.
3265         * src/locale-inst.cc:  Add instantiations of
3266         money_get::_M_extract<false> and money_get::_M_extract<true>.
3267         * testsuite/22_locale/money_get/get/char/14.cc: New.
3268         * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
3270 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
3272         * libsupc++/vterminate.cc
3273         (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
3274         calls to terminate.
3275         * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
3277         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3278         not set RLIMIT_AS on HP-UX.
3280 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
3282         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3283         not set RLIMIT_AS on HP-UX.
3285 2004-02-21  Paolo Carlini  <pcarlini@suse.de>
3287         * include/bits/locale_facets.h (class money_base): Add { _S_minus,
3288         _S_zero, _S_end } enum, _S_atoms.
3289         (struct __moneypunct_cache<>): Parameterize on _Intl too; add
3290         _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
3291         _M_negative_sign_size, _M_atoms; tweak constructor consistently.
3292         (__moneypunct_cache<>::~__moneypunct_cache): Update.
3293         (__moneypunct_cache<>::_M_cache): Fill the cache.
3294         (class moneypunct): Tweak __cache_type typedef.
3295         (class money_put): Inherit from money_base too; tweak declaration
3296         of _M_insert, now parameterized on _Intl.
3297         * include/bits/locale_facets.tcc
3298         (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
3299         (money_put<>::_M_insert): Update definition to use the cache;
3300         call reserve on __res to avoid multiple reallocations.
3301         (money_put<>::do_put(long double),
3302         money_put<>::do_put(const string_type&): Update calls of _M_insert.
3303         * config/locale/generic/monetary_members.cc
3304         (moneypunct<char, true>::_M_initialize_moneypunct,
3305         moneypunct<char, false>::_M_initialize_moneypunct,
3306         moneypunct<wchar_t, true>::_M_initialize_moneypunct,
3307         moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
3308         * config/locale/gnu/monetary_members.cc: Likewise.
3309         * config/locale/gnu/monetary_members.cc
3310         (moneypunct<wchar_t, true>::~moneypunct(),
3311         moneypunct<wchar_t, false>::~moneypunct()): Likewise.
3312         * src/globals_locale.cc: Tweak fake_money_cache_c.
3313         * src/locale-inst.cc: Add instantiations for
3314         money_put::_M_insert<false> and money_put::_M_insert<true> and
3315         __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
3316         * src/locale_facets.cc: Define money_base::_S_atoms.
3317         * src/locale_init.cc: Update placement new of
3318         __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
3319         __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
3321         * config/locale/generic/numeric_members.cc: Clean up.
3322         * config/locale/gnu/numeric_members.cc: Likewise.
3323         * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
3324         * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
3325         * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
3326         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
3327         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
3328         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
3330 2004-02-20  Mark Mitchell  <mark@codesourcery.com>
3332         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
3333         FIFO for writing with ios_base::in|ios_base::out.
3334         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3335         * testsuite/27_io/objects/char/7.cc: Likewise.
3336         * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
3337         with "r+".
3339 2004-02-19  David Edelsohn  <edelsohn@gnu.org>
3341         * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
3342         from iso-8859-1 to ISO8859-1.
3343         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
3344         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
3345         * 22_locale/collate/hash/wchar_t/2.cc: Same.
3346         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
3347         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
3348         * 22_locale/collate/transform/wchar_t/2.cc: Same.
3349         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
3350         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
3352 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
3354         * include/bits/locale_facets.h (money_get<>::_M_extract):
3355         New, helper for do_get.
3356         (money_put<>::_M_insert): Likewise, for do_put.
3357         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3358         money_put<>::_M_insert): Define.
3359         (money_get<>::do_get(long double&), money_get<>::do_get(
3360         string_type&), money_put::do_put(long double),
3361         money_put::do_put(const string_type&)): Use the helpers.
3363 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
3365         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
3366         Rewrite, avoiding recursion.
3367         (__gnu_internal::xwrite): Minor tweaks.
3369 2004-02-17  Stefan Olsson  <stefan@xapa.se>
3371         * include/ext/mt_allocator.h: Removed the last
3372         pointer. Deallocated blocks are now added to the front of
3373         freelists as proposed by Felix Yen.  This gives roughly 10%
3374         performance boost and saves some memory.
3375         * docs/html/ext/mt_allocator.html: Change due to that deallocated
3376         blocks now are added to the front of freelists. The reason to this
3377         approach is also explained.
3379 2004-02-17  Paolo Carlini  <pcarlini@suse.de>
3381         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3382         num_get<>::_M_extract_int, money_get<>::do_get): Simplify
3383         grouping fidelity conditional.
3385 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
3387         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
3388         Qualify exception with std::.
3389         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
3390         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
3391         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3392         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3393         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3395 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
3397         * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
3398         for now that the catch block is not reached.
3399         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
3401 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
3403         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
3404         Fix parsing of the remaining sign characters.
3405         * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
3406         the input is scanned 'til eof.
3407         * 22_locale/money_get/get/char/4.cc: Likewise.
3408         * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
3409         * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
3410         * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
3411         not do_pos_format: the former is the only one that matters during
3412         input.
3413         * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
3415         * 22_locale/money_get/get/char/6.cc: Minor tweak.
3416         * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
3418 2004-02-15  David Asher  <david.asher@cavium.com>
3420         PR libstdc++/11352
3421         * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
3422         access __olds beyond __oldlen.
3424 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
3426         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
3427         sure the exception is actually thrown.
3428         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3429         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3430         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3432 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
3434         PR libstdc++/13858
3435         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
3436         In case of conversion errors, throw ios_failure; simplify.
3437         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
3438         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
3439         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
3440         previously we didn't throw in case of conversion errors, instead
3441         just returned eof().
3442         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3443         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3444         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3446         * include/bits/fstream.tcc (basic_filebuf<>::overflow):
3447         Trivial simplification of a conditional.
3449 2004-02-12  Paolo Carlini  <pcarlini@suse.de>
3451         PR libstdc++/13731 (final part: writev)
3452         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
3453         New, a wrapper around writev() handling partial writes.
3454         (__basic_file<char>::xwrite): Move to __gnu_internal and make
3455         static.
3456         (__basic_file<char>::xsputn): Update call.
3457         (__basic_file<char>::xsputn_2): Likewise.
3458         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
3459         Don't declare, now static.
3461 2004-02-11  Stefan Olsson  <stefan@xapa.se>
3463         * docs/html/ext/mt_allocator.html: New.
3465 2004-02-11  Benjamin Kosnik  <bkoz@redhat.com>
3467         * docs/html/20_util/allocator.html: New file, consolidate
3468         allocator information here. Revamp.
3469         * docs/html/documentation.html: Change links.
3470         * docs/html/20_util/howto.html: Same.
3471         * docs/html/ext/howto.html: Same.
3473 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
3475         PR libstdc++/13731 (first part: write)
3476         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
3477         New, declare.
3478         * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
3479         Define it: a wrapper around write() handling partial write.
3480         (__basic_file<char>::xsputn): Use it.
3481         (__basic_file<char>::xsputn_2): Likewise.
3483 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
3484             Petur Runolfsson  <peturr02@ru.is>
3486         PR libstdc++/14078
3487         * include/std/std_istream.h (operator>>(__istream_type& (*)
3488         (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
3489         operator>>(ios_base& (*)(ios_base&))): Declare inline.
3490         * include/std/std_ostream.h (operator<<(__ostream_type& (*)
3491         (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
3492         operator<<(ios_base& (*) (ios_base&))): Likewise.
3493         * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
3495 2004-02-10  Loren J. Rittle  <ljrittle@acm.org>
3497         PR libstdc++/14098
3498         * config/linker-map.gnu: Add typeinfo and typeinfo name for
3499         __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
3501         PR libstdc++/14097
3502         * config/linker-map.gnu: Add typeinfo and typeinfo name for
3503         __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
3505 2004-02-09  Loren J. Rittle  <ljrittle@acm.org>
3507         * include/ext/pool_allocator.h: Include c++config.h.
3509 2004-02-09  Stefan Olsson  <stefan@xapa.se>
3511         * include/ext/mt_allocator.h: thread_id is unused in non threaded
3512         applications and now has a ifdef to remove it completely on
3513         compilers without thread support. Include stdlib.h due to a
3514         compiler warning on getenv().
3516 2004-02-09  Paul Brook  <paul@codesourcery.com>
3518         * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
3520 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
3522         PR libstdc++/14071
3523         * src/locale_init.cc (locale::global(const locale&)): Use
3524         locale::name() in order to decide whether calling setlocale.
3525         * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
3527         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
3528         Avoid computing &= unnecessarily.
3530 2004-02-09  James E Wilson  <wilson@specifixinc.com>
3532         PR libstdc++/5625
3533         * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
3534         __builtin_extend_pointer.
3536 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
3538         PR libstdc++/14072
3539         * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
3540         Don't leave dangling pointers.
3541         * testsuite/27_io/basic_ios/imbue/14072.cc: New.
3542         * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
3543         facet is needed in the final test.
3545 2004-02-09  Bernardo Innocenti  <bernie@develer.com>
3547         * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
3548         * configure: Regenerate.
3550 2004-02-08  Richard Henderson  <rth@redhat.com>
3552         PR libstdc++/14026
3553         * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
3554         uncaughtExceptions during nested catch rethrow.
3555         * testsuite/18_support/14026.cc: New.
3557 2004-02-08  Paolo Carlini  <pcarlini@suse.de>
3559         * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
3560         When working in place remember to set the state to sharable
3561         (otherwise, _M_mutate does it).
3563 2004-02-08  Bernardo Innocenti  <bernie@develer.com>
3565         * include/bits/allocator.h, include/bits/basic_ios.h,
3566         include/bits/basic_ios.tcc, include/bits/basic_string.h,
3567         include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
3568         include/bits/char_traits.h, include/bits/codecvt.h,
3569         include/bits/concurrence.h, include/bits/cpp_type_traits.h,
3570         include/bits/demangle.h, include/bits/deque.tcc,
3571         include/bits/fstream.tcc, include/bits/functexcept.h,
3572         include/bits/gslice.h, include/bits/gslice_array.h,
3573         include/bits/indirect_array.h, include/bits/ios_base.h,
3574         include/bits/istream.tcc, include/bits/list.tcc,
3575         include/bits/locale_classes.h, include/bits/locale_facets.h,
3576         include/bits/locale_facets.tcc, include/bits/localefwd.h,
3577         include/bits/mask_array.h, include/bits/ostream.tcc,
3578         include/bits/postypes.h, include/bits/slice_array.h,
3579         include/bits/sstream.tcc, include/bits/stl_algo.h,
3580         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
3581         include/bits/stl_construct.h, include/bits/stl_deque.h,
3582         include/bits/stl_function.h, include/bits/stl_heap.h,
3583         include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
3584         include/bits/stl_list.h, include/bits/stl_map.h,
3585         include/bits/stl_multimap.h, include/bits/stl_multiset.h,
3586         include/bits/stl_numeric.h, include/bits/stl_pair.h,
3587         include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
3588         include/bits/stl_relops.h, include/bits/stl_set.h,
3589         include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
3590         include/bits/stl_threads.h, include/bits/stl_tree.h,
3591         include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
3592         include/bits/stream_iterator.h, include/bits/streambuf.tcc,
3593         include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
3594         include/bits/type_traits.h, include/bits/valarray_after.h,
3595         include/bits/valarray_array.h, include/bits/valarray_array.tcc,
3596         include/bits/valarray_before.h, include/bits/vector.tcc: Remove
3597         trailing whitespace.
3599 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
3601         * include/bits/basic_string.h: Fix comment.
3603 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
3605         * include/bits/stl_construct.h: Wrap overlong lines, reformat
3606         according to the coding standards.
3607         * include/bits/stl_pair.h: Likewise.
3608         * include/bits/stl_raw_storage_iter.h: Likewise.
3609         * include/bits/stl_stack.h: Likewise.
3610         * include/bits/stl_uninitialized.h: Likewise.
3611         * include/bits/stream_iterator.h: Likewise.
3612         * include/bits/streambuf_iterator.h: Likewise.
3613         * include/bits/type_traits.h: Likewise.
3615 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
3617         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
3618         Adjust timings.
3620 2004-02-05  Loren J. Rittle  <ljrittle@acm.org>
3622         * scripts/check_performance: Support PCH.
3624         * scripts/check_performance (CXX): Add -DNOTHREAD.
3625         * testsuite/performance/20_util/allocator/insert.cc: Integrate
3626         threaded tests from insert_insert.cc.  Tweak iterations,
3627         remove special cases.
3628         * testsuite/performance/20_util/allocator/insert_insert.cc:
3629         Make all tests single-threaded. Tweak iterations.
3630         * testsuite/performance/20_util/allocator/map_thread.cc:
3631         Tweak iterations.
3632         * testsuite/performance/20_util/allocator/producer_consumer.cc:
3633         Likewise.
3635 2004-02-05  Geoffrey Keating  <geoffk@apple.com>
3637         PR 12179
3638         * .cvsignore: New.
3639         * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
3640         'gcc-lib'.  Add comment about poorly-named variables.
3641         * aclocal.m4: Regenerate.
3642         * configure: Regenerate.
3644 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
3646         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
3647         Thousands-sep are always optional; thousands-sep are not allowed
3648         after the decimal_point.
3649         * testsuite/22_locale/money_get/get/char/12.cc: New.
3650         * testsuite/22_locale/money_get/get/char/13.cc: New.
3651         * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
3652         * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
3654         * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
3655         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3656         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3657         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3658         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3659         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3660         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3661         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3663         * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
3664         the standard.
3665         * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
3667 2004-02-05  Richard Sandiford  <rsandifo@redhat.com>
3669         * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
3670         Define.
3671         * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
3672         it to decide whether FIONREAD should take an off_t or int argument.
3674 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
3676         * include/bits/stl_function.h: Minor formatting changes.
3678 2004-02-04  Zack Weinberg  <zack@codesourcery.com>
3680         Revert previous change to config/abi/*/baseline_symbols.txt.
3682 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
3683             Zack Weinberg  <zack@codesourcery.com>
3685         * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
3686         New function.
3687         (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
3688         (__basic_file<char>::_M_open_mode): Delete.
3689         * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
3691         * testsuite/27_io/basic_filebuf/close/char/9964.cc
3692         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
3693         Correct flags to filebuf::open calls.
3695         * config/abi/alpha-freebsd5/baseline_symbols.txt
3696         * config/abi/alpha-linux-gnu/baseline_symbols.txt
3697         * config/abi/hppa-linux-gnu/baseline_symbols.txt
3698         * config/abi/i386-freebsd4/baseline_symbols.txt
3699         * config/abi/i386-freebsd5/baseline_symbols.txt
3700         * config/abi/i486-linux-gnu/baseline_symbols.txt
3701         * config/abi/ia64-linux-gnu/baseline_symbols.txt
3702         * config/abi/mips-linux-gnu/baseline_symbols.txt
3703         * config/abi/sparc-freebsd5/baseline_symbols.txt
3704         * config/abi/sparc-linux-gnu/baseline_symbols.txt
3705         * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
3706         Remove entry for __basic_file<char>::_M_open_mode.
3708 2004-02-04  Loren J. Rittle  <ljrittle@acm.org>
3710         * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
3712 2004-02-04  Felix Yen  <fwy@alumni.brown.edu>
3714         * testsuite/performance/20_util/producer_consumer.cc: New.
3715         * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
3717 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
3719         * testsuite/performance/20_util/allocator.cc: Move to..
3720         * testsuite/performance/20_util/allocator/insert.cc: ...here.
3721         * testsuite/performance/20_util/allocator_thread.cc: Move to...
3722         * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
3723         * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
3724         * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
3726 2004-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
3728         * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
3729         * docs/html/faq/index.txt: Regenerate.
3731 2004-02-04  Dhruv Matani  <dhruvbird@gmx.net>
3733         * include/ext/debug_allocator.h: _M_extra now stands for the
3734         number of extra objects instead of the number of extra bytes.
3735         (debug_allocator::allocate): Adjust.
3736         (debug_allocator::deallocate): Adjust.
3738         * include/ext/pool_allocator.h: Fix typo.
3740 2004-02-03  Felix Yen  <fwy@alumni.brown.edu>
3741             Benjamin Kosnik  <bkoz@redhat.com>
3743         * testsuite/performance/20_util/allocator.cc: Add map,
3744         deque, set tests.
3745         * testsuite/performance/20_util/allocator_thread.cc: Same.
3747 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
3749         * include/bits/basic_string.h (insert(iterator)): Remove,
3750         non-standard and already scheduled for removal.
3752 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
3754         * include/bits/stl_iterator_base_funcs.h: Minor formatting
3755         and indentation tweaks.
3756         * include/bits/stl_iterator_base_types.h: Likewise.
3757         * include/bits/stl_list.h: Likewise.
3758         * include/bits/stl_map.h: Likewise.
3759         * include/bits/stl_tempbuf.h: Likewise.
3761 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
3763         * include/bits/gslice.h, include/bits/gslice_array.h,
3764         include/bits/indirect_array.h, include/bits/mask_array.h,
3765         include/bits/slice_array.h, include/bits/stl_numeric.h,
3766         include/std/std_valarray.h:  Update copyright years.
3768 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
3770         * include/bits/gslice.h (gslice):  Document.
3771         * include/bits/gslice_array.h (gslice_array):  Document.
3772         * include/bits/indirect_array (indirect_array):  Document.
3773         * include/bits/mask_array (mask_array):  Document.
3774         * include/bits/slice_array.h (slice,slice_array):  Document.
3775         * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
3776         adjacent_difference):  Document
3777         * include/std/std_valarray.h (valarray):  Document.
3779 2004-02-02  Benjamin Kosnik  <bkoz@redhat.com>
3781         * docs/html/19_diagnostics/howto.html: Move verbose terminate
3782         documentation...
3783         * docs/html/18_support/howto.html: Here.
3784         * docs/html/documentation.html: Add reference here.
3786 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
3788         * config/locale/gnu/c++locale_internal.h: Remove prototypes
3789         of no longer used GLIBC thread locale functions.
3791 2004-02-02  Eric Christopher  <echristo@redhat.com>
3792             Zack Weinberg  <zack@codesourcery.com>
3794         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
3795         -finput-charset.
3796         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
3797         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
3798         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
3799         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
3800         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
3801         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
3802         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
3803         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3804         Ditto.
3806 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
3808         * include/bits/stl_function.h: Additional minor tweaks.
3809         * include/bits/stl_multiset.h: Likewise.
3811         * include/bits/stl_queue.h: Minor tweaks.
3813 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
3815         PR libstdc++/13976 (continued)
3816         * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
3817         Make the second parameter unnamed, to void unused parameter
3818         warnings.
3819         * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
3821 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
3823         PR libstdc++/13976
3824         * include/ext/malloc_allocator.h (malloc_allocator::allocate):
3825         Make the second parameter unnamed, to void unused parameter
3826         warnings.
3827         * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
3828         * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
3830 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
3832         * include/bits/stl_algo.h: Additional minor tweaks.
3833         * include/bits/stl_map.h: Likewise.
3834         * include/bits/stl_multimap.h: Likewise.
3835         * include/bits/stl_multiset.h: Likewise.
3836         * include/bits/stl_set.h: Likewise.
3837         * include/bits/stl_tree.h: Likewise.
3839 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
3841         * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
3842         Remove, unused.
3844 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
3846         * include/bits/stl_function.h: Additional minor tweaks.
3848 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
3850         * include/bits/deque.tcc: Wrap overlong lines, constify
3851         a few variables, reformat according to the coding standards.
3852         * include/bits/list.tcc: Likewise.
3853         * include/bits/stl_deque.h: Likewise.
3854         * include/bits/stl_function.h: Likewise.
3855         * include/bits/stl_iterator.h: Likewise.
3856         * include/bits/stl_iterator_base_funcs.h: Likewise.
3857         * include/bits/stl_iterator_base_types.h: Likewise.
3858         * include/bits/stl_list.h: Likewise.
3859         * include/bits/stl_map.h: Likewise.
3860         * include/bits/stl_multimap.h: Likewise.
3861         * include/bits/stl_multiset.h: Likewise.
3862         * include/bits/stl_relops.h: Likewise.
3863         * include/bits/stl_set.h: Likewise.
3865 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
3867         * include/bits/stl_bvector.h: Wrap overlong lines, constify
3868         a few variables, reformat according to the coding standards.
3869         * include/bits/stl_tree.h: Likewise.
3871 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
3873         * include/bits/stl_algo.h: Minor additional reformat, add
3874         copyright year.
3875         * include/bits/stl_algobase.h: Add copyright year.
3877 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
3879         * include/bits/stl_algo.h: Wrap overlong lines, constify
3880         a few variables, reformat according to the coding standards.
3881         * include/bits/stl_algobase.h: Likewise.
3882         * include/bits/stl_heap.h: Likewise.
3884 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
3886         * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
3888         * include/bits/basic_string.h: Fix two comments.
3890 2004-01-31  Per Bothner  <per@bothner.com>
3892         * include/ext/mt_allocator.h
3893         (__mt_alloc::_S_thread_freelist_mutex): Guard with
3894         __GTHREAD_MUTEX_INIT.
3896 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
3898         * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
3900 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
3902         * testsuite/21_strings/basic_string/cons/char/6.cc: New.
3903         * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
3904         * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
3906 2004-01-30  Felix Yen  <fwy@alumni.brown.edu>
3908         * testsuite/performance/20_util/allocator_thread.cc (do_loop):
3909         Don't use clear, but instead assign. Use insert.
3911 2004-01-30  Benjamin Kosnik  <bkoz@redhat.com>
3913         * src/demangle.cc: Add instantiations.
3914         * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
3915         * src/Makefile.in: Regenerate.
3917 2004-01-30  David Edelsohn  <edelsohn@gnu.org>
3919         * src/allocator.cc: Protect _S_get_thread_id() and
3920         _S_thread_key_destr() with #ifdef __GTHREADS.
3922 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
3924         Reshuffle performance testsuite.
3925         * testsuite/performance/allocator.cc, allocator_map_thread.cc,
3926         allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
3927         cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
3928         fstream_seek_write.cc, ifstream_extract_float.cc,
3929         ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
3930         list_create_fill_sort.cc, map_create_fill.cc,
3931         narrow_widen_char.cc, narrow_widen_wchar_t.cc,
3932         ofstream_insert_float.cc, ofstream_insert_int.cc,
3933         string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
3934         wchar_t_out.cc: Split into...
3935         * testsuite/performance/20_util/allocator.cc: New.
3936         * testsuite/performance/20_util/allocator_map_thread.cc: New.
3937         * testsuite/performance/20_util/allocator_thread.cc: New.
3938         * testsuite/performance/21_strings/string_append: New.
3939         * testsuite/performance/22_locale/is_wchar_t.cc: New.
3940         * testsuite/performance/22_locale/narrow_widen_char.cc: New.
3941         * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
3942         * testsuite/performance/22_locale/wchar_t_in.cc: New.
3943         * testsuite/performance/22_locale/wchar_t_length.cc: New.
3944         * testsuite/performance/22_locale/wchar_t_out.cc: New.
3945         * testsuite/performance/23_containers/container_benchmark.cc: New.
3946         * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
3947         * testsuite/performance/23_containers/map_create_fill.cc: New.
3948         * testsuite/performance/26_numerics/complex_norm.cc: New.
3949         * testsuite/performance/27_io/cout_insert_int.cc: New.
3950         * testsuite/performance/27_io/filebuf_copy.cc: New.
3951         * testsuite/performance/27_io/filebuf_sputc.cc: New.
3952         * testsuite/performance/27_io/fstream_seek_write.cc: New.
3953         * testsuite/performance/27_io/ifstream_extract_float.cc: New.
3954         * testsuite/performance/27_io/ifstream_extract_int.cc: New.
3955         * testsuite/performance/27_io/ifstream_getline.cc: New.
3956         * testsuite/performance/27_io/ofstream_insert_float.cc: New.
3957         * testsuite/performance/27_io/ofstream_insert_int.cc: New.
3959 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
3961         * include/bits/basic_string.tcc (_Rep::_S_create):
3962         Never allocate a string bigger than max_size(); always keep
3963         __capacity and __size in sync to avoid memory leaks at
3964         deallocation time.
3966 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
3968         * include/bits/basic_string.tcc (_S_construct(_InIterator,
3969         _InIterator, const _Alloc&, input_iterator_tag)): Simplify
3970         the double loop, streamline.
3972         * include/bits/basic_string.tcc: Very minor tweaks.
3974 2004-01-30  Loren J. Rittle  <ljrittle@acm.org>
3976         * scripts/check_performance: Only compile with $THREAD_FLAG
3977         when test is marked to require it.  Allow multiple
3978         compilations/executions of marked tests.
3979         * testsuite/testsuite_performance.h (report_performance):
3980         Report dynamic thread support status.
3981         (report_header): Likewise.
3982         * testsuite/performance/allocator.cc: Stabilize iteration
3983         count.  Support more allocators.  Mark each allocator test to
3984         run and report independently.
3985         * testsuite/performance/allocator_map_thread.cc: Likewise.
3986         * testsuite/performance/allocator_thread.cc: Likewise.
3988 2004-01-29  Stephen M. Webb  <stephen.webb@bregmasoft.com>
3990         * config/local/generic/c_locale.h: Change ::malloc() to new char[].
3991         * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
3992         * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
3993         std::get_temporary_buffer() instead of duplicating its code.
3994         Update to C++STYLE conventions.
3995         * include/std/std_memory.h (get_temporary_buffer): Use ::operator
3996         new() instead of std::malloc().
3997         (return_temporary_buffer): Use ::operator delete() instead of
3998         std::free().
4000 2004-01-29  Benjamin Kosnik  <bkoz@redhat.com>
4002         * include/bits/allocator.h: Temporary switch to new_allocator as
4003         the default to unjam bootstraps.
4005 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
4007         * include/Makefile.am (bits_headers): Remove allocator_traits.h.
4008         * include/Makefile.in: Regenerate.
4009         * include/bits/allocator_traits.h: Remove.
4010         * include/bits/allocator.h: Remove allocator_traits.h include, and
4011         relevant comments.
4012         (allocator): Empty base class, inherit from the underlying allocator.
4013         * src/allocator-inst.cc: Move __pool_alloc instantiation to...
4014         * src/allocator.cc: ...here. New. For the underlying allocators.
4015         Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
4016         * config/linker-map.gnu: Remove __pool_alloc bits.
4017         * src/Makefile.am (sources): Add allocator.cc.
4018         * src/Makefile.in: Regenerate.
4019         * testsuite/20_util/allocator/1.cc: Split second test into...
4020         * testsuite/20_util/allocator/8230.cc: ...this.
4021         * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
4022         typedef to use std::allocatore. Format.
4023         * include/ext/pool_allocator.h: Remove allocator_traits.h include,
4024         _Alloc_traits.
4025         * include/ext/mt_allocator.h (__gnu_cxx): Qualify
4026         __throw_bad_alloc calls. Don't include <memory>.
4027         * include/ext/malloc_allocator.h: Remove <memory> include.
4028         * include/ext/new_allocator.h (new_allocator): Same.
4029         * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
4030         declaration. Switch __alloc to _Alloc.
4031         * include/ext/hashtable.h: Remove __alloc.
4032         * include/backward/alloc.h: Only inject allocator, not
4033         implementation details.
4035         * include/ext/mt_allocator.h: Replace free with delete.
4037 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
4039         * src/globals_io.cc: Change to __gnu_internal namespace.
4040         * src/globals_locale.cc: Same.
4041         * src/locale_init.cc: Same.
4042         * src/ios_init.cc: Same.
4044 2004-01-28  Stefan Olsson  <stefan@snon.net>
4046         * include/ext/mt_allocator.h: Replaced all malloc() calls with
4047         operator new(). Added support for the env variable
4048         GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
4049         one in allocate() as well). Fix typos.
4051 2004-01-28  Paolo Carlini  <pcarlini@suse.de>
4053         * include/bits/basic_string.h (_S_create(size_t,
4054         const _Alloc&): Change signature to take two size_type
4055         arguments.
4056         * include/bits/basic_string.tcc (_S_construct(_InIterator,
4057         _InIterator, const _Alloc&, input_iterator_tag)): Update
4058         call, tweak a bit.
4059         (_S_construct(_InIterator, _InIterator, const _Alloc&,
4060         forward_iterator_tag)): Likewise.
4061         (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
4062         (_M_mutate(size_type, size_type, size_type)): Don't
4063         implement the exponential growth policy, demand it to
4064         _S_create, update call and simplify.
4065         (_M_clone(const _Alloc&, size_type)): Likewise.
4066         (_S_create(size_type, size_type, const _Alloc&)): Implement
4067         the growth policy, simplify otherwise.
4069         * include/bits/basic_string.h (_Rep::operator[]): Tweak
4070         signature to take a size_type, consistently with the other
4071         members.
4073 2004-01-27  Benjamin Kosnik  <bkoz@redhat.com>
4075         * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
4076         delete declarations, add include and test variable.
4078 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
4080         * include/bits/codecvt.h, include/bits/locale_facets.h,
4081         include/bits/postypes.h, include/bits/stl_bvector.h,
4082         include/bits/stl_multiset.h, include/bits/stl_set.h,
4083         include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
4084         include/std/std_complex.h:  Document.
4086 2004-01-27  Jerry Quinn  <jlquinn@optonline.net>
4088         PR libstdc++/11584
4089         * include/bits/ios_base.h (ios_base::_M_grow_words):  Add
4090         iword/pword selector.
4091         (ios_base::iword, ios_base::pword):  Use it.
4092         * src/ios.cc (ios_base::_M_grow_words):  Clear _M_word_zero
4093         iword or pword member on alloc failure.
4094         * testsuite/27_io/ios_base/storage/11584.cc:  New test.
4096 2004-01-27  Ulrich Weigand  <uweigand@de.ibm.com>
4097             PJ Darcy  <darcypj@us.ibm.com>
4099         * configure.host: Add support for *-tpf.
4100         * crossconfig.m4: Likewise.
4101         * configure: Regenerate.
4102         * config/os/tpf: New directory.
4103         * config/os/tpf/os_defines.h: New file.
4104         * config/os/tpf/ctype_base.h: Likewise.
4105         * config/os/tpf/ctype_inline.h: Likewise.
4106         * config/os/tpf/ctype_noninline.h: Likewise.
4108 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
4110         PR libstdc++/13884
4111         * include/bits/sstream.tcc: Guard use of extern template.
4113 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
4115         * include/bits/basic_string.tcc
4116         (basic_string(const basic_string&, size_type, size_type),
4117         basic_string(const basic_string&, size_type, size_type,
4118         const _Alloc&)): Avoid unnecessarily constructing iterators.
4120 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
4122         * config/locale/generic/c_locale.cc: Fix throw messages
4123         to use the __N marker.
4124         * config/locale/gnu/c_locale.cc: Likewise.
4125         * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
4126         Likewise.
4127         * docs/html/17_intro/C++STYLE: Likewise.
4128         * include/bits/basic_ios.tcc: Likewise.
4129         * include/bits/fstream.tcc: Likewise.
4130         * include/bits/vector.tcc: Likewise.
4131         * include/ext/ropeimpl.h: Likewise.
4132         * include/std/std_bitset.h: Likewise.
4133         * src/ios.cc: Likewise.
4134         * src/locale.cc: Likewise.
4135         * src/localename.cc: Likewise.
4137 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
4139         * include/bits/basic_string.h (_M_replace_aux): Use the
4140         __N marker in throw message.
4141         * include/bits/basic_string.tcc (assign(const _CharT*,
4142         size_type), insert(size_type, const _CharT*, size_type),
4143         replace(size_type, size_type, const _CharT*, size_type),
4144         reserve, _Rep::_S_create, resize, _M_replace_dispatch):
4145         Likewise.
4147         * include/bits/basic_string.h, include/bits/basic_string.tcc:
4148         Fold overlong lines, minor formatting changes.
4150 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
4152         * include/bits/basic_string.h (replace(iterator, iterator,
4153         const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
4154         (replace(iterator, iterator, const _CharT*)): Ditto.
4155         (replace(iterator, iterator, const _CharT*, size_type)):
4156         Add missing _GLIBCXX_DEBUG_PEDASSERT.
4158 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
4160         * include/bits/basic_string.tcc (replace(size_type,
4161         size_type, const _CharT*, size_type)): Implement optimized
4162         in-place algorithm for non-overlapping ranges.
4163         * testsuite/21_strings/basic_string/replace/char/6.cc: New.
4164         * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
4166         * include/bits/basic_string.tcc (insert(size_type,
4167         const _CharT*, size_type)): Tweak slightly.
4169 2004-01-26  Andreas Schwab  <schwab@suse.de>
4171         * config/locale/gnu/monetary_members.cc: Restore locale before
4172         rethrowing exception.
4174 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
4176         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
4177         Define inline here.
4178         * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
4179         Move inline.
4181         * include/bits/basic_string.tcc: Very minor tweaks.
4183 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
4185         * testsuite/performance/string_append.cc: Increase number
4186         of iterations.
4188 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
4190         * include/bits/basic_string.h (erase(size_type, size_type),
4191         erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
4192         instead, thus avoiding redundant check for length_error.
4194         * include/bits/basic_string.h: Tweak some comments.
4196 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
4198         * include/bits/basic_string.tcc (operator+(const _CharT*,
4199         const basic_string&)): No need to go through the append
4200         taking two iterators.
4202 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
4204         * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
4205         Revert last change to use std::min: machine language is worse.
4206         (find_last_of(const _CharT*, size_type, size_type)): Ditto.
4207         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4208         (find_last_not_of(_CharT, size_type)): Ditto.
4210         * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
4211         size_type)): Discard the value returned by _M_check.
4212         (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
4213         (append(const basic_string&, size_type, size_type)): Ditto.
4214         (copy(_CharT*, size_type, size_type)): Ditto.
4215         (compare(size_type, size_type, const basic_string&)): Ditto.
4216         (compare(size_type, size_type, const basic_string&,
4217         size_type, size_type)): Ditto.
4218         (compare(size_type, size_type, const _CharT*)): Ditto.
4219         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
4221 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
4223         * include/bits/basic_string.h (insert(size_type,
4224         const basic_string&, size_type, size_type)): Define inline here.
4225         * include/bits/basic_string.tcc (insert(size_type,
4226         const basic_string&, size_type, size_type)): Move inline.
4228 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
4230         * include/bits/basic_string.h (assign(const basic_string&,
4231         size_type, size_type)): Define inline here.
4232         (replace(size_type, size_type, const basic_string&,
4233         size_type, size_type)): Ditto.
4234         (_M_replace_dispatch(iterator, iterator, _InputIterator,
4235         _InputIterator, __false_type)): Only declare.
4236         (_M_replace(iterator, iterator, _InputIterator,
4237         _InputIterator)): Remove.
4238         * include/bits/basic_string.tcc (assign(const basic_string&,
4239         size_type, size_type)): Move inline.
4240         (replace(size_type, size_type, const basic_string&,
4241         size_type, size_type)): Ditto.
4242         (_M_replace_dispatch(iterator, iterator, _InputIterator,
4243         _InputIterator, __false_type)): Define, now does also what
4244         _M_replace did before.
4245         * src/string-inst.cc (_M_replace): Don't instantiate.
4247         * include/bits/basic_string.tcc (find(const _CharT*,
4248         size_type, size_type)): Tidy.
4249         (rfind(_CharT, size_type)): Ditto.
4250         (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
4251         (find_first_not_of(_CharT, size_type)): Ditto.
4252         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4253         (find_last_not_of(_CharT, size_type)): Ditto.
4255 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
4257         PR libstdc++/13838
4258         * include/debug/bitset (operator|=): Fix typo.
4259         * testsuite/23_containers/bitset/operations/13838.cc: New.
4261 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
4263         * include/bits/basic_string.tcc (insert(size_type,
4264         const _CharT*, size_type __n)): Fix length_error check.
4265         (replace(size_type, size_type, const _CharT*, size_type):
4266         Ditto; call _M_replace_safe.
4267         (_M_replace_aux(size_type, size_type, size_type, _CharT):
4268         Fix length_error check.
4269         (_M_replace(iterator, iterator, _InputIterator,
4270         _InputIterator)): Ditto, tweak.
4271         (_M_replace_safe(size_type, size_type, const _CharT*,
4272         size_type)): Remove length_error check.
4274         * include/bits/basic_string.tcc (append(const basic_string&),
4275         append(const basic_string&, size_type, size_type)): Tweak
4276         comment.
4278         * include/bits/basic_string.tcc (copy(_CharT*, size_type,
4279         size_type)): If __n == 0 don't call traits::copy.
4281 2004-01-23  Stefan Olsson  <stefan@snon.net>
4283         * include/ext/mt_allocator.h: Reduce lock contention.
4285 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
4287         PR libstdc++/13831
4288         * include/bits/fstream.tcc (underflow): Remove unused
4289         variable.
4290         * include/bits/streambuf_iterator.h (equal): Ditto.
4291         * include/bits/locale_facets.h (_M_convert_from_char):
4292         Ditto.
4294 2004-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4296         PR c/13814
4297         * config/linker-map.gnu (nan): Delete.
4298         * libmath/mathconf.h (NAN, nan): Delete.
4299         * linkage.m4 (nan): Don't check for it.
4300         * libmath/nan.c: Delete file.
4302         * config.h.in, configure: Regenerate.
4304 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
4306         * include/bits/basic_string.h (push_back(_CharT)):
4307         Call _M_replace_aux.
4308         (insert(size_type, const basic_string&)): Trivial tweak.
4309         (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
4310         (insert(iterator, _CharT)): Ditto.
4311         (erase(size_type, size_type)): Ditto.
4312         (erase(iterator)): Ditto.
4313         (erase(iterator, iterator)): Ditto.
4314         (replace(size_type, size_type, size_type, _CharT)): Ditto.
4316 2004-01-23  Loren J. Rittle  <ljrittle@acm.org>
4318         libstdc++/13823
4319         * testsuite/performance/allocator_map_thread.cc: New test.
4321 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
4323         * include/bits/locale_facets.tcc
4324         (money_put::do_put(..., long double)): Use the basic_string
4325         constructor for char arrays, not that for C-strings, to pass
4326         __digits to do_put(..., const string_type&): __ws isn't
4327         null-terminated.
4329 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
4331         * include/bits/basic_string.h (_M_replace_safe): Change
4332         signatures to take size_types and const _CharT*.
4333         (_M_replace_aux): Likewise, takes size_types instead of
4334         iterators.
4335         (append(size_type, _CharT)): Update call.
4336         (assign(size_type, _CharT)): Ditto.
4337         (replace(iterator, iterator, size_type, _CharT)): Ditto.
4338         (_M_replace_dispatch(iterator, iterator, _Integer,
4339         _Integer, __true_type)): Ditto.
4340         * include/bits/basic_string.tcc (assign(const _CharT*,
4341         size_type)): Ditto.
4342         (insert(size_type, const _CharT*, size_type)): Ditto.
4343         (replace(size_type, size_type, const _CharT*,
4344         size_type)): Ditto.
4345         (_M_replace(iterator, iterator, _InputIterator,
4346         _InputIterator)): Ditto.
4347         (append(const basic_string&)): Ditto.
4348         (append(const basic_string&, size_type, size_type): Ditto.
4349         (append(const _CharT*, size_type): Ditto.
4350         (_M_replace_safe, _M_replace_safe): Change definitions
4351         accordingly, simplify.
4352         * string-inst.cc (_M_replace_safe): Don't instantiate.
4354 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
4356         * include/bits/basic_string.tcc (append(const basic_string&)):
4357         Revert previous change.
4358         (append(const basic_string&, size_type, size_type)): Revert
4359         previous change, use _M_check and _M_limit.
4361 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
4363         * include/bits/basic_string.h (_M_check): Change to return
4364         a checked __pos and take an additional const char* argument.
4365         (_M_fold): Rename to _M_limit, change to return a size_type,
4366         corresponding to the __off limited to the actual length.
4367         (insert(size_type, size_type, _CharT)): Update call, call
4368         replace.
4369         (insert(iterator, _CharT)): Call replace(iterator, iterator,
4370         size_type, _CharT) instead.
4371         (erase(size_type, size_type)): Update calls.
4372         (replace(size_type, size_type, size_type, _CharT)): Ditto.
4373         (substr(size_type, size_type)): Use _M_check.
4374         * include/bits/basic_string.tcc (basic_string(const basic_string&,
4375         size_type, size_type)): Update calls.
4376         (basic_string(const basic_string&, size_type, size_type,
4377         const _Alloc&)): Ditto.
4378         (assign(const basic_string&, size_type, size_type)): Use the
4379         new _M_check and _M_limit.
4380         (insert(size_type, const basic_string&, size_type, size_type):
4381         Ditto.
4382         (insert(size_type, const _CharT*, size_type)): Ditto.
4383         (replace(size_type, size_type, const _CharT*, size_type): Ditto.
4384         (replace(size_type, size_type, const basic_string&,
4385         size_type, size_type)): Ditto.
4386         (append(const basic_string&)): Ditto.
4387         (append(const basic_string&, size_type, size_type)): Ditto.
4388         (copy(_CharT*, size_type, size_type)): Ditto.
4389         (compare(size_type, size_type, const basic_string&)): Ditto.
4390         (compare(size_type, size_type, const basic_string&,size_type,
4391         size_type)): Ditto.
4392         (compare(size_type, size_type, const _CharT*)): Ditto.
4393         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
4395 2004-01-19  Stefan Olsson  <stefan@snon.net>
4397         * include/ext/mt_allocator.h: If a thread, when it dies, still has
4398         memory on it's freelist this memory is not returned to global
4399         list. Simplification of deallocate so that memory is always
4400         returned to the calling thread id's freelist instead of to
4401         global. Fix typos. Add volatile where appropriate.
4403 2004-01-19  Loren J. Rittle  <ljrittle@acm.org>
4405         * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
4406         * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test.  Like -2 but
4407         use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
4409 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
4411         * src/debug.cc: Make sure all the names are prefixed with
4412         double (or single) underscore.
4414 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
4416         * src/debug.cc: Trivial formatting change.
4418 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
4420         * include/bits/basic_string.tcc (_S_construct(size_type,
4421         _CharT, const _Alloc&)): Remove redundant try/catch.
4422         (_M_mutate(size_type, size_type, size_type)): Ditto.
4423         (_M_clone(const _Alloc&, size_type)): Ditto.
4425 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
4427         * include/bits/basic_string.h (c_str()): Simplify, due to
4428         21.3.4 the internal representation is always kept null-terminated.
4429         * include/bits/basic_string.tcc (_M_clone): Null-terminate.
4430         * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
4431         * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
4432         Ditto.
4434 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
4436         * include/bits/basic_string.h (append(size_type, _CharT)):
4437         Moved inline, just call _M_replace_aux, no source iterators at
4438         risk of being clobbered.
4439         (assign(size_type, _CharT)): Call directly _M_replace_aux.
4440         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
4441         input_iterator_tag)): Remove fifth unused argument.
4442         (_M_replace_dispatch(iterator, iterator, _InputIterator,
4443         _InputIterator, __false_type)): Update call.
4444         * include/bits/basic_string.tcc (replace(size_type, size_type,
4445         const _CharT*, size_type)): Update call.
4446         (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
4447         throw string literal.
4448         (_M_replace_safe(iterator, iterator, _ForwardIterator,
4449         _ForwardIterator)): Likewise.
4450         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
4451         input_iterator_tag)): Remove fifth unused argument.
4452         (append(size_type __n, _CharT __c)): Move inline.
4453         * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
4454         const C*, const C*, input_iterator_tag)): Remove fifth unused
4455         argument.
4457 2004-01-16  Benjamin Kosnik  <bkoz@redhat.com>
4459         * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
4460         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
4462 2004-01-16  Danny Smith  <dannysmith@users.sourceforge.net>
4464         * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
4465         mkfifo for mingw32.
4467 2004-01-15  Stefan Olsson  <stefan@snon.net>
4469         * include/ext/mt_allocator.h: Reuse thread id's as soon as
4470         possible by changing the behaviour of thread_freelist to do
4471         push_front when threads die instead of push_back.
4473 2004-01-14  Paolo Carlini  <pcarlini@suse.de>
4475         * include/bits/locale_facets.h (struct __numpunct_cache):
4476         Add member _M_grouping_size, caching the length of _M_grouping.
4477         (__numpunct_cache<>::_M_cache): Assign the latter.
4478         (__verify_grouping): Move declaration...
4479         * include/bits/locale_facets.tcc (__verify_grouping):
4480         ... here, change signature to take a const char* and a size_t
4481         for the grouping; not a template anymore.
4482         (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
4483         Likewise change signature and tweak consistently.
4484         (num_get::_M_extract_float, num_get::_M_extract_int,
4485         num_put::_M_insert_int, num_put::_M_insert_float,
4486         money_get::do_get(string_type&), money_get::do_put(string_type)):
4487         Update callers.
4488         * config/locale/generic/numeric_members.cc
4489         (numpunct<>::_M_initialize_numpunct): Assign the new member.
4490         * config/locale/gnu/numeric_members.cc
4491         (numpunct<>::_M_initialize_numpunct): Likewise.
4492         * src/locale-inst.cc (__add_grouping): Tweak signature.
4493         (__verify_grouping): Don't instantiate, not a template anymore.
4495         * include/bits/locale_facets.h: Rename _M_truename_len ->
4496         _M_truename_size, _M_falsename_len -> _M_falsename_size.
4497         * include/bits/locale_facets.tcc: Likewise.
4498         * config/locale/generic/numeric_members.cc: Likewise.
4499         * config/locale/gnu/numeric_members.cc: Likewise.
4501 2004-01-14  Stefan Olsson  <stefan@snon.net>
4503         * include/ext/mt_allocator.h: Fixups.
4504         * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
4505         * testsuite/performance/allocator_thread.cc: Same.
4507 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
4509         * testsuite/performance/ifstream_extract_float.cc: Add higher
4510         precision tests.
4511         * testsuite/performance/ofstream_insert_float.cc: Same.
4513 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
4515         * src/locale-misc-inst.cc (__convert_from_v(long),
4516         __convert_from_v(unsigned long), __convert_from_v(long long),
4517         __convert_from_v(unsigned long long)): Remove, unused.
4519 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
4521         * testsuite/performance/ifstream_extract_float.cc: New.
4522         * testsuite/performance/ofstream_insert_float.cc: Float generation
4523         matches above.
4525         * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
4526         * 20_util/auto_ptr/1.cc: ...this.
4527         * 20_util/auto_ptr/2.cc: Same.
4528         * 20_util/auto_ptr/3.cc: Same.
4529         * 20_util/auto_ptr/3946.cc: Same.
4530         * 20_util/auto_ptr/4.cc: Same.
4531         * 20_util/auto_ptr/5.cc: Same.
4532         * 20_util/auto_ptr/6.cc: Same.
4533         * 20_util/auto_ptr/7.cc: Same.
4534         * 20_util/auto_ptr/assign_neg.cc
4535         * 20_util/pairs.cc: Break into...
4536         * 20_util/pair/1.cc: ...this.
4537         * 20_util/pair/2.cc: Same.
4538         * 20_util/pair/3.cc: Same.
4539         * 20_util/pair/4.cc: Same.
4541 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
4543         * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
4544         Set correctly just basefield, the only group that matters.
4546 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
4548         * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
4549         (_Rope_rep_base): Inherit directly from the rope allocator;
4550         use rebinding instead of _Alloc_traits; pick up data member
4551         from _Rope_rep_alloc_base.
4552         (_Rope_alloc_base): Eliminate.
4553         (_Rope_base): Inherit directly from the rope allocator; use
4554         rebinding instead of _Alloc_traits; pick up data member from
4555         _Rope_alloc_base.
4556         (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
4557         rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
4559 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
4561         PR libstdc++/13650
4562         * include/bits/basic_string.tcc (compare(size_type, size_type,
4563         const _CharT*, size_type)): Implement correctly the resolution
4564         of DR 5: basically, s is a char array, -not- a C string.
4565         * include/bits/basic_string.h: Tweak some comments.
4566         * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
4567         * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
4569 2004-01-12  Andreas Tobler  <a.tobler@schweiz.ch>
4571         * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
4572         Solaris.
4574 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
4576         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
4577         Use try_mkfifo.
4578         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
4579         Likewise.
4581 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
4583         * include/bits/locale_facets.h (struct __numpunct_cache):
4584         Add members _M_truename_len and _M_falsename_len, caching
4585         the lengths of _M_truename and _M_falsename.
4586         (__numpunct_cache<>::_M_cache): Assign the latter.
4587         * include/bits/locale_facets.tcc (num_get::do_get(bool&),
4588         num_put::do_put(bool)): Use the new members, thus avoiding
4589         computing string lengths again and again.
4590         * config/locale/generic/numeric_members.cc
4591         (numpunct<>::_M_initialize_numpunct): Assign the new members.
4592         * config/locale/gnu/numeric_members.cc
4593         (numpunct<>::_M_initialize_numpunct): Likewise.
4595 2004-01-12  Mark Mitchell  <mark@codesourcery.com>
4597         * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
4598         * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
4599         it.
4600         * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
4601         and remove Cygwin XFAIL.
4602         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
4603         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
4604         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
4605         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
4606         Likewise.
4607         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
4608         * testsuite/27_io/objects/char/7.cc: Likewise.
4609         * testsuite/27_io/objects/char/9661-1.cc: Likewise.
4610         * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
4611         * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
4613 2004-01-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4615         * include/std/std_complex.h (std::complex<>::real): Return a
4616         reference. Add non-const overload.
4617         (std::complex<>::real): Likewise.
4618         (std::real): Likewise.
4619         (std::imag): Likewise.
4620         (std::operator+): Tidy.
4621         (std::operator-): Likewise.
4622         (std::operator*): Likewise.
4623         (std::operator/): Likewise.
4624         (std::operator>>): Likewise.
4626 2004-01-11  Paolo Carlini  <pcarlini@suse.de>
4628         PR libstdc++/13582
4629         * include/bits/fstream.tcc (imbue): Exploit the external
4630         buffer to imbue 'on the fly' a new locale and convert its
4631         remainder with the new codecvt facet.
4632         (underflow): Tweak slightly to deal with this special case.
4633         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
4634         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
4635         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
4636         * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
4637         * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
4639 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
4641         * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
4642         Import Revision 28.
4644 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
4646         PR libstdc++/13630
4647         * include/bits/locale_classes.h (class locale): Fix category
4648         typedef.
4649         * testsuite/22_locale/locale/13630.cc: Add.
4651 2004-01-10  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
4653         * include/bits/locale_facets.h: Make a name really dependent. This
4654         will be needed when Core Issue 224 is implemented.
4656 2004-01-09  Paolo Carlini  <pcarlini@suse.de>
4658         * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
4659         * testsuite/performance/allocator_thread.cc: Likewise.
4661 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
4663         * crossconfig.m4: Add LFS, io bits to linux cross config.
4664         * acconfig.h: Remove obsolete bits, reorder.
4665         * config.h.in: Regenerate.
4666         * aclocal.m4: Same.
4667         * configure: Same.
4669 2004-01-07  Gawain Bolton  <gp.bolton@computer.org>
4671         * include/bits/stl_list.h:
4672         * include/bits/list.tc:
4673         * src/list.cc:
4674         Performance enhancements for destructor, push_front(),
4675         push_back(), pop_front(), pop_back(), sort()
4676         Eliminated static_casts where possible.
4677         Moved code out of header files into new src/list.cc
4678         implementation file for library where possible.
4679         Remove inheritance from iterator class and create separate
4680         classes for non-constant and constant iterators.
4681         * include/bits/stl_tree.h (_Rb_tree class):
4682         * src/tree.cc:
4683         Only erase contents in destructor.
4684         Eliminate unnecessary initialization in assignment operator.
4685         Optimize for the nominal case by not checking whether
4686         container is empty in clear().
4687         Re-order test in _M_insert() to improve performance.
4688         Move initialization of new node's left & right pointers to
4689         src/tree.cc to where new node's colour is initialized
4690         and to reduce the amount of inline code.
4691         Use  _M_leftmost() and _M_end() to improve readability where
4692         appropriate.
4693         Create separate classes for non-constant and constant
4694         iterators to clarify code, avoid extra template parameters and
4695         casting away constness.
4697 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
4699         * src/Makefile.am (sources): Add list.cc, tree.cc.
4700         * src/stl_tree.cc: Move to...
4701         * src/tree.cc: ...here.
4702         * src/list.cc: Add.
4703         * config/linker-map.gnu: Tweaks.
4704         * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
4705         * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
4707         * bits/stl_vector.h: Column wrap comments.
4709 2004-01-07  Loren J. Rittle  <ljrittle@acm.org>
4711         (re-open) PR libstdc++/12658
4712         * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
4713         (locale::global): Likewise.
4715 2004-01-07  Paolo Carlini  <pcarlini@suse.de>
4717         * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
4718         Remove redundant #include.
4719         * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
4720         * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
4721         re-enable normal testing.
4722         * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
4723         #include.
4724         * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
4725         * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
4726         Likewise.
4727         * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
4728         Likewise.
4729         * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
4730         Likewise.
4731         * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
4732         Likewise.
4733         * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
4734         Likewise.
4735         * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
4736         Likewise.
4737         * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
4738         Likewise.
4739         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
4740         More properly, #include <locale>.
4741         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
4742         Remove redundant #include.
4743         * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
4744         * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
4745         redundant DejaGnu directive.
4746         * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
4747         redundant #include.
4749 2004-01-06  Benjamin Kosnik  <bkoz@redhat.com>
4750             Stefan Olsson  <stefan@snon.net>
4752         * scripts/check_performance: Use -pthread.
4753         * testsuite/performance/allocator.cc: Tweaks, add list.
4754         * testsuite/performance/allocator_thread.cc: New.
4756 2004-01-06  Jerry Quinn  <jlquinn@optonline.net>
4758         * include/bits/locale_facets.h: Document public classes and
4759         functions.
4760         * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
4761         Add comment.
4763 2004-01-06  Paolo Carlini  <pcarlini@suse.de>
4765         * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
4766         Remove redundant #includes.
4767         * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
4768         Likewise.
4769         * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
4770         Likewise.
4771         * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
4772         * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
4773         * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
4774         * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
4775         * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
4776         * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
4777         * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
4778         * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
4779         * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
4780         * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
4781         * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
4782         * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
4783         * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
4784         * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
4785         * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
4786         Likewise.
4787         * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
4788         Likewise.
4789         * testsuite/27_io/basic_istream/readsome/char/8258.cc:
4790         Likewise.
4791         * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
4792         Likewise.
4793         * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
4794         Likewise.
4795         * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
4796         * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
4797         * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
4799 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
4801         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
4802         Remove redundant #includes.
4803         * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
4804         Likewise.
4805         * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
4806         Likewise.
4807         * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
4808         Likewise.
4809         * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
4810         Likewise.
4811         * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
4812         Likewise.
4813         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
4814         Likewise.
4815         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
4816         Likewise.
4817         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
4818         Likewise.
4819         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
4820         Likewise.
4821         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
4822         Likewise.
4823         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
4824         Likewise.
4825         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
4826         Likewise.
4828 2004-01-04  Mark Mitchell  <mark@codesourcery.com>
4830         PR c++/12226
4831         * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
4832         constructor.
4833         * testsuite/27_io/basic_fstream/4.cc: Likewise.
4834         * testsuite/27_io/basic_ifstream/4.cc: Likewise.
4835         * testsuite/27_io/basic_ios/4.cc: Likewise.
4836         * testsuite/27_io/basic_iostream/4.cc: Likewise.
4837         * testsuite/27_io/basic_istream/4.cc: Likewise.
4838         * testsuite/27_io/basic_istingstream/4.cc: Likewise.
4839         * testsuite/27_io/basic_ofstream/4.cc: Likewise.
4840         * testsuite/27_io/basic_ostream/4.cc: Likewise.
4841         * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
4842         * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
4843         * testsuite/27_io/basic_stringstream/4.cc: Likewise.
4845 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
4847         * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
4848         Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
4849         always use double underscored names.
4850         * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
4851         Likewise.
4852         * include/bits/locale_facets.h (struct __numpunct_cache):
4853         Dimension _M_atoms_out and _M_atoms_in one position smaller.
4854         (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out
4855         and _M_atoms_in.