* check.c (gfc_check_system_clock): New function.
[official-gcc.git] / libstdc++-v3 / ChangeLog
bloba92e4082dad4772c93e23f8a91887895a23abdc4
1 2004-05-22  Paolo Carlini  <pcarlini@suse.de>
3         PR libstdc++/15565
4         * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
5         __int_to_char(unsigned long long)): Showpos is not relevant
6         for unsigned types.
7         * testsuite/22_locale/num_put/put/char/15565.cc: New.
8         * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
10         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
11         char.
12         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
13         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
14         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
15         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
16         * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
17         * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
19 2004-05-21  Matthias Klose  <doko@debian.org>
21         * docs/doxygen/run_doxygen:  Bump required version.
23 2004-05-21  Benjamin Kosnik  <bkoz@redhat.com>
25         * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
26         * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
28 2004-05-21  Paolo Carlini  <pcarlini@suse.de>
30         * include/bits/istream.tcc (ignore): Remove redundant line.
31         (readsome): Tidy, closely following 27.6.1.3, p30.
33 2004-05-20  Paolo Carlini  <pcarlini@suse.de>
35         * include/bits/istream.tcc (operator>>(basic_istream<>&,
36         basic_string<>&)): Use a temporary buffer, thus avoiding
37         reallocation for common case.
38         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
39         New.
40         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
41         Likewise.
43         * include/bits/istream.tcc: Const-ification of a few variables.
45         * include/bits/ostream.tcc: Trivial formatting fixes and
46         const-ification of some variables.
48 2004-05-20  Benjamin Kosnik  <bkoz@redhat.com>
50         PR libstdc++/15123
51         PR libstdc++/13928
52         * docs/doxygen/Intro.3: Remove Allocators.3.
53         Add new extension headers, extension namespace list.
54         * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
55         Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
56         __gnu_debug::. Remove __policy_ renames.
57         * docs/doxygen/guide.html: Add dot note.
58         * docs/doxygen/stdheader.cc: Edit, add files.
59         * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
60         
61 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
63         * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
65 2004-05-18  Jan Beulich  <jbeulich@novell.com>
67         PR libstdc++/15489
68         * scripts/create_testsuite_files: Also find source files through
69           symbolic links.
71 2004-05-18  Jan Beulich  <jbeulich@novell.com>
73         PR libstdc++/15488
74         * testsuite/lib/libstdc++.exp: Make test files writable.
76 2004-05-18  Paolo Carlini  <pcarlini@suse.de>
78         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
79         tweaks.
81 2004-05-18  Dhruv Matani  <dhruvbird@gmx.net>
83         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
84         allocation loop which removes blocks from the global free list
85         from O(N) to O(1) when the required blocks are <= the number
86         available.
88 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
90         * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
92 2004-05-17  Benjamin Kosnik  <bkoz@redhat.com>
94         * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
95         * testsuite/23_containers/deque/14340.cc: New.
96         * testsuite/23_containers/list/14340.cc: New.
97         * testsuite/23_containers/map/14340.cc: New.
98         * testsuite/23_containers/multimap/14340.cc: New.
99         * testsuite/23_containers/multiset/14340.cc: New.
100         * testsuite/23_containers/set/14340.cc: New.
101         * testsuite/23_containers/vector/14340.cc: New.
103 2004-05-17  Douglas Gregor   <gregod@cs.rpi.edu>
105         PR libstdc++/14340 
106         * include/debug/safe_iterator.h (_Safe_iterator converting 
107         constructor): Only allow declaration to instantiate when the 
108         incoming _Safe_iterator has exactly the right iterator type.
110 2004-05-17  Jonathan Wakely  <redi@gcc.gnu.org>
112         * include/bits/boost_concept_check.h: Fix old attribute syntax.
113         * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
114         to pass concept-checks.
115         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
116         * testsuite/23_containers/set/modifiers/swap.cc: Same.
117         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
119 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
121         * include/std/std_bitset.h: Minor formatting fixes.
123 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
125         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
126         Consistently update __bin._M_free[0].
127         (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
128         __bin._M_free[0] to simplify the while loop (i.e., the number
129         of iterations becomes known at the outset).
131 2004-05-15  Paolo Carlini  <pcarlini@suse.de>
133         * include/std/std_bitset.h: Trivial formatting fixes.
135 2004-05-14  Paolo Carlini  <pcarlini@suse.de>
136             Ivan Godard  <igodard@pacbell.net>
138         PR libstdc++/15361
139         * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
140         * testsuite/23_containers/bitset/ext/15361.cc: New.
142 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
144         PR libstdc++/15046
145         * crossconfig.m4: Add C99 math bits for linux crosses.
146         * configure: Regenerate.
147         
148 2004-05-13  Simon Marshall <simon.marshall@misys.com>
149             Benjamin Kosnik  <bkoz@redhat.com>
151         PR libstdc++/15090
152         * include/bits/locale_facets.h: Fix for -fno-for-scope.
153         * include/debug/safe_sequence.h: Same.
154         * include/debug/safe_iterator.tcc: Same.
155         * src/debug.cc: Same.
156         * src/locale.cc: Same.
157         * src/locale_init.cc: Same.
158         * src/localename.cc: Same.
159         * config/locale/gnu/ctype_members.cc: Same.
160         * config/locale/gnu/numeric_members.cc: Same.
161         * testsuite/testsuite_abi.cc: Same.
162         * testsuite/testsuite_hooks.cc: Same.
163         
164 2004-05-13  Jonathan Wakely  <redi@gcc.gnu.org>
165         
166         * docs/html/abi.html: Document effect of -fabi-version on value
167         of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
168         Fix markup.
170 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
172         PR libstdc++/15074      
173         * docs/html/faq/index.html: Update docs for libsupc++ usage.
175 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
177         PR libstdc++/15412
178         * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
179         __gnu_internal.
180         (_GLIBCXX_mutex_address): Same.
181         (_GLIBCXX_once): Same.  
182         (_GLIBCXX_mutex_init): Same.
183         (_GLIBCXX_mutex_address_init): Same.
184         
185 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
186         
187         * docs/html/abi.html: New.
188         * docs/html/abi.txt: Remove.
189         * docs/html/documentation.html: Add link.
190         * testsuite/Makefile.am: Add files.
191         * testsuite/Makefile.in: Regenerated.
192         * testsuite/abi_check.cc: Move and modify code into...
193         * testsuite/testsuite_abi.cc: Add.
194         * testsuite/testsuite_abi.h: Add.
196         * docs/html/17_intro/TODO: Update.
197         * include/bits/stl_pair.h: Format.
198         
199 2004-05-06  Matthias Klose  <doko@debian.org>
201         * include/backward/iterator.h:  Add GPL copyright info,
202         with exception clause.
203         * include/bits/boost_concept_check.h: Likewise.
204         * include
205         * libsupc++/tinfo.h: Likewise.
206         * po/string_literals.cc: Likewise.
207         
208 2004-05-03  Andreas Tobler  <a.tobler@schweiz.ch>
210         * acinclude.m4: Replace -W with more speaking -Wextra.
211         * configure: Rebuilt.
213 2004-05-03  Paolo Carlini  <pcarlini@suse.de>
215         Optimize locale::_M_impl->_M_names for the most common cases:
216         !_M_names[0] means unnamed; !_M_names[1] means all the categories
217         the same name (_M_names[0] && _M_names[1] means that the full set
218         of _M_names must be processed, the general case).
219         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
220         Tweak, saving work when !_M_names[1].
221         (locale::locale(const locale&, _Facet*): Simplify: now just setting
222         _M_names[0] = 0 means unnamed.
223         * src/locale.cc (locale::operator==): Deal first with the common,
224         easy cases, otherwise fall back to locale::name().
225         (locale::name()): Tweak, if !_M_names[0] just return "*".
226         (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
227         copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
228         * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
229         * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
230         Simplify when !std::strchr, just updating _M_names[0]; clean up.
231         (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
232         for the general case (full set of names), then do the usual work;
233         clean up.
235         * src/locale.cc (locale::name()): Reserve space in __ret.
236         * src/locale_init.cc (locale::global(const locale&)): Save
237         the name in a temporary.
238         * src/localename.cc (locale::locale(const char*)): Reserve space
239         in __str.
241 2004-04-29  Paolo Carlini  <pcarlini@suse.de>
243         * src/locale.cc (locale::operator==): Always avoid constructing
244         locale::name(), directly compare pairs of _M_names.
246 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
248         * include/bits/istream.tcc: Fix comment.
250 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
252         * include/bits/stl_vector.h: Trivial formatting fixes.
253         * include/bits/vector.tcc: Likewise.
255 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
257         PR libstdc++/15002 (continued again)
258         * include/bits/istream.tcc (getline(basic_istream<>&,
259         basic_string<>&, _CharT)): Use a temporary buffer, thus
260         avoiding reallocation for common case.
262         * include/bits/basic_string.tcc (_S_construct(_InIterator,
263         _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
264         of temporary buffer to a power of two.
266         * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
268 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
270         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
271         New.
272         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
273         Likewise.
274         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
276 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
277             Petur Runolfsson  <peturr02@ru.is>
279         PR libstdc++/15002 (continued)
280         * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
281         streamsize, char_type)): Use traits::find/copy in a loop to speed
282         up greatly the function in the common case (I/O buffer size >> 1).
284 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
286         * testsuite/27_io/basic_istream/getline/char/4.cc: New. 
288         * include/bits/istream.tcc (getline(basic_istream<>&,
289         basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
290         of sbumpc(), consistently with the other functions, thus also
291         dealing correctly with the case of exceeded string::max_size().
293 2004-04-24  Matthias Klose  <doko@debian.org>
295         Jonathan Wakely  <cow@compsoc.man.ac.uk>
296         * docs/html/configopts.html: Fix reference to allocator config option.
298 2004-04-23  Andrew Pinski  <pinskia@physics.uc.edu>
300         * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
301         * configure: Regenerate.
303 2004-04-23  Daniel Jacobowitz  <drow@mvista.com>
305         PR libstdc++/15047, libstdc++/11610
306         * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
307         (libstdc++_init): Don't pass outdir to v3-copy-files.
309 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
311         * include/bits/deque.tcc: Trivial formatting fixes.
312         * include/bits/stl_deque.h: Likewise.
313         * include/bits/stl_list.h: Likewise.
314         * include/bits/stl_tree.h: Likewise.
316 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
317             Andrew Pinski  <pinskia@physics.uc.edu>
319         * include/bits/basic_string.tcc (_M_mutate): Don't compute
320         __src unnecessarily.
322 2004-04-19  Benjamin Kosnik  <bkoz@redhat.com>
324         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc: 
325         Clarify assertion, set test variable to false before assert.
326         * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
327         * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
328         * testsuite/27_io/ios_base/storage/2.cc: Same.
329         
330         * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
331         function returns.
332         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
333         * testsuite/27_io/fpos/14320-3.cc: Same.
334         
335         * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
336         * testsuite/27_io/fpos/1.cc: Same.
337         * testsuite/27_io/basic_stringstream/2.cc: Same.
338         * testsuite/27_io/basic_stringbuf/4.cc: Same.
339         * testsuite/27_io/basic_stringbuf/1.cc: Same.
340         * testsuite/27_io/basic_stringbuf/2.cc: Same.
341         * testsuite/27_io/basic_streambuf/2.cc: Same.
342         * testsuite/27_io/basic_ostringstream/2.cc: Same.
343         * testsuite/27_io/basic_ostream/2.cc: Same.
344         * testsuite/27_io/basic_ofstream/2.cc: Same.
345         * testsuite/27_io/basic_istringstream/2.cc: Same.
346         * testsuite/27_io/basic_istream/2.cc: Same.
347         * testsuite/27_io/basic_iostream/2.cc: Same.
348         * testsuite/27_io/basic_ios/2.cc: Same.
349         * testsuite/27_io/basic_ifstream/2.cc: Same.
350         * testsuite/27_io/basic_fstream/2.cc: Same.
351         * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
353         * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
354         unsigned against zero.
355         * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
356         * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
358         * testsuite/18_support/new_delete_placement.cc: Initialize
359         variables before first use.
360         * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
361         * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
362         * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
363         * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc: 
364         Same.
365         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
366         * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc: 
367         Same.
368         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
369         * testsuite/27_io/types/2.cc: Same.
371         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
372         file name.      
373         * testsuite/27_io/fpos/14775.cc: Same.
374         
375 2004-04-19  Paolo Carlini  <pcarlini@suse.de>
377         PR libstdc++/15002 (partial)
378         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
379         Special case __n2 == 1, not calling traits_type::assign/copy. 
381 2004-04-17  Benjamin Kosnik  <bkoz@redhat.com>
383         * include/bits/stl_bvector.h: Use _M_impl._M_start.
384         
385 2004-04-16  Benjamin Kosnik  <bkoz@redhat.com>
386         
387         * include/bits/c++config (_GLIBCXX_STD): New.
388         * src/list.cc: Use it.
389         * include/std/std_bitset.h: Same.
390         * include/bits/vector.tcc: Same.
391         * include/bits/stl_set.h: Same.
392         * include/bits/stl_multiset.h: Same.
393         * include/bits/stl_multimap.h: Same.
394         * include/bits/stl_map.h: Same.
395         * include/bits/stl_list.h: Same.
396         * include/bits/stl_vector.h: Same.
397         * include/bits/stl_bvector.h: Same.
398         * include/bits/stl_deque.h: Same.
399         * include/bits/deque.tcc: Same.
400         * include/bits/list.tcc: Same.
401         * include/debug/vector: Same.
402         * include/debug/set.h: Same.
403         * include/debug/multiset.h: Same.
404         * include/debug/multimap.h: Same.
405         * include/debug/map.h: Same.
406         * include/debug/list: Same.
407         * include/debug/deque: Same.
408         * include/debug/bitset: Same.   
409         * include/debug/formatter.h (__gnu_debug): Remove using directive.
410         Add using declaration for std::type_info.
411         * include/debug/safe_iterator.h: Add using declaration for
412         std::iterator_traits and std::pair.
413         * src/debug_list.cc: New.
414         * src/Makefile.am: Add debug_list.cc.
415         * src/Makefile.in: Regenerate.
416         * config/linker-map.gnu: Add _List_node_base exports for std and
417         __gnu_norm.
419         * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
420         idiom that other containers use.
421         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
422                         
423 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
425         PR libstdc++/14975
426         * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
427         in case of error.
428         * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
429         * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
431 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
433         * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
434         used anymore.
435         * config.h.in: Regenerate.
437 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
439         * config/locale/generic/monetary_members.cc
440         (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
441         btowc unnecessarily, just cast to wchar_t (the concerned chars
442         all belong to the basic character set).
443         * config/locale/generic/numeric_members.cc
444         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
445         * config/locale/gnu/monetary_members.cc
446         (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
447         * config/locale/gnu/numeric_members.cc
448         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
450 2004-04-15  Paolo Carlini  <pcarlini@suse.de>
452         * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
453         avoid constructing unnecessarily this->name().
455 2004-04-14  Zack Weinberg  <zack@codesourcery.com>
457         * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
458         Change definition of CXX to use $(shell) instead of backticks.
459         * testsuite/Makefile.in: Regenerate.
461 2004-04-12  Dhruv Matani  <dhruvbird@gmx.net>
463         * testsuite/performance/20_util/allocator/list_sort_search.cc:
464         Minor formatting fixes.
465         * testsuite/performance/20_util/allocator/map_mt_find.cc:
466         Likewise.
468 2004-04-12  Paolo Carlini <pcarlini@suse.de>
470         * config/locale/gnu/numeric_members.cc
471         (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
472         in __uselocale, since btowc is called for chars belonging to
473         the basic character set.
475 2004-04-09  Paolo Carlini  <pcarlini@suse.de>
477         * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
478         * testsuite/22_locale/messages/members/char/2.cc: Ditto.
479         * testsuite/22_locale/messages/members/char/3.cc: Ditto.
480         * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
481         * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
482         * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
483         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
484         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
485         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
486         * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
487         * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
488         * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
489         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
490         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
491         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
492         * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
493         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
495 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
497         * config/locale/generic/time_members.cc
498         (__timepunct<char>::_M_initialize_timepunct,
499         __timepunct<wchar_t>::_M_initialize_timepunct): the correct
500         _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
501         * config/locale/gnu/time_members.cc
502         (__timepunct<char>::_M_initialize_timepunct,
503         __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
504         * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
505         * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
507         * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
508         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
509         * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
510         * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
511         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
512         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
513         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
514         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
515         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
516         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
517         * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
518         * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
519         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
520         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
521         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
522         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
523         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
524         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
525         * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
526         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
527         * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
528         * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
529         * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
530         * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
531         * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
532         * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
533         * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
534         * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
535         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
536         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
537         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
538         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
539         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
540         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
541         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
542         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
544         * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
546 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
548         * config/locale/gnu/monetary_members.cc
549         (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
550         _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
551         and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
552         _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
553         * config/locale/gnu/numeric_members.cc
554         (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
555         and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
557 2004-04-06  Benjamin Kosnik  <bkoz@redhat.com>
559         Fixups for EDG front end.
560         * include/ext/rope: Instead of non-existent function
561         _Data_allocate, use allocator's allocate. Use this.
562         (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
563         enumerations from _Rope_RopeRep here.
564         * include/ext/ropeimpl.h: Same.
565         * src/ext-inst.cc (_S_min_len): Fix up definition.
567         * config/locale/gnu/ctype_members.cc: Qualify base class members
568         with this.
569         * config/locale/generic/ctype_members.cc: Same.
570         * config/locale/gnu/messages_members.h: Same.
571         * config/locale/generic/messages_members.h: Same.
572         * src/ctype.cc: Same.
573         * include/bits/codecvt.h: Same.
575         * include/bits/boost_concept_check.h: Declare.
576         (__error_type_must_be_an_unsigned_integer_type): Remove this.
577         (__error_type_must_be_an_integer_type): Remove this.
578         (__error_type_must_be_a_signed_integer_type): Remove this.
580         * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
582         * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
583         specification to definition.
584         (__cxa_allocate_exception): Same.
585         * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
586         * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
587         (__cxa_get_globals): Same.
589         * libsupc++/del_op.cc: Add comment about freestanding.
591 2004-04-05  Paolo Carlini  <pcarlini@suse.de>
593         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
594         The critical section is actually very small, only two assignments.
596 2004-04-04  Paolo Carlini  <pcarlini@suse.de>
597             Petur Runolfsson  <peturr02@ru.is>
599         * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
600         adapted from libstdc++/11378.
602 2004-04-03  Paolo Carlini  <pcarlini@suse.de>
604         * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
605         some duplicated code.
606         (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
607         in the single threaded case.
608         * testsuite/performance/20_util/allocator/list_sort_search.cc:
609         Reorder and renumber the tests consistently with the other testfiles.
610         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
611         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
612         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
614 2004-04-02  Paolo Carlini  <pcarlini@suse.de>
616         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
617         Rearrange arithmetic to avoid computing two divisions at
618         each deallocation.
620 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
622         * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
623         Streamline the second half, wrapping it in a single
624         '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
625         conditionals inside loops.
627 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
629         PR libstdc++/14775
630         * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
631         * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
632         GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
633         to _GLIBCXX_RES_LIMITS.
634         (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
635         HAVE_LIMIT_*.
636         * testsuite/testsuite_hooks.h: Declare set_file_limit.
637         * testsuite/testsuite_hooks.cc: Define it, using getrlimit
638         and setrlimit(RLIMIT_FSIZE).
639         * testsuite/27_io/fpos/14775.cc: New.
640         * config.h.in: Regenerate.
641         * configure: Likewise.
643 2004-03-31  Paolo Carlini  <pcarlini@suse.de>
645         * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
646         In v3 uses of sscanf, the special floating-point numbers INF,
647         INFINITY, etc., cannot occur in input, therefore, if the latter
648         is too large, ERANGE is always stored in errno, no need of finitel.
650 2004-03-30  Benjamin Kosnik  <bkoz@redhat.com>
652         PR libstdc++/14783
653         * include/bits/stl_tree.h: Adjust initialization list order.
655 2004-03-29  Loren J. Rittle  <ljrittle@acm.org>
657         * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
659 2004-03-29  Paolo Carlini  <pcarlini@suse.de>
661         * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
662         on allocator behavior, the memory pointed by data2 may well be not
663         trashed.
665 2004-03-28  Chavdar Botev  <cbotev@yahoo.com>
667         PR libstdc++/14245
668         * include/bits/basic_string.tcc
669         (basic_string::basic_string(const basic_string&)): Pass to
670         _Rep::_M_grab the actual allocator of the string being constructed
671         not the default constructed one.
673 2004-03-27  Benjamin Kosnik  <bkoz@redhat.com>
675         libstdc++ PR/13598
676         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
677         (__enc_traits::_M_destroy): New.
678         (__enc_traits::~__enc_traits): Use it.
679         (__enc_traits::operator=): Use _M_destroy, _M_init.
680         (__enc_traits::__enc_traits): Same.
682 2004-03-27  Petur Runolfsson  <peturr02@ru.is>
684         * testsuite/ext/enc_filebuf/char/13598.cc: New.
686 2004-03-27  Paolo Carlini  <pcarlini@suse.de>
688         * include/ext/mt_allocator.h: Uglify consistently names of
689         variables, members and classes; tidy.
691 2004-03-27  Dhruv Matani  <dhruvbird@gmx.net>
693         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
694         Deallocation loop rewrote.
696 2004-03-26  Paolo Carlini  <pcarlini@suse.de>
698         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
699         __mt_alloc<>::deallocate): Protect two instances of
700         block->thread_id with __GTHREADS.
702 2004-03-25  Gawain Bolton  <gp.bolton@computer.org>
704         * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
705         default argument in constructors.
706         (_Rb_tree::_M_empty_initialize): Remove.
708 2004-03-25  Benjamin Kosnik  <bkoz@redhat.com>
710         * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
711         * testsuite/23_containers/set/operators/1_neg.cc: Same.
713 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
715         * include/bits/cpp_type_traits.h: Changed __is_pod
716         completely. Now, it does not use any of the previous type_traits
717         to detect the pod types, and it also detects function pointers as
718         POD types.
720         * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
721         which encapsulates the internal implementation of an rb_tree. Made
722         the allocator a base class of this class instead of the rb_tree,
723         which was not conforming. This _Rb_tree_impl class is also
724         specialized on whether the _Compare parameter is a POD type or
725         not. If so, then it maintains the comparison function as a data
726         member, otherwise it makes the _Compare parameter a base class of
727         itself. Also, _M_key_compare is now a function instead of a data
728         member, so that the above trick can work properly. Delegated the
729         initialization of the other data members to this newly created
730         class. Also, now other member functions of rb_tree must refer to
731         _M_key_compare as _M_impl._M_key_compare(). The other data members
732         (*) can be referenced to as _M_impl.(*), where
733         (*) includes _M_header, and _M_node_count.
735 2004-03-25  Paolo Carlini  <pcarlini@suse.de>
737         * include/ext/mt_allocator.h (__mt_alloc<>::tune):
738         Add _M_min_bin, the size in bytes of the smallest bin.
739         (__mt_alloc<>::tune()): Tweak accordingly.
740         (__mt_alloc<>::tune(size_t, ...)): Likewise.
741         (__mt_alloc<>::block_record): Change to a union: members next
742         and thread_id are never used at the same time.
743         (__mt_alloc<>::allocate): Update consistently.
744         (__mt_alloc<>::deallocate): Likewise.
745         (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
746         _S_bin_size for the configurable _M_min_size.
748 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
750         * include/bits/stl_list.h: Created a _List_impl class and made it
751         derive from the allocator, instead of the list deriving from the
752         allocator class, which was not conformant. Changed all references
753         from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
754         as above (changed all references to the concerned variables).
756 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
758         * include/bits/stl_deque.h: Created a _Deque_impl class and made
759         it derive from the allocator, instead of the deque deriving from
760         the allocator class, which was not conformant. Changed all
761         references to the _M_start, _M_finish, _M_map, and _M_map_size to
762         _M_impl.*.
763         (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
764         qualification in 2 places where it was missing.
765         (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
766         above.
767         * include/bits/deque.tcc: Same as above (changed all references to
768         the concerned variables).
770 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
772         * include/bits/stl_vector.h: Created a _Vector_impl class and made
773         it derive from the allocator, instead of the _Vector_base class,
774         deriving from the allocator which was not conformant. Changed all
775         references to the _M_start, _M_finish, and _M_end_of_storage to
776         _M_impl.*.
777         * include/bits/vector.tcc: Same as above (changed all references
778         to the concerned variables).
780 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
782         * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
783         * testsuite/23_containers/list/cons/clear_allocator.cc: New.
784         * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
786 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
788         * include/ext/malloc_allocator.h: Fixed the construct function to
789         call global placement new instead of assignment. Added a check
790         after the return from malloc to check whether returned pointer is
791         NULL, and if so, throw std::bad_alloc().
792         * include/ext/debug_allocator.h: Added a check in the deallocate
793         function to check whether the user has passed a NULL pointer or
794         not.
796 2004-03-24  Benjamin Kosnik  <bkoz@redhat.com>
798         * docs/html/20_util/allocator.html: Add bitmap_allocator links.
800 2004-03-24  Andreas Schwab  <schwab@suse.de>
802         * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
803         warning from IA64 assembler.
805 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
807         * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
808         function call __builtin_ctz instead of the while loop.
809         (allocate) -> If condition has __builtin_expect.
810         (deallocate) -> Ditto.
811         Renamed a few left-over variables and typedefs according to the
812         C++STYLE mentioned in the documentation.
813         Protected calls to __gthread* by __gthread_active_p(), whose value
814         is cached in the local variable __threads_active.
816 2004-03-24  Felix Yen  <fwy@alumni.brown.edu>
818         * testsuite/performance/20_util/allocator/producer_consumer.cc:
819         Use linear algorithm for producer.
821 2004-03-24  Paolo Carlini  <pcarlini@suse.de>
823         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
824         __mt_alloc<>::deallocate): Avoid redundant conditionals.
826 2004-03-23  Benjamin Kosnik  <bkoz@redhat.com>
828         * include/bits/locale_facets.h: Tweaks for 80 column.
829         (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
830         (__moneypunct_cache::_M_cache): Same.
831         (num_get): Don't inherit from __num_base.
832         (num_put): Same.
833         (money_get): Don't inherit from money_base.
834         (money_put): Same.
835         (__timepunct::_M_am_pm_format): New.
836         (time_get::_M_extract_num): Return iterator, use ios_base as argument.
837         (time_get::_M_extract_name): Same.
838         (time_get::_M_extract_via_format): Same.
839         * include/bits/locale_facets.tcc: Tweaks for 80 column.
840         Use _M_getloc instead of getloc.
841         * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
842         * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
843         * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
845 2004-03-22  Paolo Carlini  <pcarlini@suse.de>
847         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
848         * configure: Regenerate.
849         * config/allocator/pool_allocator_base.h: New.
850         * include/ext/pool_allocator.h: Convert to a standard-conforming
851         allocator.
852         * src/allocator.cc: Tweak instantiations.
853         * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
854         * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
855         * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
856         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
857         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
858         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
860 2004-03-22  Hans-Peter Nilsson  <hp@axis.com>
862         * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
863         inline" and attribute-unused.  Qualify parameter __mem with
864         "volatile".
865         (__exchange_and_add): Ditto.  Add back memory clobber to asm.
867 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
869         * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
870         Remove junk.
871         * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
872         Likewise.
873         * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
874         Likewise.
875         * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
876         Likewise.
877         * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
878         Likewise.
879         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
880         Likewise.
881         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
882         Likewise.
883         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
884         Likewise.
885         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
886         Likewise.
887         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
888         Likewise.
890 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
892         * include/std/std_valarray.h: Document DR389 [Ready].
893         * docs/html/ext/howto.html: Add an entry for DR389.
895 2004-03-19  Michael Eager  <eager@mvista.com>
897         * config/cpu/mips/atomicity.h:  Prevent reg loads between LL and
898         SC instructions.
900 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
902         * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
903         static_cast-s.
904         * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
905         * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
906         * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
907         * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
908         * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
909         * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
910         * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
911         * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
912         * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
914 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
915             Petur Runolfsson  <peturr02@ru.is>
917         PR libstdc++/12077
918         * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
919         no way to find out the conversion used by the underlying FILE*.
920         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
921         * testsuite/27_io/objects/char/9.cc: Tweak.
923 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
925         PR libstdc++/14648
926         * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
927         memory allocation/deallocation calls.
928         * testsuite/ext/14648.cc: New.
930 2004-03-19  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
932         PR libstdc++/14647
933         * include/backward/bvector.h (bit_vector): Allocator is in std
934         namespace.
936 2004-03-19  Phil Edwards  <phil@codesourcery.com>
938         * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT):  Set LIBICONV,
939         not libiconv.  SUBST this variable as well.
940         * testsuite/Makefile.am (site.exp):  New target, based on that
941         created by automake.  Also set libiconv.
943         * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
944         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
945         testsuite/Makefile.in:  Regenerate.
947 2004-03-16  Benjamin Kosnik  <bkoz@redhat.com>
949         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
950         new_allocator for all hosts.
951         * configure: Regenerate.
953 2004-03-16  Paolo Carlini  <pcarlini@suse.de>
955         * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
956         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
958 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
960         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
961         Adjust the logic underlying the parsing of symbol to deal
962         correctly with an optional sign component (i.e., when either
963         negative_sign or positive_sign is empty)
964         * testsuite/22_locale/money_get/get/char/19.cc: New.
965         * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
967 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
969         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
970         Do not accept an incomplete currency symbol.
971         * testsuite/22_locale/money_get/get/char/18.cc: New.
972         * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
974 2004-03-13  Benjamin Kosnik  <bkoz@redhat.com>
976         * config/allocator: New.
977         * config/allocator/bitmap_allocator_base.h: New.
978         * config/allocator/malloc_allocator_base.h: New.
979         * config/allocator/mt_allocator_base.h: New.
980         * config/allocator/new_allocator_base.h: New.
981         * include/bits/allocator.h: Include c++allocator.h.
982         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
983         * aclocal.m4: Regenerate.
984         * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
985         * configure: Regenerate.
986         * include/Makefile.am (host_headers_extra): Add c++allocator.h.
987         * include/Makefile.in: Regenerate.
988         * docs/html/configopts.html: Add enable-libstdcxx-allocator.
990 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
992         * include/bits/allocator.h: Revert.
994 2004-03-12  Paolo Carlini  <pcarlini@suse.de>
996         * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
997         * include/bits/gslice_array.h: Add comment about DR 253.
998         * include/bits/indirect_array.h: Likewise.
999         * include/bits/mask_array.h: Likewise.
1000         * include/bits/slice_array.h: Likewise.
1002 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
1004         * testsuite/20_util/allocator/14176.cc: New.
1005         * include/ext/mt_allocator.h: Formatting fixes.
1007 2004-03-11  Dhruv Matani  <dhruvbird@HotPOP.com>
1009         * include/Makefile.am (ext_headers): Add
1010         ${ext_srcdir}/bitmap_allocator.h .
1011         * include/Makefile.in: Regenerate.
1012         * docs/html/ext/ballocator_doc.txt: New file.
1013         * include/ext/bitmap_allocator.h: New file.
1014         * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
1015         test.
1016         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1017         * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
1018         test for the bitmap_allocator<>.
1019         * testsuite/performance/20_util/allocator/insert.cc: Likewise.
1020         * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1021         * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1023 2004-03-11  Paolo Carlini  <pcarlini@suse.de>
1025         * include/std/std_complex.h (pow(const complex&, const _Tp&),
1026         pow(const _Tp&, const complex&), pow(const complex&,
1027         const complex&)): Fully qualify with std:: a few calls.
1028         * testsuite/26_numerics/complex/13450.cc: Minor tweak.
1030 2004-03-11  Steven Bosscher  <stevenb@suse.de>
1032         PR libstdc++/11706
1033         * include/c_std/cmath.tcc (__cmath_power): Define inline.
1035 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
1037         * configure.ac: Bump AC_PREREQ to 2.59.
1039 2004-03-10  Paolo Carlini  <pcarlini@suse.de>
1041         * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
1043 2004-03-10  Paul Kienzle  <pkienzle@nist.gov>
1044             Paolo Carlini  <pcarlini@suse.de>
1046         PR libstdc++/13450
1047         * include/std/std_complex.h (pow(const complex&, const _Tp&),
1048         pow(const _Tp&, const complex&)): Use cmath pow only when safe.
1049         * testsuite/26_numerics/complex/13450.cc: New.
1051         * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
1052         * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
1054 2004-03-10  Jerry Quinn  <jlquinn@optonline.net>
1056         PR libstdc++/3247
1057         * include/bits/gslice_array.h (gslice_array()): Make public.
1058         (operator=(gslice_array)): Make public.  Implement.
1059         * include/bits/indirect_array.h (indirect_array()): Make public.
1060         * include/bits/mask_array.h (mask_array()): Make public.
1061         (operator=(mask_array)): Make public.  Implement.
1062         * include/bits/valarray_array.tcc (__valarray_copy):
1063         Comment.  Add versions for gslice_array and mask_array.
1064         * testsuite/26_numerics/valarray_subset_assignment.cc:  New test.
1066 2004-03-09  Benjamin Kosnik  <bkoz@redhat.com>
1068         * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
1069         non-weak systems.
1070         * testsuite/23_containers/vector/modifiers/swap.cc: Same.
1071         * testsuite/23_containers/set/modifiers/swap.cc: Same.
1072         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1073         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1074         * testsuite/23_containers/map/modifiers/swap.cc: Same.
1075         * testsuite/23_containers/list/modifiers/swap.cc: Same.
1077         * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
1079 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
1081         PR c++/13658
1082         * testsuite/23_containers/deque/modifiers/swap.cc: New.
1083         * testsuite/23_containers/list/modifiers/swap.cc: New.
1084         * testsuite/23_containers/map/modifiers/swap.cc: New.
1085         * testsuite/23_containers/multimap/modifiers/swap.cc: New.
1086         * testsuite/23_containers/multiset/modifiers/swap.cc: New.
1087         * testsuite/23_containers/set/modifiers/swap.cc: New.
1088         * testsuite/23_containers/vector/modifiers/swap.cc: New.
1090 2004-03-08  Petur Runolfsson  <peturr02@ru.is>
1092         PR libstdc++/12658
1093         * testsuite/22_locale/locale/cons/12658_thread.cc: New.
1095 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
1097         * docs/html/ext/howto.html: Add entry for DR 103 [WP].
1098         * include/bits/stl_multiset.h: Add comment about DR 103.
1099         * include/bits/stl_set.h: Likewise.
1101 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
1103         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1104         The value _space_ indicates that at least one space is required
1105         at that position.
1106         * testsuite/22_locale/money_get/get/char/17.cc: New.
1107         * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
1109         * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
1110         * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
1112         * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
1113         Remove redundant conditional on __str.size().
1115 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
1117         * include/bits/allocator.h: Switch defaults to mt_alloc.
1119 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
1121         * include/ext/mt_allocator.h (_S_initialize): If
1122         !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
1124 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
1126         PR libstdc++/12658
1127         * src/locale_init.cc (locale::locale): Lock critical regions with
1128         external mutexes.
1129         (locale::global): Same.
1130         * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
1131         Add in once bits for cases without __GTHREAD_MUTEX_INIT.
1132         (__glibcxx_mutex_lock): Same.
1134         * config/cpu/generic/atomicity.h: Remove
1135         _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
1136         * src/misc-inst.cc: Move all locking bits out of this file.
1138         * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
1139         * src/misc-inst.cc: Same.
1140         * config/cpu/hppa/atomicity.h: Same.
1142         * config/linker-map.gnu: Remove types in the signature of atomic
1143         exports, as they may vary.
1145 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
1147         * include/bits/locale_facets.tcc: Tweak the comment preceding
1148         has_facet: doesn't throw.
1150 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
1152         * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
1153         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
1154         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
1155         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
1156         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
1157         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
1158         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
1159         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
1161 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
1163         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1164         num_get<>::_M_extract_int, num_get<>::do_get(bool&),
1165         __pad<>::_S_pad): Prefer plain operator== to traits::eq().
1166         * testsuite/testsuite_character.h (struct __gnu_test::character):
1167         Provide operator==.
1168         * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
1169         Likewise.
1171 2004-03-05  Paolo Carlini  <pcarlini@suse.de>
1173         * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
1175 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
1177         * testsuite/23_containers/multiset/insert/1.cc: Test result string.
1179         * testsuite/23_containers/bitset/invalidation/1.cc: Main always
1180         returns 0.
1181         * testsuite/23_containers/deque/invalidation/4.cc: Same.
1182         * testsuite/23_containers/list/invalidation/1.cc: Same.
1183         * testsuite/23_containers/list/invalidation/2.cc: Same.
1184         * testsuite/23_containers/list/invalidation/3.cc: Same.
1185         * testsuite/23_containers/list/invalidation/4.cc: Same.
1186         * testsuite/23_containers/map/invalidation/2.cc: Same.
1187         * testsuite/23_containers/multimap/invalidation/1.cc: Same.
1188         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1189         * testsuite/23_containers/multiset/invalidation/1.cc: Same.
1190         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1191         * testsuite/23_containers/set/invalidation/1.cc: Same.
1192         * testsuite/23_containers/set/invalidation/2.cc: Same.
1193         * testsuite/23_containers/vector/invalidation/1.cc: Same.
1194         * testsuite/23_containers/vector/invalidation/2.cc: Same.
1195         * testsuite/23_containers/vector/invalidation/3.cc: Same.
1196         * testsuite/23_containers/vector/invalidation/4.cc: Same.
1198 2004-03-04  Paolo Carlini  <pcarlini@suse.de>
1200         * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
1201         CXXFLAGS_save.
1202         * testsuite/lib/libstdc++.exp: Don't add it conditionally to
1203         DEFAULT_CXXFLAGS.
1204         * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
1205         from the dg-options.
1206         * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
1207         * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
1208         * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
1209         * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
1210         * testsuite/23_containers/vector/resize/1.cc: Likewise.
1211         * testsuite/26_numerics/complex_value.cc: Likewise.
1212         * testsuite/27_io/ios_base/storage/1.cc: Likewise.
1213         * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1214         * testsuite/27_io/ios_base/storage/3.cc: Likewise.
1215         * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1216         * testsuite/27_io/objects/char/5.cc: Likewise.
1217         * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
1218         * testsuite/backward/11460.cc: Likewise.
1219         * testsuite/thread/pthread7-rope.cc: Likewise.
1221         * testsuite/21_strings/basic_string/compare/char/1.cc: Add
1222         missing test variable.
1223         * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
1224         missing test variable.
1226 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
1228         * testsuite/20_util/allocator/1.cc: Provide explicit
1229         instantiations for non-weak systems.
1230         * testsuite/20_util/binders.cc: Same.
1231         * testsuite/20_util/allocator/8230.cc: Same.
1232         * testsuite/20_util/allocator/10378.cc: Same.
1233         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
1234         * testsuite/22_locale/ctype/is/char/2.cc: Same.
1235         * testsuite/thread/pthread7-rope.cc: Same.
1236         * testsuite/thread/pthread6.cc: Same.
1237         * testsuite/thread/pthread5.cc: Same.
1238         * testsuite/thread/pthread4.cc: Same.
1239         * testsuite/thread/pthread1.cc: Same.
1240         * testsuite/ext/rope.cc: Same.
1241         * testsuite/ext/hash_set.cc: Same.
1242         * testsuite/ext/hash_map.cc: Same.
1243         * testsuite/ext/concept_checks.cc: Same.
1244         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
1245         * testsuite/25_algorithms/unique/2.cc: Same.
1246         * testsuite/25_algorithms/unique/1.cc: Same.
1247         * testsuite/25_algorithms/rotate.cc: Same.
1248         * testsuite/25_algorithms/min_max.cc: Same.
1249         * testsuite/25_algorithms/equal.cc: Same.
1250         * testsuite/24_iterators/rel_ops.cc: Same.
1251         * testsuite/24_iterators/iterator.cc: Same.
1252         * testsuite/24_iterators/insert_iterator.cc: Same.
1253         * testsuite/24_iterators/front_insert_iterator.cc: Same.
1254         * testsuite/24_iterators/back_insert_iterator.cc: Same.
1255         * testsuite/23_containers/vector/resize/1.cc: Same.
1256         * testsuite/23_containers/vector/modifiers/2.cc: Same.
1257         * testsuite/23_containers/vector/modifiers/1.cc: Same.
1258         * testsuite/23_containers/vector/invalidation/4.cc: Same.
1259         * testsuite/23_containers/vector/invalidation/3.cc: Same.
1260         * testsuite/23_containers/vector/invalidation/2.cc: Same.
1261         * testsuite/23_containers/vector/invalidation/1.cc: Same.
1262         * testsuite/23_containers/vector/element_access/1.cc: Same.
1263         * testsuite/23_containers/vector/cons/6513.cc: Same.
1264         * testsuite/23_containers/vector/cons/3.cc: Same.
1265         * testsuite/23_containers/vector/cons/2.cc: Same.
1266         * testsuite/23_containers/vector/cons/1.cc: Same.
1267         * testsuite/23_containers/vector/capacity/8230.cc: Same.
1268         * testsuite/23_containers/vector/capacity/1.cc: Same.
1269         * testsuite/23_containers/vector/bool/6886.cc: Same.
1270         * testsuite/23_containers/stack/members/7158.cc: Same.
1271         * testsuite/23_containers/set/invalidation/2.cc: Same.
1272         * testsuite/23_containers/set/invalidation/1.cc: Same.
1273         * testsuite/23_containers/queue/members/7157.cc: Same.
1274         * testsuite/23_containers/priority_queue/members/7161.cc: Same.
1275         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1276         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1277         * testsuite/23_containers/multiset/insert/1.cc: Same.
1278         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1279         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1280         * testsuite/23_containers/map/operators/1.cc: Same.
1281         * testsuite/23_containers/map/invalidation/2.cc: Same.
1282         * testsuite/23_containers/map/invalidation/1.cc: Same.
1283         * testsuite/23_containers/map/insert/1.cc: Same.
1284         * testsuite/23_containers/list/operators/4.cc: Same.
1285         * testsuite/23_containers/list/operators/3.cc: Same.
1286         * testsuite/23_containers/list/operators/2.cc: Same.
1287         * testsuite/23_containers/list/operators/1.cc: Same.
1288         * testsuite/23_containers/list/modifiers/3.cc: Same.
1289         * testsuite/23_containers/list/modifiers/2.cc: Same.
1290         * testsuite/23_containers/list/modifiers/1.cc: Same.
1291         * testsuite/23_containers/list/invalidation/4.cc: Same.
1292         * testsuite/23_containers/list/invalidation/3.cc: Same.
1293         * testsuite/23_containers/list/invalidation/2.cc: Same.
1294         * testsuite/23_containers/list/invalidation/1.cc: Same.
1295         * testsuite/23_containers/list/cons/9.cc: Same.
1296         * testsuite/23_containers/list/cons/8.cc: Same.
1297         * testsuite/23_containers/list/cons/7.cc: Same.
1298         * testsuite/23_containers/list/cons/6.cc: Same.
1299         * testsuite/23_containers/list/cons/5.cc: Same.
1300         * testsuite/23_containers/list/cons/4.cc: Same.
1301         * testsuite/23_containers/list/cons/3.cc: Same.
1302         * testsuite/23_containers/list/cons/2.cc: Same.
1303         * testsuite/23_containers/list/cons/1.cc: Same.
1304         * testsuite/23_containers/list/capacity/1.cc: Same.
1305         * testsuite/23_containers/deque/operators/1.cc: Same.
1306         * testsuite/23_containers/deque/invalidation/4.cc: Same.
1307         * testsuite/23_containers/deque/invalidation/3.cc: Same.
1308         * testsuite/23_containers/deque/invalidation/2.cc: Same.
1309         * testsuite/23_containers/deque/invalidation/1.cc: Same.
1310         * testsuite/23_containers/deque/cons/2.cc: Same.
1311         * testsuite/23_containers/deque/cons/1.cc: Same.
1313         * src/allocator.cc: Add char, wchar_t instantiations
1314         to match extern template declarations in memory.h.
1316 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
1318         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1319         Fix warning regression.
1321 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
1323         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1324         Deal properly with empty __digits and negative frac_digits,
1325         clean-up a bit.
1327 2004-03-03  Jonathan Wakely  <redi@gcc.gnu.org>
1329         * docs/html/documentation.html: Regenerate.
1331 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
1333         PR libstdc++/14320
1334         * include/bits/postypes.h (class streamoff): Remove, now
1335         streamoff is just typedef a 64 bit signed integer type.
1336         (class fpos): Tweak consistently.
1337         * testsuite/27_io/fpos/14320-1.cc: New.
1338         * testsuite/27_io/fpos/14320-2.cc: New.
1339         * testsuite/27_io/fpos/14320-3.cc: New.
1340         * testsuite/27_io/fpos/14320-4.cc: New.
1341         * testsuite/27_io/fpos/14320-5.cc: New.
1342         * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
1344 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
1346         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1347         Reorganize a bit the main parsing loop, thus early detecting
1348         an empty value component.
1349         * testsuite/22_locale/money_get/get/char/16.cc: New.
1350         * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
1352 2004-03-02  Benjamin Kosnik  <bkoz@redhat.com>
1354         Support automake 1.8.2
1355         * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
1356         * po/Makefile.am (EXTRA_DIST): New.
1357         * po/Makefile.in: Regenerate.
1358         * Makefile.in: Same.
1359         * include/Makefile.in: Same.
1360         * libmath/Makefile.in: Same.
1361         * libsupc++/Makefile.in: Same.
1362         * src/Makefile.in: Same.
1363         * testsuite/Makefile.in: Same.
1365         * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
1366         __GXX_WEAK__ instead of SUPPORTS_WEAK.
1367         (${host_builddir}/gthr-default.h): Same.
1368         (${host_builddir}/gthr.h): Same.
1369         * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
1370         _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
1371         -fno-weak.
1372         * aclocal.m4: Regenerate.
1373         * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
1374         * config.h.in: Regenerate.
1375         * configure: Same.
1377 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
1379         Support autoconf 2.59
1380         * acinclude.m4: Quote correctly.
1381         * aclocal.m4: Regenerate.
1382         * linkage.m4: Same.
1384 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
1386         * docs/html/test.html: Add multilib RUNTESTFLAGS example.
1388         * docs/html/18_support/howto.html: Add bit about writing to
1389         stderr, mostly by Zack.
1391 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
1393         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
1394         money_get<>::do_get(string_type&)): ... and two more.
1396 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
1398         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1399         Fix thinkos in the switch from string_type& to string& as last
1400         argument.
1402 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
1404         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
1405         Also when parsing exponent sign, first look for thousands_sep
1406         and decimal_point; tweak a bit.
1407         * testsuite/22_locale/num_get/get/char/15.cc: New.
1408         * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
1410         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1411         num_get<>::_M_extract_int): Reorder some conditionals.
1413 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
1415         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1416         Consistently with numpunct, enforce the requirements in
1417         22.2.6.3, p3 for the thousands separators; tweak a bit.
1418         * testsuite/22_locale/money_get/get/char/15.cc: New.
1419         * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
1421 2004-03-01  David Billinghurst <David.Billinghurst@riotinto.com>
1423         * testsuite/lib/libstdc++.exp (v3-list-tests): Use
1424         testsuite_files from correct multilib blddir when running
1425         testsuite.
1427 2004-02-29  Phil Edwards  <phil@codesourcery.com>
1429         * testsuite/Makefile.am (check-abi, check-abi-verbose):  Copy
1430         the summary file to the logfile.
1431         * testsuite/Makefile.in:  Regenerate.
1433 2004-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1435         * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
1436         volatile.
1437         * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
1438         __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
1440 2004-02-28  Paolo Carlini  <pcarlini@suse.de>
1442         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
1443         According to 22.2.3.1, p2, 'units' may be followed by 'e' with
1444         no 'decimal-point' in the middle: in this case too we must fix
1445         up __found_grouping; slightly tweak.
1446         * testsuite/22_locale/num_get/get/char/14.cc: New.
1447         * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
1449 2004-02-27  Eric Christopher  <echristo@redhat.com>
1450             Phil Edwards  <phil@codesourcery.com>
1452         * testsuite/22_locale/collate/compare/wchar_t/2.cc,
1453         testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
1454         testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
1455         testsuite/22_locale/collate/hash/wchar_t/2.cc,
1456         testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
1457         testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
1458         testsuite/22_locale/collate/transform/wchar_t/2.cc,
1459         testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
1460         testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
1461         Use dg-require-iconv.
1462         * testsuite/lib/libstdc++.exp:  Load target-supports.exp.
1464 2004-02-27  Phil Edwards  <phil@codesourcery.com>
1465             Eric Christopher  <echristo@redhat.com>
1467         * testsuite/config/default.exp:  Update with comments.
1468         (${tool}_target_compile):  New wrapper routine.
1469         * testsuite/lib/dg-options.exp:  New file, with dg-require-iconv.
1470         * testsuite/lib/libstdc++.exp:  Update with comments and cosmetic
1471         fixes.
1472         (load_gcc_lib, v3track):  New routines.
1473         (v3-init):  Rename to libstdc++_init.
1474         * testsuite/libstdc++-dg/normal.exp:  No longer call v3-init.
1475         Move DEFAULT_CXXFLAGS handling into libstdc++_init.
1477 2004-02-27  Benjamin Kosnik  <bkoz@redhat.com>
1479         * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
1481         * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
1483         * config/os/irix/irix5.2/atomicity.h: Merge..
1484         * config/os/irix/irix6.5/atomicity.h: Merge..
1485         * config/os/irix/atomicity.h: ...into this.
1486         * config/os/irix/atomic_word.h: New.
1487         * configure.host: Set atomic_word_dir for irix.
1489         * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
1490         * i386/atomicity.h: Same.
1491         * m68k/atomicity.h: Same.
1492         * sparc/atomicity.h: Same.
1494 2004-02-27  David Edelsohn  <edelsohn@gnu.org>
1496         * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
1497         static, and inline keywords.
1499 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
1501         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1502         num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
1503         call reserve on the __tmp_gruping string.
1504         (num_get<>::_M_extract_float): Don't append unnecessarily a
1505         char() to the returned string.
1506         * include/bits/locale_facets.tcc: Trivial reformattings.
1508 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
1510         * include/bits/locale_facets.h (money_get<>::_M_extract):
1511         Change signature: now takes a plain string&.
1512         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1513         Update consistently the definition; use the moneypunct cache
1514         to parse the value; use swap to change __units.
1515         (money_get<>::do_get(long double&)): Update call of _M_extract,
1516         avoid ctype::narrow, not correct wrt the standard.
1517         (money_get<>::do_get(string_type&)): Likewise, update call
1518         of _M_extract, use ctype::widen.
1519         * src/locale-inst.cc: Tweak instantiations of _M_extract.
1521 2004-02-26  Ian Lance Taylor  <ian@wasabisystems.com>
1523         * testsuite/demangle/abi_examples/01.cc: Expect error -2.
1524         * testsuite/demangle/abi_examples/02.cc: Likewise.
1525         * testsuite/demangle/regression/cw-11.cc: Likewise.
1526         * testsuite/demangle/regression/cw-16.cc: Change two expected
1527         results to match libiberty demangler output.
1529 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
1531         PR libstdc++/10246
1532         * libsupc++/Makefile.am: Use libiberty demangler.
1533         (c_sources): Add cp-demangle.c.
1534         * libsupc++/Makefile.in: Regenerate.
1535         * src/Makefile.am (sources): Remove demangle.cc.
1536         * src/Makefile.in: Regenerate.
1537         * include/Makefile.am (bits_headers): Move demangle.h.
1538         (ext_headers): ...here.
1539         * include/Makefile.in: Regenerate.
1540         * include/bits/demangle.h: Move...
1541         * include/ext/demangle.h: ...here.
1542         * src/demangle.cc: Remove.
1544 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
1546         * include/bits/demangle.h: Add type template parameter to all
1547         templates with just an Allocator template parameter.
1549 2004-02-25  Benjamin Kosnik  <bkoz@redhat.com>
1551         * include/bits/atomicity.h: New, forward declarations for __atomic_add
1552         and __exchange_and_add.
1553         * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
1554         * config/cpu/cris/atomic_word.h: Same.
1555         * config/cpu/sparc/atomic_word.h: Same.
1556         * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
1557         Qualifiy with __gnu_cxx.
1558         (_Callback_list::_M_add_reference): Same.
1559         * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
1560         (locale::facet::_M_remove_reference): Same.
1561         (locale::_Impl::_M_add_reference): Add.
1562         (locale::_Impl::_M_remove_reference): Same.
1563         * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
1564         (basic_string::_Rep::_M_dispose): Same.
1565         * src/ios.cc (ios_base::xalloc): Same.
1566         * src/ios_init.cc (ios_base::Init::Init): Same.
1567         (ios_base::Init::~Init): Same.
1568         * src/locale.cc (locale::id::_M_id): Same.
1569         * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
1570         static, and inline keywords.
1571         * config/cpu/alpha/atomicity.h: Same.
1572         * config/cpu/cris/atomicity.h: Same.
1573         * config/cpu/generic/atomicity.h: Same.
1574         * config/cpu/hppa/atomicity.h: Same.
1575         * config/cpu/i386/atomicity.h: Same.
1576         * config/cpu/ia64/atomicity.h: Same.
1577         * config/cpu/m68k/atomicity.h: Same.
1578         * config/cpu/mips/atomicity.h: Same.
1579         * config/cpu/powerpc/atomicity.h: Same.
1580         * config/cpu/s390/atomicity.h: Same.
1581         * config/cpu/sparc/atomicity.h: Same.
1583         * src/Makefile.am (host_sources): Add atomicity.cc.
1584         (atomicity.cc): New rule.
1585         * src/Makefile.in: Regenerate.
1586         * include/Makefile.am (host_headers): Remove host atomicity.h.
1587         (host_headers): Add atomic_word.h.
1588         (bits_headers): Add bits atomicity.h.
1589         Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
1590         * include/Makefile.in: Regenerate.
1591         * configure.host (atomic_word_dir): Add.
1592         * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
1593         ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
1594         * configure: Regenerate.
1595         * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
1597         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
1598         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1600 2004-02-25  Jonathan Wakely  <redi@gcc.gnu.org>
1602         * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
1603         docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
1604         Fix markup, more <link> tags.
1606 2004-02-25  Carlo Wood  <carlo@alinoe.com>
1608         * bits/demangle.h
1609         namespace __gnu_cxx::demangler
1610         (session<Allocator>::qualifier_list_Allocator): Add
1611         (session<Allocator>::M_qualifier_list_alloc): Add
1612         (session<Allocator>::decode_type_with_postfix):
1613         Use M_qualifier_list_alloc instead of calling operator new/delete.
1615 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
1617         PR libstdc++/14252
1618         * include/bits/postypes.h (class streamoff): Add operator++(),
1619         operator++(int), operator--() and operator--(int).
1620         * testsuite/27_io/fpos/14252.cc: New.
1622 2004-02-24  Richard Sandiford  <rsandifo@redhat.com>
1624         * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
1625         error in handling of hex constants.
1627 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
1629         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1630         Prefer basic_string::append to operator+= and a temporary.
1632 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
1634         * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
1635         Only use fputs, not write.
1637 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
1639         * include/ext/malloc_allocator.h: Add operators ==, !=.
1640         * include/ext/new_allocator.h: Add operators ==, !=.
1641         * include/ext/mt_allocator.h (__mt_alloc::tune): New.
1642         (__mt_alloc::_S_get_options): New.
1643         (__mt_alloc::_S_set_options): New.
1644         (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
1645         (__mt_alloc::_S_no_of_bins): To _S_bin_size.
1646         Move functions out of line, simplify, format.
1647         * src/allocator.cc: Simplify explicit instantiations.
1648         * include/bits/allocator.h: Tweak.
1650 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
1652         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1653         Restructure formatting of value component, first dealing with
1654         the non-decimal digits; use reserve.
1656 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
1658         * include/bits/locale_facets.h (class money_get): Inherit
1659         from money_base too; tweak declaration of _M_extract, now
1660         parameterized on _Intl too.
1661         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1662         Update definition to use the cache; call reserve on __res to
1663         avoid multiple reallocations; fix parsing of sign component
1664         according to 22.2.6.1.2, p3.
1665         (money_get<>::do_get(long double&),
1666         money_get<>::do_get(string_type&)): Update calls of _M_extract.
1667         * src/locale-inst.cc:  Add instantiations of
1668         money_get::_M_extract<false> and money_get::_M_extract<true>.
1669         * testsuite/22_locale/money_get/get/char/14.cc: New.
1670         * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
1672 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
1674         * libsupc++/vterminate.cc
1675         (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
1676         calls to terminate.
1677         * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
1679         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
1680         not set RLIMIT_AS on HP-UX.
1682 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
1684         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
1685         not set RLIMIT_AS on HP-UX.
1687 2004-02-21  Paolo Carlini  <pcarlini@suse.de>
1689         * include/bits/locale_facets.h (class money_base): Add { _S_minus,
1690         _S_zero, _S_end } enum, _S_atoms.
1691         (struct __moneypunct_cache<>): Parameterize on _Intl too; add
1692         _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
1693         _M_negative_sign_size, _M_atoms; tweak constructor consistently.
1694         (__moneypunct_cache<>::~__moneypunct_cache): Update.
1695         (__moneypunct_cache<>::_M_cache): Fill the cache.
1696         (class moneypunct): Tweak __cache_type typedef.
1697         (class money_put): Inherit from money_base too; tweak declaration
1698         of _M_insert, now parameterized on _Intl.
1699         * include/bits/locale_facets.tcc
1700         (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
1701         (money_put<>::_M_insert): Update definition to use the cache;
1702         call reserve on __res to avoid multiple reallocations.
1703         (money_put<>::do_put(long double),
1704         money_put<>::do_put(const string_type&): Update calls of _M_insert.
1705         * config/locale/generic/monetary_members.cc
1706         (moneypunct<char, true>::_M_initialize_moneypunct,
1707         moneypunct<char, false>::_M_initialize_moneypunct,
1708         moneypunct<wchar_t, true>::_M_initialize_moneypunct,
1709         moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
1710         * config/locale/gnu/monetary_members.cc: Likewise.
1711         * config/locale/gnu/monetary_members.cc
1712         (moneypunct<wchar_t, true>::~moneypunct(),
1713         moneypunct<wchar_t, false>::~moneypunct()): Likewise.
1714         * src/globals_locale.cc: Tweak fake_money_cache_c.
1715         * src/locale-inst.cc: Add instantiations for
1716         money_put::_M_insert<false> and money_put::_M_insert<true> and
1717         __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
1718         * src/locale_facets.cc: Define money_base::_S_atoms.
1719         * src/locale_init.cc: Update placement new of
1720         __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
1721         __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
1723         * config/locale/generic/numeric_members.cc: Clean up.
1724         * config/locale/gnu/numeric_members.cc: Likewise.
1725         * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
1726         * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
1727         * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
1728         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
1729         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
1730         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
1732 2004-02-20  Mark Mitchell  <mark@codesourcery.com>
1734         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
1735         FIFO for writing with ios_base::in|ios_base::out.
1736         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
1737         * testsuite/27_io/objects/char/7.cc: Likewise.
1738         * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
1739         with "r+".
1741 2004-02-19  David Edelsohn  <edelsohn@gnu.org>
1743         * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
1744         from iso-8859-1 to ISO8859-1.
1745         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
1746         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
1747         * 22_locale/collate/hash/wchar_t/2.cc: Same.
1748         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
1749         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
1750         * 22_locale/collate/transform/wchar_t/2.cc: Same.
1751         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
1752         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
1754 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
1756         * include/bits/locale_facets.h (money_get<>::_M_extract):
1757         New, helper for do_get.
1758         (money_put<>::_M_insert): Likewise, for do_put.
1759         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
1760         money_put<>::_M_insert): Define.
1761         (money_get<>::do_get(long double&), money_get<>::do_get(
1762         string_type&), money_put::do_put(long double),
1763         money_put::do_put(const string_type&)): Use the helpers.
1765 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
1767         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
1768         Rewrite, avoiding recursion.
1769         (__gnu_internal::xwrite): Minor tweaks.
1771 2004-02-17  Stefan Olsson  <stefan@xapa.se>
1773         * include/ext/mt_allocator.h: Removed the last
1774         pointer. Deallocated blocks are now added to the front of
1775         freelists as proposed by Felix Yen.  This gives roughly 10%
1776         performance boost and saves some memory.
1777         * docs/html/ext/mt_allocator.html: Change due to that deallocated
1778         blocks now are added to the front of freelists. The reason to this
1779         approach is also explained.
1781 2004-02-17  Paolo Carlini  <pcarlini@suse.de>
1783         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1784         num_get<>::_M_extract_int, money_get<>::do_get): Simplify
1785         grouping fidelity conditional.
1787 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
1789         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
1790         Qualify exception with std::.
1791         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
1792         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
1793         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
1794         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
1795         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
1797 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
1799         * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
1800         for now that the catch block is not reached.
1801         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
1803 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
1805         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
1806         Fix parsing of the remaining sign characters.
1807         * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
1808         the input is scanned 'til eof.
1809         * 22_locale/money_get/get/char/4.cc: Likewise.
1810         * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
1811         * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
1812         * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
1813         not do_pos_format: the former is the only one that matters during
1814         input.
1815         * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
1817         * 22_locale/money_get/get/char/6.cc: Minor tweak.
1818         * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
1820 2004-02-15  David Asher  <david.asher@cavium.com>
1822         PR libstdc++/11352
1823         * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
1824         access __olds beyond __oldlen.
1826 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
1828         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
1829         sure the exception is actually thrown.
1830         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
1831         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
1832         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
1834 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
1836         PR libstdc++/13858
1837         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
1838         In case of conversion errors, throw ios_failure; simplify.
1839         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
1840         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
1841         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
1842         previously we didn't throw in case of conversion errors, instead
1843         just returned eof().
1844         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
1845         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
1846         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
1848         * include/bits/fstream.tcc (basic_filebuf<>::overflow):
1849         Trivial simplification of a conditional.
1851 2004-02-12  Paolo Carlini  <pcarlini@suse.de>
1853         PR libstdc++/13731 (final part: writev)
1854         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
1855         New, a wrapper around writev() handling partial writes.
1856         (__basic_file<char>::xwrite): Move to __gnu_internal and make
1857         static.
1858         (__basic_file<char>::xsputn): Update call.
1859         (__basic_file<char>::xsputn_2): Likewise.
1860         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
1861         Don't declare, now static.
1863 2004-02-11  Stefan Olsson  <stefan@xapa.se>
1865         * docs/html/ext/mt_allocator.html: New.
1867 2004-02-11  Benjamin Kosnik  <bkoz@redhat.com>
1869         * docs/html/20_util/allocator.html: New file, consolidate
1870         allocator information here. Revamp.
1871         * docs/html/documentation.html: Change links.
1872         * docs/html/20_util/howto.html: Same.
1873         * docs/html/ext/howto.html: Same.
1875 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
1877         PR libstdc++/13731 (first part: write)
1878         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
1879         New, declare.
1880         * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
1881         Define it: a wrapper around write() handling partial write.
1882         (__basic_file<char>::xsputn): Use it.
1883         (__basic_file<char>::xsputn_2): Likewise.
1885 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
1886             Petur Runolfsson  <peturr02@ru.is>
1888         PR libstdc++/14078
1889         * include/std/std_istream.h (operator>>(__istream_type& (*)
1890         (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
1891         operator>>(ios_base& (*)(ios_base&))): Declare inline.
1892         * include/std/std_ostream.h (operator<<(__ostream_type& (*)
1893         (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
1894         operator<<(ios_base& (*) (ios_base&))): Likewise.
1895         * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
1897 2004-02-10  Loren J. Rittle  <ljrittle@acm.org>
1899         PR libstdc++/14098
1900         * config/linker-map.gnu: Add typeinfo and typeinfo name for
1901         __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
1903         PR libstdc++/14097
1904         * config/linker-map.gnu: Add typeinfo and typeinfo name for
1905         __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
1907 2004-02-09  Loren J. Rittle  <ljrittle@acm.org>
1909         * include/ext/pool_allocator.h: Include c++config.h.
1911 2004-02-09  Stefan Olsson  <stefan@xapa.se>
1913         * include/ext/mt_allocator.h: thread_id is unused in non threaded
1914         applications and now has a ifdef to remove it completely on
1915         compilers without thread support. Include stdlib.h due to a
1916         compiler warning on getenv().
1918 2004-02-09  Paul Brook  <paul@codesourcery.com>
1920         * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
1922 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
1924         PR libstdc++/14071
1925         * src/locale_init.cc (locale::global(const locale&)): Use
1926         locale::name() in order to decide whether calling setlocale.
1927         * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
1929         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
1930         Avoid computing &= unnecessarily.
1932 2004-02-09  James E Wilson  <wilson@specifixinc.com>
1934         PR libstdc++/5625
1935         * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
1936         __builtin_extend_pointer.
1938 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
1940         PR libstdc++/14072
1941         * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
1942         Don't leave dangling pointers.
1943         * testsuite/27_io/basic_ios/imbue/14072.cc: New.
1944         * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
1945         facet is needed in the final test.
1947 2004-02-09  Bernardo Innocenti  <bernie@develer.com>
1949         * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
1950         * configure: Regenerate.
1952 2004-02-08  Richard Henderson  <rth@redhat.com>
1954         PR libstdc++/14026
1955         * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
1956         uncaughtExceptions during nested catch rethrow.
1957         * testsuite/18_support/14026.cc: New.
1959 2004-02-08  Paolo Carlini  <pcarlini@suse.de>
1961         * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
1962         When working in place remember to set the state to sharable
1963         (otherwise, _M_mutate does it).
1965 2004-02-08  Bernardo Innocenti  <bernie@develer.com>
1967         * include/bits/allocator.h, include/bits/basic_ios.h,
1968         include/bits/basic_ios.tcc, include/bits/basic_string.h,
1969         include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
1970         include/bits/char_traits.h, include/bits/codecvt.h,
1971         include/bits/concurrence.h, include/bits/cpp_type_traits.h,
1972         include/bits/demangle.h, include/bits/deque.tcc,
1973         include/bits/fstream.tcc, include/bits/functexcept.h,
1974         include/bits/gslice.h, include/bits/gslice_array.h,
1975         include/bits/indirect_array.h, include/bits/ios_base.h,
1976         include/bits/istream.tcc, include/bits/list.tcc,
1977         include/bits/locale_classes.h, include/bits/locale_facets.h,
1978         include/bits/locale_facets.tcc, include/bits/localefwd.h,
1979         include/bits/mask_array.h, include/bits/ostream.tcc,
1980         include/bits/postypes.h, include/bits/slice_array.h,
1981         include/bits/sstream.tcc, include/bits/stl_algo.h,
1982         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
1983         include/bits/stl_construct.h, include/bits/stl_deque.h,
1984         include/bits/stl_function.h, include/bits/stl_heap.h,
1985         include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
1986         include/bits/stl_list.h, include/bits/stl_map.h,
1987         include/bits/stl_multimap.h, include/bits/stl_multiset.h,
1988         include/bits/stl_numeric.h, include/bits/stl_pair.h,
1989         include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
1990         include/bits/stl_relops.h, include/bits/stl_set.h,
1991         include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
1992         include/bits/stl_threads.h, include/bits/stl_tree.h,
1993         include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
1994         include/bits/stream_iterator.h, include/bits/streambuf.tcc,
1995         include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
1996         include/bits/type_traits.h, include/bits/valarray_after.h,
1997         include/bits/valarray_array.h, include/bits/valarray_array.tcc,
1998         include/bits/valarray_before.h, include/bits/vector.tcc: Remove
1999         trailing whitespace.
2001 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
2003         * include/bits/basic_string.h: Fix comment.
2005 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
2007         * include/bits/stl_construct.h: Wrap overlong lines, reformat
2008         according to the coding standards.
2009         * include/bits/stl_pair.h: Likewise.
2010         * include/bits/stl_raw_storage_iter.h: Likewise.
2011         * include/bits/stl_stack.h: Likewise.
2012         * include/bits/stl_uninitialized.h: Likewise.
2013         * include/bits/stream_iterator.h: Likewise.
2014         * include/bits/streambuf_iterator.h: Likewise.
2015         * include/bits/type_traits.h: Likewise.
2017 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
2019         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2020         Adjust timings.
2022 2004-02-05  Loren J. Rittle  <ljrittle@acm.org>
2024         * scripts/check_performance: Support PCH.
2026         * scripts/check_performance (CXX): Add -DNOTHREAD.
2027         * testsuite/performance/20_util/allocator/insert.cc: Integrate
2028         threaded tests from insert_insert.cc.  Tweak iterations,
2029         remove special cases.
2030         * testsuite/performance/20_util/allocator/insert_insert.cc:
2031         Make all tests single-threaded. Tweak iterations.
2032         * testsuite/performance/20_util/allocator/map_thread.cc:
2033         Tweak iterations.
2034         * testsuite/performance/20_util/allocator/producer_consumer.cc:
2035         Likewise.
2037 2004-02-05  Geoffrey Keating  <geoffk@apple.com>
2039         PR 12179
2040         * .cvsignore: New.
2041         * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
2042         'gcc-lib'.  Add comment about poorly-named variables.
2043         * aclocal.m4: Regenerate.
2044         * configure: Regenerate.
2046 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
2048         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2049         Thousands-sep are always optional; thousands-sep are not allowed
2050         after the decimal_point.
2051         * testsuite/22_locale/money_get/get/char/12.cc: New.
2052         * testsuite/22_locale/money_get/get/char/13.cc: New.
2053         * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
2054         * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
2056         * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
2057         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2058         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2059         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2060         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2061         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2062         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2063         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2065         * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
2066         the standard.
2067         * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
2069 2004-02-05  Richard Sandiford  <rsandifo@redhat.com>
2071         * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
2072         Define.
2073         * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
2074         it to decide whether FIONREAD should take an off_t or int argument.
2076 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
2078         * include/bits/stl_function.h: Minor formatting changes.
2080 2004-02-04  Zack Weinberg  <zack@codesourcery.com>
2082         Revert previous change to config/abi/*/baseline_symbols.txt.
2084 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
2085             Zack Weinberg  <zack@codesourcery.com>
2087         * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
2088         New function.
2089         (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
2090         (__basic_file<char>::_M_open_mode): Delete.
2091         * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
2093         * testsuite/27_io/basic_filebuf/close/char/9964.cc
2094         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2095         Correct flags to filebuf::open calls.
2097         * config/abi/alpha-freebsd5/baseline_symbols.txt
2098         * config/abi/alpha-linux-gnu/baseline_symbols.txt
2099         * config/abi/hppa-linux-gnu/baseline_symbols.txt
2100         * config/abi/i386-freebsd4/baseline_symbols.txt
2101         * config/abi/i386-freebsd5/baseline_symbols.txt
2102         * config/abi/i486-linux-gnu/baseline_symbols.txt
2103         * config/abi/ia64-linux-gnu/baseline_symbols.txt
2104         * config/abi/mips-linux-gnu/baseline_symbols.txt
2105         * config/abi/sparc-freebsd5/baseline_symbols.txt
2106         * config/abi/sparc-linux-gnu/baseline_symbols.txt
2107         * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
2108         Remove entry for __basic_file<char>::_M_open_mode.
2110 2004-02-04  Loren J. Rittle  <ljrittle@acm.org>
2112         * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
2114 2004-02-04  Felix Yen  <fwy@alumni.brown.edu>
2116         * testsuite/performance/20_util/producer_consumer.cc: New.
2117         * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
2119 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
2121         * testsuite/performance/20_util/allocator.cc: Move to..
2122         * testsuite/performance/20_util/allocator/insert.cc: ...here.
2123         * testsuite/performance/20_util/allocator_thread.cc: Move to...
2124         * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
2125         * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
2126         * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
2128 2004-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
2130         * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
2131         * docs/html/faq/index.txt: Regenerate.
2133 2004-02-04  Dhruv Matani  <dhruvbird@gmx.net>
2135         * include/ext/debug_allocator.h: _M_extra now stands for the
2136         number of extra objects instead of the number of extra bytes.
2137         (debug_allocator::allocate): Adjust.
2138         (debug_allocator::deallocate): Adjust.
2140         * include/ext/pool_allocator.h: Fix typo.
2142 2004-02-03  Felix Yen  <fwy@alumni.brown.edu>
2143             Benjamin Kosnik  <bkoz@redhat.com>
2145         * testsuite/performance/20_util/allocator.cc: Add map,
2146         deque, set tests.
2147         * testsuite/performance/20_util/allocator_thread.cc: Same.
2149 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
2151         * include/bits/basic_string.h (insert(iterator)): Remove,
2152         non-standard and already scheduled for removal.
2154 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
2156         * include/bits/stl_iterator_base_funcs.h: Minor formatting
2157         and indentation tweaks.
2158         * include/bits/stl_iterator_base_types.h: Likewise.
2159         * include/bits/stl_list.h: Likewise.
2160         * include/bits/stl_map.h: Likewise.
2161         * include/bits/stl_tempbuf.h: Likewise.
2163 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
2165         * include/bits/gslice.h, include/bits/gslice_array.h,
2166         include/bits/indirect_array.h, include/bits/mask_array.h,
2167         include/bits/slice_array.h, include/bits/stl_numeric.h,
2168         include/std/std_valarray.h:  Update copyright years.
2170 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
2172         * include/bits/gslice.h (gslice):  Document.
2173         * include/bits/gslice_array.h (gslice_array):  Document.
2174         * include/bits/indirect_array (indirect_array):  Document.
2175         * include/bits/mask_array (mask_array):  Document.
2176         * include/bits/slice_array.h (slice,slice_array):  Document.
2177         * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
2178         adjacent_difference):  Document
2179         * include/std/std_valarray.h (valarray):  Document.
2181 2004-02-02  Benjamin Kosnik  <bkoz@redhat.com>
2183         * docs/html/19_diagnostics/howto.html: Move verbose terminate
2184         documentation...
2185         * docs/html/18_support/howto.html: Here.
2186         * docs/html/documentation.html: Add reference here.
2188 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
2190         * config/locale/gnu/c++locale_internal.h: Remove prototypes
2191         of no longer used GLIBC thread locale functions.
2193 2004-02-02  Eric Christopher  <echristo@redhat.com>
2194             Zack Weinberg  <zack@codesourcery.com>
2196         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
2197         -finput-charset.
2198         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
2199         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
2200         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
2201         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
2202         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
2203         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
2204         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
2205         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2206         Ditto.
2208 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
2210         * include/bits/stl_function.h: Additional minor tweaks.
2211         * include/bits/stl_multiset.h: Likewise.
2213         * include/bits/stl_queue.h: Minor tweaks.
2215 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
2217         PR libstdc++/13976 (continued)
2218         * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
2219         Make the second parameter unnamed, to void unused parameter
2220         warnings.
2221         * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
2223 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
2225         PR libstdc++/13976
2226         * include/ext/malloc_allocator.h (malloc_allocator::allocate):
2227         Make the second parameter unnamed, to void unused parameter
2228         warnings.
2229         * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
2230         * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
2232 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
2234         * include/bits/stl_algo.h: Additional minor tweaks.
2235         * include/bits/stl_map.h: Likewise.
2236         * include/bits/stl_multimap.h: Likewise.
2237         * include/bits/stl_multiset.h: Likewise.
2238         * include/bits/stl_set.h: Likewise.
2239         * include/bits/stl_tree.h: Likewise.
2241 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
2243         * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
2244         Remove, unused.
2246 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
2248         * include/bits/stl_function.h: Additional minor tweaks.
2250 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
2252         * include/bits/deque.tcc: Wrap overlong lines, constify
2253         a few variables, reformat according to the coding standards.
2254         * include/bits/list.tcc: Likewise.
2255         * include/bits/stl_deque.h: Likewise.
2256         * include/bits/stl_function.h: Likewise.
2257         * include/bits/stl_iterator.h: Likewise.
2258         * include/bits/stl_iterator_base_funcs.h: Likewise.
2259         * include/bits/stl_iterator_base_types.h: Likewise.
2260         * include/bits/stl_list.h: Likewise.
2261         * include/bits/stl_map.h: Likewise.
2262         * include/bits/stl_multimap.h: Likewise.
2263         * include/bits/stl_multiset.h: Likewise.
2264         * include/bits/stl_relops.h: Likewise.
2265         * include/bits/stl_set.h: Likewise.
2267 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
2269         * include/bits/stl_bvector.h: Wrap overlong lines, constify
2270         a few variables, reformat according to the coding standards.
2271         * include/bits/stl_tree.h: Likewise.
2273 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
2275         * include/bits/stl_algo.h: Minor additional reformat, add
2276         copyright year.
2277         * include/bits/stl_algobase.h: Add copyright year.
2279 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
2281         * include/bits/stl_algo.h: Wrap overlong lines, constify
2282         a few variables, reformat according to the coding standards.
2283         * include/bits/stl_algobase.h: Likewise.
2284         * include/bits/stl_heap.h: Likewise.
2286 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
2288         * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
2290         * include/bits/basic_string.h: Fix two comments.
2292 2004-01-31  Per Bothner  <per@bothner.com>
2294         * include/ext/mt_allocator.h
2295         (__mt_alloc::_S_thread_freelist_mutex): Guard with
2296         __GTHREAD_MUTEX_INIT.
2298 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
2300         * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
2302 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
2304         * testsuite/21_strings/basic_string/cons/char/6.cc: New.
2305         * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
2306         * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
2308 2004-01-30  Felix Yen  <fwy@alumni.brown.edu>
2310         * testsuite/performance/20_util/allocator_thread.cc (do_loop):
2311         Don't use clear, but instead assign. Use insert.
2313 2004-01-30  Benjamin Kosnik  <bkoz@redhat.com>
2315         * src/demangle.cc: Add instantiations.
2316         * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
2317         * src/Makefile.in: Regenerate.
2319 2004-01-30  David Edelsohn  <edelsohn@gnu.org>
2321         * src/allocator.cc: Protect _S_get_thread_id() and
2322         _S_thread_key_destr() with #ifdef __GTHREADS.
2324 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
2326         Reshuffle performance testsuite.
2327         * testsuite/performance/allocator.cc, allocator_map_thread.cc,
2328         allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
2329         cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
2330         fstream_seek_write.cc, ifstream_extract_float.cc,
2331         ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
2332         list_create_fill_sort.cc, map_create_fill.cc,
2333         narrow_widen_char.cc, narrow_widen_wchar_t.cc,
2334         ofstream_insert_float.cc, ofstream_insert_int.cc,
2335         string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
2336         wchar_t_out.cc: Split into...
2337         * testsuite/performance/20_util/allocator.cc: New.
2338         * testsuite/performance/20_util/allocator_map_thread.cc: New.
2339         * testsuite/performance/20_util/allocator_thread.cc: New.
2340         * testsuite/performance/21_strings/string_append: New.
2341         * testsuite/performance/22_locale/is_wchar_t.cc: New.
2342         * testsuite/performance/22_locale/narrow_widen_char.cc: New.
2343         * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
2344         * testsuite/performance/22_locale/wchar_t_in.cc: New.
2345         * testsuite/performance/22_locale/wchar_t_length.cc: New.
2346         * testsuite/performance/22_locale/wchar_t_out.cc: New.
2347         * testsuite/performance/23_containers/container_benchmark.cc: New.
2348         * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
2349         * testsuite/performance/23_containers/map_create_fill.cc: New.
2350         * testsuite/performance/26_numerics/complex_norm.cc: New.
2351         * testsuite/performance/27_io/cout_insert_int.cc: New.
2352         * testsuite/performance/27_io/filebuf_copy.cc: New.
2353         * testsuite/performance/27_io/filebuf_sputc.cc: New.
2354         * testsuite/performance/27_io/fstream_seek_write.cc: New.
2355         * testsuite/performance/27_io/ifstream_extract_float.cc: New.
2356         * testsuite/performance/27_io/ifstream_extract_int.cc: New.
2357         * testsuite/performance/27_io/ifstream_getline.cc: New.
2358         * testsuite/performance/27_io/ofstream_insert_float.cc: New.
2359         * testsuite/performance/27_io/ofstream_insert_int.cc: New.
2361 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
2363         * include/bits/basic_string.tcc (_Rep::_S_create):
2364         Never allocate a string bigger than max_size(); always keep
2365         __capacity and __size in sync to avoid memory leaks at
2366         deallocation time.
2368 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
2370         * include/bits/basic_string.tcc (_S_construct(_InIterator,
2371         _InIterator, const _Alloc&, input_iterator_tag)): Simplify
2372         the double loop, streamline.
2374         * include/bits/basic_string.tcc: Very minor tweaks.
2376 2004-01-30  Loren J. Rittle  <ljrittle@acm.org>
2378         * scripts/check_performance: Only compile with $THREAD_FLAG
2379         when test is marked to require it.  Allow multiple
2380         compilations/executions of marked tests.
2381         * testsuite/testsuite_performance.h (report_performance):
2382         Report dynamic thread support status.
2383         (report_header): Likewise.
2384         * testsuite/performance/allocator.cc: Stabilize iteration
2385         count.  Support more allocators.  Mark each allocator test to
2386         run and report independently.
2387         * testsuite/performance/allocator_map_thread.cc: Likewise.
2388         * testsuite/performance/allocator_thread.cc: Likewise.
2390 2004-01-29  Stephen M. Webb  <stephen.webb@bregmasoft.com>
2392         * config/local/generic/c_locale.h: Change ::malloc() to new char[].
2393         * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
2394         * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
2395         std::get_temporary_buffer() instead of duplicating its code.
2396         Update to C++STYLE conventions.
2397         * include/std/std_memory.h (get_temporary_buffer): Use ::operator
2398         new() instead of std::malloc().
2399         (return_temporary_buffer): Use ::operator delete() instead of
2400         std::free().
2402 2004-01-29  Benjamin Kosnik  <bkoz@redhat.com>
2404         * include/bits/allocator.h: Temporary switch to new_allocator as
2405         the default to unjam bootstraps.
2407 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
2409         * include/Makefile.am (bits_headers): Remove allocator_traits.h.
2410         * include/Makefile.in: Regenerate.
2411         * include/bits/allocator_traits.h: Remove.
2412         * include/bits/allocator.h: Remove allocator_traits.h include, and
2413         relevant comments.
2414         (allocator): Empty base class, inherit from the underlying allocator.
2415         * src/allocator-inst.cc: Move __pool_alloc instantiation to...
2416         * src/allocator.cc: ...here. New. For the underlying allocators.
2417         Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
2418         * config/linker-map.gnu: Remove __pool_alloc bits.
2419         * src/Makefile.am (sources): Add allocator.cc.
2420         * src/Makefile.in: Regenerate.
2421         * testsuite/20_util/allocator/1.cc: Split second test into...
2422         * testsuite/20_util/allocator/8230.cc: ...this.
2423         * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
2424         typedef to use std::allocatore. Format.
2425         * include/ext/pool_allocator.h: Remove allocator_traits.h include,
2426         _Alloc_traits.
2427         * include/ext/mt_allocator.h (__gnu_cxx): Qualify
2428         __throw_bad_alloc calls. Don't include <memory>.
2429         * include/ext/malloc_allocator.h: Remove <memory> include.
2430         * include/ext/new_allocator.h (new_allocator): Same.
2431         * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
2432         declaration. Switch __alloc to _Alloc.
2433         * include/ext/hashtable.h: Remove __alloc.
2434         * include/backward/alloc.h: Only inject allocator, not
2435         implementation details.
2437         * include/ext/mt_allocator.h: Replace free with delete.
2439 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
2441         * src/globals_io.cc: Change to __gnu_internal namespace.
2442         * src/globals_locale.cc: Same.
2443         * src/locale_init.cc: Same.
2444         * src/ios_init.cc: Same.
2446 2004-01-28  Stefan Olsson  <stefan@snon.net>
2448         * include/ext/mt_allocator.h: Replaced all malloc() calls with
2449         operator new(). Added support for the env variable
2450         GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
2451         one in allocate() as well). Fix typos.
2453 2004-01-28  Paolo Carlini  <pcarlini@suse.de>
2455         * include/bits/basic_string.h (_S_create(size_t,
2456         const _Alloc&): Change signature to take two size_type
2457         arguments.
2458         * include/bits/basic_string.tcc (_S_construct(_InIterator,
2459         _InIterator, const _Alloc&, input_iterator_tag)): Update
2460         call, tweak a bit.
2461         (_S_construct(_InIterator, _InIterator, const _Alloc&,
2462         forward_iterator_tag)): Likewise.
2463         (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
2464         (_M_mutate(size_type, size_type, size_type)): Don't
2465         implement the exponential growth policy, demand it to
2466         _S_create, update call and simplify.
2467         (_M_clone(const _Alloc&, size_type)): Likewise.
2468         (_S_create(size_type, size_type, const _Alloc&)): Implement
2469         the growth policy, simplify otherwise.
2471         * include/bits/basic_string.h (_Rep::operator[]): Tweak
2472         signature to take a size_type, consistently with the other
2473         members.
2475 2004-01-27  Benjamin Kosnik  <bkoz@redhat.com>
2477         * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
2478         delete declarations, add include and test variable.
2480 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
2482         * include/bits/codecvt.h, include/bits/locale_facets.h,
2483         include/bits/postypes.h, include/bits/stl_bvector.h,
2484         include/bits/stl_multiset.h, include/bits/stl_set.h,
2485         include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
2486         include/std/std_complex.h:  Document.
2488 2004-01-27  Jerry Quinn  <jlquinn@optonline.net>
2490         PR libstdc++/11584
2491         * include/bits/ios_base.h (ios_base::_M_grow_words):  Add
2492         iword/pword selector.
2493         (ios_base::iword, ios_base::pword):  Use it.
2494         * src/ios.cc (ios_base::_M_grow_words):  Clear _M_word_zero
2495         iword or pword member on alloc failure.
2496         * testsuite/27_io/ios_base/storage/11584.cc:  New test.
2498 2004-01-27  Ulrich Weigand  <uweigand@de.ibm.com>
2499             PJ Darcy  <darcypj@us.ibm.com>
2501         * configure.host: Add support for *-tpf.
2502         * crossconfig.m4: Likewise.
2503         * configure: Regenerate.
2504         * config/os/tpf: New directory.
2505         * config/os/tpf/os_defines.h: New file.
2506         * config/os/tpf/ctype_base.h: Likewise.
2507         * config/os/tpf/ctype_inline.h: Likewise.
2508         * config/os/tpf/ctype_noninline.h: Likewise.
2510 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
2512         PR libstdc++/13884
2513         * include/bits/sstream.tcc: Guard use of extern template.
2515 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
2517         * include/bits/basic_string.tcc
2518         (basic_string(const basic_string&, size_type, size_type),
2519         basic_string(const basic_string&, size_type, size_type,
2520         const _Alloc&)): Avoid unnecessarily constructing iterators.
2522 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
2524         * config/locale/generic/c_locale.cc: Fix throw messages
2525         to use the __N marker.
2526         * config/locale/gnu/c_locale.cc: Likewise.
2527         * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
2528         Likewise.
2529         * docs/html/17_intro/C++STYLE: Likewise.
2530         * include/bits/basic_ios.tcc: Likewise.
2531         * include/bits/fstream.tcc: Likewise.
2532         * include/bits/vector.tcc: Likewise.
2533         * include/ext/ropeimpl.h: Likewise.
2534         * include/std/std_bitset.h: Likewise.
2535         * src/ios.cc: Likewise.
2536         * src/locale.cc: Likewise.
2537         * src/localename.cc: Likewise.
2539 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
2541         * include/bits/basic_string.h (_M_replace_aux): Use the
2542         __N marker in throw message.
2543         * include/bits/basic_string.tcc (assign(const _CharT*,
2544         size_type), insert(size_type, const _CharT*, size_type),
2545         replace(size_type, size_type, const _CharT*, size_type),
2546         reserve, _Rep::_S_create, resize, _M_replace_dispatch):
2547         Likewise.
2549         * include/bits/basic_string.h, include/bits/basic_string.tcc:
2550         Fold overlong lines, minor formatting changes.
2552 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
2554         * include/bits/basic_string.h (replace(iterator, iterator,
2555         const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
2556         (replace(iterator, iterator, const _CharT*)): Ditto.
2557         (replace(iterator, iterator, const _CharT*, size_type)):
2558         Add missing _GLIBCXX_DEBUG_PEDASSERT.
2560 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
2562         * include/bits/basic_string.tcc (replace(size_type,
2563         size_type, const _CharT*, size_type)): Implement optimized
2564         in-place algorithm for non-overlapping ranges.
2565         * testsuite/21_strings/basic_string/replace/char/6.cc: New.
2566         * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
2568         * include/bits/basic_string.tcc (insert(size_type,
2569         const _CharT*, size_type)): Tweak slightly.
2571 2004-01-26  Andreas Schwab  <schwab@suse.de>
2573         * config/locale/gnu/monetary_members.cc: Restore locale before
2574         rethrowing exception.
2576 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
2578         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2579         Define inline here.
2580         * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
2581         Move inline.
2583         * include/bits/basic_string.tcc: Very minor tweaks.
2585 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
2587         * testsuite/performance/string_append.cc: Increase number
2588         of iterations.
2590 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
2592         * include/bits/basic_string.h (erase(size_type, size_type),
2593         erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
2594         instead, thus avoiding redundant check for length_error.
2596         * include/bits/basic_string.h: Tweak some comments.
2598 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
2600         * include/bits/basic_string.tcc (operator+(const _CharT*,
2601         const basic_string&)): No need to go through the append
2602         taking two iterators.
2604 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
2606         * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
2607         Revert last change to use std::min: machine language is worse.
2608         (find_last_of(const _CharT*, size_type, size_type)): Ditto.
2609         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
2610         (find_last_not_of(_CharT, size_type)): Ditto.
2612         * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
2613         size_type)): Discard the value returned by _M_check.
2614         (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
2615         (append(const basic_string&, size_type, size_type)): Ditto.
2616         (copy(_CharT*, size_type, size_type)): Ditto.
2617         (compare(size_type, size_type, const basic_string&)): Ditto.
2618         (compare(size_type, size_type, const basic_string&,
2619         size_type, size_type)): Ditto.
2620         (compare(size_type, size_type, const _CharT*)): Ditto.
2621         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
2623 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
2625         * include/bits/basic_string.h (insert(size_type,
2626         const basic_string&, size_type, size_type)): Define inline here.
2627         * include/bits/basic_string.tcc (insert(size_type,
2628         const basic_string&, size_type, size_type)): Move inline.
2630 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
2632         * include/bits/basic_string.h (assign(const basic_string&,
2633         size_type, size_type)): Define inline here.
2634         (replace(size_type, size_type, const basic_string&,
2635         size_type, size_type)): Ditto.
2636         (_M_replace_dispatch(iterator, iterator, _InputIterator,
2637         _InputIterator, __false_type)): Only declare.
2638         (_M_replace(iterator, iterator, _InputIterator,
2639         _InputIterator)): Remove.
2640         * include/bits/basic_string.tcc (assign(const basic_string&,
2641         size_type, size_type)): Move inline.
2642         (replace(size_type, size_type, const basic_string&,
2643         size_type, size_type)): Ditto.
2644         (_M_replace_dispatch(iterator, iterator, _InputIterator,
2645         _InputIterator, __false_type)): Define, now does also what
2646         _M_replace did before.
2647         * src/string-inst.cc (_M_replace): Don't instantiate.
2649         * include/bits/basic_string.tcc (find(const _CharT*,
2650         size_type, size_type)): Tidy.
2651         (rfind(_CharT, size_type)): Ditto.
2652         (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
2653         (find_first_not_of(_CharT, size_type)): Ditto.
2654         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
2655         (find_last_not_of(_CharT, size_type)): Ditto.
2657 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
2659         PR libstdc++/13838
2660         * include/debug/bitset (operator|=): Fix typo.
2661         * testsuite/23_containers/bitset/operations/13838.cc: New.
2663 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
2665         * include/bits/basic_string.tcc (insert(size_type,
2666         const _CharT*, size_type __n)): Fix length_error check.
2667         (replace(size_type, size_type, const _CharT*, size_type):
2668         Ditto; call _M_replace_safe.
2669         (_M_replace_aux(size_type, size_type, size_type, _CharT):
2670         Fix length_error check.
2671         (_M_replace(iterator, iterator, _InputIterator,
2672         _InputIterator)): Ditto, tweak.
2673         (_M_replace_safe(size_type, size_type, const _CharT*,
2674         size_type)): Remove length_error check.
2676         * include/bits/basic_string.tcc (append(const basic_string&),
2677         append(const basic_string&, size_type, size_type)): Tweak
2678         comment.
2680         * include/bits/basic_string.tcc (copy(_CharT*, size_type,
2681         size_type)): If __n == 0 don't call traits::copy.
2683 2004-01-23  Stefan Olsson  <stefan@snon.net>
2685         * include/ext/mt_allocator.h: Reduce lock contention.
2687 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
2689         PR libstdc++/13831
2690         * include/bits/fstream.tcc (underflow): Remove unused
2691         variable.
2692         * include/bits/streambuf_iterator.h (equal): Ditto.
2693         * include/bits/locale_facets.h (_M_convert_from_char):
2694         Ditto.
2696 2004-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2698         PR c/13814
2699         * config/linker-map.gnu (nan): Delete.
2700         * libmath/mathconf.h (NAN, nan): Delete.
2701         * linkage.m4 (nan): Don't check for it.
2702         * libmath/nan.c: Delete file.
2704         * config.h.in, configure: Regenerate.
2706 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
2708         * include/bits/basic_string.h (push_back(_CharT)):
2709         Call _M_replace_aux.
2710         (insert(size_type, const basic_string&)): Trivial tweak.
2711         (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
2712         (insert(iterator, _CharT)): Ditto.
2713         (erase(size_type, size_type)): Ditto.
2714         (erase(iterator)): Ditto.
2715         (erase(iterator, iterator)): Ditto.
2716         (replace(size_type, size_type, size_type, _CharT)): Ditto.
2718 2004-01-23  Loren J. Rittle  <ljrittle@acm.org>
2720         libstdc++/13823
2721         * testsuite/performance/allocator_map_thread.cc: New test.
2723 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
2725         * include/bits/locale_facets.tcc
2726         (money_put::do_put(..., long double)): Use the basic_string
2727         constructor for char arrays, not that for C-strings, to pass
2728         __digits to do_put(..., const string_type&): __ws isn't
2729         null-terminated.
2731 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
2733         * include/bits/basic_string.h (_M_replace_safe): Change
2734         signatures to take size_types and const _CharT*.
2735         (_M_replace_aux): Likewise, takes size_types instead of
2736         iterators.
2737         (append(size_type, _CharT)): Update call.
2738         (assign(size_type, _CharT)): Ditto.
2739         (replace(iterator, iterator, size_type, _CharT)): Ditto.
2740         (_M_replace_dispatch(iterator, iterator, _Integer,
2741         _Integer, __true_type)): Ditto.
2742         * include/bits/basic_string.tcc (assign(const _CharT*,
2743         size_type)): Ditto.
2744         (insert(size_type, const _CharT*, size_type)): Ditto.
2745         (replace(size_type, size_type, const _CharT*,
2746         size_type)): Ditto.
2747         (_M_replace(iterator, iterator, _InputIterator,
2748         _InputIterator)): Ditto.
2749         (append(const basic_string&)): Ditto.
2750         (append(const basic_string&, size_type, size_type): Ditto.
2751         (append(const _CharT*, size_type): Ditto.
2752         (_M_replace_safe, _M_replace_safe): Change definitions
2753         accordingly, simplify.
2754         * string-inst.cc (_M_replace_safe): Don't instantiate.
2756 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
2758         * include/bits/basic_string.tcc (append(const basic_string&)):
2759         Revert previous change.
2760         (append(const basic_string&, size_type, size_type)): Revert
2761         previous change, use _M_check and _M_limit.
2763 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
2765         * include/bits/basic_string.h (_M_check): Change to return
2766         a checked __pos and take an additional const char* argument.
2767         (_M_fold): Rename to _M_limit, change to return a size_type,
2768         corresponding to the __off limited to the actual length.
2769         (insert(size_type, size_type, _CharT)): Update call, call
2770         replace.
2771         (insert(iterator, _CharT)): Call replace(iterator, iterator,
2772         size_type, _CharT) instead.
2773         (erase(size_type, size_type)): Update calls.
2774         (replace(size_type, size_type, size_type, _CharT)): Ditto.
2775         (substr(size_type, size_type)): Use _M_check.
2776         * include/bits/basic_string.tcc (basic_string(const basic_string&,
2777         size_type, size_type)): Update calls.
2778         (basic_string(const basic_string&, size_type, size_type,
2779         const _Alloc&)): Ditto.
2780         (assign(const basic_string&, size_type, size_type)): Use the
2781         new _M_check and _M_limit.
2782         (insert(size_type, const basic_string&, size_type, size_type):
2783         Ditto.
2784         (insert(size_type, const _CharT*, size_type)): Ditto.
2785         (replace(size_type, size_type, const _CharT*, size_type): Ditto.
2786         (replace(size_type, size_type, const basic_string&,
2787         size_type, size_type)): Ditto.
2788         (append(const basic_string&)): Ditto.
2789         (append(const basic_string&, size_type, size_type)): Ditto.
2790         (copy(_CharT*, size_type, size_type)): Ditto.
2791         (compare(size_type, size_type, const basic_string&)): Ditto.
2792         (compare(size_type, size_type, const basic_string&,size_type,
2793         size_type)): Ditto.
2794         (compare(size_type, size_type, const _CharT*)): Ditto.
2795         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
2797 2004-01-19  Stefan Olsson  <stefan@snon.net>
2799         * include/ext/mt_allocator.h: If a thread, when it dies, still has
2800         memory on it's freelist this memory is not returned to global
2801         list. Simplification of deallocate so that memory is always
2802         returned to the calling thread id's freelist instead of to
2803         global. Fix typos. Add volatile where appropriate.
2805 2004-01-19  Loren J. Rittle  <ljrittle@acm.org>
2807         * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
2808         * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test.  Like -2 but
2809         use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
2811 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
2813         * src/debug.cc: Make sure all the names are prefixed with
2814         double (or single) underscore.
2816 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
2818         * src/debug.cc: Trivial formatting change.
2820 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
2822         * include/bits/basic_string.tcc (_S_construct(size_type,
2823         _CharT, const _Alloc&)): Remove redundant try/catch.
2824         (_M_mutate(size_type, size_type, size_type)): Ditto.
2825         (_M_clone(const _Alloc&, size_type)): Ditto.
2827 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
2829         * include/bits/basic_string.h (c_str()): Simplify, due to
2830         21.3.4 the internal representation is always kept null-terminated.
2831         * include/bits/basic_string.tcc (_M_clone): Null-terminate.
2832         * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
2833         * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
2834         Ditto.
2836 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
2838         * include/bits/basic_string.h (append(size_type, _CharT)):
2839         Moved inline, just call _M_replace_aux, no source iterators at
2840         risk of being clobbered.
2841         (assign(size_type, _CharT)): Call directly _M_replace_aux.
2842         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
2843         input_iterator_tag)): Remove fifth unused argument.
2844         (_M_replace_dispatch(iterator, iterator, _InputIterator,
2845         _InputIterator, __false_type)): Update call.
2846         * include/bits/basic_string.tcc (replace(size_type, size_type,
2847         const _CharT*, size_type)): Update call.
2848         (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
2849         throw string literal.
2850         (_M_replace_safe(iterator, iterator, _ForwardIterator,
2851         _ForwardIterator)): Likewise.
2852         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
2853         input_iterator_tag)): Remove fifth unused argument.
2854         (append(size_type __n, _CharT __c)): Move inline.
2855         * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
2856         const C*, const C*, input_iterator_tag)): Remove fifth unused
2857         argument.
2859 2004-01-16  Benjamin Kosnik  <bkoz@redhat.com>
2861         * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
2862         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
2864 2004-01-16  Danny Smith  <dannysmith@users.sourceforge.net>
2866         * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
2867         mkfifo for mingw32.
2869 2004-01-15  Stefan Olsson  <stefan@snon.net>
2871         * include/ext/mt_allocator.h: Reuse thread id's as soon as
2872         possible by changing the behaviour of thread_freelist to do
2873         push_front when threads die instead of push_back.
2875 2004-01-14  Paolo Carlini  <pcarlini@suse.de>
2877         * include/bits/locale_facets.h (struct __numpunct_cache):
2878         Add member _M_grouping_size, caching the length of _M_grouping.
2879         (__numpunct_cache<>::_M_cache): Assign the latter.
2880         (__verify_grouping): Move declaration...
2881         * include/bits/locale_facets.tcc (__verify_grouping):
2882         ... here, change signature to take a const char* and a size_t
2883         for the grouping; not a template anymore.
2884         (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
2885         Likewise change signature and tweak consistently.
2886         (num_get::_M_extract_float, num_get::_M_extract_int,
2887         num_put::_M_insert_int, num_put::_M_insert_float,
2888         money_get::do_get(string_type&), money_get::do_put(string_type)):
2889         Update callers.
2890         * config/locale/generic/numeric_members.cc
2891         (numpunct<>::_M_initialize_numpunct): Assign the new member.
2892         * config/locale/gnu/numeric_members.cc
2893         (numpunct<>::_M_initialize_numpunct): Likewise.
2894         * src/locale-inst.cc (__add_grouping): Tweak signature.
2895         (__verify_grouping): Don't instantiate, not a template anymore.
2897         * include/bits/locale_facets.h: Rename _M_truename_len ->
2898         _M_truename_size, _M_falsename_len -> _M_falsename_size.
2899         * include/bits/locale_facets.tcc: Likewise.
2900         * config/locale/generic/numeric_members.cc: Likewise.
2901         * config/locale/gnu/numeric_members.cc: Likewise.
2903 2004-01-14  Stefan Olsson  <stefan@snon.net>
2905         * include/ext/mt_allocator.h: Fixups.
2906         * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
2907         * testsuite/performance/allocator_thread.cc: Same.
2909 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
2911         * testsuite/performance/ifstream_extract_float.cc: Add higher
2912         precision tests.
2913         * testsuite/performance/ofstream_insert_float.cc: Same.
2915 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
2917         * src/locale-misc-inst.cc (__convert_from_v(long),
2918         __convert_from_v(unsigned long), __convert_from_v(long long),
2919         __convert_from_v(unsigned long long)): Remove, unused.
2921 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
2923         * testsuite/performance/ifstream_extract_float.cc: New.
2924         * testsuite/performance/ofstream_insert_float.cc: Float generation
2925         matches above.
2927         * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
2928         * 20_util/auto_ptr/1.cc: ...this.
2929         * 20_util/auto_ptr/2.cc: Same.
2930         * 20_util/auto_ptr/3.cc: Same.
2931         * 20_util/auto_ptr/3946.cc: Same.
2932         * 20_util/auto_ptr/4.cc: Same.
2933         * 20_util/auto_ptr/5.cc: Same.
2934         * 20_util/auto_ptr/6.cc: Same.
2935         * 20_util/auto_ptr/7.cc: Same.
2936         * 20_util/auto_ptr/assign_neg.cc
2937         * 20_util/pairs.cc: Break into...
2938         * 20_util/pair/1.cc: ...this.
2939         * 20_util/pair/2.cc: Same.
2940         * 20_util/pair/3.cc: Same.
2941         * 20_util/pair/4.cc: Same.
2943 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
2945         * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
2946         Set correctly just basefield, the only group that matters.
2948 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
2950         * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
2951         (_Rope_rep_base): Inherit directly from the rope allocator;
2952         use rebinding instead of _Alloc_traits; pick up data member
2953         from _Rope_rep_alloc_base.
2954         (_Rope_alloc_base): Eliminate.
2955         (_Rope_base): Inherit directly from the rope allocator; use
2956         rebinding instead of _Alloc_traits; pick up data member from
2957         _Rope_alloc_base.
2958         (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
2959         rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
2961 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
2963         PR libstdc++/13650
2964         * include/bits/basic_string.tcc (compare(size_type, size_type,
2965         const _CharT*, size_type)): Implement correctly the resolution
2966         of DR 5: basically, s is a char array, -not- a C string.
2967         * include/bits/basic_string.h: Tweak some comments.
2968         * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
2969         * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
2971 2004-01-12  Andreas Tobler  <a.tobler@schweiz.ch>
2973         * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
2974         Solaris.
2976 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
2978         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
2979         Use try_mkfifo.
2980         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
2981         Likewise.
2983 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
2985         * include/bits/locale_facets.h (struct __numpunct_cache):
2986         Add members _M_truename_len and _M_falsename_len, caching
2987         the lengths of _M_truename and _M_falsename.
2988         (__numpunct_cache<>::_M_cache): Assign the latter.
2989         * include/bits/locale_facets.tcc (num_get::do_get(bool&),
2990         num_put::do_put(bool)): Use the new members, thus avoiding
2991         computing string lengths again and again.
2992         * config/locale/generic/numeric_members.cc
2993         (numpunct<>::_M_initialize_numpunct): Assign the new members.
2994         * config/locale/gnu/numeric_members.cc
2995         (numpunct<>::_M_initialize_numpunct): Likewise.
2997 2004-01-12  Mark Mitchell  <mark@codesourcery.com>
2999         * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
3000         * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
3001         it.
3002         * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
3003         and remove Cygwin XFAIL.
3004         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
3005         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
3006         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
3007         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
3008         Likewise.
3009         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3010         * testsuite/27_io/objects/char/7.cc: Likewise.
3011         * testsuite/27_io/objects/char/9661-1.cc: Likewise.
3012         * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
3013         * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
3015 2004-01-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3017         * include/std/std_complex.h (std::complex<>::real): Return a
3018         reference. Add non-const overload.
3019         (std::complex<>::real): Likewise.
3020         (std::real): Likewise.
3021         (std::imag): Likewise.
3022         (std::operator+): Tidy.
3023         (std::operator-): Likewise.
3024         (std::operator*): Likewise.
3025         (std::operator/): Likewise.
3026         (std::operator>>): Likewise.
3028 2004-01-11  Paolo Carlini  <pcarlini@suse.de>
3030         PR libstdc++/13582
3031         * include/bits/fstream.tcc (imbue): Exploit the external
3032         buffer to imbue 'on the fly' a new locale and convert its
3033         remainder with the new codecvt facet.
3034         (underflow): Tweak slightly to deal with this special case.
3035         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
3036         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
3037         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
3038         * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
3039         * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
3041 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
3043         * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
3044         Import Revision 28.
3046 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
3048         PR libstdc++/13630
3049         * include/bits/locale_classes.h (class locale): Fix category
3050         typedef.
3051         * testsuite/22_locale/locale/13630.cc: Add.
3053 2004-01-10  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
3055         * include/bits/locale_facets.h: Make a name really dependent. This
3056         will be needed when Core Issue 224 is implemented.
3058 2004-01-09  Paolo Carlini  <pcarlini@suse.de>
3060         * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
3061         * testsuite/performance/allocator_thread.cc: Likewise.
3063 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
3065         * crossconfig.m4: Add LFS, io bits to linux cross config.
3066         * acconfig.h: Remove obsolete bits, reorder.
3067         * config.h.in: Regenerate.
3068         * aclocal.m4: Same.
3069         * configure: Same.
3071 2004-01-07  Gawain Bolton  <gp.bolton@computer.org>
3073         * include/bits/stl_list.h:
3074         * include/bits/list.tc:
3075         * src/list.cc:
3076         Performance enhancements for destructor, push_front(),
3077         push_back(), pop_front(), pop_back(), sort()
3078         Eliminated static_casts where possible.
3079         Moved code out of header files into new src/list.cc
3080         implementation file for library where possible.
3081         Remove inheritance from iterator class and create separate
3082         classes for non-constant and constant iterators.
3083         * include/bits/stl_tree.h (_Rb_tree class):
3084         * src/tree.cc:
3085         Only erase contents in destructor.
3086         Eliminate unnecessary initialization in assignment operator.
3087         Optimize for the nominal case by not checking whether
3088         container is empty in clear().
3089         Re-order test in _M_insert() to improve performance.
3090         Move initialization of new node's left & right pointers to
3091         src/tree.cc to where new node's colour is initialized
3092         and to reduce the amount of inline code.
3093         Use  _M_leftmost() and _M_end() to improve readability where
3094         appropriate.
3095         Create separate classes for non-constant and constant
3096         iterators to clarify code, avoid extra template parameters and
3097         casting away constness.
3099 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
3101         * src/Makefile.am (sources): Add list.cc, tree.cc.
3102         * src/stl_tree.cc: Move to...
3103         * src/tree.cc: ...here.
3104         * src/list.cc: Add.
3105         * config/linker-map.gnu: Tweaks.
3106         * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
3107         * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
3109         * bits/stl_vector.h: Column wrap comments.
3111 2004-01-07  Loren J. Rittle  <ljrittle@acm.org>
3113         (re-open) PR libstdc++/12658
3114         * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
3115         (locale::global): Likewise.
3117 2004-01-07  Paolo Carlini  <pcarlini@suse.de>
3119         * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
3120         Remove redundant #include.
3121         * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
3122         * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
3123         re-enable normal testing.
3124         * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
3125         #include.
3126         * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
3127         * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
3128         Likewise.
3129         * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
3130         Likewise.
3131         * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
3132         Likewise.
3133         * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
3134         Likewise.
3135         * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
3136         Likewise.
3137         * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
3138         Likewise.
3139         * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
3140         Likewise.
3141         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
3142         More properly, #include <locale>.
3143         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
3144         Remove redundant #include.
3145         * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
3146         * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
3147         redundant DejaGnu directive.
3148         * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
3149         redundant #include.
3151 2004-01-06  Benjamin Kosnik  <bkoz@redhat.com>
3152             Stefan Olsson  <stefan@snon.net>
3154         * scripts/check_performance: Use -pthread.
3155         * testsuite/performance/allocator.cc: Tweaks, add list.
3156         * testsuite/performance/allocator_thread.cc: New.
3158 2004-01-06  Jerry Quinn  <jlquinn@optonline.net>
3160         * include/bits/locale_facets.h: Document public classes and
3161         functions.
3162         * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
3163         Add comment.
3165 2004-01-06  Paolo Carlini  <pcarlini@suse.de>
3167         * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
3168         Remove redundant #includes.
3169         * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
3170         Likewise.
3171         * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
3172         Likewise.
3173         * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
3174         * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
3175         * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
3176         * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
3177         * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
3178         * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
3179         * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
3180         * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
3181         * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
3182         * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
3183         * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
3184         * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
3185         * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
3186         * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
3187         * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
3188         Likewise.
3189         * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
3190         Likewise.
3191         * testsuite/27_io/basic_istream/readsome/char/8258.cc:
3192         Likewise.
3193         * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
3194         Likewise.
3195         * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
3196         Likewise.
3197         * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
3198         * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
3199         * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
3201 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
3203         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
3204         Remove redundant #includes.
3205         * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
3206         Likewise.
3207         * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
3208         Likewise.
3209         * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
3210         Likewise.
3211         * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
3212         Likewise.
3213         * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
3214         Likewise.
3215         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
3216         Likewise.
3217         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3218         Likewise.
3219         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3220         Likewise.
3221         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3222         Likewise.
3223         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
3224         Likewise.
3225         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
3226         Likewise.
3227         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
3228         Likewise.
3230 2004-01-04  Mark Mitchell  <mark@codesourcery.com>
3232         PR c++/12226
3233         * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
3234         constructor.
3235         * testsuite/27_io/basic_fstream/4.cc: Likewise.
3236         * testsuite/27_io/basic_ifstream/4.cc: Likewise.
3237         * testsuite/27_io/basic_ios/4.cc: Likewise.
3238         * testsuite/27_io/basic_iostream/4.cc: Likewise.
3239         * testsuite/27_io/basic_istream/4.cc: Likewise.
3240         * testsuite/27_io/basic_istingstream/4.cc: Likewise.
3241         * testsuite/27_io/basic_ofstream/4.cc: Likewise.
3242         * testsuite/27_io/basic_ostream/4.cc: Likewise.
3243         * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
3244         * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
3245         * testsuite/27_io/basic_stringstream/4.cc: Likewise.
3247 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
3249         * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
3250         Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
3251         always use double underscored names.
3252         * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
3253         Likewise.
3254         * include/bits/locale_facets.h (struct __numpunct_cache):
3255         Dimension _M_atoms_out and _M_atoms_in one position smaller.
3256         (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out
3257         and _M_atoms_in.