OSDN Git Service

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