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