OSDN Git Service

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