OSDN Git Service

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