OSDN Git Service

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