OSDN Git Service

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