OSDN Git Service

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