OSDN Git Service

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