OSDN Git Service

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