OSDN Git Service

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