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