OSDN Git Service

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