OSDN Git Service

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