* config/arm/symbian.h (STARTFILE_SPEC): Remove crt*.o.
[official-gcc.git] / libstdc++-v3 / ChangeLog
blob2e928168b2872e2075ed8ac9307abb112dee0a42
1 2004-09-30  Paolo Carlini  <pcarlini@suse.de>
3         PR libstdc++/10975 (DR 453)
4         * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
5         and __off == 0.
6         * docs/html/ext/howto.html: Add an entry for DR 453.
7         * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
8         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
9         * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
10         * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
11         * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
12         * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
13         move to...
14         * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
15         * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
16         move to...
17         * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
19 2004-09-29  Paolo Carlini  <pcarlini@suse.de>
21         * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
22         Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
23         (str()): Slightly tweak, protect from pptr() == 0.
24         (_M_update_egptr()): Likewise.
25         * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
26         for an empty buffer use __beg instead of _M_string.capacity().
27         * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
28         * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
30         * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
31         * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
32         * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
33         * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
35 2004-09-29  Paolo Carlini  <pcarlini@suse.de>
36             Benjamin Kosnik  <bkoz@redhat.com>
37         
38         * testsuite/testsuite_io.h (class constraint_buf): New, extended
39         and templatized version of constraint_filebuf; add typedefs for
40         streambuf/stringbuf/filebuf and wchar_t counterparts.
42 2004-09-28  Paolo Carlini  <pcarlini@suse.de>
44         PR libstdc++/16612
45         * include/bits/basic_string.h (_M_dispose, _M_refcopy,
46         basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
47         don't deal with _S_empty_rep.
48         * include/bits/basic_string.tcc (_S_construct, _M_destroy,
49         _M_leak_hard, _M_mutate): Likewise.
50         * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
51         * acconfig.h: Add corresponding undef.  
52         * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
53         * docs/html/configopts.html: Document --enable-fully-dynamic-string.
54         * configure: Regenerate.
55         * config.h.in: Likewise.
57 2004-09-28  Benjamin Kosnik  <bkoz@redhat.com>
58             Paolo Carlini  <pcarlini@suse.de>
60         * testsuite/21_strings/basic_string/operations/char/1.cc: New.
61         * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
62         * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
63         * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc: 
64         New.
66 2004-09-28  Paolo Carlini  <pcarlini@suse.de>
68         * README: Remove obsolete entry about include/c_shadow.
70 2004-09-24  H.J. Lu  <hongjiu.lu@intel.com>
72         PR libstdc++/17469
73         * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
75 2004-09-24  Paolo Carlini  <pcarlini@suse.de>
77         * src/localename.cc (locale::locale(const char*)): Minor tweaks:
78         rename a variable, move an assignment.
79         (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
81 2004-09-24  Paul Brook  <paul@codesourcery.com>
83         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
84         simulator targets.
85         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
86         * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
87         * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
88         * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
89         * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
90         * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
92 2004-09-23  Zack Weinberg  <zack@codesourcery.com>
94         * testsuite/20_util/memory/auto_ptr/assign_neg.cc
95         * testsuite/23_containers/map/operators/1_neg.cc
96         * testsuite/23_containers/set/operators/1_neg.cc:
97         Update locations and/or regexps of dg-error markers.
99 2004-09-23  P.J. Darcy  <darcypj@us.ibm.com>
101         * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
102         Add rule to build ${host_builddir}/gthr-tpf.h.
103         * include/Makefile.in: Regenerate.
105 2004-09-23  Paolo Carlini  <pcarlini@suse.de>
106             Magnus Fromreide  <magfr@lysator.liu.se>
108         * include/bits/boost_concept_check.h (struct _SequenceConcept):
109         Remove wrong requirement, i.e., not present in Table 67.
111 2004-09-21  Paolo Carlini  <pcarlini@suse.de>
113         PR libstdc++/12882 (cont)
114         * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
115         * configure: Regenerate.
116         * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
117         _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
118         trivial showmanyc for large files too.
120 2004-09-17  Jonathan Wakely  <redi@gcc.gnu.org>
122         * include/bits/stl_algo.h (remove): Remove too restrictive
123         concept-check.
125 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
127         * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
128         as per Nathan's original suggestion.
130 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
132         * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
133         up a bit.
134         * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
135         * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
136         * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
138 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
139             Andrea Arcangeli  <andrea@suse.de>
141         * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
142         call unnecessarily sync, that is fflush: the library, since 3.4.0
143         does not use buffered fread/fwrite.
144         * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
146 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
148         * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
149         Define.
150         * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
151         Define.
152         * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
153         (__cxa_vec_new): Use it.
154         (__cxa_vec_new2): Likewise.
155         (__cxa_vec_new3): Likewise.
156         (__cxa_vec_cdtor): Likewise.
157         (__cxa_vec_cctor): Likeiwse.
158         (__cxa_vec_dtor): Likewise.
159         (__cxa_vec_cleanup): Likewise.
160         (__cxa_vec_delete2): Likewise.
161         (__cxa_vec_delete3): Likewise.
162         * libsupc++/vec.cc (__cxa_vec_new): Likewise.
163         (__cxa_vec_new2): Likewise.
164         (__cxa_vec_new3): Likewise.
165         (__cxa_vec_cdtor): Likewise.
166         (__cxa_vec_cctor): Likeiwse.
167         (__cxa_vec_dtor): Likewise.
168         (__cxa_vec_cleanup): Likewise.
169         (__cxa_vec_delete2): Likewise.
170         (__cxa_vec_delete3): Likewise.
171         (__aeabi_vec_ctor_nocookie_nodtor): New function.
172         (__aeabi_vec_ctor_cookie_nodtor): Likewise.
173         (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
174         (__aeabi_vec_new_cookie_noctor): Likewise.
175         (__aeabi_vec_new_nocookie): Likewise.
176         (__aeabi_vec_new_cookie_nodtor): Likewise.
177         (__aeabi_vec_new_cookie): Likewise.
178         (__aeabi_vec_dtor): Likewise.
179         (__aeabi_vec_dtor_cookie): Likewise.
180         (__aeabi_vec_delete): Likewise.
181         (__aeabi_vec_delete3): Likewise.
182         (__aeabi_vec_delete3_nodtor): Likewise.
183         (__aeabi_atexit): Likewise.
185 2004-09-14  Nathan Myers  <ncm@cantrip.org>
187         * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
188         for 11722: copy can replace move; the common case is __avail == 0.
190 2004-09-14  Paolo Carlini  <pcarlini@suse.de>
192         * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
193         to __is_scalar, more clear and consistent with "tr1" naming.
194         * include/bits/stl_algobase.h: Update consistently throughout.
196 2004-09-13  Paolo Carlini  <pcarlini@suse.de>
198         PR libstdc++/11722
199         * include/std/std_fstream.h (xsgetn): Declare only.
200         * include/bits/fstream.tcc (xsgetn): Define, optimize for the
201         always_noconv() case: when __n > __buflen, copy the available
202         buffer and issue a direct read.
203         * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
205         * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
206         conditional.
208 2004-09-13  Hans-Peter Nilsson  <hp@bitrange.com>
210         * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
211         libstdc++_maybe_build_wrapper instead of using local code.
213 2004-09-08  Benjamin Kosnik  <bkoz@redhat.com>
215         * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
217 2004-09-03  Jan Beulich  <jbeulich@novell.com>
219         * crossconfig.m4: Add NetWare as a target.
220         * configure: Regenerate.
222 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
224         * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
225         defined.
227 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
228             Simon Richter  <Simon.Richter@hogyros.de>
230         PR libstdc++/16715
231         * include/bits/istream.tcc: Add extern template for iostream
232         char and wchar_t instantiations.
234 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
235             Leland Wang  <llwang@infor.org>
237         PR libstdc++/17259
238         * include/ext/ropeimpl.h (rope::_S_compare): Use
239         _Rope_constants::_S_leaf.
241 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
243         PR libstdc++/16848
244         * include/Makefile.am (ext_headers): Remove demangle.h.
245         * include/Makefile.in: Regenerate.
246         * include/ext/demangle.h: Remove.
248 2004-09-01  Benjamin Kosnik  <bkoz@redhat.com>
250         PR libstdc++/16614
251         * include/ext/mt_allocator.h (__mt_base): Not type dependent,
252         split into..
253         (__pool): New, specialize.
254         (__common_pool): New, static bits here.
255         (__per_type_pool): New, and here.
256         (__mt_alloc_base): New.
257         (__mt_alloc): Add template parameter, inherit from it.
258         * src/allocator.cc: Split this...
259         * src/allocator-inst.cc: And this...
260         * src/pool_allocator.cc: ...into this.
261         * src/mt_allocator.cc: ... and this. Add definitions for
262         __mt_base.
263         * src/Makefile.am (sources): Split allocator.cc to
264         pool_allocator.cc and mt_allocator.cc.
265         * src/Makefile.in: Regenerate.
266         * config/linker-map.gnu: Add symbols.
267         * docs/html/ext/mt_allocator.html: Document new design.
268         * testsuite/ext/mt_allocator/tune-1.cc: New.
269         * testsuite/ext/mt_allocator/tune-2.cc: New.
270         * testsuite/ext/mt_allocator/tune-3.cc: New.
271         * testsuite/ext/mt_allocator/tune-4.cc: New.
273         * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
274         * testsuite/ext/allocators.cc: Use check_new, split into...
275         * testsuite/ext/mt_allocator/check_new.cc: this.
276         * testsuite/ext/pool_allocator/check_new.cc: this.
277         * testsuite/ext/malloc_allocator/check_new.cc: this.
278         * testsuite/ext/debug_allocator/check_new.cc: this.
279         * testsuite/ext/mt_allocator/instantiate.cc: this.
280         * testsuite/ext/pool_allocator/instantiate.cc: this.
281         * testsuite/ext/malloc_allocator/instantiate.cc: this.
282         * testsuite/ext/debug_allocator/instantiate.cc: this.
284 2004-08-30  Phil Edwards  <phil@codesourcery.com>
286         * docs/html/install.html:  Update locales list (from Paolo).
287         Remove other redundant information and point to the GCC install
288         documentation.
290 2004-08-30  Benjamin Kosnik  <bkoz@redhat.com>
292         * include/ext/pool_allocator.h: Rename __pool_base to
293         __pool_alloc_base.
294         * src/allocator.cc: Same.
295         * config/linker-map.gnu: Same.
297 2004-08-30  Paolo Carlini  <pcarlini@suse.de>
298             Kenneth C. Schalk  <ken@xorian.net>
300         PR libstdc++/17215
301         * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
302         Check the return value of fclose/sync, loop on EINTR.
303         (__basic_file<char>::sys_open): Likewise, for sync.
305 2004-08-29  Paolo Carlini  <pcarlini@suse.de>
307         * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
308         case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
309         and 7.23.3.5), two if !_GLIBCXX_USE_C99.
310         * testsuite/22_locale/time_get/get_time/char/4.cc: New.
311         * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
313 2004-08-27  Jason Merrill  <jason@redhat.com>
315         PR c++/13684
316         * libsupc++/guard.cc (static_mutex): Internal class implementing a
317         recursive mutex which controls initialization of local statics.
318         (__gnu_cxx::recursive_init): New exception class.
319         (__cxa_guard_acquire): Deal with locking and recursion detection.
320         (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
322 2004-08-27  Matthias Klose  <doko@debian.org>
324         * configure.host: For mips*-*-linux* update cpu_include_dir
325         after atomicity_dir is set.
327 2004-08-27  Matthias Klose  <doko@debian.org>
329         * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
330         * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
331         * configure.host: Set abi_baseline_pair for arm*-*-linux* and
332         mips*-*-linux*.
334 2004-08-27  Paolo Carlini  <pcarlini@suse.de>
336         * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
337         * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
338         * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
339         * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
340         * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
342         * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
343         formatting fixes.
344         * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
345         * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
346         * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
347         * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
349 2004-08-25  Paolo Carlini  <pcarlini@suse.de>
351         PR libstdc++/17038 (partial)
352         * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
353         __maxlen to 128.
354         * include/bits/locale_facets.h (class __timepunct): Add FIXME
355         comment about _M_put.
356         * config/locale/generic/time_members.cc (_M_put): Always null
357         terminate __s.
358         * config/locale/gnu/time_members.cc (_M_put): Likewise.
359         * testsuite/22_locale/time_put/put/char/17038.cc: New.
360         * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
362 2004-08-24  Paolo Carlini  <pcarlini@suse.de>
364         * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
365         * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
366         * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
367         * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
368         * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
369         * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
371         * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
372         newlines.
373         * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
375 2004-08-22  Matthias Klose  <doko@debian.org>
377         * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
378         * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
380 2004-08-23  Paolo Carlini  <pcarlini@suse.de>
382         * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
383         * aclocal.m4: Regenerate with automake-1.9.1.
384         * configure: Regenerate.
385         * Makefile.in: Likewise.
386         * include/Makefile.in: Likewise.
387         * libmath/Makefile.in: Likewise.
388         * libsupc++/Makefile.in: Likewise.
389         * po/Makefile.in: Likewise.
390         * src/Makefile.in: Likewise.
391         * testsuite/Makefile.in: Likewise.
393 2004-08-22  Paolo Carlini  <pcarlini@suse.de>
395         * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
396         to a signed type, long according to the resolution of DR 359.
397         * testsuite/22_locale/num_put/put/char/9.cc: New.
398         * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
400         * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
401         Simplify a bit: no need to clear showpos.
403 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
405         * include/bits/char_traits.h (struct _Char_traits_match): Remove,
406         unused.
408 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
410         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
411         wchar_t type for the fill argument; minor formatting tweaks.
412         * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
413         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
414         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
415         * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
416         * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
417         * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
419 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
421         * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
422         with _M_word != _M_local_word two times, redundantly.
424 2004-08-20  Jason Merrill  <jason@redhat.com>
426         * include/Makefile.am (${host_builddir}/gthr.h): Don't add
427         _GLIBCXX_ to #pragma lines.
428         * include/Makefile.in: Update.
430 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
432         PR libstdc++/7219 (continued)
433         * include/bits/ios_base.h (class ios_base): Expose Annex D.6
434         typedefs by default.
435         * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
436         * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
437         line number.
438         * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
440 2004-08-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
442         * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
443         barrier to locking asm.
445 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
447         * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
448         actually the warning is a front-end bug (c++/17120).
450 2004-08-20  Matthias Klose  <doko@debian.org>
452         * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
454 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
456         * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
457         used as truth value warning.
459 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
461         * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
462         baseline.
464 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
466         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
468 2004-08-19  Benjamin Kosnik  <bkoz@redhat.com>
470         * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
471         timezone.
472         * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
474 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
476         * testsuite/performance/20_util/allocator/insert.cc: For std::map
477         instantiate the allocator for a correct pair type.
478         * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
479         * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
480         * testsuite/performance/20_util/allocator/producer_consumer.cc:
481         Likewise.
483         * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
484         minor formatting fixes.
485         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
487 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
489         * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
490         results.
491         * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
492         * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
493         * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
494         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
495         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
496         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
497         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
499 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
501         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
503 2004-08-18  Matthias Klose  <doko@debian.org>
505         * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
506         * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
507         * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
509 2004-08-17  Paolo Carlini  <pcarlini@suse.de>
511         * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
513 2004-08-17  Paolo Carlini  <pcarlini@suse.de>
515         * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
517 2004-08-17  Benjamin Kosnik  <bkoz@redhat.com>
519         * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
521 2004-08-16  Paolo Carlini  <pcarlini@suse.de>
523         * include/bits/indirect_array.h: Trivial formatting fixes.
524         * include/bits/valarray_after.h: Likewise.
525         * include/bits/valarray_array.h: Likewise.
526         * src/valarray-inst.cc: Likewise.
528 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
530         * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
531         * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
532         * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
534         * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
535         * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
536         * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
537         * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
538         * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
540 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
542         * include/bits/deque.tcc: Trivial formatting fixes.
544 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
546         * include/bits/deque.tcc: Trivial formatting fixes.
548         * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
549         Remove unneded typedef.
551         * include/bits/locale_facets.tcc: Very minor tweaks.
553         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
554         type for the fill argument.
555         * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
556         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
557         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
558         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
559         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
560         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
561         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
562         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
564 2004-08-13  Paolo Carlini  <pcarlini@suse.de>
566         * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
567         memmove is not needed, memcpy suffices.
569 2004-08-13  Paolo Carlini  <pcarlini@suse.de>
571         * include/std/std_fstream.h (class basic_ifstream,
572         class basic_ofstream, class basic_fstream): Add const overloads
573         of is_open, as per DR 365 [WP].
574         * docs/html/ext/howto.html: Add an entry for DR 365.
576 2004-08-12  Paolo Carlini  <pcarlini@suse.de>
578         * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
580 2004-08-12  Paolo Carlini  <pcarlini@suse.de>
582         PR libstdc++/16956
583         * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
584         to the returned value, reorganize a bit.
585         * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
586         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
588         * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
589         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
590         * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
591         * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
593 2004-08-12  Paul Brook  <paul@codesourcery.com>
595         * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
596         _GLIBCXX_CXA_VEC_CTOR_RETURN.
597         * config/cpu/generic/cxxabi_tweaks.h: Ditto.
598         * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
599         __cxa_vec_ctor_return.
600         * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
601         Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
603 2004-08-12  Kelley Cook  <kcook@gcc.gnu.org>
605         * Makefile.in, aclocal.m4, configure, include/Makefile.in,
606         libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
607         src/Makefile.in, testsuite/Makefile.in: Regenerate
609 2004-08-12  Jan Beulich  <jbeulich@novell.com>
611         * config/locale/generic/ctype_members.cc
612         (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
613         initializer for return value, as that is invalid for enumerated types.
614         * config/locale/gnu/ctype_members.cc
615         (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
617 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
619         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
621 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
623         * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
624         variable.
625         * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
626         * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
627         * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
628         * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
629         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
630         * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
631         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
632         * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
633         * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
634         * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
635         * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
636         * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
637         * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
638         * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
639         * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
640         * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
641         * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
642         * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
643         * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
644         * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
645         * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
647 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
648             Petur Runolfsson  <peturr02@ru.is>
650         PR libstdc++/16959
651         * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
652         standard streams are constructed.
653         * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
655 2004-08-09  Paolo Carlini  <pcarlini@suse.de>
657         * include/bits/stl_bvector.h: Trivial formatting fixes.
659 2004-08-09  Paolo Carlini  <pcarlini@suse.de>
661         * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
663 2004-08-07  Jonathan Wakely  <redi@gcc.gnu.org>
664             Paolo Carlini  <pcarlini@suse.de>
666         * src/debug.cc (_Error_formatter::_M_print_string): In order
667         to print individual words from __string, _M_format_word can't
668         be called since may be just sprintf, thus ignoring completely
669         __n: instead, use memmove and append '\0' by hand.
671 2004-08-07  Paolo Carlini  <pcarlini@suse.de>
673         * config/locale/generic/c_locale.h (__convert_from_v): Don't
674         use a default for __prec, assume __prec >= 0 and simplify.
675         * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
676         * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
677         Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
679 2004-08-04  Phil Edwards  <phil@codesourcery.com>
681         * docs/html/configopts.html:  Emphasize that options change.
682         * docs/html/17_intro/configury.html:  Update links.
684 2004-08-03  Paolo Carlini  <pcarlini@suse.de>
686         * include/bits/list.tcc: Trivial formatting fixes.
688 2004-08-03  Mark Mitchell  <mark@codesourcery.com>
690         * libsupc++/new_op.cc: Update comments.
691         * libsupc++/del_op.cc: Likewise.
693 2004-08-02  Mark Mitchell  <mark@codesourcery.com>
695         * libsupc++/cxxabi.h: Make all declarations have default
696         visibility.
697         * libsupc++/exception: Likewise.
698         * libsupc++/new: Likewise.
699         * libsupc++/typeinfo: Likewise.
700         * libsupc++/unwind-cxx.h: Likewise.
701         * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
702         the __cxxabiv1 namespace.
703         (__cxa_free_exception): Likewise.
704         * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
705         (__cxa_bad_typeid): Likewise.
706         * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
707         (__cxa_end_catch): Likewise.
708         * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
709         (__cxa_get_globals): Likewise.
710         * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
711         (__cxa_rethrow): Likewise.
712         * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
713         * libsupc++/eh_type.cc: Include <cxxabi.h>.
715         * Makefile.am (hosted_source): Add libmath and testsuite.
716         (SUBDIRS): Remove them.
717         * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
718         on arm*-*-symbianelf*.
719         * crossconfig.m4: Add arm*-*-symbianelf* support.
720         * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
721         when freestanding.  Do not bring names into std:: namespace with
722         "using" when freestanding.  Declare required functions and macros
723         when freestanding.
724         * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
725         when freestanding.
726         * libsupc++/del_op.cc: Declare "free" only when freestanding.
727         * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
728         (malloc): Declare when freestanding.
729         (free): Likewise.
730         (memset): Likewise.
731         (__cxa_allocate_exception): Call malloc, not std::malloc.  Likewise
732         for memset.
733         (__cxa_free_exception): Likewise for free.
734         * libsupc++/new_op.cc: Declare "malloc" when freestanding.
735         * libsupc++/pure.cc (writestr): Define to nothing when
736         freestanding.
737         * libsupc++/vterminate.cc: Do not define anything when
738         freestanding.
739         * Makefile.in: Regenerated.
740         * aclocal.m4: Likewise.
741         * configure: Likewise.
742         * include/Makefile.in: Likewise.
743         * libmath/Makefile.in: Likewise.
744         * libsupc++/Makefile.in: Likewise.
745         * po/Makefile.in: Likewise.
746         * src/Makefile.in: Likewise.
747         * testsuite/Makefile.in: Likewise.
749 2004-08-01  Matt Austern  <austern@apple.com>
751         PR libstdc++/16844
752         * include/bits/stl_list.h (_M_create_node): Remove unused
753         zero-argument version.
754         * include/ext/slist (_M_create_node): Pass two arguments to
755         allocator's construct() member function.
756         * testsuite/23_containers/deque/explicit_instantiation.cc: New.
757         * testsuite/23_containers/list/explicit_instantiation.cc: New.
758         * testsuite/23_containers/vector/explicit_instantiation.cc: New.
759         * testsuite/23_containers/map/explicit_instantiation.cc: New.
760         * testsuite/23_containers/set/explicit_instantiation.cc: New.
761         * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
762         * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
763         * testsuite/ext/hash_set_explicit_instantiation.cc: New.
764         * testsuite/ext/slist_explicit_instantiation.cc: New.
766 2004-07-30  Paolo Carlini  <pcarlini@suse.de>
768         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
769         num_get<>::_M_extract_int): In the main parsing loop delay the
770         life of __q to the actual use point.
772 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
774         PR libstdc++/14220
775         * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
776         Don't clip the precision passed down to __convert_from_v:
777         22.2.2.2.2 nowhere says so.
778         * testsuite/22_locale/num_put/put/char/14220.cc: New.
779         * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
781 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
783         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
785 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
786             Petur Runolfsson  <peturr02@ru.is>
788         PR libstdc++/12658 (continued)
789         * src/locale_init.cc (locale::locale, locale::global): Use
790         a single locale_mutex instead of two separate mutexes.
792 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
794         PR libstdc++/16813
795         * include/debug/map.h (insert(_InputIterator, _InputIterator)):
796         Fix typo.
797         * testsuite/23_containers/map/insert/16813.cc: New.
799 2004-07-29  Phil Edwards  <phil@codesourcery.com>
801         * docs/html/faq/index.html:  Update version references.  Make
802         clear that code from SGI has diverged greatly.  Remove references
803         to library snapshots and what's-new sections.
804         * docs/html/faq/index.txt:  Regenerate.
806 2004-07-28  Matt Austern  <austern@apple.com>
808         * include/bits/stl_construct.h (_Destroy): New three-argument
809         overload that takes an allocator argument.  Another inline
810         three-argument overload that takes std::allocator and dispatches
811         to the two-argument version.
812         * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
813         Change return type to void to match uninitialized_fill_n.
814         (__uninitialized_copy_a_): New function.  Like uninitialized_copy
815         except that it takes an allocator and uses it for construct and
816         destroy.  If the allocator is std::allocator, dispatches to
817         uninitialized_copy.
818         (__uninitialized_fill_a): Likewise.
819         (__uninitialized_fill_n_a): Likewise.
820         (__uninitialized_copy_copy): Give it an allocator argument.
821         (__uninitialized_fill_copy): Likewise.
822         (__uninitialized_copy_fill): Likewise.
823         * include/bits/deque.tcc: Use new forms defined in stl_construct.h
824         and stl_uninitialized.h.  Replace use of single-argument _Construct
825         and _Destroy with use of allocator's construct and destroy methods.
826         * include/bits/list.tcc: Likewise.
827         * include/bits/stl_deque.h: Likewise.
828         * include/bits/stl_list.h: Likewise.
829         * include/bits/stl_tree.h: Likewise.
830         * include/bits/stl_vector.h: Likewise.
831         * include/bits/vector.tcc: Likewise.
832         * include/ext/hashtable.h: Use rebind so that allocator_type
833         has correct type for a container's allocator.  Replace use of
834         single-argument _Construct and _Destroy with use of allocator's
835         construct and destroy methods.
836         * include/ext/memory (__uninitialized_copy_n_a): New function.
837         Like uninitialized_copy_n except that it takes an extra parameter,
838         an allocator, and uses it for construct and destroy operations.
839         * include/ext/rope: Use new forms defined in stl_construct.h,
840         stl_uninitialized.h, and ext/memory.  Replace use of single-argument
841         _Construct and _Destroy with allocator construct and destroy methods.
842         * include/ext/ropeimpl.h: Likewise.
843         * include/ext/slist.h: Likewise.
844         * testsuite/testsuite_allocator.h (check_construct_destroy): New.
845         * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
846         * testsuite/23_containers/deque/check_construct_destroy.cc: New.
847         * testsuite/23_containers/list/check_construct_destroy.cc: New.
848         * testsuite/23_containers/set/check_construct_destroy.cc: New.
849         * testsuite/23_containers/vector/check_construct_destroy.cc: New.
850         * testsuite/ext/hash_check_construct_destroy.cc: New.
851         * testsuite/ext/slist_check_construct_destroy.cc: New.
853 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
855         2003-10-01  Eric Christopher  <echristo@redhat.com>
856         * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
857         constraint.
858         2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
859         * config/cpu/sh/atomicity.h: New.  Use movli and movco on SH4a.
861 2004-07-23  Benjamin Kosnik  <bkoz@redhat.com>
863         PR libstdc++/16678
864         * include/bits/locale_facets.tcc: Fix for -Werror.
866 2004-07-23  Jonathan Wakely  <redi@gcc.gnu.org>
868         * docs/html/debug.html: Say debug mode only available since 3.4.0.
870 2004-07-21  Benjamin Kosnik  <bkoz@redhat.com>
872         * docs/doxygen/mainpage.html: Clarify links.
873         * docs/doxygen/stdheader.cc: Add files.
874         * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
875         * docs/doxygen/user.cfg.in: New options, wrap.
877 2004-07-20  Danny Smith  <dannysmith@users.sourceforge.net>
879         * include/c_std/std_cwchar.h (wcsstr): Correct signature.
881 2004-07-19  Benjamin Kosnik  <bkoz@redhat.com>
883         PR libstdc++/15488
884         * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
886 2004-07-17  Richard Sandiford  <rsandifo@redhat.com>
888         PR bootstrap/16469
889         * scripts/create_testsuite_files: Pass -print to find.
891 2004-07-15  Paolo Carlini  <pcarlini@suse.de>
893         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
894         * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
896 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
898         PR libstdc++/14697
899         * acinclude.m4 (glibcxx_shared_libgcc): Correct
900         glibcxx_shared_libgcc test for multilibs.
901         * configure: Rebuilt.
903 2004-07-14  Paolo Carlini  <pcarlini@suse.de>
905         PR libstdc++/16505
906         * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
907         the signature to return void, as per 20.4.4.3.
908         * include/bits/stl_vector.h (vector::vector(size_type,
909         const value_type&, const allocator_type&), vector::vector(size_type),
910         vector::_M_initialize_dispatch): Adjust callers.
911         * include/bits/vector.tcc (vector<>::_M_fill_assign,
912         vector<>::_M_fill_insert): Likewise.
913         * testsuite/20_util/memory/16505.cc: New.
915 2004-07-14  Paolo Carlini  <pcarlini@suse.de>
917         * testsuite/22_locale/locale/cons/12658_thread-1.cc,
918         12658_thread-2.cc: Use __gnu_test::try_named_locale.
920 2004-07-13  Benjamin Kosnik  <bkoz@redhat.com>
922         * docs/html/ext/mt_allocator.html: Add docs for _Tune.
923         * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
924         (__mt_alloc::_S_set_options): Same.
925         Add to comments.
927 2004-07-13  Benjamin Kosnik  <bkoz@redhat.com>
929         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
930         for linux.
931         * configure: Regenerated.
933 2004-07-13  Paolo Carlini  <pcarlini@suse.de>
935         * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
936         to 12658_thread-1.cc and xfail.
937         * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
938         simpler version of 12658_thread-1.cc, still failing on 3_3 and
939         not failing on 3_4/mainline - both on single processor and
940         multiprocessor machines.
942 2004-07-12  Benjamin Kosnik  <bkoz@redhat.com>
944         * docs/html/abi.html: Remove non-public qualification.
946         * include/bits/concurrence.h: Tweak comments.
948 2004-07-11  Paolo Carlini  <pcarlini@suse.de>
950         Add wchar_t counterparts of the basic_streambbuf<char> tests.
951         * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
952         * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
953         Likewise.
954         * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
955         * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
956         3599.cc: Likewise.
957         * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
958         * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
959         * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
960         * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
961         * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
962         Likewise.
963         * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
965         * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
966         tweaks.
967         * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
968         Likewise.
969         * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
970         * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
972 2004-07-11  Phil Edwards  <phil@codesourcery.com>
974         * acinclude.m4:  Cosmetic shell syntax fixes.
975         * configure.ac:  Bring comment inline with reality.
976         * configure.host:  Both of the above.  Move 'arm' case to right
977         place in host_cpu switch.
978         * aclocal.m4, configure:  Regenerate.
980 2004-07-09  Paolo Carlini  <pcarlini@suse.de>
982         Add wchar_t counterparts of the basic_stringbuf<char> tests.
983         * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
984         * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
985         * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
986         3599.cc, 9988.cc: Likewise.
987         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
988         Likewise.
989         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
990         Likewise.
991         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
992         Likewise.
993         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
994         Likewise.
995         * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
996         * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
997         * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
998         * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
999         Likewise.
1000         * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
1001         9404-1.cc: Likewise.
1002         * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
1003         9404-2.cc: Likewise.
1004         * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
1005         3955.cc: Likewise.
1006         * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
1007         * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
1009 2004-07-08  Paolo Carlini  <pcarlini@suse.de>
1011         * include/bits/gslice.h: Trivial formatting fixes.
1012         * include/bits/gslice_array.h: Likewise.
1013         * include/bits/indirect_array.h: Likewise.
1014         * include/bits/mask_array.h: Likewise.
1015         * include/bits/slice_array.h: Likewise.
1016         * include/bits/valarray_after.h: Likewise.
1017         * include/bits/valarray_array.h: Likewise.
1018         * include/bits/valarray_before.h: Likewise.
1019         * include/std/std_valarray.h: Likewise.
1021 2004-07-08  Benjamin Kosnik  <bkoz@redhat.com>
1023         PR c++/16169
1024         * include/bits/basic_string.h (basic_string::operator=): Revert.
1026 2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>
1028         * configure.ac (libtool_VERSION): To 6:2:0.
1029         * configure: Regenerated.
1031         * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
1033 2004-07-07  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
1035         PR libstdc++/16411
1036         * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
1038 2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>
1040         * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
1041         -Weffc++ issues.
1043 2004-07-07  Paolo Carlini  <pcarlini@suse.de>
1045         PR libstdc++/16401
1046         * include/bits/sstream.tcc (overflow): When reallocating _M_string
1047         use an exponential grow policy.
1048         * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
1049         * testsuite/performance/27_io/stringbuf_overflow.cc: New.
1051 2004-07-06  Anssi Hannula  <anssi.hannula@mbnet.fi>
1053         PR libstdc++/15928
1054         * crossconfig.m4: Add in bits for djgpp.
1055         * configure: Regenerate.
1057 2004-07-05  Jonathan Wakely  <redi@gcc.gnu.org>
1059         * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
1060         instantiation of set and multiset (functor param given as int).
1062 2004-07-04  Paolo Carlini  <pcarlini@suse.de>
1064         * include/bits/basic_string.h: Trivial formatting fixes and/or
1065         const-ification of some variables.
1066         * include/bits/deque.tcc: Likewise.
1067         * include/bits/stl_algobase.h: Likewise.
1068         * include/bits/stl_bvector.h: Likewise.
1069         * include/bits/stl_construct.h: Likewise.
1070         * include/bits/stl_deque.h: Likewise.
1071         * include/bits/stl_pair.h: Likewise.
1072         * include/bits/stl_vector.h: Likewise.
1073         * include/bits/vector.tcc: Likewise.
1075 2004-07-04  Paolo Carlini  <pcarlini@suse.de>
1077         * testsuite/25_algorithms/copy/1.cc: Add instantiations for
1078         systems with no COMDAT or weak support.
1079         * testsuite/25_algorithms/copy/2.cc: Likewise.
1080         * testsuite/25_algorithms/copy/3.cc: Likewise.
1081         * testsuite/25_algorithms/copy/4.cc: Likewise.
1083 2004-07-03  Paul Brook  <paul@codesourcery.com>
1085         * configure.ac: Set ABI_TWEAKS_SRCDIR.
1086         * configure.host: Set abi_tweaks_dir.  Check for atomicity.h when
1087         setting atomicity_dir.  Override type_cpu for arm based targets.
1088         * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
1089         * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
1090         * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
1091         * libsupc++/vec.cc: Ditto.
1092         * config/cpu/arm/cxxabi_tweaks.h: New file.
1093         * config/cpu/generic/cxxabi_tweaks.h: New file.
1094         * */Makefile.in: Regenerate.
1095         * configure: Regenerate.
1097 2004-07-02  Paolo Carlini  <pcarlini@suse.de>
1099         * include/bits/type_traits.h (_Is_normal_iterator): Move...
1100         * include/bits/cpp_type_traits.h: ... here, renamed to
1101         __is_normal_iterator and consistent with the other traits.
1102         * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
1103         to the struct __copy_normal and three specializations.
1104         (__copy_backward_output_normal_iterator,
1105         __copy_backward_input_normal_iterator): Likewise, convert to
1106         the struct __copy_backward_normal and three specializations.
1107         (copy, copy_backward): Use the latter.
1108         (__copy_aux, __copy_backward_aux): Very minor tweaks.
1110 2004-07-01  Paolo Carlini  <pcarlini@suse.de>
1112         * include/bits/stl_algobase.h (__copy_trivial): Remove.
1113         (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
1114         __is_trivially_copyable, __are_same and __copy::copy.
1115         (__copy): Rewrite as a class template and two specializations.
1116         (__copy_ni2): Simplify, just call __copy_aux.
1118         * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
1119         check.
1120         * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
1121         for destination value type != source value type.
1123 2004-07-01  Benjamin Kosnik  <bkoz@redhat.com>
1124             Per Bothner  <per@bothner.com>
1125             Mohan Embar  <gnustuff@thisiscool.com>
1127         PR libstdc++/16248
1128         * include/bits/concurrence.h (__glibcxx_mutex_type): New.
1129         (__glibcxx_mutex): Encapsulate mutex init function into type for
1130         threaded configurations without __GTHREAD_MUTEX_INIT.
1131         (lock::lock): Make device member a reference.
1132         (lock::~lock): Same.
1133         * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
1134         to mutex_type.
1135         * src/allocator.cc: Same.
1137 2004-06-30  Brad Spencer  <spencer@infointeractive.com>
1139         * include/ext/mt_allocator.h: Handle allocations at static
1140         initialization that happen before _S_options is (automatically)
1141         constructed; set _S_init even if _M_force_new is true.
1143 2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
1145         * config/linker-map.gnu: Revert new exports.
1147 2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
1148             Stuart Anderson  <anderson@netsweng.com>
1150         * config/linker-map.gnu: Add destructor exports for abstract base
1151         classes to conform to LSB.
1153 2004-06-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1154             Paolo Carlini  <pcarlini@suse.de>
1156         * include/bits/cpp_type_traits.h: Add __is_pointer and
1157         __is_trivially_copyable.
1158         * include/bits/stl_algobase.h (fill, fill_n): Slightly
1159         tweak to use the latter.
1160         (__copy_backward_dispatch): Remove.
1161         (__copy_backward_aux): Rewrite to use __is_pointer and
1162         __is_trivially_copyable and __copy_backward::copy_b.
1163         (__copy_backward): Rewrite as a class template and two
1164         specializations.
1166 2004-06-30  Paolo Carlini  <pcarlini@suse.de>
1168         * testsuite/25_algorithms/copy.cc: Move to...
1169         * testsuite/25_algorithms/copy/1.cc: ... here, extend.
1170         * testsuite/25_algorithms/copy/2.cc: New.
1171         * testsuite/25_algorithms/copy/3.cc: New.
1172         * testsuite/25_algorithms/copy/4.cc: New.
1174 2004-06-29  Paul Brook  <paul@codesourcery.com>
1176         * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
1177         element size in the cookie.
1179 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
1181         * include/bits/cpp_type_traits.h: Move the additions to
1182         namespace __gnu_internal outside of namespace std; trivial
1183         formatting fixes.
1185 2004-06-28  Benjamin Kosnik  <bkoz@redhat.com>
1187         * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
1188         Revert -Weffc++ changes that defined copy ctory and or assignment
1189         operator.
1190         * libsupc++/tinfo.cc (__upcast_result): Same.
1192 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
1194         * src/localename.cc (locale::_Impl::_Impl): Slightly improve
1195         the algorithm used to name the categories.
1197 2004-06-28  Paolo Bonzini  <bonzini@gnu.org>
1199         * include/Makefile.am: Give a .gch extension to
1200         the PCH files, not only to the directory.
1201         * include/Makefile.in: Regenerate.
1203 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
1205         * config/locale/gnu/monetary_members.cc
1206         (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
1207         assignments of _M_decimal_point and _M_thousands_sep.
1209 2004-06-27  Paolo Carlini  <pcarlini@suse.de>
1211         * docs/html/17_intro/contribute.html: Update some links.
1212         * docs/html/17_intro/porting-howto.html: Likewise.
1213         * docs/html/17_intro/porting-howto.xml: Likewise.
1214         * docs/html/18_support/howto.html: Likewise.
1215         * docs/html/21_strings/howto.html: Likewise.
1216         * docs/html/27_io/howto.html: Likewise.
1217         * docs/html/configopts.html: Likewise.
1218         * docs/html/ext/howto.html: Likewise.
1219         * docs/html/faq/index.html: Likewise.
1220         * docs/html/install.html: Don't mention 2.x compilers.
1222 2004-06-27  Paolo Carlini  <pcarlini@suse.de>
1224         * include/ext/rope: Trivial formatting fixes.
1225         * include/ext/ropeimpl.h: Likewise.
1227 2004-06-26  Paolo Carlini  <pcarlini@suse.de>
1229         PR libstdc++/16210
1230         * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
1231         availability of strto(u)ll, not used anymore in the iostreams.
1232         * configure: Regenerate.
1234 2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>
1236         PR libstdc++/16182
1237         * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
1238         AC_DEFINE_UNQUOTED.
1239         * configure: Regenerate.
1241 2004-06-25  Paul Brook  <paul@codesourcery.com>
1243         * libsupc++/cxxabi.h: Define __ARM_EABI__
1244         (__guard): Use it.
1245         * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
1247 2004-06-25  Paul Brook  <paul@codesourcery.com>
1249         * include/bits/concurrence.h: Still create mutex object when
1250         single-threaded.
1252 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
1254         * include/bits/stl_algobase.h (fill, fill_n): Revert last
1255         change: actually we need to copy construct an object of type
1256         _Tp, not of type iterator_traits<>::value_type, therefore the
1257         code is ok.
1259 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
1261         * include/bits/stl_algobase.h (fill, fill_n): Tighten the
1262         dispatch: use iterator_traits<>::value_type, not _Tp.
1264 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
1266         * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
1267         * testsuite/25_algorithms/fill/2.cc: Likewise.
1269 2004-06-25  Dan Nicolaescu  <dann@ics.uci.edu>
1270             Paolo Carlini  <pcarlini@suse.de>
1272         * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
1273         for fill and fill_n, respectively: when copying is cheap, use a
1274         temporary to avoid a memory read in each iteration.
1276 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
1278         * testsuite/25_algorithms/fill/1.cc: New.
1279         * testsuite/25_algorithms/fill/2.cc: Likewise.
1281 2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>
1283         * include/debug/formatter.h (__gnu_debug::_Error_formatter):
1284         Remove copy constructor and assignment operator.
1286 2004-06-24  Benjamin Kosnik  <bkoz@redhat.com>
1288         * include/bits/concurrence.h (__gnu_cxx::lock): New.
1289         * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
1290         (__pool_base::_M_get_mutex): New.
1291         * include/bits/allocator.h: Tweak.
1292         * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
1293         * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
1294         * include/bits/stl_threads.h: Remove.
1295         * include/Makefile.am: Also here.
1296         * include/Makefile.in: Regenerate.
1298         * src/locale_init.cc: Use __gnu_cxx::lock.
1300         * src/allocator.cc: Move all instantiations...
1301         * src/allocator-inst.cc: ...here.
1303 2004-06-23  Andrew Pinski  <apinski@apple.com>
1305         * linkage.m4: Remove check for libmx.
1306         * configure: Regenerate.
1308 2004-06-23  Paolo Carlini  <pcarlini@suse.de>
1310         PR libstdc++/16154
1311         * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
1312         Don't require the _DefaultConstructibleConcept.
1313         (struct _ForwardIteratorConcept): Require it here.
1315 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
1317         * include/bits/istream.tcc (getline): Make sure arguments passed
1318         to min/max have the same type.
1319         * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
1320         * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
1322 2004-06-22  Benjamin Kosnik  <bkoz@redhat.com>
1324         * docs/html/abi.html: Update links.
1326 2004-06-22  Paolo Carlini  <pcarlini@suse.de>
1328         * testsuite/26_numerics/complex_inserters_extractors.cc,
1329         complex_value.cc, buggy_complex.cc: Move to...
1330         * testsuite/26_numerics/complex/: ... here.
1331         * testsuite/26_numerics/c99_classification_macros_c++.cc,
1332         c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
1333         fabs_inline.cc: Move to...
1334         * testsuite/26_numerics/cmath/: ... here.
1335         * testsuite/26_numerics/binary_closure.cc, slice.cc,
1336         slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
1337         valarray_name_lookup.cc, valarray_operators.cc,
1338         valarray_subset_assignment.cc: Move to...
1339         * testsuite/26_numerics/valarray/: ... here (new dir).
1340         * testsuite/26_numerics/sum_diff.cc: Move to...
1341         * testsuite/26_numerics/numeric/: ... here (new dir).
1343 2004-06-22  Paolo Carlini  <pcarlini@suse.de>
1345         * include/std/std_istream.h (ignore(streamsize __n = 1,
1346         int_type __delim = traits_type::eof())): Split into...
1347         (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1348         int_type __delim)): The first two can be much more simpler
1349         and efficient than the fully general case; also, the last
1350         two can take advantage of the same mechanism already used
1351         for getline.
1352         * include/bits/istream.tcc (ignore(streamsize __n = 1,
1353         int_type __delim = traits_type::eof()): Remove.
1354         (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1355         int_type __delim)): New.
1357 2004-06-21  Loren J. Rittle  <ljrittle@acm.org>
1359         * config/linker-map.gnu: Use wildcards for
1360         __basic_file::sys_open(FILE*, _Ios_Openmode).
1362 2004-06-20  Paolo Carlini  <pcarlini@suse.de>
1364         * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
1366 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
1368         * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
1369         the alignment requested.
1370         (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
1371         (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
1372         (__mt_alloc<>::deallocate): Likewise.
1374 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
1376         PR libstdc++/16020
1377         * include/debug/safe_base.h
1378         (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
1379         _Safe_sequence_base::operator=): Provide definitions.
1380         * testsuite/23_containers/bitset/cons/16020.cc: New.
1382 2004-06-18  Benjamin Kosnik  <bkoz@redhat.com>
1384         * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
1385         (__pool_base): Remove unused template parameter.  Add
1386         protected. Move lock data into __pool_base::_Lock. Remove static
1387         on member functions.
1388         (__pool_base::_M_get_free_list): New.
1389         (__pool_alloc): Move _S_force new here.
1390         * src/allocator.cc: Move out of line __pool_base definitions here.
1391         * config/linker-map.gnu: Export bits from __pool_base.
1393 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
1395         * config/locale/gnu/numeric_members.cc
1396         (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
1397         assignments of _M_decimal_point and _M_thousands_sep.
1398         * config/locale/gnu/time_members.cc
1399         (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
1400         and reformat assignments of date and time fields.
1402 2004-06-16  Paolo Carlini  <pcarlini@suse.de>
1404         * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
1405         to use _Data_allocate.
1406         * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
1407         (rope<>::_S_substring): Likewise.
1408         (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
1409         (rope<>::c_str()): Likewise.
1410         (rope<>::replace_with_c_str()): Likewise.
1412         * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
1413         Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
1414         not _RopeRep.
1415         (_Rope_iterator_base<>::_S_setcache): Likewise.
1416         (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
1417         (rope<>::_S_substring): Likewise.
1418         (rope<>::_S_dump): Likewise.
1419         (rope<>::_S_fetch_ptr): Likewise.
1420         (rope<>::_S_compare): Likewise.
1421         (rope<>::replace_with_c_str()): Likewise.
1423         * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
1424         * testsuite/ext/rope/2.cc: New.
1426 2004-06-16  Paolo Carlini  <pcarlini@suse.de>
1427             Matt Austern  <austern@apple.com>
1429         * testsuite/ext/rope/3.cc: New.
1431 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
1433         * acinclude.m4: Remove useless multilib configury.
1434         * Makefile.am: Remove useless multilib rules.
1435         * aclocal.m4: Regenerate.
1436         * Makefile.in: Regenerate.
1437         * configure: Regenerate.
1439 2004-06-15  Paolo Carlini  <pcarlini@suse.de>
1441         * include/ext/hashtable.h: Trivial formatting fixes.
1442         * include/ext/rb_tree: Likewise.
1444 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
1446         * include/ext/hash_map: Trivial formatting fixes.
1447         * include/ext/hash_set: Likewise.
1448         * include/ext/memory: Likewise.
1449         * include/ext/numeric: Likewise.
1451 2004-06-14  Benjamin Kosnik  <bkoz@redhat.com>
1453         * Makefile.in: Regenerate with automake 1.8.5.
1454         * aclocal.m4: Same.
1455         * include/Makefile.in: Same.
1456         * libmath/Makefile.in: Same.
1457         * libsupc++/Makefile.in: Same.
1458         * po/Makefile.in: Same.
1459         * src/Makefile.in: Same.
1460         * testsuite/Makefile.in: Same.
1462 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
1464         * include/ext/slist: Trivial formatting fixes.
1466 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
1468         * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
1469         Don't use the 'magic number' 10 in the computation of __minlen;
1470         never access __name past __minlen; in the loop over __i3, don't
1471         decrease __nmatches and increase __i3 at once, only either of
1472         the two; tidy.
1474 2004-06-13  Paolo Carlini  <pcarlini@suse.de>
1476         * include/bits/locale_facets.tcc (time_get<>::do_get_time,
1477         time_get<>::do_get_date): Use only once _M_extract_via_format,
1478         instead of going through "%X"/"%x" and calling it two times
1479         (+ using widen).
1481 2004-06-12  Paolo Carlini  <pcarlini@suse.de>
1483         * include/ext/algorithm: Trivial formatting fixes.
1484         * include/ext/functional: Likewise.
1485         * include/ext/hash_fun.h: Likewise.
1486         * include/ext/iterator: Likewise.
1488 2004-06-12  Paolo Carlini  <pcarlini@suse.de>
1490         * include/bits/basic_string.tcc (find(const _CharT*, size_type,
1491         size_type)): Reimplement using std::search.
1492         * src/string-inst.cc: Instantiate std::search for char/wchar_t.
1494 2004-06-12  Dhruv Matani  <dhruvbird@gmx.net>
1496         * testsuite/performance/21_strings/string_find.cc: New.
1498 2004-06-10  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
1500         * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
1502 2004-06-10  Jan van Dijk  <jan@etpmod.phys.tue.nl>
1504         * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
1505         this function return a value.
1507 2004-06-09  Paolo Carlini  <pcarlini@suse.de>
1509         PR libstdc++/15775
1510         * include/bits/stl_deque.h: Consistently with stl_set.h, define
1511         pointer as allocator's pointer, likewise for reference,
1512         const_pointer, and const_reference.
1513         * include/bits/stl_list.h: Likewise.
1514         * include/bits/stl_map.h: Likewise.
1515         * include/bits/stl_multimap.h: Likewise.
1516         * include/bits/stl_vector.h: Likewise.
1518 2004-06-09  Benjamin Kosnik  <bkoz@redhat.com>
1520         * crossconfig.m4: Remove signbit, signbitf, signbitl.
1521         * linkage.m4: Comment LIBMATHOBJS, tweak others.  AC_DEFINES for
1522         builtin math functions instead of AC_DEFINE_UNQUOTED.
1523         * configure: Regenerate.
1525 2004-06-08  Benjamin Kosnik  <bkoz@redhat.com>
1527         * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
1528         * docs/doxygen/mainpage.html: Remove links.
1530 2004-06-08  Jason Merrill  <jason@redhat.com>
1532         * config/linker-map.gnu: Use wildcards for
1533         __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
1535 2004-06-08  Paolo Carlini  <pcarlini@suse.de>
1537         * include/ext/pool_allocator.h: Convert to a global free-list,
1538         as per the original SGI/HP design: move the implementation
1539         details to struct __pool_base, from which __pool_alloc derives.
1540         * src/allocator.cc: Instantiate __pool_base.
1542 2004-06-07  Dhruv Matani  <dhruvbird@gmx.net>
1543             Paolo Carlini  <pcarlini@suse.de>
1545         * testsuite/testsuite_performance.h
1546         (resource_counter::allocated_memory): Make it return the right
1547         number of bytes requested by the allocators/application. This is
1548         the sbrk+mmaped memory.
1550 2004-06-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1552         * include/std/std_complex.h (log): Tidy.
1554 2004-05-31  Benjamin Kosnik  <bkoz@redhat.com>
1556         * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
1557         * testsuite/testsuite_abi.cc: Same.
1558         * configure.ac (libtool_VERSION): Bump to 6:1:0.
1559         * configure: Regenerate.
1560         * aclocal.m4: Regenerate.
1562 2004-05-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1564         * include/std/std_complex.h (complex<_Tp>): Properly indent
1565         to follow C++STYLE.
1566         (complex<>::__rep): New.
1567         (__complex_abs): New.  Dispatch to built-ins.
1568         (abs): Use them.
1569         (__complex_arg): New. Dispatch to built-ins.
1570         (arg): Use it.
1571         (__complex_cos): New. Dispatch to built-ins.
1572         (cos): Use it.
1573         (__complex_cosh): New. Dispatch to built-ins.
1574         (cosh): Use it.
1575         (__complex_exp): New. Dispatch to built-ins.
1576         (exp): Use it.
1577         (__complex_log): New. Dispatch to built-ins.
1578         (log): Use it.
1579         (__complex_sin): New. Dispatch to built-ins.
1580         (sin): Use it.
1581         (__complex_sinh): New. Dispatch to built-ins.
1582         (sinh): Use it.
1583         (__complex_sqrt): New. Dispatch to built-ins.
1584         (sqrt): Use it.
1585         (__complex_tan): New. Dispatch to built-ins.
1586         (tan): Use it.
1587         (__complex_tanh): New. Dispatch to built-ins.
1588         (tanh): Use it.
1589         (__complex_pow): New. Dispatch to built-ins.
1590         (pow): Use it.
1592 2004-05-29  Richard B. Kreckel  <Richard.Kreckel@Framatome-ANP.com>
1593             Benjamin Kosnik  <bkoz@redhat.com>
1595         PR libstdc++/14600
1596         * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
1597         * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
1598         * config/io/basic_file_stdio.cc (__basic_file::file): New.
1599         * config/io/basic_file_stdio.h: Define.
1601 2004-05-27  Benjamin Kosnik  <bkoz@redhat.com>
1603         PR libstdc++/15675
1604         * docs/html/documentation.html: Update doxygen links for 3.4.0.
1606 2004-05-27  Jan Beulich  <jbeulich@novell.com>
1608         * scripts/create_testsuite_files: Tweak.
1610 2004-05-25  Benjamin Kosnik  <bkoz@redhat.com>
1612         PR libstdc++/15489
1613         * scripts/create_testsuite_files: Revert xtype change, add non-GNU
1614         bits to do the same thing.
1616 2004-05-24  Paolo Carlini  <pcarlini@suse.de>
1618         * include/bits/istream.tcc (ignore): Correctly deal with
1619         n == numeric_limits<streamsize>::max().
1620         * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
1622         * include/bits/istream.tcc (basic_istream<>::getline): Prefer
1623         '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
1624         __n == numeric_limits<>::min().
1626         * include/bits/istream.tcc: Minor tweaks.
1628         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
1629         Tighten.
1630         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
1631         Likewise.
1632         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
1633         Likewise.
1634         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
1635         Likewise.
1636         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
1638 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
1640         PR libstdc++/12854
1641         Fixups for -Weffc++.
1642         * include/bits/basic_string.h (basic_string::operator=): Return
1643         pointer to this instead of result of assign. Although redundant,
1644         this doesn't impact resultant codegen.
1646         * include/bits/locale_facets.h (__numpunct_cache): Declare
1647         assignment opxserator and copy constructor private.
1648         (__timepunct_cache): Same.
1649         (__moneypunct_cache): Same.
1650         (collate): Use member initialization list for _M_c_locale_collate.
1651         * config/locale/gnu/messages_members.h: Same.
1652         * config/locale/gnu/time_members.h (__timepunct): Same.
1653         * src/codecvt.cc: Use member initialization list to initialize
1654         _M_c_locale_codecvt.
1655         * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
1656         * config/os/gnu-linux/ctype_noninline.h: Same.
1657         * src/locale.cc (_Impl): Same.
1658         * src/locale_init.cc: Same.
1659         * src/localename.cc: Same.
1661         * include/bits/basic_ios.h (basic_ios): Complete member
1662         initialization list.
1663         * include/bits/istream.tcc (basic_istream::sentry): Same.
1664         * include/bits/ostream.tcc (basic_ostream::sentry): Same.
1665         * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
1666         _M_pback to member initialization list.
1667         * include/std/std_streambuf.h: Same.
1668         * include/std/std_sstream.h: Same, for _M_mode.
1669         * src/ios.cc (ios_base): Same.
1671         * include/ext/rope: Make derived classes match exception
1673          specifications. Add copy constructors and assignment operators.
1675         * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
1676         constructor and assignment operator protected.
1677         (_Safe_iterator_base): Same.
1678         * include/debug/formatter.h (_Error_formatter): Define copy
1679         constructor and assignment operator.
1681         * include/backward/strstream: Declare assignment operator and copy
1682         constructor private.
1684 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
1686         * testsuite/testsuite_hooks.h (func_callback): Declare copy
1687         constructor and assignment operator private.
1688         * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
1689         exception specifications of base class.
1690         * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
1691         * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
1692         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
1694 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
1696         * libsupc++/cxxabi.h: Remove duplicated and useless public and
1697         private keywords in class declarations. Format. Use
1698         stddef.h. Expose declarations to "C" compilation.
1699         * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
1700         assignment operator.
1701         (__dyncast_result): Same.
1702         * libsupc++/vec.cc (uncatch_exception): Same, use member
1703         initialization list.
1705 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
1707         * testsuite/abi_check.cc: Add unistd.h.
1709 2004-05-22  Paolo Carlini  <pcarlini@suse.de>
1711         PR libstdc++/15565
1712         * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
1713         __int_to_char(unsigned long long)): Showpos is not relevant
1714         for unsigned types.
1715         * testsuite/22_locale/num_put/put/char/15565.cc: New.
1716         * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
1718         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
1719         char.
1720         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
1721         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
1722         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
1723         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
1724         * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
1725         * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
1727 2004-05-21  Matthias Klose  <doko@debian.org>
1729         * docs/doxygen/run_doxygen:  Bump required version.
1731 2004-05-21  Benjamin Kosnik  <bkoz@redhat.com>
1733         * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
1734         * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
1736 2004-05-21  Paolo Carlini  <pcarlini@suse.de>
1738         * include/bits/istream.tcc (ignore): Remove redundant line.
1739         (readsome): Tidy, closely following 27.6.1.3, p30.
1741 2004-05-20  Paolo Carlini  <pcarlini@suse.de>
1743         * include/bits/istream.tcc (operator>>(basic_istream<>&,
1744         basic_string<>&)): Use a temporary buffer, thus avoiding
1745         reallocation for common case.
1746         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
1747         New.
1748         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
1749         Likewise.
1751         * include/bits/istream.tcc: Const-ification of a few variables.
1753         * include/bits/ostream.tcc: Trivial formatting fixes and
1754         const-ification of some variables.
1756 2004-05-20  Benjamin Kosnik  <bkoz@redhat.com>
1758         PR libstdc++/15123
1759         PR libstdc++/13928
1760         * docs/doxygen/Intro.3: Remove Allocators.3.
1761         Add new extension headers, extension namespace list.
1762         * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
1763         Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
1764         __gnu_debug::. Remove __policy_ renames.
1765         * docs/doxygen/guide.html: Add dot note.
1766         * docs/doxygen/stdheader.cc: Edit, add files.
1767         * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
1769 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
1771         * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
1773 2004-05-18  Jan Beulich  <jbeulich@novell.com>
1775         PR libstdc++/15489
1776         * scripts/create_testsuite_files: Also find source files through
1777         symbolic links.
1779 2004-05-18  Jan Beulich  <jbeulich@novell.com>
1781         PR libstdc++/15488
1782         * testsuite/lib/libstdc++.exp: Make test files writable.
1784 2004-05-18  Paolo Carlini  <pcarlini@suse.de>
1786         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
1787         tweaks.
1789 2004-05-18  Dhruv Matani  <dhruvbird@gmx.net>
1791         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
1792         allocation loop which removes blocks from the global free list
1793         from O(N) to O(1) when the required blocks are <= the number
1794         available.
1796 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
1798         * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
1800 2004-05-17  Benjamin Kosnik  <bkoz@redhat.com>
1802         * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
1803         * testsuite/23_containers/deque/14340.cc: New.
1804         * testsuite/23_containers/list/14340.cc: New.
1805         * testsuite/23_containers/map/14340.cc: New.
1806         * testsuite/23_containers/multimap/14340.cc: New.
1807         * testsuite/23_containers/multiset/14340.cc: New.
1808         * testsuite/23_containers/set/14340.cc: New.
1809         * testsuite/23_containers/vector/14340.cc: New.
1811 2004-05-17  Douglas Gregor   <gregod@cs.rpi.edu>
1813         PR libstdc++/14340
1814         * include/debug/safe_iterator.h (_Safe_iterator converting
1815         constructor): Only allow declaration to instantiate when the
1816         incoming _Safe_iterator has exactly the right iterator type.
1818 2004-05-17  Jonathan Wakely  <redi@gcc.gnu.org>
1820         * include/bits/boost_concept_check.h: Fix old attribute syntax.
1821         * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
1822         to pass concept-checks.
1823         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1824         * testsuite/23_containers/set/modifiers/swap.cc: Same.
1825         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1827 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
1829         * include/std/std_bitset.h: Minor formatting fixes.
1831 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
1833         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1834         Consistently update __bin._M_free[0].
1835         (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
1836         __bin._M_free[0] to simplify the while loop (i.e., the number
1837         of iterations becomes known at the outset).
1839 2004-05-15  Paolo Carlini  <pcarlini@suse.de>
1841         * include/std/std_bitset.h: Trivial formatting fixes.
1843 2004-05-14  Paolo Carlini  <pcarlini@suse.de>
1844             Ivan Godard  <igodard@pacbell.net>
1846         PR libstdc++/15361
1847         * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
1848         * testsuite/23_containers/bitset/ext/15361.cc: New.
1850 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
1852         PR libstdc++/15046
1853         * crossconfig.m4: Add C99 math bits for linux crosses.
1854         * configure: Regenerate.
1856 2004-05-13  Simon Marshall <simon.marshall@misys.com>
1857             Benjamin Kosnik  <bkoz@redhat.com>
1859         PR libstdc++/15090
1860         * include/bits/locale_facets.h: Fix for -fno-for-scope.
1861         * include/debug/safe_sequence.h: Same.
1862         * include/debug/safe_iterator.tcc: Same.
1863         * src/debug.cc: Same.
1864         * src/locale.cc: Same.
1865         * src/locale_init.cc: Same.
1866         * src/localename.cc: Same.
1867         * config/locale/gnu/ctype_members.cc: Same.
1868         * config/locale/gnu/numeric_members.cc: Same.
1869         * testsuite/testsuite_abi.cc: Same.
1870         * testsuite/testsuite_hooks.cc: Same.
1872 2004-05-13  Jonathan Wakely  <redi@gcc.gnu.org>
1874         * docs/html/abi.html: Document effect of -fabi-version on value
1875         of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
1876         Fix markup.
1878 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
1880         PR libstdc++/15074
1881         * docs/html/faq/index.html: Update docs for libsupc++ usage.
1883 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
1885         PR libstdc++/15412
1886         * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
1887         __gnu_internal.
1888         (_GLIBCXX_mutex_address): Same.
1889         (_GLIBCXX_once): Same.
1890         (_GLIBCXX_mutex_init): Same.
1891         (_GLIBCXX_mutex_address_init): Same.
1893 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
1895         * docs/html/abi.html: New.
1896         * docs/html/abi.txt: Remove.
1897         * docs/html/documentation.html: Add link.
1898         * testsuite/Makefile.am: Add files.
1899         * testsuite/Makefile.in: Regenerated.
1900         * testsuite/abi_check.cc: Move and modify code into...
1901         * testsuite/testsuite_abi.cc: Add.
1902         * testsuite/testsuite_abi.h: Add.
1904         * docs/html/17_intro/TODO: Update.
1905         * include/bits/stl_pair.h: Format.
1907 2004-05-06  Matthias Klose  <doko@debian.org>
1909         * include/backward/iterator.h:  Add GPL copyright info,
1910         with exception clause.
1911         * include/bits/boost_concept_check.h: Likewise.
1912         * include
1913         * libsupc++/tinfo.h: Likewise.
1914         * po/string_literals.cc: Likewise.
1916 2004-05-03  Andreas Tobler  <a.tobler@schweiz.ch>
1918         * acinclude.m4: Replace -W with more speaking -Wextra.
1919         * configure: Rebuilt.
1921 2004-05-03  Paolo Carlini  <pcarlini@suse.de>
1923         Optimize locale::_M_impl->_M_names for the most common cases:
1924         !_M_names[0] means unnamed; !_M_names[1] means all the categories
1925         the same name (_M_names[0] && _M_names[1] means that the full set
1926         of _M_names must be processed, the general case).
1927         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
1928         Tweak, saving work when !_M_names[1].
1929         (locale::locale(const locale&, _Facet*): Simplify: now just setting
1930         _M_names[0] = 0 means unnamed.
1931         * src/locale.cc (locale::operator==): Deal first with the common,
1932         easy cases, otherwise fall back to locale::name().
1933         (locale::name()): Tweak, if !_M_names[0] just return "*".
1934         (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
1935         copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
1936         * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
1937         * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
1938         Simplify when !std::strchr, just updating _M_names[0]; clean up.
1939         (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
1940         for the general case (full set of names), then do the usual work;
1941         clean up.
1943         * src/locale.cc (locale::name()): Reserve space in __ret.
1944         * src/locale_init.cc (locale::global(const locale&)): Save
1945         the name in a temporary.
1946         * src/localename.cc (locale::locale(const char*)): Reserve space
1947         in __str.
1949 2004-04-29  Paolo Carlini  <pcarlini@suse.de>
1951         * src/locale.cc (locale::operator==): Always avoid constructing
1952         locale::name(), directly compare pairs of _M_names.
1954 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
1956         * include/bits/istream.tcc: Fix comment.
1958 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
1960         * include/bits/stl_vector.h: Trivial formatting fixes.
1961         * include/bits/vector.tcc: Likewise.
1963 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
1965         PR libstdc++/15002 (continued again)
1966         * include/bits/istream.tcc (getline(basic_istream<>&,
1967         basic_string<>&, _CharT)): Use a temporary buffer, thus
1968         avoiding reallocation for common case.
1970         * include/bits/basic_string.tcc (_S_construct(_InIterator,
1971         _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
1972         of temporary buffer to a power of two.
1974         * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
1976 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
1978         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
1979         New.
1980         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
1981         Likewise.
1982         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
1984 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
1985             Petur Runolfsson  <peturr02@ru.is>
1987         PR libstdc++/15002 (continued)
1988         * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
1989         streamsize, char_type)): Use traits::find/copy in a loop to speed
1990         up greatly the function in the common case (I/O buffer size >> 1).
1992 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
1994         * testsuite/27_io/basic_istream/getline/char/4.cc: New.
1996         * include/bits/istream.tcc (getline(basic_istream<>&,
1997         basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
1998         of sbumpc(), consistently with the other functions, thus also
1999         dealing correctly with the case of exceeded string::max_size().
2001 2004-04-24  Matthias Klose  <doko@debian.org>
2003         Jonathan Wakely  <cow@compsoc.man.ac.uk>
2004         * docs/html/configopts.html: Fix reference to allocator config option.
2006 2004-04-23  Andrew Pinski  <pinskia@physics.uc.edu>
2008         * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
2009         * configure: Regenerate.
2011 2004-04-23  Daniel Jacobowitz  <drow@mvista.com>
2013         PR libstdc++/15047, libstdc++/11610
2014         * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
2015         (libstdc++_init): Don't pass outdir to v3-copy-files.
2017 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
2019         * include/bits/deque.tcc: Trivial formatting fixes.
2020         * include/bits/stl_deque.h: Likewise.
2021         * include/bits/stl_list.h: Likewise.
2022         * include/bits/stl_tree.h: Likewise.
2024 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
2025             Andrew Pinski  <pinskia@physics.uc.edu>
2027         * include/bits/basic_string.tcc (_M_mutate): Don't compute
2028         __src unnecessarily.
2030 2004-04-19  Benjamin Kosnik  <bkoz@redhat.com>
2032         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
2033         Clarify assertion, set test variable to false before assert.
2034         * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
2035         * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
2036         * testsuite/27_io/ios_base/storage/2.cc: Same.
2038         * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
2039         function returns.
2040         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
2041         * testsuite/27_io/fpos/14320-3.cc: Same.
2043         * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
2044         * testsuite/27_io/fpos/1.cc: Same.
2045         * testsuite/27_io/basic_stringstream/2.cc: Same.
2046         * testsuite/27_io/basic_stringbuf/4.cc: Same.
2047         * testsuite/27_io/basic_stringbuf/1.cc: Same.
2048         * testsuite/27_io/basic_stringbuf/2.cc: Same.
2049         * testsuite/27_io/basic_streambuf/2.cc: Same.
2050         * testsuite/27_io/basic_ostringstream/2.cc: Same.
2051         * testsuite/27_io/basic_ostream/2.cc: Same.
2052         * testsuite/27_io/basic_ofstream/2.cc: Same.
2053         * testsuite/27_io/basic_istringstream/2.cc: Same.
2054         * testsuite/27_io/basic_istream/2.cc: Same.
2055         * testsuite/27_io/basic_iostream/2.cc: Same.
2056         * testsuite/27_io/basic_ios/2.cc: Same.
2057         * testsuite/27_io/basic_ifstream/2.cc: Same.
2058         * testsuite/27_io/basic_fstream/2.cc: Same.
2059         * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
2061         * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
2062         unsigned against zero.
2063         * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
2064         * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
2066         * testsuite/18_support/new_delete_placement.cc: Initialize
2067         variables before first use.
2068         * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
2069         * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
2070         * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
2071         * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
2072         Same.
2073         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
2074         * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
2075         Same.
2076         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
2077         * testsuite/27_io/types/2.cc: Same.
2079         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
2080         file name.
2081         * testsuite/27_io/fpos/14775.cc: Same.
2083 2004-04-19  Paolo Carlini  <pcarlini@suse.de>
2085         PR libstdc++/15002 (partial)
2086         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2087         Special case __n2 == 1, not calling traits_type::assign/copy.
2089 2004-04-17  Benjamin Kosnik  <bkoz@redhat.com>
2091         * include/bits/stl_bvector.h: Use _M_impl._M_start.
2093 2004-04-16  Benjamin Kosnik  <bkoz@redhat.com>
2095         * include/bits/c++config (_GLIBCXX_STD): New.
2096         * src/list.cc: Use it.
2097         * include/std/std_bitset.h: Same.
2098         * include/bits/vector.tcc: Same.
2099         * include/bits/stl_set.h: Same.
2100         * include/bits/stl_multiset.h: Same.
2101         * include/bits/stl_multimap.h: Same.
2102         * include/bits/stl_map.h: Same.
2103         * include/bits/stl_list.h: Same.
2104         * include/bits/stl_vector.h: Same.
2105         * include/bits/stl_bvector.h: Same.
2106         * include/bits/stl_deque.h: Same.
2107         * include/bits/deque.tcc: Same.
2108         * include/bits/list.tcc: Same.
2109         * include/debug/vector: Same.
2110         * include/debug/set.h: Same.
2111         * include/debug/multiset.h: Same.
2112         * include/debug/multimap.h: Same.
2113         * include/debug/map.h: Same.
2114         * include/debug/list: Same.
2115         * include/debug/deque: Same.
2116         * include/debug/bitset: Same.
2117         * include/debug/formatter.h (__gnu_debug): Remove using directive.
2118         Add using declaration for std::type_info.
2119         * include/debug/safe_iterator.h: Add using declaration for
2120         std::iterator_traits and std::pair.
2121         * src/debug_list.cc: New.
2122         * src/Makefile.am: Add debug_list.cc.
2123         * src/Makefile.in: Regenerate.
2124         * config/linker-map.gnu: Add _List_node_base exports for std and
2125         __gnu_norm.
2127         * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
2128         idiom that other containers use.
2129         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2131 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
2133         PR libstdc++/14975
2134         * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
2135         in case of error.
2136         * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
2137         * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
2139 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
2141         * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
2142         used anymore.
2143         * config.h.in: Regenerate.
2145 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
2147         * config/locale/generic/monetary_members.cc
2148         (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
2149         btowc unnecessarily, just cast to wchar_t (the concerned chars
2150         all belong to the basic character set).
2151         * config/locale/generic/numeric_members.cc
2152         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2153         * config/locale/gnu/monetary_members.cc
2154         (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
2155         * config/locale/gnu/numeric_members.cc
2156         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2158 2004-04-15  Paolo Carlini  <pcarlini@suse.de>
2160         * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
2161         avoid constructing unnecessarily this->name().
2163 2004-04-14  Zack Weinberg  <zack@codesourcery.com>
2165         * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
2166         Change definition of CXX to use $(shell) instead of backticks.
2167         * testsuite/Makefile.in: Regenerate.
2169 2004-04-12  Dhruv Matani  <dhruvbird@gmx.net>
2171         * testsuite/performance/20_util/allocator/list_sort_search.cc:
2172         Minor formatting fixes.
2173         * testsuite/performance/20_util/allocator/map_mt_find.cc:
2174         Likewise.
2176 2004-04-12  Paolo Carlini <pcarlini@suse.de>
2178         * config/locale/gnu/numeric_members.cc
2179         (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
2180         in __uselocale, since btowc is called for chars belonging to
2181         the basic character set.
2183 2004-04-09  Paolo Carlini  <pcarlini@suse.de>
2185         * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
2186         * testsuite/22_locale/messages/members/char/2.cc: Ditto.
2187         * testsuite/22_locale/messages/members/char/3.cc: Ditto.
2188         * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
2189         * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
2190         * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
2191         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
2192         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
2193         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
2194         * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
2195         * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
2196         * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
2197         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
2198         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
2199         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
2200         * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
2201         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
2203 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
2205         * config/locale/generic/time_members.cc
2206         (__timepunct<char>::_M_initialize_timepunct,
2207         __timepunct<wchar_t>::_M_initialize_timepunct): the correct
2208         _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
2209         * config/locale/gnu/time_members.cc
2210         (__timepunct<char>::_M_initialize_timepunct,
2211         __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
2212         * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
2213         * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
2215         * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
2216         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
2217         * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
2218         * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
2219         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
2220         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
2221         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
2222         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
2223         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
2224         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
2225         * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
2226         * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
2227         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
2228         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
2229         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
2230         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
2231         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
2232         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
2233         * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
2234         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
2235         * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
2236         * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
2237         * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
2238         * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
2239         * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
2240         * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
2241         * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
2242         * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
2243         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
2244         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
2245         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
2246         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
2247         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
2248         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
2249         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
2250         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
2252         * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
2254 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
2256         * config/locale/gnu/monetary_members.cc
2257         (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
2258         _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
2259         and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
2260         _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
2261         * config/locale/gnu/numeric_members.cc
2262         (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
2263         and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
2265 2004-04-06  Benjamin Kosnik  <bkoz@redhat.com>
2267         Fixups for EDG front end.
2268         * include/ext/rope: Instead of non-existent function
2269         _Data_allocate, use allocator's allocate. Use this.
2270         (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
2271         enumerations from _Rope_RopeRep here.
2272         * include/ext/ropeimpl.h: Same.
2273         * src/ext-inst.cc (_S_min_len): Fix up definition.
2275         * config/locale/gnu/ctype_members.cc: Qualify base class members
2276         with this.
2277         * config/locale/generic/ctype_members.cc: Same.
2278         * config/locale/gnu/messages_members.h: Same.
2279         * config/locale/generic/messages_members.h: Same.
2280         * src/ctype.cc: Same.
2281         * include/bits/codecvt.h: Same.
2283         * include/bits/boost_concept_check.h: Declare.
2284         (__error_type_must_be_an_unsigned_integer_type): Remove this.
2285         (__error_type_must_be_an_integer_type): Remove this.
2286         (__error_type_must_be_a_signed_integer_type): Remove this.
2288         * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
2290         * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
2291         specification to definition.
2292         (__cxa_allocate_exception): Same.
2293         * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
2294         * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
2295         (__cxa_get_globals): Same.
2297         * libsupc++/del_op.cc: Add comment about freestanding.
2299 2004-04-05  Paolo Carlini  <pcarlini@suse.de>
2301         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2302         The critical section is actually very small, only two assignments.
2304 2004-04-04  Paolo Carlini  <pcarlini@suse.de>
2305             Petur Runolfsson  <peturr02@ru.is>
2307         * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
2308         adapted from libstdc++/11378.
2310 2004-04-03  Paolo Carlini  <pcarlini@suse.de>
2312         * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
2313         some duplicated code.
2314         (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
2315         in the single threaded case.
2316         * testsuite/performance/20_util/allocator/list_sort_search.cc:
2317         Reorder and renumber the tests consistently with the other testfiles.
2318         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
2319         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
2320         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
2322 2004-04-02  Paolo Carlini  <pcarlini@suse.de>
2324         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2325         Rearrange arithmetic to avoid computing two divisions at
2326         each deallocation.
2328 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
2330         * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
2331         Streamline the second half, wrapping it in a single
2332         '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
2333         conditionals inside loops.
2335 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
2337         PR libstdc++/14775
2338         * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
2339         * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
2340         GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
2341         to _GLIBCXX_RES_LIMITS.
2342         (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
2343         HAVE_LIMIT_*.
2344         * testsuite/testsuite_hooks.h: Declare set_file_limit.
2345         * testsuite/testsuite_hooks.cc: Define it, using getrlimit
2346         and setrlimit(RLIMIT_FSIZE).
2347         * testsuite/27_io/fpos/14775.cc: New.
2348         * config.h.in: Regenerate.
2349         * configure: Likewise.
2351 2004-03-31  Paolo Carlini  <pcarlini@suse.de>
2353         * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
2354         In v3 uses of sscanf, the special floating-point numbers INF,
2355         INFINITY, etc., cannot occur in input, therefore, if the latter
2356         is too large, ERANGE is always stored in errno, no need of finitel.
2358 2004-03-30  Benjamin Kosnik  <bkoz@redhat.com>
2360         PR libstdc++/14783
2361         * include/bits/stl_tree.h: Adjust initialization list order.
2363 2004-03-29  Loren J. Rittle  <ljrittle@acm.org>
2365         * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
2367 2004-03-29  Paolo Carlini  <pcarlini@suse.de>
2369         * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
2370         on allocator behavior, the memory pointed by data2 may well be not
2371         trashed.
2373 2004-03-28  Chavdar Botev  <cbotev@yahoo.com>
2375         PR libstdc++/14245
2376         * include/bits/basic_string.tcc
2377         (basic_string::basic_string(const basic_string&)): Pass to
2378         _Rep::_M_grab the actual allocator of the string being constructed
2379         not the default constructed one.
2381 2004-03-27  Benjamin Kosnik  <bkoz@redhat.com>
2383         libstdc++ PR/13598
2384         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
2385         (__enc_traits::_M_destroy): New.
2386         (__enc_traits::~__enc_traits): Use it.
2387         (__enc_traits::operator=): Use _M_destroy, _M_init.
2388         (__enc_traits::__enc_traits): Same.
2390 2004-03-27  Petur Runolfsson  <peturr02@ru.is>
2392         * testsuite/ext/enc_filebuf/char/13598.cc: New.
2394 2004-03-27  Paolo Carlini  <pcarlini@suse.de>
2396         * include/ext/mt_allocator.h: Uglify consistently names of
2397         variables, members and classes; tidy.
2399 2004-03-27  Dhruv Matani  <dhruvbird@gmx.net>
2401         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2402         Deallocation loop rewrote.
2404 2004-03-26  Paolo Carlini  <pcarlini@suse.de>
2406         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
2407         __mt_alloc<>::deallocate): Protect two instances of
2408         block->thread_id with __GTHREADS.
2410 2004-03-25  Gawain Bolton  <gp.bolton@computer.org>
2412         * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
2413         default argument in constructors.
2414         (_Rb_tree::_M_empty_initialize): Remove.
2416 2004-03-25  Benjamin Kosnik  <bkoz@redhat.com>
2418         * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
2419         * testsuite/23_containers/set/operators/1_neg.cc: Same.
2421 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
2423         * include/bits/cpp_type_traits.h: Changed __is_pod
2424         completely. Now, it does not use any of the previous type_traits
2425         to detect the pod types, and it also detects function pointers as
2426         POD types.
2428         * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
2429         which encapsulates the internal implementation of an rb_tree. Made
2430         the allocator a base class of this class instead of the rb_tree,
2431         which was not conforming. This _Rb_tree_impl class is also
2432         specialized on whether the _Compare parameter is a POD type or
2433         not. If so, then it maintains the comparison function as a data
2434         member, otherwise it makes the _Compare parameter a base class of
2435         itself. Also, _M_key_compare is now a function instead of a data
2436         member, so that the above trick can work properly. Delegated the
2437         initialization of the other data members to this newly created
2438         class. Also, now other member functions of rb_tree must refer to
2439         _M_key_compare as _M_impl._M_key_compare(). The other data members
2440         (*) can be referenced to as _M_impl.(*), where
2441         (*) includes _M_header, and _M_node_count.
2443 2004-03-25  Paolo Carlini  <pcarlini@suse.de>
2445         * include/ext/mt_allocator.h (__mt_alloc<>::tune):
2446         Add _M_min_bin, the size in bytes of the smallest bin.
2447         (__mt_alloc<>::tune()): Tweak accordingly.
2448         (__mt_alloc<>::tune(size_t, ...)): Likewise.
2449         (__mt_alloc<>::block_record): Change to a union: members next
2450         and thread_id are never used at the same time.
2451         (__mt_alloc<>::allocate): Update consistently.
2452         (__mt_alloc<>::deallocate): Likewise.
2453         (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
2454         _S_bin_size for the configurable _M_min_size.
2456 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
2458         * include/bits/stl_list.h: Created a _List_impl class and made it
2459         derive from the allocator, instead of the list deriving from the
2460         allocator class, which was not conformant. Changed all references
2461         from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
2462         as above (changed all references to the concerned variables).
2464 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
2466         * include/bits/stl_deque.h: Created a _Deque_impl class and made
2467         it derive from the allocator, instead of the deque deriving from
2468         the allocator class, which was not conformant. Changed all
2469         references to the _M_start, _M_finish, _M_map, and _M_map_size to
2470         _M_impl.*.
2471         (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
2472         qualification in 2 places where it was missing.
2473         (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
2474         above.
2475         * include/bits/deque.tcc: Same as above (changed all references to
2476         the concerned variables).
2478 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
2480         * include/bits/stl_vector.h: Created a _Vector_impl class and made
2481         it derive from the allocator, instead of the _Vector_base class,
2482         deriving from the allocator which was not conformant. Changed all
2483         references to the _M_start, _M_finish, and _M_end_of_storage to
2484         _M_impl.*.
2485         * include/bits/vector.tcc: Same as above (changed all references
2486         to the concerned variables).
2488 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
2490         * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
2491         * testsuite/23_containers/list/cons/clear_allocator.cc: New.
2492         * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
2494 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
2496         * include/ext/malloc_allocator.h: Fixed the construct function to
2497         call global placement new instead of assignment. Added a check
2498         after the return from malloc to check whether returned pointer is
2499         NULL, and if so, throw std::bad_alloc().
2500         * include/ext/debug_allocator.h: Added a check in the deallocate
2501         function to check whether the user has passed a NULL pointer or
2502         not.
2504 2004-03-24  Benjamin Kosnik  <bkoz@redhat.com>
2506         * docs/html/20_util/allocator.html: Add bitmap_allocator links.
2508 2004-03-24  Andreas Schwab  <schwab@suse.de>
2510         * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
2511         warning from IA64 assembler.
2513 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
2515         * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
2516         function call __builtin_ctz instead of the while loop.
2517         (allocate) -> If condition has __builtin_expect.
2518         (deallocate) -> Ditto.
2519         Renamed a few left-over variables and typedefs according to the
2520         C++STYLE mentioned in the documentation.
2521         Protected calls to __gthread* by __gthread_active_p(), whose value
2522         is cached in the local variable __threads_active.
2524 2004-03-24  Felix Yen  <fwy@alumni.brown.edu>
2526         * testsuite/performance/20_util/allocator/producer_consumer.cc:
2527         Use linear algorithm for producer.
2529 2004-03-24  Paolo Carlini  <pcarlini@suse.de>
2531         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
2532         __mt_alloc<>::deallocate): Avoid redundant conditionals.
2534 2004-03-23  Benjamin Kosnik  <bkoz@redhat.com>
2536         * include/bits/locale_facets.h: Tweaks for 80 column.
2537         (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
2538         (__moneypunct_cache::_M_cache): Same.
2539         (num_get): Don't inherit from __num_base.
2540         (num_put): Same.
2541         (money_get): Don't inherit from money_base.
2542         (money_put): Same.
2543         (__timepunct::_M_am_pm_format): New.
2544         (time_get::_M_extract_num): Return iterator, use ios_base as argument.
2545         (time_get::_M_extract_name): Same.
2546         (time_get::_M_extract_via_format): Same.
2547         * include/bits/locale_facets.tcc: Tweaks for 80 column.
2548         Use _M_getloc instead of getloc.
2549         * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
2550         * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
2551         * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
2553 2004-03-22  Paolo Carlini  <pcarlini@suse.de>
2555         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
2556         * configure: Regenerate.
2557         * config/allocator/pool_allocator_base.h: New.
2558         * include/ext/pool_allocator.h: Convert to a standard-conforming
2559         allocator.
2560         * src/allocator.cc: Tweak instantiations.
2561         * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
2562         * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
2563         * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
2564         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
2565         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
2566         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
2568 2004-03-22  Hans-Peter Nilsson  <hp@axis.com>
2570         * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
2571         inline" and attribute-unused.  Qualify parameter __mem with
2572         "volatile".
2573         (__exchange_and_add): Ditto.  Add back memory clobber to asm.
2575 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
2577         * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
2578         Remove junk.
2579         * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
2580         Likewise.
2581         * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
2582         Likewise.
2583         * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
2584         Likewise.
2585         * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
2586         Likewise.
2587         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
2588         Likewise.
2589         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
2590         Likewise.
2591         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
2592         Likewise.
2593         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
2594         Likewise.
2595         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
2596         Likewise.
2598 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
2600         * include/std/std_valarray.h: Document DR389 [Ready].
2601         * docs/html/ext/howto.html: Add an entry for DR389.
2603 2004-03-19  Michael Eager  <eager@mvista.com>
2605         * config/cpu/mips/atomicity.h:  Prevent reg loads between LL and
2606         SC instructions.
2608 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
2610         * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
2611         static_cast-s.
2612         * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
2613         * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
2614         * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
2615         * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
2616         * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
2617         * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
2618         * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
2619         * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
2620         * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
2622 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
2623             Petur Runolfsson  <peturr02@ru.is>
2625         PR libstdc++/12077
2626         * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
2627         no way to find out the conversion used by the underlying FILE*.
2628         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
2629         * testsuite/27_io/objects/char/9.cc: Tweak.
2631 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
2633         PR libstdc++/14648
2634         * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
2635         memory allocation/deallocation calls.
2636         * testsuite/ext/14648.cc: New.
2638 2004-03-19  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
2640         PR libstdc++/14647
2641         * include/backward/bvector.h (bit_vector): Allocator is in std
2642         namespace.
2644 2004-03-19  Phil Edwards  <phil@codesourcery.com>
2646         * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT):  Set LIBICONV,
2647         not libiconv.  SUBST this variable as well.
2648         * testsuite/Makefile.am (site.exp):  New target, based on that
2649         created by automake.  Also set libiconv.
2651         * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
2652         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2653         testsuite/Makefile.in:  Regenerate.
2655 2004-03-16  Benjamin Kosnik  <bkoz@redhat.com>
2657         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
2658         new_allocator for all hosts.
2659         * configure: Regenerate.
2661 2004-03-16  Paolo Carlini  <pcarlini@suse.de>
2663         * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
2664         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2666 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
2668         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2669         Adjust the logic underlying the parsing of symbol to deal
2670         correctly with an optional sign component (i.e., when either
2671         negative_sign or positive_sign is empty)
2672         * testsuite/22_locale/money_get/get/char/19.cc: New.
2673         * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
2675 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
2677         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2678         Do not accept an incomplete currency symbol.
2679         * testsuite/22_locale/money_get/get/char/18.cc: New.
2680         * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
2682 2004-03-13  Benjamin Kosnik  <bkoz@redhat.com>
2684         * config/allocator: New.
2685         * config/allocator/bitmap_allocator_base.h: New.
2686         * config/allocator/malloc_allocator_base.h: New.
2687         * config/allocator/mt_allocator_base.h: New.
2688         * config/allocator/new_allocator_base.h: New.
2689         * include/bits/allocator.h: Include c++allocator.h.
2690         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
2691         * aclocal.m4: Regenerate.
2692         * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
2693         * configure: Regenerate.
2694         * include/Makefile.am (host_headers_extra): Add c++allocator.h.
2695         * include/Makefile.in: Regenerate.
2696         * docs/html/configopts.html: Add enable-libstdcxx-allocator.
2698 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
2700         * include/bits/allocator.h: Revert.
2702 2004-03-12  Paolo Carlini  <pcarlini@suse.de>
2704         * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
2705         * include/bits/gslice_array.h: Add comment about DR 253.
2706         * include/bits/indirect_array.h: Likewise.
2707         * include/bits/mask_array.h: Likewise.
2708         * include/bits/slice_array.h: Likewise.
2710 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
2712         * testsuite/20_util/allocator/14176.cc: New.
2713         * include/ext/mt_allocator.h: Formatting fixes.
2715 2004-03-11  Dhruv Matani  <dhruvbird@HotPOP.com>
2717         * include/Makefile.am (ext_headers): Add
2718         ${ext_srcdir}/bitmap_allocator.h .
2719         * include/Makefile.in: Regenerate.
2720         * docs/html/ext/ballocator_doc.txt: New file.
2721         * include/ext/bitmap_allocator.h: New file.
2722         * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
2723         test.
2724         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
2725         * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
2726         test for the bitmap_allocator<>.
2727         * testsuite/performance/20_util/allocator/insert.cc: Likewise.
2728         * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
2729         * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
2731 2004-03-11  Paolo Carlini  <pcarlini@suse.de>
2733         * include/std/std_complex.h (pow(const complex&, const _Tp&),
2734         pow(const _Tp&, const complex&), pow(const complex&,
2735         const complex&)): Fully qualify with std:: a few calls.
2736         * testsuite/26_numerics/complex/13450.cc: Minor tweak.
2738 2004-03-11  Steven Bosscher  <stevenb@suse.de>
2740         PR libstdc++/11706
2741         * include/c_std/cmath.tcc (__cmath_power): Define inline.
2743 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
2745         * configure.ac: Bump AC_PREREQ to 2.59.
2747 2004-03-10  Paolo Carlini  <pcarlini@suse.de>
2749         * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
2751 2004-03-10  Paul Kienzle  <pkienzle@nist.gov>
2752             Paolo Carlini  <pcarlini@suse.de>
2754         PR libstdc++/13450
2755         * include/std/std_complex.h (pow(const complex&, const _Tp&),
2756         pow(const _Tp&, const complex&)): Use cmath pow only when safe.
2757         * testsuite/26_numerics/complex/13450.cc: New.
2759         * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
2760         * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
2762 2004-03-10  Jerry Quinn  <jlquinn@optonline.net>
2764         PR libstdc++/3247
2765         * include/bits/gslice_array.h (gslice_array()): Make public.
2766         (operator=(gslice_array)): Make public.  Implement.
2767         * include/bits/indirect_array.h (indirect_array()): Make public.
2768         * include/bits/mask_array.h (mask_array()): Make public.
2769         (operator=(mask_array)): Make public.  Implement.
2770         * include/bits/valarray_array.tcc (__valarray_copy):
2771         Comment.  Add versions for gslice_array and mask_array.
2772         * testsuite/26_numerics/valarray_subset_assignment.cc:  New test.
2774 2004-03-09  Benjamin Kosnik  <bkoz@redhat.com>
2776         * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
2777         non-weak systems.
2778         * testsuite/23_containers/vector/modifiers/swap.cc: Same.
2779         * testsuite/23_containers/set/modifiers/swap.cc: Same.
2780         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2781         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2782         * testsuite/23_containers/map/modifiers/swap.cc: Same.
2783         * testsuite/23_containers/list/modifiers/swap.cc: Same.
2785         * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
2787 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
2789         PR c++/13658
2790         * testsuite/23_containers/deque/modifiers/swap.cc: New.
2791         * testsuite/23_containers/list/modifiers/swap.cc: New.
2792         * testsuite/23_containers/map/modifiers/swap.cc: New.
2793         * testsuite/23_containers/multimap/modifiers/swap.cc: New.
2794         * testsuite/23_containers/multiset/modifiers/swap.cc: New.
2795         * testsuite/23_containers/set/modifiers/swap.cc: New.
2796         * testsuite/23_containers/vector/modifiers/swap.cc: New.
2798 2004-03-08  Petur Runolfsson  <peturr02@ru.is>
2800         PR libstdc++/12658
2801         * testsuite/22_locale/locale/cons/12658_thread.cc: New.
2803 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
2805         * docs/html/ext/howto.html: Add entry for DR 103 [WP].
2806         * include/bits/stl_multiset.h: Add comment about DR 103.
2807         * include/bits/stl_set.h: Likewise.
2809 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
2811         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2812         The value _space_ indicates that at least one space is required
2813         at that position.
2814         * testsuite/22_locale/money_get/get/char/17.cc: New.
2815         * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
2817         * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
2818         * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
2820         * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
2821         Remove redundant conditional on __str.size().
2823 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
2825         * include/bits/allocator.h: Switch defaults to mt_alloc.
2827 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
2829         * include/ext/mt_allocator.h (_S_initialize): If
2830         !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
2832 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
2834         PR libstdc++/12658
2835         * src/locale_init.cc (locale::locale): Lock critical regions with
2836         external mutexes.
2837         (locale::global): Same.
2838         * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
2839         Add in once bits for cases without __GTHREAD_MUTEX_INIT.
2840         (__glibcxx_mutex_lock): Same.
2842         * config/cpu/generic/atomicity.h: Remove
2843         _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
2844         * src/misc-inst.cc: Move all locking bits out of this file.
2846         * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
2847         * src/misc-inst.cc: Same.
2848         * config/cpu/hppa/atomicity.h: Same.
2850         * config/linker-map.gnu: Remove types in the signature of atomic
2851         exports, as they may vary.
2853 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
2855         * include/bits/locale_facets.tcc: Tweak the comment preceding
2856         has_facet: doesn't throw.
2858 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
2860         * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
2861         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2862         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2863         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2864         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2865         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2866         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2867         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2869 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
2871         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2872         num_get<>::_M_extract_int, num_get<>::do_get(bool&),
2873         __pad<>::_S_pad): Prefer plain operator== to traits::eq().
2874         * testsuite/testsuite_character.h (struct __gnu_test::character):
2875         Provide operator==.
2876         * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
2877         Likewise.
2879 2004-03-05  Paolo Carlini  <pcarlini@suse.de>
2881         * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
2883 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
2885         * testsuite/23_containers/multiset/insert/1.cc: Test result string.
2887         * testsuite/23_containers/bitset/invalidation/1.cc: Main always
2888         returns 0.
2889         * testsuite/23_containers/deque/invalidation/4.cc: Same.
2890         * testsuite/23_containers/list/invalidation/1.cc: Same.
2891         * testsuite/23_containers/list/invalidation/2.cc: Same.
2892         * testsuite/23_containers/list/invalidation/3.cc: Same.
2893         * testsuite/23_containers/list/invalidation/4.cc: Same.
2894         * testsuite/23_containers/map/invalidation/2.cc: Same.
2895         * testsuite/23_containers/multimap/invalidation/1.cc: Same.
2896         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2897         * testsuite/23_containers/multiset/invalidation/1.cc: Same.
2898         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2899         * testsuite/23_containers/set/invalidation/1.cc: Same.
2900         * testsuite/23_containers/set/invalidation/2.cc: Same.
2901         * testsuite/23_containers/vector/invalidation/1.cc: Same.
2902         * testsuite/23_containers/vector/invalidation/2.cc: Same.
2903         * testsuite/23_containers/vector/invalidation/3.cc: Same.
2904         * testsuite/23_containers/vector/invalidation/4.cc: Same.
2906 2004-03-04  Paolo Carlini  <pcarlini@suse.de>
2908         * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
2909         CXXFLAGS_save.
2910         * testsuite/lib/libstdc++.exp: Don't add it conditionally to
2911         DEFAULT_CXXFLAGS.
2912         * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
2913         from the dg-options.
2914         * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
2915         * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
2916         * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
2917         * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
2918         * testsuite/23_containers/vector/resize/1.cc: Likewise.
2919         * testsuite/26_numerics/complex_value.cc: Likewise.
2920         * testsuite/27_io/ios_base/storage/1.cc: Likewise.
2921         * testsuite/27_io/ios_base/storage/2.cc: Likewise.
2922         * testsuite/27_io/ios_base/storage/3.cc: Likewise.
2923         * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
2924         * testsuite/27_io/objects/char/5.cc: Likewise.
2925         * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
2926         * testsuite/backward/11460.cc: Likewise.
2927         * testsuite/thread/pthread7-rope.cc: Likewise.
2929         * testsuite/21_strings/basic_string/compare/char/1.cc: Add
2930         missing test variable.
2931         * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
2932         missing test variable.
2934 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
2936         * testsuite/20_util/allocator/1.cc: Provide explicit
2937         instantiations for non-weak systems.
2938         * testsuite/20_util/binders.cc: Same.
2939         * testsuite/20_util/allocator/8230.cc: Same.
2940         * testsuite/20_util/allocator/10378.cc: Same.
2941         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
2942         * testsuite/22_locale/ctype/is/char/2.cc: Same.
2943         * testsuite/thread/pthread7-rope.cc: Same.
2944         * testsuite/thread/pthread6.cc: Same.
2945         * testsuite/thread/pthread5.cc: Same.
2946         * testsuite/thread/pthread4.cc: Same.
2947         * testsuite/thread/pthread1.cc: Same.
2948         * testsuite/ext/rope.cc: Same.
2949         * testsuite/ext/hash_set.cc: Same.
2950         * testsuite/ext/hash_map.cc: Same.
2951         * testsuite/ext/concept_checks.cc: Same.
2952         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
2953         * testsuite/25_algorithms/unique/2.cc: Same.
2954         * testsuite/25_algorithms/unique/1.cc: Same.
2955         * testsuite/25_algorithms/rotate.cc: Same.
2956         * testsuite/25_algorithms/min_max.cc: Same.
2957         * testsuite/25_algorithms/equal.cc: Same.
2958         * testsuite/24_iterators/rel_ops.cc: Same.
2959         * testsuite/24_iterators/iterator.cc: Same.
2960         * testsuite/24_iterators/insert_iterator.cc: Same.
2961         * testsuite/24_iterators/front_insert_iterator.cc: Same.
2962         * testsuite/24_iterators/back_insert_iterator.cc: Same.
2963         * testsuite/23_containers/vector/resize/1.cc: Same.
2964         * testsuite/23_containers/vector/modifiers/2.cc: Same.
2965         * testsuite/23_containers/vector/modifiers/1.cc: Same.
2966         * testsuite/23_containers/vector/invalidation/4.cc: Same.
2967         * testsuite/23_containers/vector/invalidation/3.cc: Same.
2968         * testsuite/23_containers/vector/invalidation/2.cc: Same.
2969         * testsuite/23_containers/vector/invalidation/1.cc: Same.
2970         * testsuite/23_containers/vector/element_access/1.cc: Same.
2971         * testsuite/23_containers/vector/cons/6513.cc: Same.
2972         * testsuite/23_containers/vector/cons/3.cc: Same.
2973         * testsuite/23_containers/vector/cons/2.cc: Same.
2974         * testsuite/23_containers/vector/cons/1.cc: Same.
2975         * testsuite/23_containers/vector/capacity/8230.cc: Same.
2976         * testsuite/23_containers/vector/capacity/1.cc: Same.
2977         * testsuite/23_containers/vector/bool/6886.cc: Same.
2978         * testsuite/23_containers/stack/members/7158.cc: Same.
2979         * testsuite/23_containers/set/invalidation/2.cc: Same.
2980         * testsuite/23_containers/set/invalidation/1.cc: Same.
2981         * testsuite/23_containers/queue/members/7157.cc: Same.
2982         * testsuite/23_containers/priority_queue/members/7161.cc: Same.
2983         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2984         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2985         * testsuite/23_containers/multiset/insert/1.cc: Same.
2986         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2987         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2988         * testsuite/23_containers/map/operators/1.cc: Same.
2989         * testsuite/23_containers/map/invalidation/2.cc: Same.
2990         * testsuite/23_containers/map/invalidation/1.cc: Same.
2991         * testsuite/23_containers/map/insert/1.cc: Same.
2992         * testsuite/23_containers/list/operators/4.cc: Same.
2993         * testsuite/23_containers/list/operators/3.cc: Same.
2994         * testsuite/23_containers/list/operators/2.cc: Same.
2995         * testsuite/23_containers/list/operators/1.cc: Same.
2996         * testsuite/23_containers/list/modifiers/3.cc: Same.
2997         * testsuite/23_containers/list/modifiers/2.cc: Same.
2998         * testsuite/23_containers/list/modifiers/1.cc: Same.
2999         * testsuite/23_containers/list/invalidation/4.cc: Same.
3000         * testsuite/23_containers/list/invalidation/3.cc: Same.
3001         * testsuite/23_containers/list/invalidation/2.cc: Same.
3002         * testsuite/23_containers/list/invalidation/1.cc: Same.
3003         * testsuite/23_containers/list/cons/9.cc: Same.
3004         * testsuite/23_containers/list/cons/8.cc: Same.
3005         * testsuite/23_containers/list/cons/7.cc: Same.
3006         * testsuite/23_containers/list/cons/6.cc: Same.
3007         * testsuite/23_containers/list/cons/5.cc: Same.
3008         * testsuite/23_containers/list/cons/4.cc: Same.
3009         * testsuite/23_containers/list/cons/3.cc: Same.
3010         * testsuite/23_containers/list/cons/2.cc: Same.
3011         * testsuite/23_containers/list/cons/1.cc: Same.
3012         * testsuite/23_containers/list/capacity/1.cc: Same.
3013         * testsuite/23_containers/deque/operators/1.cc: Same.
3014         * testsuite/23_containers/deque/invalidation/4.cc: Same.
3015         * testsuite/23_containers/deque/invalidation/3.cc: Same.
3016         * testsuite/23_containers/deque/invalidation/2.cc: Same.
3017         * testsuite/23_containers/deque/invalidation/1.cc: Same.
3018         * testsuite/23_containers/deque/cons/2.cc: Same.
3019         * testsuite/23_containers/deque/cons/1.cc: Same.
3021         * src/allocator.cc: Add char, wchar_t instantiations
3022         to match extern template declarations in memory.h.
3024 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
3026         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3027         Fix warning regression.
3029 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
3031         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3032         Deal properly with empty __digits and negative frac_digits,
3033         clean-up a bit.
3035 2004-03-03  Jonathan Wakely  <redi@gcc.gnu.org>
3037         * docs/html/documentation.html: Regenerate.
3039 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
3041         PR libstdc++/14320
3042         * include/bits/postypes.h (class streamoff): Remove, now
3043         streamoff is just typedef a 64 bit signed integer type.
3044         (class fpos): Tweak consistently.
3045         * testsuite/27_io/fpos/14320-1.cc: New.
3046         * testsuite/27_io/fpos/14320-2.cc: New.
3047         * testsuite/27_io/fpos/14320-3.cc: New.
3048         * testsuite/27_io/fpos/14320-4.cc: New.
3049         * testsuite/27_io/fpos/14320-5.cc: New.
3050         * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
3052 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
3054         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3055         Reorganize a bit the main parsing loop, thus early detecting
3056         an empty value component.
3057         * testsuite/22_locale/money_get/get/char/16.cc: New.
3058         * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
3060 2004-03-02  Benjamin Kosnik  <bkoz@redhat.com>
3062         Support automake 1.8.2
3063         * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
3064         * po/Makefile.am (EXTRA_DIST): New.
3065         * po/Makefile.in: Regenerate.
3066         * Makefile.in: Same.
3067         * include/Makefile.in: Same.
3068         * libmath/Makefile.in: Same.
3069         * libsupc++/Makefile.in: Same.
3070         * src/Makefile.in: Same.
3071         * testsuite/Makefile.in: Same.
3073         * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
3074         __GXX_WEAK__ instead of SUPPORTS_WEAK.
3075         (${host_builddir}/gthr-default.h): Same.
3076         (${host_builddir}/gthr.h): Same.
3077         * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
3078         _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
3079         -fno-weak.
3080         * aclocal.m4: Regenerate.
3081         * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
3082         * config.h.in: Regenerate.
3083         * configure: Same.
3085 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
3087         Support autoconf 2.59
3088         * acinclude.m4: Quote correctly.
3089         * aclocal.m4: Regenerate.
3090         * linkage.m4: Same.
3092 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
3094         * docs/html/test.html: Add multilib RUNTESTFLAGS example.
3096         * docs/html/18_support/howto.html: Add bit about writing to
3097         stderr, mostly by Zack.
3099 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
3101         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3102         money_get<>::do_get(string_type&)): ... and two more.
3104 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
3106         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3107         Fix thinkos in the switch from string_type& to string& as last
3108         argument.
3110 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
3112         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3113         Also when parsing exponent sign, first look for thousands_sep
3114         and decimal_point; tweak a bit.
3115         * testsuite/22_locale/num_get/get/char/15.cc: New.
3116         * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
3118         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3119         num_get<>::_M_extract_int): Reorder some conditionals.
3121 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
3123         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3124         Consistently with numpunct, enforce the requirements in
3125         22.2.6.3, p3 for the thousands separators; tweak a bit.
3126         * testsuite/22_locale/money_get/get/char/15.cc: New.
3127         * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
3129 2004-03-01  David Billinghurst <David.Billinghurst@riotinto.com>
3131         * testsuite/lib/libstdc++.exp (v3-list-tests): Use
3132         testsuite_files from correct multilib blddir when running
3133         testsuite.
3135 2004-02-29  Phil Edwards  <phil@codesourcery.com>
3137         * testsuite/Makefile.am (check-abi, check-abi-verbose):  Copy
3138         the summary file to the logfile.
3139         * testsuite/Makefile.in:  Regenerate.
3141 2004-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3143         * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
3144         volatile.
3145         * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
3146         __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
3148 2004-02-28  Paolo Carlini  <pcarlini@suse.de>
3150         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3151         According to 22.2.3.1, p2, 'units' may be followed by 'e' with
3152         no 'decimal-point' in the middle: in this case too we must fix
3153         up __found_grouping; slightly tweak.
3154         * testsuite/22_locale/num_get/get/char/14.cc: New.
3155         * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
3157 2004-02-27  Eric Christopher  <echristo@redhat.com>
3158             Phil Edwards  <phil@codesourcery.com>
3160         * testsuite/22_locale/collate/compare/wchar_t/2.cc,
3161         testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
3162         testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
3163         testsuite/22_locale/collate/hash/wchar_t/2.cc,
3164         testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
3165         testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
3166         testsuite/22_locale/collate/transform/wchar_t/2.cc,
3167         testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
3168         testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3169         Use dg-require-iconv.
3170         * testsuite/lib/libstdc++.exp:  Load target-supports.exp.
3172 2004-02-27  Phil Edwards  <phil@codesourcery.com>
3173             Eric Christopher  <echristo@redhat.com>
3175         * testsuite/config/default.exp:  Update with comments.
3176         (${tool}_target_compile):  New wrapper routine.
3177         * testsuite/lib/dg-options.exp:  New file, with dg-require-iconv.
3178         * testsuite/lib/libstdc++.exp:  Update with comments and cosmetic
3179         fixes.
3180         (load_gcc_lib, v3track):  New routines.
3181         (v3-init):  Rename to libstdc++_init.
3182         * testsuite/libstdc++-dg/normal.exp:  No longer call v3-init.
3183         Move DEFAULT_CXXFLAGS handling into libstdc++_init.
3185 2004-02-27  Benjamin Kosnik  <bkoz@redhat.com>
3187         * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
3189         * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
3191         * config/os/irix/irix5.2/atomicity.h: Merge..
3192         * config/os/irix/irix6.5/atomicity.h: Merge..
3193         * config/os/irix/atomicity.h: ...into this.
3194         * config/os/irix/atomic_word.h: New.
3195         * configure.host: Set atomic_word_dir for irix.
3197         * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
3198         * i386/atomicity.h: Same.
3199         * m68k/atomicity.h: Same.
3200         * sparc/atomicity.h: Same.
3202 2004-02-27  David Edelsohn  <edelsohn@gnu.org>
3204         * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
3205         static, and inline keywords.
3207 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
3209         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3210         num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
3211         call reserve on the __tmp_gruping string.
3212         (num_get<>::_M_extract_float): Don't append unnecessarily a
3213         char() to the returned string.
3214         * include/bits/locale_facets.tcc: Trivial reformattings.
3216 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
3218         * include/bits/locale_facets.h (money_get<>::_M_extract):
3219         Change signature: now takes a plain string&.
3220         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3221         Update consistently the definition; use the moneypunct cache
3222         to parse the value; use swap to change __units.
3223         (money_get<>::do_get(long double&)): Update call of _M_extract,
3224         avoid ctype::narrow, not correct wrt the standard.
3225         (money_get<>::do_get(string_type&)): Likewise, update call
3226         of _M_extract, use ctype::widen.
3227         * src/locale-inst.cc: Tweak instantiations of _M_extract.
3229 2004-02-26  Ian Lance Taylor  <ian@wasabisystems.com>
3231         * testsuite/demangle/abi_examples/01.cc: Expect error -2.
3232         * testsuite/demangle/abi_examples/02.cc: Likewise.
3233         * testsuite/demangle/regression/cw-11.cc: Likewise.
3234         * testsuite/demangle/regression/cw-16.cc: Change two expected
3235         results to match libiberty demangler output.
3237 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
3239         PR libstdc++/10246
3240         * libsupc++/Makefile.am: Use libiberty demangler.
3241         (c_sources): Add cp-demangle.c.
3242         * libsupc++/Makefile.in: Regenerate.
3243         * src/Makefile.am (sources): Remove demangle.cc.
3244         * src/Makefile.in: Regenerate.
3245         * include/Makefile.am (bits_headers): Move demangle.h.
3246         (ext_headers): ...here.
3247         * include/Makefile.in: Regenerate.
3248         * include/bits/demangle.h: Move...
3249         * include/ext/demangle.h: ...here.
3250         * src/demangle.cc: Remove.
3252 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
3254         * include/bits/demangle.h: Add type template parameter to all
3255         templates with just an Allocator template parameter.
3257 2004-02-25  Benjamin Kosnik  <bkoz@redhat.com>
3259         * include/bits/atomicity.h: New, forward declarations for __atomic_add
3260         and __exchange_and_add.
3261         * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
3262         * config/cpu/cris/atomic_word.h: Same.
3263         * config/cpu/sparc/atomic_word.h: Same.
3264         * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
3265         Qualifiy with __gnu_cxx.
3266         (_Callback_list::_M_add_reference): Same.
3267         * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
3268         (locale::facet::_M_remove_reference): Same.
3269         (locale::_Impl::_M_add_reference): Add.
3270         (locale::_Impl::_M_remove_reference): Same.
3271         * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
3272         (basic_string::_Rep::_M_dispose): Same.
3273         * src/ios.cc (ios_base::xalloc): Same.
3274         * src/ios_init.cc (ios_base::Init::Init): Same.
3275         (ios_base::Init::~Init): Same.
3276         * src/locale.cc (locale::id::_M_id): Same.
3277         * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
3278         static, and inline keywords.
3279         * config/cpu/alpha/atomicity.h: Same.
3280         * config/cpu/cris/atomicity.h: Same.
3281         * config/cpu/generic/atomicity.h: Same.
3282         * config/cpu/hppa/atomicity.h: Same.
3283         * config/cpu/i386/atomicity.h: Same.
3284         * config/cpu/ia64/atomicity.h: Same.
3285         * config/cpu/m68k/atomicity.h: Same.
3286         * config/cpu/mips/atomicity.h: Same.
3287         * config/cpu/powerpc/atomicity.h: Same.
3288         * config/cpu/s390/atomicity.h: Same.
3289         * config/cpu/sparc/atomicity.h: Same.
3291         * src/Makefile.am (host_sources): Add atomicity.cc.
3292         (atomicity.cc): New rule.
3293         * src/Makefile.in: Regenerate.
3294         * include/Makefile.am (host_headers): Remove host atomicity.h.
3295         (host_headers): Add atomic_word.h.
3296         (bits_headers): Add bits atomicity.h.
3297         Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3298         * include/Makefile.in: Regenerate.
3299         * configure.host (atomic_word_dir): Add.
3300         * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
3301         ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3302         * configure: Regenerate.
3303         * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
3305         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
3306         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3308 2004-02-25  Jonathan Wakely  <redi@gcc.gnu.org>
3310         * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
3311         docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
3312         Fix markup, more <link> tags.
3314 2004-02-25  Carlo Wood  <carlo@alinoe.com>
3316         * bits/demangle.h
3317         namespace __gnu_cxx::demangler
3318         (session<Allocator>::qualifier_list_Allocator): Add
3319         (session<Allocator>::M_qualifier_list_alloc): Add
3320         (session<Allocator>::decode_type_with_postfix):
3321         Use M_qualifier_list_alloc instead of calling operator new/delete.
3323 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
3325         PR libstdc++/14252
3326         * include/bits/postypes.h (class streamoff): Add operator++(),
3327         operator++(int), operator--() and operator--(int).
3328         * testsuite/27_io/fpos/14252.cc: New.
3330 2004-02-24  Richard Sandiford  <rsandifo@redhat.com>
3332         * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
3333         error in handling of hex constants.
3335 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
3337         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3338         Prefer basic_string::append to operator+= and a temporary.
3340 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
3342         * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
3343         Only use fputs, not write.
3345 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
3347         * include/ext/malloc_allocator.h: Add operators ==, !=.
3348         * include/ext/new_allocator.h: Add operators ==, !=.
3349         * include/ext/mt_allocator.h (__mt_alloc::tune): New.
3350         (__mt_alloc::_S_get_options): New.
3351         (__mt_alloc::_S_set_options): New.
3352         (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
3353         (__mt_alloc::_S_no_of_bins): To _S_bin_size.
3354         Move functions out of line, simplify, format.
3355         * src/allocator.cc: Simplify explicit instantiations.
3356         * include/bits/allocator.h: Tweak.
3358 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
3360         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3361         Restructure formatting of value component, first dealing with
3362         the non-decimal digits; use reserve.
3364 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
3366         * include/bits/locale_facets.h (class money_get): Inherit
3367         from money_base too; tweak declaration of _M_extract, now
3368         parameterized on _Intl too.
3369         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3370         Update definition to use the cache; call reserve on __res to
3371         avoid multiple reallocations; fix parsing of sign component
3372         according to 22.2.6.1.2, p3.
3373         (money_get<>::do_get(long double&),
3374         money_get<>::do_get(string_type&)): Update calls of _M_extract.
3375         * src/locale-inst.cc:  Add instantiations of
3376         money_get::_M_extract<false> and money_get::_M_extract<true>.
3377         * testsuite/22_locale/money_get/get/char/14.cc: New.
3378         * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
3380 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
3382         * libsupc++/vterminate.cc
3383         (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
3384         calls to terminate.
3385         * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
3387         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3388         not set RLIMIT_AS on HP-UX.
3390 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
3392         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3393         not set RLIMIT_AS on HP-UX.
3395 2004-02-21  Paolo Carlini  <pcarlini@suse.de>
3397         * include/bits/locale_facets.h (class money_base): Add { _S_minus,
3398         _S_zero, _S_end } enum, _S_atoms.
3399         (struct __moneypunct_cache<>): Parameterize on _Intl too; add
3400         _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
3401         _M_negative_sign_size, _M_atoms; tweak constructor consistently.
3402         (__moneypunct_cache<>::~__moneypunct_cache): Update.
3403         (__moneypunct_cache<>::_M_cache): Fill the cache.
3404         (class moneypunct): Tweak __cache_type typedef.
3405         (class money_put): Inherit from money_base too; tweak declaration
3406         of _M_insert, now parameterized on _Intl.
3407         * include/bits/locale_facets.tcc
3408         (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
3409         (money_put<>::_M_insert): Update definition to use the cache;
3410         call reserve on __res to avoid multiple reallocations.
3411         (money_put<>::do_put(long double),
3412         money_put<>::do_put(const string_type&): Update calls of _M_insert.
3413         * config/locale/generic/monetary_members.cc
3414         (moneypunct<char, true>::_M_initialize_moneypunct,
3415         moneypunct<char, false>::_M_initialize_moneypunct,
3416         moneypunct<wchar_t, true>::_M_initialize_moneypunct,
3417         moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
3418         * config/locale/gnu/monetary_members.cc: Likewise.
3419         * config/locale/gnu/monetary_members.cc
3420         (moneypunct<wchar_t, true>::~moneypunct(),
3421         moneypunct<wchar_t, false>::~moneypunct()): Likewise.
3422         * src/globals_locale.cc: Tweak fake_money_cache_c.
3423         * src/locale-inst.cc: Add instantiations for
3424         money_put::_M_insert<false> and money_put::_M_insert<true> and
3425         __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
3426         * src/locale_facets.cc: Define money_base::_S_atoms.
3427         * src/locale_init.cc: Update placement new of
3428         __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
3429         __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
3431         * config/locale/generic/numeric_members.cc: Clean up.
3432         * config/locale/gnu/numeric_members.cc: Likewise.
3433         * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
3434         * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
3435         * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
3436         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
3437         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
3438         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
3440 2004-02-20  Mark Mitchell  <mark@codesourcery.com>
3442         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
3443         FIFO for writing with ios_base::in|ios_base::out.
3444         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3445         * testsuite/27_io/objects/char/7.cc: Likewise.
3446         * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
3447         with "r+".
3449 2004-02-19  David Edelsohn  <edelsohn@gnu.org>
3451         * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
3452         from iso-8859-1 to ISO8859-1.
3453         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
3454         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
3455         * 22_locale/collate/hash/wchar_t/2.cc: Same.
3456         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
3457         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
3458         * 22_locale/collate/transform/wchar_t/2.cc: Same.
3459         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
3460         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
3462 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
3464         * include/bits/locale_facets.h (money_get<>::_M_extract):
3465         New, helper for do_get.
3466         (money_put<>::_M_insert): Likewise, for do_put.
3467         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3468         money_put<>::_M_insert): Define.
3469         (money_get<>::do_get(long double&), money_get<>::do_get(
3470         string_type&), money_put::do_put(long double),
3471         money_put::do_put(const string_type&)): Use the helpers.
3473 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
3475         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
3476         Rewrite, avoiding recursion.
3477         (__gnu_internal::xwrite): Minor tweaks.
3479 2004-02-17  Stefan Olsson  <stefan@xapa.se>
3481         * include/ext/mt_allocator.h: Removed the last
3482         pointer. Deallocated blocks are now added to the front of
3483         freelists as proposed by Felix Yen.  This gives roughly 10%
3484         performance boost and saves some memory.
3485         * docs/html/ext/mt_allocator.html: Change due to that deallocated
3486         blocks now are added to the front of freelists. The reason to this
3487         approach is also explained.
3489 2004-02-17  Paolo Carlini  <pcarlini@suse.de>
3491         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3492         num_get<>::_M_extract_int, money_get<>::do_get): Simplify
3493         grouping fidelity conditional.
3495 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
3497         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
3498         Qualify exception with std::.
3499         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
3500         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
3501         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3502         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3503         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3505 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
3507         * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
3508         for now that the catch block is not reached.
3509         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
3511 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
3513         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
3514         Fix parsing of the remaining sign characters.
3515         * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
3516         the input is scanned 'til eof.
3517         * 22_locale/money_get/get/char/4.cc: Likewise.
3518         * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
3519         * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
3520         * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
3521         not do_pos_format: the former is the only one that matters during
3522         input.
3523         * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
3525         * 22_locale/money_get/get/char/6.cc: Minor tweak.
3526         * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
3528 2004-02-15  David Asher  <david.asher@cavium.com>
3530         PR libstdc++/11352
3531         * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
3532         access __olds beyond __oldlen.
3534 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
3536         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
3537         sure the exception is actually thrown.
3538         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3539         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3540         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3542 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
3544         PR libstdc++/13858
3545         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
3546         In case of conversion errors, throw ios_failure; simplify.
3547         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
3548         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
3549         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
3550         previously we didn't throw in case of conversion errors, instead
3551         just returned eof().
3552         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3553         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3554         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3556         * include/bits/fstream.tcc (basic_filebuf<>::overflow):
3557         Trivial simplification of a conditional.
3559 2004-02-12  Paolo Carlini  <pcarlini@suse.de>
3561         PR libstdc++/13731 (final part: writev)
3562         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
3563         New, a wrapper around writev() handling partial writes.
3564         (__basic_file<char>::xwrite): Move to __gnu_internal and make
3565         static.
3566         (__basic_file<char>::xsputn): Update call.
3567         (__basic_file<char>::xsputn_2): Likewise.
3568         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
3569         Don't declare, now static.
3571 2004-02-11  Stefan Olsson  <stefan@xapa.se>
3573         * docs/html/ext/mt_allocator.html: New.
3575 2004-02-11  Benjamin Kosnik  <bkoz@redhat.com>
3577         * docs/html/20_util/allocator.html: New file, consolidate
3578         allocator information here. Revamp.
3579         * docs/html/documentation.html: Change links.
3580         * docs/html/20_util/howto.html: Same.
3581         * docs/html/ext/howto.html: Same.
3583 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
3585         PR libstdc++/13731 (first part: write)
3586         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
3587         New, declare.
3588         * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
3589         Define it: a wrapper around write() handling partial write.
3590         (__basic_file<char>::xsputn): Use it.
3591         (__basic_file<char>::xsputn_2): Likewise.
3593 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
3594             Petur Runolfsson  <peturr02@ru.is>
3596         PR libstdc++/14078
3597         * include/std/std_istream.h (operator>>(__istream_type& (*)
3598         (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
3599         operator>>(ios_base& (*)(ios_base&))): Declare inline.
3600         * include/std/std_ostream.h (operator<<(__ostream_type& (*)
3601         (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
3602         operator<<(ios_base& (*) (ios_base&))): Likewise.
3603         * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
3605 2004-02-10  Loren J. Rittle  <ljrittle@acm.org>
3607         PR libstdc++/14098
3608         * config/linker-map.gnu: Add typeinfo and typeinfo name for
3609         __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
3611         PR libstdc++/14097
3612         * config/linker-map.gnu: Add typeinfo and typeinfo name for
3613         __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
3615 2004-02-09  Loren J. Rittle  <ljrittle@acm.org>
3617         * include/ext/pool_allocator.h: Include c++config.h.
3619 2004-02-09  Stefan Olsson  <stefan@xapa.se>
3621         * include/ext/mt_allocator.h: thread_id is unused in non threaded
3622         applications and now has a ifdef to remove it completely on
3623         compilers without thread support. Include stdlib.h due to a
3624         compiler warning on getenv().
3626 2004-02-09  Paul Brook  <paul@codesourcery.com>
3628         * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
3630 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
3632         PR libstdc++/14071
3633         * src/locale_init.cc (locale::global(const locale&)): Use
3634         locale::name() in order to decide whether calling setlocale.
3635         * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
3637         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
3638         Avoid computing &= unnecessarily.
3640 2004-02-09  James E Wilson  <wilson@specifixinc.com>
3642         PR libstdc++/5625
3643         * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
3644         __builtin_extend_pointer.
3646 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
3648         PR libstdc++/14072
3649         * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
3650         Don't leave dangling pointers.
3651         * testsuite/27_io/basic_ios/imbue/14072.cc: New.
3652         * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
3653         facet is needed in the final test.
3655 2004-02-09  Bernardo Innocenti  <bernie@develer.com>
3657         * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
3658         * configure: Regenerate.
3660 2004-02-08  Richard Henderson  <rth@redhat.com>
3662         PR libstdc++/14026
3663         * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
3664         uncaughtExceptions during nested catch rethrow.
3665         * testsuite/18_support/14026.cc: New.
3667 2004-02-08  Paolo Carlini  <pcarlini@suse.de>
3669         * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
3670         When working in place remember to set the state to sharable
3671         (otherwise, _M_mutate does it).
3673 2004-02-08  Bernardo Innocenti  <bernie@develer.com>
3675         * include/bits/allocator.h, include/bits/basic_ios.h,
3676         include/bits/basic_ios.tcc, include/bits/basic_string.h,
3677         include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
3678         include/bits/char_traits.h, include/bits/codecvt.h,
3679         include/bits/concurrence.h, include/bits/cpp_type_traits.h,
3680         include/bits/demangle.h, include/bits/deque.tcc,
3681         include/bits/fstream.tcc, include/bits/functexcept.h,
3682         include/bits/gslice.h, include/bits/gslice_array.h,
3683         include/bits/indirect_array.h, include/bits/ios_base.h,
3684         include/bits/istream.tcc, include/bits/list.tcc,
3685         include/bits/locale_classes.h, include/bits/locale_facets.h,
3686         include/bits/locale_facets.tcc, include/bits/localefwd.h,
3687         include/bits/mask_array.h, include/bits/ostream.tcc,
3688         include/bits/postypes.h, include/bits/slice_array.h,
3689         include/bits/sstream.tcc, include/bits/stl_algo.h,
3690         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
3691         include/bits/stl_construct.h, include/bits/stl_deque.h,
3692         include/bits/stl_function.h, include/bits/stl_heap.h,
3693         include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
3694         include/bits/stl_list.h, include/bits/stl_map.h,
3695         include/bits/stl_multimap.h, include/bits/stl_multiset.h,
3696         include/bits/stl_numeric.h, include/bits/stl_pair.h,
3697         include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
3698         include/bits/stl_relops.h, include/bits/stl_set.h,
3699         include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
3700         include/bits/stl_threads.h, include/bits/stl_tree.h,
3701         include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
3702         include/bits/stream_iterator.h, include/bits/streambuf.tcc,
3703         include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
3704         include/bits/type_traits.h, include/bits/valarray_after.h,
3705         include/bits/valarray_array.h, include/bits/valarray_array.tcc,
3706         include/bits/valarray_before.h, include/bits/vector.tcc: Remove
3707         trailing whitespace.
3709 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
3711         * include/bits/basic_string.h: Fix comment.
3713 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
3715         * include/bits/stl_construct.h: Wrap overlong lines, reformat
3716         according to the coding standards.
3717         * include/bits/stl_pair.h: Likewise.
3718         * include/bits/stl_raw_storage_iter.h: Likewise.
3719         * include/bits/stl_stack.h: Likewise.
3720         * include/bits/stl_uninitialized.h: Likewise.
3721         * include/bits/stream_iterator.h: Likewise.
3722         * include/bits/streambuf_iterator.h: Likewise.
3723         * include/bits/type_traits.h: Likewise.
3725 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
3727         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
3728         Adjust timings.
3730 2004-02-05  Loren J. Rittle  <ljrittle@acm.org>
3732         * scripts/check_performance: Support PCH.
3734         * scripts/check_performance (CXX): Add -DNOTHREAD.
3735         * testsuite/performance/20_util/allocator/insert.cc: Integrate
3736         threaded tests from insert_insert.cc.  Tweak iterations,
3737         remove special cases.
3738         * testsuite/performance/20_util/allocator/insert_insert.cc:
3739         Make all tests single-threaded. Tweak iterations.
3740         * testsuite/performance/20_util/allocator/map_thread.cc:
3741         Tweak iterations.
3742         * testsuite/performance/20_util/allocator/producer_consumer.cc:
3743         Likewise.
3745 2004-02-05  Geoffrey Keating  <geoffk@apple.com>
3747         PR 12179
3748         * .cvsignore: New.
3749         * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
3750         'gcc-lib'.  Add comment about poorly-named variables.
3751         * aclocal.m4: Regenerate.
3752         * configure: Regenerate.
3754 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
3756         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
3757         Thousands-sep are always optional; thousands-sep are not allowed
3758         after the decimal_point.
3759         * testsuite/22_locale/money_get/get/char/12.cc: New.
3760         * testsuite/22_locale/money_get/get/char/13.cc: New.
3761         * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
3762         * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
3764         * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
3765         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3766         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3767         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3768         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3769         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3770         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3771         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3773         * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
3774         the standard.
3775         * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
3777 2004-02-05  Richard Sandiford  <rsandifo@redhat.com>
3779         * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
3780         Define.
3781         * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
3782         it to decide whether FIONREAD should take an off_t or int argument.
3784 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
3786         * include/bits/stl_function.h: Minor formatting changes.
3788 2004-02-04  Zack Weinberg  <zack@codesourcery.com>
3790         Revert previous change to config/abi/*/baseline_symbols.txt.
3792 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
3793             Zack Weinberg  <zack@codesourcery.com>
3795         * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
3796         New function.
3797         (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
3798         (__basic_file<char>::_M_open_mode): Delete.
3799         * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
3801         * testsuite/27_io/basic_filebuf/close/char/9964.cc
3802         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
3803         Correct flags to filebuf::open calls.
3805         * config/abi/alpha-freebsd5/baseline_symbols.txt
3806         * config/abi/alpha-linux-gnu/baseline_symbols.txt
3807         * config/abi/hppa-linux-gnu/baseline_symbols.txt
3808         * config/abi/i386-freebsd4/baseline_symbols.txt
3809         * config/abi/i386-freebsd5/baseline_symbols.txt
3810         * config/abi/i486-linux-gnu/baseline_symbols.txt
3811         * config/abi/ia64-linux-gnu/baseline_symbols.txt
3812         * config/abi/mips-linux-gnu/baseline_symbols.txt
3813         * config/abi/sparc-freebsd5/baseline_symbols.txt
3814         * config/abi/sparc-linux-gnu/baseline_symbols.txt
3815         * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
3816         Remove entry for __basic_file<char>::_M_open_mode.
3818 2004-02-04  Loren J. Rittle  <ljrittle@acm.org>
3820         * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
3822 2004-02-04  Felix Yen  <fwy@alumni.brown.edu>
3824         * testsuite/performance/20_util/producer_consumer.cc: New.
3825         * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
3827 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
3829         * testsuite/performance/20_util/allocator.cc: Move to..
3830         * testsuite/performance/20_util/allocator/insert.cc: ...here.
3831         * testsuite/performance/20_util/allocator_thread.cc: Move to...
3832         * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
3833         * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
3834         * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
3836 2004-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
3838         * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
3839         * docs/html/faq/index.txt: Regenerate.
3841 2004-02-04  Dhruv Matani  <dhruvbird@gmx.net>
3843         * include/ext/debug_allocator.h: _M_extra now stands for the
3844         number of extra objects instead of the number of extra bytes.
3845         (debug_allocator::allocate): Adjust.
3846         (debug_allocator::deallocate): Adjust.
3848         * include/ext/pool_allocator.h: Fix typo.
3850 2004-02-03  Felix Yen  <fwy@alumni.brown.edu>
3851             Benjamin Kosnik  <bkoz@redhat.com>
3853         * testsuite/performance/20_util/allocator.cc: Add map,
3854         deque, set tests.
3855         * testsuite/performance/20_util/allocator_thread.cc: Same.
3857 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
3859         * include/bits/basic_string.h (insert(iterator)): Remove,
3860         non-standard and already scheduled for removal.
3862 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
3864         * include/bits/stl_iterator_base_funcs.h: Minor formatting
3865         and indentation tweaks.
3866         * include/bits/stl_iterator_base_types.h: Likewise.
3867         * include/bits/stl_list.h: Likewise.
3868         * include/bits/stl_map.h: Likewise.
3869         * include/bits/stl_tempbuf.h: Likewise.
3871 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
3873         * include/bits/gslice.h, include/bits/gslice_array.h,
3874         include/bits/indirect_array.h, include/bits/mask_array.h,
3875         include/bits/slice_array.h, include/bits/stl_numeric.h,
3876         include/std/std_valarray.h:  Update copyright years.
3878 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
3880         * include/bits/gslice.h (gslice):  Document.
3881         * include/bits/gslice_array.h (gslice_array):  Document.
3882         * include/bits/indirect_array (indirect_array):  Document.
3883         * include/bits/mask_array (mask_array):  Document.
3884         * include/bits/slice_array.h (slice,slice_array):  Document.
3885         * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
3886         adjacent_difference):  Document
3887         * include/std/std_valarray.h (valarray):  Document.
3889 2004-02-02  Benjamin Kosnik  <bkoz@redhat.com>
3891         * docs/html/19_diagnostics/howto.html: Move verbose terminate
3892         documentation...
3893         * docs/html/18_support/howto.html: Here.
3894         * docs/html/documentation.html: Add reference here.
3896 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
3898         * config/locale/gnu/c++locale_internal.h: Remove prototypes
3899         of no longer used GLIBC thread locale functions.
3901 2004-02-02  Eric Christopher  <echristo@redhat.com>
3902             Zack Weinberg  <zack@codesourcery.com>
3904         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
3905         -finput-charset.
3906         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
3907         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
3908         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
3909         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
3910         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
3911         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
3912         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
3913         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3914         Ditto.
3916 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
3918         * include/bits/stl_function.h: Additional minor tweaks.
3919         * include/bits/stl_multiset.h: Likewise.
3921         * include/bits/stl_queue.h: Minor tweaks.
3923 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
3925         PR libstdc++/13976 (continued)
3926         * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
3927         Make the second parameter unnamed, to void unused parameter
3928         warnings.
3929         * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
3931 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
3933         PR libstdc++/13976
3934         * include/ext/malloc_allocator.h (malloc_allocator::allocate):
3935         Make the second parameter unnamed, to void unused parameter
3936         warnings.
3937         * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
3938         * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
3940 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
3942         * include/bits/stl_algo.h: Additional minor tweaks.
3943         * include/bits/stl_map.h: Likewise.
3944         * include/bits/stl_multimap.h: Likewise.
3945         * include/bits/stl_multiset.h: Likewise.
3946         * include/bits/stl_set.h: Likewise.
3947         * include/bits/stl_tree.h: Likewise.
3949 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
3951         * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
3952         Remove, unused.
3954 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
3956         * include/bits/stl_function.h: Additional minor tweaks.
3958 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
3960         * include/bits/deque.tcc: Wrap overlong lines, constify
3961         a few variables, reformat according to the coding standards.
3962         * include/bits/list.tcc: Likewise.
3963         * include/bits/stl_deque.h: Likewise.
3964         * include/bits/stl_function.h: Likewise.
3965         * include/bits/stl_iterator.h: Likewise.
3966         * include/bits/stl_iterator_base_funcs.h: Likewise.
3967         * include/bits/stl_iterator_base_types.h: Likewise.
3968         * include/bits/stl_list.h: Likewise.
3969         * include/bits/stl_map.h: Likewise.
3970         * include/bits/stl_multimap.h: Likewise.
3971         * include/bits/stl_multiset.h: Likewise.
3972         * include/bits/stl_relops.h: Likewise.
3973         * include/bits/stl_set.h: Likewise.
3975 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
3977         * include/bits/stl_bvector.h: Wrap overlong lines, constify
3978         a few variables, reformat according to the coding standards.
3979         * include/bits/stl_tree.h: Likewise.
3981 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
3983         * include/bits/stl_algo.h: Minor additional reformat, add
3984         copyright year.
3985         * include/bits/stl_algobase.h: Add copyright year.
3987 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
3989         * include/bits/stl_algo.h: Wrap overlong lines, constify
3990         a few variables, reformat according to the coding standards.
3991         * include/bits/stl_algobase.h: Likewise.
3992         * include/bits/stl_heap.h: Likewise.
3994 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
3996         * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
3998         * include/bits/basic_string.h: Fix two comments.
4000 2004-01-31  Per Bothner  <per@bothner.com>
4002         * include/ext/mt_allocator.h
4003         (__mt_alloc::_S_thread_freelist_mutex): Guard with
4004         __GTHREAD_MUTEX_INIT.
4006 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
4008         * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
4010 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
4012         * testsuite/21_strings/basic_string/cons/char/6.cc: New.
4013         * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
4014         * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
4016 2004-01-30  Felix Yen  <fwy@alumni.brown.edu>
4018         * testsuite/performance/20_util/allocator_thread.cc (do_loop):
4019         Don't use clear, but instead assign. Use insert.
4021 2004-01-30  Benjamin Kosnik  <bkoz@redhat.com>
4023         * src/demangle.cc: Add instantiations.
4024         * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
4025         * src/Makefile.in: Regenerate.
4027 2004-01-30  David Edelsohn  <edelsohn@gnu.org>
4029         * src/allocator.cc: Protect _S_get_thread_id() and
4030         _S_thread_key_destr() with #ifdef __GTHREADS.
4032 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
4034         Reshuffle performance testsuite.
4035         * testsuite/performance/allocator.cc, allocator_map_thread.cc,
4036         allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
4037         cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
4038         fstream_seek_write.cc, ifstream_extract_float.cc,
4039         ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
4040         list_create_fill_sort.cc, map_create_fill.cc,
4041         narrow_widen_char.cc, narrow_widen_wchar_t.cc,
4042         ofstream_insert_float.cc, ofstream_insert_int.cc,
4043         string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
4044         wchar_t_out.cc: Split into...
4045         * testsuite/performance/20_util/allocator.cc: New.
4046         * testsuite/performance/20_util/allocator_map_thread.cc: New.
4047         * testsuite/performance/20_util/allocator_thread.cc: New.
4048         * testsuite/performance/21_strings/string_append: New.
4049         * testsuite/performance/22_locale/is_wchar_t.cc: New.
4050         * testsuite/performance/22_locale/narrow_widen_char.cc: New.
4051         * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
4052         * testsuite/performance/22_locale/wchar_t_in.cc: New.
4053         * testsuite/performance/22_locale/wchar_t_length.cc: New.
4054         * testsuite/performance/22_locale/wchar_t_out.cc: New.
4055         * testsuite/performance/23_containers/container_benchmark.cc: New.
4056         * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
4057         * testsuite/performance/23_containers/map_create_fill.cc: New.
4058         * testsuite/performance/26_numerics/complex_norm.cc: New.
4059         * testsuite/performance/27_io/cout_insert_int.cc: New.
4060         * testsuite/performance/27_io/filebuf_copy.cc: New.
4061         * testsuite/performance/27_io/filebuf_sputc.cc: New.
4062         * testsuite/performance/27_io/fstream_seek_write.cc: New.
4063         * testsuite/performance/27_io/ifstream_extract_float.cc: New.
4064         * testsuite/performance/27_io/ifstream_extract_int.cc: New.
4065         * testsuite/performance/27_io/ifstream_getline.cc: New.
4066         * testsuite/performance/27_io/ofstream_insert_float.cc: New.
4067         * testsuite/performance/27_io/ofstream_insert_int.cc: New.
4069 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
4071         * include/bits/basic_string.tcc (_Rep::_S_create):
4072         Never allocate a string bigger than max_size(); always keep
4073         __capacity and __size in sync to avoid memory leaks at
4074         deallocation time.
4076 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
4078         * include/bits/basic_string.tcc (_S_construct(_InIterator,
4079         _InIterator, const _Alloc&, input_iterator_tag)): Simplify
4080         the double loop, streamline.
4082         * include/bits/basic_string.tcc: Very minor tweaks.
4084 2004-01-30  Loren J. Rittle  <ljrittle@acm.org>
4086         * scripts/check_performance: Only compile with $THREAD_FLAG
4087         when test is marked to require it.  Allow multiple
4088         compilations/executions of marked tests.
4089         * testsuite/testsuite_performance.h (report_performance):
4090         Report dynamic thread support status.
4091         (report_header): Likewise.
4092         * testsuite/performance/allocator.cc: Stabilize iteration
4093         count.  Support more allocators.  Mark each allocator test to
4094         run and report independently.
4095         * testsuite/performance/allocator_map_thread.cc: Likewise.
4096         * testsuite/performance/allocator_thread.cc: Likewise.
4098 2004-01-29  Stephen M. Webb  <stephen.webb@bregmasoft.com>
4100         * config/local/generic/c_locale.h: Change ::malloc() to new char[].
4101         * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
4102         * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
4103         std::get_temporary_buffer() instead of duplicating its code.
4104         Update to C++STYLE conventions.
4105         * include/std/std_memory.h (get_temporary_buffer): Use ::operator
4106         new() instead of std::malloc().
4107         (return_temporary_buffer): Use ::operator delete() instead of
4108         std::free().
4110 2004-01-29  Benjamin Kosnik  <bkoz@redhat.com>
4112         * include/bits/allocator.h: Temporary switch to new_allocator as
4113         the default to unjam bootstraps.
4115 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
4117         * include/Makefile.am (bits_headers): Remove allocator_traits.h.
4118         * include/Makefile.in: Regenerate.
4119         * include/bits/allocator_traits.h: Remove.
4120         * include/bits/allocator.h: Remove allocator_traits.h include, and
4121         relevant comments.
4122         (allocator): Empty base class, inherit from the underlying allocator.
4123         * src/allocator-inst.cc: Move __pool_alloc instantiation to...
4124         * src/allocator.cc: ...here. New. For the underlying allocators.
4125         Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
4126         * config/linker-map.gnu: Remove __pool_alloc bits.
4127         * src/Makefile.am (sources): Add allocator.cc.
4128         * src/Makefile.in: Regenerate.
4129         * testsuite/20_util/allocator/1.cc: Split second test into...
4130         * testsuite/20_util/allocator/8230.cc: ...this.
4131         * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
4132         typedef to use std::allocatore. Format.
4133         * include/ext/pool_allocator.h: Remove allocator_traits.h include,
4134         _Alloc_traits.
4135         * include/ext/mt_allocator.h (__gnu_cxx): Qualify
4136         __throw_bad_alloc calls. Don't include <memory>.
4137         * include/ext/malloc_allocator.h: Remove <memory> include.
4138         * include/ext/new_allocator.h (new_allocator): Same.
4139         * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
4140         declaration. Switch __alloc to _Alloc.
4141         * include/ext/hashtable.h: Remove __alloc.
4142         * include/backward/alloc.h: Only inject allocator, not
4143         implementation details.
4145         * include/ext/mt_allocator.h: Replace free with delete.
4147 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
4149         * src/globals_io.cc: Change to __gnu_internal namespace.
4150         * src/globals_locale.cc: Same.
4151         * src/locale_init.cc: Same.
4152         * src/ios_init.cc: Same.
4154 2004-01-28  Stefan Olsson  <stefan@snon.net>
4156         * include/ext/mt_allocator.h: Replaced all malloc() calls with
4157         operator new(). Added support for the env variable
4158         GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
4159         one in allocate() as well). Fix typos.
4161 2004-01-28  Paolo Carlini  <pcarlini@suse.de>
4163         * include/bits/basic_string.h (_S_create(size_t,
4164         const _Alloc&): Change signature to take two size_type
4165         arguments.
4166         * include/bits/basic_string.tcc (_S_construct(_InIterator,
4167         _InIterator, const _Alloc&, input_iterator_tag)): Update
4168         call, tweak a bit.
4169         (_S_construct(_InIterator, _InIterator, const _Alloc&,
4170         forward_iterator_tag)): Likewise.
4171         (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
4172         (_M_mutate(size_type, size_type, size_type)): Don't
4173         implement the exponential growth policy, demand it to
4174         _S_create, update call and simplify.
4175         (_M_clone(const _Alloc&, size_type)): Likewise.
4176         (_S_create(size_type, size_type, const _Alloc&)): Implement
4177         the growth policy, simplify otherwise.
4179         * include/bits/basic_string.h (_Rep::operator[]): Tweak
4180         signature to take a size_type, consistently with the other
4181         members.
4183 2004-01-27  Benjamin Kosnik  <bkoz@redhat.com>
4185         * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
4186         delete declarations, add include and test variable.
4188 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
4190         * include/bits/codecvt.h, include/bits/locale_facets.h,
4191         include/bits/postypes.h, include/bits/stl_bvector.h,
4192         include/bits/stl_multiset.h, include/bits/stl_set.h,
4193         include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
4194         include/std/std_complex.h:  Document.
4196 2004-01-27  Jerry Quinn  <jlquinn@optonline.net>
4198         PR libstdc++/11584
4199         * include/bits/ios_base.h (ios_base::_M_grow_words):  Add
4200         iword/pword selector.
4201         (ios_base::iword, ios_base::pword):  Use it.
4202         * src/ios.cc (ios_base::_M_grow_words):  Clear _M_word_zero
4203         iword or pword member on alloc failure.
4204         * testsuite/27_io/ios_base/storage/11584.cc:  New test.
4206 2004-01-27  Ulrich Weigand  <uweigand@de.ibm.com>
4207             PJ Darcy  <darcypj@us.ibm.com>
4209         * configure.host: Add support for *-tpf.
4210         * crossconfig.m4: Likewise.
4211         * configure: Regenerate.
4212         * config/os/tpf: New directory.
4213         * config/os/tpf/os_defines.h: New file.
4214         * config/os/tpf/ctype_base.h: Likewise.
4215         * config/os/tpf/ctype_inline.h: Likewise.
4216         * config/os/tpf/ctype_noninline.h: Likewise.
4218 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
4220         PR libstdc++/13884
4221         * include/bits/sstream.tcc: Guard use of extern template.
4223 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
4225         * include/bits/basic_string.tcc
4226         (basic_string(const basic_string&, size_type, size_type),
4227         basic_string(const basic_string&, size_type, size_type,
4228         const _Alloc&)): Avoid unnecessarily constructing iterators.
4230 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
4232         * config/locale/generic/c_locale.cc: Fix throw messages
4233         to use the __N marker.
4234         * config/locale/gnu/c_locale.cc: Likewise.
4235         * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
4236         Likewise.
4237         * docs/html/17_intro/C++STYLE: Likewise.
4238         * include/bits/basic_ios.tcc: Likewise.
4239         * include/bits/fstream.tcc: Likewise.
4240         * include/bits/vector.tcc: Likewise.
4241         * include/ext/ropeimpl.h: Likewise.
4242         * include/std/std_bitset.h: Likewise.
4243         * src/ios.cc: Likewise.
4244         * src/locale.cc: Likewise.
4245         * src/localename.cc: Likewise.
4247 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
4249         * include/bits/basic_string.h (_M_replace_aux): Use the
4250         __N marker in throw message.
4251         * include/bits/basic_string.tcc (assign(const _CharT*,
4252         size_type), insert(size_type, const _CharT*, size_type),
4253         replace(size_type, size_type, const _CharT*, size_type),
4254         reserve, _Rep::_S_create, resize, _M_replace_dispatch):
4255         Likewise.
4257         * include/bits/basic_string.h, include/bits/basic_string.tcc:
4258         Fold overlong lines, minor formatting changes.
4260 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
4262         * include/bits/basic_string.h (replace(iterator, iterator,
4263         const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
4264         (replace(iterator, iterator, const _CharT*)): Ditto.
4265         (replace(iterator, iterator, const _CharT*, size_type)):
4266         Add missing _GLIBCXX_DEBUG_PEDASSERT.
4268 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
4270         * include/bits/basic_string.tcc (replace(size_type,
4271         size_type, const _CharT*, size_type)): Implement optimized
4272         in-place algorithm for non-overlapping ranges.
4273         * testsuite/21_strings/basic_string/replace/char/6.cc: New.
4274         * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
4276         * include/bits/basic_string.tcc (insert(size_type,
4277         const _CharT*, size_type)): Tweak slightly.
4279 2004-01-26  Andreas Schwab  <schwab@suse.de>
4281         * config/locale/gnu/monetary_members.cc: Restore locale before
4282         rethrowing exception.
4284 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
4286         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
4287         Define inline here.
4288         * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
4289         Move inline.
4291         * include/bits/basic_string.tcc: Very minor tweaks.
4293 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
4295         * testsuite/performance/string_append.cc: Increase number
4296         of iterations.
4298 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
4300         * include/bits/basic_string.h (erase(size_type, size_type),
4301         erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
4302         instead, thus avoiding redundant check for length_error.
4304         * include/bits/basic_string.h: Tweak some comments.
4306 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
4308         * include/bits/basic_string.tcc (operator+(const _CharT*,
4309         const basic_string&)): No need to go through the append
4310         taking two iterators.
4312 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
4314         * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
4315         Revert last change to use std::min: machine language is worse.
4316         (find_last_of(const _CharT*, size_type, size_type)): Ditto.
4317         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4318         (find_last_not_of(_CharT, size_type)): Ditto.
4320         * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
4321         size_type)): Discard the value returned by _M_check.
4322         (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
4323         (append(const basic_string&, size_type, size_type)): Ditto.
4324         (copy(_CharT*, size_type, size_type)): Ditto.
4325         (compare(size_type, size_type, const basic_string&)): Ditto.
4326         (compare(size_type, size_type, const basic_string&,
4327         size_type, size_type)): Ditto.
4328         (compare(size_type, size_type, const _CharT*)): Ditto.
4329         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
4331 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
4333         * include/bits/basic_string.h (insert(size_type,
4334         const basic_string&, size_type, size_type)): Define inline here.
4335         * include/bits/basic_string.tcc (insert(size_type,
4336         const basic_string&, size_type, size_type)): Move inline.
4338 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
4340         * include/bits/basic_string.h (assign(const basic_string&,
4341         size_type, size_type)): Define inline here.
4342         (replace(size_type, size_type, const basic_string&,
4343         size_type, size_type)): Ditto.
4344         (_M_replace_dispatch(iterator, iterator, _InputIterator,
4345         _InputIterator, __false_type)): Only declare.
4346         (_M_replace(iterator, iterator, _InputIterator,
4347         _InputIterator)): Remove.
4348         * include/bits/basic_string.tcc (assign(const basic_string&,
4349         size_type, size_type)): Move inline.
4350         (replace(size_type, size_type, const basic_string&,
4351         size_type, size_type)): Ditto.
4352         (_M_replace_dispatch(iterator, iterator, _InputIterator,
4353         _InputIterator, __false_type)): Define, now does also what
4354         _M_replace did before.
4355         * src/string-inst.cc (_M_replace): Don't instantiate.
4357         * include/bits/basic_string.tcc (find(const _CharT*,
4358         size_type, size_type)): Tidy.
4359         (rfind(_CharT, size_type)): Ditto.
4360         (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
4361         (find_first_not_of(_CharT, size_type)): Ditto.
4362         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4363         (find_last_not_of(_CharT, size_type)): Ditto.
4365 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
4367         PR libstdc++/13838
4368         * include/debug/bitset (operator|=): Fix typo.
4369         * testsuite/23_containers/bitset/operations/13838.cc: New.
4371 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
4373         * include/bits/basic_string.tcc (insert(size_type,
4374         const _CharT*, size_type __n)): Fix length_error check.
4375         (replace(size_type, size_type, const _CharT*, size_type):
4376         Ditto; call _M_replace_safe.
4377         (_M_replace_aux(size_type, size_type, size_type, _CharT):
4378         Fix length_error check.
4379         (_M_replace(iterator, iterator, _InputIterator,
4380         _InputIterator)): Ditto, tweak.
4381         (_M_replace_safe(size_type, size_type, const _CharT*,
4382         size_type)): Remove length_error check.
4384         * include/bits/basic_string.tcc (append(const basic_string&),
4385         append(const basic_string&, size_type, size_type)): Tweak
4386         comment.
4388         * include/bits/basic_string.tcc (copy(_CharT*, size_type,
4389         size_type)): If __n == 0 don't call traits::copy.
4391 2004-01-23  Stefan Olsson  <stefan@snon.net>
4393         * include/ext/mt_allocator.h: Reduce lock contention.
4395 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
4397         PR libstdc++/13831
4398         * include/bits/fstream.tcc (underflow): Remove unused
4399         variable.
4400         * include/bits/streambuf_iterator.h (equal): Ditto.
4401         * include/bits/locale_facets.h (_M_convert_from_char):
4402         Ditto.
4404 2004-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4406         PR c/13814
4407         * config/linker-map.gnu (nan): Delete.
4408         * libmath/mathconf.h (NAN, nan): Delete.
4409         * linkage.m4 (nan): Don't check for it.
4410         * libmath/nan.c: Delete file.
4412         * config.h.in, configure: Regenerate.
4414 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
4416         * include/bits/basic_string.h (push_back(_CharT)):
4417         Call _M_replace_aux.
4418         (insert(size_type, const basic_string&)): Trivial tweak.
4419         (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
4420         (insert(iterator, _CharT)): Ditto.
4421         (erase(size_type, size_type)): Ditto.
4422         (erase(iterator)): Ditto.
4423         (erase(iterator, iterator)): Ditto.
4424         (replace(size_type, size_type, size_type, _CharT)): Ditto.
4426 2004-01-23  Loren J. Rittle  <ljrittle@acm.org>
4428         libstdc++/13823
4429         * testsuite/performance/allocator_map_thread.cc: New test.
4431 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
4433         * include/bits/locale_facets.tcc
4434         (money_put::do_put(..., long double)): Use the basic_string
4435         constructor for char arrays, not that for C-strings, to pass
4436         __digits to do_put(..., const string_type&): __ws isn't
4437         null-terminated.
4439 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
4441         * include/bits/basic_string.h (_M_replace_safe): Change
4442         signatures to take size_types and const _CharT*.
4443         (_M_replace_aux): Likewise, takes size_types instead of
4444         iterators.
4445         (append(size_type, _CharT)): Update call.
4446         (assign(size_type, _CharT)): Ditto.
4447         (replace(iterator, iterator, size_type, _CharT)): Ditto.
4448         (_M_replace_dispatch(iterator, iterator, _Integer,
4449         _Integer, __true_type)): Ditto.
4450         * include/bits/basic_string.tcc (assign(const _CharT*,
4451         size_type)): Ditto.
4452         (insert(size_type, const _CharT*, size_type)): Ditto.
4453         (replace(size_type, size_type, const _CharT*,
4454         size_type)): Ditto.
4455         (_M_replace(iterator, iterator, _InputIterator,
4456         _InputIterator)): Ditto.
4457         (append(const basic_string&)): Ditto.
4458         (append(const basic_string&, size_type, size_type): Ditto.
4459         (append(const _CharT*, size_type): Ditto.
4460         (_M_replace_safe, _M_replace_safe): Change definitions
4461         accordingly, simplify.
4462         * string-inst.cc (_M_replace_safe): Don't instantiate.
4464 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
4466         * include/bits/basic_string.tcc (append(const basic_string&)):
4467         Revert previous change.
4468         (append(const basic_string&, size_type, size_type)): Revert
4469         previous change, use _M_check and _M_limit.
4471 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
4473         * include/bits/basic_string.h (_M_check): Change to return
4474         a checked __pos and take an additional const char* argument.
4475         (_M_fold): Rename to _M_limit, change to return a size_type,
4476         corresponding to the __off limited to the actual length.
4477         (insert(size_type, size_type, _CharT)): Update call, call
4478         replace.
4479         (insert(iterator, _CharT)): Call replace(iterator, iterator,
4480         size_type, _CharT) instead.
4481         (erase(size_type, size_type)): Update calls.
4482         (replace(size_type, size_type, size_type, _CharT)): Ditto.
4483         (substr(size_type, size_type)): Use _M_check.
4484         * include/bits/basic_string.tcc (basic_string(const basic_string&,
4485         size_type, size_type)): Update calls.
4486         (basic_string(const basic_string&, size_type, size_type,
4487         const _Alloc&)): Ditto.
4488         (assign(const basic_string&, size_type, size_type)): Use the
4489         new _M_check and _M_limit.
4490         (insert(size_type, const basic_string&, size_type, size_type):
4491         Ditto.
4492         (insert(size_type, const _CharT*, size_type)): Ditto.
4493         (replace(size_type, size_type, const _CharT*, size_type): Ditto.
4494         (replace(size_type, size_type, const basic_string&,
4495         size_type, size_type)): Ditto.
4496         (append(const basic_string&)): Ditto.
4497         (append(const basic_string&, size_type, size_type)): Ditto.
4498         (copy(_CharT*, size_type, size_type)): Ditto.
4499         (compare(size_type, size_type, const basic_string&)): Ditto.
4500         (compare(size_type, size_type, const basic_string&,size_type,
4501         size_type)): Ditto.
4502         (compare(size_type, size_type, const _CharT*)): Ditto.
4503         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
4505 2004-01-19  Stefan Olsson  <stefan@snon.net>
4507         * include/ext/mt_allocator.h: If a thread, when it dies, still has
4508         memory on it's freelist this memory is not returned to global
4509         list. Simplification of deallocate so that memory is always
4510         returned to the calling thread id's freelist instead of to
4511         global. Fix typos. Add volatile where appropriate.
4513 2004-01-19  Loren J. Rittle  <ljrittle@acm.org>
4515         * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
4516         * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test.  Like -2 but
4517         use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
4519 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
4521         * src/debug.cc: Make sure all the names are prefixed with
4522         double (or single) underscore.
4524 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
4526         * src/debug.cc: Trivial formatting change.
4528 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
4530         * include/bits/basic_string.tcc (_S_construct(size_type,
4531         _CharT, const _Alloc&)): Remove redundant try/catch.
4532         (_M_mutate(size_type, size_type, size_type)): Ditto.
4533         (_M_clone(const _Alloc&, size_type)): Ditto.
4535 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
4537         * include/bits/basic_string.h (c_str()): Simplify, due to
4538         21.3.4 the internal representation is always kept null-terminated.
4539         * include/bits/basic_string.tcc (_M_clone): Null-terminate.
4540         * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
4541         * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
4542         Ditto.
4544 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
4546         * include/bits/basic_string.h (append(size_type, _CharT)):
4547         Moved inline, just call _M_replace_aux, no source iterators at
4548         risk of being clobbered.
4549         (assign(size_type, _CharT)): Call directly _M_replace_aux.
4550         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
4551         input_iterator_tag)): Remove fifth unused argument.
4552         (_M_replace_dispatch(iterator, iterator, _InputIterator,
4553         _InputIterator, __false_type)): Update call.
4554         * include/bits/basic_string.tcc (replace(size_type, size_type,
4555         const _CharT*, size_type)): Update call.
4556         (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
4557         throw string literal.
4558         (_M_replace_safe(iterator, iterator, _ForwardIterator,
4559         _ForwardIterator)): Likewise.
4560         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
4561         input_iterator_tag)): Remove fifth unused argument.
4562         (append(size_type __n, _CharT __c)): Move inline.
4563         * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
4564         const C*, const C*, input_iterator_tag)): Remove fifth unused
4565         argument.
4567 2004-01-16  Benjamin Kosnik  <bkoz@redhat.com>
4569         * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
4570         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
4572 2004-01-16  Danny Smith  <dannysmith@users.sourceforge.net>
4574         * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
4575         mkfifo for mingw32.
4577 2004-01-15  Stefan Olsson  <stefan@snon.net>
4579         * include/ext/mt_allocator.h: Reuse thread id's as soon as
4580         possible by changing the behaviour of thread_freelist to do
4581         push_front when threads die instead of push_back.
4583 2004-01-14  Paolo Carlini  <pcarlini@suse.de>
4585         * include/bits/locale_facets.h (struct __numpunct_cache):
4586         Add member _M_grouping_size, caching the length of _M_grouping.
4587         (__numpunct_cache<>::_M_cache): Assign the latter.
4588         (__verify_grouping): Move declaration...
4589         * include/bits/locale_facets.tcc (__verify_grouping):
4590         ... here, change signature to take a const char* and a size_t
4591         for the grouping; not a template anymore.
4592         (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
4593         Likewise change signature and tweak consistently.
4594         (num_get::_M_extract_float, num_get::_M_extract_int,
4595         num_put::_M_insert_int, num_put::_M_insert_float,
4596         money_get::do_get(string_type&), money_get::do_put(string_type)):
4597         Update callers.
4598         * config/locale/generic/numeric_members.cc
4599         (numpunct<>::_M_initialize_numpunct): Assign the new member.
4600         * config/locale/gnu/numeric_members.cc
4601         (numpunct<>::_M_initialize_numpunct): Likewise.
4602         * src/locale-inst.cc (__add_grouping): Tweak signature.
4603         (__verify_grouping): Don't instantiate, not a template anymore.
4605         * include/bits/locale_facets.h: Rename _M_truename_len ->
4606         _M_truename_size, _M_falsename_len -> _M_falsename_size.
4607         * include/bits/locale_facets.tcc: Likewise.
4608         * config/locale/generic/numeric_members.cc: Likewise.
4609         * config/locale/gnu/numeric_members.cc: Likewise.
4611 2004-01-14  Stefan Olsson  <stefan@snon.net>
4613         * include/ext/mt_allocator.h: Fixups.
4614         * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
4615         * testsuite/performance/allocator_thread.cc: Same.
4617 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
4619         * testsuite/performance/ifstream_extract_float.cc: Add higher
4620         precision tests.
4621         * testsuite/performance/ofstream_insert_float.cc: Same.
4623 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
4625         * src/locale-misc-inst.cc (__convert_from_v(long),
4626         __convert_from_v(unsigned long), __convert_from_v(long long),
4627         __convert_from_v(unsigned long long)): Remove, unused.
4629 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
4631         * testsuite/performance/ifstream_extract_float.cc: New.
4632         * testsuite/performance/ofstream_insert_float.cc: Float generation
4633         matches above.
4635         * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
4636         * 20_util/auto_ptr/1.cc: ...this.
4637         * 20_util/auto_ptr/2.cc: Same.
4638         * 20_util/auto_ptr/3.cc: Same.
4639         * 20_util/auto_ptr/3946.cc: Same.
4640         * 20_util/auto_ptr/4.cc: Same.
4641         * 20_util/auto_ptr/5.cc: Same.
4642         * 20_util/auto_ptr/6.cc: Same.
4643         * 20_util/auto_ptr/7.cc: Same.
4644         * 20_util/auto_ptr/assign_neg.cc
4645         * 20_util/pairs.cc: Break into...
4646         * 20_util/pair/1.cc: ...this.
4647         * 20_util/pair/2.cc: Same.
4648         * 20_util/pair/3.cc: Same.
4649         * 20_util/pair/4.cc: Same.
4651 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
4653         * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
4654         Set correctly just basefield, the only group that matters.
4656 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
4658         * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
4659         (_Rope_rep_base): Inherit directly from the rope allocator;
4660         use rebinding instead of _Alloc_traits; pick up data member
4661         from _Rope_rep_alloc_base.
4662         (_Rope_alloc_base): Eliminate.
4663         (_Rope_base): Inherit directly from the rope allocator; use
4664         rebinding instead of _Alloc_traits; pick up data member from
4665         _Rope_alloc_base.
4666         (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
4667         rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
4669 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
4671         PR libstdc++/13650
4672         * include/bits/basic_string.tcc (compare(size_type, size_type,
4673         const _CharT*, size_type)): Implement correctly the resolution
4674         of DR 5: basically, s is a char array, -not- a C string.
4675         * include/bits/basic_string.h: Tweak some comments.
4676         * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
4677         * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
4679 2004-01-12  Andreas Tobler  <a.tobler@schweiz.ch>
4681         * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
4682         Solaris.
4684 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
4686         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
4687         Use try_mkfifo.
4688         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
4689         Likewise.
4691 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
4693         * include/bits/locale_facets.h (struct __numpunct_cache):
4694         Add members _M_truename_len and _M_falsename_len, caching
4695         the lengths of _M_truename and _M_falsename.
4696         (__numpunct_cache<>::_M_cache): Assign the latter.
4697         * include/bits/locale_facets.tcc (num_get::do_get(bool&),
4698         num_put::do_put(bool)): Use the new members, thus avoiding
4699         computing string lengths again and again.
4700         * config/locale/generic/numeric_members.cc
4701         (numpunct<>::_M_initialize_numpunct): Assign the new members.
4702         * config/locale/gnu/numeric_members.cc
4703         (numpunct<>::_M_initialize_numpunct): Likewise.
4705 2004-01-12  Mark Mitchell  <mark@codesourcery.com>
4707         * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
4708         * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
4709         it.
4710         * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
4711         and remove Cygwin XFAIL.
4712         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
4713         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
4714         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
4715         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
4716         Likewise.
4717         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
4718         * testsuite/27_io/objects/char/7.cc: Likewise.
4719         * testsuite/27_io/objects/char/9661-1.cc: Likewise.
4720         * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
4721         * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
4723 2004-01-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4725         * include/std/std_complex.h (std::complex<>::real): Return a
4726         reference. Add non-const overload.
4727         (std::complex<>::real): Likewise.
4728         (std::real): Likewise.
4729         (std::imag): Likewise.
4730         (std::operator+): Tidy.
4731         (std::operator-): Likewise.
4732         (std::operator*): Likewise.
4733         (std::operator/): Likewise.
4734         (std::operator>>): Likewise.
4736 2004-01-11  Paolo Carlini  <pcarlini@suse.de>
4738         PR libstdc++/13582
4739         * include/bits/fstream.tcc (imbue): Exploit the external
4740         buffer to imbue 'on the fly' a new locale and convert its
4741         remainder with the new codecvt facet.
4742         (underflow): Tweak slightly to deal with this special case.
4743         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
4744         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
4745         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
4746         * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
4747         * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
4749 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
4751         * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
4752         Import Revision 28.
4754 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
4756         PR libstdc++/13630
4757         * include/bits/locale_classes.h (class locale): Fix category
4758         typedef.
4759         * testsuite/22_locale/locale/13630.cc: Add.
4761 2004-01-10  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
4763         * include/bits/locale_facets.h: Make a name really dependent. This
4764         will be needed when Core Issue 224 is implemented.
4766 2004-01-09  Paolo Carlini  <pcarlini@suse.de>
4768         * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
4769         * testsuite/performance/allocator_thread.cc: Likewise.
4771 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
4773         * crossconfig.m4: Add LFS, io bits to linux cross config.
4774         * acconfig.h: Remove obsolete bits, reorder.
4775         * config.h.in: Regenerate.
4776         * aclocal.m4: Same.
4777         * configure: Same.
4779 2004-01-07  Gawain Bolton  <gp.bolton@computer.org>
4781         * include/bits/stl_list.h:
4782         * include/bits/list.tc:
4783         * src/list.cc:
4784         Performance enhancements for destructor, push_front(),
4785         push_back(), pop_front(), pop_back(), sort()
4786         Eliminated static_casts where possible.
4787         Moved code out of header files into new src/list.cc
4788         implementation file for library where possible.
4789         Remove inheritance from iterator class and create separate
4790         classes for non-constant and constant iterators.
4791         * include/bits/stl_tree.h (_Rb_tree class):
4792         * src/tree.cc:
4793         Only erase contents in destructor.
4794         Eliminate unnecessary initialization in assignment operator.
4795         Optimize for the nominal case by not checking whether
4796         container is empty in clear().
4797         Re-order test in _M_insert() to improve performance.
4798         Move initialization of new node's left & right pointers to
4799         src/tree.cc to where new node's colour is initialized
4800         and to reduce the amount of inline code.
4801         Use  _M_leftmost() and _M_end() to improve readability where
4802         appropriate.
4803         Create separate classes for non-constant and constant
4804         iterators to clarify code, avoid extra template parameters and
4805         casting away constness.
4807 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
4809         * src/Makefile.am (sources): Add list.cc, tree.cc.
4810         * src/stl_tree.cc: Move to...
4811         * src/tree.cc: ...here.
4812         * src/list.cc: Add.
4813         * config/linker-map.gnu: Tweaks.
4814         * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
4815         * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
4817         * bits/stl_vector.h: Column wrap comments.
4819 2004-01-07  Loren J. Rittle  <ljrittle@acm.org>
4821         (re-open) PR libstdc++/12658
4822         * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
4823         (locale::global): Likewise.
4825 2004-01-07  Paolo Carlini  <pcarlini@suse.de>
4827         * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
4828         Remove redundant #include.
4829         * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
4830         * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
4831         re-enable normal testing.
4832         * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
4833         #include.
4834         * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
4835         * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
4836         Likewise.
4837         * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
4838         Likewise.
4839         * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
4840         Likewise.
4841         * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
4842         Likewise.
4843         * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
4844         Likewise.
4845         * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
4846         Likewise.
4847         * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
4848         Likewise.
4849         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
4850         More properly, #include <locale>.
4851         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
4852         Remove redundant #include.
4853         * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
4854         * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
4855         redundant DejaGnu directive.
4856         * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
4857         redundant #include.
4859 2004-01-06  Benjamin Kosnik  <bkoz@redhat.com>
4860             Stefan Olsson  <stefan@snon.net>
4862         * scripts/check_performance: Use -pthread.
4863         * testsuite/performance/allocator.cc: Tweaks, add list.
4864         * testsuite/performance/allocator_thread.cc: New.
4866 2004-01-06  Jerry Quinn  <jlquinn@optonline.net>
4868         * include/bits/locale_facets.h: Document public classes and
4869         functions.
4870         * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
4871         Add comment.
4873 2004-01-06  Paolo Carlini  <pcarlini@suse.de>
4875         * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
4876         Remove redundant #includes.
4877         * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
4878         Likewise.
4879         * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
4880         Likewise.
4881         * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
4882         * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
4883         * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
4884         * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
4885         * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
4886         * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
4887         * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
4888         * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
4889         * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
4890         * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
4891         * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
4892         * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
4893         * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
4894         * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
4895         * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
4896         Likewise.
4897         * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
4898         Likewise.
4899         * testsuite/27_io/basic_istream/readsome/char/8258.cc:
4900         Likewise.
4901         * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
4902         Likewise.
4903         * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
4904         Likewise.
4905         * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
4906         * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
4907         * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
4909 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
4911         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
4912         Remove redundant #includes.
4913         * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
4914         Likewise.
4915         * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
4916         Likewise.
4917         * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
4918         Likewise.
4919         * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
4920         Likewise.
4921         * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
4922         Likewise.
4923         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
4924         Likewise.
4925         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
4926         Likewise.
4927         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
4928         Likewise.
4929         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
4930         Likewise.
4931         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
4932         Likewise.
4933         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
4934         Likewise.
4935         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
4936         Likewise.
4938 2004-01-04  Mark Mitchell  <mark@codesourcery.com>
4940         PR c++/12226
4941         * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
4942         constructor.
4943         * testsuite/27_io/basic_fstream/4.cc: Likewise.
4944         * testsuite/27_io/basic_ifstream/4.cc: Likewise.
4945         * testsuite/27_io/basic_ios/4.cc: Likewise.
4946         * testsuite/27_io/basic_iostream/4.cc: Likewise.
4947         * testsuite/27_io/basic_istream/4.cc: Likewise.
4948         * testsuite/27_io/basic_istingstream/4.cc: Likewise.
4949         * testsuite/27_io/basic_ofstream/4.cc: Likewise.
4950         * testsuite/27_io/basic_ostream/4.cc: Likewise.
4951         * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
4952         * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
4953         * testsuite/27_io/basic_stringstream/4.cc: Likewise.
4955 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
4957         * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
4958         Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
4959         always use double underscored names.
4960         * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
4961         Likewise.
4962         * include/bits/locale_facets.h (struct __numpunct_cache):
4963         Dimension _M_atoms_out and _M_atoms_in one position smaller.
4964         (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out
4965         and _M_atoms_in.