OSDN Git Service

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