OSDN Git Service

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