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