OSDN Git Service

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