2004-07-30 Geoffrey Keating <geoffk@apple.com>
[official-gcc.git] / libstdc++-v3 / ChangeLog
blob4a2381afe6969b4e31566ab5b3d6dbd5e26af368
1 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
3         PR libstdc++/14220
4         * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
5         Don't clip the precision passed down to __convert_from_v:
6         22.2.2.2.2 nowhere says so.
7         * testsuite/22_locale/num_put/put/char/14220.cc: New.
8         * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
10 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
12         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
14 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
15             Petur Runolfsson  <peturr02@ru.is>
17         PR libstdc++/12658 (continued)
18         * src/locale_init.cc (locale::locale, locale::global): Use
19         a single locale_mutex instead of two separate mutexes.
21 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
23         PR libstdc++/16813
24         * include/debug/map.h (insert(_InputIterator, _InputIterator)):
25         Fix typo.
26         * testsuite/23_containers/map/insert/16813.cc: New.
28 2004-07-29  Phil Edwards  <phil@codesourcery.com>
30         * docs/html/faq/index.html:  Update version references.  Make
31         clear that code from SGI has diverged greatly.  Remove references
32         to library snapshots and what's-new sections.
33         * docs/html/faq/index.txt:  Regenerate.
35 2004-07-28  Matt Austern  <austern@apple.com>
37         * include/bits/stl_construct.h (_Destroy): New three-argument
38         overload that takes an allocator argument.  Another inline
39         three-argument overload that takes std::allocator and dispatches
40         to the two-argument version.
41         * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
42         Change return type to void to match uninitialized_fill_n.
43         (__uninitialized_copy_a_): New function.  Like uninitialized_copy
44         except that it takes an allocator and uses it for construct and
45         destroy.  If the allocator is std::allocator, dispatches to
46         uninitialized_copy.
47         (__uninitialized_fill_a): Likewise.
48         (__uninitialized_fill_n_a): Likewise.
49         (__uninitialized_copy_copy): Give it an allocator argument.
50         (__uninitialized_fill_copy): Likewise.
51         (__uninitialized_copy_fill): Likewise.
52         * include/bits/deque.tcc: Use new forms defined in stl_construct.h
53         and stl_uninitialized.h.  Replace use of single-argument _Construct
54         and _Destroy with use of allocator's construct and destroy methods.
55         * include/bits/list.tcc: Likewise.
56         * include/bits/stl_deque.h: Likewise.
57         * include/bits/stl_list.h: Likewise.
58         * include/bits/stl_tree.h: Likewise.
59         * include/bits/stl_vector.h: Likewise.
60         * include/bits/vector.tcc: Likewise.
61         * include/ext/hashtable.h: Use rebind so that allocator_type
62         has correct type for a container's allocator.  Replace use of 
63         single-argument _Construct and _Destroy with use of allocator's 
64         construct and destroy methods.
65         * include/ext/memory (__uninitialized_copy_n_a): New function.
66         Like uninitialized_copy_n except that it takes an extra parameter,
67         an allocator, and uses it for construct and destroy operations.
68         * include/ext/rope: Use new forms defined in stl_construct.h,
69         stl_uninitialized.h, and ext/memory.  Replace use of single-argument 
70         _Construct and _Destroy with allocator construct and destroy methods.
71         * include/ext/ropeimpl.h: Likewise.
72         * include/ext/slist.h: Likewise.
73         * testsuite/testsuite_allocator.h (check_construct_destroy): New.
74         * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
75         * testsuite/23_containers/deque/check_construct_destroy.cc: New.
76         * testsuite/23_containers/list/check_construct_destroy.cc: New.
77         * testsuite/23_containers/set/check_construct_destroy.cc: New.  
78         * testsuite/23_containers/vector/check_construct_destroy.cc: New. 
79         * testsuite/ext/hash_check_construct_destroy.cc: New.
80         * testsuite/ext/slist_check_construct_destroy.cc: New.
81         
82 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
84         2003-10-01  Eric Christopher  <echristo@redhat.com>
85         * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
86         constraint.
87         2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
88         * config/cpu/sh/atomicity.h: New.  Use movli and movco on SH4a.
90 2004-07-23  Benjamin Kosnik  <bkoz@redhat.com>
92         PR libstdc++/16678
93         * include/bits/locale_facets.tcc: Fix for -Werror.
95 2004-07-23  Jonathan Wakely  <redi@gcc.gnu.org>
97         * docs/html/debug.html: Say debug mode only available since 3.4.0.
99 2004-07-21  Benjamin Kosnik  <bkoz@redhat.com>
101         * docs/doxygen/mainpage.html: Clarify links.
102         * docs/doxygen/stdheader.cc: Add files.
103         * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
104         * docs/doxygen/user.cfg.in: New options, wrap.
106 2004-07-20  Danny Smith  <dannysmith@users.sourceforge.net>
108         * include/c_std/std_cwchar.h (wcsstr): Correct signature.
110 2004-07-19  Benjamin Kosnik  <bkoz@redhat.com>
112         PR libstdc++/15488
113         * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
115 2004-07-17  Richard Sandiford  <rsandifo@redhat.com>
117         PR bootstrap/16469
118         * scripts/create_testsuite_files: Pass -print to find.
120 2004-07-15  Paolo Carlini  <pcarlini@suse.de>
122         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
123         * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
125 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
127         PR libstdc++/14697
128         * acinclude.m4 (glibcxx_shared_libgcc): Correct
129         glibcxx_shared_libgcc test for multilibs.
130         * configure: Rebuilt.
132 2004-07-14  Paolo Carlini  <pcarlini@suse.de>
134         PR libstdc++/16505
135         * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
136         the signature to return void, as per 20.4.4.3.
137         * include/bits/stl_vector.h (vector::vector(size_type,
138         const value_type&, const allocator_type&), vector::vector(size_type),
139         vector::_M_initialize_dispatch): Adjust callers.
140         * include/bits/vector.tcc (vector<>::_M_fill_assign,
141         vector<>::_M_fill_insert): Likewise.
142         * testsuite/20_util/memory/16505.cc: New.
144 2004-07-14  Paolo Carlini  <pcarlini@suse.de>
146         * testsuite/22_locale/locale/cons/12658_thread-1.cc,
147         12658_thread-2.cc: Use __gnu_test::try_named_locale.
149 2004-07-13  Benjamin Kosnik  <bkoz@redhat.com>
151         * docs/html/ext/mt_allocator.html: Add docs for _Tune.
152         * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
153         (__mt_alloc::_S_set_options): Same.
154         Add to comments.
156 2004-07-13  Benjamin Kosnik  <bkoz@redhat.com>
158         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
159         for linux.
160         * configure: Regenerated.
162 2004-07-13  Paolo Carlini  <pcarlini@suse.de>
164         * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
165         to 12658_thread-1.cc and xfail.
166         * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
167         simpler version of 12658_thread-1.cc, still failing on 3_3 and
168         not failing on 3_4/mainline - both on single processor and
169         multiprocessor machines.
171 2004-07-12  Benjamin Kosnik  <bkoz@redhat.com>
173         * docs/html/abi.html: Remove non-public qualification.
175         * include/bits/concurrence.h: Tweak comments.
177 2004-07-11  Paolo Carlini  <pcarlini@suse.de>
179         Add wchar_t counterparts of the basic_streambbuf<char> tests.
180         * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
181         * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
182         Likewise.
183         * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
184         * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
185         3599.cc: Likewise.
186         * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
187         * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
188         * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
189         * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
190         * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
191         Likewise.
192         * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
194         * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
195         tweaks.
196         * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
197         Likewise.
198         * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
199         * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
201 2004-07-11  Phil Edwards  <phil@codesourcery.com>
203         * acinclude.m4:  Cosmetic shell syntax fixes.
204         * configure.ac:  Bring comment inline with reality.
205         * configure.host:  Both of the above.  Move 'arm' case to right
206         place in host_cpu switch.
207         * aclocal.m4, configure:  Regenerate.
209 2004-07-09  Paolo Carlini  <pcarlini@suse.de>
211         Add wchar_t counterparts of the basic_stringbuf<char> tests.
212         * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
213         * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
214         * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
215         3599.cc, 9988.cc: Likewise.
216         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
217         Likewise.
218         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
219         Likewise.
220         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
221         Likewise.
222         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
223         Likewise.
224         * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
225         * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
226         * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
227         * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
228         Likewise.
229         * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
230         9404-1.cc: Likewise.
231         * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
232         9404-2.cc: Likewise.
233         * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
234         3955.cc: Likewise.
235         * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
236         * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
238 2004-07-08  Paolo Carlini  <pcarlini@suse.de>
240         * include/bits/gslice.h: Trivial formatting fixes.
241         * include/bits/gslice_array.h: Likewise.
242         * include/bits/indirect_array.h: Likewise.
243         * include/bits/mask_array.h: Likewise.
244         * include/bits/slice_array.h: Likewise.
245         * include/bits/valarray_after.h: Likewise.
246         * include/bits/valarray_array.h: Likewise.
247         * include/bits/valarray_before.h: Likewise.
248         * include/std/std_valarray.h: Likewise.
250 2004-07-08  Benjamin Kosnik  <bkoz@redhat.com>
252         PR c++/16169
253         * include/bits/basic_string.h (basic_string::operator=): Revert.
255 2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>
257         * configure.ac (libtool_VERSION): To 6:2:0.
258         * configure: Regenerated.
260         * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
261         
262 2004-07-07  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
264         PR libstdc++/16411
265         * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
267 2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>
269         * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
270         -Weffc++ issues.
272 2004-07-07  Paolo Carlini  <pcarlini@suse.de>
274         PR libstdc++/16401
275         * include/bits/sstream.tcc (overflow): When reallocating _M_string
276         use an exponential grow policy.
277         * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
278         * testsuite/performance/27_io/stringbuf_overflow.cc: New.
280 2004-07-06  Anssi Hannula  <anssi.hannula@mbnet.fi>
282         PR libstdc++/15928
283         * crossconfig.m4: Add in bits for djgpp.
284         * configure: Regenerate.
285         
286 2004-07-05  Jonathan Wakely  <redi@gcc.gnu.org>
288         * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
289         instantiation of set and multiset (functor param given as int).
291 2004-07-04  Paolo Carlini  <pcarlini@suse.de>
293         * include/bits/basic_string.h: Trivial formatting fixes and/or
294         const-ification of some variables.
295         * include/bits/deque.tcc: Likewise.
296         * include/bits/stl_algobase.h: Likewise.
297         * include/bits/stl_bvector.h: Likewise.
298         * include/bits/stl_construct.h: Likewise.
299         * include/bits/stl_deque.h: Likewise.
300         * include/bits/stl_pair.h: Likewise.
301         * include/bits/stl_vector.h: Likewise.
302         * include/bits/vector.tcc: Likewise.
304 2004-07-04  Paolo Carlini  <pcarlini@suse.de>
306         * testsuite/25_algorithms/copy/1.cc: Add instantiations for
307         systems with no COMDAT or weak support.
308         * testsuite/25_algorithms/copy/2.cc: Likewise.
309         * testsuite/25_algorithms/copy/3.cc: Likewise.
310         * testsuite/25_algorithms/copy/4.cc: Likewise.
312 2004-07-03  Paul Brook  <paul@codesourcery.com>
314         * configure.ac: Set ABI_TWEAKS_SRCDIR.
315         * configure.host: Set abi_tweaks_dir.  Check for atomicity.h when
316         setting atomicity_dir.  Override type_cpu for arm based targets.
317         * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
318         * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
319         * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
320         * libsupc++/vec.cc: Ditto.
321         * config/cpu/arm/cxxabi_tweaks.h: New file.
322         * config/cpu/generic/cxxabi_tweaks.h: New file.
323         * */Makefile.in: Regenerate.
324         * configure: Regenerate.
326 2004-07-02  Paolo Carlini  <pcarlini@suse.de>
328         * include/bits/type_traits.h (_Is_normal_iterator): Move...
329         * include/bits/cpp_type_traits.h: ... here, renamed to
330         __is_normal_iterator and consistent with the other traits.
331         * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
332         to the struct __copy_normal and three specializations.
333         (__copy_backward_output_normal_iterator,
334         __copy_backward_input_normal_iterator): Likewise, convert to
335         the struct __copy_backward_normal and three specializations.
336         (copy, copy_backward): Use the latter.
337         (__copy_aux, __copy_backward_aux): Very minor tweaks.
339 2004-07-01  Paolo Carlini  <pcarlini@suse.de>
341         * include/bits/stl_algobase.h (__copy_trivial): Remove.
342         (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
343         __is_trivially_copyable, __are_same and __copy::copy.
344         (__copy): Rewrite as a class template and two specializations.
345         (__copy_ni2): Simplify, just call __copy_aux.
346         
347         * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
348         check.
349         * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
350         for destination value type != source value type.
352 2004-07-01  Benjamin Kosnik  <bkoz@redhat.com>
353             Per Bothner  <per@bothner.com>
354             Mohan Embar  <gnustuff@thisiscool.com>
356         PR libstdc++/16248
357         * include/bits/concurrence.h (__glibcxx_mutex_type): New.
358         (__glibcxx_mutex): Encapsulate mutex init function into type for
359         threaded configurations without __GTHREAD_MUTEX_INIT.
360         (lock::lock): Make device member a reference.
361         (lock::~lock): Same.
362         * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
363         to mutex_type.
364         * src/allocator.cc: Same.
365         
366 2004-06-30  Brad Spencer  <spencer@infointeractive.com>
368         * include/ext/mt_allocator.h: Handle allocations at static
369         initialization that happen before _S_options is (automatically)
370         constructed; set _S_init even if _M_force_new is true.
371         
372 2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
374         * config/linker-map.gnu: Revert new exports.
376 2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
377             Stuart Anderson  <anderson@netsweng.com>
378         
379         * config/linker-map.gnu: Add destructor exports for abstract base
380         classes to conform to LSB.
382 2004-06-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
383             Paolo Carlini  <pcarlini@suse.de>
385         * include/bits/cpp_type_traits.h: Add __is_pointer and
386         __is_trivially_copyable.
387         * include/bits/stl_algobase.h (fill, fill_n): Slightly
388         tweak to use the latter.
389         (__copy_backward_dispatch): Remove.
390         (__copy_backward_aux): Rewrite to use __is_pointer and
391         __is_trivially_copyable and __copy_backward::copy_b.
392         (__copy_backward): Rewrite as a class template and two
393         specializations.
395 2004-06-30  Paolo Carlini  <pcarlini@suse.de>
397         * testsuite/25_algorithms/copy.cc: Move to...
398         * testsuite/25_algorithms/copy/1.cc: ... here, extend.
399         * testsuite/25_algorithms/copy/2.cc: New.
400         * testsuite/25_algorithms/copy/3.cc: New.
401         * testsuite/25_algorithms/copy/4.cc: New.
403 2004-06-29  Paul Brook  <paul@codesourcery.com>
405         * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
406         element size in the cookie.
408 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
410         * include/bits/cpp_type_traits.h: Move the additions to
411         namespace __gnu_internal outside of namespace std; trivial
412         formatting fixes.
414 2004-06-28  Benjamin Kosnik  <bkoz@redhat.com>
416         * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
417         Revert -Weffc++ changes that defined copy ctory and or assignment
418         operator.
419         * libsupc++/tinfo.cc (__upcast_result): Same.
420         
421 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
423         * src/localename.cc (locale::_Impl::_Impl): Slightly improve
424         the algorithm used to name the categories.
426 2004-06-28  Paolo Bonzini  <bonzini@gnu.org>
428         * include/Makefile.am: Give a .gch extension to
429         the PCH files, not only to the directory.
430         * include/Makefile.in: Regenerate.
432 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
434         * config/locale/gnu/monetary_members.cc
435         (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
436         assignments of _M_decimal_point and _M_thousands_sep.
438 2004-06-27  Paolo Carlini  <pcarlini@suse.de>
440         * docs/html/17_intro/contribute.html: Update some links.
441         * docs/html/17_intro/porting-howto.html: Likewise.
442         * docs/html/17_intro/porting-howto.xml: Likewise.
443         * docs/html/18_support/howto.html: Likewise.
444         * docs/html/21_strings/howto.html: Likewise.
445         * docs/html/27_io/howto.html: Likewise.
446         * docs/html/configopts.html: Likewise.
447         * docs/html/ext/howto.html: Likewise.
448         * docs/html/faq/index.html: Likewise.
449         * docs/html/install.html: Don't mention 2.x compilers.
451 2004-06-27  Paolo Carlini  <pcarlini@suse.de>
453         * include/ext/rope: Trivial formatting fixes.
454         * include/ext/ropeimpl.h: Likewise.
456 2004-06-26  Paolo Carlini  <pcarlini@suse.de>
458         PR libstdc++/16210
459         * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
460         availability of strto(u)ll, not used anymore in the iostreams.
461         * configure: Regenerate.
463 2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>
465         PR libstdc++/16182      
466         * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
467         AC_DEFINE_UNQUOTED.
468         * configure: Regenerate.
470 2004-06-25  Paul Brook  <paul@codesourcery.com>
472         * libsupc++/cxxabi.h: Define __ARM_EABI__
473         (__guard): Use it.
474         * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
476 2004-06-25  Paul Brook  <paul@codesourcery.com>
478         * include/bits/concurrence.h: Still create mutex object when
479         single-threaded.
481 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
483         * include/bits/stl_algobase.h (fill, fill_n): Revert last
484         change: actually we need to copy construct an object of type
485         _Tp, not of type iterator_traits<>::value_type, therefore the
486         code is ok.
488 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
490         * include/bits/stl_algobase.h (fill, fill_n): Tighten the
491         dispatch: use iterator_traits<>::value_type, not _Tp.
493 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
495         * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
496         * testsuite/25_algorithms/fill/2.cc: Likewise.
498 2004-06-25  Dan Nicolaescu  <dann@ics.uci.edu>
499             Paolo Carlini  <pcarlini@suse.de>
501         * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
502         for fill and fill_n, respectively: when copying is cheap, use a
503         temporary to avoid a memory read in each iteration.
505 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
507         * testsuite/25_algorithms/fill/1.cc: New.
508         * testsuite/25_algorithms/fill/2.cc: Likewise.
510 2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>
512         * include/debug/formatter.h (__gnu_debug::_Error_formatter):
513         Remove copy constructor and assignment operator.
515 2004-06-24  Benjamin Kosnik  <bkoz@redhat.com>
517         * include/bits/concurrence.h (__gnu_cxx::lock): New.
518         * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
519         (__pool_base::_M_get_mutex): New.
520         * include/bits/allocator.h: Tweak.
521         * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
522         * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
523         * include/bits/stl_threads.h: Remove.
524         * include/Makefile.am: Also here.
525         * include/Makefile.in: Regenerate.
527         * src/locale_init.cc: Use __gnu_cxx::lock.
529         * src/allocator.cc: Move all instantiations...
530         * src/allocator-inst.cc: ...here.
531         
532 2004-06-23  Andrew Pinski  <apinski@apple.com>
534         * linkage.m4: Remove check for libmx.   
535         * configure: Regenerate.
537 2004-06-23  Paolo Carlini  <pcarlini@suse.de>
539         PR libstdc++/16154
540         * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
541         Don't require the _DefaultConstructibleConcept.
542         (struct _ForwardIteratorConcept): Require it here.
544 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
546         * include/bits/istream.tcc (getline): Make sure arguments passed
547         to min/max have the same type.
548         * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
549         * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
551 2004-06-22  Benjamin Kosnik  <bkoz@redhat.com>
553         * docs/html/abi.html: Update links.
555 2004-06-22  Paolo Carlini  <pcarlini@suse.de>
557         * testsuite/26_numerics/complex_inserters_extractors.cc,
558         complex_value.cc, buggy_complex.cc: Move to...
559         * testsuite/26_numerics/complex/: ... here.
560         * testsuite/26_numerics/c99_classification_macros_c++.cc,
561         c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
562         fabs_inline.cc: Move to...
563         * testsuite/26_numerics/cmath/: ... here.
564         * testsuite/26_numerics/binary_closure.cc, slice.cc,
565         slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
566         valarray_name_lookup.cc, valarray_operators.cc,
567         valarray_subset_assignment.cc: Move to...
568         * testsuite/26_numerics/valarray/: ... here (new dir).
569         * testsuite/26_numerics/sum_diff.cc: Move to...
570         * testsuite/26_numerics/numeric/: ... here (new dir).
572 2004-06-22  Paolo Carlini  <pcarlini@suse.de>
574         * include/std/std_istream.h (ignore(streamsize __n = 1,
575         int_type __delim = traits_type::eof())): Split into...
576         (ignore(), ignore(streamsize __n), ignore(streamsize __n,
577         int_type __delim)): The first two can be much more simpler
578         and efficient than the fully general case; also, the last
579         two can take advantage of the same mechanism already used
580         for getline.
581         * include/bits/istream.tcc (ignore(streamsize __n = 1,
582         int_type __delim = traits_type::eof()): Remove.
583         (ignore(), ignore(streamsize __n), ignore(streamsize __n,
584         int_type __delim)): New.
586 2004-06-21  Loren J. Rittle  <ljrittle@acm.org>
588         * config/linker-map.gnu: Use wildcards for
589         __basic_file::sys_open(FILE*, _Ios_Openmode).
591 2004-06-20  Paolo Carlini  <pcarlini@suse.de>
593         * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
595 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
597         * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
598         the alignment requested.
599         (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
600         (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
601         (__mt_alloc<>::deallocate): Likewise.
603 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
605         PR libstdc++/16020
606         * include/debug/safe_base.h
607         (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
608         _Safe_sequence_base::operator=): Provide definitions.
609         * testsuite/23_containers/bitset/cons/16020.cc: New.
611 2004-06-18  Benjamin Kosnik  <bkoz@redhat.com>
613         * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
614         (__pool_base): Remove unused template parameter.  Add
615         protected. Move lock data into __pool_base::_Lock. Remove static
616         on member functions.
617         (__pool_base::_M_get_free_list): New.
618         (__pool_alloc): Move _S_force new here.
619         * src/allocator.cc: Move out of line __pool_base definitions here.
620         * config/linker-map.gnu: Export bits from __pool_base.
621         
622 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
624         * config/locale/gnu/numeric_members.cc
625         (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
626         assignments of _M_decimal_point and _M_thousands_sep.
627         * config/locale/gnu/time_members.cc
628         (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
629         and reformat assignments of date and time fields.
631 2004-06-16  Paolo Carlini  <pcarlini@suse.de>
633         * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
634         to use _Data_allocate.
635         * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
636         (rope<>::_S_substring): Likewise.
637         (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
638         (rope<>::c_str()): Likewise.
639         (rope<>::replace_with_c_str()): Likewise.
641         * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
642         Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
643         not _RopeRep.
644         (_Rope_iterator_base<>::_S_setcache): Likewise.
645         (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
646         (rope<>::_S_substring): Likewise.
647         (rope<>::_S_dump): Likewise.
648         (rope<>::_S_fetch_ptr): Likewise.
649         (rope<>::_S_compare): Likewise.
650         (rope<>::replace_with_c_str()): Likewise.               
652         * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
653         * testsuite/ext/rope/2.cc: New.
655 2004-06-16  Paolo Carlini  <pcarlini@suse.de>
656             Matt Austern  <austern@apple.com>
658         * testsuite/ext/rope/3.cc: New.
660 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
662         * acinclude.m4: Remove useless multilib configury.
663         * Makefile.am: Remove useless multilib rules.
664         * aclocal.m4: Regenerate.
665         * Makefile.in: Regenerate.
666         * configure: Regenerate.
668 2004-06-15  Paolo Carlini  <pcarlini@suse.de>
670         * include/ext/hashtable.h: Trivial formatting fixes.
671         * include/ext/rb_tree: Likewise.
673 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
675         * include/ext/hash_map: Trivial formatting fixes.
676         * include/ext/hash_set: Likewise.
677         * include/ext/memory: Likewise.
678         * include/ext/numeric: Likewise.
680 2004-06-14  Benjamin Kosnik  <bkoz@redhat.com>
682         * Makefile.in: Regenerate with automake 1.8.5.
683         * aclocal.m4: Same.
684         * include/Makefile.in: Same.
685         * libmath/Makefile.in: Same.
686         * libsupc++/Makefile.in: Same.
687         * po/Makefile.in: Same.
688         * src/Makefile.in: Same.
689         * testsuite/Makefile.in: Same.
691 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
693         * include/ext/slist: Trivial formatting fixes.
695 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
697         * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
698         Don't use the 'magic number' 10 in the computation of __minlen;
699         never access __name past __minlen; in the loop over __i3, don't
700         decrease __nmatches and increase __i3 at once, only either of
701         the two; tidy.
703 2004-06-13  Paolo Carlini  <pcarlini@suse.de>
705         * include/bits/locale_facets.tcc (time_get<>::do_get_time,
706         time_get<>::do_get_date): Use only once _M_extract_via_format,
707         instead of going through "%X"/"%x" and calling it two times
708         (+ using widen).
710 2004-06-12  Paolo Carlini  <pcarlini@suse.de>
712         * include/ext/algorithm: Trivial formatting fixes.
713         * include/ext/functional: Likewise.
714         * include/ext/hash_fun.h: Likewise.
715         * include/ext/iterator: Likewise.
717 2004-06-12  Paolo Carlini  <pcarlini@suse.de>
719         * include/bits/basic_string.tcc (find(const _CharT*, size_type,
720         size_type)): Reimplement using std::search.
721         * src/string-inst.cc: Instantiate std::search for char/wchar_t.
723 2004-06-12  Dhruv Matani  <dhruvbird@gmx.net>
725         * testsuite/performance/21_strings/string_find.cc: New.
727 2004-06-10  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
729         * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
731 2004-06-10  Jan van Dijk  <jan@etpmod.phys.tue.nl>
733         * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
734         this function return a value.
736 2004-06-09  Paolo Carlini  <pcarlini@suse.de>
738         PR libstdc++/15775
739         * include/bits/stl_deque.h: Consistently with stl_set.h, define
740         pointer as allocator's pointer, likewise for reference,
741         const_pointer, and const_reference.
742         * include/bits/stl_list.h: Likewise.
743         * include/bits/stl_map.h: Likewise.
744         * include/bits/stl_multimap.h: Likewise.
745         * include/bits/stl_vector.h: Likewise.
747 2004-06-09  Benjamin Kosnik  <bkoz@redhat.com>
749         * crossconfig.m4: Remove signbit, signbitf, signbitl.   
750         * linkage.m4: Comment LIBMATHOBJS, tweak others.  AC_DEFINES for
751         builtin math functions instead of AC_DEFINE_UNQUOTED.
752         * configure: Regenerate.
753         
754 2004-06-08  Benjamin Kosnik  <bkoz@redhat.com>
756         * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
757         * docs/doxygen/mainpage.html: Remove links.
759 2004-06-08  Jason Merrill  <jason@redhat.com>
761         * config/linker-map.gnu: Use wildcards for
762         __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
764 2004-06-08  Paolo Carlini  <pcarlini@suse.de>
766         * include/ext/pool_allocator.h: Convert to a global free-list,
767         as per the original SGI/HP design: move the implementation
768         details to struct __pool_base, from which __pool_alloc derives.
769         * src/allocator.cc: Instantiate __pool_base.
771 2004-06-07  Dhruv Matani  <dhruvbird@gmx.net>
772             Paolo Carlini  <pcarlini@suse.de>
774         * testsuite/testsuite_performance.h
775         (resource_counter::allocated_memory): Make it return the right
776         number of bytes requested by the allocators/application. This is
777         the sbrk+mmaped memory.
779 2004-06-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
781         * include/std/std_complex.h (log): Tidy.
783 2004-05-31  Benjamin Kosnik  <bkoz@redhat.com>
785         * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
786         * testsuite/testsuite_abi.cc: Same.
787         * configure.ac (libtool_VERSION): Bump to 6:1:0.
788         * configure: Regenerate.
789         * aclocal.m4: Regenerate.
790         
791 2004-05-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
793         * include/std/std_complex.h (complex<_Tp>): Properly indent
794         to follow C++STYLE. 
795         (complex<>::__rep): New.
796         (__complex_abs): New.  Dispatch to built-ins.
797         (abs): Use them.
798         (__complex_arg): New. Dispatch to built-ins.
799         (arg): Use it.
800         (__complex_cos): New. Dispatch to built-ins.
801         (cos): Use it.
802         (__complex_cosh): New. Dispatch to built-ins.
803         (cosh): Use it.
804         (__complex_exp): New. Dispatch to built-ins.
805         (exp): Use it.
806         (__complex_log): New. Dispatch to built-ins.
807         (log): Use it.
808         (__complex_sin): New. Dispatch to built-ins.
809         (sin): Use it.
810         (__complex_sinh): New. Dispatch to built-ins.
811         (sinh): Use it.
812         (__complex_sqrt): New. Dispatch to built-ins.
813         (sqrt): Use it.
814         (__complex_tan): New. Dispatch to built-ins.
815         (tan): Use it.
816         (__complex_tanh): New. Dispatch to built-ins.
817         (tanh): Use it.
818         (__complex_pow): New. Dispatch to built-ins.
819         (pow): Use it.
821 2004-05-29  Richard B. Kreckel  <Richard.Kreckel@Framatome-ANP.com>
822             Benjamin Kosnik  <bkoz@redhat.com>
823         
824         PR libstdc++/14600
825         * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
826         * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
827         * config/io/basic_file_stdio.cc (__basic_file::file): New.
828         * config/io/basic_file_stdio.h: Define.
830 2004-05-27  Benjamin Kosnik  <bkoz@redhat.com>
832         PR libstdc++/15675
833         * docs/html/documentation.html: Update doxygen links for 3.4.0.
835 2004-05-27  Jan Beulich  <jbeulich@novell.com>
837         * scripts/create_testsuite_files: Tweak.
839 2004-05-25  Benjamin Kosnik  <bkoz@redhat.com>
841         PR libstdc++/15489
842         * scripts/create_testsuite_files: Revert xtype change, add non-GNU
843         bits to do the same thing.
845 2004-05-24  Paolo Carlini  <pcarlini@suse.de>
847         * include/bits/istream.tcc (ignore): Correctly deal with
848         n == numeric_limits<streamsize>::max().
849         * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
851         * include/bits/istream.tcc (basic_istream<>::getline): Prefer
852         '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
853         __n == numeric_limits<>::min().
855         * include/bits/istream.tcc: Minor tweaks.
857         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
858         Tighten.
859         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
860         Likewise.
861         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
862         Likewise.
863         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
864         Likewise.
865         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
867 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
869         PR libstdc++/12854
870         Fixups for -Weffc++.    
871         * include/bits/basic_string.h (basic_string::operator=): Return
872         pointer to this instead of result of assign. Although redundant,
873         this doesn't impact resultant codegen.
874         
875         * include/bits/locale_facets.h (__numpunct_cache): Declare
876         assignment opxserator and copy constructor private.
877         (__timepunct_cache): Same.
878         (__moneypunct_cache): Same.
879         (collate): Use member initialization list for _M_c_locale_collate.
880         * config/locale/gnu/messages_members.h: Same.
881         * config/locale/gnu/time_members.h (__timepunct): Same. 
882         * src/codecvt.cc: Use member initialization list to initialize
883         _M_c_locale_codecvt.    
884         * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
885         * config/os/gnu-linux/ctype_noninline.h: Same.
886         * src/locale.cc (_Impl): Same.
887         * src/locale_init.cc: Same.
888         * src/localename.cc: Same.      
890         * include/bits/basic_ios.h (basic_ios): Complete member
891         initialization list.
892         * include/bits/istream.tcc (basic_istream::sentry): Same.
893         * include/bits/ostream.tcc (basic_ostream::sentry): Same.
894         * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
895         _M_pback to member initialization list.
896         * include/std/std_streambuf.h: Same.
897         * include/std/std_sstream.h: Same, for _M_mode.
898         * src/ios.cc (ios_base): Same.
899         
900         * include/ext/rope: Make derived classes match exception
902          specifications. Add copy constructors and assignment operators.
904         * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
905         constructor and assignment operator protected.
906         (_Safe_iterator_base): Same.
907         * include/debug/formatter.h (_Error_formatter): Define copy
908         constructor and assignment operator.
910         * include/backward/strstream: Declare assignment operator and copy
911         constructor private.
913 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
915         * testsuite/testsuite_hooks.h (func_callback): Declare copy
916         constructor and assignment operator private.    
917         * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
918         exception specifications of base class.
919         * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
920         * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
921         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
922                 
923 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
925         * libsupc++/cxxabi.h: Remove duplicated and useless public and
926         private keywords in class declarations. Format. Use
927         stddef.h. Expose declarations to "C" compilation.
928         * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
929         assignment operator.
930         (__dyncast_result): Same.
931         * libsupc++/vec.cc (uncatch_exception): Same, use member
932         initialization list.
933                  
934 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
936         * testsuite/abi_check.cc: Add unistd.h.
938 2004-05-22  Paolo Carlini  <pcarlini@suse.de>
940         PR libstdc++/15565
941         * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
942         __int_to_char(unsigned long long)): Showpos is not relevant
943         for unsigned types.
944         * testsuite/22_locale/num_put/put/char/15565.cc: New.
945         * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
947         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
948         char.
949         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
950         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
951         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
952         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
953         * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
954         * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
956 2004-05-21  Matthias Klose  <doko@debian.org>
958         * docs/doxygen/run_doxygen:  Bump required version.
960 2004-05-21  Benjamin Kosnik  <bkoz@redhat.com>
962         * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
963         * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
965 2004-05-21  Paolo Carlini  <pcarlini@suse.de>
967         * include/bits/istream.tcc (ignore): Remove redundant line.
968         (readsome): Tidy, closely following 27.6.1.3, p30.
970 2004-05-20  Paolo Carlini  <pcarlini@suse.de>
972         * include/bits/istream.tcc (operator>>(basic_istream<>&,
973         basic_string<>&)): Use a temporary buffer, thus avoiding
974         reallocation for common case.
975         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
976         New.
977         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
978         Likewise.
980         * include/bits/istream.tcc: Const-ification of a few variables.
982         * include/bits/ostream.tcc: Trivial formatting fixes and
983         const-ification of some variables.
985 2004-05-20  Benjamin Kosnik  <bkoz@redhat.com>
987         PR libstdc++/15123
988         PR libstdc++/13928
989         * docs/doxygen/Intro.3: Remove Allocators.3.
990         Add new extension headers, extension namespace list.
991         * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
992         Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
993         __gnu_debug::. Remove __policy_ renames.
994         * docs/doxygen/guide.html: Add dot note.
995         * docs/doxygen/stdheader.cc: Edit, add files.
996         * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
997         
998 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
1000         * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
1002 2004-05-18  Jan Beulich  <jbeulich@novell.com>
1004         PR libstdc++/15489
1005         * scripts/create_testsuite_files: Also find source files through
1006           symbolic links.
1008 2004-05-18  Jan Beulich  <jbeulich@novell.com>
1010         PR libstdc++/15488
1011         * testsuite/lib/libstdc++.exp: Make test files writable.
1013 2004-05-18  Paolo Carlini  <pcarlini@suse.de>
1015         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
1016         tweaks.
1018 2004-05-18  Dhruv Matani  <dhruvbird@gmx.net>
1020         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
1021         allocation loop which removes blocks from the global free list
1022         from O(N) to O(1) when the required blocks are <= the number
1023         available.
1025 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
1027         * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
1029 2004-05-17  Benjamin Kosnik  <bkoz@redhat.com>
1031         * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
1032         * testsuite/23_containers/deque/14340.cc: New.
1033         * testsuite/23_containers/list/14340.cc: New.
1034         * testsuite/23_containers/map/14340.cc: New.
1035         * testsuite/23_containers/multimap/14340.cc: New.
1036         * testsuite/23_containers/multiset/14340.cc: New.
1037         * testsuite/23_containers/set/14340.cc: New.
1038         * testsuite/23_containers/vector/14340.cc: New.
1040 2004-05-17  Douglas Gregor   <gregod@cs.rpi.edu>
1042         PR libstdc++/14340 
1043         * include/debug/safe_iterator.h (_Safe_iterator converting 
1044         constructor): Only allow declaration to instantiate when the 
1045         incoming _Safe_iterator has exactly the right iterator type.
1047 2004-05-17  Jonathan Wakely  <redi@gcc.gnu.org>
1049         * include/bits/boost_concept_check.h: Fix old attribute syntax.
1050         * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
1051         to pass concept-checks.
1052         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1053         * testsuite/23_containers/set/modifiers/swap.cc: Same.
1054         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1056 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
1058         * include/std/std_bitset.h: Minor formatting fixes.
1060 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
1062         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1063         Consistently update __bin._M_free[0].
1064         (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
1065         __bin._M_free[0] to simplify the while loop (i.e., the number
1066         of iterations becomes known at the outset).
1068 2004-05-15  Paolo Carlini  <pcarlini@suse.de>
1070         * include/std/std_bitset.h: Trivial formatting fixes.
1072 2004-05-14  Paolo Carlini  <pcarlini@suse.de>
1073             Ivan Godard  <igodard@pacbell.net>
1075         PR libstdc++/15361
1076         * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
1077         * testsuite/23_containers/bitset/ext/15361.cc: New.
1079 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
1081         PR libstdc++/15046
1082         * crossconfig.m4: Add C99 math bits for linux crosses.
1083         * configure: Regenerate.
1084         
1085 2004-05-13  Simon Marshall <simon.marshall@misys.com>
1086             Benjamin Kosnik  <bkoz@redhat.com>
1088         PR libstdc++/15090
1089         * include/bits/locale_facets.h: Fix for -fno-for-scope.
1090         * include/debug/safe_sequence.h: Same.
1091         * include/debug/safe_iterator.tcc: Same.
1092         * src/debug.cc: Same.
1093         * src/locale.cc: Same.
1094         * src/locale_init.cc: Same.
1095         * src/localename.cc: Same.
1096         * config/locale/gnu/ctype_members.cc: Same.
1097         * config/locale/gnu/numeric_members.cc: Same.
1098         * testsuite/testsuite_abi.cc: Same.
1099         * testsuite/testsuite_hooks.cc: Same.
1100         
1101 2004-05-13  Jonathan Wakely  <redi@gcc.gnu.org>
1102         
1103         * docs/html/abi.html: Document effect of -fabi-version on value
1104         of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
1105         Fix markup.
1107 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
1109         PR libstdc++/15074      
1110         * docs/html/faq/index.html: Update docs for libsupc++ usage.
1112 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
1114         PR libstdc++/15412
1115         * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
1116         __gnu_internal.
1117         (_GLIBCXX_mutex_address): Same.
1118         (_GLIBCXX_once): Same.  
1119         (_GLIBCXX_mutex_init): Same.
1120         (_GLIBCXX_mutex_address_init): Same.
1121         
1122 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
1123         
1124         * docs/html/abi.html: New.
1125         * docs/html/abi.txt: Remove.
1126         * docs/html/documentation.html: Add link.
1127         * testsuite/Makefile.am: Add files.
1128         * testsuite/Makefile.in: Regenerated.
1129         * testsuite/abi_check.cc: Move and modify code into...
1130         * testsuite/testsuite_abi.cc: Add.
1131         * testsuite/testsuite_abi.h: Add.
1133         * docs/html/17_intro/TODO: Update.
1134         * include/bits/stl_pair.h: Format.
1135         
1136 2004-05-06  Matthias Klose  <doko@debian.org>
1138         * include/backward/iterator.h:  Add GPL copyright info,
1139         with exception clause.
1140         * include/bits/boost_concept_check.h: Likewise.
1141         * include
1142         * libsupc++/tinfo.h: Likewise.
1143         * po/string_literals.cc: Likewise.
1144         
1145 2004-05-03  Andreas Tobler  <a.tobler@schweiz.ch>
1147         * acinclude.m4: Replace -W with more speaking -Wextra.
1148         * configure: Rebuilt.
1150 2004-05-03  Paolo Carlini  <pcarlini@suse.de>
1152         Optimize locale::_M_impl->_M_names for the most common cases:
1153         !_M_names[0] means unnamed; !_M_names[1] means all the categories
1154         the same name (_M_names[0] && _M_names[1] means that the full set
1155         of _M_names must be processed, the general case).
1156         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
1157         Tweak, saving work when !_M_names[1].
1158         (locale::locale(const locale&, _Facet*): Simplify: now just setting
1159         _M_names[0] = 0 means unnamed.
1160         * src/locale.cc (locale::operator==): Deal first with the common,
1161         easy cases, otherwise fall back to locale::name().
1162         (locale::name()): Tweak, if !_M_names[0] just return "*".
1163         (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
1164         copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
1165         * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
1166         * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
1167         Simplify when !std::strchr, just updating _M_names[0]; clean up.
1168         (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
1169         for the general case (full set of names), then do the usual work;
1170         clean up.
1172         * src/locale.cc (locale::name()): Reserve space in __ret.
1173         * src/locale_init.cc (locale::global(const locale&)): Save
1174         the name in a temporary.
1175         * src/localename.cc (locale::locale(const char*)): Reserve space
1176         in __str.
1178 2004-04-29  Paolo Carlini  <pcarlini@suse.de>
1180         * src/locale.cc (locale::operator==): Always avoid constructing
1181         locale::name(), directly compare pairs of _M_names.
1183 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
1185         * include/bits/istream.tcc: Fix comment.
1187 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
1189         * include/bits/stl_vector.h: Trivial formatting fixes.
1190         * include/bits/vector.tcc: Likewise.
1192 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
1194         PR libstdc++/15002 (continued again)
1195         * include/bits/istream.tcc (getline(basic_istream<>&,
1196         basic_string<>&, _CharT)): Use a temporary buffer, thus
1197         avoiding reallocation for common case.
1199         * include/bits/basic_string.tcc (_S_construct(_InIterator,
1200         _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
1201         of temporary buffer to a power of two.
1203         * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
1205 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
1207         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
1208         New.
1209         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
1210         Likewise.
1211         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
1213 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
1214             Petur Runolfsson  <peturr02@ru.is>
1216         PR libstdc++/15002 (continued)
1217         * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
1218         streamsize, char_type)): Use traits::find/copy in a loop to speed
1219         up greatly the function in the common case (I/O buffer size >> 1).
1221 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
1223         * testsuite/27_io/basic_istream/getline/char/4.cc: New. 
1225         * include/bits/istream.tcc (getline(basic_istream<>&,
1226         basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
1227         of sbumpc(), consistently with the other functions, thus also
1228         dealing correctly with the case of exceeded string::max_size().
1230 2004-04-24  Matthias Klose  <doko@debian.org>
1232         Jonathan Wakely  <cow@compsoc.man.ac.uk>
1233         * docs/html/configopts.html: Fix reference to allocator config option.
1235 2004-04-23  Andrew Pinski  <pinskia@physics.uc.edu>
1237         * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
1238         * configure: Regenerate.
1240 2004-04-23  Daniel Jacobowitz  <drow@mvista.com>
1242         PR libstdc++/15047, libstdc++/11610
1243         * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
1244         (libstdc++_init): Don't pass outdir to v3-copy-files.
1246 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
1248         * include/bits/deque.tcc: Trivial formatting fixes.
1249         * include/bits/stl_deque.h: Likewise.
1250         * include/bits/stl_list.h: Likewise.
1251         * include/bits/stl_tree.h: Likewise.
1253 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
1254             Andrew Pinski  <pinskia@physics.uc.edu>
1256         * include/bits/basic_string.tcc (_M_mutate): Don't compute
1257         __src unnecessarily.
1259 2004-04-19  Benjamin Kosnik  <bkoz@redhat.com>
1261         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc: 
1262         Clarify assertion, set test variable to false before assert.
1263         * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
1264         * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
1265         * testsuite/27_io/ios_base/storage/2.cc: Same.
1266         
1267         * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
1268         function returns.
1269         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
1270         * testsuite/27_io/fpos/14320-3.cc: Same.
1271         
1272         * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
1273         * testsuite/27_io/fpos/1.cc: Same.
1274         * testsuite/27_io/basic_stringstream/2.cc: Same.
1275         * testsuite/27_io/basic_stringbuf/4.cc: Same.
1276         * testsuite/27_io/basic_stringbuf/1.cc: Same.
1277         * testsuite/27_io/basic_stringbuf/2.cc: Same.
1278         * testsuite/27_io/basic_streambuf/2.cc: Same.
1279         * testsuite/27_io/basic_ostringstream/2.cc: Same.
1280         * testsuite/27_io/basic_ostream/2.cc: Same.
1281         * testsuite/27_io/basic_ofstream/2.cc: Same.
1282         * testsuite/27_io/basic_istringstream/2.cc: Same.
1283         * testsuite/27_io/basic_istream/2.cc: Same.
1284         * testsuite/27_io/basic_iostream/2.cc: Same.
1285         * testsuite/27_io/basic_ios/2.cc: Same.
1286         * testsuite/27_io/basic_ifstream/2.cc: Same.
1287         * testsuite/27_io/basic_fstream/2.cc: Same.
1288         * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
1290         * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
1291         unsigned against zero.
1292         * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
1293         * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
1295         * testsuite/18_support/new_delete_placement.cc: Initialize
1296         variables before first use.
1297         * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
1298         * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
1299         * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
1300         * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc: 
1301         Same.
1302         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
1303         * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc: 
1304         Same.
1305         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
1306         * testsuite/27_io/types/2.cc: Same.
1308         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
1309         file name.      
1310         * testsuite/27_io/fpos/14775.cc: Same.
1311         
1312 2004-04-19  Paolo Carlini  <pcarlini@suse.de>
1314         PR libstdc++/15002 (partial)
1315         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
1316         Special case __n2 == 1, not calling traits_type::assign/copy. 
1318 2004-04-17  Benjamin Kosnik  <bkoz@redhat.com>
1320         * include/bits/stl_bvector.h: Use _M_impl._M_start.
1321         
1322 2004-04-16  Benjamin Kosnik  <bkoz@redhat.com>
1323         
1324         * include/bits/c++config (_GLIBCXX_STD): New.
1325         * src/list.cc: Use it.
1326         * include/std/std_bitset.h: Same.
1327         * include/bits/vector.tcc: Same.
1328         * include/bits/stl_set.h: Same.
1329         * include/bits/stl_multiset.h: Same.
1330         * include/bits/stl_multimap.h: Same.
1331         * include/bits/stl_map.h: Same.
1332         * include/bits/stl_list.h: Same.
1333         * include/bits/stl_vector.h: Same.
1334         * include/bits/stl_bvector.h: Same.
1335         * include/bits/stl_deque.h: Same.
1336         * include/bits/deque.tcc: Same.
1337         * include/bits/list.tcc: Same.
1338         * include/debug/vector: Same.
1339         * include/debug/set.h: Same.
1340         * include/debug/multiset.h: Same.
1341         * include/debug/multimap.h: Same.
1342         * include/debug/map.h: Same.
1343         * include/debug/list: Same.
1344         * include/debug/deque: Same.
1345         * include/debug/bitset: Same.   
1346         * include/debug/formatter.h (__gnu_debug): Remove using directive.
1347         Add using declaration for std::type_info.
1348         * include/debug/safe_iterator.h: Add using declaration for
1349         std::iterator_traits and std::pair.
1350         * src/debug_list.cc: New.
1351         * src/Makefile.am: Add debug_list.cc.
1352         * src/Makefile.in: Regenerate.
1353         * config/linker-map.gnu: Add _List_node_base exports for std and
1354         __gnu_norm.
1356         * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
1357         idiom that other containers use.
1358         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
1359                         
1360 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
1362         PR libstdc++/14975
1363         * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
1364         in case of error.
1365         * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
1366         * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
1368 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
1370         * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
1371         used anymore.
1372         * config.h.in: Regenerate.
1374 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
1376         * config/locale/generic/monetary_members.cc
1377         (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
1378         btowc unnecessarily, just cast to wchar_t (the concerned chars
1379         all belong to the basic character set).
1380         * config/locale/generic/numeric_members.cc
1381         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1382         * config/locale/gnu/monetary_members.cc
1383         (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
1384         * config/locale/gnu/numeric_members.cc
1385         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1387 2004-04-15  Paolo Carlini  <pcarlini@suse.de>
1389         * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
1390         avoid constructing unnecessarily this->name().
1392 2004-04-14  Zack Weinberg  <zack@codesourcery.com>
1394         * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
1395         Change definition of CXX to use $(shell) instead of backticks.
1396         * testsuite/Makefile.in: Regenerate.
1398 2004-04-12  Dhruv Matani  <dhruvbird@gmx.net>
1400         * testsuite/performance/20_util/allocator/list_sort_search.cc:
1401         Minor formatting fixes.
1402         * testsuite/performance/20_util/allocator/map_mt_find.cc:
1403         Likewise.
1405 2004-04-12  Paolo Carlini <pcarlini@suse.de>
1407         * config/locale/gnu/numeric_members.cc
1408         (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
1409         in __uselocale, since btowc is called for chars belonging to
1410         the basic character set.
1412 2004-04-09  Paolo Carlini  <pcarlini@suse.de>
1414         * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
1415         * testsuite/22_locale/messages/members/char/2.cc: Ditto.
1416         * testsuite/22_locale/messages/members/char/3.cc: Ditto.
1417         * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
1418         * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
1419         * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
1420         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
1421         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
1422         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
1423         * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
1424         * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
1425         * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
1426         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
1427         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
1428         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
1429         * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
1430         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
1432 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
1434         * config/locale/generic/time_members.cc
1435         (__timepunct<char>::_M_initialize_timepunct,
1436         __timepunct<wchar_t>::_M_initialize_timepunct): the correct
1437         _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
1438         * config/locale/gnu/time_members.cc
1439         (__timepunct<char>::_M_initialize_timepunct,
1440         __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
1441         * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
1442         * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
1444         * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
1445         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
1446         * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
1447         * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
1448         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
1449         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
1450         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
1451         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
1452         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
1453         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
1454         * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
1455         * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
1456         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
1457         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
1458         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
1459         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
1460         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
1461         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
1462         * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
1463         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
1464         * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
1465         * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
1466         * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
1467         * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
1468         * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
1469         * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
1470         * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
1471         * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
1472         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
1473         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
1474         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
1475         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
1476         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
1477         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
1478         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
1479         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
1481         * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
1483 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
1485         * config/locale/gnu/monetary_members.cc
1486         (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
1487         _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
1488         and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
1489         _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
1490         * config/locale/gnu/numeric_members.cc
1491         (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
1492         and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
1494 2004-04-06  Benjamin Kosnik  <bkoz@redhat.com>
1496         Fixups for EDG front end.
1497         * include/ext/rope: Instead of non-existent function
1498         _Data_allocate, use allocator's allocate. Use this.
1499         (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
1500         enumerations from _Rope_RopeRep here.
1501         * include/ext/ropeimpl.h: Same.
1502         * src/ext-inst.cc (_S_min_len): Fix up definition.
1504         * config/locale/gnu/ctype_members.cc: Qualify base class members
1505         with this.
1506         * config/locale/generic/ctype_members.cc: Same.
1507         * config/locale/gnu/messages_members.h: Same.
1508         * config/locale/generic/messages_members.h: Same.
1509         * src/ctype.cc: Same.
1510         * include/bits/codecvt.h: Same.
1512         * include/bits/boost_concept_check.h: Declare.
1513         (__error_type_must_be_an_unsigned_integer_type): Remove this.
1514         (__error_type_must_be_an_integer_type): Remove this.
1515         (__error_type_must_be_a_signed_integer_type): Remove this.
1517         * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
1519         * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
1520         specification to definition.
1521         (__cxa_allocate_exception): Same.
1522         * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
1523         * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
1524         (__cxa_get_globals): Same.
1526         * libsupc++/del_op.cc: Add comment about freestanding.
1528 2004-04-05  Paolo Carlini  <pcarlini@suse.de>
1530         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1531         The critical section is actually very small, only two assignments.
1533 2004-04-04  Paolo Carlini  <pcarlini@suse.de>
1534             Petur Runolfsson  <peturr02@ru.is>
1536         * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
1537         adapted from libstdc++/11378.
1539 2004-04-03  Paolo Carlini  <pcarlini@suse.de>
1541         * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
1542         some duplicated code.
1543         (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
1544         in the single threaded case.
1545         * testsuite/performance/20_util/allocator/list_sort_search.cc:
1546         Reorder and renumber the tests consistently with the other testfiles.
1547         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1548         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1549         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1551 2004-04-02  Paolo Carlini  <pcarlini@suse.de>
1553         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1554         Rearrange arithmetic to avoid computing two divisions at
1555         each deallocation.
1557 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
1559         * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
1560         Streamline the second half, wrapping it in a single
1561         '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
1562         conditionals inside loops.
1564 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
1566         PR libstdc++/14775
1567         * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
1568         * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
1569         GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
1570         to _GLIBCXX_RES_LIMITS.
1571         (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
1572         HAVE_LIMIT_*.
1573         * testsuite/testsuite_hooks.h: Declare set_file_limit.
1574         * testsuite/testsuite_hooks.cc: Define it, using getrlimit
1575         and setrlimit(RLIMIT_FSIZE).
1576         * testsuite/27_io/fpos/14775.cc: New.
1577         * config.h.in: Regenerate.
1578         * configure: Likewise.
1580 2004-03-31  Paolo Carlini  <pcarlini@suse.de>
1582         * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
1583         In v3 uses of sscanf, the special floating-point numbers INF,
1584         INFINITY, etc., cannot occur in input, therefore, if the latter
1585         is too large, ERANGE is always stored in errno, no need of finitel.
1587 2004-03-30  Benjamin Kosnik  <bkoz@redhat.com>
1589         PR libstdc++/14783
1590         * include/bits/stl_tree.h: Adjust initialization list order.
1592 2004-03-29  Loren J. Rittle  <ljrittle@acm.org>
1594         * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
1596 2004-03-29  Paolo Carlini  <pcarlini@suse.de>
1598         * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
1599         on allocator behavior, the memory pointed by data2 may well be not
1600         trashed.
1602 2004-03-28  Chavdar Botev  <cbotev@yahoo.com>
1604         PR libstdc++/14245
1605         * include/bits/basic_string.tcc
1606         (basic_string::basic_string(const basic_string&)): Pass to
1607         _Rep::_M_grab the actual allocator of the string being constructed
1608         not the default constructed one.
1610 2004-03-27  Benjamin Kosnik  <bkoz@redhat.com>
1612         libstdc++ PR/13598
1613         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
1614         (__enc_traits::_M_destroy): New.
1615         (__enc_traits::~__enc_traits): Use it.
1616         (__enc_traits::operator=): Use _M_destroy, _M_init.
1617         (__enc_traits::__enc_traits): Same.
1619 2004-03-27  Petur Runolfsson  <peturr02@ru.is>
1621         * testsuite/ext/enc_filebuf/char/13598.cc: New.
1623 2004-03-27  Paolo Carlini  <pcarlini@suse.de>
1625         * include/ext/mt_allocator.h: Uglify consistently names of
1626         variables, members and classes; tidy.
1628 2004-03-27  Dhruv Matani  <dhruvbird@gmx.net>
1630         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1631         Deallocation loop rewrote.
1633 2004-03-26  Paolo Carlini  <pcarlini@suse.de>
1635         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1636         __mt_alloc<>::deallocate): Protect two instances of
1637         block->thread_id with __GTHREADS.
1639 2004-03-25  Gawain Bolton  <gp.bolton@computer.org>
1641         * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
1642         default argument in constructors.
1643         (_Rb_tree::_M_empty_initialize): Remove.
1645 2004-03-25  Benjamin Kosnik  <bkoz@redhat.com>
1647         * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
1648         * testsuite/23_containers/set/operators/1_neg.cc: Same.
1650 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
1652         * include/bits/cpp_type_traits.h: Changed __is_pod
1653         completely. Now, it does not use any of the previous type_traits
1654         to detect the pod types, and it also detects function pointers as
1655         POD types.
1657         * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
1658         which encapsulates the internal implementation of an rb_tree. Made
1659         the allocator a base class of this class instead of the rb_tree,
1660         which was not conforming. This _Rb_tree_impl class is also
1661         specialized on whether the _Compare parameter is a POD type or
1662         not. If so, then it maintains the comparison function as a data
1663         member, otherwise it makes the _Compare parameter a base class of
1664         itself. Also, _M_key_compare is now a function instead of a data
1665         member, so that the above trick can work properly. Delegated the
1666         initialization of the other data members to this newly created
1667         class. Also, now other member functions of rb_tree must refer to
1668         _M_key_compare as _M_impl._M_key_compare(). The other data members
1669         (*) can be referenced to as _M_impl.(*), where
1670         (*) includes _M_header, and _M_node_count.
1672 2004-03-25  Paolo Carlini  <pcarlini@suse.de>
1674         * include/ext/mt_allocator.h (__mt_alloc<>::tune):
1675         Add _M_min_bin, the size in bytes of the smallest bin.
1676         (__mt_alloc<>::tune()): Tweak accordingly.
1677         (__mt_alloc<>::tune(size_t, ...)): Likewise.
1678         (__mt_alloc<>::block_record): Change to a union: members next
1679         and thread_id are never used at the same time.
1680         (__mt_alloc<>::allocate): Update consistently.
1681         (__mt_alloc<>::deallocate): Likewise.
1682         (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
1683         _S_bin_size for the configurable _M_min_size.
1685 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
1687         * include/bits/stl_list.h: Created a _List_impl class and made it
1688         derive from the allocator, instead of the list deriving from the
1689         allocator class, which was not conformant. Changed all references
1690         from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
1691         as above (changed all references to the concerned variables).
1693 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
1695         * include/bits/stl_deque.h: Created a _Deque_impl class and made
1696         it derive from the allocator, instead of the deque deriving from
1697         the allocator class, which was not conformant. Changed all
1698         references to the _M_start, _M_finish, _M_map, and _M_map_size to
1699         _M_impl.*.
1700         (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
1701         qualification in 2 places where it was missing.
1702         (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
1703         above.
1704         * include/bits/deque.tcc: Same as above (changed all references to
1705         the concerned variables).
1707 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
1709         * include/bits/stl_vector.h: Created a _Vector_impl class and made
1710         it derive from the allocator, instead of the _Vector_base class,
1711         deriving from the allocator which was not conformant. Changed all
1712         references to the _M_start, _M_finish, and _M_end_of_storage to
1713         _M_impl.*.
1714         * include/bits/vector.tcc: Same as above (changed all references
1715         to the concerned variables).
1717 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
1719         * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
1720         * testsuite/23_containers/list/cons/clear_allocator.cc: New.
1721         * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
1723 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
1725         * include/ext/malloc_allocator.h: Fixed the construct function to
1726         call global placement new instead of assignment. Added a check
1727         after the return from malloc to check whether returned pointer is
1728         NULL, and if so, throw std::bad_alloc().
1729         * include/ext/debug_allocator.h: Added a check in the deallocate
1730         function to check whether the user has passed a NULL pointer or
1731         not.
1733 2004-03-24  Benjamin Kosnik  <bkoz@redhat.com>
1735         * docs/html/20_util/allocator.html: Add bitmap_allocator links.
1737 2004-03-24  Andreas Schwab  <schwab@suse.de>
1739         * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
1740         warning from IA64 assembler.
1742 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
1744         * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
1745         function call __builtin_ctz instead of the while loop.
1746         (allocate) -> If condition has __builtin_expect.
1747         (deallocate) -> Ditto.
1748         Renamed a few left-over variables and typedefs according to the
1749         C++STYLE mentioned in the documentation.
1750         Protected calls to __gthread* by __gthread_active_p(), whose value
1751         is cached in the local variable __threads_active.
1753 2004-03-24  Felix Yen  <fwy@alumni.brown.edu>
1755         * testsuite/performance/20_util/allocator/producer_consumer.cc:
1756         Use linear algorithm for producer.
1758 2004-03-24  Paolo Carlini  <pcarlini@suse.de>
1760         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1761         __mt_alloc<>::deallocate): Avoid redundant conditionals.
1763 2004-03-23  Benjamin Kosnik  <bkoz@redhat.com>
1765         * include/bits/locale_facets.h: Tweaks for 80 column.
1766         (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
1767         (__moneypunct_cache::_M_cache): Same.
1768         (num_get): Don't inherit from __num_base.
1769         (num_put): Same.
1770         (money_get): Don't inherit from money_base.
1771         (money_put): Same.
1772         (__timepunct::_M_am_pm_format): New.
1773         (time_get::_M_extract_num): Return iterator, use ios_base as argument.
1774         (time_get::_M_extract_name): Same.
1775         (time_get::_M_extract_via_format): Same.
1776         * include/bits/locale_facets.tcc: Tweaks for 80 column.
1777         Use _M_getloc instead of getloc.
1778         * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
1779         * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
1780         * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
1782 2004-03-22  Paolo Carlini  <pcarlini@suse.de>
1784         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
1785         * configure: Regenerate.
1786         * config/allocator/pool_allocator_base.h: New.
1787         * include/ext/pool_allocator.h: Convert to a standard-conforming
1788         allocator.
1789         * src/allocator.cc: Tweak instantiations.
1790         * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
1791         * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
1792         * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
1793         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1794         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1795         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1797 2004-03-22  Hans-Peter Nilsson  <hp@axis.com>
1799         * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
1800         inline" and attribute-unused.  Qualify parameter __mem with
1801         "volatile".
1802         (__exchange_and_add): Ditto.  Add back memory clobber to asm.
1804 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
1806         * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
1807         Remove junk.
1808         * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
1809         Likewise.
1810         * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
1811         Likewise.
1812         * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
1813         Likewise.
1814         * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
1815         Likewise.
1816         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
1817         Likewise.
1818         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
1819         Likewise.
1820         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
1821         Likewise.
1822         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
1823         Likewise.
1824         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
1825         Likewise.
1827 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
1829         * include/std/std_valarray.h: Document DR389 [Ready].
1830         * docs/html/ext/howto.html: Add an entry for DR389.
1832 2004-03-19  Michael Eager  <eager@mvista.com>
1834         * config/cpu/mips/atomicity.h:  Prevent reg loads between LL and
1835         SC instructions.
1837 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
1839         * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
1840         static_cast-s.
1841         * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
1842         * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
1843         * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
1844         * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
1845         * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
1846         * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
1847         * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
1848         * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
1849         * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
1851 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
1852             Petur Runolfsson  <peturr02@ru.is>
1854         PR libstdc++/12077
1855         * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
1856         no way to find out the conversion used by the underlying FILE*.
1857         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
1858         * testsuite/27_io/objects/char/9.cc: Tweak.
1860 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
1862         PR libstdc++/14648
1863         * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
1864         memory allocation/deallocation calls.
1865         * testsuite/ext/14648.cc: New.
1867 2004-03-19  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
1869         PR libstdc++/14647
1870         * include/backward/bvector.h (bit_vector): Allocator is in std
1871         namespace.
1873 2004-03-19  Phil Edwards  <phil@codesourcery.com>
1875         * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT):  Set LIBICONV,
1876         not libiconv.  SUBST this variable as well.
1877         * testsuite/Makefile.am (site.exp):  New target, based on that
1878         created by automake.  Also set libiconv.
1880         * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
1881         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1882         testsuite/Makefile.in:  Regenerate.
1884 2004-03-16  Benjamin Kosnik  <bkoz@redhat.com>
1886         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
1887         new_allocator for all hosts.
1888         * configure: Regenerate.
1890 2004-03-16  Paolo Carlini  <pcarlini@suse.de>
1892         * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
1893         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
1895 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
1897         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1898         Adjust the logic underlying the parsing of symbol to deal
1899         correctly with an optional sign component (i.e., when either
1900         negative_sign or positive_sign is empty)
1901         * testsuite/22_locale/money_get/get/char/19.cc: New.
1902         * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
1904 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
1906         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1907         Do not accept an incomplete currency symbol.
1908         * testsuite/22_locale/money_get/get/char/18.cc: New.
1909         * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
1911 2004-03-13  Benjamin Kosnik  <bkoz@redhat.com>
1913         * config/allocator: New.
1914         * config/allocator/bitmap_allocator_base.h: New.
1915         * config/allocator/malloc_allocator_base.h: New.
1916         * config/allocator/mt_allocator_base.h: New.
1917         * config/allocator/new_allocator_base.h: New.
1918         * include/bits/allocator.h: Include c++allocator.h.
1919         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
1920         * aclocal.m4: Regenerate.
1921         * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
1922         * configure: Regenerate.
1923         * include/Makefile.am (host_headers_extra): Add c++allocator.h.
1924         * include/Makefile.in: Regenerate.
1925         * docs/html/configopts.html: Add enable-libstdcxx-allocator.
1927 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
1929         * include/bits/allocator.h: Revert.
1931 2004-03-12  Paolo Carlini  <pcarlini@suse.de>
1933         * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
1934         * include/bits/gslice_array.h: Add comment about DR 253.
1935         * include/bits/indirect_array.h: Likewise.
1936         * include/bits/mask_array.h: Likewise.
1937         * include/bits/slice_array.h: Likewise.
1939 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
1941         * testsuite/20_util/allocator/14176.cc: New.
1942         * include/ext/mt_allocator.h: Formatting fixes.
1944 2004-03-11  Dhruv Matani  <dhruvbird@HotPOP.com>
1946         * include/Makefile.am (ext_headers): Add
1947         ${ext_srcdir}/bitmap_allocator.h .
1948         * include/Makefile.in: Regenerate.
1949         * docs/html/ext/ballocator_doc.txt: New file.
1950         * include/ext/bitmap_allocator.h: New file.
1951         * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
1952         test.
1953         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1954         * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
1955         test for the bitmap_allocator<>.
1956         * testsuite/performance/20_util/allocator/insert.cc: Likewise.
1957         * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1958         * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1960 2004-03-11  Paolo Carlini  <pcarlini@suse.de>
1962         * include/std/std_complex.h (pow(const complex&, const _Tp&),
1963         pow(const _Tp&, const complex&), pow(const complex&,
1964         const complex&)): Fully qualify with std:: a few calls.
1965         * testsuite/26_numerics/complex/13450.cc: Minor tweak.
1967 2004-03-11  Steven Bosscher  <stevenb@suse.de>
1969         PR libstdc++/11706
1970         * include/c_std/cmath.tcc (__cmath_power): Define inline.
1972 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
1974         * configure.ac: Bump AC_PREREQ to 2.59.
1976 2004-03-10  Paolo Carlini  <pcarlini@suse.de>
1978         * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
1980 2004-03-10  Paul Kienzle  <pkienzle@nist.gov>
1981             Paolo Carlini  <pcarlini@suse.de>
1983         PR libstdc++/13450
1984         * include/std/std_complex.h (pow(const complex&, const _Tp&),
1985         pow(const _Tp&, const complex&)): Use cmath pow only when safe.
1986         * testsuite/26_numerics/complex/13450.cc: New.
1988         * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
1989         * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
1991 2004-03-10  Jerry Quinn  <jlquinn@optonline.net>
1993         PR libstdc++/3247
1994         * include/bits/gslice_array.h (gslice_array()): Make public.
1995         (operator=(gslice_array)): Make public.  Implement.
1996         * include/bits/indirect_array.h (indirect_array()): Make public.
1997         * include/bits/mask_array.h (mask_array()): Make public.
1998         (operator=(mask_array)): Make public.  Implement.
1999         * include/bits/valarray_array.tcc (__valarray_copy):
2000         Comment.  Add versions for gslice_array and mask_array.
2001         * testsuite/26_numerics/valarray_subset_assignment.cc:  New test.
2003 2004-03-09  Benjamin Kosnik  <bkoz@redhat.com>
2005         * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
2006         non-weak systems.
2007         * testsuite/23_containers/vector/modifiers/swap.cc: Same.
2008         * testsuite/23_containers/set/modifiers/swap.cc: Same.
2009         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2010         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2011         * testsuite/23_containers/map/modifiers/swap.cc: Same.
2012         * testsuite/23_containers/list/modifiers/swap.cc: Same.
2014         * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
2016 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
2018         PR c++/13658
2019         * testsuite/23_containers/deque/modifiers/swap.cc: New.
2020         * testsuite/23_containers/list/modifiers/swap.cc: New.
2021         * testsuite/23_containers/map/modifiers/swap.cc: New.
2022         * testsuite/23_containers/multimap/modifiers/swap.cc: New.
2023         * testsuite/23_containers/multiset/modifiers/swap.cc: New.
2024         * testsuite/23_containers/set/modifiers/swap.cc: New.
2025         * testsuite/23_containers/vector/modifiers/swap.cc: New.
2027 2004-03-08  Petur Runolfsson  <peturr02@ru.is>
2029         PR libstdc++/12658
2030         * testsuite/22_locale/locale/cons/12658_thread.cc: New.
2032 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
2034         * docs/html/ext/howto.html: Add entry for DR 103 [WP].
2035         * include/bits/stl_multiset.h: Add comment about DR 103.
2036         * include/bits/stl_set.h: Likewise.
2038 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
2040         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2041         The value _space_ indicates that at least one space is required
2042         at that position.
2043         * testsuite/22_locale/money_get/get/char/17.cc: New.
2044         * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
2046         * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
2047         * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
2049         * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
2050         Remove redundant conditional on __str.size().
2052 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
2054         * include/bits/allocator.h: Switch defaults to mt_alloc.
2056 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
2058         * include/ext/mt_allocator.h (_S_initialize): If
2059         !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
2061 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
2063         PR libstdc++/12658
2064         * src/locale_init.cc (locale::locale): Lock critical regions with
2065         external mutexes.
2066         (locale::global): Same.
2067         * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
2068         Add in once bits for cases without __GTHREAD_MUTEX_INIT.
2069         (__glibcxx_mutex_lock): Same.
2071         * config/cpu/generic/atomicity.h: Remove
2072         _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
2073         * src/misc-inst.cc: Move all locking bits out of this file.
2075         * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
2076         * src/misc-inst.cc: Same.
2077         * config/cpu/hppa/atomicity.h: Same.
2079         * config/linker-map.gnu: Remove types in the signature of atomic
2080         exports, as they may vary.
2082 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
2084         * include/bits/locale_facets.tcc: Tweak the comment preceding
2085         has_facet: doesn't throw.
2087 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
2089         * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
2090         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2091         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2092         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2093         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2094         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2095         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2096         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2098 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
2100         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2101         num_get<>::_M_extract_int, num_get<>::do_get(bool&),
2102         __pad<>::_S_pad): Prefer plain operator== to traits::eq().
2103         * testsuite/testsuite_character.h (struct __gnu_test::character):
2104         Provide operator==.
2105         * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
2106         Likewise.
2108 2004-03-05  Paolo Carlini  <pcarlini@suse.de>
2110         * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
2112 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
2114         * testsuite/23_containers/multiset/insert/1.cc: Test result string.
2116         * testsuite/23_containers/bitset/invalidation/1.cc: Main always
2117         returns 0.
2118         * testsuite/23_containers/deque/invalidation/4.cc: Same.
2119         * testsuite/23_containers/list/invalidation/1.cc: Same.
2120         * testsuite/23_containers/list/invalidation/2.cc: Same.
2121         * testsuite/23_containers/list/invalidation/3.cc: Same.
2122         * testsuite/23_containers/list/invalidation/4.cc: Same.
2123         * testsuite/23_containers/map/invalidation/2.cc: Same.
2124         * testsuite/23_containers/multimap/invalidation/1.cc: Same.
2125         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2126         * testsuite/23_containers/multiset/invalidation/1.cc: Same.
2127         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2128         * testsuite/23_containers/set/invalidation/1.cc: Same.
2129         * testsuite/23_containers/set/invalidation/2.cc: Same.
2130         * testsuite/23_containers/vector/invalidation/1.cc: Same.
2131         * testsuite/23_containers/vector/invalidation/2.cc: Same.
2132         * testsuite/23_containers/vector/invalidation/3.cc: Same.
2133         * testsuite/23_containers/vector/invalidation/4.cc: Same.
2135 2004-03-04  Paolo Carlini  <pcarlini@suse.de>
2137         * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
2138         CXXFLAGS_save.
2139         * testsuite/lib/libstdc++.exp: Don't add it conditionally to
2140         DEFAULT_CXXFLAGS.
2141         * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
2142         from the dg-options.
2143         * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
2144         * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
2145         * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
2146         * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
2147         * testsuite/23_containers/vector/resize/1.cc: Likewise.
2148         * testsuite/26_numerics/complex_value.cc: Likewise.
2149         * testsuite/27_io/ios_base/storage/1.cc: Likewise.
2150         * testsuite/27_io/ios_base/storage/2.cc: Likewise.
2151         * testsuite/27_io/ios_base/storage/3.cc: Likewise.
2152         * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
2153         * testsuite/27_io/objects/char/5.cc: Likewise.
2154         * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
2155         * testsuite/backward/11460.cc: Likewise.
2156         * testsuite/thread/pthread7-rope.cc: Likewise.
2158         * testsuite/21_strings/basic_string/compare/char/1.cc: Add
2159         missing test variable.
2160         * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
2161         missing test variable.
2163 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
2165         * testsuite/20_util/allocator/1.cc: Provide explicit
2166         instantiations for non-weak systems.
2167         * testsuite/20_util/binders.cc: Same.
2168         * testsuite/20_util/allocator/8230.cc: Same.
2169         * testsuite/20_util/allocator/10378.cc: Same.
2170         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
2171         * testsuite/22_locale/ctype/is/char/2.cc: Same.
2172         * testsuite/thread/pthread7-rope.cc: Same.
2173         * testsuite/thread/pthread6.cc: Same.
2174         * testsuite/thread/pthread5.cc: Same.
2175         * testsuite/thread/pthread4.cc: Same.
2176         * testsuite/thread/pthread1.cc: Same.
2177         * testsuite/ext/rope.cc: Same.
2178         * testsuite/ext/hash_set.cc: Same.
2179         * testsuite/ext/hash_map.cc: Same.
2180         * testsuite/ext/concept_checks.cc: Same.
2181         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
2182         * testsuite/25_algorithms/unique/2.cc: Same.
2183         * testsuite/25_algorithms/unique/1.cc: Same.
2184         * testsuite/25_algorithms/rotate.cc: Same.
2185         * testsuite/25_algorithms/min_max.cc: Same.
2186         * testsuite/25_algorithms/equal.cc: Same.
2187         * testsuite/24_iterators/rel_ops.cc: Same.
2188         * testsuite/24_iterators/iterator.cc: Same.
2189         * testsuite/24_iterators/insert_iterator.cc: Same.
2190         * testsuite/24_iterators/front_insert_iterator.cc: Same.
2191         * testsuite/24_iterators/back_insert_iterator.cc: Same.
2192         * testsuite/23_containers/vector/resize/1.cc: Same.
2193         * testsuite/23_containers/vector/modifiers/2.cc: Same.
2194         * testsuite/23_containers/vector/modifiers/1.cc: Same.
2195         * testsuite/23_containers/vector/invalidation/4.cc: Same.
2196         * testsuite/23_containers/vector/invalidation/3.cc: Same.
2197         * testsuite/23_containers/vector/invalidation/2.cc: Same.
2198         * testsuite/23_containers/vector/invalidation/1.cc: Same.
2199         * testsuite/23_containers/vector/element_access/1.cc: Same.
2200         * testsuite/23_containers/vector/cons/6513.cc: Same.
2201         * testsuite/23_containers/vector/cons/3.cc: Same.
2202         * testsuite/23_containers/vector/cons/2.cc: Same.
2203         * testsuite/23_containers/vector/cons/1.cc: Same.
2204         * testsuite/23_containers/vector/capacity/8230.cc: Same.
2205         * testsuite/23_containers/vector/capacity/1.cc: Same.
2206         * testsuite/23_containers/vector/bool/6886.cc: Same.
2207         * testsuite/23_containers/stack/members/7158.cc: Same.
2208         * testsuite/23_containers/set/invalidation/2.cc: Same.
2209         * testsuite/23_containers/set/invalidation/1.cc: Same.
2210         * testsuite/23_containers/queue/members/7157.cc: Same.
2211         * testsuite/23_containers/priority_queue/members/7161.cc: Same.
2212         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2213         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2214         * testsuite/23_containers/multiset/insert/1.cc: Same.
2215         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2216         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2217         * testsuite/23_containers/map/operators/1.cc: Same.
2218         * testsuite/23_containers/map/invalidation/2.cc: Same.
2219         * testsuite/23_containers/map/invalidation/1.cc: Same.
2220         * testsuite/23_containers/map/insert/1.cc: Same.
2221         * testsuite/23_containers/list/operators/4.cc: Same.
2222         * testsuite/23_containers/list/operators/3.cc: Same.
2223         * testsuite/23_containers/list/operators/2.cc: Same.
2224         * testsuite/23_containers/list/operators/1.cc: Same.
2225         * testsuite/23_containers/list/modifiers/3.cc: Same.
2226         * testsuite/23_containers/list/modifiers/2.cc: Same.
2227         * testsuite/23_containers/list/modifiers/1.cc: Same.
2228         * testsuite/23_containers/list/invalidation/4.cc: Same.
2229         * testsuite/23_containers/list/invalidation/3.cc: Same.
2230         * testsuite/23_containers/list/invalidation/2.cc: Same.
2231         * testsuite/23_containers/list/invalidation/1.cc: Same.
2232         * testsuite/23_containers/list/cons/9.cc: Same.
2233         * testsuite/23_containers/list/cons/8.cc: Same.
2234         * testsuite/23_containers/list/cons/7.cc: Same.
2235         * testsuite/23_containers/list/cons/6.cc: Same.
2236         * testsuite/23_containers/list/cons/5.cc: Same.
2237         * testsuite/23_containers/list/cons/4.cc: Same.
2238         * testsuite/23_containers/list/cons/3.cc: Same.
2239         * testsuite/23_containers/list/cons/2.cc: Same.
2240         * testsuite/23_containers/list/cons/1.cc: Same.
2241         * testsuite/23_containers/list/capacity/1.cc: Same.
2242         * testsuite/23_containers/deque/operators/1.cc: Same.
2243         * testsuite/23_containers/deque/invalidation/4.cc: Same.
2244         * testsuite/23_containers/deque/invalidation/3.cc: Same.
2245         * testsuite/23_containers/deque/invalidation/2.cc: Same.
2246         * testsuite/23_containers/deque/invalidation/1.cc: Same.
2247         * testsuite/23_containers/deque/cons/2.cc: Same.
2248         * testsuite/23_containers/deque/cons/1.cc: Same.
2250         * src/allocator.cc: Add char, wchar_t instantiations
2251         to match extern template declarations in memory.h.
2253 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
2255         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2256         Fix warning regression.
2258 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
2260         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2261         Deal properly with empty __digits and negative frac_digits,
2262         clean-up a bit.
2264 2004-03-03  Jonathan Wakely  <redi@gcc.gnu.org>
2266         * docs/html/documentation.html: Regenerate.
2268 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
2270         PR libstdc++/14320
2271         * include/bits/postypes.h (class streamoff): Remove, now
2272         streamoff is just typedef a 64 bit signed integer type.
2273         (class fpos): Tweak consistently.
2274         * testsuite/27_io/fpos/14320-1.cc: New.
2275         * testsuite/27_io/fpos/14320-2.cc: New.
2276         * testsuite/27_io/fpos/14320-3.cc: New.
2277         * testsuite/27_io/fpos/14320-4.cc: New.
2278         * testsuite/27_io/fpos/14320-5.cc: New.
2279         * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
2281 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
2283         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2284         Reorganize a bit the main parsing loop, thus early detecting
2285         an empty value component.
2286         * testsuite/22_locale/money_get/get/char/16.cc: New.
2287         * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
2289 2004-03-02  Benjamin Kosnik  <bkoz@redhat.com>
2291         Support automake 1.8.2
2292         * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
2293         * po/Makefile.am (EXTRA_DIST): New.
2294         * po/Makefile.in: Regenerate.
2295         * Makefile.in: Same.
2296         * include/Makefile.in: Same.
2297         * libmath/Makefile.in: Same.
2298         * libsupc++/Makefile.in: Same.
2299         * src/Makefile.in: Same.
2300         * testsuite/Makefile.in: Same.
2302         * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
2303         __GXX_WEAK__ instead of SUPPORTS_WEAK.
2304         (${host_builddir}/gthr-default.h): Same.
2305         (${host_builddir}/gthr.h): Same.
2306         * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
2307         _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
2308         -fno-weak.
2309         * aclocal.m4: Regenerate.
2310         * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
2311         * config.h.in: Regenerate.
2312         * configure: Same.
2314 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
2316         Support autoconf 2.59
2317         * acinclude.m4: Quote correctly.
2318         * aclocal.m4: Regenerate.
2319         * linkage.m4: Same.
2321 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
2323         * docs/html/test.html: Add multilib RUNTESTFLAGS example.
2325         * docs/html/18_support/howto.html: Add bit about writing to
2326         stderr, mostly by Zack.
2328 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
2330         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2331         money_get<>::do_get(string_type&)): ... and two more.
2333 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
2335         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2336         Fix thinkos in the switch from string_type& to string& as last
2337         argument.
2339 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
2341         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2342         Also when parsing exponent sign, first look for thousands_sep
2343         and decimal_point; tweak a bit.
2344         * testsuite/22_locale/num_get/get/char/15.cc: New.
2345         * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
2347         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2348         num_get<>::_M_extract_int): Reorder some conditionals.
2350 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
2352         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2353         Consistently with numpunct, enforce the requirements in
2354         22.2.6.3, p3 for the thousands separators; tweak a bit.
2355         * testsuite/22_locale/money_get/get/char/15.cc: New.
2356         * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
2358 2004-03-01  David Billinghurst <David.Billinghurst@riotinto.com>
2360         * testsuite/lib/libstdc++.exp (v3-list-tests): Use
2361         testsuite_files from correct multilib blddir when running
2362         testsuite.
2364 2004-02-29  Phil Edwards  <phil@codesourcery.com>
2366         * testsuite/Makefile.am (check-abi, check-abi-verbose):  Copy
2367         the summary file to the logfile.
2368         * testsuite/Makefile.in:  Regenerate.
2370 2004-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2372         * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
2373         volatile.
2374         * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
2375         __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
2377 2004-02-28  Paolo Carlini  <pcarlini@suse.de>
2379         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2380         According to 22.2.3.1, p2, 'units' may be followed by 'e' with
2381         no 'decimal-point' in the middle: in this case too we must fix
2382         up __found_grouping; slightly tweak.
2383         * testsuite/22_locale/num_get/get/char/14.cc: New.
2384         * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
2386 2004-02-27  Eric Christopher  <echristo@redhat.com>
2387             Phil Edwards  <phil@codesourcery.com>
2389         * testsuite/22_locale/collate/compare/wchar_t/2.cc,
2390         testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
2391         testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
2392         testsuite/22_locale/collate/hash/wchar_t/2.cc,
2393         testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
2394         testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
2395         testsuite/22_locale/collate/transform/wchar_t/2.cc,
2396         testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
2397         testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2398         Use dg-require-iconv.
2399         * testsuite/lib/libstdc++.exp:  Load target-supports.exp.
2401 2004-02-27  Phil Edwards  <phil@codesourcery.com>
2402             Eric Christopher  <echristo@redhat.com>
2404         * testsuite/config/default.exp:  Update with comments.
2405         (${tool}_target_compile):  New wrapper routine.
2406         * testsuite/lib/dg-options.exp:  New file, with dg-require-iconv.
2407         * testsuite/lib/libstdc++.exp:  Update with comments and cosmetic
2408         fixes.
2409         (load_gcc_lib, v3track):  New routines.
2410         (v3-init):  Rename to libstdc++_init.
2411         * testsuite/libstdc++-dg/normal.exp:  No longer call v3-init.
2412         Move DEFAULT_CXXFLAGS handling into libstdc++_init.
2414 2004-02-27  Benjamin Kosnik  <bkoz@redhat.com>
2416         * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
2418         * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
2420         * config/os/irix/irix5.2/atomicity.h: Merge..
2421         * config/os/irix/irix6.5/atomicity.h: Merge..
2422         * config/os/irix/atomicity.h: ...into this.
2423         * config/os/irix/atomic_word.h: New.
2424         * configure.host: Set atomic_word_dir for irix.
2426         * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
2427         * i386/atomicity.h: Same.
2428         * m68k/atomicity.h: Same.
2429         * sparc/atomicity.h: Same.
2431 2004-02-27  David Edelsohn  <edelsohn@gnu.org>
2433         * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
2434         static, and inline keywords.
2436 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
2438         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2439         num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
2440         call reserve on the __tmp_gruping string.
2441         (num_get<>::_M_extract_float): Don't append unnecessarily a
2442         char() to the returned string.
2443         * include/bits/locale_facets.tcc: Trivial reformattings.
2445 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
2447         * include/bits/locale_facets.h (money_get<>::_M_extract):
2448         Change signature: now takes a plain string&.
2449         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2450         Update consistently the definition; use the moneypunct cache
2451         to parse the value; use swap to change __units.
2452         (money_get<>::do_get(long double&)): Update call of _M_extract,
2453         avoid ctype::narrow, not correct wrt the standard.
2454         (money_get<>::do_get(string_type&)): Likewise, update call
2455         of _M_extract, use ctype::widen.
2456         * src/locale-inst.cc: Tweak instantiations of _M_extract.
2458 2004-02-26  Ian Lance Taylor  <ian@wasabisystems.com>
2460         * testsuite/demangle/abi_examples/01.cc: Expect error -2.
2461         * testsuite/demangle/abi_examples/02.cc: Likewise.
2462         * testsuite/demangle/regression/cw-11.cc: Likewise.
2463         * testsuite/demangle/regression/cw-16.cc: Change two expected
2464         results to match libiberty demangler output.
2466 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
2468         PR libstdc++/10246
2469         * libsupc++/Makefile.am: Use libiberty demangler.
2470         (c_sources): Add cp-demangle.c.
2471         * libsupc++/Makefile.in: Regenerate.
2472         * src/Makefile.am (sources): Remove demangle.cc.
2473         * src/Makefile.in: Regenerate.
2474         * include/Makefile.am (bits_headers): Move demangle.h.
2475         (ext_headers): ...here.
2476         * include/Makefile.in: Regenerate.
2477         * include/bits/demangle.h: Move...
2478         * include/ext/demangle.h: ...here.
2479         * src/demangle.cc: Remove.
2481 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
2483         * include/bits/demangle.h: Add type template parameter to all
2484         templates with just an Allocator template parameter.
2486 2004-02-25  Benjamin Kosnik  <bkoz@redhat.com>
2488         * include/bits/atomicity.h: New, forward declarations for __atomic_add
2489         and __exchange_and_add.
2490         * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
2491         * config/cpu/cris/atomic_word.h: Same.
2492         * config/cpu/sparc/atomic_word.h: Same.
2493         * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
2494         Qualifiy with __gnu_cxx.
2495         (_Callback_list::_M_add_reference): Same.
2496         * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
2497         (locale::facet::_M_remove_reference): Same.
2498         (locale::_Impl::_M_add_reference): Add.
2499         (locale::_Impl::_M_remove_reference): Same.
2500         * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
2501         (basic_string::_Rep::_M_dispose): Same.
2502         * src/ios.cc (ios_base::xalloc): Same.
2503         * src/ios_init.cc (ios_base::Init::Init): Same.
2504         (ios_base::Init::~Init): Same.
2505         * src/locale.cc (locale::id::_M_id): Same.
2506         * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
2507         static, and inline keywords.
2508         * config/cpu/alpha/atomicity.h: Same.
2509         * config/cpu/cris/atomicity.h: Same.
2510         * config/cpu/generic/atomicity.h: Same.
2511         * config/cpu/hppa/atomicity.h: Same.
2512         * config/cpu/i386/atomicity.h: Same.
2513         * config/cpu/ia64/atomicity.h: Same.
2514         * config/cpu/m68k/atomicity.h: Same.
2515         * config/cpu/mips/atomicity.h: Same.
2516         * config/cpu/powerpc/atomicity.h: Same.
2517         * config/cpu/s390/atomicity.h: Same.
2518         * config/cpu/sparc/atomicity.h: Same.
2520         * src/Makefile.am (host_sources): Add atomicity.cc.
2521         (atomicity.cc): New rule.
2522         * src/Makefile.in: Regenerate.
2523         * include/Makefile.am (host_headers): Remove host atomicity.h.
2524         (host_headers): Add atomic_word.h.
2525         (bits_headers): Add bits atomicity.h.
2526         Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2527         * include/Makefile.in: Regenerate.
2528         * configure.host (atomic_word_dir): Add.
2529         * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
2530         ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2531         * configure: Regenerate.
2532         * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
2534         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
2535         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2537 2004-02-25  Jonathan Wakely  <redi@gcc.gnu.org>
2539         * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
2540         docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
2541         Fix markup, more <link> tags.
2543 2004-02-25  Carlo Wood  <carlo@alinoe.com>
2545         * bits/demangle.h
2546         namespace __gnu_cxx::demangler
2547         (session<Allocator>::qualifier_list_Allocator): Add
2548         (session<Allocator>::M_qualifier_list_alloc): Add
2549         (session<Allocator>::decode_type_with_postfix):
2550         Use M_qualifier_list_alloc instead of calling operator new/delete.
2552 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
2554         PR libstdc++/14252
2555         * include/bits/postypes.h (class streamoff): Add operator++(),
2556         operator++(int), operator--() and operator--(int).
2557         * testsuite/27_io/fpos/14252.cc: New.
2559 2004-02-24  Richard Sandiford  <rsandifo@redhat.com>
2561         * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
2562         error in handling of hex constants.
2564 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
2566         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2567         Prefer basic_string::append to operator+= and a temporary.
2569 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
2571         * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
2572         Only use fputs, not write.
2574 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
2576         * include/ext/malloc_allocator.h: Add operators ==, !=.
2577         * include/ext/new_allocator.h: Add operators ==, !=.
2578         * include/ext/mt_allocator.h (__mt_alloc::tune): New.
2579         (__mt_alloc::_S_get_options): New.
2580         (__mt_alloc::_S_set_options): New.
2581         (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
2582         (__mt_alloc::_S_no_of_bins): To _S_bin_size.
2583         Move functions out of line, simplify, format.
2584         * src/allocator.cc: Simplify explicit instantiations.
2585         * include/bits/allocator.h: Tweak.
2587 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
2589         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2590         Restructure formatting of value component, first dealing with
2591         the non-decimal digits; use reserve.
2593 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
2595         * include/bits/locale_facets.h (class money_get): Inherit
2596         from money_base too; tweak declaration of _M_extract, now
2597         parameterized on _Intl too.
2598         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2599         Update definition to use the cache; call reserve on __res to
2600         avoid multiple reallocations; fix parsing of sign component
2601         according to 22.2.6.1.2, p3.
2602         (money_get<>::do_get(long double&),
2603         money_get<>::do_get(string_type&)): Update calls of _M_extract.
2604         * src/locale-inst.cc:  Add instantiations of
2605         money_get::_M_extract<false> and money_get::_M_extract<true>.
2606         * testsuite/22_locale/money_get/get/char/14.cc: New.
2607         * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
2609 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
2611         * libsupc++/vterminate.cc
2612         (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
2613         calls to terminate.
2614         * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
2616         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2617         not set RLIMIT_AS on HP-UX.
2619 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
2621         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2622         not set RLIMIT_AS on HP-UX.
2624 2004-02-21  Paolo Carlini  <pcarlini@suse.de>
2626         * include/bits/locale_facets.h (class money_base): Add { _S_minus,
2627         _S_zero, _S_end } enum, _S_atoms.
2628         (struct __moneypunct_cache<>): Parameterize on _Intl too; add
2629         _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
2630         _M_negative_sign_size, _M_atoms; tweak constructor consistently.
2631         (__moneypunct_cache<>::~__moneypunct_cache): Update.
2632         (__moneypunct_cache<>::_M_cache): Fill the cache.
2633         (class moneypunct): Tweak __cache_type typedef.
2634         (class money_put): Inherit from money_base too; tweak declaration
2635         of _M_insert, now parameterized on _Intl.
2636         * include/bits/locale_facets.tcc
2637         (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
2638         (money_put<>::_M_insert): Update definition to use the cache;
2639         call reserve on __res to avoid multiple reallocations.
2640         (money_put<>::do_put(long double),
2641         money_put<>::do_put(const string_type&): Update calls of _M_insert.
2642         * config/locale/generic/monetary_members.cc
2643         (moneypunct<char, true>::_M_initialize_moneypunct,
2644         moneypunct<char, false>::_M_initialize_moneypunct,
2645         moneypunct<wchar_t, true>::_M_initialize_moneypunct,
2646         moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
2647         * config/locale/gnu/monetary_members.cc: Likewise.
2648         * config/locale/gnu/monetary_members.cc
2649         (moneypunct<wchar_t, true>::~moneypunct(),
2650         moneypunct<wchar_t, false>::~moneypunct()): Likewise.
2651         * src/globals_locale.cc: Tweak fake_money_cache_c.
2652         * src/locale-inst.cc: Add instantiations for
2653         money_put::_M_insert<false> and money_put::_M_insert<true> and
2654         __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
2655         * src/locale_facets.cc: Define money_base::_S_atoms.
2656         * src/locale_init.cc: Update placement new of
2657         __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
2658         __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
2660         * config/locale/generic/numeric_members.cc: Clean up.
2661         * config/locale/gnu/numeric_members.cc: Likewise.
2662         * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
2663         * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
2664         * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
2665         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
2666         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
2667         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
2669 2004-02-20  Mark Mitchell  <mark@codesourcery.com>
2671         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
2672         FIFO for writing with ios_base::in|ios_base::out.
2673         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
2674         * testsuite/27_io/objects/char/7.cc: Likewise.
2675         * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
2676         with "r+".
2678 2004-02-19  David Edelsohn  <edelsohn@gnu.org>
2680         * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
2681         from iso-8859-1 to ISO8859-1.
2682         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
2683         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
2684         * 22_locale/collate/hash/wchar_t/2.cc: Same.
2685         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
2686         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
2687         * 22_locale/collate/transform/wchar_t/2.cc: Same.
2688         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
2689         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
2691 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
2693         * include/bits/locale_facets.h (money_get<>::_M_extract):
2694         New, helper for do_get.
2695         (money_put<>::_M_insert): Likewise, for do_put.
2696         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2697         money_put<>::_M_insert): Define.
2698         (money_get<>::do_get(long double&), money_get<>::do_get(
2699         string_type&), money_put::do_put(long double),
2700         money_put::do_put(const string_type&)): Use the helpers.
2702 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
2704         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2705         Rewrite, avoiding recursion.
2706         (__gnu_internal::xwrite): Minor tweaks.
2708 2004-02-17  Stefan Olsson  <stefan@xapa.se>
2710         * include/ext/mt_allocator.h: Removed the last
2711         pointer. Deallocated blocks are now added to the front of
2712         freelists as proposed by Felix Yen.  This gives roughly 10%
2713         performance boost and saves some memory.
2714         * docs/html/ext/mt_allocator.html: Change due to that deallocated
2715         blocks now are added to the front of freelists. The reason to this
2716         approach is also explained.
2718 2004-02-17  Paolo Carlini  <pcarlini@suse.de>
2720         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2721         num_get<>::_M_extract_int, money_get<>::do_get): Simplify
2722         grouping fidelity conditional.
2724 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
2726         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
2727         Qualify exception with std::.
2728         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
2729         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2730         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2731         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2732         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2734 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
2736         * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
2737         for now that the catch block is not reached.
2738         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
2740 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
2742         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2743         Fix parsing of the remaining sign characters.
2744         * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
2745         the input is scanned 'til eof.
2746         * 22_locale/money_get/get/char/4.cc: Likewise.
2747         * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
2748         * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
2749         * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
2750         not do_pos_format: the former is the only one that matters during
2751         input.
2752         * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
2754         * 22_locale/money_get/get/char/6.cc: Minor tweak.
2755         * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
2757 2004-02-15  David Asher  <david.asher@cavium.com>
2759         PR libstdc++/11352
2760         * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
2761         access __olds beyond __oldlen.
2763 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
2765         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
2766         sure the exception is actually thrown.
2767         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2768         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2769         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2771 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
2773         PR libstdc++/13858
2774         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
2775         In case of conversion errors, throw ios_failure; simplify.
2776         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
2777         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2778         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
2779         previously we didn't throw in case of conversion errors, instead
2780         just returned eof().
2781         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2782         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2783         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2785         * include/bits/fstream.tcc (basic_filebuf<>::overflow):
2786         Trivial simplification of a conditional.
2788 2004-02-12  Paolo Carlini  <pcarlini@suse.de>
2790         PR libstdc++/13731 (final part: writev)
2791         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2792         New, a wrapper around writev() handling partial writes.
2793         (__basic_file<char>::xwrite): Move to __gnu_internal and make
2794         static.
2795         (__basic_file<char>::xsputn): Update call.
2796         (__basic_file<char>::xsputn_2): Likewise.
2797         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2798         Don't declare, now static.
2800 2004-02-11  Stefan Olsson  <stefan@xapa.se>
2802         * docs/html/ext/mt_allocator.html: New.
2804 2004-02-11  Benjamin Kosnik  <bkoz@redhat.com>
2806         * docs/html/20_util/allocator.html: New file, consolidate
2807         allocator information here. Revamp.
2808         * docs/html/documentation.html: Change links.
2809         * docs/html/20_util/howto.html: Same.
2810         * docs/html/ext/howto.html: Same.
2812 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
2814         PR libstdc++/13731 (first part: write)
2815         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2816         New, declare.
2817         * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
2818         Define it: a wrapper around write() handling partial write.
2819         (__basic_file<char>::xsputn): Use it.
2820         (__basic_file<char>::xsputn_2): Likewise.
2822 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
2823             Petur Runolfsson  <peturr02@ru.is>
2825         PR libstdc++/14078
2826         * include/std/std_istream.h (operator>>(__istream_type& (*)
2827         (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
2828         operator>>(ios_base& (*)(ios_base&))): Declare inline.
2829         * include/std/std_ostream.h (operator<<(__ostream_type& (*)
2830         (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
2831         operator<<(ios_base& (*) (ios_base&))): Likewise.
2832         * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
2834 2004-02-10  Loren J. Rittle  <ljrittle@acm.org>
2836         PR libstdc++/14098
2837         * config/linker-map.gnu: Add typeinfo and typeinfo name for
2838         __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
2840         PR libstdc++/14097
2841         * config/linker-map.gnu: Add typeinfo and typeinfo name for
2842         __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
2844 2004-02-09  Loren J. Rittle  <ljrittle@acm.org>
2846         * include/ext/pool_allocator.h: Include c++config.h.
2848 2004-02-09  Stefan Olsson  <stefan@xapa.se>
2850         * include/ext/mt_allocator.h: thread_id is unused in non threaded
2851         applications and now has a ifdef to remove it completely on
2852         compilers without thread support. Include stdlib.h due to a
2853         compiler warning on getenv().
2855 2004-02-09  Paul Brook  <paul@codesourcery.com>
2857         * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
2859 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
2861         PR libstdc++/14071
2862         * src/locale_init.cc (locale::global(const locale&)): Use
2863         locale::name() in order to decide whether calling setlocale.
2864         * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
2866         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
2867         Avoid computing &= unnecessarily.
2869 2004-02-09  James E Wilson  <wilson@specifixinc.com>
2871         PR libstdc++/5625
2872         * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
2873         __builtin_extend_pointer.
2875 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
2877         PR libstdc++/14072
2878         * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
2879         Don't leave dangling pointers.
2880         * testsuite/27_io/basic_ios/imbue/14072.cc: New.
2881         * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
2882         facet is needed in the final test.
2884 2004-02-09  Bernardo Innocenti  <bernie@develer.com>
2886         * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
2887         * configure: Regenerate.
2889 2004-02-08  Richard Henderson  <rth@redhat.com>
2891         PR libstdc++/14026
2892         * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
2893         uncaughtExceptions during nested catch rethrow.
2894         * testsuite/18_support/14026.cc: New.
2896 2004-02-08  Paolo Carlini  <pcarlini@suse.de>
2898         * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
2899         When working in place remember to set the state to sharable
2900         (otherwise, _M_mutate does it).
2902 2004-02-08  Bernardo Innocenti  <bernie@develer.com>
2904         * include/bits/allocator.h, include/bits/basic_ios.h,
2905         include/bits/basic_ios.tcc, include/bits/basic_string.h,
2906         include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
2907         include/bits/char_traits.h, include/bits/codecvt.h,
2908         include/bits/concurrence.h, include/bits/cpp_type_traits.h,
2909         include/bits/demangle.h, include/bits/deque.tcc,
2910         include/bits/fstream.tcc, include/bits/functexcept.h,
2911         include/bits/gslice.h, include/bits/gslice_array.h,
2912         include/bits/indirect_array.h, include/bits/ios_base.h,
2913         include/bits/istream.tcc, include/bits/list.tcc,
2914         include/bits/locale_classes.h, include/bits/locale_facets.h,
2915         include/bits/locale_facets.tcc, include/bits/localefwd.h,
2916         include/bits/mask_array.h, include/bits/ostream.tcc,
2917         include/bits/postypes.h, include/bits/slice_array.h,
2918         include/bits/sstream.tcc, include/bits/stl_algo.h,
2919         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
2920         include/bits/stl_construct.h, include/bits/stl_deque.h,
2921         include/bits/stl_function.h, include/bits/stl_heap.h,
2922         include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
2923         include/bits/stl_list.h, include/bits/stl_map.h,
2924         include/bits/stl_multimap.h, include/bits/stl_multiset.h,
2925         include/bits/stl_numeric.h, include/bits/stl_pair.h,
2926         include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
2927         include/bits/stl_relops.h, include/bits/stl_set.h,
2928         include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
2929         include/bits/stl_threads.h, include/bits/stl_tree.h,
2930         include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
2931         include/bits/stream_iterator.h, include/bits/streambuf.tcc,
2932         include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
2933         include/bits/type_traits.h, include/bits/valarray_after.h,
2934         include/bits/valarray_array.h, include/bits/valarray_array.tcc,
2935         include/bits/valarray_before.h, include/bits/vector.tcc: Remove
2936         trailing whitespace.
2938 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
2940         * include/bits/basic_string.h: Fix comment.
2942 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
2944         * include/bits/stl_construct.h: Wrap overlong lines, reformat
2945         according to the coding standards.
2946         * include/bits/stl_pair.h: Likewise.
2947         * include/bits/stl_raw_storage_iter.h: Likewise.
2948         * include/bits/stl_stack.h: Likewise.
2949         * include/bits/stl_uninitialized.h: Likewise.
2950         * include/bits/stream_iterator.h: Likewise.
2951         * include/bits/streambuf_iterator.h: Likewise.
2952         * include/bits/type_traits.h: Likewise.
2954 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
2956         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2957         Adjust timings.
2959 2004-02-05  Loren J. Rittle  <ljrittle@acm.org>
2961         * scripts/check_performance: Support PCH.
2963         * scripts/check_performance (CXX): Add -DNOTHREAD.
2964         * testsuite/performance/20_util/allocator/insert.cc: Integrate
2965         threaded tests from insert_insert.cc.  Tweak iterations,
2966         remove special cases.
2967         * testsuite/performance/20_util/allocator/insert_insert.cc:
2968         Make all tests single-threaded. Tweak iterations.
2969         * testsuite/performance/20_util/allocator/map_thread.cc:
2970         Tweak iterations.
2971         * testsuite/performance/20_util/allocator/producer_consumer.cc:
2972         Likewise.
2974 2004-02-05  Geoffrey Keating  <geoffk@apple.com>
2976         PR 12179
2977         * .cvsignore: New.
2978         * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
2979         'gcc-lib'.  Add comment about poorly-named variables.
2980         * aclocal.m4: Regenerate.
2981         * configure: Regenerate.
2983 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
2985         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2986         Thousands-sep are always optional; thousands-sep are not allowed
2987         after the decimal_point.
2988         * testsuite/22_locale/money_get/get/char/12.cc: New.
2989         * testsuite/22_locale/money_get/get/char/13.cc: New.
2990         * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
2991         * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
2993         * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
2994         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2995         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2996         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2997         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2998         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2999         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3000         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3002         * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
3003         the standard.
3004         * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
3006 2004-02-05  Richard Sandiford  <rsandifo@redhat.com>
3008         * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
3009         Define.
3010         * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
3011         it to decide whether FIONREAD should take an off_t or int argument.
3013 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
3015         * include/bits/stl_function.h: Minor formatting changes.
3017 2004-02-04  Zack Weinberg  <zack@codesourcery.com>
3019         Revert previous change to config/abi/*/baseline_symbols.txt.
3021 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
3022             Zack Weinberg  <zack@codesourcery.com>
3024         * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
3025         New function.
3026         (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
3027         (__basic_file<char>::_M_open_mode): Delete.
3028         * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
3030         * testsuite/27_io/basic_filebuf/close/char/9964.cc
3031         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
3032         Correct flags to filebuf::open calls.
3034         * config/abi/alpha-freebsd5/baseline_symbols.txt
3035         * config/abi/alpha-linux-gnu/baseline_symbols.txt
3036         * config/abi/hppa-linux-gnu/baseline_symbols.txt
3037         * config/abi/i386-freebsd4/baseline_symbols.txt
3038         * config/abi/i386-freebsd5/baseline_symbols.txt
3039         * config/abi/i486-linux-gnu/baseline_symbols.txt
3040         * config/abi/ia64-linux-gnu/baseline_symbols.txt
3041         * config/abi/mips-linux-gnu/baseline_symbols.txt
3042         * config/abi/sparc-freebsd5/baseline_symbols.txt
3043         * config/abi/sparc-linux-gnu/baseline_symbols.txt
3044         * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
3045         Remove entry for __basic_file<char>::_M_open_mode.
3047 2004-02-04  Loren J. Rittle  <ljrittle@acm.org>
3049         * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
3051 2004-02-04  Felix Yen  <fwy@alumni.brown.edu>
3053         * testsuite/performance/20_util/producer_consumer.cc: New.
3054         * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
3056 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
3058         * testsuite/performance/20_util/allocator.cc: Move to..
3059         * testsuite/performance/20_util/allocator/insert.cc: ...here.
3060         * testsuite/performance/20_util/allocator_thread.cc: Move to...
3061         * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
3062         * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
3063         * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
3065 2004-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
3067         * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
3068         * docs/html/faq/index.txt: Regenerate.
3070 2004-02-04  Dhruv Matani  <dhruvbird@gmx.net>
3072         * include/ext/debug_allocator.h: _M_extra now stands for the
3073         number of extra objects instead of the number of extra bytes.
3074         (debug_allocator::allocate): Adjust.
3075         (debug_allocator::deallocate): Adjust.
3077         * include/ext/pool_allocator.h: Fix typo.
3079 2004-02-03  Felix Yen  <fwy@alumni.brown.edu>
3080             Benjamin Kosnik  <bkoz@redhat.com>
3082         * testsuite/performance/20_util/allocator.cc: Add map,
3083         deque, set tests.
3084         * testsuite/performance/20_util/allocator_thread.cc: Same.
3086 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
3088         * include/bits/basic_string.h (insert(iterator)): Remove,
3089         non-standard and already scheduled for removal.
3091 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
3093         * include/bits/stl_iterator_base_funcs.h: Minor formatting
3094         and indentation tweaks.
3095         * include/bits/stl_iterator_base_types.h: Likewise.
3096         * include/bits/stl_list.h: Likewise.
3097         * include/bits/stl_map.h: Likewise.
3098         * include/bits/stl_tempbuf.h: Likewise.
3100 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
3102         * include/bits/gslice.h, include/bits/gslice_array.h,
3103         include/bits/indirect_array.h, include/bits/mask_array.h,
3104         include/bits/slice_array.h, include/bits/stl_numeric.h,
3105         include/std/std_valarray.h:  Update copyright years.
3107 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
3109         * include/bits/gslice.h (gslice):  Document.
3110         * include/bits/gslice_array.h (gslice_array):  Document.
3111         * include/bits/indirect_array (indirect_array):  Document.
3112         * include/bits/mask_array (mask_array):  Document.
3113         * include/bits/slice_array.h (slice,slice_array):  Document.
3114         * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
3115         adjacent_difference):  Document
3116         * include/std/std_valarray.h (valarray):  Document.
3118 2004-02-02  Benjamin Kosnik  <bkoz@redhat.com>
3120         * docs/html/19_diagnostics/howto.html: Move verbose terminate
3121         documentation...
3122         * docs/html/18_support/howto.html: Here.
3123         * docs/html/documentation.html: Add reference here.
3125 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
3127         * config/locale/gnu/c++locale_internal.h: Remove prototypes
3128         of no longer used GLIBC thread locale functions.
3130 2004-02-02  Eric Christopher  <echristo@redhat.com>
3131             Zack Weinberg  <zack@codesourcery.com>
3133         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
3134         -finput-charset.
3135         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
3136         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
3137         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
3138         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
3139         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
3140         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
3141         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
3142         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3143         Ditto.
3145 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
3147         * include/bits/stl_function.h: Additional minor tweaks.
3148         * include/bits/stl_multiset.h: Likewise.
3150         * include/bits/stl_queue.h: Minor tweaks.
3152 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
3154         PR libstdc++/13976 (continued)
3155         * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
3156         Make the second parameter unnamed, to void unused parameter
3157         warnings.
3158         * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
3160 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
3162         PR libstdc++/13976
3163         * include/ext/malloc_allocator.h (malloc_allocator::allocate):
3164         Make the second parameter unnamed, to void unused parameter
3165         warnings.
3166         * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
3167         * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
3169 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
3171         * include/bits/stl_algo.h: Additional minor tweaks.
3172         * include/bits/stl_map.h: Likewise.
3173         * include/bits/stl_multimap.h: Likewise.
3174         * include/bits/stl_multiset.h: Likewise.
3175         * include/bits/stl_set.h: Likewise.
3176         * include/bits/stl_tree.h: Likewise.
3178 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
3180         * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
3181         Remove, unused.
3183 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
3185         * include/bits/stl_function.h: Additional minor tweaks.
3187 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
3189         * include/bits/deque.tcc: Wrap overlong lines, constify
3190         a few variables, reformat according to the coding standards.
3191         * include/bits/list.tcc: Likewise.
3192         * include/bits/stl_deque.h: Likewise.
3193         * include/bits/stl_function.h: Likewise.
3194         * include/bits/stl_iterator.h: Likewise.
3195         * include/bits/stl_iterator_base_funcs.h: Likewise.
3196         * include/bits/stl_iterator_base_types.h: Likewise.
3197         * include/bits/stl_list.h: Likewise.
3198         * include/bits/stl_map.h: Likewise.
3199         * include/bits/stl_multimap.h: Likewise.
3200         * include/bits/stl_multiset.h: Likewise.
3201         * include/bits/stl_relops.h: Likewise.
3202         * include/bits/stl_set.h: Likewise.
3204 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
3206         * include/bits/stl_bvector.h: Wrap overlong lines, constify
3207         a few variables, reformat according to the coding standards.
3208         * include/bits/stl_tree.h: Likewise.
3210 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
3212         * include/bits/stl_algo.h: Minor additional reformat, add
3213         copyright year.
3214         * include/bits/stl_algobase.h: Add copyright year.
3216 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
3218         * include/bits/stl_algo.h: Wrap overlong lines, constify
3219         a few variables, reformat according to the coding standards.
3220         * include/bits/stl_algobase.h: Likewise.
3221         * include/bits/stl_heap.h: Likewise.
3223 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
3225         * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
3227         * include/bits/basic_string.h: Fix two comments.
3229 2004-01-31  Per Bothner  <per@bothner.com>
3231         * include/ext/mt_allocator.h
3232         (__mt_alloc::_S_thread_freelist_mutex): Guard with
3233         __GTHREAD_MUTEX_INIT.
3235 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
3237         * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
3239 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
3241         * testsuite/21_strings/basic_string/cons/char/6.cc: New.
3242         * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
3243         * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
3245 2004-01-30  Felix Yen  <fwy@alumni.brown.edu>
3247         * testsuite/performance/20_util/allocator_thread.cc (do_loop):
3248         Don't use clear, but instead assign. Use insert.
3250 2004-01-30  Benjamin Kosnik  <bkoz@redhat.com>
3252         * src/demangle.cc: Add instantiations.
3253         * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
3254         * src/Makefile.in: Regenerate.
3256 2004-01-30  David Edelsohn  <edelsohn@gnu.org>
3258         * src/allocator.cc: Protect _S_get_thread_id() and
3259         _S_thread_key_destr() with #ifdef __GTHREADS.
3261 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
3263         Reshuffle performance testsuite.
3264         * testsuite/performance/allocator.cc, allocator_map_thread.cc,
3265         allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
3266         cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
3267         fstream_seek_write.cc, ifstream_extract_float.cc,
3268         ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
3269         list_create_fill_sort.cc, map_create_fill.cc,
3270         narrow_widen_char.cc, narrow_widen_wchar_t.cc,
3271         ofstream_insert_float.cc, ofstream_insert_int.cc,
3272         string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
3273         wchar_t_out.cc: Split into...
3274         * testsuite/performance/20_util/allocator.cc: New.
3275         * testsuite/performance/20_util/allocator_map_thread.cc: New.
3276         * testsuite/performance/20_util/allocator_thread.cc: New.
3277         * testsuite/performance/21_strings/string_append: New.
3278         * testsuite/performance/22_locale/is_wchar_t.cc: New.
3279         * testsuite/performance/22_locale/narrow_widen_char.cc: New.
3280         * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
3281         * testsuite/performance/22_locale/wchar_t_in.cc: New.
3282         * testsuite/performance/22_locale/wchar_t_length.cc: New.
3283         * testsuite/performance/22_locale/wchar_t_out.cc: New.
3284         * testsuite/performance/23_containers/container_benchmark.cc: New.
3285         * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
3286         * testsuite/performance/23_containers/map_create_fill.cc: New.
3287         * testsuite/performance/26_numerics/complex_norm.cc: New.
3288         * testsuite/performance/27_io/cout_insert_int.cc: New.
3289         * testsuite/performance/27_io/filebuf_copy.cc: New.
3290         * testsuite/performance/27_io/filebuf_sputc.cc: New.
3291         * testsuite/performance/27_io/fstream_seek_write.cc: New.
3292         * testsuite/performance/27_io/ifstream_extract_float.cc: New.
3293         * testsuite/performance/27_io/ifstream_extract_int.cc: New.
3294         * testsuite/performance/27_io/ifstream_getline.cc: New.
3295         * testsuite/performance/27_io/ofstream_insert_float.cc: New.
3296         * testsuite/performance/27_io/ofstream_insert_int.cc: New.
3298 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
3300         * include/bits/basic_string.tcc (_Rep::_S_create):
3301         Never allocate a string bigger than max_size(); always keep
3302         __capacity and __size in sync to avoid memory leaks at
3303         deallocation time.
3305 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
3307         * include/bits/basic_string.tcc (_S_construct(_InIterator,
3308         _InIterator, const _Alloc&, input_iterator_tag)): Simplify
3309         the double loop, streamline.
3311         * include/bits/basic_string.tcc: Very minor tweaks.
3313 2004-01-30  Loren J. Rittle  <ljrittle@acm.org>
3315         * scripts/check_performance: Only compile with $THREAD_FLAG
3316         when test is marked to require it.  Allow multiple
3317         compilations/executions of marked tests.
3318         * testsuite/testsuite_performance.h (report_performance):
3319         Report dynamic thread support status.
3320         (report_header): Likewise.
3321         * testsuite/performance/allocator.cc: Stabilize iteration
3322         count.  Support more allocators.  Mark each allocator test to
3323         run and report independently.
3324         * testsuite/performance/allocator_map_thread.cc: Likewise.
3325         * testsuite/performance/allocator_thread.cc: Likewise.
3327 2004-01-29  Stephen M. Webb  <stephen.webb@bregmasoft.com>
3329         * config/local/generic/c_locale.h: Change ::malloc() to new char[].
3330         * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
3331         * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
3332         std::get_temporary_buffer() instead of duplicating its code.
3333         Update to C++STYLE conventions.
3334         * include/std/std_memory.h (get_temporary_buffer): Use ::operator
3335         new() instead of std::malloc().
3336         (return_temporary_buffer): Use ::operator delete() instead of
3337         std::free().
3339 2004-01-29  Benjamin Kosnik  <bkoz@redhat.com>
3341         * include/bits/allocator.h: Temporary switch to new_allocator as
3342         the default to unjam bootstraps.
3344 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
3346         * include/Makefile.am (bits_headers): Remove allocator_traits.h.
3347         * include/Makefile.in: Regenerate.
3348         * include/bits/allocator_traits.h: Remove.
3349         * include/bits/allocator.h: Remove allocator_traits.h include, and
3350         relevant comments.
3351         (allocator): Empty base class, inherit from the underlying allocator.
3352         * src/allocator-inst.cc: Move __pool_alloc instantiation to...
3353         * src/allocator.cc: ...here. New. For the underlying allocators.
3354         Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
3355         * config/linker-map.gnu: Remove __pool_alloc bits.
3356         * src/Makefile.am (sources): Add allocator.cc.
3357         * src/Makefile.in: Regenerate.
3358         * testsuite/20_util/allocator/1.cc: Split second test into...
3359         * testsuite/20_util/allocator/8230.cc: ...this.
3360         * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
3361         typedef to use std::allocatore. Format.
3362         * include/ext/pool_allocator.h: Remove allocator_traits.h include,
3363         _Alloc_traits.
3364         * include/ext/mt_allocator.h (__gnu_cxx): Qualify
3365         __throw_bad_alloc calls. Don't include <memory>.
3366         * include/ext/malloc_allocator.h: Remove <memory> include.
3367         * include/ext/new_allocator.h (new_allocator): Same.
3368         * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
3369         declaration. Switch __alloc to _Alloc.
3370         * include/ext/hashtable.h: Remove __alloc.
3371         * include/backward/alloc.h: Only inject allocator, not
3372         implementation details.
3374         * include/ext/mt_allocator.h: Replace free with delete.
3376 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
3378         * src/globals_io.cc: Change to __gnu_internal namespace.
3379         * src/globals_locale.cc: Same.
3380         * src/locale_init.cc: Same.
3381         * src/ios_init.cc: Same.
3383 2004-01-28  Stefan Olsson  <stefan@snon.net>
3385         * include/ext/mt_allocator.h: Replaced all malloc() calls with
3386         operator new(). Added support for the env variable
3387         GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
3388         one in allocate() as well). Fix typos.
3390 2004-01-28  Paolo Carlini  <pcarlini@suse.de>
3392         * include/bits/basic_string.h (_S_create(size_t,
3393         const _Alloc&): Change signature to take two size_type
3394         arguments.
3395         * include/bits/basic_string.tcc (_S_construct(_InIterator,
3396         _InIterator, const _Alloc&, input_iterator_tag)): Update
3397         call, tweak a bit.
3398         (_S_construct(_InIterator, _InIterator, const _Alloc&,
3399         forward_iterator_tag)): Likewise.
3400         (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
3401         (_M_mutate(size_type, size_type, size_type)): Don't
3402         implement the exponential growth policy, demand it to
3403         _S_create, update call and simplify.
3404         (_M_clone(const _Alloc&, size_type)): Likewise.
3405         (_S_create(size_type, size_type, const _Alloc&)): Implement
3406         the growth policy, simplify otherwise.
3408         * include/bits/basic_string.h (_Rep::operator[]): Tweak
3409         signature to take a size_type, consistently with the other
3410         members.
3412 2004-01-27  Benjamin Kosnik  <bkoz@redhat.com>
3414         * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
3415         delete declarations, add include and test variable.
3417 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
3419         * include/bits/codecvt.h, include/bits/locale_facets.h,
3420         include/bits/postypes.h, include/bits/stl_bvector.h,
3421         include/bits/stl_multiset.h, include/bits/stl_set.h,
3422         include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
3423         include/std/std_complex.h:  Document.
3425 2004-01-27  Jerry Quinn  <jlquinn@optonline.net>
3427         PR libstdc++/11584
3428         * include/bits/ios_base.h (ios_base::_M_grow_words):  Add
3429         iword/pword selector.
3430         (ios_base::iword, ios_base::pword):  Use it.
3431         * src/ios.cc (ios_base::_M_grow_words):  Clear _M_word_zero
3432         iword or pword member on alloc failure.
3433         * testsuite/27_io/ios_base/storage/11584.cc:  New test.
3435 2004-01-27  Ulrich Weigand  <uweigand@de.ibm.com>
3436             PJ Darcy  <darcypj@us.ibm.com>
3438         * configure.host: Add support for *-tpf.
3439         * crossconfig.m4: Likewise.
3440         * configure: Regenerate.
3441         * config/os/tpf: New directory.
3442         * config/os/tpf/os_defines.h: New file.
3443         * config/os/tpf/ctype_base.h: Likewise.
3444         * config/os/tpf/ctype_inline.h: Likewise.
3445         * config/os/tpf/ctype_noninline.h: Likewise.
3447 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
3449         PR libstdc++/13884
3450         * include/bits/sstream.tcc: Guard use of extern template.
3452 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
3454         * include/bits/basic_string.tcc
3455         (basic_string(const basic_string&, size_type, size_type),
3456         basic_string(const basic_string&, size_type, size_type,
3457         const _Alloc&)): Avoid unnecessarily constructing iterators.
3459 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
3461         * config/locale/generic/c_locale.cc: Fix throw messages
3462         to use the __N marker.
3463         * config/locale/gnu/c_locale.cc: Likewise.
3464         * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
3465         Likewise.
3466         * docs/html/17_intro/C++STYLE: Likewise.
3467         * include/bits/basic_ios.tcc: Likewise.
3468         * include/bits/fstream.tcc: Likewise.
3469         * include/bits/vector.tcc: Likewise.
3470         * include/ext/ropeimpl.h: Likewise.
3471         * include/std/std_bitset.h: Likewise.
3472         * src/ios.cc: Likewise.
3473         * src/locale.cc: Likewise.
3474         * src/localename.cc: Likewise.
3476 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
3478         * include/bits/basic_string.h (_M_replace_aux): Use the
3479         __N marker in throw message.
3480         * include/bits/basic_string.tcc (assign(const _CharT*,
3481         size_type), insert(size_type, const _CharT*, size_type),
3482         replace(size_type, size_type, const _CharT*, size_type),
3483         reserve, _Rep::_S_create, resize, _M_replace_dispatch):
3484         Likewise.
3486         * include/bits/basic_string.h, include/bits/basic_string.tcc:
3487         Fold overlong lines, minor formatting changes.
3489 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
3491         * include/bits/basic_string.h (replace(iterator, iterator,
3492         const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
3493         (replace(iterator, iterator, const _CharT*)): Ditto.
3494         (replace(iterator, iterator, const _CharT*, size_type)):
3495         Add missing _GLIBCXX_DEBUG_PEDASSERT.
3497 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
3499         * include/bits/basic_string.tcc (replace(size_type,
3500         size_type, const _CharT*, size_type)): Implement optimized
3501         in-place algorithm for non-overlapping ranges.
3502         * testsuite/21_strings/basic_string/replace/char/6.cc: New.
3503         * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
3505         * include/bits/basic_string.tcc (insert(size_type,
3506         const _CharT*, size_type)): Tweak slightly.
3508 2004-01-26  Andreas Schwab  <schwab@suse.de>
3510         * config/locale/gnu/monetary_members.cc: Restore locale before
3511         rethrowing exception.
3513 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
3515         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
3516         Define inline here.
3517         * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
3518         Move inline.
3520         * include/bits/basic_string.tcc: Very minor tweaks.
3522 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
3524         * testsuite/performance/string_append.cc: Increase number
3525         of iterations.
3527 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
3529         * include/bits/basic_string.h (erase(size_type, size_type),
3530         erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
3531         instead, thus avoiding redundant check for length_error.
3533         * include/bits/basic_string.h: Tweak some comments.
3535 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
3537         * include/bits/basic_string.tcc (operator+(const _CharT*,
3538         const basic_string&)): No need to go through the append
3539         taking two iterators.
3541 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
3543         * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
3544         Revert last change to use std::min: machine language is worse.
3545         (find_last_of(const _CharT*, size_type, size_type)): Ditto.
3546         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3547         (find_last_not_of(_CharT, size_type)): Ditto.
3549         * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
3550         size_type)): Discard the value returned by _M_check.
3551         (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
3552         (append(const basic_string&, size_type, size_type)): Ditto.
3553         (copy(_CharT*, size_type, size_type)): Ditto.
3554         (compare(size_type, size_type, const basic_string&)): Ditto.
3555         (compare(size_type, size_type, const basic_string&,
3556         size_type, size_type)): Ditto.
3557         (compare(size_type, size_type, const _CharT*)): Ditto.
3558         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3560 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
3562         * include/bits/basic_string.h (insert(size_type,
3563         const basic_string&, size_type, size_type)): Define inline here.
3564         * include/bits/basic_string.tcc (insert(size_type,
3565         const basic_string&, size_type, size_type)): Move inline.
3567 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
3569         * include/bits/basic_string.h (assign(const basic_string&,
3570         size_type, size_type)): Define inline here.
3571         (replace(size_type, size_type, const basic_string&,
3572         size_type, size_type)): Ditto.
3573         (_M_replace_dispatch(iterator, iterator, _InputIterator,
3574         _InputIterator, __false_type)): Only declare.
3575         (_M_replace(iterator, iterator, _InputIterator,
3576         _InputIterator)): Remove.
3577         * include/bits/basic_string.tcc (assign(const basic_string&,
3578         size_type, size_type)): Move inline.
3579         (replace(size_type, size_type, const basic_string&,
3580         size_type, size_type)): Ditto.
3581         (_M_replace_dispatch(iterator, iterator, _InputIterator,
3582         _InputIterator, __false_type)): Define, now does also what
3583         _M_replace did before.
3584         * src/string-inst.cc (_M_replace): Don't instantiate.
3586         * include/bits/basic_string.tcc (find(const _CharT*,
3587         size_type, size_type)): Tidy.
3588         (rfind(_CharT, size_type)): Ditto.
3589         (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
3590         (find_first_not_of(_CharT, size_type)): Ditto.
3591         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3592         (find_last_not_of(_CharT, size_type)): Ditto.
3594 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
3596         PR libstdc++/13838
3597         * include/debug/bitset (operator|=): Fix typo.
3598         * testsuite/23_containers/bitset/operations/13838.cc: New.
3600 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
3602         * include/bits/basic_string.tcc (insert(size_type,
3603         const _CharT*, size_type __n)): Fix length_error check.
3604         (replace(size_type, size_type, const _CharT*, size_type):
3605         Ditto; call _M_replace_safe.
3606         (_M_replace_aux(size_type, size_type, size_type, _CharT):
3607         Fix length_error check.
3608         (_M_replace(iterator, iterator, _InputIterator,
3609         _InputIterator)): Ditto, tweak.
3610         (_M_replace_safe(size_type, size_type, const _CharT*,
3611         size_type)): Remove length_error check.
3613         * include/bits/basic_string.tcc (append(const basic_string&),
3614         append(const basic_string&, size_type, size_type)): Tweak
3615         comment.
3617         * include/bits/basic_string.tcc (copy(_CharT*, size_type,
3618         size_type)): If __n == 0 don't call traits::copy.
3620 2004-01-23  Stefan Olsson  <stefan@snon.net>
3622         * include/ext/mt_allocator.h: Reduce lock contention.
3624 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
3626         PR libstdc++/13831
3627         * include/bits/fstream.tcc (underflow): Remove unused
3628         variable.
3629         * include/bits/streambuf_iterator.h (equal): Ditto.
3630         * include/bits/locale_facets.h (_M_convert_from_char):
3631         Ditto.
3633 2004-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3635         PR c/13814
3636         * config/linker-map.gnu (nan): Delete.
3637         * libmath/mathconf.h (NAN, nan): Delete.
3638         * linkage.m4 (nan): Don't check for it.
3639         * libmath/nan.c: Delete file.
3641         * config.h.in, configure: Regenerate.
3643 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
3645         * include/bits/basic_string.h (push_back(_CharT)):
3646         Call _M_replace_aux.
3647         (insert(size_type, const basic_string&)): Trivial tweak.
3648         (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
3649         (insert(iterator, _CharT)): Ditto.
3650         (erase(size_type, size_type)): Ditto.
3651         (erase(iterator)): Ditto.
3652         (erase(iterator, iterator)): Ditto.
3653         (replace(size_type, size_type, size_type, _CharT)): Ditto.
3655 2004-01-23  Loren J. Rittle  <ljrittle@acm.org>
3657         libstdc++/13823
3658         * testsuite/performance/allocator_map_thread.cc: New test.
3660 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
3662         * include/bits/locale_facets.tcc
3663         (money_put::do_put(..., long double)): Use the basic_string
3664         constructor for char arrays, not that for C-strings, to pass
3665         __digits to do_put(..., const string_type&): __ws isn't
3666         null-terminated.
3668 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
3670         * include/bits/basic_string.h (_M_replace_safe): Change
3671         signatures to take size_types and const _CharT*.
3672         (_M_replace_aux): Likewise, takes size_types instead of
3673         iterators.
3674         (append(size_type, _CharT)): Update call.
3675         (assign(size_type, _CharT)): Ditto.
3676         (replace(iterator, iterator, size_type, _CharT)): Ditto.
3677         (_M_replace_dispatch(iterator, iterator, _Integer,
3678         _Integer, __true_type)): Ditto.
3679         * include/bits/basic_string.tcc (assign(const _CharT*,
3680         size_type)): Ditto.
3681         (insert(size_type, const _CharT*, size_type)): Ditto.
3682         (replace(size_type, size_type, const _CharT*,
3683         size_type)): Ditto.
3684         (_M_replace(iterator, iterator, _InputIterator,
3685         _InputIterator)): Ditto.
3686         (append(const basic_string&)): Ditto.
3687         (append(const basic_string&, size_type, size_type): Ditto.
3688         (append(const _CharT*, size_type): Ditto.
3689         (_M_replace_safe, _M_replace_safe): Change definitions
3690         accordingly, simplify.
3691         * string-inst.cc (_M_replace_safe): Don't instantiate.
3693 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
3695         * include/bits/basic_string.tcc (append(const basic_string&)):
3696         Revert previous change.
3697         (append(const basic_string&, size_type, size_type)): Revert
3698         previous change, use _M_check and _M_limit.
3700 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
3702         * include/bits/basic_string.h (_M_check): Change to return
3703         a checked __pos and take an additional const char* argument.
3704         (_M_fold): Rename to _M_limit, change to return a size_type,
3705         corresponding to the __off limited to the actual length.
3706         (insert(size_type, size_type, _CharT)): Update call, call
3707         replace.
3708         (insert(iterator, _CharT)): Call replace(iterator, iterator,
3709         size_type, _CharT) instead.
3710         (erase(size_type, size_type)): Update calls.
3711         (replace(size_type, size_type, size_type, _CharT)): Ditto.
3712         (substr(size_type, size_type)): Use _M_check.
3713         * include/bits/basic_string.tcc (basic_string(const basic_string&,
3714         size_type, size_type)): Update calls.
3715         (basic_string(const basic_string&, size_type, size_type,
3716         const _Alloc&)): Ditto.
3717         (assign(const basic_string&, size_type, size_type)): Use the
3718         new _M_check and _M_limit.
3719         (insert(size_type, const basic_string&, size_type, size_type):
3720         Ditto.
3721         (insert(size_type, const _CharT*, size_type)): Ditto.
3722         (replace(size_type, size_type, const _CharT*, size_type): Ditto.
3723         (replace(size_type, size_type, const basic_string&,
3724         size_type, size_type)): Ditto.
3725         (append(const basic_string&)): Ditto.
3726         (append(const basic_string&, size_type, size_type)): Ditto.
3727         (copy(_CharT*, size_type, size_type)): Ditto.
3728         (compare(size_type, size_type, const basic_string&)): Ditto.
3729         (compare(size_type, size_type, const basic_string&,size_type,
3730         size_type)): Ditto.
3731         (compare(size_type, size_type, const _CharT*)): Ditto.
3732         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3734 2004-01-19  Stefan Olsson  <stefan@snon.net>
3736         * include/ext/mt_allocator.h: If a thread, when it dies, still has
3737         memory on it's freelist this memory is not returned to global
3738         list. Simplification of deallocate so that memory is always
3739         returned to the calling thread id's freelist instead of to
3740         global. Fix typos. Add volatile where appropriate.
3742 2004-01-19  Loren J. Rittle  <ljrittle@acm.org>
3744         * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
3745         * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test.  Like -2 but
3746         use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
3748 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
3750         * src/debug.cc: Make sure all the names are prefixed with
3751         double (or single) underscore.
3753 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
3755         * src/debug.cc: Trivial formatting change.
3757 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
3759         * include/bits/basic_string.tcc (_S_construct(size_type,
3760         _CharT, const _Alloc&)): Remove redundant try/catch.
3761         (_M_mutate(size_type, size_type, size_type)): Ditto.
3762         (_M_clone(const _Alloc&, size_type)): Ditto.
3764 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
3766         * include/bits/basic_string.h (c_str()): Simplify, due to
3767         21.3.4 the internal representation is always kept null-terminated.
3768         * include/bits/basic_string.tcc (_M_clone): Null-terminate.
3769         * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
3770         * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
3771         Ditto.
3773 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
3775         * include/bits/basic_string.h (append(size_type, _CharT)):
3776         Moved inline, just call _M_replace_aux, no source iterators at
3777         risk of being clobbered.
3778         (assign(size_type, _CharT)): Call directly _M_replace_aux.
3779         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3780         input_iterator_tag)): Remove fifth unused argument.
3781         (_M_replace_dispatch(iterator, iterator, _InputIterator,
3782         _InputIterator, __false_type)): Update call.
3783         * include/bits/basic_string.tcc (replace(size_type, size_type,
3784         const _CharT*, size_type)): Update call.
3785         (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
3786         throw string literal.
3787         (_M_replace_safe(iterator, iterator, _ForwardIterator,
3788         _ForwardIterator)): Likewise.
3789         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3790         input_iterator_tag)): Remove fifth unused argument.
3791         (append(size_type __n, _CharT __c)): Move inline.
3792         * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
3793         const C*, const C*, input_iterator_tag)): Remove fifth unused
3794         argument.
3796 2004-01-16  Benjamin Kosnik  <bkoz@redhat.com>
3798         * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
3799         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
3801 2004-01-16  Danny Smith  <dannysmith@users.sourceforge.net>
3803         * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
3804         mkfifo for mingw32.
3806 2004-01-15  Stefan Olsson  <stefan@snon.net>
3808         * include/ext/mt_allocator.h: Reuse thread id's as soon as
3809         possible by changing the behaviour of thread_freelist to do
3810         push_front when threads die instead of push_back.
3812 2004-01-14  Paolo Carlini  <pcarlini@suse.de>
3814         * include/bits/locale_facets.h (struct __numpunct_cache):
3815         Add member _M_grouping_size, caching the length of _M_grouping.
3816         (__numpunct_cache<>::_M_cache): Assign the latter.
3817         (__verify_grouping): Move declaration...
3818         * include/bits/locale_facets.tcc (__verify_grouping):
3819         ... here, change signature to take a const char* and a size_t
3820         for the grouping; not a template anymore.
3821         (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
3822         Likewise change signature and tweak consistently.
3823         (num_get::_M_extract_float, num_get::_M_extract_int,
3824         num_put::_M_insert_int, num_put::_M_insert_float,
3825         money_get::do_get(string_type&), money_get::do_put(string_type)):
3826         Update callers.
3827         * config/locale/generic/numeric_members.cc
3828         (numpunct<>::_M_initialize_numpunct): Assign the new member.
3829         * config/locale/gnu/numeric_members.cc
3830         (numpunct<>::_M_initialize_numpunct): Likewise.
3831         * src/locale-inst.cc (__add_grouping): Tweak signature.
3832         (__verify_grouping): Don't instantiate, not a template anymore.
3834         * include/bits/locale_facets.h: Rename _M_truename_len ->
3835         _M_truename_size, _M_falsename_len -> _M_falsename_size.
3836         * include/bits/locale_facets.tcc: Likewise.
3837         * config/locale/generic/numeric_members.cc: Likewise.
3838         * config/locale/gnu/numeric_members.cc: Likewise.
3840 2004-01-14  Stefan Olsson  <stefan@snon.net>
3842         * include/ext/mt_allocator.h: Fixups.
3843         * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
3844         * testsuite/performance/allocator_thread.cc: Same.
3846 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
3848         * testsuite/performance/ifstream_extract_float.cc: Add higher
3849         precision tests.
3850         * testsuite/performance/ofstream_insert_float.cc: Same.
3852 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
3854         * src/locale-misc-inst.cc (__convert_from_v(long),
3855         __convert_from_v(unsigned long), __convert_from_v(long long),
3856         __convert_from_v(unsigned long long)): Remove, unused.
3858 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
3860         * testsuite/performance/ifstream_extract_float.cc: New.
3861         * testsuite/performance/ofstream_insert_float.cc: Float generation
3862         matches above.
3864         * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
3865         * 20_util/auto_ptr/1.cc: ...this.
3866         * 20_util/auto_ptr/2.cc: Same.
3867         * 20_util/auto_ptr/3.cc: Same.
3868         * 20_util/auto_ptr/3946.cc: Same.
3869         * 20_util/auto_ptr/4.cc: Same.
3870         * 20_util/auto_ptr/5.cc: Same.
3871         * 20_util/auto_ptr/6.cc: Same.
3872         * 20_util/auto_ptr/7.cc: Same.
3873         * 20_util/auto_ptr/assign_neg.cc
3874         * 20_util/pairs.cc: Break into...
3875         * 20_util/pair/1.cc: ...this.
3876         * 20_util/pair/2.cc: Same.
3877         * 20_util/pair/3.cc: Same.
3878         * 20_util/pair/4.cc: Same.
3880 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
3882         * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
3883         Set correctly just basefield, the only group that matters.
3885 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
3887         * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
3888         (_Rope_rep_base): Inherit directly from the rope allocator;
3889         use rebinding instead of _Alloc_traits; pick up data member
3890         from _Rope_rep_alloc_base.
3891         (_Rope_alloc_base): Eliminate.
3892         (_Rope_base): Inherit directly from the rope allocator; use
3893         rebinding instead of _Alloc_traits; pick up data member from
3894         _Rope_alloc_base.
3895         (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
3896         rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
3898 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
3900         PR libstdc++/13650
3901         * include/bits/basic_string.tcc (compare(size_type, size_type,
3902         const _CharT*, size_type)): Implement correctly the resolution
3903         of DR 5: basically, s is a char array, -not- a C string.
3904         * include/bits/basic_string.h: Tweak some comments.
3905         * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
3906         * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
3908 2004-01-12  Andreas Tobler  <a.tobler@schweiz.ch>
3910         * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
3911         Solaris.
3913 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
3915         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
3916         Use try_mkfifo.
3917         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
3918         Likewise.
3920 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
3922         * include/bits/locale_facets.h (struct __numpunct_cache):
3923         Add members _M_truename_len and _M_falsename_len, caching
3924         the lengths of _M_truename and _M_falsename.
3925         (__numpunct_cache<>::_M_cache): Assign the latter.
3926         * include/bits/locale_facets.tcc (num_get::do_get(bool&),
3927         num_put::do_put(bool)): Use the new members, thus avoiding
3928         computing string lengths again and again.
3929         * config/locale/generic/numeric_members.cc
3930         (numpunct<>::_M_initialize_numpunct): Assign the new members.
3931         * config/locale/gnu/numeric_members.cc
3932         (numpunct<>::_M_initialize_numpunct): Likewise.
3934 2004-01-12  Mark Mitchell  <mark@codesourcery.com>
3936         * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
3937         * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
3938         it.
3939         * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
3940         and remove Cygwin XFAIL.
3941         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
3942         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
3943         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
3944         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
3945         Likewise.
3946         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3947         * testsuite/27_io/objects/char/7.cc: Likewise.
3948         * testsuite/27_io/objects/char/9661-1.cc: Likewise.
3949         * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
3950         * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
3952 2004-01-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3954         * include/std/std_complex.h (std::complex<>::real): Return a
3955         reference. Add non-const overload.
3956         (std::complex<>::real): Likewise.
3957         (std::real): Likewise.
3958         (std::imag): Likewise.
3959         (std::operator+): Tidy.
3960         (std::operator-): Likewise.
3961         (std::operator*): Likewise.
3962         (std::operator/): Likewise.
3963         (std::operator>>): Likewise.
3965 2004-01-11  Paolo Carlini  <pcarlini@suse.de>
3967         PR libstdc++/13582
3968         * include/bits/fstream.tcc (imbue): Exploit the external
3969         buffer to imbue 'on the fly' a new locale and convert its
3970         remainder with the new codecvt facet.
3971         (underflow): Tweak slightly to deal with this special case.
3972         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
3973         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
3974         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
3975         * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
3976         * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
3978 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
3980         * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
3981         Import Revision 28.
3983 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
3985         PR libstdc++/13630
3986         * include/bits/locale_classes.h (class locale): Fix category
3987         typedef.
3988         * testsuite/22_locale/locale/13630.cc: Add.
3990 2004-01-10  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
3992         * include/bits/locale_facets.h: Make a name really dependent. This
3993         will be needed when Core Issue 224 is implemented.
3995 2004-01-09  Paolo Carlini  <pcarlini@suse.de>
3997         * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
3998         * testsuite/performance/allocator_thread.cc: Likewise.
4000 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
4002         * crossconfig.m4: Add LFS, io bits to linux cross config.
4003         * acconfig.h: Remove obsolete bits, reorder.
4004         * config.h.in: Regenerate.
4005         * aclocal.m4: Same.
4006         * configure: Same.
4008 2004-01-07  Gawain Bolton  <gp.bolton@computer.org>
4010         * include/bits/stl_list.h:
4011         * include/bits/list.tc:
4012         * src/list.cc:
4013         Performance enhancements for destructor, push_front(),
4014         push_back(), pop_front(), pop_back(), sort()
4015         Eliminated static_casts where possible.
4016         Moved code out of header files into new src/list.cc
4017         implementation file for library where possible.
4018         Remove inheritance from iterator class and create separate
4019         classes for non-constant and constant iterators.
4020         * include/bits/stl_tree.h (_Rb_tree class):
4021         * src/tree.cc:
4022         Only erase contents in destructor.
4023         Eliminate unnecessary initialization in assignment operator.
4024         Optimize for the nominal case by not checking whether
4025         container is empty in clear().
4026         Re-order test in _M_insert() to improve performance.
4027         Move initialization of new node's left & right pointers to
4028         src/tree.cc to where new node's colour is initialized
4029         and to reduce the amount of inline code.
4030         Use  _M_leftmost() and _M_end() to improve readability where
4031         appropriate.
4032         Create separate classes for non-constant and constant
4033         iterators to clarify code, avoid extra template parameters and
4034         casting away constness.
4036 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
4038         * src/Makefile.am (sources): Add list.cc, tree.cc.
4039         * src/stl_tree.cc: Move to...
4040         * src/tree.cc: ...here.
4041         * src/list.cc: Add.
4042         * config/linker-map.gnu: Tweaks.
4043         * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
4044         * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
4046         * bits/stl_vector.h: Column wrap comments.
4048 2004-01-07  Loren J. Rittle  <ljrittle@acm.org>
4050         (re-open) PR libstdc++/12658
4051         * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
4052         (locale::global): Likewise.
4054 2004-01-07  Paolo Carlini  <pcarlini@suse.de>
4056         * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
4057         Remove redundant #include.
4058         * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
4059         * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
4060         re-enable normal testing.
4061         * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
4062         #include.
4063         * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
4064         * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
4065         Likewise.
4066         * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
4067         Likewise.
4068         * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
4069         Likewise.
4070         * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
4071         Likewise.
4072         * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
4073         Likewise.
4074         * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
4075         Likewise.
4076         * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
4077         Likewise.
4078         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
4079         More properly, #include <locale>.
4080         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
4081         Remove redundant #include.
4082         * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
4083         * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
4084         redundant DejaGnu directive.
4085         * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
4086         redundant #include.
4088 2004-01-06  Benjamin Kosnik  <bkoz@redhat.com>
4089             Stefan Olsson  <stefan@snon.net>
4091         * scripts/check_performance: Use -pthread.
4092         * testsuite/performance/allocator.cc: Tweaks, add list.
4093         * testsuite/performance/allocator_thread.cc: New.
4095 2004-01-06  Jerry Quinn  <jlquinn@optonline.net>
4097         * include/bits/locale_facets.h: Document public classes and
4098         functions.
4099         * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
4100         Add comment.
4102 2004-01-06  Paolo Carlini  <pcarlini@suse.de>
4104         * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
4105         Remove redundant #includes.
4106         * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
4107         Likewise.
4108         * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
4109         Likewise.
4110         * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
4111         * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
4112         * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
4113         * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
4114         * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
4115         * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
4116         * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
4117         * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
4118         * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
4119         * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
4120         * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
4121         * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
4122         * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
4123         * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
4124         * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
4125         Likewise.
4126         * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
4127         Likewise.
4128         * testsuite/27_io/basic_istream/readsome/char/8258.cc:
4129         Likewise.
4130         * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
4131         Likewise.
4132         * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
4133         Likewise.
4134         * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
4135         * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
4136         * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
4138 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
4140         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
4141         Remove redundant #includes.
4142         * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
4143         Likewise.
4144         * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
4145         Likewise.
4146         * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
4147         Likewise.
4148         * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
4149         Likewise.
4150         * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
4151         Likewise.
4152         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
4153         Likewise.
4154         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
4155         Likewise.
4156         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
4157         Likewise.
4158         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
4159         Likewise.
4160         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
4161         Likewise.
4162         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
4163         Likewise.
4164         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
4165         Likewise.
4167 2004-01-04  Mark Mitchell  <mark@codesourcery.com>
4169         PR c++/12226
4170         * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
4171         constructor.
4172         * testsuite/27_io/basic_fstream/4.cc: Likewise.
4173         * testsuite/27_io/basic_ifstream/4.cc: Likewise.
4174         * testsuite/27_io/basic_ios/4.cc: Likewise.
4175         * testsuite/27_io/basic_iostream/4.cc: Likewise.
4176         * testsuite/27_io/basic_istream/4.cc: Likewise.
4177         * testsuite/27_io/basic_istingstream/4.cc: Likewise.
4178         * testsuite/27_io/basic_ofstream/4.cc: Likewise.
4179         * testsuite/27_io/basic_ostream/4.cc: Likewise.
4180         * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
4181         * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
4182         * testsuite/27_io/basic_stringstream/4.cc: Likewise.
4184 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
4186         * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
4187         Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
4188         always use double underscored names.
4189         * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
4190         Likewise.
4191         * include/bits/locale_facets.h (struct __numpunct_cache):
4192         Dimension _M_atoms_out and _M_atoms_in one position smaller.
4193         (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out
4194         and _M_atoms_in.