OSDN Git Service

2004-03-19 Paolo Carlini <pcarlini@suse.de>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
2
3         PR libstdc++/14648
4         * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
5         memory allocation/deallocation calls.
6         * testsuite/ext/14648.cc: New.
7
8 2004-03-19  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
9
10         PR libstdc++/14647
11         * include/backward/bvector.h (bit_vector): Allocator is in std
12         namespace.
13
14 2004-03-19  Phil Edwards  <phil@codesourcery.com>
15
16         * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT):  Set LIBICONV,
17         not libiconv.  SUBST this variable as well.
18         * testsuite/Makefile.am (site.exp):  New target, based on that
19         created by automake.  Also set libiconv.
20
21         * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
22         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
23         testsuite/Makefile.in:  Regenerate.
24
25 2004-03-16  Benjamin Kosnik  <bkoz@redhat.com>
26
27         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
28         new_allocator for all hosts.
29         * configure: Regenerate.
30         
31 2004-03-16  Paolo Carlini  <pcarlini@suse.de>
32
33         * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
34         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
35         
36 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
37
38         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
39         Adjust the logic underlying the parsing of symbol to deal
40         correctly with an optional sign component (i.e., when either
41         negative_sign or positive_sign is empty) 
42         * testsuite/22_locale/money_get/get/char/19.cc: New.
43         * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
44
45 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
46
47         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
48         Do not accept an incomplete currency symbol.
49         * testsuite/22_locale/money_get/get/char/18.cc: New.
50         * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
51
52 2004-03-13  Benjamin Kosnik  <bkoz@redhat.com>
53
54         * config/allocator: New.
55         * config/allocator/bitmap_allocator_base.h: New.
56         * config/allocator/malloc_allocator_base.h: New.
57         * config/allocator/mt_allocator_base.h: New.
58         * config/allocator/new_allocator_base.h: New.
59         * include/bits/allocator.h: Include c++allocator.h.
60         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
61         * aclocal.m4: Regenerate.
62         * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR. 
63         * configure: Regenerate.
64         * include/Makefile.am (host_headers_extra): Add c++allocator.h.
65         * include/Makefile.in: Regenerate.
66         * docs/html/configopts.html: Add enable-libstdcxx-allocator.
67
68 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
69
70         * include/bits/allocator.h: Revert.
71
72 2004-03-12  Paolo Carlini  <pcarlini@suse.de>
73
74         * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
75         * include/bits/gslice_array.h: Add comment about DR 253.
76         * include/bits/indirect_array.h: Likewise.
77         * include/bits/mask_array.h: Likewise.
78         * include/bits/slice_array.h: Likewise.
79
80 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
81
82         * testsuite/20_util/allocator/14176.cc: New.
83         * include/ext/mt_allocator.h: Formatting fixes.
84         
85 2004-03-11  Dhruv Matani  <dhruvbird@HotPOP.com>
86
87         * include/Makefile.am (ext_headers): Add
88         ${ext_srcdir}/bitmap_allocator.h .
89         * include/Makefile.in: Regenerate.
90         * docs/html/ext/ballocator_doc.txt: New file.
91         * include/ext/bitmap_allocator.h: New file.
92         * testsuite/performance/20_util/allocator/list_sort_search.cc: Add 
93         test.
94         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
95         * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
96         test for the bitmap_allocator<>.
97         * testsuite/performance/20_util/allocator/insert.cc: Likewise.
98         * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
99         * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
100
101 2004-03-11  Paolo Carlini  <pcarlini@suse.de>
102
103         * include/std/std_complex.h (pow(const complex&, const _Tp&),
104         pow(const _Tp&, const complex&), pow(const complex&,
105         const complex&)): Fully qualify with std:: a few calls.
106         * testsuite/26_numerics/complex/13450.cc: Minor tweak.
107
108 2004-03-11  Steven Bosscher  <stevenb@suse.de>
109
110         PR libstdc++/11706
111         * include/c_std/cmath.tcc (__cmath_power): Define inline.
112
113 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
114
115         * configure.ac: Bump AC_PREREQ to 2.59.
116
117 2004-03-10  Paolo Carlini  <pcarlini@suse.de>
118
119         * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
120
121 2004-03-10  Paul Kienzle  <pkienzle@nist.gov>
122             Paolo Carlini  <pcarlini@suse.de>
123
124         PR libstdc++/13450
125         * include/std/std_complex.h (pow(const complex&, const _Tp&),
126         pow(const _Tp&, const complex&)): Use cmath pow only when safe.
127         * testsuite/26_numerics/complex/13450.cc: New.
128
129         * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
130         * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
131
132 2004-03-10  Jerry Quinn  <jlquinn@optonline.net>
133
134         PR libstdc++/3247
135         * include/bits/gslice_array.h (gslice_array()): Make public.
136         (operator=(gslice_array)): Make public.  Implement.
137         * include/bits/indirect_array.h (indirect_array()): Make public.
138         * include/bits/mask_array.h (mask_array()): Make public.
139         (operator=(mask_array)): Make public.  Implement.
140         * include/bits/valarray_array.tcc (__valarray_copy):
141         Comment.  Add versions for gslice_array and mask_array.
142         * testsuite/26_numerics/valarray_subset_assignment.cc:  New test.
143
144 2004-03-09  Benjamin Kosnik  <bkoz@redhat.com>
145
146         * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
147         non-weak systems.
148         * testsuite/23_containers/vector/modifiers/swap.cc: Same.
149         * testsuite/23_containers/set/modifiers/swap.cc: Same.
150         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
151         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
152         * testsuite/23_containers/map/modifiers/swap.cc: Same.
153         * testsuite/23_containers/list/modifiers/swap.cc: Same.
154
155         * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
156
157 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
158         
159         PR c++/13658
160         * testsuite/23_containers/deque/modifiers/swap.cc: New.
161         * testsuite/23_containers/list/modifiers/swap.cc: New.
162         * testsuite/23_containers/map/modifiers/swap.cc: New.
163         * testsuite/23_containers/multimap/modifiers/swap.cc: New.
164         * testsuite/23_containers/multiset/modifiers/swap.cc: New.
165         * testsuite/23_containers/set/modifiers/swap.cc: New.
166         * testsuite/23_containers/vector/modifiers/swap.cc: New.
167         
168 2004-03-08  Petur Runolfsson  <peturr02@ru.is>
169
170         PR libstdc++/12658
171         * testsuite/22_locale/locale/cons/12658_thread.cc: New.
172
173 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
174
175         * docs/html/ext/howto.html: Add entry for DR 103 [WP].
176         * include/bits/stl_multiset.h: Add comment about DR 103.
177         * include/bits/stl_set.h: Likewise.
178
179 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
180
181         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
182         The value _space_ indicates that at least one space is required
183         at that position.
184         * testsuite/22_locale/money_get/get/char/17.cc: New.
185         * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
186
187         * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
188         * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
189
190         * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
191         Remove redundant conditional on __str.size().
192         
193 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
194
195         * include/bits/allocator.h: Switch defaults to mt_alloc.
196
197 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
198
199         * include/ext/mt_allocator.h (_S_initialize): If
200         !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
201
202 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
203
204         PR libstdc++/12658
205         * src/locale_init.cc (locale::locale): Lock critical regions with
206         external mutexes.
207         (locale::global): Same. 
208         * include/bits/concurrence.h (__glibcxx_mutex_define_initialized): 
209         Add in once bits for cases without __GTHREAD_MUTEX_INIT.
210         (__glibcxx_mutex_lock): Same.
211
212         * config/cpu/generic/atomicity.h: Remove
213         _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
214         * src/misc-inst.cc: Move all locking bits out of this file.
215
216         * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
217         * src/misc-inst.cc: Same.
218         * config/cpu/hppa/atomicity.h: Same.
219
220         * config/linker-map.gnu: Remove types in the signature of atomic
221         exports, as they may vary.
222         
223 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
224
225         * include/bits/locale_facets.tcc: Tweak the comment preceding
226         has_facet: doesn't throw.
227
228 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
229
230         * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
231         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
232         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
233         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
234         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
235         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
236         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
237         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
238
239 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
240
241         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
242         num_get<>::_M_extract_int, num_get<>::do_get(bool&),
243         __pad<>::_S_pad): Prefer plain operator== to traits::eq().
244         * testsuite/testsuite_character.h (struct __gnu_test::character):
245         Provide operator==.
246         * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
247         Likewise.
248
249 2004-03-05  Paolo Carlini  <pcarlini@suse.de>
250
251         * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
252
253 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
254
255         * testsuite/23_containers/multiset/insert/1.cc: Test result string.
256
257         * testsuite/23_containers/bitset/invalidation/1.cc: Main always
258         returns 0.      
259         * testsuite/23_containers/deque/invalidation/4.cc: Same.
260         * testsuite/23_containers/list/invalidation/1.cc: Same.
261         * testsuite/23_containers/list/invalidation/2.cc: Same.
262         * testsuite/23_containers/list/invalidation/3.cc: Same.
263         * testsuite/23_containers/list/invalidation/4.cc: Same.
264         * testsuite/23_containers/map/invalidation/2.cc: Same.
265         * testsuite/23_containers/multimap/invalidation/1.cc: Same.
266         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
267         * testsuite/23_containers/multiset/invalidation/1.cc: Same.
268         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
269         * testsuite/23_containers/set/invalidation/1.cc: Same.
270         * testsuite/23_containers/set/invalidation/2.cc: Same.
271         * testsuite/23_containers/vector/invalidation/1.cc: Same.
272         * testsuite/23_containers/vector/invalidation/2.cc: Same.
273         * testsuite/23_containers/vector/invalidation/3.cc: Same.
274         * testsuite/23_containers/vector/invalidation/4.cc: Same.
275
276 2004-03-04  Paolo Carlini  <pcarlini@suse.de>
277
278         * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
279         CXXFLAGS_save.
280         * testsuite/lib/libstdc++.exp: Don't add it conditionally to
281         DEFAULT_CXXFLAGS. 
282         * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
283         from the dg-options.
284         * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
285         * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
286         * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
287         * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
288         * testsuite/23_containers/vector/resize/1.cc: Likewise.
289         * testsuite/26_numerics/complex_value.cc: Likewise.
290         * testsuite/27_io/ios_base/storage/1.cc: Likewise.
291         * testsuite/27_io/ios_base/storage/2.cc: Likewise.
292         * testsuite/27_io/ios_base/storage/3.cc: Likewise.
293         * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
294         * testsuite/27_io/objects/char/5.cc: Likewise.
295         * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
296         * testsuite/backward/11460.cc: Likewise.
297         * testsuite/thread/pthread7-rope.cc: Likewise.
298
299         * testsuite/21_strings/basic_string/compare/char/1.cc: Add
300         missing test variable.
301         * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
302         missing test variable.
303
304 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
305
306         * testsuite/20_util/allocator/1.cc: Provide explicit
307         instantiations for non-weak systems.
308         * testsuite/20_util/binders.cc: Same.
309         * testsuite/20_util/allocator/8230.cc: Same.
310         * testsuite/20_util/allocator/10378.cc: Same.
311         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
312         * testsuite/22_locale/ctype/is/char/2.cc: Same.
313         * testsuite/thread/pthread7-rope.cc: Same.
314         * testsuite/thread/pthread6.cc: Same.   
315         * testsuite/thread/pthread5.cc: Same.           
316         * testsuite/thread/pthread4.cc: Same.   
317         * testsuite/thread/pthread1.cc: Same.
318         * testsuite/ext/rope.cc: Same.
319         * testsuite/ext/hash_set.cc: Same.
320         * testsuite/ext/hash_map.cc: Same.      
321         * testsuite/ext/concept_checks.cc: Same.
322         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
323         * testsuite/25_algorithms/unique/2.cc: Same.
324         * testsuite/25_algorithms/unique/1.cc: Same.
325         * testsuite/25_algorithms/rotate.cc: Same.
326         * testsuite/25_algorithms/min_max.cc: Same.
327         * testsuite/25_algorithms/equal.cc: Same.       
328         * testsuite/24_iterators/rel_ops.cc: Same.
329         * testsuite/24_iterators/iterator.cc: Same.
330         * testsuite/24_iterators/insert_iterator.cc: Same.
331         * testsuite/24_iterators/front_insert_iterator.cc: Same.
332         * testsuite/24_iterators/back_insert_iterator.cc: Same.
333         * testsuite/23_containers/vector/resize/1.cc: Same.
334         * testsuite/23_containers/vector/modifiers/2.cc: Same.
335         * testsuite/23_containers/vector/modifiers/1.cc: Same.
336         * testsuite/23_containers/vector/invalidation/4.cc: Same.
337         * testsuite/23_containers/vector/invalidation/3.cc: Same.
338         * testsuite/23_containers/vector/invalidation/2.cc: Same.       
339         * testsuite/23_containers/vector/invalidation/1.cc: Same.
340         * testsuite/23_containers/vector/element_access/1.cc: Same.
341         * testsuite/23_containers/vector/cons/6513.cc: Same.
342         * testsuite/23_containers/vector/cons/3.cc: Same.
343         * testsuite/23_containers/vector/cons/2.cc: Same.
344         * testsuite/23_containers/vector/cons/1.cc: Same.
345         * testsuite/23_containers/vector/capacity/8230.cc: Same.
346         * testsuite/23_containers/vector/capacity/1.cc: Same.
347         * testsuite/23_containers/vector/bool/6886.cc: Same.
348         * testsuite/23_containers/stack/members/7158.cc: Same.
349         * testsuite/23_containers/set/invalidation/2.cc: Same.
350         * testsuite/23_containers/set/invalidation/1.cc: Same.
351         * testsuite/23_containers/queue/members/7157.cc: Same.
352         * testsuite/23_containers/priority_queue/members/7161.cc: Same.
353         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
354         * testsuite/23_containers/multiset/invalidation/2.cc: Same.     
355         * testsuite/23_containers/multiset/insert/1.cc: Same.
356         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
357         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
358         * testsuite/23_containers/map/operators/1.cc: Same.
359         * testsuite/23_containers/map/invalidation/2.cc: Same.
360         * testsuite/23_containers/map/invalidation/1.cc: Same.
361         * testsuite/23_containers/map/insert/1.cc: Same.
362         * testsuite/23_containers/list/operators/4.cc: Same.
363         * testsuite/23_containers/list/operators/3.cc: Same.
364         * testsuite/23_containers/list/operators/2.cc: Same.
365         * testsuite/23_containers/list/operators/1.cc: Same.
366         * testsuite/23_containers/list/modifiers/3.cc: Same.
367         * testsuite/23_containers/list/modifiers/2.cc: Same.
368         * testsuite/23_containers/list/modifiers/1.cc: Same.
369         * testsuite/23_containers/list/invalidation/4.cc: Same.
370         * testsuite/23_containers/list/invalidation/3.cc: Same.
371         * testsuite/23_containers/list/invalidation/2.cc: Same.
372         * testsuite/23_containers/list/invalidation/1.cc: Same. 
373         * testsuite/23_containers/list/cons/9.cc: Same.
374         * testsuite/23_containers/list/cons/8.cc: Same.
375         * testsuite/23_containers/list/cons/7.cc: Same.
376         * testsuite/23_containers/list/cons/6.cc: Same.
377         * testsuite/23_containers/list/cons/5.cc: Same.
378         * testsuite/23_containers/list/cons/4.cc: Same.
379         * testsuite/23_containers/list/cons/3.cc: Same.
380         * testsuite/23_containers/list/cons/2.cc: Same.
381         * testsuite/23_containers/list/cons/1.cc: Same.
382         * testsuite/23_containers/list/capacity/1.cc: Same.
383         * testsuite/23_containers/deque/operators/1.cc: Same.
384         * testsuite/23_containers/deque/invalidation/4.cc: Same.
385         * testsuite/23_containers/deque/invalidation/3.cc: Same.
386         * testsuite/23_containers/deque/invalidation/2.cc: Same.
387         * testsuite/23_containers/deque/invalidation/1.cc: Same.
388         * testsuite/23_containers/deque/cons/2.cc: Same.
389         * testsuite/23_containers/deque/cons/1.cc: Same.
390
391         * src/allocator.cc: Add char, wchar_t instantiations
392         to match extern template declarations in memory.h.
393
394 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
395
396         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
397         Fix warning regression.
398
399 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
400
401         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
402         Deal properly with empty __digits and negative frac_digits,
403         clean-up a bit.
404
405 2004-03-03  Jonathan Wakely  <redi@gcc.gnu.org>
406
407         * docs/html/documentation.html: Regenerate.
408
409 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
410
411         PR libstdc++/14320
412         * include/bits/postypes.h (class streamoff): Remove, now
413         streamoff is just typedef a 64 bit signed integer type.
414         (class fpos): Tweak consistently.
415         * testsuite/27_io/fpos/14320-1.cc: New.
416         * testsuite/27_io/fpos/14320-2.cc: New.
417         * testsuite/27_io/fpos/14320-3.cc: New.
418         * testsuite/27_io/fpos/14320-4.cc: New.
419         * testsuite/27_io/fpos/14320-5.cc: New.
420         * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
421
422 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
423
424         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
425         Reorganize a bit the main parsing loop, thus early detecting
426         an empty value component.
427         * testsuite/22_locale/money_get/get/char/16.cc: New.
428         * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
429
430 2004-03-02  Benjamin Kosnik  <bkoz@redhat.com>
431
432         Support automake 1.8.2
433         * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
434         * po/Makefile.am (EXTRA_DIST): New.
435         * po/Makefile.in: Regenerate.
436         * Makefile.in: Same.
437         * include/Makefile.in: Same.
438         * libmath/Makefile.in: Same.
439         * libsupc++/Makefile.in: Same.
440         * src/Makefile.in: Same.
441         * testsuite/Makefile.in: Same.
442
443         * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
444         __GXX_WEAK__ instead of SUPPORTS_WEAK.
445         (${host_builddir}/gthr-default.h): Same.
446         (${host_builddir}/gthr.h): Same.
447         * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
448         _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
449         -fno-weak.
450         * aclocal.m4: Regenerate.
451         * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
452         * config.h.in: Regenerate.
453         * configure: Same.
454         
455 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
456
457         Support autoconf 2.59
458         * acinclude.m4: Quote correctly.
459         * aclocal.m4: Regenerate.
460         * linkage.m4: Same.
461
462 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
463
464         * docs/html/test.html: Add multilib RUNTESTFLAGS example.
465
466         * docs/html/18_support/howto.html: Add bit about writing to
467         stderr, mostly by Zack.
468         
469 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
470
471         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
472         money_get<>::do_get(string_type&)): ... and two more.
473
474 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
475
476         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
477         Fix thinkos in the switch from string_type& to string& as last
478         argument.
479
480 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
481
482         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
483         Also when parsing exponent sign, first look for thousands_sep
484         and decimal_point; tweak a bit.
485         * testsuite/22_locale/num_get/get/char/15.cc: New.
486         * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
487         
488         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
489         num_get<>::_M_extract_int): Reorder some conditionals.
490
491 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
492
493         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
494         Consistently with numpunct, enforce the requirements in
495         22.2.6.3, p3 for the thousands separators; tweak a bit.
496         * testsuite/22_locale/money_get/get/char/15.cc: New.
497         * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
498         
499 2004-03-01  David Billinghurst <David.Billinghurst@riotinto.com>
500
501         * testsuite/lib/libstdc++.exp (v3-list-tests): Use 
502         testsuite_files from correct multilib blddir when running
503         testsuite.
504
505 2004-02-29  Phil Edwards  <phil@codesourcery.com>
506
507         * testsuite/Makefile.am (check-abi, check-abi-verbose):  Copy
508         the summary file to the logfile.
509         * testsuite/Makefile.in:  Regenerate.
510
511 2004-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
512
513         * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
514         volatile.
515         * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
516         __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
517
518 2004-02-28  Paolo Carlini  <pcarlini@suse.de>
519
520         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
521         According to 22.2.3.1, p2, 'units' may be followed by 'e' with
522         no 'decimal-point' in the middle: in this case too we must fix
523         up __found_grouping; slightly tweak.
524         * testsuite/22_locale/num_get/get/char/14.cc: New.
525         * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
526
527 2004-02-27  Eric Christopher  <echristo@redhat.com>
528             Phil Edwards  <phil@codesourcery.com>
529
530         * testsuite/22_locale/collate/compare/wchar_t/2.cc,
531         testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
532         testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
533         testsuite/22_locale/collate/hash/wchar_t/2.cc,
534         testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
535         testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
536         testsuite/22_locale/collate/transform/wchar_t/2.cc,
537         testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
538         testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
539         Use dg-require-iconv.
540         * testsuite/lib/libstdc++.exp:  Load target-supports.exp.
541
542 2004-02-27  Phil Edwards  <phil@codesourcery.com>
543             Eric Christopher  <echristo@redhat.com>
544
545         * testsuite/config/default.exp:  Update with comments.
546         (${tool}_target_compile):  New wrapper routine.
547         * testsuite/lib/dg-options.exp:  New file, with dg-require-iconv.
548         * testsuite/lib/libstdc++.exp:  Update with comments and cosmetic
549         fixes.
550         (load_gcc_lib, v3track):  New routines.
551         (v3-init):  Rename to libstdc++_init.
552         * testsuite/libstdc++-dg/normal.exp:  No longer call v3-init.
553         Move DEFAULT_CXXFLAGS handling into libstdc++_init.
554
555 2004-02-27  Benjamin Kosnik  <bkoz@redhat.com>
556
557         * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
558
559         * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
560
561         * config/os/irix/irix5.2/atomicity.h: Merge..
562         * config/os/irix/irix6.5/atomicity.h: Merge..
563         * config/os/irix/atomicity.h: ...into this.
564         * config/os/irix/atomic_word.h: New.
565         * configure.host: Set atomic_word_dir for irix.
566
567         * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
568         * i386/atomicity.h: Same.
569         * m68k/atomicity.h: Same.
570         * sparc/atomicity.h: Same.
571
572 2004-02-27  David Edelsohn  <edelsohn@gnu.org>
573
574         * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
575         static, and inline keywords.
576
577 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
578
579         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
580         num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
581         call reserve on the __tmp_gruping string.
582         (num_get<>::_M_extract_float): Don't append unnecessarily a
583         char() to the returned string.
584         * include/bits/locale_facets.tcc: Trivial reformattings.
585
586 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
587
588         * include/bits/locale_facets.h (money_get<>::_M_extract):
589         Change signature: now takes a plain string&.
590         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
591         Update consistently the definition; use the moneypunct cache
592         to parse the value; use swap to change __units.
593         (money_get<>::do_get(long double&)): Update call of _M_extract,
594         avoid ctype::narrow, not correct wrt the standard.
595         (money_get<>::do_get(string_type&)): Likewise, update call
596         of _M_extract, use ctype::widen.
597         * src/locale-inst.cc: Tweak instantiations of _M_extract.
598
599 2004-02-26  Ian Lance Taylor  <ian@wasabisystems.com>
600
601         * testsuite/demangle/abi_examples/01.cc: Expect error -2.
602         * testsuite/demangle/abi_examples/02.cc: Likewise.
603         * testsuite/demangle/regression/cw-11.cc: Likewise.
604         * testsuite/demangle/regression/cw-16.cc: Change two expected
605         results to match libiberty demangler output.
606
607 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
608
609         PR libstdc++/10246
610         * libsupc++/Makefile.am: Use libiberty demangler.
611         (c_sources): Add cp-demangle.c.
612         * libsupc++/Makefile.in: Regenerate.
613         * src/Makefile.am (sources): Remove demangle.cc.
614         * src/Makefile.in: Regenerate.
615         * include/Makefile.am (bits_headers): Move demangle.h.
616         (ext_headers): ...here.
617         * include/Makefile.in: Regenerate.
618         * include/bits/demangle.h: Move...
619         * include/ext/demangle.h: ...here.
620         * src/demangle.cc: Remove.
621
622 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
623  
624         * include/bits/demangle.h: Add type template parameter to all
625         templates with just an Allocator template parameter.
626  
627 2004-02-25  Benjamin Kosnik  <bkoz@redhat.com>
628
629         * include/bits/atomicity.h: New, forward declarations for __atomic_add
630         and __exchange_and_add.
631         * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
632         * config/cpu/cris/atomic_word.h: Same.
633         * config/cpu/sparc/atomic_word.h: Same.
634         * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
635         Qualifiy with __gnu_cxx.
636         (_Callback_list::_M_add_reference): Same.
637         * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
638         (locale::facet::_M_remove_reference): Same.
639         (locale::_Impl::_M_add_reference): Add.
640         (locale::_Impl::_M_remove_reference): Same.
641         * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
642         (basic_string::_Rep::_M_dispose): Same.
643         * src/ios.cc (ios_base::xalloc): Same.
644         * src/ios_init.cc (ios_base::Init::Init): Same.
645         (ios_base::Init::~Init): Same.
646         * src/locale.cc (locale::id::_M_id): Same.
647         * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
648         static, and inline keywords.
649         * config/cpu/alpha/atomicity.h: Same.
650         * config/cpu/cris/atomicity.h: Same.
651         * config/cpu/generic/atomicity.h: Same.
652         * config/cpu/hppa/atomicity.h: Same.
653         * config/cpu/i386/atomicity.h: Same.
654         * config/cpu/ia64/atomicity.h: Same.
655         * config/cpu/m68k/atomicity.h: Same.
656         * config/cpu/mips/atomicity.h: Same.
657         * config/cpu/powerpc/atomicity.h: Same.
658         * config/cpu/s390/atomicity.h: Same.
659         * config/cpu/sparc/atomicity.h: Same.
660         
661         * src/Makefile.am (host_sources): Add atomicity.cc.
662         (atomicity.cc): New rule.
663         * src/Makefile.in: Regenerate.
664         * include/Makefile.am (host_headers): Remove host atomicity.h.
665         (host_headers): Add atomic_word.h.
666         (bits_headers): Add bits atomicity.h.
667         Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
668         * include/Makefile.in: Regenerate.
669         * configure.host (atomic_word_dir): Add.
670         * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
671         ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
672         * configure: Regenerate.
673         * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
674
675         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
676         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.      
677         
678 2004-02-25  Jonathan Wakely  <redi@gcc.gnu.org>
679
680         * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
681         docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
682         Fix markup, more <link> tags.
683
684 2004-02-25  Carlo Wood  <carlo@alinoe.com>
685
686         * bits/demangle.h
687         namespace __gnu_cxx::demangler
688         (session<Allocator>::qualifier_list_Allocator): Add
689         (session<Allocator>::M_qualifier_list_alloc): Add
690         (session<Allocator>::decode_type_with_postfix):
691         Use M_qualifier_list_alloc instead of calling operator new/delete.
692
693 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
694
695         PR libstdc++/14252
696         * include/bits/postypes.h (class streamoff): Add operator++(),
697         operator++(int), operator--() and operator--(int).
698         * testsuite/27_io/fpos/14252.cc: New.
699
700 2004-02-24  Richard Sandiford  <rsandifo@redhat.com>
701
702         * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
703         error in handling of hex constants.
704
705 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
706
707         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
708         Prefer basic_string::append to operator+= and a temporary.
709
710 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
711
712         * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
713         Only use fputs, not write.
714         
715 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
716
717         * include/ext/malloc_allocator.h: Add operators ==, !=.
718         * include/ext/new_allocator.h: Add operators ==, !=.
719         * include/ext/mt_allocator.h (__mt_alloc::tune): New.
720         (__mt_alloc::_S_get_options): New.
721         (__mt_alloc::_S_set_options): New.      
722         (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
723         (__mt_alloc::_S_no_of_bins): To _S_bin_size.
724         Move functions out of line, simplify, format.
725         * src/allocator.cc: Simplify explicit instantiations.
726         * include/bits/allocator.h: Tweak.
727         
728 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
729
730         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
731         Restructure formatting of value component, first dealing with
732         the non-decimal digits; use reserve.
733
734 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
735
736         * include/bits/locale_facets.h (class money_get): Inherit
737         from money_base too; tweak declaration of _M_extract, now
738         parameterized on _Intl too.
739         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
740         Update definition to use the cache; call reserve on __res to
741         avoid multiple reallocations; fix parsing of sign component
742         according to 22.2.6.1.2, p3.
743         (money_get<>::do_get(long double&),
744         money_get<>::do_get(string_type&)): Update calls of _M_extract. 
745         * src/locale-inst.cc:  Add instantiations of
746         money_get::_M_extract<false> and money_get::_M_extract<true>.
747         * testsuite/22_locale/money_get/get/char/14.cc: New.
748         * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
749         
750 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
751
752         * libsupc++/vterminate.cc
753         (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
754         calls to terminate.
755         * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
756
757         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
758         not set RLIMIT_AS on HP-UX.
759
760 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
761
762         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
763         not set RLIMIT_AS on HP-UX.
764
765 2004-02-21  Paolo Carlini  <pcarlini@suse.de>
766
767         * include/bits/locale_facets.h (class money_base): Add { _S_minus,
768         _S_zero, _S_end } enum, _S_atoms.
769         (struct __moneypunct_cache<>): Parameterize on _Intl too; add
770         _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
771         _M_negative_sign_size, _M_atoms; tweak constructor consistently.
772         (__moneypunct_cache<>::~__moneypunct_cache): Update.
773         (__moneypunct_cache<>::_M_cache): Fill the cache.
774         (class moneypunct): Tweak __cache_type typedef.
775         (class money_put): Inherit from money_base too; tweak declaration
776         of _M_insert, now parameterized on _Intl.
777         * include/bits/locale_facets.tcc
778         (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
779         (money_put<>::_M_insert): Update definition to use the cache;
780         call reserve on __res to avoid multiple reallocations.
781         (money_put<>::do_put(long double),
782         money_put<>::do_put(const string_type&): Update calls of _M_insert.
783         * config/locale/generic/monetary_members.cc
784         (moneypunct<char, true>::_M_initialize_moneypunct,
785         moneypunct<char, false>::_M_initialize_moneypunct,
786         moneypunct<wchar_t, true>::_M_initialize_moneypunct,
787         moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
788         * config/locale/gnu/monetary_members.cc: Likewise.
789         * config/locale/gnu/monetary_members.cc
790         (moneypunct<wchar_t, true>::~moneypunct(),
791         moneypunct<wchar_t, false>::~moneypunct()): Likewise.
792         * src/globals_locale.cc: Tweak fake_money_cache_c.
793         * src/locale-inst.cc: Add instantiations for
794         money_put::_M_insert<false> and money_put::_M_insert<true> and
795         __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
796         * src/locale_facets.cc: Define money_base::_S_atoms.
797         * src/locale_init.cc: Update placement new of
798         __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
799         __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
800
801         * config/locale/generic/numeric_members.cc: Clean up.
802         * config/locale/gnu/numeric_members.cc: Likewise.
803         * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
804         * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
805         * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
806         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
807         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
808         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
809
810 2004-02-20  Mark Mitchell  <mark@codesourcery.com>
811
812         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
813         FIFO for writing with ios_base::in|ios_base::out.
814         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
815         * testsuite/27_io/objects/char/7.cc: Likewise.
816         * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
817         with "r+".
818
819 2004-02-19  David Edelsohn  <edelsohn@gnu.org>
820
821         * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
822         from iso-8859-1 to ISO8859-1.
823         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
824         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
825         * 22_locale/collate/hash/wchar_t/2.cc: Same.
826         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
827         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
828         * 22_locale/collate/transform/wchar_t/2.cc: Same.
829         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
830         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
831
832 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
833
834         * include/bits/locale_facets.h (money_get<>::_M_extract):
835         New, helper for do_get.
836         (money_put<>::_M_insert): Likewise, for do_put.
837         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
838         money_put<>::_M_insert): Define.
839         (money_get<>::do_get(long double&), money_get<>::do_get(
840         string_type&), money_put::do_put(long double),
841         money_put::do_put(const string_type&)): Use the helpers.
842
843 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
844
845         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
846         Rewrite, avoiding recursion.
847         (__gnu_internal::xwrite): Minor tweaks.
848
849 2004-02-17  Stefan Olsson  <stefan@xapa.se>
850
851         * include/ext/mt_allocator.h: Removed the last
852         pointer. Deallocated blocks are now added to the front of
853         freelists as proposed by Felix Yen.  This gives roughly 10%
854         performance boost and saves some memory.
855         * docs/html/ext/mt_allocator.html: Change due to that deallocated
856         blocks now are added to the front of freelists. The reason to this
857         approach is also explained.
858
859 2004-02-17  Paolo Carlini  <pcarlini@suse.de>
860
861         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
862         num_get<>::_M_extract_int, money_get<>::do_get): Simplify
863         grouping fidelity conditional.
864
865 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
866
867         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
868         Qualify exception with std::.
869         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
870         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
871         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
872         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
873         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
874
875 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
876
877         * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
878         for now that the catch block is not reached.
879         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
880
881 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
882
883         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
884         Fix parsing of the remaining sign characters.
885         * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
886         the input is scanned 'til eof.
887         * 22_locale/money_get/get/char/4.cc: Likewise.
888         * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
889         * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
890         * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
891         not do_pos_format: the former is the only one that matters during
892         input.
893         * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
894
895         * 22_locale/money_get/get/char/6.cc: Minor tweak.
896         * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
897
898 2004-02-15  David Asher  <david.asher@cavium.com>
899
900         PR libstdc++/11352
901         * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
902         access __olds beyond __oldlen.
903
904 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
905
906         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
907         sure the exception is actually thrown.
908         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
909         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
910         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
911
912 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
913
914         PR libstdc++/13858
915         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
916         In case of conversion errors, throw ios_failure; simplify.
917         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
918         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
919         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
920         previously we didn't throw in case of conversion errors, instead
921         just returned eof().
922         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
923         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
924         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
925
926         * include/bits/fstream.tcc (basic_filebuf<>::overflow):
927         Trivial simplification of a conditional.
928
929 2004-02-12  Paolo Carlini  <pcarlini@suse.de>
930
931         PR libstdc++/13731 (final part: writev)
932         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
933         New, a wrapper around writev() handling partial writes.
934         (__basic_file<char>::xwrite): Move to __gnu_internal and make
935         static.
936         (__basic_file<char>::xsputn): Update call.
937         (__basic_file<char>::xsputn_2): Likewise.       
938         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
939         Don't declare, now static.
940
941 2004-02-11  Stefan Olsson  <stefan@xapa.se>
942
943         * docs/html/ext/mt_allocator.html: New.
944
945 2004-02-11  Benjamin Kosnik  <bkoz@redhat.com>
946
947         * docs/html/20_util/allocator.html: New file, consolidate
948         allocator information here. Revamp.
949         * docs/html/documentation.html: Change links.
950         * docs/html/20_util/howto.html: Same.
951         * docs/html/ext/howto.html: Same.
952
953 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
954
955         PR libstdc++/13731 (first part: write)
956         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
957         New, declare.
958         * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
959         Define it: a wrapper around write() handling partial write.
960         (__basic_file<char>::xsputn): Use it.
961         (__basic_file<char>::xsputn_2): Likewise.
962
963 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
964             Petur Runolfsson  <peturr02@ru.is>
965
966         PR libstdc++/14078
967         * include/std/std_istream.h (operator>>(__istream_type& (*)
968         (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
969         operator>>(ios_base& (*)(ios_base&))): Declare inline.
970         * include/std/std_ostream.h (operator<<(__ostream_type& (*)
971         (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
972         operator<<(ios_base& (*) (ios_base&))): Likewise.
973         * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
974
975 2004-02-10  Loren J. Rittle  <ljrittle@acm.org>
976
977         PR libstdc++/14098
978         * config/linker-map.gnu: Add typeinfo and typeinfo name for
979         __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
980
981         PR libstdc++/14097
982         * config/linker-map.gnu: Add typeinfo and typeinfo name for
983         __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
984
985 2004-02-09  Loren J. Rittle  <ljrittle@acm.org>
986
987         * include/ext/pool_allocator.h: Include c++config.h.
988
989 2004-02-09  Stefan Olsson  <stefan@xapa.se>
990
991         * include/ext/mt_allocator.h: thread_id is unused in non threaded
992         applications and now has a ifdef to remove it completely on
993         compilers without thread support. Include stdlib.h due to a
994         compiler warning on getenv().
995
996 2004-02-09  Paul Brook  <paul@codesourcery.com>
997
998         * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
999
1000 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
1001
1002         PR libstdc++/14071
1003         * src/locale_init.cc (locale::global(const locale&)): Use
1004         locale::name() in order to decide whether calling setlocale.
1005         * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
1006
1007         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
1008         Avoid computing &= unnecessarily.
1009
1010 2004-02-09  James E Wilson  <wilson@specifixinc.com>
1011
1012         PR libstdc++/5625
1013         * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
1014         __builtin_extend_pointer.
1015
1016 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
1017
1018         PR libstdc++/14072
1019         * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
1020         Don't leave dangling pointers.
1021         * testsuite/27_io/basic_ios/imbue/14072.cc: New.
1022         * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
1023         facet is needed in the final test.
1024
1025 2004-02-09  Bernardo Innocenti  <bernie@develer.com>
1026
1027         * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
1028         * configure: Regenerate.
1029
1030 2004-02-08  Richard Henderson  <rth@redhat.com>
1031
1032         PR libstdc++/14026
1033         * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust 
1034         uncaughtExceptions during nested catch rethrow.
1035         * testsuite/18_support/14026.cc: New.
1036
1037 2004-02-08  Paolo Carlini  <pcarlini@suse.de>
1038
1039         * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
1040         When working in place remember to set the state to sharable
1041         (otherwise, _M_mutate does it).
1042
1043 2004-02-08  Bernardo Innocenti  <bernie@develer.com>
1044
1045         * include/bits/allocator.h, include/bits/basic_ios.h,
1046         include/bits/basic_ios.tcc, include/bits/basic_string.h,
1047         include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
1048         include/bits/char_traits.h, include/bits/codecvt.h,
1049         include/bits/concurrence.h, include/bits/cpp_type_traits.h,
1050         include/bits/demangle.h, include/bits/deque.tcc,
1051         include/bits/fstream.tcc, include/bits/functexcept.h,
1052         include/bits/gslice.h, include/bits/gslice_array.h,
1053         include/bits/indirect_array.h, include/bits/ios_base.h,
1054         include/bits/istream.tcc, include/bits/list.tcc,
1055         include/bits/locale_classes.h, include/bits/locale_facets.h,
1056         include/bits/locale_facets.tcc, include/bits/localefwd.h,
1057         include/bits/mask_array.h, include/bits/ostream.tcc,
1058         include/bits/postypes.h, include/bits/slice_array.h,
1059         include/bits/sstream.tcc, include/bits/stl_algo.h,
1060         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
1061         include/bits/stl_construct.h, include/bits/stl_deque.h,
1062         include/bits/stl_function.h, include/bits/stl_heap.h,
1063         include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
1064         include/bits/stl_list.h, include/bits/stl_map.h,
1065         include/bits/stl_multimap.h, include/bits/stl_multiset.h,
1066         include/bits/stl_numeric.h, include/bits/stl_pair.h,
1067         include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
1068         include/bits/stl_relops.h, include/bits/stl_set.h,
1069         include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
1070         include/bits/stl_threads.h, include/bits/stl_tree.h,
1071         include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
1072         include/bits/stream_iterator.h, include/bits/streambuf.tcc,
1073         include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
1074         include/bits/type_traits.h, include/bits/valarray_after.h,
1075         include/bits/valarray_array.h, include/bits/valarray_array.tcc,
1076         include/bits/valarray_before.h, include/bits/vector.tcc: Remove
1077         trailing whitespace.
1078
1079 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
1080
1081         * include/bits/basic_string.h: Fix comment.
1082
1083 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
1084
1085         * include/bits/stl_construct.h: Wrap overlong lines, reformat
1086         according to the coding standards.
1087         * include/bits/stl_pair.h: Likewise.
1088         * include/bits/stl_raw_storage_iter.h: Likewise.
1089         * include/bits/stl_stack.h: Likewise.
1090         * include/bits/stl_uninitialized.h: Likewise.
1091         * include/bits/stream_iterator.h: Likewise.
1092         * include/bits/streambuf_iterator.h: Likewise.
1093         * include/bits/type_traits.h: Likewise.
1094
1095 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
1096
1097         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
1098         Adjust timings.
1099
1100 2004-02-05  Loren J. Rittle  <ljrittle@acm.org>
1101
1102         * scripts/check_performance: Support PCH.
1103
1104         * scripts/check_performance (CXX): Add -DNOTHREAD.
1105         * testsuite/performance/20_util/allocator/insert.cc: Integrate
1106         threaded tests from insert_insert.cc.  Tweak iterations,
1107         remove special cases.
1108         * testsuite/performance/20_util/allocator/insert_insert.cc:
1109         Make all tests single-threaded. Tweak iterations.
1110         * testsuite/performance/20_util/allocator/map_thread.cc:
1111         Tweak iterations.
1112         * testsuite/performance/20_util/allocator/producer_consumer.cc:
1113         Likewise.
1114
1115 2004-02-05  Geoffrey Keating  <geoffk@apple.com>
1116
1117         PR 12179
1118         * .cvsignore: New.
1119         * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
1120         'gcc-lib'.  Add comment about poorly-named variables.
1121         * aclocal.m4: Regenerate.
1122         * configure: Regenerate.
1123
1124 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
1125
1126         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
1127         Thousands-sep are always optional; thousands-sep are not allowed
1128         after the decimal_point.
1129         * testsuite/22_locale/money_get/get/char/12.cc: New.
1130         * testsuite/22_locale/money_get/get/char/13.cc: New.
1131         * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
1132         * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
1133
1134         * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
1135         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
1136         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
1137         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
1138         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
1139         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
1140         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
1141         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
1142
1143         * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
1144         the standard.
1145         * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
1146
1147 2004-02-05  Richard Sandiford  <rsandifo@redhat.com>
1148
1149         * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
1150         Define.
1151         * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
1152         it to decide whether FIONREAD should take an off_t or int argument.
1153
1154 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
1155
1156         * include/bits/stl_function.h: Minor formatting changes.
1157
1158 2004-02-04  Zack Weinberg  <zack@codesourcery.com>
1159
1160         Revert previous change to config/abi/*/baseline_symbols.txt.
1161
1162 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
1163             Zack Weinberg  <zack@codesourcery.com>
1164
1165         * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
1166         New function.
1167         (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
1168         (__basic_file<char>::_M_open_mode): Delete.
1169         * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
1170
1171         * testsuite/27_io/basic_filebuf/close/char/9964.cc
1172         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
1173         Correct flags to filebuf::open calls.
1174
1175         * config/abi/alpha-freebsd5/baseline_symbols.txt
1176         * config/abi/alpha-linux-gnu/baseline_symbols.txt
1177         * config/abi/hppa-linux-gnu/baseline_symbols.txt
1178         * config/abi/i386-freebsd4/baseline_symbols.txt
1179         * config/abi/i386-freebsd5/baseline_symbols.txt
1180         * config/abi/i486-linux-gnu/baseline_symbols.txt
1181         * config/abi/ia64-linux-gnu/baseline_symbols.txt
1182         * config/abi/mips-linux-gnu/baseline_symbols.txt
1183         * config/abi/sparc-freebsd5/baseline_symbols.txt
1184         * config/abi/sparc-linux-gnu/baseline_symbols.txt
1185         * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
1186         Remove entry for __basic_file<char>::_M_open_mode.
1187
1188 2004-02-04  Loren J. Rittle  <ljrittle@acm.org>
1189
1190         * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
1191
1192 2004-02-04  Felix Yen  <fwy@alumni.brown.edu>
1193
1194         * testsuite/performance/20_util/producer_consumer.cc: New.
1195         * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
1196
1197 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
1198
1199         * testsuite/performance/20_util/allocator.cc: Move to..
1200         * testsuite/performance/20_util/allocator/insert.cc: ...here.
1201         * testsuite/performance/20_util/allocator_thread.cc: Move to...
1202         * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
1203         * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
1204         * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
1205
1206 2004-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
1207
1208         * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
1209         * docs/html/faq/index.txt: Regenerate.
1210
1211 2004-02-04  Dhruv Matani  <dhruvbird@gmx.net>
1212
1213         * include/ext/debug_allocator.h: _M_extra now stands for the
1214         number of extra objects instead of the number of extra bytes.
1215         (debug_allocator::allocate): Adjust.
1216         (debug_allocator::deallocate): Adjust.
1217
1218         * include/ext/pool_allocator.h: Fix typo.
1219
1220 2004-02-03  Felix Yen  <fwy@alumni.brown.edu>
1221             Benjamin Kosnik  <bkoz@redhat.com>
1222
1223         * testsuite/performance/20_util/allocator.cc: Add map,
1224         deque, set tests.
1225         * testsuite/performance/20_util/allocator_thread.cc: Same.
1226
1227 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
1228
1229         * include/bits/basic_string.h (insert(iterator)): Remove,
1230         non-standard and already scheduled for removal.
1231
1232 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
1233
1234         * include/bits/stl_iterator_base_funcs.h: Minor formatting
1235         and indentation tweaks.
1236         * include/bits/stl_iterator_base_types.h: Likewise.
1237         * include/bits/stl_list.h: Likewise.
1238         * include/bits/stl_map.h: Likewise.
1239         * include/bits/stl_tempbuf.h: Likewise.
1240
1241 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
1242
1243         * include/bits/gslice.h, include/bits/gslice_array.h,
1244         include/bits/indirect_array.h, include/bits/mask_array.h,
1245         include/bits/slice_array.h, include/bits/stl_numeric.h,
1246         include/std/std_valarray.h:  Update copyright years.
1247
1248 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
1249
1250         * include/bits/gslice.h (gslice):  Document.
1251         * include/bits/gslice_array.h (gslice_array):  Document.
1252         * include/bits/indirect_array (indirect_array):  Document.
1253         * include/bits/mask_array (mask_array):  Document.
1254         * include/bits/slice_array.h (slice,slice_array):  Document.
1255         * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
1256         adjacent_difference):  Document
1257         * include/std/std_valarray.h (valarray):  Document.
1258
1259 2004-02-02  Benjamin Kosnik  <bkoz@redhat.com>
1260
1261         * docs/html/19_diagnostics/howto.html: Move verbose terminate
1262         documentation...
1263         * docs/html/18_support/howto.html: Here.
1264         * docs/html/documentation.html: Add reference here.
1265
1266 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
1267
1268         * config/locale/gnu/c++locale_internal.h: Remove prototypes
1269         of no longer used GLIBC thread locale functions.
1270
1271 2004-02-02  Eric Christopher  <echristo@redhat.com>
1272             Zack Weinberg  <zack@codesourcery.com>
1273
1274         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
1275         -finput-charset.
1276         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
1277         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
1278         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
1279         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
1280         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
1281         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
1282         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
1283         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
1284         Ditto.
1285
1286 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
1287
1288         * include/bits/stl_function.h: Additional minor tweaks.
1289         * include/bits/stl_multiset.h: Likewise.
1290
1291         * include/bits/stl_queue.h: Minor tweaks.
1292
1293 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
1294
1295         PR libstdc++/13976 (continued)
1296         * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
1297         Make the second parameter unnamed, to void unused parameter
1298         warnings.
1299         * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
1300
1301 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
1302
1303         PR libstdc++/13976
1304         * include/ext/malloc_allocator.h (malloc_allocator::allocate):
1305         Make the second parameter unnamed, to void unused parameter
1306         warnings.
1307         * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
1308         * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
1309
1310 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
1311
1312         * include/bits/stl_algo.h: Additional minor tweaks.
1313         * include/bits/stl_map.h: Likewise.
1314         * include/bits/stl_multimap.h: Likewise.
1315         * include/bits/stl_multiset.h: Likewise.
1316         * include/bits/stl_set.h: Likewise.
1317         * include/bits/stl_tree.h: Likewise.
1318
1319 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
1320
1321         * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
1322         Remove, unused.
1323
1324 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
1325
1326         * include/bits/stl_function.h: Additional minor tweaks.
1327
1328 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
1329
1330         * include/bits/deque.tcc: Wrap overlong lines, constify
1331         a few variables, reformat according to the coding standards.
1332         * include/bits/list.tcc: Likewise.
1333         * include/bits/stl_deque.h: Likewise.
1334         * include/bits/stl_function.h: Likewise.
1335         * include/bits/stl_iterator.h: Likewise.
1336         * include/bits/stl_iterator_base_funcs.h: Likewise.
1337         * include/bits/stl_iterator_base_types.h: Likewise.
1338         * include/bits/stl_list.h: Likewise.
1339         * include/bits/stl_map.h: Likewise.
1340         * include/bits/stl_multimap.h: Likewise.
1341         * include/bits/stl_multiset.h: Likewise.
1342         * include/bits/stl_relops.h: Likewise.
1343         * include/bits/stl_set.h: Likewise.
1344
1345 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
1346
1347         * include/bits/stl_bvector.h: Wrap overlong lines, constify
1348         a few variables, reformat according to the coding standards.
1349         * include/bits/stl_tree.h: Likewise.
1350
1351 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
1352
1353         * include/bits/stl_algo.h: Minor additional reformat, add
1354         copyright year.
1355         * include/bits/stl_algobase.h: Add copyright year.
1356
1357 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
1358
1359         * include/bits/stl_algo.h: Wrap overlong lines, constify
1360         a few variables, reformat according to the coding standards.
1361         * include/bits/stl_algobase.h: Likewise.
1362         * include/bits/stl_heap.h: Likewise.
1363
1364 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
1365
1366         * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
1367
1368         * include/bits/basic_string.h: Fix two comments.
1369
1370 2004-01-31  Per Bothner  <per@bothner.com>
1371
1372         * include/ext/mt_allocator.h
1373         (__mt_alloc::_S_thread_freelist_mutex): Guard with
1374         __GTHREAD_MUTEX_INIT.
1375
1376 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
1377
1378         * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
1379
1380 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
1381
1382         * testsuite/21_strings/basic_string/cons/char/6.cc: New.
1383         * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
1384         * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
1385
1386 2004-01-30  Felix Yen  <fwy@alumni.brown.edu>
1387
1388         * testsuite/performance/20_util/allocator_thread.cc (do_loop):
1389         Don't use clear, but instead assign. Use insert.
1390
1391 2004-01-30  Benjamin Kosnik  <bkoz@redhat.com>
1392
1393         * src/demangle.cc: Add instantiations.
1394         * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
1395         * src/Makefile.in: Regenerate.
1396
1397 2004-01-30  David Edelsohn  <edelsohn@gnu.org>
1398
1399         * src/allocator.cc: Protect _S_get_thread_id() and
1400         _S_thread_key_destr() with #ifdef __GTHREADS.
1401
1402 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
1403
1404         Reshuffle performance testsuite.
1405         * testsuite/performance/allocator.cc, allocator_map_thread.cc,
1406         allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
1407         cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
1408         fstream_seek_write.cc, ifstream_extract_float.cc,
1409         ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
1410         list_create_fill_sort.cc, map_create_fill.cc,
1411         narrow_widen_char.cc, narrow_widen_wchar_t.cc,
1412         ofstream_insert_float.cc, ofstream_insert_int.cc,
1413         string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
1414         wchar_t_out.cc: Split into...
1415         * testsuite/performance/20_util/allocator.cc: New.
1416         * testsuite/performance/20_util/allocator_map_thread.cc: New.
1417         * testsuite/performance/20_util/allocator_thread.cc: New.
1418         * testsuite/performance/21_strings/string_append: New.
1419         * testsuite/performance/22_locale/is_wchar_t.cc: New.
1420         * testsuite/performance/22_locale/narrow_widen_char.cc: New.
1421         * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
1422         * testsuite/performance/22_locale/wchar_t_in.cc: New.
1423         * testsuite/performance/22_locale/wchar_t_length.cc: New.
1424         * testsuite/performance/22_locale/wchar_t_out.cc: New.
1425         * testsuite/performance/23_containers/container_benchmark.cc: New.
1426         * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
1427         * testsuite/performance/23_containers/map_create_fill.cc: New.
1428         * testsuite/performance/26_numerics/complex_norm.cc: New.
1429         * testsuite/performance/27_io/cout_insert_int.cc: New.
1430         * testsuite/performance/27_io/filebuf_copy.cc: New.
1431         * testsuite/performance/27_io/filebuf_sputc.cc: New.
1432         * testsuite/performance/27_io/fstream_seek_write.cc: New.
1433         * testsuite/performance/27_io/ifstream_extract_float.cc: New.
1434         * testsuite/performance/27_io/ifstream_extract_int.cc: New.
1435         * testsuite/performance/27_io/ifstream_getline.cc: New.
1436         * testsuite/performance/27_io/ofstream_insert_float.cc: New.
1437         * testsuite/performance/27_io/ofstream_insert_int.cc: New.
1438
1439 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
1440
1441         * include/bits/basic_string.tcc (_Rep::_S_create):
1442         Never allocate a string bigger than max_size(); always keep
1443         __capacity and __size in sync to avoid memory leaks at
1444         deallocation time.
1445
1446 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
1447
1448         * include/bits/basic_string.tcc (_S_construct(_InIterator,
1449         _InIterator, const _Alloc&, input_iterator_tag)): Simplify
1450         the double loop, streamline.
1451
1452         * include/bits/basic_string.tcc: Very minor tweaks.
1453
1454 2004-01-30  Loren J. Rittle  <ljrittle@acm.org>
1455
1456         * scripts/check_performance: Only compile with $THREAD_FLAG
1457         when test is marked to require it.  Allow multiple
1458         compilations/executions of marked tests.
1459         * testsuite/testsuite_performance.h (report_performance):
1460         Report dynamic thread support status.
1461         (report_header): Likewise.
1462         * testsuite/performance/allocator.cc: Stabilize iteration
1463         count.  Support more allocators.  Mark each allocator test to
1464         run and report independently.
1465         * testsuite/performance/allocator_map_thread.cc: Likewise.
1466         * testsuite/performance/allocator_thread.cc: Likewise.
1467
1468 2004-01-29  Stephen M. Webb  <stephen.webb@bregmasoft.com>
1469
1470         * config/local/generic/c_locale.h: Change ::malloc() to new char[].
1471         * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
1472         * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
1473         std::get_temporary_buffer() instead of duplicating its code.
1474         Update to C++STYLE conventions.
1475         * include/std/std_memory.h (get_temporary_buffer): Use ::operator
1476         new() instead of std::malloc().
1477         (return_temporary_buffer): Use ::operator delete() instead of
1478         std::free().
1479
1480 2004-01-29  Benjamin Kosnik  <bkoz@redhat.com>
1481
1482         * include/bits/allocator.h: Temporary switch to new_allocator as
1483         the default to unjam bootstraps.
1484
1485 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
1486
1487         * include/Makefile.am (bits_headers): Remove allocator_traits.h.
1488         * include/Makefile.in: Regenerate.
1489         * include/bits/allocator_traits.h: Remove.
1490         * include/bits/allocator.h: Remove allocator_traits.h include, and
1491         relevant comments.
1492         (allocator): Empty base class, inherit from the underlying allocator.
1493         * src/allocator-inst.cc: Move __pool_alloc instantiation to...
1494         * src/allocator.cc: ...here. New. For the underlying allocators.
1495         Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
1496         * config/linker-map.gnu: Remove __pool_alloc bits.
1497         * src/Makefile.am (sources): Add allocator.cc.
1498         * src/Makefile.in: Regenerate.
1499         * testsuite/20_util/allocator/1.cc: Split second test into...
1500         * testsuite/20_util/allocator/8230.cc: ...this.
1501         * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
1502         typedef to use std::allocatore. Format.
1503         * include/ext/pool_allocator.h: Remove allocator_traits.h include,
1504         _Alloc_traits.
1505         * include/ext/mt_allocator.h (__gnu_cxx): Qualify
1506         __throw_bad_alloc calls. Don't include <memory>.
1507         * include/ext/malloc_allocator.h: Remove <memory> include.
1508         * include/ext/new_allocator.h (new_allocator): Same.
1509         * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
1510         declaration. Switch __alloc to _Alloc.
1511         * include/ext/hashtable.h: Remove __alloc.
1512         * include/backward/alloc.h: Only inject allocator, not
1513         implementation details.
1514
1515         * include/ext/mt_allocator.h: Replace free with delete.
1516
1517 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
1518
1519         * src/globals_io.cc: Change to __gnu_internal namespace.
1520         * src/globals_locale.cc: Same.
1521         * src/locale_init.cc: Same.
1522         * src/ios_init.cc: Same.
1523
1524 2004-01-28  Stefan Olsson  <stefan@snon.net>
1525
1526         * include/ext/mt_allocator.h: Replaced all malloc() calls with
1527         operator new(). Added support for the env variable
1528         GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
1529         one in allocate() as well). Fix typos.
1530
1531 2004-01-28  Paolo Carlini  <pcarlini@suse.de>
1532
1533         * include/bits/basic_string.h (_S_create(size_t,
1534         const _Alloc&): Change signature to take two size_type
1535         arguments.
1536         * include/bits/basic_string.tcc (_S_construct(_InIterator,
1537         _InIterator, const _Alloc&, input_iterator_tag)): Update
1538         call, tweak a bit.
1539         (_S_construct(_InIterator, _InIterator, const _Alloc&,
1540         forward_iterator_tag)): Likewise.
1541         (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
1542         (_M_mutate(size_type, size_type, size_type)): Don't
1543         implement the exponential growth policy, demand it to
1544         _S_create, update call and simplify.
1545         (_M_clone(const _Alloc&, size_type)): Likewise.
1546         (_S_create(size_type, size_type, const _Alloc&)): Implement
1547         the growth policy, simplify otherwise.
1548
1549         * include/bits/basic_string.h (_Rep::operator[]): Tweak
1550         signature to take a size_type, consistently with the other
1551         members.
1552
1553 2004-01-27  Benjamin Kosnik  <bkoz@redhat.com>
1554
1555         * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
1556         delete declarations, add include and test variable.
1557
1558 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
1559
1560         * include/bits/codecvt.h, include/bits/locale_facets.h,
1561         include/bits/postypes.h, include/bits/stl_bvector.h,
1562         include/bits/stl_multiset.h, include/bits/stl_set.h,
1563         include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
1564         include/std/std_complex.h:  Document.
1565
1566 2004-01-27  Jerry Quinn  <jlquinn@optonline.net>
1567
1568         PR libstdc++/11584
1569         * include/bits/ios_base.h (ios_base::_M_grow_words):  Add
1570         iword/pword selector.
1571         (ios_base::iword, ios_base::pword):  Use it.
1572         * src/ios.cc (ios_base::_M_grow_words):  Clear _M_word_zero
1573         iword or pword member on alloc failure.
1574         * testsuite/27_io/ios_base/storage/11584.cc:  New test.
1575
1576 2004-01-27  Ulrich Weigand  <uweigand@de.ibm.com>
1577             PJ Darcy  <darcypj@us.ibm.com>
1578
1579         * configure.host: Add support for *-tpf.
1580         * crossconfig.m4: Likewise.
1581         * configure: Regenerate.
1582         * config/os/tpf: New directory.
1583         * config/os/tpf/os_defines.h: New file.
1584         * config/os/tpf/ctype_base.h: Likewise.
1585         * config/os/tpf/ctype_inline.h: Likewise.
1586         * config/os/tpf/ctype_noninline.h: Likewise.
1587
1588 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
1589
1590         PR libstdc++/13884
1591         * include/bits/sstream.tcc: Guard use of extern template.
1592
1593 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
1594
1595         * include/bits/basic_string.tcc
1596         (basic_string(const basic_string&, size_type, size_type),
1597         basic_string(const basic_string&, size_type, size_type,
1598         const _Alloc&)): Avoid unnecessarily constructing iterators.
1599
1600 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
1601
1602         * config/locale/generic/c_locale.cc: Fix throw messages
1603         to use the __N marker.
1604         * config/locale/gnu/c_locale.cc: Likewise.
1605         * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
1606         Likewise.
1607         * docs/html/17_intro/C++STYLE: Likewise.
1608         * include/bits/basic_ios.tcc: Likewise.
1609         * include/bits/fstream.tcc: Likewise.
1610         * include/bits/vector.tcc: Likewise.
1611         * include/ext/ropeimpl.h: Likewise.
1612         * include/std/std_bitset.h: Likewise.
1613         * src/ios.cc: Likewise.
1614         * src/locale.cc: Likewise.
1615         * src/localename.cc: Likewise.
1616
1617 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
1618
1619         * include/bits/basic_string.h (_M_replace_aux): Use the
1620         __N marker in throw message.
1621         * include/bits/basic_string.tcc (assign(const _CharT*,
1622         size_type), insert(size_type, const _CharT*, size_type),
1623         replace(size_type, size_type, const _CharT*, size_type),
1624         reserve, _Rep::_S_create, resize, _M_replace_dispatch):
1625         Likewise.
1626
1627         * include/bits/basic_string.h, include/bits/basic_string.tcc:
1628         Fold overlong lines, minor formatting changes.
1629
1630 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
1631
1632         * include/bits/basic_string.h (replace(iterator, iterator,
1633         const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
1634         (replace(iterator, iterator, const _CharT*)): Ditto.
1635         (replace(iterator, iterator, const _CharT*, size_type)):
1636         Add missing _GLIBCXX_DEBUG_PEDASSERT.
1637
1638 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
1639
1640         * include/bits/basic_string.tcc (replace(size_type,
1641         size_type, const _CharT*, size_type)): Implement optimized
1642         in-place algorithm for non-overlapping ranges.
1643         * testsuite/21_strings/basic_string/replace/char/6.cc: New.
1644         * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
1645
1646         * include/bits/basic_string.tcc (insert(size_type,
1647         const _CharT*, size_type)): Tweak slightly.
1648
1649 2004-01-26  Andreas Schwab  <schwab@suse.de>
1650
1651         * config/locale/gnu/monetary_members.cc: Restore locale before
1652         rethrowing exception.
1653
1654 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
1655
1656         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
1657         Define inline here.
1658         * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
1659         Move inline.
1660
1661         * include/bits/basic_string.tcc: Very minor tweaks.
1662
1663 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
1664
1665         * testsuite/performance/string_append.cc: Increase number
1666         of iterations.
1667
1668 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
1669
1670         * include/bits/basic_string.h (erase(size_type, size_type),
1671         erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
1672         instead, thus avoiding redundant check for length_error.
1673
1674         * include/bits/basic_string.h: Tweak some comments.
1675
1676 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
1677
1678         * include/bits/basic_string.tcc (operator+(const _CharT*,
1679         const basic_string&)): No need to go through the append
1680         taking two iterators.
1681
1682 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
1683
1684         * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
1685         Revert last change to use std::min: machine language is worse.
1686         (find_last_of(const _CharT*, size_type, size_type)): Ditto.
1687         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
1688         (find_last_not_of(_CharT, size_type)): Ditto.
1689
1690         * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
1691         size_type)): Discard the value returned by _M_check.
1692         (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
1693         (append(const basic_string&, size_type, size_type)): Ditto.
1694         (copy(_CharT*, size_type, size_type)): Ditto.
1695         (compare(size_type, size_type, const basic_string&)): Ditto.
1696         (compare(size_type, size_type, const basic_string&,
1697         size_type, size_type)): Ditto.
1698         (compare(size_type, size_type, const _CharT*)): Ditto.
1699         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
1700
1701 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
1702
1703         * include/bits/basic_string.h (insert(size_type,
1704         const basic_string&, size_type, size_type)): Define inline here.
1705         * include/bits/basic_string.tcc (insert(size_type,
1706         const basic_string&, size_type, size_type)): Move inline.
1707
1708 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
1709
1710         * include/bits/basic_string.h (assign(const basic_string&,
1711         size_type, size_type)): Define inline here.
1712         (replace(size_type, size_type, const basic_string&,
1713         size_type, size_type)): Ditto.
1714         (_M_replace_dispatch(iterator, iterator, _InputIterator,
1715         _InputIterator, __false_type)): Only declare.
1716         (_M_replace(iterator, iterator, _InputIterator,
1717         _InputIterator)): Remove.
1718         * include/bits/basic_string.tcc (assign(const basic_string&,
1719         size_type, size_type)): Move inline.
1720         (replace(size_type, size_type, const basic_string&,
1721         size_type, size_type)): Ditto.
1722         (_M_replace_dispatch(iterator, iterator, _InputIterator,
1723         _InputIterator, __false_type)): Define, now does also what
1724         _M_replace did before.
1725         * src/string-inst.cc (_M_replace): Don't instantiate.
1726
1727         * include/bits/basic_string.tcc (find(const _CharT*,
1728         size_type, size_type)): Tidy.
1729         (rfind(_CharT, size_type)): Ditto.
1730         (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
1731         (find_first_not_of(_CharT, size_type)): Ditto.
1732         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
1733         (find_last_not_of(_CharT, size_type)): Ditto.
1734
1735 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
1736
1737         PR libstdc++/13838
1738         * include/debug/bitset (operator|=): Fix typo.
1739         * testsuite/23_containers/bitset/operations/13838.cc: New.
1740
1741 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
1742
1743         * include/bits/basic_string.tcc (insert(size_type,
1744         const _CharT*, size_type __n)): Fix length_error check.
1745         (replace(size_type, size_type, const _CharT*, size_type):
1746         Ditto; call _M_replace_safe.
1747         (_M_replace_aux(size_type, size_type, size_type, _CharT):
1748         Fix length_error check.
1749         (_M_replace(iterator, iterator, _InputIterator,
1750         _InputIterator)): Ditto, tweak.
1751         (_M_replace_safe(size_type, size_type, const _CharT*,
1752         size_type)): Remove length_error check.
1753
1754         * include/bits/basic_string.tcc (append(const basic_string&),
1755         append(const basic_string&, size_type, size_type)): Tweak
1756         comment.
1757
1758         * include/bits/basic_string.tcc (copy(_CharT*, size_type,
1759         size_type)): If __n == 0 don't call traits::copy.
1760
1761 2004-01-23  Stefan Olsson  <stefan@snon.net>
1762
1763         * include/ext/mt_allocator.h: Reduce lock contention.
1764
1765 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
1766
1767         PR libstdc++/13831
1768         * include/bits/fstream.tcc (underflow): Remove unused
1769         variable.
1770         * include/bits/streambuf_iterator.h (equal): Ditto.
1771         * include/bits/locale_facets.h (_M_convert_from_char):
1772         Ditto.
1773
1774 2004-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1775
1776         PR c/13814
1777         * config/linker-map.gnu (nan): Delete.
1778         * libmath/mathconf.h (NAN, nan): Delete.
1779         * linkage.m4 (nan): Don't check for it.
1780         * libmath/nan.c: Delete file.
1781
1782         * config.h.in, configure: Regenerate.
1783
1784 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
1785
1786         * include/bits/basic_string.h (push_back(_CharT)):
1787         Call _M_replace_aux.
1788         (insert(size_type, const basic_string&)): Trivial tweak.
1789         (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
1790         (insert(iterator, _CharT)): Ditto.
1791         (erase(size_type, size_type)): Ditto.
1792         (erase(iterator)): Ditto.
1793         (erase(iterator, iterator)): Ditto.
1794         (replace(size_type, size_type, size_type, _CharT)): Ditto.
1795
1796 2004-01-23  Loren J. Rittle  <ljrittle@acm.org>
1797
1798         libstdc++/13823
1799         * testsuite/performance/allocator_map_thread.cc: New test.
1800
1801 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
1802
1803         * include/bits/locale_facets.tcc
1804         (money_put::do_put(..., long double)): Use the basic_string
1805         constructor for char arrays, not that for C-strings, to pass
1806         __digits to do_put(..., const string_type&): __ws isn't
1807         null-terminated.
1808
1809 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
1810
1811         * include/bits/basic_string.h (_M_replace_safe): Change
1812         signatures to take size_types and const _CharT*.
1813         (_M_replace_aux): Likewise, takes size_types instead of
1814         iterators.
1815         (append(size_type, _CharT)): Update call.
1816         (assign(size_type, _CharT)): Ditto.
1817         (replace(iterator, iterator, size_type, _CharT)): Ditto.
1818         (_M_replace_dispatch(iterator, iterator, _Integer,
1819         _Integer, __true_type)): Ditto.
1820         * include/bits/basic_string.tcc (assign(const _CharT*,
1821         size_type)): Ditto.
1822         (insert(size_type, const _CharT*, size_type)): Ditto.
1823         (replace(size_type, size_type, const _CharT*,
1824         size_type)): Ditto.
1825         (_M_replace(iterator, iterator, _InputIterator,
1826         _InputIterator)): Ditto.
1827         (append(const basic_string&)): Ditto.
1828         (append(const basic_string&, size_type, size_type): Ditto.
1829         (append(const _CharT*, size_type): Ditto.
1830         (_M_replace_safe, _M_replace_safe): Change definitions
1831         accordingly, simplify.
1832         * string-inst.cc (_M_replace_safe): Don't instantiate.
1833
1834 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
1835
1836         * include/bits/basic_string.tcc (append(const basic_string&)):
1837         Revert previous change.
1838         (append(const basic_string&, size_type, size_type)): Revert
1839         previous change, use _M_check and _M_limit.
1840
1841 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
1842
1843         * include/bits/basic_string.h (_M_check): Change to return
1844         a checked __pos and take an additional const char* argument.
1845         (_M_fold): Rename to _M_limit, change to return a size_type,
1846         corresponding to the __off limited to the actual length.
1847         (insert(size_type, size_type, _CharT)): Update call, call
1848         replace.
1849         (insert(iterator, _CharT)): Call replace(iterator, iterator,
1850         size_type, _CharT) instead.
1851         (erase(size_type, size_type)): Update calls.
1852         (replace(size_type, size_type, size_type, _CharT)): Ditto.
1853         (substr(size_type, size_type)): Use _M_check.
1854         * include/bits/basic_string.tcc (basic_string(const basic_string&,
1855         size_type, size_type)): Update calls.
1856         (basic_string(const basic_string&, size_type, size_type,
1857         const _Alloc&)): Ditto.
1858         (assign(const basic_string&, size_type, size_type)): Use the
1859         new _M_check and _M_limit.
1860         (insert(size_type, const basic_string&, size_type, size_type):
1861         Ditto.
1862         (insert(size_type, const _CharT*, size_type)): Ditto.
1863         (replace(size_type, size_type, const _CharT*, size_type): Ditto.
1864         (replace(size_type, size_type, const basic_string&,
1865         size_type, size_type)): Ditto.
1866         (append(const basic_string&)): Ditto.
1867         (append(const basic_string&, size_type, size_type)): Ditto.
1868         (copy(_CharT*, size_type, size_type)): Ditto.
1869         (compare(size_type, size_type, const basic_string&)): Ditto.
1870         (compare(size_type, size_type, const basic_string&,size_type,
1871         size_type)): Ditto.
1872         (compare(size_type, size_type, const _CharT*)): Ditto.
1873         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
1874
1875 2004-01-19  Stefan Olsson  <stefan@snon.net>
1876
1877         * include/ext/mt_allocator.h: If a thread, when it dies, still has
1878         memory on it's freelist this memory is not returned to global
1879         list. Simplification of deallocate so that memory is always
1880         returned to the calling thread id's freelist instead of to
1881         global. Fix typos. Add volatile where appropriate.
1882
1883 2004-01-19  Loren J. Rittle  <ljrittle@acm.org>
1884
1885         * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
1886         * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test.  Like -2 but
1887         use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
1888
1889 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
1890
1891         * src/debug.cc: Make sure all the names are prefixed with
1892         double (or single) underscore.
1893
1894 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
1895
1896         * src/debug.cc: Trivial formatting change.
1897
1898 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
1899
1900         * include/bits/basic_string.tcc (_S_construct(size_type,
1901         _CharT, const _Alloc&)): Remove redundant try/catch.
1902         (_M_mutate(size_type, size_type, size_type)): Ditto.
1903         (_M_clone(const _Alloc&, size_type)): Ditto.
1904
1905 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
1906
1907         * include/bits/basic_string.h (c_str()): Simplify, due to
1908         21.3.4 the internal representation is always kept null-terminated.
1909         * include/bits/basic_string.tcc (_M_clone): Null-terminate.
1910         * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
1911         * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
1912         Ditto.
1913
1914 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
1915
1916         * include/bits/basic_string.h (append(size_type, _CharT)):
1917         Moved inline, just call _M_replace_aux, no source iterators at
1918         risk of being clobbered.
1919         (assign(size_type, _CharT)): Call directly _M_replace_aux.
1920         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
1921         input_iterator_tag)): Remove fifth unused argument.
1922         (_M_replace_dispatch(iterator, iterator, _InputIterator,
1923         _InputIterator, __false_type)): Update call.
1924         * include/bits/basic_string.tcc (replace(size_type, size_type,
1925         const _CharT*, size_type)): Update call.
1926         (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
1927         throw string literal.
1928         (_M_replace_safe(iterator, iterator, _ForwardIterator,
1929         _ForwardIterator)): Likewise.
1930         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
1931         input_iterator_tag)): Remove fifth unused argument.
1932         (append(size_type __n, _CharT __c)): Move inline.
1933         * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
1934         const C*, const C*, input_iterator_tag)): Remove fifth unused
1935         argument.
1936
1937 2004-01-16  Benjamin Kosnik  <bkoz@redhat.com>
1938
1939         * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
1940         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
1941
1942 2004-01-16  Danny Smith  <dannysmith@users.sourceforge.net>
1943
1944         * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
1945         mkfifo for mingw32.
1946
1947 2004-01-15  Stefan Olsson  <stefan@snon.net>
1948
1949         * include/ext/mt_allocator.h: Reuse thread id's as soon as
1950         possible by changing the behaviour of thread_freelist to do
1951         push_front when threads die instead of push_back.
1952
1953 2004-01-14  Paolo Carlini  <pcarlini@suse.de>
1954
1955         * include/bits/locale_facets.h (struct __numpunct_cache):
1956         Add member _M_grouping_size, caching the length of _M_grouping.
1957         (__numpunct_cache<>::_M_cache): Assign the latter.
1958         (__verify_grouping): Move declaration...
1959         * include/bits/locale_facets.tcc (__verify_grouping):
1960         ... here, change signature to take a const char* and a size_t
1961         for the grouping; not a template anymore.
1962         (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
1963         Likewise change signature and tweak consistently.
1964         (num_get::_M_extract_float, num_get::_M_extract_int,
1965         num_put::_M_insert_int, num_put::_M_insert_float,
1966         money_get::do_get(string_type&), money_get::do_put(string_type)):
1967         Update callers.
1968         * config/locale/generic/numeric_members.cc
1969         (numpunct<>::_M_initialize_numpunct): Assign the new member.
1970         * config/locale/gnu/numeric_members.cc
1971         (numpunct<>::_M_initialize_numpunct): Likewise.
1972         * src/locale-inst.cc (__add_grouping): Tweak signature.
1973         (__verify_grouping): Don't instantiate, not a template anymore.
1974
1975         * include/bits/locale_facets.h: Rename _M_truename_len ->
1976         _M_truename_size, _M_falsename_len -> _M_falsename_size.
1977         * include/bits/locale_facets.tcc: Likewise.
1978         * config/locale/generic/numeric_members.cc: Likewise.
1979         * config/locale/gnu/numeric_members.cc: Likewise.
1980
1981 2004-01-14  Stefan Olsson  <stefan@snon.net>
1982
1983         * include/ext/mt_allocator.h: Fixups.
1984         * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
1985         * testsuite/performance/allocator_thread.cc: Same.
1986
1987 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
1988
1989         * testsuite/performance/ifstream_extract_float.cc: Add higher
1990         precision tests.
1991         * testsuite/performance/ofstream_insert_float.cc: Same.
1992
1993 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
1994
1995         * src/locale-misc-inst.cc (__convert_from_v(long),
1996         __convert_from_v(unsigned long), __convert_from_v(long long),
1997         __convert_from_v(unsigned long long)): Remove, unused.
1998
1999 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
2000
2001         * testsuite/performance/ifstream_extract_float.cc: New.
2002         * testsuite/performance/ofstream_insert_float.cc: Float generation
2003         matches above.
2004
2005         * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
2006         * 20_util/auto_ptr/1.cc: ...this.
2007         * 20_util/auto_ptr/2.cc: Same.
2008         * 20_util/auto_ptr/3.cc: Same.
2009         * 20_util/auto_ptr/3946.cc: Same.
2010         * 20_util/auto_ptr/4.cc: Same.
2011         * 20_util/auto_ptr/5.cc: Same.
2012         * 20_util/auto_ptr/6.cc: Same.
2013         * 20_util/auto_ptr/7.cc: Same.
2014         * 20_util/auto_ptr/assign_neg.cc
2015         * 20_util/pairs.cc: Break into...
2016         * 20_util/pair/1.cc: ...this.
2017         * 20_util/pair/2.cc: Same.
2018         * 20_util/pair/3.cc: Same.
2019         * 20_util/pair/4.cc: Same.
2020
2021 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
2022
2023         * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
2024         Set correctly just basefield, the only group that matters.
2025
2026 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
2027
2028         * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
2029         (_Rope_rep_base): Inherit directly from the rope allocator;
2030         use rebinding instead of _Alloc_traits; pick up data member
2031         from _Rope_rep_alloc_base.
2032         (_Rope_alloc_base): Eliminate.
2033         (_Rope_base): Inherit directly from the rope allocator; use
2034         rebinding instead of _Alloc_traits; pick up data member from
2035         _Rope_alloc_base.
2036         (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
2037         rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
2038
2039 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
2040
2041         PR libstdc++/13650
2042         * include/bits/basic_string.tcc (compare(size_type, size_type,
2043         const _CharT*, size_type)): Implement correctly the resolution
2044         of DR 5: basically, s is a char array, -not- a C string.
2045         * include/bits/basic_string.h: Tweak some comments.
2046         * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
2047         * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
2048
2049 2004-01-12  Andreas Tobler  <a.tobler@schweiz.ch>
2050
2051         * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
2052         Solaris.
2053
2054 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
2055
2056         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
2057         Use try_mkfifo.
2058         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
2059         Likewise.
2060
2061 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
2062
2063         * include/bits/locale_facets.h (struct __numpunct_cache):
2064         Add members _M_truename_len and _M_falsename_len, caching
2065         the lengths of _M_truename and _M_falsename.
2066         (__numpunct_cache<>::_M_cache): Assign the latter.
2067         * include/bits/locale_facets.tcc (num_get::do_get(bool&),
2068         num_put::do_put(bool)): Use the new members, thus avoiding
2069         computing string lengths again and again.
2070         * config/locale/generic/numeric_members.cc
2071         (numpunct<>::_M_initialize_numpunct): Assign the new members.
2072         * config/locale/gnu/numeric_members.cc
2073         (numpunct<>::_M_initialize_numpunct): Likewise.
2074
2075 2004-01-12  Mark Mitchell  <mark@codesourcery.com>
2076
2077         * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
2078         * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
2079         it.
2080         * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
2081         and remove Cygwin XFAIL.
2082         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
2083         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
2084         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
2085         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
2086         Likewise.
2087         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
2088         * testsuite/27_io/objects/char/7.cc: Likewise.
2089         * testsuite/27_io/objects/char/9661-1.cc: Likewise.
2090         * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
2091         * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
2092
2093 2004-01-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2094
2095         * include/std/std_complex.h (std::complex<>::real): Return a
2096         reference. Add non-const overload.
2097         (std::complex<>::real): Likewise.
2098         (std::real): Likewise.
2099         (std::imag): Likewise.
2100         (std::operator+): Tidy.
2101         (std::operator-): Likewise.
2102         (std::operator*): Likewise.
2103         (std::operator/): Likewise.
2104         (std::operator>>): Likewise.
2105
2106 2004-01-11  Paolo Carlini  <pcarlini@suse.de>
2107
2108         PR libstdc++/13582
2109         * include/bits/fstream.tcc (imbue): Exploit the external
2110         buffer to imbue 'on the fly' a new locale and convert its
2111         remainder with the new codecvt facet.
2112         (underflow): Tweak slightly to deal with this special case.
2113         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
2114         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
2115         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
2116         * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
2117         * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
2118
2119 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
2120
2121         * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
2122         Import Revision 28.
2123
2124 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
2125
2126         PR libstdc++/13630
2127         * include/bits/locale_classes.h (class locale): Fix category
2128         typedef.
2129         * testsuite/22_locale/locale/13630.cc: Add.
2130
2131 2004-01-10  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
2132
2133         * include/bits/locale_facets.h: Make a name really dependent. This
2134         will be needed when Core Issue 224 is implemented.
2135
2136 2004-01-09  Paolo Carlini  <pcarlini@suse.de>
2137
2138         * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
2139         * testsuite/performance/allocator_thread.cc: Likewise.
2140
2141 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
2142
2143         * crossconfig.m4: Add LFS, io bits to linux cross config.
2144         * acconfig.h: Remove obsolete bits, reorder.
2145         * config.h.in: Regenerate.
2146         * aclocal.m4: Same.
2147         * configure: Same.
2148
2149 2004-01-07  Gawain Bolton  <gp.bolton@computer.org>
2150
2151         * include/bits/stl_list.h:
2152         * include/bits/list.tc:
2153         * src/list.cc:
2154         Performance enhancements for destructor, push_front(),
2155         push_back(), pop_front(), pop_back(), sort()
2156         Eliminated static_casts where possible.
2157         Moved code out of header files into new src/list.cc
2158         implementation file for library where possible.
2159         Remove inheritance from iterator class and create separate
2160         classes for non-constant and constant iterators.
2161         * include/bits/stl_tree.h (_Rb_tree class):
2162         * src/tree.cc:
2163         Only erase contents in destructor.
2164         Eliminate unnecessary initialization in assignment operator.
2165         Optimize for the nominal case by not checking whether
2166         container is empty in clear().
2167         Re-order test in _M_insert() to improve performance.
2168         Move initialization of new node's left & right pointers to
2169         src/tree.cc to where new node's colour is initialized
2170         and to reduce the amount of inline code.
2171         Use  _M_leftmost() and _M_end() to improve readability where
2172         appropriate.
2173         Create separate classes for non-constant and constant
2174         iterators to clarify code, avoid extra template parameters and
2175         casting away constness.
2176
2177 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
2178
2179         * src/Makefile.am (sources): Add list.cc, tree.cc.
2180         * src/stl_tree.cc: Move to...
2181         * src/tree.cc: ...here.
2182         * src/list.cc: Add.
2183         * config/linker-map.gnu: Tweaks.
2184         * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
2185         * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
2186
2187         * bits/stl_vector.h: Column wrap comments.
2188
2189 2004-01-07  Loren J. Rittle  <ljrittle@acm.org>
2190
2191         (re-open) PR libstdc++/12658
2192         * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
2193         (locale::global): Likewise.
2194
2195 2004-01-07  Paolo Carlini  <pcarlini@suse.de>
2196
2197         * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
2198         Remove redundant #include.
2199         * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
2200         * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
2201         re-enable normal testing.
2202         * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
2203         #include.
2204         * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
2205         * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
2206         Likewise.
2207         * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
2208         Likewise.
2209         * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
2210         Likewise.
2211         * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
2212         Likewise.
2213         * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
2214         Likewise.
2215         * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
2216         Likewise.
2217         * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
2218         Likewise.
2219         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
2220         More properly, #include <locale>.
2221         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
2222         Remove redundant #include.
2223         * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
2224         * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
2225         redundant DejaGnu directive.
2226         * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
2227         redundant #include.
2228
2229 2004-01-06  Benjamin Kosnik  <bkoz@redhat.com>
2230             Stefan Olsson  <stefan@snon.net>
2231
2232         * scripts/check_performance: Use -pthread.
2233         * testsuite/performance/allocator.cc: Tweaks, add list.
2234         * testsuite/performance/allocator_thread.cc: New.
2235
2236 2004-01-06  Jerry Quinn  <jlquinn@optonline.net>
2237
2238         * include/bits/locale_facets.h: Document public classes and
2239         functions.
2240         * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
2241         Add comment.
2242
2243 2004-01-06  Paolo Carlini  <pcarlini@suse.de>
2244
2245         * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
2246         Remove redundant #includes.
2247         * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
2248         Likewise.
2249         * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
2250         Likewise.
2251         * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
2252         * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
2253         * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
2254         * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
2255         * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
2256         * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
2257         * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
2258         * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
2259         * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
2260         * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
2261         * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
2262         * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
2263         * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
2264         * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
2265         * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
2266         Likewise.
2267         * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
2268         Likewise.
2269         * testsuite/27_io/basic_istream/readsome/char/8258.cc:
2270         Likewise.
2271         * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
2272         Likewise.
2273         * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
2274         Likewise.
2275         * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
2276         * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
2277         * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
2278
2279 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
2280
2281         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
2282         Remove redundant #includes.
2283         * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
2284         Likewise.
2285         * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
2286         Likewise.
2287         * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
2288         Likewise.
2289         * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
2290         Likewise.
2291         * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
2292         Likewise.
2293         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
2294         Likewise.
2295         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
2296         Likewise.
2297         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
2298         Likewise.
2299         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
2300         Likewise.
2301         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
2302         Likewise.
2303         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
2304         Likewise.
2305         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
2306         Likewise.
2307
2308 2004-01-04  Mark Mitchell  <mark@codesourcery.com>
2309
2310         PR c++/12226
2311         * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
2312         constructor.
2313         * testsuite/27_io/basic_fstream/4.cc: Likewise.
2314         * testsuite/27_io/basic_ifstream/4.cc: Likewise.
2315         * testsuite/27_io/basic_ios/4.cc: Likewise.
2316         * testsuite/27_io/basic_iostream/4.cc: Likewise.
2317         * testsuite/27_io/basic_istream/4.cc: Likewise.
2318         * testsuite/27_io/basic_istingstream/4.cc: Likewise.
2319         * testsuite/27_io/basic_ofstream/4.cc: Likewise.
2320         * testsuite/27_io/basic_ostream/4.cc: Likewise.
2321         * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
2322         * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
2323         * testsuite/27_io/basic_stringstream/4.cc: Likewise.
2324
2325 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
2326
2327         * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
2328         Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
2329         always use double underscored names.
2330         * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
2331         Likewise.
2332         * include/bits/locale_facets.h (struct __numpunct_cache):
2333         Dimension _M_atoms_out and _M_atoms_in one position smaller.
2334         (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out
2335         and _M_atoms_in.