Fix typo.
[official-gcc.git] / libstdc++-v3 / ChangeLog
blob88bd3a757680a64a09087389deaa195cbce99b1d
1 2004-10-01  Paolo Carlini  <pcarlini@suse.de>
3         * include/bits/sstream.tcc (seekpos): Minor rearrangement of two
4         conditionals consistently with seekoff.
5         * include/std/std_sstream.h (setbuf): Avoid a string temporary.
6         (_M_sync): Simplify a bit, clean-up comment.
8 2004-09-30  Paolo Carlini  <pcarlini@suse.de>
10         PR libstdc++/10975 (DR 453)
11         * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
12         and __off == 0.
13         * docs/html/ext/howto.html: Add an entry for DR 453.
14         * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
15         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
16         * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
17         * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
18         * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
19         * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
20         move to...
21         * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
22         * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
23         move to...
24         * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
26 2004-09-29  Paolo Carlini  <pcarlini@suse.de>
28         * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
29         Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
30         (str()): Slightly tweak, protect from pptr() == 0.
31         (_M_update_egptr()): Likewise.
32         * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
33         for an empty buffer use __beg instead of _M_string.capacity().
34         * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
35         * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
37         * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
38         * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
39         * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
40         * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
42 2004-09-29  Paolo Carlini  <pcarlini@suse.de>
43             Benjamin Kosnik  <bkoz@redhat.com>
44         
45         * testsuite/testsuite_io.h (class constraint_buf): New, extended
46         and templatized version of constraint_filebuf; add typedefs for
47         streambuf/stringbuf/filebuf and wchar_t counterparts.
49 2004-09-28  Paolo Carlini  <pcarlini@suse.de>
51         PR libstdc++/16612
52         * include/bits/basic_string.h (_M_dispose, _M_refcopy,
53         basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
54         don't deal with _S_empty_rep.
55         * include/bits/basic_string.tcc (_S_construct, _M_destroy,
56         _M_leak_hard, _M_mutate): Likewise.
57         * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
58         * acconfig.h: Add corresponding undef.  
59         * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
60         * docs/html/configopts.html: Document --enable-fully-dynamic-string.
61         * configure: Regenerate.
62         * config.h.in: Likewise.
64 2004-09-28  Benjamin Kosnik  <bkoz@redhat.com>
65             Paolo Carlini  <pcarlini@suse.de>
67         * testsuite/21_strings/basic_string/operations/char/1.cc: New.
68         * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
69         * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
70         * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc: 
71         New.
73 2004-09-28  Paolo Carlini  <pcarlini@suse.de>
75         * README: Remove obsolete entry about include/c_shadow.
77 2004-09-24  H.J. Lu  <hongjiu.lu@intel.com>
79         PR libstdc++/17469
80         * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
82 2004-09-24  Paolo Carlini  <pcarlini@suse.de>
84         * src/localename.cc (locale::locale(const char*)): Minor tweaks:
85         rename a variable, move an assignment.
86         (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
88 2004-09-24  Paul Brook  <paul@codesourcery.com>
90         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
91         simulator targets.
92         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
93         * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
94         * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
95         * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
96         * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
97         * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
99 2004-09-23  Zack Weinberg  <zack@codesourcery.com>
101         * testsuite/20_util/memory/auto_ptr/assign_neg.cc
102         * testsuite/23_containers/map/operators/1_neg.cc
103         * testsuite/23_containers/set/operators/1_neg.cc:
104         Update locations and/or regexps of dg-error markers.
106 2004-09-23  P.J. Darcy  <darcypj@us.ibm.com>
108         * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
109         Add rule to build ${host_builddir}/gthr-tpf.h.
110         * include/Makefile.in: Regenerate.
112 2004-09-23  Paolo Carlini  <pcarlini@suse.de>
113             Magnus Fromreide  <magfr@lysator.liu.se>
115         * include/bits/boost_concept_check.h (struct _SequenceConcept):
116         Remove wrong requirement, i.e., not present in Table 67.
118 2004-09-21  Paolo Carlini  <pcarlini@suse.de>
120         PR libstdc++/12882 (cont)
121         * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
122         * configure: Regenerate.
123         * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
124         _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
125         trivial showmanyc for large files too.
127 2004-09-17  Jonathan Wakely  <redi@gcc.gnu.org>
129         * include/bits/stl_algo.h (remove): Remove too restrictive
130         concept-check.
132 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
134         * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
135         as per Nathan's original suggestion.
137 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
139         * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
140         up a bit.
141         * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
142         * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
143         * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
145 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
146             Andrea Arcangeli  <andrea@suse.de>
148         * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
149         call unnecessarily sync, that is fflush: the library, since 3.4.0
150         does not use buffered fread/fwrite.
151         * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
153 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
155         * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
156         Define.
157         * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
158         Define.
159         * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
160         (__cxa_vec_new): Use it.
161         (__cxa_vec_new2): Likewise.
162         (__cxa_vec_new3): Likewise.
163         (__cxa_vec_cdtor): Likewise.
164         (__cxa_vec_cctor): Likeiwse.
165         (__cxa_vec_dtor): Likewise.
166         (__cxa_vec_cleanup): Likewise.
167         (__cxa_vec_delete2): Likewise.
168         (__cxa_vec_delete3): Likewise.
169         * libsupc++/vec.cc (__cxa_vec_new): Likewise.
170         (__cxa_vec_new2): Likewise.
171         (__cxa_vec_new3): Likewise.
172         (__cxa_vec_cdtor): Likewise.
173         (__cxa_vec_cctor): Likeiwse.
174         (__cxa_vec_dtor): Likewise.
175         (__cxa_vec_cleanup): Likewise.
176         (__cxa_vec_delete2): Likewise.
177         (__cxa_vec_delete3): Likewise.
178         (__aeabi_vec_ctor_nocookie_nodtor): New function.
179         (__aeabi_vec_ctor_cookie_nodtor): Likewise.
180         (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
181         (__aeabi_vec_new_cookie_noctor): Likewise.
182         (__aeabi_vec_new_nocookie): Likewise.
183         (__aeabi_vec_new_cookie_nodtor): Likewise.
184         (__aeabi_vec_new_cookie): Likewise.
185         (__aeabi_vec_dtor): Likewise.
186         (__aeabi_vec_dtor_cookie): Likewise.
187         (__aeabi_vec_delete): Likewise.
188         (__aeabi_vec_delete3): Likewise.
189         (__aeabi_vec_delete3_nodtor): Likewise.
190         (__aeabi_atexit): Likewise.
192 2004-09-14  Nathan Myers  <ncm@cantrip.org>
194         * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
195         for 11722: copy can replace move; the common case is __avail == 0.
197 2004-09-14  Paolo Carlini  <pcarlini@suse.de>
199         * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
200         to __is_scalar, more clear and consistent with "tr1" naming.
201         * include/bits/stl_algobase.h: Update consistently throughout.
203 2004-09-13  Paolo Carlini  <pcarlini@suse.de>
205         PR libstdc++/11722
206         * include/std/std_fstream.h (xsgetn): Declare only.
207         * include/bits/fstream.tcc (xsgetn): Define, optimize for the
208         always_noconv() case: when __n > __buflen, copy the available
209         buffer and issue a direct read.
210         * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
212         * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
213         conditional.
215 2004-09-13  Hans-Peter Nilsson  <hp@bitrange.com>
217         * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
218         libstdc++_maybe_build_wrapper instead of using local code.
220 2004-09-08  Benjamin Kosnik  <bkoz@redhat.com>
222         * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
224 2004-09-03  Jan Beulich  <jbeulich@novell.com>
226         * crossconfig.m4: Add NetWare as a target.
227         * configure: Regenerate.
229 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
231         * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
232         defined.
234 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
235             Simon Richter  <Simon.Richter@hogyros.de>
237         PR libstdc++/16715
238         * include/bits/istream.tcc: Add extern template for iostream
239         char and wchar_t instantiations.
241 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
242             Leland Wang  <llwang@infor.org>
244         PR libstdc++/17259
245         * include/ext/ropeimpl.h (rope::_S_compare): Use
246         _Rope_constants::_S_leaf.
248 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
250         PR libstdc++/16848
251         * include/Makefile.am (ext_headers): Remove demangle.h.
252         * include/Makefile.in: Regenerate.
253         * include/ext/demangle.h: Remove.
255 2004-09-01  Benjamin Kosnik  <bkoz@redhat.com>
257         PR libstdc++/16614
258         * include/ext/mt_allocator.h (__mt_base): Not type dependent,
259         split into..
260         (__pool): New, specialize.
261         (__common_pool): New, static bits here.
262         (__per_type_pool): New, and here.
263         (__mt_alloc_base): New.
264         (__mt_alloc): Add template parameter, inherit from it.
265         * src/allocator.cc: Split this...
266         * src/allocator-inst.cc: And this...
267         * src/pool_allocator.cc: ...into this.
268         * src/mt_allocator.cc: ... and this. Add definitions for
269         __mt_base.
270         * src/Makefile.am (sources): Split allocator.cc to
271         pool_allocator.cc and mt_allocator.cc.
272         * src/Makefile.in: Regenerate.
273         * config/linker-map.gnu: Add symbols.
274         * docs/html/ext/mt_allocator.html: Document new design.
275         * testsuite/ext/mt_allocator/tune-1.cc: New.
276         * testsuite/ext/mt_allocator/tune-2.cc: New.
277         * testsuite/ext/mt_allocator/tune-3.cc: New.
278         * testsuite/ext/mt_allocator/tune-4.cc: New.
280         * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
281         * testsuite/ext/allocators.cc: Use check_new, split into...
282         * testsuite/ext/mt_allocator/check_new.cc: this.
283         * testsuite/ext/pool_allocator/check_new.cc: this.
284         * testsuite/ext/malloc_allocator/check_new.cc: this.
285         * testsuite/ext/debug_allocator/check_new.cc: this.
286         * testsuite/ext/mt_allocator/instantiate.cc: this.
287         * testsuite/ext/pool_allocator/instantiate.cc: this.
288         * testsuite/ext/malloc_allocator/instantiate.cc: this.
289         * testsuite/ext/debug_allocator/instantiate.cc: this.
291 2004-08-30  Phil Edwards  <phil@codesourcery.com>
293         * docs/html/install.html:  Update locales list (from Paolo).
294         Remove other redundant information and point to the GCC install
295         documentation.
297 2004-08-30  Benjamin Kosnik  <bkoz@redhat.com>
299         * include/ext/pool_allocator.h: Rename __pool_base to
300         __pool_alloc_base.
301         * src/allocator.cc: Same.
302         * config/linker-map.gnu: Same.
304 2004-08-30  Paolo Carlini  <pcarlini@suse.de>
305             Kenneth C. Schalk  <ken@xorian.net>
307         PR libstdc++/17215
308         * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
309         Check the return value of fclose/sync, loop on EINTR.
310         (__basic_file<char>::sys_open): Likewise, for sync.
312 2004-08-29  Paolo Carlini  <pcarlini@suse.de>
314         * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
315         case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
316         and 7.23.3.5), two if !_GLIBCXX_USE_C99.
317         * testsuite/22_locale/time_get/get_time/char/4.cc: New.
318         * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
320 2004-08-27  Jason Merrill  <jason@redhat.com>
322         PR c++/13684
323         * libsupc++/guard.cc (static_mutex): Internal class implementing a
324         recursive mutex which controls initialization of local statics.
325         (__gnu_cxx::recursive_init): New exception class.
326         (__cxa_guard_acquire): Deal with locking and recursion detection.
327         (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
329 2004-08-27  Matthias Klose  <doko@debian.org>
331         * configure.host: For mips*-*-linux* update cpu_include_dir
332         after atomicity_dir is set.
334 2004-08-27  Matthias Klose  <doko@debian.org>
336         * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
337         * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
338         * configure.host: Set abi_baseline_pair for arm*-*-linux* and
339         mips*-*-linux*.
341 2004-08-27  Paolo Carlini  <pcarlini@suse.de>
343         * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
344         * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
345         * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
346         * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
347         * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
349         * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
350         formatting fixes.
351         * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
352         * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
353         * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
354         * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
356 2004-08-25  Paolo Carlini  <pcarlini@suse.de>
358         PR libstdc++/17038 (partial)
359         * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
360         __maxlen to 128.
361         * include/bits/locale_facets.h (class __timepunct): Add FIXME
362         comment about _M_put.
363         * config/locale/generic/time_members.cc (_M_put): Always null
364         terminate __s.
365         * config/locale/gnu/time_members.cc (_M_put): Likewise.
366         * testsuite/22_locale/time_put/put/char/17038.cc: New.
367         * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
369 2004-08-24  Paolo Carlini  <pcarlini@suse.de>
371         * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
372         * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
373         * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
374         * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
375         * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
376         * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
378         * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
379         newlines.
380         * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
382 2004-08-22  Matthias Klose  <doko@debian.org>
384         * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
385         * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
387 2004-08-23  Paolo Carlini  <pcarlini@suse.de>
389         * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
390         * aclocal.m4: Regenerate with automake-1.9.1.
391         * configure: Regenerate.
392         * Makefile.in: Likewise.
393         * include/Makefile.in: Likewise.
394         * libmath/Makefile.in: Likewise.
395         * libsupc++/Makefile.in: Likewise.
396         * po/Makefile.in: Likewise.
397         * src/Makefile.in: Likewise.
398         * testsuite/Makefile.in: Likewise.
400 2004-08-22  Paolo Carlini  <pcarlini@suse.de>
402         * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
403         to a signed type, long according to the resolution of DR 359.
404         * testsuite/22_locale/num_put/put/char/9.cc: New.
405         * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
407         * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
408         Simplify a bit: no need to clear showpos.
410 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
412         * include/bits/char_traits.h (struct _Char_traits_match): Remove,
413         unused.
415 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
417         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
418         wchar_t type for the fill argument; minor formatting tweaks.
419         * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
420         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
421         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
422         * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
423         * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
424         * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
426 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
428         * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
429         with _M_word != _M_local_word two times, redundantly.
431 2004-08-20  Jason Merrill  <jason@redhat.com>
433         * include/Makefile.am (${host_builddir}/gthr.h): Don't add
434         _GLIBCXX_ to #pragma lines.
435         * include/Makefile.in: Update.
437 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
439         PR libstdc++/7219 (continued)
440         * include/bits/ios_base.h (class ios_base): Expose Annex D.6
441         typedefs by default.
442         * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
443         * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
444         line number.
445         * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
447 2004-08-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
449         * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
450         barrier to locking asm.
452 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
454         * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
455         actually the warning is a front-end bug (c++/17120).
457 2004-08-20  Matthias Klose  <doko@debian.org>
459         * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
461 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
463         * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
464         used as truth value warning.
466 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
468         * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
469         baseline.
471 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
473         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
475 2004-08-19  Benjamin Kosnik  <bkoz@redhat.com>
477         * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
478         timezone.
479         * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
481 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
483         * testsuite/performance/20_util/allocator/insert.cc: For std::map
484         instantiate the allocator for a correct pair type.
485         * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
486         * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
487         * testsuite/performance/20_util/allocator/producer_consumer.cc:
488         Likewise.
490         * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
491         minor formatting fixes.
492         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
494 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
496         * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
497         results.
498         * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
499         * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
500         * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
501         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
502         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
503         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
504         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
506 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
508         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
510 2004-08-18  Matthias Klose  <doko@debian.org>
512         * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
513         * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
514         * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
516 2004-08-17  Paolo Carlini  <pcarlini@suse.de>
518         * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
520 2004-08-17  Paolo Carlini  <pcarlini@suse.de>
522         * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
524 2004-08-17  Benjamin Kosnik  <bkoz@redhat.com>
526         * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
528 2004-08-16  Paolo Carlini  <pcarlini@suse.de>
530         * include/bits/indirect_array.h: Trivial formatting fixes.
531         * include/bits/valarray_after.h: Likewise.
532         * include/bits/valarray_array.h: Likewise.
533         * src/valarray-inst.cc: Likewise.
535 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
537         * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
538         * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
539         * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
541         * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
542         * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
543         * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
544         * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
545         * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
547 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
549         * include/bits/deque.tcc: Trivial formatting fixes.
551 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
553         * include/bits/deque.tcc: Trivial formatting fixes.
555         * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
556         Remove unneded typedef.
558         * include/bits/locale_facets.tcc: Very minor tweaks.
560         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
561         type for the fill argument.
562         * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
563         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
564         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
565         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
566         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
567         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
568         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
569         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
571 2004-08-13  Paolo Carlini  <pcarlini@suse.de>
573         * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
574         memmove is not needed, memcpy suffices.
576 2004-08-13  Paolo Carlini  <pcarlini@suse.de>
578         * include/std/std_fstream.h (class basic_ifstream,
579         class basic_ofstream, class basic_fstream): Add const overloads
580         of is_open, as per DR 365 [WP].
581         * docs/html/ext/howto.html: Add an entry for DR 365.
583 2004-08-12  Paolo Carlini  <pcarlini@suse.de>
585         * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
587 2004-08-12  Paolo Carlini  <pcarlini@suse.de>
589         PR libstdc++/16956
590         * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
591         to the returned value, reorganize a bit.
592         * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
593         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
595         * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
596         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
597         * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
598         * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
600 2004-08-12  Paul Brook  <paul@codesourcery.com>
602         * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
603         _GLIBCXX_CXA_VEC_CTOR_RETURN.
604         * config/cpu/generic/cxxabi_tweaks.h: Ditto.
605         * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
606         __cxa_vec_ctor_return.
607         * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
608         Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
610 2004-08-12  Kelley Cook  <kcook@gcc.gnu.org>
612         * Makefile.in, aclocal.m4, configure, include/Makefile.in,
613         libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
614         src/Makefile.in, testsuite/Makefile.in: Regenerate
616 2004-08-12  Jan Beulich  <jbeulich@novell.com>
618         * config/locale/generic/ctype_members.cc
619         (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
620         initializer for return value, as that is invalid for enumerated types.
621         * config/locale/gnu/ctype_members.cc
622         (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
624 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
626         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
628 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
630         * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
631         variable.
632         * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
633         * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
634         * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
635         * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
636         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
637         * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
638         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
639         * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
640         * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
641         * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
642         * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
643         * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
644         * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
645         * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
646         * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
647         * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
648         * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
649         * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
650         * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
651         * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
652         * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
654 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
655             Petur Runolfsson  <peturr02@ru.is>
657         PR libstdc++/16959
658         * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
659         standard streams are constructed.
660         * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
662 2004-08-09  Paolo Carlini  <pcarlini@suse.de>
664         * include/bits/stl_bvector.h: Trivial formatting fixes.
666 2004-08-09  Paolo Carlini  <pcarlini@suse.de>
668         * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
670 2004-08-07  Jonathan Wakely  <redi@gcc.gnu.org>
671             Paolo Carlini  <pcarlini@suse.de>
673         * src/debug.cc (_Error_formatter::_M_print_string): In order
674         to print individual words from __string, _M_format_word can't
675         be called since may be just sprintf, thus ignoring completely
676         __n: instead, use memmove and append '\0' by hand.
678 2004-08-07  Paolo Carlini  <pcarlini@suse.de>
680         * config/locale/generic/c_locale.h (__convert_from_v): Don't
681         use a default for __prec, assume __prec >= 0 and simplify.
682         * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
683         * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
684         Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
686 2004-08-04  Phil Edwards  <phil@codesourcery.com>
688         * docs/html/configopts.html:  Emphasize that options change.
689         * docs/html/17_intro/configury.html:  Update links.
691 2004-08-03  Paolo Carlini  <pcarlini@suse.de>
693         * include/bits/list.tcc: Trivial formatting fixes.
695 2004-08-03  Mark Mitchell  <mark@codesourcery.com>
697         * libsupc++/new_op.cc: Update comments.
698         * libsupc++/del_op.cc: Likewise.
700 2004-08-02  Mark Mitchell  <mark@codesourcery.com>
702         * libsupc++/cxxabi.h: Make all declarations have default
703         visibility.
704         * libsupc++/exception: Likewise.
705         * libsupc++/new: Likewise.
706         * libsupc++/typeinfo: Likewise.
707         * libsupc++/unwind-cxx.h: Likewise.
708         * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
709         the __cxxabiv1 namespace.
710         (__cxa_free_exception): Likewise.
711         * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
712         (__cxa_bad_typeid): Likewise.
713         * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
714         (__cxa_end_catch): Likewise.
715         * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
716         (__cxa_get_globals): Likewise.
717         * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
718         (__cxa_rethrow): Likewise.
719         * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
720         * libsupc++/eh_type.cc: Include <cxxabi.h>.
722         * Makefile.am (hosted_source): Add libmath and testsuite.
723         (SUBDIRS): Remove them.
724         * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
725         on arm*-*-symbianelf*.
726         * crossconfig.m4: Add arm*-*-symbianelf* support.
727         * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
728         when freestanding.  Do not bring names into std:: namespace with
729         "using" when freestanding.  Declare required functions and macros
730         when freestanding.
731         * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
732         when freestanding.
733         * libsupc++/del_op.cc: Declare "free" only when freestanding.
734         * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
735         (malloc): Declare when freestanding.
736         (free): Likewise.
737         (memset): Likewise.
738         (__cxa_allocate_exception): Call malloc, not std::malloc.  Likewise
739         for memset.
740         (__cxa_free_exception): Likewise for free.
741         * libsupc++/new_op.cc: Declare "malloc" when freestanding.
742         * libsupc++/pure.cc (writestr): Define to nothing when
743         freestanding.
744         * libsupc++/vterminate.cc: Do not define anything when
745         freestanding.
746         * Makefile.in: Regenerated.
747         * aclocal.m4: Likewise.
748         * configure: Likewise.
749         * include/Makefile.in: Likewise.
750         * libmath/Makefile.in: Likewise.
751         * libsupc++/Makefile.in: Likewise.
752         * po/Makefile.in: Likewise.
753         * src/Makefile.in: Likewise.
754         * testsuite/Makefile.in: Likewise.
756 2004-08-01  Matt Austern  <austern@apple.com>
758         PR libstdc++/16844
759         * include/bits/stl_list.h (_M_create_node): Remove unused
760         zero-argument version.
761         * include/ext/slist (_M_create_node): Pass two arguments to
762         allocator's construct() member function.
763         * testsuite/23_containers/deque/explicit_instantiation.cc: New.
764         * testsuite/23_containers/list/explicit_instantiation.cc: New.
765         * testsuite/23_containers/vector/explicit_instantiation.cc: New.
766         * testsuite/23_containers/map/explicit_instantiation.cc: New.
767         * testsuite/23_containers/set/explicit_instantiation.cc: New.
768         * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
769         * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
770         * testsuite/ext/hash_set_explicit_instantiation.cc: New.
771         * testsuite/ext/slist_explicit_instantiation.cc: New.
773 2004-07-30  Paolo Carlini  <pcarlini@suse.de>
775         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
776         num_get<>::_M_extract_int): In the main parsing loop delay the
777         life of __q to the actual use point.
779 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
781         PR libstdc++/14220
782         * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
783         Don't clip the precision passed down to __convert_from_v:
784         22.2.2.2.2 nowhere says so.
785         * testsuite/22_locale/num_put/put/char/14220.cc: New.
786         * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
788 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
790         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
792 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
793             Petur Runolfsson  <peturr02@ru.is>
795         PR libstdc++/12658 (continued)
796         * src/locale_init.cc (locale::locale, locale::global): Use
797         a single locale_mutex instead of two separate mutexes.
799 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
801         PR libstdc++/16813
802         * include/debug/map.h (insert(_InputIterator, _InputIterator)):
803         Fix typo.
804         * testsuite/23_containers/map/insert/16813.cc: New.
806 2004-07-29  Phil Edwards  <phil@codesourcery.com>
808         * docs/html/faq/index.html:  Update version references.  Make
809         clear that code from SGI has diverged greatly.  Remove references
810         to library snapshots and what's-new sections.
811         * docs/html/faq/index.txt:  Regenerate.
813 2004-07-28  Matt Austern  <austern@apple.com>
815         * include/bits/stl_construct.h (_Destroy): New three-argument
816         overload that takes an allocator argument.  Another inline
817         three-argument overload that takes std::allocator and dispatches
818         to the two-argument version.
819         * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
820         Change return type to void to match uninitialized_fill_n.
821         (__uninitialized_copy_a_): New function.  Like uninitialized_copy
822         except that it takes an allocator and uses it for construct and
823         destroy.  If the allocator is std::allocator, dispatches to
824         uninitialized_copy.
825         (__uninitialized_fill_a): Likewise.
826         (__uninitialized_fill_n_a): Likewise.
827         (__uninitialized_copy_copy): Give it an allocator argument.
828         (__uninitialized_fill_copy): Likewise.
829         (__uninitialized_copy_fill): Likewise.
830         * include/bits/deque.tcc: Use new forms defined in stl_construct.h
831         and stl_uninitialized.h.  Replace use of single-argument _Construct
832         and _Destroy with use of allocator's construct and destroy methods.
833         * include/bits/list.tcc: Likewise.
834         * include/bits/stl_deque.h: Likewise.
835         * include/bits/stl_list.h: Likewise.
836         * include/bits/stl_tree.h: Likewise.
837         * include/bits/stl_vector.h: Likewise.
838         * include/bits/vector.tcc: Likewise.
839         * include/ext/hashtable.h: Use rebind so that allocator_type
840         has correct type for a container's allocator.  Replace use of
841         single-argument _Construct and _Destroy with use of allocator's
842         construct and destroy methods.
843         * include/ext/memory (__uninitialized_copy_n_a): New function.
844         Like uninitialized_copy_n except that it takes an extra parameter,
845         an allocator, and uses it for construct and destroy operations.
846         * include/ext/rope: Use new forms defined in stl_construct.h,
847         stl_uninitialized.h, and ext/memory.  Replace use of single-argument
848         _Construct and _Destroy with allocator construct and destroy methods.
849         * include/ext/ropeimpl.h: Likewise.
850         * include/ext/slist.h: Likewise.
851         * testsuite/testsuite_allocator.h (check_construct_destroy): New.
852         * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
853         * testsuite/23_containers/deque/check_construct_destroy.cc: New.
854         * testsuite/23_containers/list/check_construct_destroy.cc: New.
855         * testsuite/23_containers/set/check_construct_destroy.cc: New.
856         * testsuite/23_containers/vector/check_construct_destroy.cc: New.
857         * testsuite/ext/hash_check_construct_destroy.cc: New.
858         * testsuite/ext/slist_check_construct_destroy.cc: New.
860 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
862         2003-10-01  Eric Christopher  <echristo@redhat.com>
863         * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
864         constraint.
865         2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
866         * config/cpu/sh/atomicity.h: New.  Use movli and movco on SH4a.
868 2004-07-23  Benjamin Kosnik  <bkoz@redhat.com>
870         PR libstdc++/16678
871         * include/bits/locale_facets.tcc: Fix for -Werror.
873 2004-07-23  Jonathan Wakely  <redi@gcc.gnu.org>
875         * docs/html/debug.html: Say debug mode only available since 3.4.0.
877 2004-07-21  Benjamin Kosnik  <bkoz@redhat.com>
879         * docs/doxygen/mainpage.html: Clarify links.
880         * docs/doxygen/stdheader.cc: Add files.
881         * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
882         * docs/doxygen/user.cfg.in: New options, wrap.
884 2004-07-20  Danny Smith  <dannysmith@users.sourceforge.net>
886         * include/c_std/std_cwchar.h (wcsstr): Correct signature.
888 2004-07-19  Benjamin Kosnik  <bkoz@redhat.com>
890         PR libstdc++/15488
891         * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
893 2004-07-17  Richard Sandiford  <rsandifo@redhat.com>
895         PR bootstrap/16469
896         * scripts/create_testsuite_files: Pass -print to find.
898 2004-07-15  Paolo Carlini  <pcarlini@suse.de>
900         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
901         * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
903 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
905         PR libstdc++/14697
906         * acinclude.m4 (glibcxx_shared_libgcc): Correct
907         glibcxx_shared_libgcc test for multilibs.
908         * configure: Rebuilt.
910 2004-07-14  Paolo Carlini  <pcarlini@suse.de>
912         PR libstdc++/16505
913         * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
914         the signature to return void, as per 20.4.4.3.
915         * include/bits/stl_vector.h (vector::vector(size_type,
916         const value_type&, const allocator_type&), vector::vector(size_type),
917         vector::_M_initialize_dispatch): Adjust callers.
918         * include/bits/vector.tcc (vector<>::_M_fill_assign,
919         vector<>::_M_fill_insert): Likewise.
920         * testsuite/20_util/memory/16505.cc: New.
922 2004-07-14  Paolo Carlini  <pcarlini@suse.de>
924         * testsuite/22_locale/locale/cons/12658_thread-1.cc,
925         12658_thread-2.cc: Use __gnu_test::try_named_locale.
927 2004-07-13  Benjamin Kosnik  <bkoz@redhat.com>
929         * docs/html/ext/mt_allocator.html: Add docs for _Tune.
930         * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
931         (__mt_alloc::_S_set_options): Same.
932         Add to comments.
934 2004-07-13  Benjamin Kosnik  <bkoz@redhat.com>
936         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
937         for linux.
938         * configure: Regenerated.
940 2004-07-13  Paolo Carlini  <pcarlini@suse.de>
942         * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
943         to 12658_thread-1.cc and xfail.
944         * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
945         simpler version of 12658_thread-1.cc, still failing on 3_3 and
946         not failing on 3_4/mainline - both on single processor and
947         multiprocessor machines.
949 2004-07-12  Benjamin Kosnik  <bkoz@redhat.com>
951         * docs/html/abi.html: Remove non-public qualification.
953         * include/bits/concurrence.h: Tweak comments.
955 2004-07-11  Paolo Carlini  <pcarlini@suse.de>
957         Add wchar_t counterparts of the basic_streambbuf<char> tests.
958         * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
959         * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
960         Likewise.
961         * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
962         * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
963         3599.cc: Likewise.
964         * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
965         * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
966         * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
967         * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
968         * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
969         Likewise.
970         * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
972         * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
973         tweaks.
974         * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
975         Likewise.
976         * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
977         * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
979 2004-07-11  Phil Edwards  <phil@codesourcery.com>
981         * acinclude.m4:  Cosmetic shell syntax fixes.
982         * configure.ac:  Bring comment inline with reality.
983         * configure.host:  Both of the above.  Move 'arm' case to right
984         place in host_cpu switch.
985         * aclocal.m4, configure:  Regenerate.
987 2004-07-09  Paolo Carlini  <pcarlini@suse.de>
989         Add wchar_t counterparts of the basic_stringbuf<char> tests.
990         * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
991         * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
992         * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
993         3599.cc, 9988.cc: Likewise.
994         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
995         Likewise.
996         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
997         Likewise.
998         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
999         Likewise.
1000         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
1001         Likewise.
1002         * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
1003         * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
1004         * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
1005         * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
1006         Likewise.
1007         * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
1008         9404-1.cc: Likewise.
1009         * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
1010         9404-2.cc: Likewise.
1011         * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
1012         3955.cc: Likewise.
1013         * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
1014         * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
1016 2004-07-08  Paolo Carlini  <pcarlini@suse.de>
1018         * include/bits/gslice.h: Trivial formatting fixes.
1019         * include/bits/gslice_array.h: Likewise.
1020         * include/bits/indirect_array.h: Likewise.
1021         * include/bits/mask_array.h: Likewise.
1022         * include/bits/slice_array.h: Likewise.
1023         * include/bits/valarray_after.h: Likewise.
1024         * include/bits/valarray_array.h: Likewise.
1025         * include/bits/valarray_before.h: Likewise.
1026         * include/std/std_valarray.h: Likewise.
1028 2004-07-08  Benjamin Kosnik  <bkoz@redhat.com>
1030         PR c++/16169
1031         * include/bits/basic_string.h (basic_string::operator=): Revert.
1033 2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>
1035         * configure.ac (libtool_VERSION): To 6:2:0.
1036         * configure: Regenerated.
1038         * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
1040 2004-07-07  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
1042         PR libstdc++/16411
1043         * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
1045 2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>
1047         * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
1048         -Weffc++ issues.
1050 2004-07-07  Paolo Carlini  <pcarlini@suse.de>
1052         PR libstdc++/16401
1053         * include/bits/sstream.tcc (overflow): When reallocating _M_string
1054         use an exponential grow policy.
1055         * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
1056         * testsuite/performance/27_io/stringbuf_overflow.cc: New.
1058 2004-07-06  Anssi Hannula  <anssi.hannula@mbnet.fi>
1060         PR libstdc++/15928
1061         * crossconfig.m4: Add in bits for djgpp.
1062         * configure: Regenerate.
1064 2004-07-05  Jonathan Wakely  <redi@gcc.gnu.org>
1066         * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
1067         instantiation of set and multiset (functor param given as int).
1069 2004-07-04  Paolo Carlini  <pcarlini@suse.de>
1071         * include/bits/basic_string.h: Trivial formatting fixes and/or
1072         const-ification of some variables.
1073         * include/bits/deque.tcc: Likewise.
1074         * include/bits/stl_algobase.h: Likewise.
1075         * include/bits/stl_bvector.h: Likewise.
1076         * include/bits/stl_construct.h: Likewise.
1077         * include/bits/stl_deque.h: Likewise.
1078         * include/bits/stl_pair.h: Likewise.
1079         * include/bits/stl_vector.h: Likewise.
1080         * include/bits/vector.tcc: Likewise.
1082 2004-07-04  Paolo Carlini  <pcarlini@suse.de>
1084         * testsuite/25_algorithms/copy/1.cc: Add instantiations for
1085         systems with no COMDAT or weak support.
1086         * testsuite/25_algorithms/copy/2.cc: Likewise.
1087         * testsuite/25_algorithms/copy/3.cc: Likewise.
1088         * testsuite/25_algorithms/copy/4.cc: Likewise.
1090 2004-07-03  Paul Brook  <paul@codesourcery.com>
1092         * configure.ac: Set ABI_TWEAKS_SRCDIR.
1093         * configure.host: Set abi_tweaks_dir.  Check for atomicity.h when
1094         setting atomicity_dir.  Override type_cpu for arm based targets.
1095         * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
1096         * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
1097         * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
1098         * libsupc++/vec.cc: Ditto.
1099         * config/cpu/arm/cxxabi_tweaks.h: New file.
1100         * config/cpu/generic/cxxabi_tweaks.h: New file.
1101         * */Makefile.in: Regenerate.
1102         * configure: Regenerate.
1104 2004-07-02  Paolo Carlini  <pcarlini@suse.de>
1106         * include/bits/type_traits.h (_Is_normal_iterator): Move...
1107         * include/bits/cpp_type_traits.h: ... here, renamed to
1108         __is_normal_iterator and consistent with the other traits.
1109         * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
1110         to the struct __copy_normal and three specializations.
1111         (__copy_backward_output_normal_iterator,
1112         __copy_backward_input_normal_iterator): Likewise, convert to
1113         the struct __copy_backward_normal and three specializations.
1114         (copy, copy_backward): Use the latter.
1115         (__copy_aux, __copy_backward_aux): Very minor tweaks.
1117 2004-07-01  Paolo Carlini  <pcarlini@suse.de>
1119         * include/bits/stl_algobase.h (__copy_trivial): Remove.
1120         (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
1121         __is_trivially_copyable, __are_same and __copy::copy.
1122         (__copy): Rewrite as a class template and two specializations.
1123         (__copy_ni2): Simplify, just call __copy_aux.
1125         * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
1126         check.
1127         * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
1128         for destination value type != source value type.
1130 2004-07-01  Benjamin Kosnik  <bkoz@redhat.com>
1131             Per Bothner  <per@bothner.com>
1132             Mohan Embar  <gnustuff@thisiscool.com>
1134         PR libstdc++/16248
1135         * include/bits/concurrence.h (__glibcxx_mutex_type): New.
1136         (__glibcxx_mutex): Encapsulate mutex init function into type for
1137         threaded configurations without __GTHREAD_MUTEX_INIT.
1138         (lock::lock): Make device member a reference.
1139         (lock::~lock): Same.
1140         * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
1141         to mutex_type.
1142         * src/allocator.cc: Same.
1144 2004-06-30  Brad Spencer  <spencer@infointeractive.com>
1146         * include/ext/mt_allocator.h: Handle allocations at static
1147         initialization that happen before _S_options is (automatically)
1148         constructed; set _S_init even if _M_force_new is true.
1150 2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
1152         * config/linker-map.gnu: Revert new exports.
1154 2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
1155             Stuart Anderson  <anderson@netsweng.com>
1157         * config/linker-map.gnu: Add destructor exports for abstract base
1158         classes to conform to LSB.
1160 2004-06-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1161             Paolo Carlini  <pcarlini@suse.de>
1163         * include/bits/cpp_type_traits.h: Add __is_pointer and
1164         __is_trivially_copyable.
1165         * include/bits/stl_algobase.h (fill, fill_n): Slightly
1166         tweak to use the latter.
1167         (__copy_backward_dispatch): Remove.
1168         (__copy_backward_aux): Rewrite to use __is_pointer and
1169         __is_trivially_copyable and __copy_backward::copy_b.
1170         (__copy_backward): Rewrite as a class template and two
1171         specializations.
1173 2004-06-30  Paolo Carlini  <pcarlini@suse.de>
1175         * testsuite/25_algorithms/copy.cc: Move to...
1176         * testsuite/25_algorithms/copy/1.cc: ... here, extend.
1177         * testsuite/25_algorithms/copy/2.cc: New.
1178         * testsuite/25_algorithms/copy/3.cc: New.
1179         * testsuite/25_algorithms/copy/4.cc: New.
1181 2004-06-29  Paul Brook  <paul@codesourcery.com>
1183         * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
1184         element size in the cookie.
1186 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
1188         * include/bits/cpp_type_traits.h: Move the additions to
1189         namespace __gnu_internal outside of namespace std; trivial
1190         formatting fixes.
1192 2004-06-28  Benjamin Kosnik  <bkoz@redhat.com>
1194         * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
1195         Revert -Weffc++ changes that defined copy ctory and or assignment
1196         operator.
1197         * libsupc++/tinfo.cc (__upcast_result): Same.
1199 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
1201         * src/localename.cc (locale::_Impl::_Impl): Slightly improve
1202         the algorithm used to name the categories.
1204 2004-06-28  Paolo Bonzini  <bonzini@gnu.org>
1206         * include/Makefile.am: Give a .gch extension to
1207         the PCH files, not only to the directory.
1208         * include/Makefile.in: Regenerate.
1210 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
1212         * config/locale/gnu/monetary_members.cc
1213         (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
1214         assignments of _M_decimal_point and _M_thousands_sep.
1216 2004-06-27  Paolo Carlini  <pcarlini@suse.de>
1218         * docs/html/17_intro/contribute.html: Update some links.
1219         * docs/html/17_intro/porting-howto.html: Likewise.
1220         * docs/html/17_intro/porting-howto.xml: Likewise.
1221         * docs/html/18_support/howto.html: Likewise.
1222         * docs/html/21_strings/howto.html: Likewise.
1223         * docs/html/27_io/howto.html: Likewise.
1224         * docs/html/configopts.html: Likewise.
1225         * docs/html/ext/howto.html: Likewise.
1226         * docs/html/faq/index.html: Likewise.
1227         * docs/html/install.html: Don't mention 2.x compilers.
1229 2004-06-27  Paolo Carlini  <pcarlini@suse.de>
1231         * include/ext/rope: Trivial formatting fixes.
1232         * include/ext/ropeimpl.h: Likewise.
1234 2004-06-26  Paolo Carlini  <pcarlini@suse.de>
1236         PR libstdc++/16210
1237         * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
1238         availability of strto(u)ll, not used anymore in the iostreams.
1239         * configure: Regenerate.
1241 2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>
1243         PR libstdc++/16182
1244         * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
1245         AC_DEFINE_UNQUOTED.
1246         * configure: Regenerate.
1248 2004-06-25  Paul Brook  <paul@codesourcery.com>
1250         * libsupc++/cxxabi.h: Define __ARM_EABI__
1251         (__guard): Use it.
1252         * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
1254 2004-06-25  Paul Brook  <paul@codesourcery.com>
1256         * include/bits/concurrence.h: Still create mutex object when
1257         single-threaded.
1259 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
1261         * include/bits/stl_algobase.h (fill, fill_n): Revert last
1262         change: actually we need to copy construct an object of type
1263         _Tp, not of type iterator_traits<>::value_type, therefore the
1264         code is ok.
1266 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
1268         * include/bits/stl_algobase.h (fill, fill_n): Tighten the
1269         dispatch: use iterator_traits<>::value_type, not _Tp.
1271 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
1273         * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
1274         * testsuite/25_algorithms/fill/2.cc: Likewise.
1276 2004-06-25  Dan Nicolaescu  <dann@ics.uci.edu>
1277             Paolo Carlini  <pcarlini@suse.de>
1279         * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
1280         for fill and fill_n, respectively: when copying is cheap, use a
1281         temporary to avoid a memory read in each iteration.
1283 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
1285         * testsuite/25_algorithms/fill/1.cc: New.
1286         * testsuite/25_algorithms/fill/2.cc: Likewise.
1288 2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>
1290         * include/debug/formatter.h (__gnu_debug::_Error_formatter):
1291         Remove copy constructor and assignment operator.
1293 2004-06-24  Benjamin Kosnik  <bkoz@redhat.com>
1295         * include/bits/concurrence.h (__gnu_cxx::lock): New.
1296         * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
1297         (__pool_base::_M_get_mutex): New.
1298         * include/bits/allocator.h: Tweak.
1299         * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
1300         * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
1301         * include/bits/stl_threads.h: Remove.
1302         * include/Makefile.am: Also here.
1303         * include/Makefile.in: Regenerate.
1305         * src/locale_init.cc: Use __gnu_cxx::lock.
1307         * src/allocator.cc: Move all instantiations...
1308         * src/allocator-inst.cc: ...here.
1310 2004-06-23  Andrew Pinski  <apinski@apple.com>
1312         * linkage.m4: Remove check for libmx.
1313         * configure: Regenerate.
1315 2004-06-23  Paolo Carlini  <pcarlini@suse.de>
1317         PR libstdc++/16154
1318         * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
1319         Don't require the _DefaultConstructibleConcept.
1320         (struct _ForwardIteratorConcept): Require it here.
1322 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
1324         * include/bits/istream.tcc (getline): Make sure arguments passed
1325         to min/max have the same type.
1326         * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
1327         * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
1329 2004-06-22  Benjamin Kosnik  <bkoz@redhat.com>
1331         * docs/html/abi.html: Update links.
1333 2004-06-22  Paolo Carlini  <pcarlini@suse.de>
1335         * testsuite/26_numerics/complex_inserters_extractors.cc,
1336         complex_value.cc, buggy_complex.cc: Move to...
1337         * testsuite/26_numerics/complex/: ... here.
1338         * testsuite/26_numerics/c99_classification_macros_c++.cc,
1339         c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
1340         fabs_inline.cc: Move to...
1341         * testsuite/26_numerics/cmath/: ... here.
1342         * testsuite/26_numerics/binary_closure.cc, slice.cc,
1343         slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
1344         valarray_name_lookup.cc, valarray_operators.cc,
1345         valarray_subset_assignment.cc: Move to...
1346         * testsuite/26_numerics/valarray/: ... here (new dir).
1347         * testsuite/26_numerics/sum_diff.cc: Move to...
1348         * testsuite/26_numerics/numeric/: ... here (new dir).
1350 2004-06-22  Paolo Carlini  <pcarlini@suse.de>
1352         * include/std/std_istream.h (ignore(streamsize __n = 1,
1353         int_type __delim = traits_type::eof())): Split into...
1354         (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1355         int_type __delim)): The first two can be much more simpler
1356         and efficient than the fully general case; also, the last
1357         two can take advantage of the same mechanism already used
1358         for getline.
1359         * include/bits/istream.tcc (ignore(streamsize __n = 1,
1360         int_type __delim = traits_type::eof()): Remove.
1361         (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1362         int_type __delim)): New.
1364 2004-06-21  Loren J. Rittle  <ljrittle@acm.org>
1366         * config/linker-map.gnu: Use wildcards for
1367         __basic_file::sys_open(FILE*, _Ios_Openmode).
1369 2004-06-20  Paolo Carlini  <pcarlini@suse.de>
1371         * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
1373 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
1375         * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
1376         the alignment requested.
1377         (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
1378         (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
1379         (__mt_alloc<>::deallocate): Likewise.
1381 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
1383         PR libstdc++/16020
1384         * include/debug/safe_base.h
1385         (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
1386         _Safe_sequence_base::operator=): Provide definitions.
1387         * testsuite/23_containers/bitset/cons/16020.cc: New.
1389 2004-06-18  Benjamin Kosnik  <bkoz@redhat.com>
1391         * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
1392         (__pool_base): Remove unused template parameter.  Add
1393         protected. Move lock data into __pool_base::_Lock. Remove static
1394         on member functions.
1395         (__pool_base::_M_get_free_list): New.
1396         (__pool_alloc): Move _S_force new here.
1397         * src/allocator.cc: Move out of line __pool_base definitions here.
1398         * config/linker-map.gnu: Export bits from __pool_base.
1400 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
1402         * config/locale/gnu/numeric_members.cc
1403         (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
1404         assignments of _M_decimal_point and _M_thousands_sep.
1405         * config/locale/gnu/time_members.cc
1406         (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
1407         and reformat assignments of date and time fields.
1409 2004-06-16  Paolo Carlini  <pcarlini@suse.de>
1411         * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
1412         to use _Data_allocate.
1413         * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
1414         (rope<>::_S_substring): Likewise.
1415         (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
1416         (rope<>::c_str()): Likewise.
1417         (rope<>::replace_with_c_str()): Likewise.
1419         * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
1420         Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
1421         not _RopeRep.
1422         (_Rope_iterator_base<>::_S_setcache): Likewise.
1423         (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
1424         (rope<>::_S_substring): Likewise.
1425         (rope<>::_S_dump): Likewise.
1426         (rope<>::_S_fetch_ptr): Likewise.
1427         (rope<>::_S_compare): Likewise.
1428         (rope<>::replace_with_c_str()): Likewise.
1430         * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
1431         * testsuite/ext/rope/2.cc: New.
1433 2004-06-16  Paolo Carlini  <pcarlini@suse.de>
1434             Matt Austern  <austern@apple.com>
1436         * testsuite/ext/rope/3.cc: New.
1438 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
1440         * acinclude.m4: Remove useless multilib configury.
1441         * Makefile.am: Remove useless multilib rules.
1442         * aclocal.m4: Regenerate.
1443         * Makefile.in: Regenerate.
1444         * configure: Regenerate.
1446 2004-06-15  Paolo Carlini  <pcarlini@suse.de>
1448         * include/ext/hashtable.h: Trivial formatting fixes.
1449         * include/ext/rb_tree: Likewise.
1451 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
1453         * include/ext/hash_map: Trivial formatting fixes.
1454         * include/ext/hash_set: Likewise.
1455         * include/ext/memory: Likewise.
1456         * include/ext/numeric: Likewise.
1458 2004-06-14  Benjamin Kosnik  <bkoz@redhat.com>
1460         * Makefile.in: Regenerate with automake 1.8.5.
1461         * aclocal.m4: Same.
1462         * include/Makefile.in: Same.
1463         * libmath/Makefile.in: Same.
1464         * libsupc++/Makefile.in: Same.
1465         * po/Makefile.in: Same.
1466         * src/Makefile.in: Same.
1467         * testsuite/Makefile.in: Same.
1469 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
1471         * include/ext/slist: Trivial formatting fixes.
1473 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
1475         * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
1476         Don't use the 'magic number' 10 in the computation of __minlen;
1477         never access __name past __minlen; in the loop over __i3, don't
1478         decrease __nmatches and increase __i3 at once, only either of
1479         the two; tidy.
1481 2004-06-13  Paolo Carlini  <pcarlini@suse.de>
1483         * include/bits/locale_facets.tcc (time_get<>::do_get_time,
1484         time_get<>::do_get_date): Use only once _M_extract_via_format,
1485         instead of going through "%X"/"%x" and calling it two times
1486         (+ using widen).
1488 2004-06-12  Paolo Carlini  <pcarlini@suse.de>
1490         * include/ext/algorithm: Trivial formatting fixes.
1491         * include/ext/functional: Likewise.
1492         * include/ext/hash_fun.h: Likewise.
1493         * include/ext/iterator: Likewise.
1495 2004-06-12  Paolo Carlini  <pcarlini@suse.de>
1497         * include/bits/basic_string.tcc (find(const _CharT*, size_type,
1498         size_type)): Reimplement using std::search.
1499         * src/string-inst.cc: Instantiate std::search for char/wchar_t.
1501 2004-06-12  Dhruv Matani  <dhruvbird@gmx.net>
1503         * testsuite/performance/21_strings/string_find.cc: New.
1505 2004-06-10  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
1507         * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
1509 2004-06-10  Jan van Dijk  <jan@etpmod.phys.tue.nl>
1511         * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
1512         this function return a value.
1514 2004-06-09  Paolo Carlini  <pcarlini@suse.de>
1516         PR libstdc++/15775
1517         * include/bits/stl_deque.h: Consistently with stl_set.h, define
1518         pointer as allocator's pointer, likewise for reference,
1519         const_pointer, and const_reference.
1520         * include/bits/stl_list.h: Likewise.
1521         * include/bits/stl_map.h: Likewise.
1522         * include/bits/stl_multimap.h: Likewise.
1523         * include/bits/stl_vector.h: Likewise.
1525 2004-06-09  Benjamin Kosnik  <bkoz@redhat.com>
1527         * crossconfig.m4: Remove signbit, signbitf, signbitl.
1528         * linkage.m4: Comment LIBMATHOBJS, tweak others.  AC_DEFINES for
1529         builtin math functions instead of AC_DEFINE_UNQUOTED.
1530         * configure: Regenerate.
1532 2004-06-08  Benjamin Kosnik  <bkoz@redhat.com>
1534         * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
1535         * docs/doxygen/mainpage.html: Remove links.
1537 2004-06-08  Jason Merrill  <jason@redhat.com>
1539         * config/linker-map.gnu: Use wildcards for
1540         __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
1542 2004-06-08  Paolo Carlini  <pcarlini@suse.de>
1544         * include/ext/pool_allocator.h: Convert to a global free-list,
1545         as per the original SGI/HP design: move the implementation
1546         details to struct __pool_base, from which __pool_alloc derives.
1547         * src/allocator.cc: Instantiate __pool_base.
1549 2004-06-07  Dhruv Matani  <dhruvbird@gmx.net>
1550             Paolo Carlini  <pcarlini@suse.de>
1552         * testsuite/testsuite_performance.h
1553         (resource_counter::allocated_memory): Make it return the right
1554         number of bytes requested by the allocators/application. This is
1555         the sbrk+mmaped memory.
1557 2004-06-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1559         * include/std/std_complex.h (log): Tidy.
1561 2004-05-31  Benjamin Kosnik  <bkoz@redhat.com>
1563         * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
1564         * testsuite/testsuite_abi.cc: Same.
1565         * configure.ac (libtool_VERSION): Bump to 6:1:0.
1566         * configure: Regenerate.
1567         * aclocal.m4: Regenerate.
1569 2004-05-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1571         * include/std/std_complex.h (complex<_Tp>): Properly indent
1572         to follow C++STYLE.
1573         (complex<>::__rep): New.
1574         (__complex_abs): New.  Dispatch to built-ins.
1575         (abs): Use them.
1576         (__complex_arg): New. Dispatch to built-ins.
1577         (arg): Use it.
1578         (__complex_cos): New. Dispatch to built-ins.
1579         (cos): Use it.
1580         (__complex_cosh): New. Dispatch to built-ins.
1581         (cosh): Use it.
1582         (__complex_exp): New. Dispatch to built-ins.
1583         (exp): Use it.
1584         (__complex_log): New. Dispatch to built-ins.
1585         (log): Use it.
1586         (__complex_sin): New. Dispatch to built-ins.
1587         (sin): Use it.
1588         (__complex_sinh): New. Dispatch to built-ins.
1589         (sinh): Use it.
1590         (__complex_sqrt): New. Dispatch to built-ins.
1591         (sqrt): Use it.
1592         (__complex_tan): New. Dispatch to built-ins.
1593         (tan): Use it.
1594         (__complex_tanh): New. Dispatch to built-ins.
1595         (tanh): Use it.
1596         (__complex_pow): New. Dispatch to built-ins.
1597         (pow): Use it.
1599 2004-05-29  Richard B. Kreckel  <Richard.Kreckel@Framatome-ANP.com>
1600             Benjamin Kosnik  <bkoz@redhat.com>
1602         PR libstdc++/14600
1603         * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
1604         * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
1605         * config/io/basic_file_stdio.cc (__basic_file::file): New.
1606         * config/io/basic_file_stdio.h: Define.
1608 2004-05-27  Benjamin Kosnik  <bkoz@redhat.com>
1610         PR libstdc++/15675
1611         * docs/html/documentation.html: Update doxygen links for 3.4.0.
1613 2004-05-27  Jan Beulich  <jbeulich@novell.com>
1615         * scripts/create_testsuite_files: Tweak.
1617 2004-05-25  Benjamin Kosnik  <bkoz@redhat.com>
1619         PR libstdc++/15489
1620         * scripts/create_testsuite_files: Revert xtype change, add non-GNU
1621         bits to do the same thing.
1623 2004-05-24  Paolo Carlini  <pcarlini@suse.de>
1625         * include/bits/istream.tcc (ignore): Correctly deal with
1626         n == numeric_limits<streamsize>::max().
1627         * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
1629         * include/bits/istream.tcc (basic_istream<>::getline): Prefer
1630         '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
1631         __n == numeric_limits<>::min().
1633         * include/bits/istream.tcc: Minor tweaks.
1635         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
1636         Tighten.
1637         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
1638         Likewise.
1639         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
1640         Likewise.
1641         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
1642         Likewise.
1643         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
1645 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
1647         PR libstdc++/12854
1648         Fixups for -Weffc++.
1649         * include/bits/basic_string.h (basic_string::operator=): Return
1650         pointer to this instead of result of assign. Although redundant,
1651         this doesn't impact resultant codegen.
1653         * include/bits/locale_facets.h (__numpunct_cache): Declare
1654         assignment opxserator and copy constructor private.
1655         (__timepunct_cache): Same.
1656         (__moneypunct_cache): Same.
1657         (collate): Use member initialization list for _M_c_locale_collate.
1658         * config/locale/gnu/messages_members.h: Same.
1659         * config/locale/gnu/time_members.h (__timepunct): Same.
1660         * src/codecvt.cc: Use member initialization list to initialize
1661         _M_c_locale_codecvt.
1662         * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
1663         * config/os/gnu-linux/ctype_noninline.h: Same.
1664         * src/locale.cc (_Impl): Same.
1665         * src/locale_init.cc: Same.
1666         * src/localename.cc: Same.
1668         * include/bits/basic_ios.h (basic_ios): Complete member
1669         initialization list.
1670         * include/bits/istream.tcc (basic_istream::sentry): Same.
1671         * include/bits/ostream.tcc (basic_ostream::sentry): Same.
1672         * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
1673         _M_pback to member initialization list.
1674         * include/std/std_streambuf.h: Same.
1675         * include/std/std_sstream.h: Same, for _M_mode.
1676         * src/ios.cc (ios_base): Same.
1678         * include/ext/rope: Make derived classes match exception
1680          specifications. Add copy constructors and assignment operators.
1682         * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
1683         constructor and assignment operator protected.
1684         (_Safe_iterator_base): Same.
1685         * include/debug/formatter.h (_Error_formatter): Define copy
1686         constructor and assignment operator.
1688         * include/backward/strstream: Declare assignment operator and copy
1689         constructor private.
1691 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
1693         * testsuite/testsuite_hooks.h (func_callback): Declare copy
1694         constructor and assignment operator private.
1695         * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
1696         exception specifications of base class.
1697         * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
1698         * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
1699         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
1701 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
1703         * libsupc++/cxxabi.h: Remove duplicated and useless public and
1704         private keywords in class declarations. Format. Use
1705         stddef.h. Expose declarations to "C" compilation.
1706         * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
1707         assignment operator.
1708         (__dyncast_result): Same.
1709         * libsupc++/vec.cc (uncatch_exception): Same, use member
1710         initialization list.
1712 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
1714         * testsuite/abi_check.cc: Add unistd.h.
1716 2004-05-22  Paolo Carlini  <pcarlini@suse.de>
1718         PR libstdc++/15565
1719         * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
1720         __int_to_char(unsigned long long)): Showpos is not relevant
1721         for unsigned types.
1722         * testsuite/22_locale/num_put/put/char/15565.cc: New.
1723         * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
1725         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
1726         char.
1727         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
1728         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
1729         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
1730         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
1731         * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
1732         * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
1734 2004-05-21  Matthias Klose  <doko@debian.org>
1736         * docs/doxygen/run_doxygen:  Bump required version.
1738 2004-05-21  Benjamin Kosnik  <bkoz@redhat.com>
1740         * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
1741         * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
1743 2004-05-21  Paolo Carlini  <pcarlini@suse.de>
1745         * include/bits/istream.tcc (ignore): Remove redundant line.
1746         (readsome): Tidy, closely following 27.6.1.3, p30.
1748 2004-05-20  Paolo Carlini  <pcarlini@suse.de>
1750         * include/bits/istream.tcc (operator>>(basic_istream<>&,
1751         basic_string<>&)): Use a temporary buffer, thus avoiding
1752         reallocation for common case.
1753         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
1754         New.
1755         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
1756         Likewise.
1758         * include/bits/istream.tcc: Const-ification of a few variables.
1760         * include/bits/ostream.tcc: Trivial formatting fixes and
1761         const-ification of some variables.
1763 2004-05-20  Benjamin Kosnik  <bkoz@redhat.com>
1765         PR libstdc++/15123
1766         PR libstdc++/13928
1767         * docs/doxygen/Intro.3: Remove Allocators.3.
1768         Add new extension headers, extension namespace list.
1769         * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
1770         Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
1771         __gnu_debug::. Remove __policy_ renames.
1772         * docs/doxygen/guide.html: Add dot note.
1773         * docs/doxygen/stdheader.cc: Edit, add files.
1774         * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
1776 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
1778         * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
1780 2004-05-18  Jan Beulich  <jbeulich@novell.com>
1782         PR libstdc++/15489
1783         * scripts/create_testsuite_files: Also find source files through
1784         symbolic links.
1786 2004-05-18  Jan Beulich  <jbeulich@novell.com>
1788         PR libstdc++/15488
1789         * testsuite/lib/libstdc++.exp: Make test files writable.
1791 2004-05-18  Paolo Carlini  <pcarlini@suse.de>
1793         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
1794         tweaks.
1796 2004-05-18  Dhruv Matani  <dhruvbird@gmx.net>
1798         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
1799         allocation loop which removes blocks from the global free list
1800         from O(N) to O(1) when the required blocks are <= the number
1801         available.
1803 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
1805         * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
1807 2004-05-17  Benjamin Kosnik  <bkoz@redhat.com>
1809         * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
1810         * testsuite/23_containers/deque/14340.cc: New.
1811         * testsuite/23_containers/list/14340.cc: New.
1812         * testsuite/23_containers/map/14340.cc: New.
1813         * testsuite/23_containers/multimap/14340.cc: New.
1814         * testsuite/23_containers/multiset/14340.cc: New.
1815         * testsuite/23_containers/set/14340.cc: New.
1816         * testsuite/23_containers/vector/14340.cc: New.
1818 2004-05-17  Douglas Gregor   <gregod@cs.rpi.edu>
1820         PR libstdc++/14340
1821         * include/debug/safe_iterator.h (_Safe_iterator converting
1822         constructor): Only allow declaration to instantiate when the
1823         incoming _Safe_iterator has exactly the right iterator type.
1825 2004-05-17  Jonathan Wakely  <redi@gcc.gnu.org>
1827         * include/bits/boost_concept_check.h: Fix old attribute syntax.
1828         * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
1829         to pass concept-checks.
1830         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1831         * testsuite/23_containers/set/modifiers/swap.cc: Same.
1832         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1834 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
1836         * include/std/std_bitset.h: Minor formatting fixes.
1838 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
1840         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1841         Consistently update __bin._M_free[0].
1842         (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
1843         __bin._M_free[0] to simplify the while loop (i.e., the number
1844         of iterations becomes known at the outset).
1846 2004-05-15  Paolo Carlini  <pcarlini@suse.de>
1848         * include/std/std_bitset.h: Trivial formatting fixes.
1850 2004-05-14  Paolo Carlini  <pcarlini@suse.de>
1851             Ivan Godard  <igodard@pacbell.net>
1853         PR libstdc++/15361
1854         * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
1855         * testsuite/23_containers/bitset/ext/15361.cc: New.
1857 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
1859         PR libstdc++/15046
1860         * crossconfig.m4: Add C99 math bits for linux crosses.
1861         * configure: Regenerate.
1863 2004-05-13  Simon Marshall <simon.marshall@misys.com>
1864             Benjamin Kosnik  <bkoz@redhat.com>
1866         PR libstdc++/15090
1867         * include/bits/locale_facets.h: Fix for -fno-for-scope.
1868         * include/debug/safe_sequence.h: Same.
1869         * include/debug/safe_iterator.tcc: Same.
1870         * src/debug.cc: Same.
1871         * src/locale.cc: Same.
1872         * src/locale_init.cc: Same.
1873         * src/localename.cc: Same.
1874         * config/locale/gnu/ctype_members.cc: Same.
1875         * config/locale/gnu/numeric_members.cc: Same.
1876         * testsuite/testsuite_abi.cc: Same.
1877         * testsuite/testsuite_hooks.cc: Same.
1879 2004-05-13  Jonathan Wakely  <redi@gcc.gnu.org>
1881         * docs/html/abi.html: Document effect of -fabi-version on value
1882         of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
1883         Fix markup.
1885 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
1887         PR libstdc++/15074
1888         * docs/html/faq/index.html: Update docs for libsupc++ usage.
1890 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
1892         PR libstdc++/15412
1893         * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
1894         __gnu_internal.
1895         (_GLIBCXX_mutex_address): Same.
1896         (_GLIBCXX_once): Same.
1897         (_GLIBCXX_mutex_init): Same.
1898         (_GLIBCXX_mutex_address_init): Same.
1900 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
1902         * docs/html/abi.html: New.
1903         * docs/html/abi.txt: Remove.
1904         * docs/html/documentation.html: Add link.
1905         * testsuite/Makefile.am: Add files.
1906         * testsuite/Makefile.in: Regenerated.
1907         * testsuite/abi_check.cc: Move and modify code into...
1908         * testsuite/testsuite_abi.cc: Add.
1909         * testsuite/testsuite_abi.h: Add.
1911         * docs/html/17_intro/TODO: Update.
1912         * include/bits/stl_pair.h: Format.
1914 2004-05-06  Matthias Klose  <doko@debian.org>
1916         * include/backward/iterator.h:  Add GPL copyright info,
1917         with exception clause.
1918         * include/bits/boost_concept_check.h: Likewise.
1919         * include
1920         * libsupc++/tinfo.h: Likewise.
1921         * po/string_literals.cc: Likewise.
1923 2004-05-03  Andreas Tobler  <a.tobler@schweiz.ch>
1925         * acinclude.m4: Replace -W with more speaking -Wextra.
1926         * configure: Rebuilt.
1928 2004-05-03  Paolo Carlini  <pcarlini@suse.de>
1930         Optimize locale::_M_impl->_M_names for the most common cases:
1931         !_M_names[0] means unnamed; !_M_names[1] means all the categories
1932         the same name (_M_names[0] && _M_names[1] means that the full set
1933         of _M_names must be processed, the general case).
1934         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
1935         Tweak, saving work when !_M_names[1].
1936         (locale::locale(const locale&, _Facet*): Simplify: now just setting
1937         _M_names[0] = 0 means unnamed.
1938         * src/locale.cc (locale::operator==): Deal first with the common,
1939         easy cases, otherwise fall back to locale::name().
1940         (locale::name()): Tweak, if !_M_names[0] just return "*".
1941         (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
1942         copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
1943         * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
1944         * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
1945         Simplify when !std::strchr, just updating _M_names[0]; clean up.
1946         (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
1947         for the general case (full set of names), then do the usual work;
1948         clean up.
1950         * src/locale.cc (locale::name()): Reserve space in __ret.
1951         * src/locale_init.cc (locale::global(const locale&)): Save
1952         the name in a temporary.
1953         * src/localename.cc (locale::locale(const char*)): Reserve space
1954         in __str.
1956 2004-04-29  Paolo Carlini  <pcarlini@suse.de>
1958         * src/locale.cc (locale::operator==): Always avoid constructing
1959         locale::name(), directly compare pairs of _M_names.
1961 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
1963         * include/bits/istream.tcc: Fix comment.
1965 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
1967         * include/bits/stl_vector.h: Trivial formatting fixes.
1968         * include/bits/vector.tcc: Likewise.
1970 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
1972         PR libstdc++/15002 (continued again)
1973         * include/bits/istream.tcc (getline(basic_istream<>&,
1974         basic_string<>&, _CharT)): Use a temporary buffer, thus
1975         avoiding reallocation for common case.
1977         * include/bits/basic_string.tcc (_S_construct(_InIterator,
1978         _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
1979         of temporary buffer to a power of two.
1981         * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
1983 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
1985         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
1986         New.
1987         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
1988         Likewise.
1989         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
1991 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
1992             Petur Runolfsson  <peturr02@ru.is>
1994         PR libstdc++/15002 (continued)
1995         * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
1996         streamsize, char_type)): Use traits::find/copy in a loop to speed
1997         up greatly the function in the common case (I/O buffer size >> 1).
1999 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
2001         * testsuite/27_io/basic_istream/getline/char/4.cc: New.
2003         * include/bits/istream.tcc (getline(basic_istream<>&,
2004         basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
2005         of sbumpc(), consistently with the other functions, thus also
2006         dealing correctly with the case of exceeded string::max_size().
2008 2004-04-24  Matthias Klose  <doko@debian.org>
2010         Jonathan Wakely  <cow@compsoc.man.ac.uk>
2011         * docs/html/configopts.html: Fix reference to allocator config option.
2013 2004-04-23  Andrew Pinski  <pinskia@physics.uc.edu>
2015         * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
2016         * configure: Regenerate.
2018 2004-04-23  Daniel Jacobowitz  <drow@mvista.com>
2020         PR libstdc++/15047, libstdc++/11610
2021         * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
2022         (libstdc++_init): Don't pass outdir to v3-copy-files.
2024 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
2026         * include/bits/deque.tcc: Trivial formatting fixes.
2027         * include/bits/stl_deque.h: Likewise.
2028         * include/bits/stl_list.h: Likewise.
2029         * include/bits/stl_tree.h: Likewise.
2031 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
2032             Andrew Pinski  <pinskia@physics.uc.edu>
2034         * include/bits/basic_string.tcc (_M_mutate): Don't compute
2035         __src unnecessarily.
2037 2004-04-19  Benjamin Kosnik  <bkoz@redhat.com>
2039         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
2040         Clarify assertion, set test variable to false before assert.
2041         * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
2042         * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
2043         * testsuite/27_io/ios_base/storage/2.cc: Same.
2045         * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
2046         function returns.
2047         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
2048         * testsuite/27_io/fpos/14320-3.cc: Same.
2050         * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
2051         * testsuite/27_io/fpos/1.cc: Same.
2052         * testsuite/27_io/basic_stringstream/2.cc: Same.
2053         * testsuite/27_io/basic_stringbuf/4.cc: Same.
2054         * testsuite/27_io/basic_stringbuf/1.cc: Same.
2055         * testsuite/27_io/basic_stringbuf/2.cc: Same.
2056         * testsuite/27_io/basic_streambuf/2.cc: Same.
2057         * testsuite/27_io/basic_ostringstream/2.cc: Same.
2058         * testsuite/27_io/basic_ostream/2.cc: Same.
2059         * testsuite/27_io/basic_ofstream/2.cc: Same.
2060         * testsuite/27_io/basic_istringstream/2.cc: Same.
2061         * testsuite/27_io/basic_istream/2.cc: Same.
2062         * testsuite/27_io/basic_iostream/2.cc: Same.
2063         * testsuite/27_io/basic_ios/2.cc: Same.
2064         * testsuite/27_io/basic_ifstream/2.cc: Same.
2065         * testsuite/27_io/basic_fstream/2.cc: Same.
2066         * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
2068         * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
2069         unsigned against zero.
2070         * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
2071         * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
2073         * testsuite/18_support/new_delete_placement.cc: Initialize
2074         variables before first use.
2075         * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
2076         * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
2077         * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
2078         * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
2079         Same.
2080         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
2081         * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
2082         Same.
2083         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
2084         * testsuite/27_io/types/2.cc: Same.
2086         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
2087         file name.
2088         * testsuite/27_io/fpos/14775.cc: Same.
2090 2004-04-19  Paolo Carlini  <pcarlini@suse.de>
2092         PR libstdc++/15002 (partial)
2093         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2094         Special case __n2 == 1, not calling traits_type::assign/copy.
2096 2004-04-17  Benjamin Kosnik  <bkoz@redhat.com>
2098         * include/bits/stl_bvector.h: Use _M_impl._M_start.
2100 2004-04-16  Benjamin Kosnik  <bkoz@redhat.com>
2102         * include/bits/c++config (_GLIBCXX_STD): New.
2103         * src/list.cc: Use it.
2104         * include/std/std_bitset.h: Same.
2105         * include/bits/vector.tcc: Same.
2106         * include/bits/stl_set.h: Same.
2107         * include/bits/stl_multiset.h: Same.
2108         * include/bits/stl_multimap.h: Same.
2109         * include/bits/stl_map.h: Same.
2110         * include/bits/stl_list.h: Same.
2111         * include/bits/stl_vector.h: Same.
2112         * include/bits/stl_bvector.h: Same.
2113         * include/bits/stl_deque.h: Same.
2114         * include/bits/deque.tcc: Same.
2115         * include/bits/list.tcc: Same.
2116         * include/debug/vector: Same.
2117         * include/debug/set.h: Same.
2118         * include/debug/multiset.h: Same.
2119         * include/debug/multimap.h: Same.
2120         * include/debug/map.h: Same.
2121         * include/debug/list: Same.
2122         * include/debug/deque: Same.
2123         * include/debug/bitset: Same.
2124         * include/debug/formatter.h (__gnu_debug): Remove using directive.
2125         Add using declaration for std::type_info.
2126         * include/debug/safe_iterator.h: Add using declaration for
2127         std::iterator_traits and std::pair.
2128         * src/debug_list.cc: New.
2129         * src/Makefile.am: Add debug_list.cc.
2130         * src/Makefile.in: Regenerate.
2131         * config/linker-map.gnu: Add _List_node_base exports for std and
2132         __gnu_norm.
2134         * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
2135         idiom that other containers use.
2136         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2138 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
2140         PR libstdc++/14975
2141         * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
2142         in case of error.
2143         * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
2144         * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
2146 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
2148         * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
2149         used anymore.
2150         * config.h.in: Regenerate.
2152 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
2154         * config/locale/generic/monetary_members.cc
2155         (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
2156         btowc unnecessarily, just cast to wchar_t (the concerned chars
2157         all belong to the basic character set).
2158         * config/locale/generic/numeric_members.cc
2159         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2160         * config/locale/gnu/monetary_members.cc
2161         (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
2162         * config/locale/gnu/numeric_members.cc
2163         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2165 2004-04-15  Paolo Carlini  <pcarlini@suse.de>
2167         * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
2168         avoid constructing unnecessarily this->name().
2170 2004-04-14  Zack Weinberg  <zack@codesourcery.com>
2172         * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
2173         Change definition of CXX to use $(shell) instead of backticks.
2174         * testsuite/Makefile.in: Regenerate.
2176 2004-04-12  Dhruv Matani  <dhruvbird@gmx.net>
2178         * testsuite/performance/20_util/allocator/list_sort_search.cc:
2179         Minor formatting fixes.
2180         * testsuite/performance/20_util/allocator/map_mt_find.cc:
2181         Likewise.
2183 2004-04-12  Paolo Carlini <pcarlini@suse.de>
2185         * config/locale/gnu/numeric_members.cc
2186         (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
2187         in __uselocale, since btowc is called for chars belonging to
2188         the basic character set.
2190 2004-04-09  Paolo Carlini  <pcarlini@suse.de>
2192         * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
2193         * testsuite/22_locale/messages/members/char/2.cc: Ditto.
2194         * testsuite/22_locale/messages/members/char/3.cc: Ditto.
2195         * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
2196         * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
2197         * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
2198         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
2199         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
2200         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
2201         * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
2202         * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
2203         * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
2204         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
2205         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
2206         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
2207         * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
2208         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
2210 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
2212         * config/locale/generic/time_members.cc
2213         (__timepunct<char>::_M_initialize_timepunct,
2214         __timepunct<wchar_t>::_M_initialize_timepunct): the correct
2215         _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
2216         * config/locale/gnu/time_members.cc
2217         (__timepunct<char>::_M_initialize_timepunct,
2218         __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
2219         * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
2220         * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
2222         * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
2223         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
2224         * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
2225         * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
2226         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
2227         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
2228         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
2229         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
2230         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
2231         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
2232         * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
2233         * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
2234         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
2235         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
2236         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
2237         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
2238         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
2239         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
2240         * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
2241         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
2242         * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
2243         * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
2244         * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
2245         * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
2246         * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
2247         * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
2248         * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
2249         * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
2250         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
2251         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
2252         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
2253         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
2254         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
2255         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
2256         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
2257         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
2259         * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
2261 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
2263         * config/locale/gnu/monetary_members.cc
2264         (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
2265         _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
2266         and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
2267         _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
2268         * config/locale/gnu/numeric_members.cc
2269         (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
2270         and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
2272 2004-04-06  Benjamin Kosnik  <bkoz@redhat.com>
2274         Fixups for EDG front end.
2275         * include/ext/rope: Instead of non-existent function
2276         _Data_allocate, use allocator's allocate. Use this.
2277         (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
2278         enumerations from _Rope_RopeRep here.
2279         * include/ext/ropeimpl.h: Same.
2280         * src/ext-inst.cc (_S_min_len): Fix up definition.
2282         * config/locale/gnu/ctype_members.cc: Qualify base class members
2283         with this.
2284         * config/locale/generic/ctype_members.cc: Same.
2285         * config/locale/gnu/messages_members.h: Same.
2286         * config/locale/generic/messages_members.h: Same.
2287         * src/ctype.cc: Same.
2288         * include/bits/codecvt.h: Same.
2290         * include/bits/boost_concept_check.h: Declare.
2291         (__error_type_must_be_an_unsigned_integer_type): Remove this.
2292         (__error_type_must_be_an_integer_type): Remove this.
2293         (__error_type_must_be_a_signed_integer_type): Remove this.
2295         * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
2297         * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
2298         specification to definition.
2299         (__cxa_allocate_exception): Same.
2300         * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
2301         * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
2302         (__cxa_get_globals): Same.
2304         * libsupc++/del_op.cc: Add comment about freestanding.
2306 2004-04-05  Paolo Carlini  <pcarlini@suse.de>
2308         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2309         The critical section is actually very small, only two assignments.
2311 2004-04-04  Paolo Carlini  <pcarlini@suse.de>
2312             Petur Runolfsson  <peturr02@ru.is>
2314         * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
2315         adapted from libstdc++/11378.
2317 2004-04-03  Paolo Carlini  <pcarlini@suse.de>
2319         * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
2320         some duplicated code.
2321         (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
2322         in the single threaded case.
2323         * testsuite/performance/20_util/allocator/list_sort_search.cc:
2324         Reorder and renumber the tests consistently with the other testfiles.
2325         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
2326         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
2327         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
2329 2004-04-02  Paolo Carlini  <pcarlini@suse.de>
2331         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2332         Rearrange arithmetic to avoid computing two divisions at
2333         each deallocation.
2335 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
2337         * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
2338         Streamline the second half, wrapping it in a single
2339         '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
2340         conditionals inside loops.
2342 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
2344         PR libstdc++/14775
2345         * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
2346         * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
2347         GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
2348         to _GLIBCXX_RES_LIMITS.
2349         (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
2350         HAVE_LIMIT_*.
2351         * testsuite/testsuite_hooks.h: Declare set_file_limit.
2352         * testsuite/testsuite_hooks.cc: Define it, using getrlimit
2353         and setrlimit(RLIMIT_FSIZE).
2354         * testsuite/27_io/fpos/14775.cc: New.
2355         * config.h.in: Regenerate.
2356         * configure: Likewise.
2358 2004-03-31  Paolo Carlini  <pcarlini@suse.de>
2360         * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
2361         In v3 uses of sscanf, the special floating-point numbers INF,
2362         INFINITY, etc., cannot occur in input, therefore, if the latter
2363         is too large, ERANGE is always stored in errno, no need of finitel.
2365 2004-03-30  Benjamin Kosnik  <bkoz@redhat.com>
2367         PR libstdc++/14783
2368         * include/bits/stl_tree.h: Adjust initialization list order.
2370 2004-03-29  Loren J. Rittle  <ljrittle@acm.org>
2372         * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
2374 2004-03-29  Paolo Carlini  <pcarlini@suse.de>
2376         * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
2377         on allocator behavior, the memory pointed by data2 may well be not
2378         trashed.
2380 2004-03-28  Chavdar Botev  <cbotev@yahoo.com>
2382         PR libstdc++/14245
2383         * include/bits/basic_string.tcc
2384         (basic_string::basic_string(const basic_string&)): Pass to
2385         _Rep::_M_grab the actual allocator of the string being constructed
2386         not the default constructed one.
2388 2004-03-27  Benjamin Kosnik  <bkoz@redhat.com>
2390         libstdc++ PR/13598
2391         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
2392         (__enc_traits::_M_destroy): New.
2393         (__enc_traits::~__enc_traits): Use it.
2394         (__enc_traits::operator=): Use _M_destroy, _M_init.
2395         (__enc_traits::__enc_traits): Same.
2397 2004-03-27  Petur Runolfsson  <peturr02@ru.is>
2399         * testsuite/ext/enc_filebuf/char/13598.cc: New.
2401 2004-03-27  Paolo Carlini  <pcarlini@suse.de>
2403         * include/ext/mt_allocator.h: Uglify consistently names of
2404         variables, members and classes; tidy.
2406 2004-03-27  Dhruv Matani  <dhruvbird@gmx.net>
2408         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2409         Deallocation loop rewrote.
2411 2004-03-26  Paolo Carlini  <pcarlini@suse.de>
2413         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
2414         __mt_alloc<>::deallocate): Protect two instances of
2415         block->thread_id with __GTHREADS.
2417 2004-03-25  Gawain Bolton  <gp.bolton@computer.org>
2419         * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
2420         default argument in constructors.
2421         (_Rb_tree::_M_empty_initialize): Remove.
2423 2004-03-25  Benjamin Kosnik  <bkoz@redhat.com>
2425         * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
2426         * testsuite/23_containers/set/operators/1_neg.cc: Same.
2428 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
2430         * include/bits/cpp_type_traits.h: Changed __is_pod
2431         completely. Now, it does not use any of the previous type_traits
2432         to detect the pod types, and it also detects function pointers as
2433         POD types.
2435         * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
2436         which encapsulates the internal implementation of an rb_tree. Made
2437         the allocator a base class of this class instead of the rb_tree,
2438         which was not conforming. This _Rb_tree_impl class is also
2439         specialized on whether the _Compare parameter is a POD type or
2440         not. If so, then it maintains the comparison function as a data
2441         member, otherwise it makes the _Compare parameter a base class of
2442         itself. Also, _M_key_compare is now a function instead of a data
2443         member, so that the above trick can work properly. Delegated the
2444         initialization of the other data members to this newly created
2445         class. Also, now other member functions of rb_tree must refer to
2446         _M_key_compare as _M_impl._M_key_compare(). The other data members
2447         (*) can be referenced to as _M_impl.(*), where
2448         (*) includes _M_header, and _M_node_count.
2450 2004-03-25  Paolo Carlini  <pcarlini@suse.de>
2452         * include/ext/mt_allocator.h (__mt_alloc<>::tune):
2453         Add _M_min_bin, the size in bytes of the smallest bin.
2454         (__mt_alloc<>::tune()): Tweak accordingly.
2455         (__mt_alloc<>::tune(size_t, ...)): Likewise.
2456         (__mt_alloc<>::block_record): Change to a union: members next
2457         and thread_id are never used at the same time.
2458         (__mt_alloc<>::allocate): Update consistently.
2459         (__mt_alloc<>::deallocate): Likewise.
2460         (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
2461         _S_bin_size for the configurable _M_min_size.
2463 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
2465         * include/bits/stl_list.h: Created a _List_impl class and made it
2466         derive from the allocator, instead of the list deriving from the
2467         allocator class, which was not conformant. Changed all references
2468         from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
2469         as above (changed all references to the concerned variables).
2471 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
2473         * include/bits/stl_deque.h: Created a _Deque_impl class and made
2474         it derive from the allocator, instead of the deque deriving from
2475         the allocator class, which was not conformant. Changed all
2476         references to the _M_start, _M_finish, _M_map, and _M_map_size to
2477         _M_impl.*.
2478         (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
2479         qualification in 2 places where it was missing.
2480         (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
2481         above.
2482         * include/bits/deque.tcc: Same as above (changed all references to
2483         the concerned variables).
2485 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
2487         * include/bits/stl_vector.h: Created a _Vector_impl class and made
2488         it derive from the allocator, instead of the _Vector_base class,
2489         deriving from the allocator which was not conformant. Changed all
2490         references to the _M_start, _M_finish, and _M_end_of_storage to
2491         _M_impl.*.
2492         * include/bits/vector.tcc: Same as above (changed all references
2493         to the concerned variables).
2495 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
2497         * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
2498         * testsuite/23_containers/list/cons/clear_allocator.cc: New.
2499         * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
2501 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
2503         * include/ext/malloc_allocator.h: Fixed the construct function to
2504         call global placement new instead of assignment. Added a check
2505         after the return from malloc to check whether returned pointer is
2506         NULL, and if so, throw std::bad_alloc().
2507         * include/ext/debug_allocator.h: Added a check in the deallocate
2508         function to check whether the user has passed a NULL pointer or
2509         not.
2511 2004-03-24  Benjamin Kosnik  <bkoz@redhat.com>
2513         * docs/html/20_util/allocator.html: Add bitmap_allocator links.
2515 2004-03-24  Andreas Schwab  <schwab@suse.de>
2517         * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
2518         warning from IA64 assembler.
2520 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
2522         * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
2523         function call __builtin_ctz instead of the while loop.
2524         (allocate) -> If condition has __builtin_expect.
2525         (deallocate) -> Ditto.
2526         Renamed a few left-over variables and typedefs according to the
2527         C++STYLE mentioned in the documentation.
2528         Protected calls to __gthread* by __gthread_active_p(), whose value
2529         is cached in the local variable __threads_active.
2531 2004-03-24  Felix Yen  <fwy@alumni.brown.edu>
2533         * testsuite/performance/20_util/allocator/producer_consumer.cc:
2534         Use linear algorithm for producer.
2536 2004-03-24  Paolo Carlini  <pcarlini@suse.de>
2538         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
2539         __mt_alloc<>::deallocate): Avoid redundant conditionals.
2541 2004-03-23  Benjamin Kosnik  <bkoz@redhat.com>
2543         * include/bits/locale_facets.h: Tweaks for 80 column.
2544         (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
2545         (__moneypunct_cache::_M_cache): Same.
2546         (num_get): Don't inherit from __num_base.
2547         (num_put): Same.
2548         (money_get): Don't inherit from money_base.
2549         (money_put): Same.
2550         (__timepunct::_M_am_pm_format): New.
2551         (time_get::_M_extract_num): Return iterator, use ios_base as argument.
2552         (time_get::_M_extract_name): Same.
2553         (time_get::_M_extract_via_format): Same.
2554         * include/bits/locale_facets.tcc: Tweaks for 80 column.
2555         Use _M_getloc instead of getloc.
2556         * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
2557         * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
2558         * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
2560 2004-03-22  Paolo Carlini  <pcarlini@suse.de>
2562         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
2563         * configure: Regenerate.
2564         * config/allocator/pool_allocator_base.h: New.
2565         * include/ext/pool_allocator.h: Convert to a standard-conforming
2566         allocator.
2567         * src/allocator.cc: Tweak instantiations.
2568         * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
2569         * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
2570         * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
2571         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
2572         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
2573         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
2575 2004-03-22  Hans-Peter Nilsson  <hp@axis.com>
2577         * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
2578         inline" and attribute-unused.  Qualify parameter __mem with
2579         "volatile".
2580         (__exchange_and_add): Ditto.  Add back memory clobber to asm.
2582 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
2584         * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
2585         Remove junk.
2586         * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
2587         Likewise.
2588         * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
2589         Likewise.
2590         * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
2591         Likewise.
2592         * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
2593         Likewise.
2594         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
2595         Likewise.
2596         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
2597         Likewise.
2598         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
2599         Likewise.
2600         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
2601         Likewise.
2602         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
2603         Likewise.
2605 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
2607         * include/std/std_valarray.h: Document DR389 [Ready].
2608         * docs/html/ext/howto.html: Add an entry for DR389.
2610 2004-03-19  Michael Eager  <eager@mvista.com>
2612         * config/cpu/mips/atomicity.h:  Prevent reg loads between LL and
2613         SC instructions.
2615 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
2617         * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
2618         static_cast-s.
2619         * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
2620         * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
2621         * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
2622         * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
2623         * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
2624         * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
2625         * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
2626         * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
2627         * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
2629 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
2630             Petur Runolfsson  <peturr02@ru.is>
2632         PR libstdc++/12077
2633         * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
2634         no way to find out the conversion used by the underlying FILE*.
2635         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
2636         * testsuite/27_io/objects/char/9.cc: Tweak.
2638 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
2640         PR libstdc++/14648
2641         * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
2642         memory allocation/deallocation calls.
2643         * testsuite/ext/14648.cc: New.
2645 2004-03-19  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
2647         PR libstdc++/14647
2648         * include/backward/bvector.h (bit_vector): Allocator is in std
2649         namespace.
2651 2004-03-19  Phil Edwards  <phil@codesourcery.com>
2653         * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT):  Set LIBICONV,
2654         not libiconv.  SUBST this variable as well.
2655         * testsuite/Makefile.am (site.exp):  New target, based on that
2656         created by automake.  Also set libiconv.
2658         * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
2659         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2660         testsuite/Makefile.in:  Regenerate.
2662 2004-03-16  Benjamin Kosnik  <bkoz@redhat.com>
2664         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
2665         new_allocator for all hosts.
2666         * configure: Regenerate.
2668 2004-03-16  Paolo Carlini  <pcarlini@suse.de>
2670         * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
2671         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2673 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
2675         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2676         Adjust the logic underlying the parsing of symbol to deal
2677         correctly with an optional sign component (i.e., when either
2678         negative_sign or positive_sign is empty)
2679         * testsuite/22_locale/money_get/get/char/19.cc: New.
2680         * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
2682 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
2684         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2685         Do not accept an incomplete currency symbol.
2686         * testsuite/22_locale/money_get/get/char/18.cc: New.
2687         * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
2689 2004-03-13  Benjamin Kosnik  <bkoz@redhat.com>
2691         * config/allocator: New.
2692         * config/allocator/bitmap_allocator_base.h: New.
2693         * config/allocator/malloc_allocator_base.h: New.
2694         * config/allocator/mt_allocator_base.h: New.
2695         * config/allocator/new_allocator_base.h: New.
2696         * include/bits/allocator.h: Include c++allocator.h.
2697         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
2698         * aclocal.m4: Regenerate.
2699         * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
2700         * configure: Regenerate.
2701         * include/Makefile.am (host_headers_extra): Add c++allocator.h.
2702         * include/Makefile.in: Regenerate.
2703         * docs/html/configopts.html: Add enable-libstdcxx-allocator.
2705 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
2707         * include/bits/allocator.h: Revert.
2709 2004-03-12  Paolo Carlini  <pcarlini@suse.de>
2711         * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
2712         * include/bits/gslice_array.h: Add comment about DR 253.
2713         * include/bits/indirect_array.h: Likewise.
2714         * include/bits/mask_array.h: Likewise.
2715         * include/bits/slice_array.h: Likewise.
2717 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
2719         * testsuite/20_util/allocator/14176.cc: New.
2720         * include/ext/mt_allocator.h: Formatting fixes.
2722 2004-03-11  Dhruv Matani  <dhruvbird@HotPOP.com>
2724         * include/Makefile.am (ext_headers): Add
2725         ${ext_srcdir}/bitmap_allocator.h .
2726         * include/Makefile.in: Regenerate.
2727         * docs/html/ext/ballocator_doc.txt: New file.
2728         * include/ext/bitmap_allocator.h: New file.
2729         * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
2730         test.
2731         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
2732         * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
2733         test for the bitmap_allocator<>.
2734         * testsuite/performance/20_util/allocator/insert.cc: Likewise.
2735         * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
2736         * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
2738 2004-03-11  Paolo Carlini  <pcarlini@suse.de>
2740         * include/std/std_complex.h (pow(const complex&, const _Tp&),
2741         pow(const _Tp&, const complex&), pow(const complex&,
2742         const complex&)): Fully qualify with std:: a few calls.
2743         * testsuite/26_numerics/complex/13450.cc: Minor tweak.
2745 2004-03-11  Steven Bosscher  <stevenb@suse.de>
2747         PR libstdc++/11706
2748         * include/c_std/cmath.tcc (__cmath_power): Define inline.
2750 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
2752         * configure.ac: Bump AC_PREREQ to 2.59.
2754 2004-03-10  Paolo Carlini  <pcarlini@suse.de>
2756         * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
2758 2004-03-10  Paul Kienzle  <pkienzle@nist.gov>
2759             Paolo Carlini  <pcarlini@suse.de>
2761         PR libstdc++/13450
2762         * include/std/std_complex.h (pow(const complex&, const _Tp&),
2763         pow(const _Tp&, const complex&)): Use cmath pow only when safe.
2764         * testsuite/26_numerics/complex/13450.cc: New.
2766         * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
2767         * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
2769 2004-03-10  Jerry Quinn  <jlquinn@optonline.net>
2771         PR libstdc++/3247
2772         * include/bits/gslice_array.h (gslice_array()): Make public.
2773         (operator=(gslice_array)): Make public.  Implement.
2774         * include/bits/indirect_array.h (indirect_array()): Make public.
2775         * include/bits/mask_array.h (mask_array()): Make public.
2776         (operator=(mask_array)): Make public.  Implement.
2777         * include/bits/valarray_array.tcc (__valarray_copy):
2778         Comment.  Add versions for gslice_array and mask_array.
2779         * testsuite/26_numerics/valarray_subset_assignment.cc:  New test.
2781 2004-03-09  Benjamin Kosnik  <bkoz@redhat.com>
2783         * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
2784         non-weak systems.
2785         * testsuite/23_containers/vector/modifiers/swap.cc: Same.
2786         * testsuite/23_containers/set/modifiers/swap.cc: Same.
2787         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2788         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2789         * testsuite/23_containers/map/modifiers/swap.cc: Same.
2790         * testsuite/23_containers/list/modifiers/swap.cc: Same.
2792         * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
2794 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
2796         PR c++/13658
2797         * testsuite/23_containers/deque/modifiers/swap.cc: New.
2798         * testsuite/23_containers/list/modifiers/swap.cc: New.
2799         * testsuite/23_containers/map/modifiers/swap.cc: New.
2800         * testsuite/23_containers/multimap/modifiers/swap.cc: New.
2801         * testsuite/23_containers/multiset/modifiers/swap.cc: New.
2802         * testsuite/23_containers/set/modifiers/swap.cc: New.
2803         * testsuite/23_containers/vector/modifiers/swap.cc: New.
2805 2004-03-08  Petur Runolfsson  <peturr02@ru.is>
2807         PR libstdc++/12658
2808         * testsuite/22_locale/locale/cons/12658_thread.cc: New.
2810 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
2812         * docs/html/ext/howto.html: Add entry for DR 103 [WP].
2813         * include/bits/stl_multiset.h: Add comment about DR 103.
2814         * include/bits/stl_set.h: Likewise.
2816 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
2818         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2819         The value _space_ indicates that at least one space is required
2820         at that position.
2821         * testsuite/22_locale/money_get/get/char/17.cc: New.
2822         * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
2824         * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
2825         * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
2827         * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
2828         Remove redundant conditional on __str.size().
2830 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
2832         * include/bits/allocator.h: Switch defaults to mt_alloc.
2834 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
2836         * include/ext/mt_allocator.h (_S_initialize): If
2837         !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
2839 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
2841         PR libstdc++/12658
2842         * src/locale_init.cc (locale::locale): Lock critical regions with
2843         external mutexes.
2844         (locale::global): Same.
2845         * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
2846         Add in once bits for cases without __GTHREAD_MUTEX_INIT.
2847         (__glibcxx_mutex_lock): Same.
2849         * config/cpu/generic/atomicity.h: Remove
2850         _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
2851         * src/misc-inst.cc: Move all locking bits out of this file.
2853         * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
2854         * src/misc-inst.cc: Same.
2855         * config/cpu/hppa/atomicity.h: Same.
2857         * config/linker-map.gnu: Remove types in the signature of atomic
2858         exports, as they may vary.
2860 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
2862         * include/bits/locale_facets.tcc: Tweak the comment preceding
2863         has_facet: doesn't throw.
2865 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
2867         * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
2868         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2869         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2870         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2871         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2872         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2873         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2874         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2876 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
2878         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2879         num_get<>::_M_extract_int, num_get<>::do_get(bool&),
2880         __pad<>::_S_pad): Prefer plain operator== to traits::eq().
2881         * testsuite/testsuite_character.h (struct __gnu_test::character):
2882         Provide operator==.
2883         * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
2884         Likewise.
2886 2004-03-05  Paolo Carlini  <pcarlini@suse.de>
2888         * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
2890 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
2892         * testsuite/23_containers/multiset/insert/1.cc: Test result string.
2894         * testsuite/23_containers/bitset/invalidation/1.cc: Main always
2895         returns 0.
2896         * testsuite/23_containers/deque/invalidation/4.cc: Same.
2897         * testsuite/23_containers/list/invalidation/1.cc: Same.
2898         * testsuite/23_containers/list/invalidation/2.cc: Same.
2899         * testsuite/23_containers/list/invalidation/3.cc: Same.
2900         * testsuite/23_containers/list/invalidation/4.cc: Same.
2901         * testsuite/23_containers/map/invalidation/2.cc: Same.
2902         * testsuite/23_containers/multimap/invalidation/1.cc: Same.
2903         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2904         * testsuite/23_containers/multiset/invalidation/1.cc: Same.
2905         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2906         * testsuite/23_containers/set/invalidation/1.cc: Same.
2907         * testsuite/23_containers/set/invalidation/2.cc: Same.
2908         * testsuite/23_containers/vector/invalidation/1.cc: Same.
2909         * testsuite/23_containers/vector/invalidation/2.cc: Same.
2910         * testsuite/23_containers/vector/invalidation/3.cc: Same.
2911         * testsuite/23_containers/vector/invalidation/4.cc: Same.
2913 2004-03-04  Paolo Carlini  <pcarlini@suse.de>
2915         * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
2916         CXXFLAGS_save.
2917         * testsuite/lib/libstdc++.exp: Don't add it conditionally to
2918         DEFAULT_CXXFLAGS.
2919         * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
2920         from the dg-options.
2921         * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
2922         * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
2923         * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
2924         * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
2925         * testsuite/23_containers/vector/resize/1.cc: Likewise.
2926         * testsuite/26_numerics/complex_value.cc: Likewise.
2927         * testsuite/27_io/ios_base/storage/1.cc: Likewise.
2928         * testsuite/27_io/ios_base/storage/2.cc: Likewise.
2929         * testsuite/27_io/ios_base/storage/3.cc: Likewise.
2930         * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
2931         * testsuite/27_io/objects/char/5.cc: Likewise.
2932         * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
2933         * testsuite/backward/11460.cc: Likewise.
2934         * testsuite/thread/pthread7-rope.cc: Likewise.
2936         * testsuite/21_strings/basic_string/compare/char/1.cc: Add
2937         missing test variable.
2938         * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
2939         missing test variable.
2941 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
2943         * testsuite/20_util/allocator/1.cc: Provide explicit
2944         instantiations for non-weak systems.
2945         * testsuite/20_util/binders.cc: Same.
2946         * testsuite/20_util/allocator/8230.cc: Same.
2947         * testsuite/20_util/allocator/10378.cc: Same.
2948         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
2949         * testsuite/22_locale/ctype/is/char/2.cc: Same.
2950         * testsuite/thread/pthread7-rope.cc: Same.
2951         * testsuite/thread/pthread6.cc: Same.
2952         * testsuite/thread/pthread5.cc: Same.
2953         * testsuite/thread/pthread4.cc: Same.
2954         * testsuite/thread/pthread1.cc: Same.
2955         * testsuite/ext/rope.cc: Same.
2956         * testsuite/ext/hash_set.cc: Same.
2957         * testsuite/ext/hash_map.cc: Same.
2958         * testsuite/ext/concept_checks.cc: Same.
2959         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
2960         * testsuite/25_algorithms/unique/2.cc: Same.
2961         * testsuite/25_algorithms/unique/1.cc: Same.
2962         * testsuite/25_algorithms/rotate.cc: Same.
2963         * testsuite/25_algorithms/min_max.cc: Same.
2964         * testsuite/25_algorithms/equal.cc: Same.
2965         * testsuite/24_iterators/rel_ops.cc: Same.
2966         * testsuite/24_iterators/iterator.cc: Same.
2967         * testsuite/24_iterators/insert_iterator.cc: Same.
2968         * testsuite/24_iterators/front_insert_iterator.cc: Same.
2969         * testsuite/24_iterators/back_insert_iterator.cc: Same.
2970         * testsuite/23_containers/vector/resize/1.cc: Same.
2971         * testsuite/23_containers/vector/modifiers/2.cc: Same.
2972         * testsuite/23_containers/vector/modifiers/1.cc: Same.
2973         * testsuite/23_containers/vector/invalidation/4.cc: Same.
2974         * testsuite/23_containers/vector/invalidation/3.cc: Same.
2975         * testsuite/23_containers/vector/invalidation/2.cc: Same.
2976         * testsuite/23_containers/vector/invalidation/1.cc: Same.
2977         * testsuite/23_containers/vector/element_access/1.cc: Same.
2978         * testsuite/23_containers/vector/cons/6513.cc: Same.
2979         * testsuite/23_containers/vector/cons/3.cc: Same.
2980         * testsuite/23_containers/vector/cons/2.cc: Same.
2981         * testsuite/23_containers/vector/cons/1.cc: Same.
2982         * testsuite/23_containers/vector/capacity/8230.cc: Same.
2983         * testsuite/23_containers/vector/capacity/1.cc: Same.
2984         * testsuite/23_containers/vector/bool/6886.cc: Same.
2985         * testsuite/23_containers/stack/members/7158.cc: Same.
2986         * testsuite/23_containers/set/invalidation/2.cc: Same.
2987         * testsuite/23_containers/set/invalidation/1.cc: Same.
2988         * testsuite/23_containers/queue/members/7157.cc: Same.
2989         * testsuite/23_containers/priority_queue/members/7161.cc: Same.
2990         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2991         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2992         * testsuite/23_containers/multiset/insert/1.cc: Same.
2993         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2994         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2995         * testsuite/23_containers/map/operators/1.cc: Same.
2996         * testsuite/23_containers/map/invalidation/2.cc: Same.
2997         * testsuite/23_containers/map/invalidation/1.cc: Same.
2998         * testsuite/23_containers/map/insert/1.cc: Same.
2999         * testsuite/23_containers/list/operators/4.cc: Same.
3000         * testsuite/23_containers/list/operators/3.cc: Same.
3001         * testsuite/23_containers/list/operators/2.cc: Same.
3002         * testsuite/23_containers/list/operators/1.cc: Same.
3003         * testsuite/23_containers/list/modifiers/3.cc: Same.
3004         * testsuite/23_containers/list/modifiers/2.cc: Same.
3005         * testsuite/23_containers/list/modifiers/1.cc: Same.
3006         * testsuite/23_containers/list/invalidation/4.cc: Same.
3007         * testsuite/23_containers/list/invalidation/3.cc: Same.
3008         * testsuite/23_containers/list/invalidation/2.cc: Same.
3009         * testsuite/23_containers/list/invalidation/1.cc: Same.
3010         * testsuite/23_containers/list/cons/9.cc: Same.
3011         * testsuite/23_containers/list/cons/8.cc: Same.
3012         * testsuite/23_containers/list/cons/7.cc: Same.
3013         * testsuite/23_containers/list/cons/6.cc: Same.
3014         * testsuite/23_containers/list/cons/5.cc: Same.
3015         * testsuite/23_containers/list/cons/4.cc: Same.
3016         * testsuite/23_containers/list/cons/3.cc: Same.
3017         * testsuite/23_containers/list/cons/2.cc: Same.
3018         * testsuite/23_containers/list/cons/1.cc: Same.
3019         * testsuite/23_containers/list/capacity/1.cc: Same.
3020         * testsuite/23_containers/deque/operators/1.cc: Same.
3021         * testsuite/23_containers/deque/invalidation/4.cc: Same.
3022         * testsuite/23_containers/deque/invalidation/3.cc: Same.
3023         * testsuite/23_containers/deque/invalidation/2.cc: Same.
3024         * testsuite/23_containers/deque/invalidation/1.cc: Same.
3025         * testsuite/23_containers/deque/cons/2.cc: Same.
3026         * testsuite/23_containers/deque/cons/1.cc: Same.
3028         * src/allocator.cc: Add char, wchar_t instantiations
3029         to match extern template declarations in memory.h.
3031 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
3033         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3034         Fix warning regression.
3036 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
3038         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3039         Deal properly with empty __digits and negative frac_digits,
3040         clean-up a bit.
3042 2004-03-03  Jonathan Wakely  <redi@gcc.gnu.org>
3044         * docs/html/documentation.html: Regenerate.
3046 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
3048         PR libstdc++/14320
3049         * include/bits/postypes.h (class streamoff): Remove, now
3050         streamoff is just typedef a 64 bit signed integer type.
3051         (class fpos): Tweak consistently.
3052         * testsuite/27_io/fpos/14320-1.cc: New.
3053         * testsuite/27_io/fpos/14320-2.cc: New.
3054         * testsuite/27_io/fpos/14320-3.cc: New.
3055         * testsuite/27_io/fpos/14320-4.cc: New.
3056         * testsuite/27_io/fpos/14320-5.cc: New.
3057         * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
3059 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
3061         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3062         Reorganize a bit the main parsing loop, thus early detecting
3063         an empty value component.
3064         * testsuite/22_locale/money_get/get/char/16.cc: New.
3065         * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
3067 2004-03-02  Benjamin Kosnik  <bkoz@redhat.com>
3069         Support automake 1.8.2
3070         * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
3071         * po/Makefile.am (EXTRA_DIST): New.
3072         * po/Makefile.in: Regenerate.
3073         * Makefile.in: Same.
3074         * include/Makefile.in: Same.
3075         * libmath/Makefile.in: Same.
3076         * libsupc++/Makefile.in: Same.
3077         * src/Makefile.in: Same.
3078         * testsuite/Makefile.in: Same.
3080         * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
3081         __GXX_WEAK__ instead of SUPPORTS_WEAK.
3082         (${host_builddir}/gthr-default.h): Same.
3083         (${host_builddir}/gthr.h): Same.
3084         * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
3085         _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
3086         -fno-weak.
3087         * aclocal.m4: Regenerate.
3088         * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
3089         * config.h.in: Regenerate.
3090         * configure: Same.
3092 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
3094         Support autoconf 2.59
3095         * acinclude.m4: Quote correctly.
3096         * aclocal.m4: Regenerate.
3097         * linkage.m4: Same.
3099 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
3101         * docs/html/test.html: Add multilib RUNTESTFLAGS example.
3103         * docs/html/18_support/howto.html: Add bit about writing to
3104         stderr, mostly by Zack.
3106 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
3108         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3109         money_get<>::do_get(string_type&)): ... and two more.
3111 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
3113         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3114         Fix thinkos in the switch from string_type& to string& as last
3115         argument.
3117 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
3119         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3120         Also when parsing exponent sign, first look for thousands_sep
3121         and decimal_point; tweak a bit.
3122         * testsuite/22_locale/num_get/get/char/15.cc: New.
3123         * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
3125         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3126         num_get<>::_M_extract_int): Reorder some conditionals.
3128 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
3130         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3131         Consistently with numpunct, enforce the requirements in
3132         22.2.6.3, p3 for the thousands separators; tweak a bit.
3133         * testsuite/22_locale/money_get/get/char/15.cc: New.
3134         * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
3136 2004-03-01  David Billinghurst <David.Billinghurst@riotinto.com>
3138         * testsuite/lib/libstdc++.exp (v3-list-tests): Use
3139         testsuite_files from correct multilib blddir when running
3140         testsuite.
3142 2004-02-29  Phil Edwards  <phil@codesourcery.com>
3144         * testsuite/Makefile.am (check-abi, check-abi-verbose):  Copy
3145         the summary file to the logfile.
3146         * testsuite/Makefile.in:  Regenerate.
3148 2004-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3150         * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
3151         volatile.
3152         * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
3153         __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
3155 2004-02-28  Paolo Carlini  <pcarlini@suse.de>
3157         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3158         According to 22.2.3.1, p2, 'units' may be followed by 'e' with
3159         no 'decimal-point' in the middle: in this case too we must fix
3160         up __found_grouping; slightly tweak.
3161         * testsuite/22_locale/num_get/get/char/14.cc: New.
3162         * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
3164 2004-02-27  Eric Christopher  <echristo@redhat.com>
3165             Phil Edwards  <phil@codesourcery.com>
3167         * testsuite/22_locale/collate/compare/wchar_t/2.cc,
3168         testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
3169         testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
3170         testsuite/22_locale/collate/hash/wchar_t/2.cc,
3171         testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
3172         testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
3173         testsuite/22_locale/collate/transform/wchar_t/2.cc,
3174         testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
3175         testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3176         Use dg-require-iconv.
3177         * testsuite/lib/libstdc++.exp:  Load target-supports.exp.
3179 2004-02-27  Phil Edwards  <phil@codesourcery.com>
3180             Eric Christopher  <echristo@redhat.com>
3182         * testsuite/config/default.exp:  Update with comments.
3183         (${tool}_target_compile):  New wrapper routine.
3184         * testsuite/lib/dg-options.exp:  New file, with dg-require-iconv.
3185         * testsuite/lib/libstdc++.exp:  Update with comments and cosmetic
3186         fixes.
3187         (load_gcc_lib, v3track):  New routines.
3188         (v3-init):  Rename to libstdc++_init.
3189         * testsuite/libstdc++-dg/normal.exp:  No longer call v3-init.
3190         Move DEFAULT_CXXFLAGS handling into libstdc++_init.
3192 2004-02-27  Benjamin Kosnik  <bkoz@redhat.com>
3194         * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
3196         * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
3198         * config/os/irix/irix5.2/atomicity.h: Merge..
3199         * config/os/irix/irix6.5/atomicity.h: Merge..
3200         * config/os/irix/atomicity.h: ...into this.
3201         * config/os/irix/atomic_word.h: New.
3202         * configure.host: Set atomic_word_dir for irix.
3204         * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
3205         * i386/atomicity.h: Same.
3206         * m68k/atomicity.h: Same.
3207         * sparc/atomicity.h: Same.
3209 2004-02-27  David Edelsohn  <edelsohn@gnu.org>
3211         * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
3212         static, and inline keywords.
3214 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
3216         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3217         num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
3218         call reserve on the __tmp_gruping string.
3219         (num_get<>::_M_extract_float): Don't append unnecessarily a
3220         char() to the returned string.
3221         * include/bits/locale_facets.tcc: Trivial reformattings.
3223 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
3225         * include/bits/locale_facets.h (money_get<>::_M_extract):
3226         Change signature: now takes a plain string&.
3227         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3228         Update consistently the definition; use the moneypunct cache
3229         to parse the value; use swap to change __units.
3230         (money_get<>::do_get(long double&)): Update call of _M_extract,
3231         avoid ctype::narrow, not correct wrt the standard.
3232         (money_get<>::do_get(string_type&)): Likewise, update call
3233         of _M_extract, use ctype::widen.
3234         * src/locale-inst.cc: Tweak instantiations of _M_extract.
3236 2004-02-26  Ian Lance Taylor  <ian@wasabisystems.com>
3238         * testsuite/demangle/abi_examples/01.cc: Expect error -2.
3239         * testsuite/demangle/abi_examples/02.cc: Likewise.
3240         * testsuite/demangle/regression/cw-11.cc: Likewise.
3241         * testsuite/demangle/regression/cw-16.cc: Change two expected
3242         results to match libiberty demangler output.
3244 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
3246         PR libstdc++/10246
3247         * libsupc++/Makefile.am: Use libiberty demangler.
3248         (c_sources): Add cp-demangle.c.
3249         * libsupc++/Makefile.in: Regenerate.
3250         * src/Makefile.am (sources): Remove demangle.cc.
3251         * src/Makefile.in: Regenerate.
3252         * include/Makefile.am (bits_headers): Move demangle.h.
3253         (ext_headers): ...here.
3254         * include/Makefile.in: Regenerate.
3255         * include/bits/demangle.h: Move...
3256         * include/ext/demangle.h: ...here.
3257         * src/demangle.cc: Remove.
3259 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
3261         * include/bits/demangle.h: Add type template parameter to all
3262         templates with just an Allocator template parameter.
3264 2004-02-25  Benjamin Kosnik  <bkoz@redhat.com>
3266         * include/bits/atomicity.h: New, forward declarations for __atomic_add
3267         and __exchange_and_add.
3268         * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
3269         * config/cpu/cris/atomic_word.h: Same.
3270         * config/cpu/sparc/atomic_word.h: Same.
3271         * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
3272         Qualifiy with __gnu_cxx.
3273         (_Callback_list::_M_add_reference): Same.
3274         * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
3275         (locale::facet::_M_remove_reference): Same.
3276         (locale::_Impl::_M_add_reference): Add.
3277         (locale::_Impl::_M_remove_reference): Same.
3278         * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
3279         (basic_string::_Rep::_M_dispose): Same.
3280         * src/ios.cc (ios_base::xalloc): Same.
3281         * src/ios_init.cc (ios_base::Init::Init): Same.
3282         (ios_base::Init::~Init): Same.
3283         * src/locale.cc (locale::id::_M_id): Same.
3284         * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
3285         static, and inline keywords.
3286         * config/cpu/alpha/atomicity.h: Same.
3287         * config/cpu/cris/atomicity.h: Same.
3288         * config/cpu/generic/atomicity.h: Same.
3289         * config/cpu/hppa/atomicity.h: Same.
3290         * config/cpu/i386/atomicity.h: Same.
3291         * config/cpu/ia64/atomicity.h: Same.
3292         * config/cpu/m68k/atomicity.h: Same.
3293         * config/cpu/mips/atomicity.h: Same.
3294         * config/cpu/powerpc/atomicity.h: Same.
3295         * config/cpu/s390/atomicity.h: Same.
3296         * config/cpu/sparc/atomicity.h: Same.
3298         * src/Makefile.am (host_sources): Add atomicity.cc.
3299         (atomicity.cc): New rule.
3300         * src/Makefile.in: Regenerate.
3301         * include/Makefile.am (host_headers): Remove host atomicity.h.
3302         (host_headers): Add atomic_word.h.
3303         (bits_headers): Add bits atomicity.h.
3304         Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3305         * include/Makefile.in: Regenerate.
3306         * configure.host (atomic_word_dir): Add.
3307         * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
3308         ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3309         * configure: Regenerate.
3310         * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
3312         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
3313         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3315 2004-02-25  Jonathan Wakely  <redi@gcc.gnu.org>
3317         * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
3318         docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
3319         Fix markup, more <link> tags.
3321 2004-02-25  Carlo Wood  <carlo@alinoe.com>
3323         * bits/demangle.h
3324         namespace __gnu_cxx::demangler
3325         (session<Allocator>::qualifier_list_Allocator): Add
3326         (session<Allocator>::M_qualifier_list_alloc): Add
3327         (session<Allocator>::decode_type_with_postfix):
3328         Use M_qualifier_list_alloc instead of calling operator new/delete.
3330 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
3332         PR libstdc++/14252
3333         * include/bits/postypes.h (class streamoff): Add operator++(),
3334         operator++(int), operator--() and operator--(int).
3335         * testsuite/27_io/fpos/14252.cc: New.
3337 2004-02-24  Richard Sandiford  <rsandifo@redhat.com>
3339         * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
3340         error in handling of hex constants.
3342 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
3344         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3345         Prefer basic_string::append to operator+= and a temporary.
3347 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
3349         * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
3350         Only use fputs, not write.
3352 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
3354         * include/ext/malloc_allocator.h: Add operators ==, !=.
3355         * include/ext/new_allocator.h: Add operators ==, !=.
3356         * include/ext/mt_allocator.h (__mt_alloc::tune): New.
3357         (__mt_alloc::_S_get_options): New.
3358         (__mt_alloc::_S_set_options): New.
3359         (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
3360         (__mt_alloc::_S_no_of_bins): To _S_bin_size.
3361         Move functions out of line, simplify, format.
3362         * src/allocator.cc: Simplify explicit instantiations.
3363         * include/bits/allocator.h: Tweak.
3365 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
3367         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3368         Restructure formatting of value component, first dealing with
3369         the non-decimal digits; use reserve.
3371 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
3373         * include/bits/locale_facets.h (class money_get): Inherit
3374         from money_base too; tweak declaration of _M_extract, now
3375         parameterized on _Intl too.
3376         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3377         Update definition to use the cache; call reserve on __res to
3378         avoid multiple reallocations; fix parsing of sign component
3379         according to 22.2.6.1.2, p3.
3380         (money_get<>::do_get(long double&),
3381         money_get<>::do_get(string_type&)): Update calls of _M_extract.
3382         * src/locale-inst.cc:  Add instantiations of
3383         money_get::_M_extract<false> and money_get::_M_extract<true>.
3384         * testsuite/22_locale/money_get/get/char/14.cc: New.
3385         * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
3387 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
3389         * libsupc++/vterminate.cc
3390         (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
3391         calls to terminate.
3392         * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
3394         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3395         not set RLIMIT_AS on HP-UX.
3397 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
3399         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3400         not set RLIMIT_AS on HP-UX.
3402 2004-02-21  Paolo Carlini  <pcarlini@suse.de>
3404         * include/bits/locale_facets.h (class money_base): Add { _S_minus,
3405         _S_zero, _S_end } enum, _S_atoms.
3406         (struct __moneypunct_cache<>): Parameterize on _Intl too; add
3407         _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
3408         _M_negative_sign_size, _M_atoms; tweak constructor consistently.
3409         (__moneypunct_cache<>::~__moneypunct_cache): Update.
3410         (__moneypunct_cache<>::_M_cache): Fill the cache.
3411         (class moneypunct): Tweak __cache_type typedef.
3412         (class money_put): Inherit from money_base too; tweak declaration
3413         of _M_insert, now parameterized on _Intl.
3414         * include/bits/locale_facets.tcc
3415         (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
3416         (money_put<>::_M_insert): Update definition to use the cache;
3417         call reserve on __res to avoid multiple reallocations.
3418         (money_put<>::do_put(long double),
3419         money_put<>::do_put(const string_type&): Update calls of _M_insert.
3420         * config/locale/generic/monetary_members.cc
3421         (moneypunct<char, true>::_M_initialize_moneypunct,
3422         moneypunct<char, false>::_M_initialize_moneypunct,
3423         moneypunct<wchar_t, true>::_M_initialize_moneypunct,
3424         moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
3425         * config/locale/gnu/monetary_members.cc: Likewise.
3426         * config/locale/gnu/monetary_members.cc
3427         (moneypunct<wchar_t, true>::~moneypunct(),
3428         moneypunct<wchar_t, false>::~moneypunct()): Likewise.
3429         * src/globals_locale.cc: Tweak fake_money_cache_c.
3430         * src/locale-inst.cc: Add instantiations for
3431         money_put::_M_insert<false> and money_put::_M_insert<true> and
3432         __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
3433         * src/locale_facets.cc: Define money_base::_S_atoms.
3434         * src/locale_init.cc: Update placement new of
3435         __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
3436         __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
3438         * config/locale/generic/numeric_members.cc: Clean up.
3439         * config/locale/gnu/numeric_members.cc: Likewise.
3440         * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
3441         * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
3442         * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
3443         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
3444         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
3445         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
3447 2004-02-20  Mark Mitchell  <mark@codesourcery.com>
3449         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
3450         FIFO for writing with ios_base::in|ios_base::out.
3451         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3452         * testsuite/27_io/objects/char/7.cc: Likewise.
3453         * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
3454         with "r+".
3456 2004-02-19  David Edelsohn  <edelsohn@gnu.org>
3458         * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
3459         from iso-8859-1 to ISO8859-1.
3460         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
3461         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
3462         * 22_locale/collate/hash/wchar_t/2.cc: Same.
3463         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
3464         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
3465         * 22_locale/collate/transform/wchar_t/2.cc: Same.
3466         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
3467         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
3469 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
3471         * include/bits/locale_facets.h (money_get<>::_M_extract):
3472         New, helper for do_get.
3473         (money_put<>::_M_insert): Likewise, for do_put.
3474         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3475         money_put<>::_M_insert): Define.
3476         (money_get<>::do_get(long double&), money_get<>::do_get(
3477         string_type&), money_put::do_put(long double),
3478         money_put::do_put(const string_type&)): Use the helpers.
3480 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
3482         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
3483         Rewrite, avoiding recursion.
3484         (__gnu_internal::xwrite): Minor tweaks.
3486 2004-02-17  Stefan Olsson  <stefan@xapa.se>
3488         * include/ext/mt_allocator.h: Removed the last
3489         pointer. Deallocated blocks are now added to the front of
3490         freelists as proposed by Felix Yen.  This gives roughly 10%
3491         performance boost and saves some memory.
3492         * docs/html/ext/mt_allocator.html: Change due to that deallocated
3493         blocks now are added to the front of freelists. The reason to this
3494         approach is also explained.
3496 2004-02-17  Paolo Carlini  <pcarlini@suse.de>
3498         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3499         num_get<>::_M_extract_int, money_get<>::do_get): Simplify
3500         grouping fidelity conditional.
3502 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
3504         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
3505         Qualify exception with std::.
3506         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
3507         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
3508         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3509         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3510         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3512 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
3514         * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
3515         for now that the catch block is not reached.
3516         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
3518 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
3520         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
3521         Fix parsing of the remaining sign characters.
3522         * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
3523         the input is scanned 'til eof.
3524         * 22_locale/money_get/get/char/4.cc: Likewise.
3525         * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
3526         * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
3527         * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
3528         not do_pos_format: the former is the only one that matters during
3529         input.
3530         * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
3532         * 22_locale/money_get/get/char/6.cc: Minor tweak.
3533         * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
3535 2004-02-15  David Asher  <david.asher@cavium.com>
3537         PR libstdc++/11352
3538         * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
3539         access __olds beyond __oldlen.
3541 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
3543         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
3544         sure the exception is actually thrown.
3545         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3546         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3547         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3549 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
3551         PR libstdc++/13858
3552         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
3553         In case of conversion errors, throw ios_failure; simplify.
3554         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
3555         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
3556         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
3557         previously we didn't throw in case of conversion errors, instead
3558         just returned eof().
3559         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3560         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3561         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3563         * include/bits/fstream.tcc (basic_filebuf<>::overflow):
3564         Trivial simplification of a conditional.
3566 2004-02-12  Paolo Carlini  <pcarlini@suse.de>
3568         PR libstdc++/13731 (final part: writev)
3569         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
3570         New, a wrapper around writev() handling partial writes.
3571         (__basic_file<char>::xwrite): Move to __gnu_internal and make
3572         static.
3573         (__basic_file<char>::xsputn): Update call.
3574         (__basic_file<char>::xsputn_2): Likewise.
3575         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
3576         Don't declare, now static.
3578 2004-02-11  Stefan Olsson  <stefan@xapa.se>
3580         * docs/html/ext/mt_allocator.html: New.
3582 2004-02-11  Benjamin Kosnik  <bkoz@redhat.com>
3584         * docs/html/20_util/allocator.html: New file, consolidate
3585         allocator information here. Revamp.
3586         * docs/html/documentation.html: Change links.
3587         * docs/html/20_util/howto.html: Same.
3588         * docs/html/ext/howto.html: Same.
3590 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
3592         PR libstdc++/13731 (first part: write)
3593         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
3594         New, declare.
3595         * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
3596         Define it: a wrapper around write() handling partial write.
3597         (__basic_file<char>::xsputn): Use it.
3598         (__basic_file<char>::xsputn_2): Likewise.
3600 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
3601             Petur Runolfsson  <peturr02@ru.is>
3603         PR libstdc++/14078
3604         * include/std/std_istream.h (operator>>(__istream_type& (*)
3605         (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
3606         operator>>(ios_base& (*)(ios_base&))): Declare inline.
3607         * include/std/std_ostream.h (operator<<(__ostream_type& (*)
3608         (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
3609         operator<<(ios_base& (*) (ios_base&))): Likewise.
3610         * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
3612 2004-02-10  Loren J. Rittle  <ljrittle@acm.org>
3614         PR libstdc++/14098
3615         * config/linker-map.gnu: Add typeinfo and typeinfo name for
3616         __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
3618         PR libstdc++/14097
3619         * config/linker-map.gnu: Add typeinfo and typeinfo name for
3620         __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
3622 2004-02-09  Loren J. Rittle  <ljrittle@acm.org>
3624         * include/ext/pool_allocator.h: Include c++config.h.
3626 2004-02-09  Stefan Olsson  <stefan@xapa.se>
3628         * include/ext/mt_allocator.h: thread_id is unused in non threaded
3629         applications and now has a ifdef to remove it completely on
3630         compilers without thread support. Include stdlib.h due to a
3631         compiler warning on getenv().
3633 2004-02-09  Paul Brook  <paul@codesourcery.com>
3635         * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
3637 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
3639         PR libstdc++/14071
3640         * src/locale_init.cc (locale::global(const locale&)): Use
3641         locale::name() in order to decide whether calling setlocale.
3642         * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
3644         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
3645         Avoid computing &= unnecessarily.
3647 2004-02-09  James E Wilson  <wilson@specifixinc.com>
3649         PR libstdc++/5625
3650         * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
3651         __builtin_extend_pointer.
3653 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
3655         PR libstdc++/14072
3656         * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
3657         Don't leave dangling pointers.
3658         * testsuite/27_io/basic_ios/imbue/14072.cc: New.
3659         * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
3660         facet is needed in the final test.
3662 2004-02-09  Bernardo Innocenti  <bernie@develer.com>
3664         * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
3665         * configure: Regenerate.
3667 2004-02-08  Richard Henderson  <rth@redhat.com>
3669         PR libstdc++/14026
3670         * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
3671         uncaughtExceptions during nested catch rethrow.
3672         * testsuite/18_support/14026.cc: New.
3674 2004-02-08  Paolo Carlini  <pcarlini@suse.de>
3676         * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
3677         When working in place remember to set the state to sharable
3678         (otherwise, _M_mutate does it).
3680 2004-02-08  Bernardo Innocenti  <bernie@develer.com>
3682         * include/bits/allocator.h, include/bits/basic_ios.h,
3683         include/bits/basic_ios.tcc, include/bits/basic_string.h,
3684         include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
3685         include/bits/char_traits.h, include/bits/codecvt.h,
3686         include/bits/concurrence.h, include/bits/cpp_type_traits.h,
3687         include/bits/demangle.h, include/bits/deque.tcc,
3688         include/bits/fstream.tcc, include/bits/functexcept.h,
3689         include/bits/gslice.h, include/bits/gslice_array.h,
3690         include/bits/indirect_array.h, include/bits/ios_base.h,
3691         include/bits/istream.tcc, include/bits/list.tcc,
3692         include/bits/locale_classes.h, include/bits/locale_facets.h,
3693         include/bits/locale_facets.tcc, include/bits/localefwd.h,
3694         include/bits/mask_array.h, include/bits/ostream.tcc,
3695         include/bits/postypes.h, include/bits/slice_array.h,
3696         include/bits/sstream.tcc, include/bits/stl_algo.h,
3697         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
3698         include/bits/stl_construct.h, include/bits/stl_deque.h,
3699         include/bits/stl_function.h, include/bits/stl_heap.h,
3700         include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
3701         include/bits/stl_list.h, include/bits/stl_map.h,
3702         include/bits/stl_multimap.h, include/bits/stl_multiset.h,
3703         include/bits/stl_numeric.h, include/bits/stl_pair.h,
3704         include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
3705         include/bits/stl_relops.h, include/bits/stl_set.h,
3706         include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
3707         include/bits/stl_threads.h, include/bits/stl_tree.h,
3708         include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
3709         include/bits/stream_iterator.h, include/bits/streambuf.tcc,
3710         include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
3711         include/bits/type_traits.h, include/bits/valarray_after.h,
3712         include/bits/valarray_array.h, include/bits/valarray_array.tcc,
3713         include/bits/valarray_before.h, include/bits/vector.tcc: Remove
3714         trailing whitespace.
3716 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
3718         * include/bits/basic_string.h: Fix comment.
3720 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
3722         * include/bits/stl_construct.h: Wrap overlong lines, reformat
3723         according to the coding standards.
3724         * include/bits/stl_pair.h: Likewise.
3725         * include/bits/stl_raw_storage_iter.h: Likewise.
3726         * include/bits/stl_stack.h: Likewise.
3727         * include/bits/stl_uninitialized.h: Likewise.
3728         * include/bits/stream_iterator.h: Likewise.
3729         * include/bits/streambuf_iterator.h: Likewise.
3730         * include/bits/type_traits.h: Likewise.
3732 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
3734         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
3735         Adjust timings.
3737 2004-02-05  Loren J. Rittle  <ljrittle@acm.org>
3739         * scripts/check_performance: Support PCH.
3741         * scripts/check_performance (CXX): Add -DNOTHREAD.
3742         * testsuite/performance/20_util/allocator/insert.cc: Integrate
3743         threaded tests from insert_insert.cc.  Tweak iterations,
3744         remove special cases.
3745         * testsuite/performance/20_util/allocator/insert_insert.cc:
3746         Make all tests single-threaded. Tweak iterations.
3747         * testsuite/performance/20_util/allocator/map_thread.cc:
3748         Tweak iterations.
3749         * testsuite/performance/20_util/allocator/producer_consumer.cc:
3750         Likewise.
3752 2004-02-05  Geoffrey Keating  <geoffk@apple.com>
3754         PR 12179
3755         * .cvsignore: New.
3756         * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
3757         'gcc-lib'.  Add comment about poorly-named variables.
3758         * aclocal.m4: Regenerate.
3759         * configure: Regenerate.
3761 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
3763         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
3764         Thousands-sep are always optional; thousands-sep are not allowed
3765         after the decimal_point.
3766         * testsuite/22_locale/money_get/get/char/12.cc: New.
3767         * testsuite/22_locale/money_get/get/char/13.cc: New.
3768         * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
3769         * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
3771         * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
3772         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3773         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3774         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3775         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3776         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3777         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3778         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3780         * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
3781         the standard.
3782         * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
3784 2004-02-05  Richard Sandiford  <rsandifo@redhat.com>
3786         * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
3787         Define.
3788         * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
3789         it to decide whether FIONREAD should take an off_t or int argument.
3791 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
3793         * include/bits/stl_function.h: Minor formatting changes.
3795 2004-02-04  Zack Weinberg  <zack@codesourcery.com>
3797         Revert previous change to config/abi/*/baseline_symbols.txt.
3799 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
3800             Zack Weinberg  <zack@codesourcery.com>
3802         * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
3803         New function.
3804         (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
3805         (__basic_file<char>::_M_open_mode): Delete.
3806         * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
3808         * testsuite/27_io/basic_filebuf/close/char/9964.cc
3809         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
3810         Correct flags to filebuf::open calls.
3812         * config/abi/alpha-freebsd5/baseline_symbols.txt
3813         * config/abi/alpha-linux-gnu/baseline_symbols.txt
3814         * config/abi/hppa-linux-gnu/baseline_symbols.txt
3815         * config/abi/i386-freebsd4/baseline_symbols.txt
3816         * config/abi/i386-freebsd5/baseline_symbols.txt
3817         * config/abi/i486-linux-gnu/baseline_symbols.txt
3818         * config/abi/ia64-linux-gnu/baseline_symbols.txt
3819         * config/abi/mips-linux-gnu/baseline_symbols.txt
3820         * config/abi/sparc-freebsd5/baseline_symbols.txt
3821         * config/abi/sparc-linux-gnu/baseline_symbols.txt
3822         * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
3823         Remove entry for __basic_file<char>::_M_open_mode.
3825 2004-02-04  Loren J. Rittle  <ljrittle@acm.org>
3827         * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
3829 2004-02-04  Felix Yen  <fwy@alumni.brown.edu>
3831         * testsuite/performance/20_util/producer_consumer.cc: New.
3832         * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
3834 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
3836         * testsuite/performance/20_util/allocator.cc: Move to..
3837         * testsuite/performance/20_util/allocator/insert.cc: ...here.
3838         * testsuite/performance/20_util/allocator_thread.cc: Move to...
3839         * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
3840         * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
3841         * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
3843 2004-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
3845         * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
3846         * docs/html/faq/index.txt: Regenerate.
3848 2004-02-04  Dhruv Matani  <dhruvbird@gmx.net>
3850         * include/ext/debug_allocator.h: _M_extra now stands for the
3851         number of extra objects instead of the number of extra bytes.
3852         (debug_allocator::allocate): Adjust.
3853         (debug_allocator::deallocate): Adjust.
3855         * include/ext/pool_allocator.h: Fix typo.
3857 2004-02-03  Felix Yen  <fwy@alumni.brown.edu>
3858             Benjamin Kosnik  <bkoz@redhat.com>
3860         * testsuite/performance/20_util/allocator.cc: Add map,
3861         deque, set tests.
3862         * testsuite/performance/20_util/allocator_thread.cc: Same.
3864 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
3866         * include/bits/basic_string.h (insert(iterator)): Remove,
3867         non-standard and already scheduled for removal.
3869 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
3871         * include/bits/stl_iterator_base_funcs.h: Minor formatting
3872         and indentation tweaks.
3873         * include/bits/stl_iterator_base_types.h: Likewise.
3874         * include/bits/stl_list.h: Likewise.
3875         * include/bits/stl_map.h: Likewise.
3876         * include/bits/stl_tempbuf.h: Likewise.
3878 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
3880         * include/bits/gslice.h, include/bits/gslice_array.h,
3881         include/bits/indirect_array.h, include/bits/mask_array.h,
3882         include/bits/slice_array.h, include/bits/stl_numeric.h,
3883         include/std/std_valarray.h:  Update copyright years.
3885 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
3887         * include/bits/gslice.h (gslice):  Document.
3888         * include/bits/gslice_array.h (gslice_array):  Document.
3889         * include/bits/indirect_array (indirect_array):  Document.
3890         * include/bits/mask_array (mask_array):  Document.
3891         * include/bits/slice_array.h (slice,slice_array):  Document.
3892         * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
3893         adjacent_difference):  Document
3894         * include/std/std_valarray.h (valarray):  Document.
3896 2004-02-02  Benjamin Kosnik  <bkoz@redhat.com>
3898         * docs/html/19_diagnostics/howto.html: Move verbose terminate
3899         documentation...
3900         * docs/html/18_support/howto.html: Here.
3901         * docs/html/documentation.html: Add reference here.
3903 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
3905         * config/locale/gnu/c++locale_internal.h: Remove prototypes
3906         of no longer used GLIBC thread locale functions.
3908 2004-02-02  Eric Christopher  <echristo@redhat.com>
3909             Zack Weinberg  <zack@codesourcery.com>
3911         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
3912         -finput-charset.
3913         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
3914         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
3915         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
3916         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
3917         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
3918         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
3919         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
3920         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3921         Ditto.
3923 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
3925         * include/bits/stl_function.h: Additional minor tweaks.
3926         * include/bits/stl_multiset.h: Likewise.
3928         * include/bits/stl_queue.h: Minor tweaks.
3930 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
3932         PR libstdc++/13976 (continued)
3933         * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
3934         Make the second parameter unnamed, to void unused parameter
3935         warnings.
3936         * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
3938 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
3940         PR libstdc++/13976
3941         * include/ext/malloc_allocator.h (malloc_allocator::allocate):
3942         Make the second parameter unnamed, to void unused parameter
3943         warnings.
3944         * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
3945         * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
3947 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
3949         * include/bits/stl_algo.h: Additional minor tweaks.
3950         * include/bits/stl_map.h: Likewise.
3951         * include/bits/stl_multimap.h: Likewise.
3952         * include/bits/stl_multiset.h: Likewise.
3953         * include/bits/stl_set.h: Likewise.
3954         * include/bits/stl_tree.h: Likewise.
3956 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
3958         * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
3959         Remove, unused.
3961 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
3963         * include/bits/stl_function.h: Additional minor tweaks.
3965 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
3967         * include/bits/deque.tcc: Wrap overlong lines, constify
3968         a few variables, reformat according to the coding standards.
3969         * include/bits/list.tcc: Likewise.
3970         * include/bits/stl_deque.h: Likewise.
3971         * include/bits/stl_function.h: Likewise.
3972         * include/bits/stl_iterator.h: Likewise.
3973         * include/bits/stl_iterator_base_funcs.h: Likewise.
3974         * include/bits/stl_iterator_base_types.h: Likewise.
3975         * include/bits/stl_list.h: Likewise.
3976         * include/bits/stl_map.h: Likewise.
3977         * include/bits/stl_multimap.h: Likewise.
3978         * include/bits/stl_multiset.h: Likewise.
3979         * include/bits/stl_relops.h: Likewise.
3980         * include/bits/stl_set.h: Likewise.
3982 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
3984         * include/bits/stl_bvector.h: Wrap overlong lines, constify
3985         a few variables, reformat according to the coding standards.
3986         * include/bits/stl_tree.h: Likewise.
3988 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
3990         * include/bits/stl_algo.h: Minor additional reformat, add
3991         copyright year.
3992         * include/bits/stl_algobase.h: Add copyright year.
3994 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
3996         * include/bits/stl_algo.h: Wrap overlong lines, constify
3997         a few variables, reformat according to the coding standards.
3998         * include/bits/stl_algobase.h: Likewise.
3999         * include/bits/stl_heap.h: Likewise.
4001 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
4003         * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
4005         * include/bits/basic_string.h: Fix two comments.
4007 2004-01-31  Per Bothner  <per@bothner.com>
4009         * include/ext/mt_allocator.h
4010         (__mt_alloc::_S_thread_freelist_mutex): Guard with
4011         __GTHREAD_MUTEX_INIT.
4013 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
4015         * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
4017 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
4019         * testsuite/21_strings/basic_string/cons/char/6.cc: New.
4020         * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
4021         * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
4023 2004-01-30  Felix Yen  <fwy@alumni.brown.edu>
4025         * testsuite/performance/20_util/allocator_thread.cc (do_loop):
4026         Don't use clear, but instead assign. Use insert.
4028 2004-01-30  Benjamin Kosnik  <bkoz@redhat.com>
4030         * src/demangle.cc: Add instantiations.
4031         * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
4032         * src/Makefile.in: Regenerate.
4034 2004-01-30  David Edelsohn  <edelsohn@gnu.org>
4036         * src/allocator.cc: Protect _S_get_thread_id() and
4037         _S_thread_key_destr() with #ifdef __GTHREADS.
4039 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
4041         Reshuffle performance testsuite.
4042         * testsuite/performance/allocator.cc, allocator_map_thread.cc,
4043         allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
4044         cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
4045         fstream_seek_write.cc, ifstream_extract_float.cc,
4046         ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
4047         list_create_fill_sort.cc, map_create_fill.cc,
4048         narrow_widen_char.cc, narrow_widen_wchar_t.cc,
4049         ofstream_insert_float.cc, ofstream_insert_int.cc,
4050         string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
4051         wchar_t_out.cc: Split into...
4052         * testsuite/performance/20_util/allocator.cc: New.
4053         * testsuite/performance/20_util/allocator_map_thread.cc: New.
4054         * testsuite/performance/20_util/allocator_thread.cc: New.
4055         * testsuite/performance/21_strings/string_append: New.
4056         * testsuite/performance/22_locale/is_wchar_t.cc: New.
4057         * testsuite/performance/22_locale/narrow_widen_char.cc: New.
4058         * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
4059         * testsuite/performance/22_locale/wchar_t_in.cc: New.
4060         * testsuite/performance/22_locale/wchar_t_length.cc: New.
4061         * testsuite/performance/22_locale/wchar_t_out.cc: New.
4062         * testsuite/performance/23_containers/container_benchmark.cc: New.
4063         * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
4064         * testsuite/performance/23_containers/map_create_fill.cc: New.
4065         * testsuite/performance/26_numerics/complex_norm.cc: New.
4066         * testsuite/performance/27_io/cout_insert_int.cc: New.
4067         * testsuite/performance/27_io/filebuf_copy.cc: New.
4068         * testsuite/performance/27_io/filebuf_sputc.cc: New.
4069         * testsuite/performance/27_io/fstream_seek_write.cc: New.
4070         * testsuite/performance/27_io/ifstream_extract_float.cc: New.
4071         * testsuite/performance/27_io/ifstream_extract_int.cc: New.
4072         * testsuite/performance/27_io/ifstream_getline.cc: New.
4073         * testsuite/performance/27_io/ofstream_insert_float.cc: New.
4074         * testsuite/performance/27_io/ofstream_insert_int.cc: New.
4076 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
4078         * include/bits/basic_string.tcc (_Rep::_S_create):
4079         Never allocate a string bigger than max_size(); always keep
4080         __capacity and __size in sync to avoid memory leaks at
4081         deallocation time.
4083 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
4085         * include/bits/basic_string.tcc (_S_construct(_InIterator,
4086         _InIterator, const _Alloc&, input_iterator_tag)): Simplify
4087         the double loop, streamline.
4089         * include/bits/basic_string.tcc: Very minor tweaks.
4091 2004-01-30  Loren J. Rittle  <ljrittle@acm.org>
4093         * scripts/check_performance: Only compile with $THREAD_FLAG
4094         when test is marked to require it.  Allow multiple
4095         compilations/executions of marked tests.
4096         * testsuite/testsuite_performance.h (report_performance):
4097         Report dynamic thread support status.
4098         (report_header): Likewise.
4099         * testsuite/performance/allocator.cc: Stabilize iteration
4100         count.  Support more allocators.  Mark each allocator test to
4101         run and report independently.
4102         * testsuite/performance/allocator_map_thread.cc: Likewise.
4103         * testsuite/performance/allocator_thread.cc: Likewise.
4105 2004-01-29  Stephen M. Webb  <stephen.webb@bregmasoft.com>
4107         * config/local/generic/c_locale.h: Change ::malloc() to new char[].
4108         * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
4109         * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
4110         std::get_temporary_buffer() instead of duplicating its code.
4111         Update to C++STYLE conventions.
4112         * include/std/std_memory.h (get_temporary_buffer): Use ::operator
4113         new() instead of std::malloc().
4114         (return_temporary_buffer): Use ::operator delete() instead of
4115         std::free().
4117 2004-01-29  Benjamin Kosnik  <bkoz@redhat.com>
4119         * include/bits/allocator.h: Temporary switch to new_allocator as
4120         the default to unjam bootstraps.
4122 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
4124         * include/Makefile.am (bits_headers): Remove allocator_traits.h.
4125         * include/Makefile.in: Regenerate.
4126         * include/bits/allocator_traits.h: Remove.
4127         * include/bits/allocator.h: Remove allocator_traits.h include, and
4128         relevant comments.
4129         (allocator): Empty base class, inherit from the underlying allocator.
4130         * src/allocator-inst.cc: Move __pool_alloc instantiation to...
4131         * src/allocator.cc: ...here. New. For the underlying allocators.
4132         Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
4133         * config/linker-map.gnu: Remove __pool_alloc bits.
4134         * src/Makefile.am (sources): Add allocator.cc.
4135         * src/Makefile.in: Regenerate.
4136         * testsuite/20_util/allocator/1.cc: Split second test into...
4137         * testsuite/20_util/allocator/8230.cc: ...this.
4138         * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
4139         typedef to use std::allocatore. Format.
4140         * include/ext/pool_allocator.h: Remove allocator_traits.h include,
4141         _Alloc_traits.
4142         * include/ext/mt_allocator.h (__gnu_cxx): Qualify
4143         __throw_bad_alloc calls. Don't include <memory>.
4144         * include/ext/malloc_allocator.h: Remove <memory> include.
4145         * include/ext/new_allocator.h (new_allocator): Same.
4146         * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
4147         declaration. Switch __alloc to _Alloc.
4148         * include/ext/hashtable.h: Remove __alloc.
4149         * include/backward/alloc.h: Only inject allocator, not
4150         implementation details.
4152         * include/ext/mt_allocator.h: Replace free with delete.
4154 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
4156         * src/globals_io.cc: Change to __gnu_internal namespace.
4157         * src/globals_locale.cc: Same.
4158         * src/locale_init.cc: Same.
4159         * src/ios_init.cc: Same.
4161 2004-01-28  Stefan Olsson  <stefan@snon.net>
4163         * include/ext/mt_allocator.h: Replaced all malloc() calls with
4164         operator new(). Added support for the env variable
4165         GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
4166         one in allocate() as well). Fix typos.
4168 2004-01-28  Paolo Carlini  <pcarlini@suse.de>
4170         * include/bits/basic_string.h (_S_create(size_t,
4171         const _Alloc&): Change signature to take two size_type
4172         arguments.
4173         * include/bits/basic_string.tcc (_S_construct(_InIterator,
4174         _InIterator, const _Alloc&, input_iterator_tag)): Update
4175         call, tweak a bit.
4176         (_S_construct(_InIterator, _InIterator, const _Alloc&,
4177         forward_iterator_tag)): Likewise.
4178         (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
4179         (_M_mutate(size_type, size_type, size_type)): Don't
4180         implement the exponential growth policy, demand it to
4181         _S_create, update call and simplify.
4182         (_M_clone(const _Alloc&, size_type)): Likewise.
4183         (_S_create(size_type, size_type, const _Alloc&)): Implement
4184         the growth policy, simplify otherwise.
4186         * include/bits/basic_string.h (_Rep::operator[]): Tweak
4187         signature to take a size_type, consistently with the other
4188         members.
4190 2004-01-27  Benjamin Kosnik  <bkoz@redhat.com>
4192         * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
4193         delete declarations, add include and test variable.
4195 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
4197         * include/bits/codecvt.h, include/bits/locale_facets.h,
4198         include/bits/postypes.h, include/bits/stl_bvector.h,
4199         include/bits/stl_multiset.h, include/bits/stl_set.h,
4200         include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
4201         include/std/std_complex.h:  Document.
4203 2004-01-27  Jerry Quinn  <jlquinn@optonline.net>
4205         PR libstdc++/11584
4206         * include/bits/ios_base.h (ios_base::_M_grow_words):  Add
4207         iword/pword selector.
4208         (ios_base::iword, ios_base::pword):  Use it.
4209         * src/ios.cc (ios_base::_M_grow_words):  Clear _M_word_zero
4210         iword or pword member on alloc failure.
4211         * testsuite/27_io/ios_base/storage/11584.cc:  New test.
4213 2004-01-27  Ulrich Weigand  <uweigand@de.ibm.com>
4214             PJ Darcy  <darcypj@us.ibm.com>
4216         * configure.host: Add support for *-tpf.
4217         * crossconfig.m4: Likewise.
4218         * configure: Regenerate.
4219         * config/os/tpf: New directory.
4220         * config/os/tpf/os_defines.h: New file.
4221         * config/os/tpf/ctype_base.h: Likewise.
4222         * config/os/tpf/ctype_inline.h: Likewise.
4223         * config/os/tpf/ctype_noninline.h: Likewise.
4225 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
4227         PR libstdc++/13884
4228         * include/bits/sstream.tcc: Guard use of extern template.
4230 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
4232         * include/bits/basic_string.tcc
4233         (basic_string(const basic_string&, size_type, size_type),
4234         basic_string(const basic_string&, size_type, size_type,
4235         const _Alloc&)): Avoid unnecessarily constructing iterators.
4237 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
4239         * config/locale/generic/c_locale.cc: Fix throw messages
4240         to use the __N marker.
4241         * config/locale/gnu/c_locale.cc: Likewise.
4242         * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
4243         Likewise.
4244         * docs/html/17_intro/C++STYLE: Likewise.
4245         * include/bits/basic_ios.tcc: Likewise.
4246         * include/bits/fstream.tcc: Likewise.
4247         * include/bits/vector.tcc: Likewise.
4248         * include/ext/ropeimpl.h: Likewise.
4249         * include/std/std_bitset.h: Likewise.
4250         * src/ios.cc: Likewise.
4251         * src/locale.cc: Likewise.
4252         * src/localename.cc: Likewise.
4254 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
4256         * include/bits/basic_string.h (_M_replace_aux): Use the
4257         __N marker in throw message.
4258         * include/bits/basic_string.tcc (assign(const _CharT*,
4259         size_type), insert(size_type, const _CharT*, size_type),
4260         replace(size_type, size_type, const _CharT*, size_type),
4261         reserve, _Rep::_S_create, resize, _M_replace_dispatch):
4262         Likewise.
4264         * include/bits/basic_string.h, include/bits/basic_string.tcc:
4265         Fold overlong lines, minor formatting changes.
4267 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
4269         * include/bits/basic_string.h (replace(iterator, iterator,
4270         const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
4271         (replace(iterator, iterator, const _CharT*)): Ditto.
4272         (replace(iterator, iterator, const _CharT*, size_type)):
4273         Add missing _GLIBCXX_DEBUG_PEDASSERT.
4275 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
4277         * include/bits/basic_string.tcc (replace(size_type,
4278         size_type, const _CharT*, size_type)): Implement optimized
4279         in-place algorithm for non-overlapping ranges.
4280         * testsuite/21_strings/basic_string/replace/char/6.cc: New.
4281         * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
4283         * include/bits/basic_string.tcc (insert(size_type,
4284         const _CharT*, size_type)): Tweak slightly.
4286 2004-01-26  Andreas Schwab  <schwab@suse.de>
4288         * config/locale/gnu/monetary_members.cc: Restore locale before
4289         rethrowing exception.
4291 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
4293         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
4294         Define inline here.
4295         * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
4296         Move inline.
4298         * include/bits/basic_string.tcc: Very minor tweaks.
4300 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
4302         * testsuite/performance/string_append.cc: Increase number
4303         of iterations.
4305 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
4307         * include/bits/basic_string.h (erase(size_type, size_type),
4308         erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
4309         instead, thus avoiding redundant check for length_error.
4311         * include/bits/basic_string.h: Tweak some comments.
4313 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
4315         * include/bits/basic_string.tcc (operator+(const _CharT*,
4316         const basic_string&)): No need to go through the append
4317         taking two iterators.
4319 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
4321         * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
4322         Revert last change to use std::min: machine language is worse.
4323         (find_last_of(const _CharT*, size_type, size_type)): Ditto.
4324         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4325         (find_last_not_of(_CharT, size_type)): Ditto.
4327         * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
4328         size_type)): Discard the value returned by _M_check.
4329         (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
4330         (append(const basic_string&, size_type, size_type)): Ditto.
4331         (copy(_CharT*, size_type, size_type)): Ditto.
4332         (compare(size_type, size_type, const basic_string&)): Ditto.
4333         (compare(size_type, size_type, const basic_string&,
4334         size_type, size_type)): Ditto.
4335         (compare(size_type, size_type, const _CharT*)): Ditto.
4336         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
4338 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
4340         * include/bits/basic_string.h (insert(size_type,
4341         const basic_string&, size_type, size_type)): Define inline here.
4342         * include/bits/basic_string.tcc (insert(size_type,
4343         const basic_string&, size_type, size_type)): Move inline.
4345 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
4347         * include/bits/basic_string.h (assign(const basic_string&,
4348         size_type, size_type)): Define inline here.
4349         (replace(size_type, size_type, const basic_string&,
4350         size_type, size_type)): Ditto.
4351         (_M_replace_dispatch(iterator, iterator, _InputIterator,
4352         _InputIterator, __false_type)): Only declare.
4353         (_M_replace(iterator, iterator, _InputIterator,
4354         _InputIterator)): Remove.
4355         * include/bits/basic_string.tcc (assign(const basic_string&,
4356         size_type, size_type)): Move inline.
4357         (replace(size_type, size_type, const basic_string&,
4358         size_type, size_type)): Ditto.
4359         (_M_replace_dispatch(iterator, iterator, _InputIterator,
4360         _InputIterator, __false_type)): Define, now does also what
4361         _M_replace did before.
4362         * src/string-inst.cc (_M_replace): Don't instantiate.
4364         * include/bits/basic_string.tcc (find(const _CharT*,
4365         size_type, size_type)): Tidy.
4366         (rfind(_CharT, size_type)): Ditto.
4367         (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
4368         (find_first_not_of(_CharT, size_type)): Ditto.
4369         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4370         (find_last_not_of(_CharT, size_type)): Ditto.
4372 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
4374         PR libstdc++/13838
4375         * include/debug/bitset (operator|=): Fix typo.
4376         * testsuite/23_containers/bitset/operations/13838.cc: New.
4378 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
4380         * include/bits/basic_string.tcc (insert(size_type,
4381         const _CharT*, size_type __n)): Fix length_error check.
4382         (replace(size_type, size_type, const _CharT*, size_type):
4383         Ditto; call _M_replace_safe.
4384         (_M_replace_aux(size_type, size_type, size_type, _CharT):
4385         Fix length_error check.
4386         (_M_replace(iterator, iterator, _InputIterator,
4387         _InputIterator)): Ditto, tweak.
4388         (_M_replace_safe(size_type, size_type, const _CharT*,
4389         size_type)): Remove length_error check.
4391         * include/bits/basic_string.tcc (append(const basic_string&),
4392         append(const basic_string&, size_type, size_type)): Tweak
4393         comment.
4395         * include/bits/basic_string.tcc (copy(_CharT*, size_type,
4396         size_type)): If __n == 0 don't call traits::copy.
4398 2004-01-23  Stefan Olsson  <stefan@snon.net>
4400         * include/ext/mt_allocator.h: Reduce lock contention.
4402 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
4404         PR libstdc++/13831
4405         * include/bits/fstream.tcc (underflow): Remove unused
4406         variable.
4407         * include/bits/streambuf_iterator.h (equal): Ditto.
4408         * include/bits/locale_facets.h (_M_convert_from_char):
4409         Ditto.
4411 2004-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4413         PR c/13814
4414         * config/linker-map.gnu (nan): Delete.
4415         * libmath/mathconf.h (NAN, nan): Delete.
4416         * linkage.m4 (nan): Don't check for it.
4417         * libmath/nan.c: Delete file.
4419         * config.h.in, configure: Regenerate.
4421 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
4423         * include/bits/basic_string.h (push_back(_CharT)):
4424         Call _M_replace_aux.
4425         (insert(size_type, const basic_string&)): Trivial tweak.
4426         (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
4427         (insert(iterator, _CharT)): Ditto.
4428         (erase(size_type, size_type)): Ditto.
4429         (erase(iterator)): Ditto.
4430         (erase(iterator, iterator)): Ditto.
4431         (replace(size_type, size_type, size_type, _CharT)): Ditto.
4433 2004-01-23  Loren J. Rittle  <ljrittle@acm.org>
4435         libstdc++/13823
4436         * testsuite/performance/allocator_map_thread.cc: New test.
4438 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
4440         * include/bits/locale_facets.tcc
4441         (money_put::do_put(..., long double)): Use the basic_string
4442         constructor for char arrays, not that for C-strings, to pass
4443         __digits to do_put(..., const string_type&): __ws isn't
4444         null-terminated.
4446 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
4448         * include/bits/basic_string.h (_M_replace_safe): Change
4449         signatures to take size_types and const _CharT*.
4450         (_M_replace_aux): Likewise, takes size_types instead of
4451         iterators.
4452         (append(size_type, _CharT)): Update call.
4453         (assign(size_type, _CharT)): Ditto.
4454         (replace(iterator, iterator, size_type, _CharT)): Ditto.
4455         (_M_replace_dispatch(iterator, iterator, _Integer,
4456         _Integer, __true_type)): Ditto.
4457         * include/bits/basic_string.tcc (assign(const _CharT*,
4458         size_type)): Ditto.
4459         (insert(size_type, const _CharT*, size_type)): Ditto.
4460         (replace(size_type, size_type, const _CharT*,
4461         size_type)): Ditto.
4462         (_M_replace(iterator, iterator, _InputIterator,
4463         _InputIterator)): Ditto.
4464         (append(const basic_string&)): Ditto.
4465         (append(const basic_string&, size_type, size_type): Ditto.
4466         (append(const _CharT*, size_type): Ditto.
4467         (_M_replace_safe, _M_replace_safe): Change definitions
4468         accordingly, simplify.
4469         * string-inst.cc (_M_replace_safe): Don't instantiate.
4471 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
4473         * include/bits/basic_string.tcc (append(const basic_string&)):
4474         Revert previous change.
4475         (append(const basic_string&, size_type, size_type)): Revert
4476         previous change, use _M_check and _M_limit.
4478 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
4480         * include/bits/basic_string.h (_M_check): Change to return
4481         a checked __pos and take an additional const char* argument.
4482         (_M_fold): Rename to _M_limit, change to return a size_type,
4483         corresponding to the __off limited to the actual length.
4484         (insert(size_type, size_type, _CharT)): Update call, call
4485         replace.
4486         (insert(iterator, _CharT)): Call replace(iterator, iterator,
4487         size_type, _CharT) instead.
4488         (erase(size_type, size_type)): Update calls.
4489         (replace(size_type, size_type, size_type, _CharT)): Ditto.
4490         (substr(size_type, size_type)): Use _M_check.
4491         * include/bits/basic_string.tcc (basic_string(const basic_string&,
4492         size_type, size_type)): Update calls.
4493         (basic_string(const basic_string&, size_type, size_type,
4494         const _Alloc&)): Ditto.
4495         (assign(const basic_string&, size_type, size_type)): Use the
4496         new _M_check and _M_limit.
4497         (insert(size_type, const basic_string&, size_type, size_type):
4498         Ditto.
4499         (insert(size_type, const _CharT*, size_type)): Ditto.
4500         (replace(size_type, size_type, const _CharT*, size_type): Ditto.
4501         (replace(size_type, size_type, const basic_string&,
4502         size_type, size_type)): Ditto.
4503         (append(const basic_string&)): Ditto.
4504         (append(const basic_string&, size_type, size_type)): Ditto.
4505         (copy(_CharT*, size_type, size_type)): Ditto.
4506         (compare(size_type, size_type, const basic_string&)): Ditto.
4507         (compare(size_type, size_type, const basic_string&,size_type,
4508         size_type)): Ditto.
4509         (compare(size_type, size_type, const _CharT*)): Ditto.
4510         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
4512 2004-01-19  Stefan Olsson  <stefan@snon.net>
4514         * include/ext/mt_allocator.h: If a thread, when it dies, still has
4515         memory on it's freelist this memory is not returned to global
4516         list. Simplification of deallocate so that memory is always
4517         returned to the calling thread id's freelist instead of to
4518         global. Fix typos. Add volatile where appropriate.
4520 2004-01-19  Loren J. Rittle  <ljrittle@acm.org>
4522         * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
4523         * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test.  Like -2 but
4524         use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
4526 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
4528         * src/debug.cc: Make sure all the names are prefixed with
4529         double (or single) underscore.
4531 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
4533         * src/debug.cc: Trivial formatting change.
4535 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
4537         * include/bits/basic_string.tcc (_S_construct(size_type,
4538         _CharT, const _Alloc&)): Remove redundant try/catch.
4539         (_M_mutate(size_type, size_type, size_type)): Ditto.
4540         (_M_clone(const _Alloc&, size_type)): Ditto.
4542 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
4544         * include/bits/basic_string.h (c_str()): Simplify, due to
4545         21.3.4 the internal representation is always kept null-terminated.
4546         * include/bits/basic_string.tcc (_M_clone): Null-terminate.
4547         * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
4548         * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
4549         Ditto.
4551 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
4553         * include/bits/basic_string.h (append(size_type, _CharT)):
4554         Moved inline, just call _M_replace_aux, no source iterators at
4555         risk of being clobbered.
4556         (assign(size_type, _CharT)): Call directly _M_replace_aux.
4557         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
4558         input_iterator_tag)): Remove fifth unused argument.
4559         (_M_replace_dispatch(iterator, iterator, _InputIterator,
4560         _InputIterator, __false_type)): Update call.
4561         * include/bits/basic_string.tcc (replace(size_type, size_type,
4562         const _CharT*, size_type)): Update call.
4563         (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
4564         throw string literal.
4565         (_M_replace_safe(iterator, iterator, _ForwardIterator,
4566         _ForwardIterator)): Likewise.
4567         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
4568         input_iterator_tag)): Remove fifth unused argument.
4569         (append(size_type __n, _CharT __c)): Move inline.
4570         * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
4571         const C*, const C*, input_iterator_tag)): Remove fifth unused
4572         argument.
4574 2004-01-16  Benjamin Kosnik  <bkoz@redhat.com>
4576         * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
4577         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
4579 2004-01-16  Danny Smith  <dannysmith@users.sourceforge.net>
4581         * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
4582         mkfifo for mingw32.
4584 2004-01-15  Stefan Olsson  <stefan@snon.net>
4586         * include/ext/mt_allocator.h: Reuse thread id's as soon as
4587         possible by changing the behaviour of thread_freelist to do
4588         push_front when threads die instead of push_back.
4590 2004-01-14  Paolo Carlini  <pcarlini@suse.de>
4592         * include/bits/locale_facets.h (struct __numpunct_cache):
4593         Add member _M_grouping_size, caching the length of _M_grouping.
4594         (__numpunct_cache<>::_M_cache): Assign the latter.
4595         (__verify_grouping): Move declaration...
4596         * include/bits/locale_facets.tcc (__verify_grouping):
4597         ... here, change signature to take a const char* and a size_t
4598         for the grouping; not a template anymore.
4599         (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
4600         Likewise change signature and tweak consistently.
4601         (num_get::_M_extract_float, num_get::_M_extract_int,
4602         num_put::_M_insert_int, num_put::_M_insert_float,
4603         money_get::do_get(string_type&), money_get::do_put(string_type)):
4604         Update callers.
4605         * config/locale/generic/numeric_members.cc
4606         (numpunct<>::_M_initialize_numpunct): Assign the new member.
4607         * config/locale/gnu/numeric_members.cc
4608         (numpunct<>::_M_initialize_numpunct): Likewise.
4609         * src/locale-inst.cc (__add_grouping): Tweak signature.
4610         (__verify_grouping): Don't instantiate, not a template anymore.
4612         * include/bits/locale_facets.h: Rename _M_truename_len ->
4613         _M_truename_size, _M_falsename_len -> _M_falsename_size.
4614         * include/bits/locale_facets.tcc: Likewise.
4615         * config/locale/generic/numeric_members.cc: Likewise.
4616         * config/locale/gnu/numeric_members.cc: Likewise.
4618 2004-01-14  Stefan Olsson  <stefan@snon.net>
4620         * include/ext/mt_allocator.h: Fixups.
4621         * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
4622         * testsuite/performance/allocator_thread.cc: Same.
4624 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
4626         * testsuite/performance/ifstream_extract_float.cc: Add higher
4627         precision tests.
4628         * testsuite/performance/ofstream_insert_float.cc: Same.
4630 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
4632         * src/locale-misc-inst.cc (__convert_from_v(long),
4633         __convert_from_v(unsigned long), __convert_from_v(long long),
4634         __convert_from_v(unsigned long long)): Remove, unused.
4636 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
4638         * testsuite/performance/ifstream_extract_float.cc: New.
4639         * testsuite/performance/ofstream_insert_float.cc: Float generation
4640         matches above.
4642         * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
4643         * 20_util/auto_ptr/1.cc: ...this.
4644         * 20_util/auto_ptr/2.cc: Same.
4645         * 20_util/auto_ptr/3.cc: Same.
4646         * 20_util/auto_ptr/3946.cc: Same.
4647         * 20_util/auto_ptr/4.cc: Same.
4648         * 20_util/auto_ptr/5.cc: Same.
4649         * 20_util/auto_ptr/6.cc: Same.
4650         * 20_util/auto_ptr/7.cc: Same.
4651         * 20_util/auto_ptr/assign_neg.cc
4652         * 20_util/pairs.cc: Break into...
4653         * 20_util/pair/1.cc: ...this.
4654         * 20_util/pair/2.cc: Same.
4655         * 20_util/pair/3.cc: Same.
4656         * 20_util/pair/4.cc: Same.
4658 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
4660         * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
4661         Set correctly just basefield, the only group that matters.
4663 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
4665         * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
4666         (_Rope_rep_base): Inherit directly from the rope allocator;
4667         use rebinding instead of _Alloc_traits; pick up data member
4668         from _Rope_rep_alloc_base.
4669         (_Rope_alloc_base): Eliminate.
4670         (_Rope_base): Inherit directly from the rope allocator; use
4671         rebinding instead of _Alloc_traits; pick up data member from
4672         _Rope_alloc_base.
4673         (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
4674         rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
4676 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
4678         PR libstdc++/13650
4679         * include/bits/basic_string.tcc (compare(size_type, size_type,
4680         const _CharT*, size_type)): Implement correctly the resolution
4681         of DR 5: basically, s is a char array, -not- a C string.
4682         * include/bits/basic_string.h: Tweak some comments.
4683         * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
4684         * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
4686 2004-01-12  Andreas Tobler  <a.tobler@schweiz.ch>
4688         * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
4689         Solaris.
4691 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
4693         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
4694         Use try_mkfifo.
4695         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
4696         Likewise.
4698 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
4700         * include/bits/locale_facets.h (struct __numpunct_cache):
4701         Add members _M_truename_len and _M_falsename_len, caching
4702         the lengths of _M_truename and _M_falsename.
4703         (__numpunct_cache<>::_M_cache): Assign the latter.
4704         * include/bits/locale_facets.tcc (num_get::do_get(bool&),
4705         num_put::do_put(bool)): Use the new members, thus avoiding
4706         computing string lengths again and again.
4707         * config/locale/generic/numeric_members.cc
4708         (numpunct<>::_M_initialize_numpunct): Assign the new members.
4709         * config/locale/gnu/numeric_members.cc
4710         (numpunct<>::_M_initialize_numpunct): Likewise.
4712 2004-01-12  Mark Mitchell  <mark@codesourcery.com>
4714         * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
4715         * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
4716         it.
4717         * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
4718         and remove Cygwin XFAIL.
4719         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
4720         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
4721         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
4722         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
4723         Likewise.
4724         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
4725         * testsuite/27_io/objects/char/7.cc: Likewise.
4726         * testsuite/27_io/objects/char/9661-1.cc: Likewise.
4727         * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
4728         * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
4730 2004-01-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4732         * include/std/std_complex.h (std::complex<>::real): Return a
4733         reference. Add non-const overload.
4734         (std::complex<>::real): Likewise.
4735         (std::real): Likewise.
4736         (std::imag): Likewise.
4737         (std::operator+): Tidy.
4738         (std::operator-): Likewise.
4739         (std::operator*): Likewise.
4740         (std::operator/): Likewise.
4741         (std::operator>>): Likewise.
4743 2004-01-11  Paolo Carlini  <pcarlini@suse.de>
4745         PR libstdc++/13582
4746         * include/bits/fstream.tcc (imbue): Exploit the external
4747         buffer to imbue 'on the fly' a new locale and convert its
4748         remainder with the new codecvt facet.
4749         (underflow): Tweak slightly to deal with this special case.
4750         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
4751         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
4752         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
4753         * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
4754         * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
4756 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
4758         * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
4759         Import Revision 28.
4761 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
4763         PR libstdc++/13630
4764         * include/bits/locale_classes.h (class locale): Fix category
4765         typedef.
4766         * testsuite/22_locale/locale/13630.cc: Add.
4768 2004-01-10  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
4770         * include/bits/locale_facets.h: Make a name really dependent. This
4771         will be needed when Core Issue 224 is implemented.
4773 2004-01-09  Paolo Carlini  <pcarlini@suse.de>
4775         * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
4776         * testsuite/performance/allocator_thread.cc: Likewise.
4778 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
4780         * crossconfig.m4: Add LFS, io bits to linux cross config.
4781         * acconfig.h: Remove obsolete bits, reorder.
4782         * config.h.in: Regenerate.
4783         * aclocal.m4: Same.
4784         * configure: Same.
4786 2004-01-07  Gawain Bolton  <gp.bolton@computer.org>
4788         * include/bits/stl_list.h:
4789         * include/bits/list.tc:
4790         * src/list.cc:
4791         Performance enhancements for destructor, push_front(),
4792         push_back(), pop_front(), pop_back(), sort()
4793         Eliminated static_casts where possible.
4794         Moved code out of header files into new src/list.cc
4795         implementation file for library where possible.
4796         Remove inheritance from iterator class and create separate
4797         classes for non-constant and constant iterators.
4798         * include/bits/stl_tree.h (_Rb_tree class):
4799         * src/tree.cc:
4800         Only erase contents in destructor.
4801         Eliminate unnecessary initialization in assignment operator.
4802         Optimize for the nominal case by not checking whether
4803         container is empty in clear().
4804         Re-order test in _M_insert() to improve performance.
4805         Move initialization of new node's left & right pointers to
4806         src/tree.cc to where new node's colour is initialized
4807         and to reduce the amount of inline code.
4808         Use  _M_leftmost() and _M_end() to improve readability where
4809         appropriate.
4810         Create separate classes for non-constant and constant
4811         iterators to clarify code, avoid extra template parameters and
4812         casting away constness.
4814 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
4816         * src/Makefile.am (sources): Add list.cc, tree.cc.
4817         * src/stl_tree.cc: Move to...
4818         * src/tree.cc: ...here.
4819         * src/list.cc: Add.
4820         * config/linker-map.gnu: Tweaks.
4821         * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
4822         * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
4824         * bits/stl_vector.h: Column wrap comments.
4826 2004-01-07  Loren J. Rittle  <ljrittle@acm.org>
4828         (re-open) PR libstdc++/12658
4829         * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
4830         (locale::global): Likewise.
4832 2004-01-07  Paolo Carlini  <pcarlini@suse.de>
4834         * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
4835         Remove redundant #include.
4836         * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
4837         * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
4838         re-enable normal testing.
4839         * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
4840         #include.
4841         * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
4842         * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
4843         Likewise.
4844         * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
4845         Likewise.
4846         * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
4847         Likewise.
4848         * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
4849         Likewise.
4850         * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
4851         Likewise.
4852         * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
4853         Likewise.
4854         * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
4855         Likewise.
4856         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
4857         More properly, #include <locale>.
4858         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
4859         Remove redundant #include.
4860         * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
4861         * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
4862         redundant DejaGnu directive.
4863         * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
4864         redundant #include.
4866 2004-01-06  Benjamin Kosnik  <bkoz@redhat.com>
4867             Stefan Olsson  <stefan@snon.net>
4869         * scripts/check_performance: Use -pthread.
4870         * testsuite/performance/allocator.cc: Tweaks, add list.
4871         * testsuite/performance/allocator_thread.cc: New.
4873 2004-01-06  Jerry Quinn  <jlquinn@optonline.net>
4875         * include/bits/locale_facets.h: Document public classes and
4876         functions.
4877         * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
4878         Add comment.
4880 2004-01-06  Paolo Carlini  <pcarlini@suse.de>
4882         * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
4883         Remove redundant #includes.
4884         * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
4885         Likewise.
4886         * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
4887         Likewise.
4888         * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
4889         * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
4890         * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
4891         * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
4892         * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
4893         * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
4894         * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
4895         * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
4896         * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
4897         * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
4898         * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
4899         * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
4900         * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
4901         * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
4902         * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
4903         Likewise.
4904         * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
4905         Likewise.
4906         * testsuite/27_io/basic_istream/readsome/char/8258.cc:
4907         Likewise.
4908         * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
4909         Likewise.
4910         * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
4911         Likewise.
4912         * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
4913         * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
4914         * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
4916 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
4918         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
4919         Remove redundant #includes.
4920         * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
4921         Likewise.
4922         * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
4923         Likewise.
4924         * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
4925         Likewise.
4926         * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
4927         Likewise.
4928         * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
4929         Likewise.
4930         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
4931         Likewise.
4932         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
4933         Likewise.
4934         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
4935         Likewise.
4936         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
4937         Likewise.
4938         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
4939         Likewise.
4940         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
4941         Likewise.
4942         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
4943         Likewise.
4945 2004-01-04  Mark Mitchell  <mark@codesourcery.com>
4947         PR c++/12226
4948         * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
4949         constructor.
4950         * testsuite/27_io/basic_fstream/4.cc: Likewise.
4951         * testsuite/27_io/basic_ifstream/4.cc: Likewise.
4952         * testsuite/27_io/basic_ios/4.cc: Likewise.
4953         * testsuite/27_io/basic_iostream/4.cc: Likewise.
4954         * testsuite/27_io/basic_istream/4.cc: Likewise.
4955         * testsuite/27_io/basic_istingstream/4.cc: Likewise.
4956         * testsuite/27_io/basic_ofstream/4.cc: Likewise.
4957         * testsuite/27_io/basic_ostream/4.cc: Likewise.
4958         * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
4959         * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
4960         * testsuite/27_io/basic_stringstream/4.cc: Likewise.
4962 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
4964         * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
4965         Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
4966         always use double underscored names.
4967         * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
4968         Likewise.
4969         * include/bits/locale_facets.h (struct __numpunct_cache):
4970         Dimension _M_atoms_out and _M_atoms_in one position smaller.
4971         (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out
4972         and _M_atoms_in.