OSDN Git Service

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