OSDN Git Service

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