2004-10-08 Benjamin Kosnik <bkoz@redhat.com>
[official-gcc.git] / libstdc++-v3 / ChangeLog
blob615d83f51d7a1a0901397a9f38bb17bb5d5d348c
1 2004-10-08  Benjamin Kosnik  <bkoz@redhat.com>
3         * acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
4         * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): New.
5         * configure.ac: Call GLIBCXX_ENABLE_CXA_EXIT.
6         * configure: Regenerate.
7         * src/mt_allocator.cc (__pool::~__pool): Make conditional on
8         _GLIBCXX_USE___CXA_ATEXIT macro.
9         * docs/html/ext/mt_allocator.html: Add note about deallocation.
10         * testsuite/ext/mt_allocator/deallocate_local-2.cc: Guard checks
11         with _GLIBCXX_USE___CXA_ATEXIT.
12         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
13         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
14         * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
15         * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
16         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
17         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
18         * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
19         
20 2004-10-07  Phil Edwards  <phil@codesourcery.com>
22         * testsuite/lib/libstdc++.exp:  Update list of undefined functions.
24 2004-10-07  Paolo Carlini  <pcarlini@suse.de>
26         * include/bits/list.tcc (operator=): Avoid iterator postincrement.
27         * include/bits/stl_tree.h (erase(iterator, iterator)): Likewise.
29 2004-10-07  Benjamin Kosnik  <bkoz@redhat.com>
31         * include/tr1: New.
32         * include/tr1/array: New.
33         * include/Makefile.am (tr1_headers): New.
34         (stamp-tr1): New.
35         (install-headers): New.
36         (allstamped): Add stamp-tr1.
38         * include/ext/array_allocator.h: New.
39         * include/Makefile.am: Add.
40         * include/Makefile.in: Regenerate.
41         * testsuite/ext/array_allocator/1.cc: New.
42         * testsuite/ext/array_allocator/2.cc: New.
44 2004-10-07  Richard Earnshaw  <rearnsha@arm.com>
46         * testsuite/lib/libstdc++.exp (libstdc++_exit): New proc.
48 2004-10-07  Roger Sayle  <roger@eyesopen.com>
50         PR libstdc++/17850
51         * configure.ac: Newlib does not provide strtold.
52         * configure: Regenerate.
54 2004-10-06  Benjamin Kosnik  <bkoz@redhat.com>
56         * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
57         (GLIBCXX_CONFIGURE_TESTSUITE): Use it.
58         * configure: Regenerated.
59         * testsuite/Makefile.am (CLEANFILES): Add TEST for
60         check-performance executables.
61         (stamp_thread): New.
62         (all-local): Use it.
63         * testsuite/Makefile.in: Regenerate.
64         * scripts/create_testsuite_files: Filter thread tests.
66         * testsuite/thread/pthread1.cc: Remove macro conditionals: this
67         file will only be run by thread enabled configurations.
68         * testsuite/thread/pthread7-rope.cc: Same, add rope_type typedef.
69         * testsuite/thread/pthread6.cc: Same.
70         * testsuite/thread/pthread5.cc: Same.
71         * testsuite/thread/pthread4.cc: Same.
72         * testsuite/thread/pthread3.cc: Same.
73         * testsuite/thread/pthread2.cc: Same.
75         * testsuite/ext/mt_allocator/instantiate.cc: Add in __GTHREADS guard.
76         * testsuite/ext/mt_allocator/deallocate_global-1.cc: Move to...
77         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: ...here.
78         * testsuite/ext/mt_allocator/deallocate_global-3.cc: Move to...
79         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: ...here. 
80         * testsuite/ext/mt_allocator/deallocate_local-1.cc: Move to...
81         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: ...here.
82         * testsuite/ext/mt_allocator/deallocate_local-3.cc: Move to...
83         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: ...here.
85 2004-10-06  Benjamin Kosnik  <bkoz@redhat.com>
86             Paolo Carlini  <pcarlini@suse.de>
88         PR libstdc++/17780
89         * src/mt_allocator.cc (__pool<true>::_M_reserve_block): Revert
90         to old locking order.
92 2004-10-06  Paolo Carlini  <pcarlini@suse.de>
94         * include/std/std_sstream.h (_M_sync): When the caller is
95         setbuf, don't trust _M_string.capacity() to be the size of
96         the buffer area, use _M_string.size() in this case.
97         * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
98         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.
100         * include/bits/sstream.tcc (overflow): Avoid calling string::assign
101         unnecessarily when the current _M_string is empty.
103 2004-10-06  Paolo Carlini  <pcarlini@suse.de>
105         * include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)):
106         Avoid iterator postincrement.
107         (__rotate): Likewise.
109         * include/bits/stl_algo.h: Minor formatting tweaks.
111 2004-10-06  Christopher Jefferson <caj@cs.york.ac.uk>
113         * include/bits/stl_algo.h (__reverse(random_access_iterator_tag)):
114         Avoid iterator postincrement; fix swapping middle element with
115         itself on odd-length inputs.
117 2004-10-05  Benjamin Kosnik  <bkoz@redhat.com>
119         PR libstdc++/17780
120         * include/ext/mt_allocator.h (__pool_base::_Tune): Add default
121         options as compile-time constant enums.
122         (__pool_base::_Tune::is_default): New.
123         (__pool_base::_Block_address): New.
124         (__pool_base): Rearrange data members.
125         (__pool::_M_reserve_memory): To _M_reserve_block.
126         (__pool::_M_reclaim_memory): To _M_reclaim_block.       
127         (__pool::_Bin_record): Add _Block_address data member.
128         (__pool<false>): Add _M_thread_freelist_initial.
129         (__pool::~__pool): Declare.     
130         (__common_pool_policy): Move static data member to...
131         (__common_pool_policy::_S_get_pool): ...here, make static local.
132         (__per_type_pool_policy): Move static data member to...
133         (__per_type_pool_policy::_S_get_pool): ...here, make static local.
134         (__mt_alloc::__mt_alloc): Call __policy_type::_S_get_pool.
135         Remove static member definitions. Use define for __default_policy.
136         * src/mt_allocator.cc: Same.
137         * config/linker-map.gnu: Don't export _S_get_pool. Renames.
138         * testsuite/ext/new_allocator: New.
139         * testsuite/ext/new_allocator/instantiate.cc: New.
140         * testsuite/ext/new_allocator/check_new.cc: New.
141         * testsuite/ext/new_allocator/deallocate_global.cc: New.
142         * testsuite/ext/new_allocator/deallocate_local.cc: New.
143         * testsuite/ext/mt_allocator/instantiate.cc: Instantiate all
144         template arguments.
145         * testsuite/ext/mt_allocator/deallocate_global-1.cc: New.
146         * testsuite/ext/mt_allocator/deallocate_global-2.cc: New.
147         * testsuite/ext/mt_allocator/deallocate_global-3.cc: New.
148         * testsuite/ext/mt_allocator/deallocate_global-4.cc: New.
149         * testsuite/ext/mt_allocator/deallocate_local-1.cc: New.
150         * testsuite/ext/mt_allocator/deallocate_local-2.cc: New.
151         * testsuite/ext/mt_allocator/deallocate_local-3.cc: New.
152         * testsuite/ext/mt_allocator/deallocate_local-4.cc: New.
153         * testsuite/ext/mt_allocator/deallocate.cc: New.
154         * testsuite/ext/malloc_allocator/deallocate.cc: New.    
155         * testsuite/ext/malloc_allocator/deallocate_global.cc: New.
156         * testsuite/ext/malloc_allocator/deallocate_local.cc: New.
157         
158 2004-10-05  Ulrich Weigand  <uweigand@de.ibm.com>
160         * configure.host (abi_baseline_pair): Define for s390-*-linux* and
161         s390x-*-linux*.
162         * config/abi/s390-linux-gnu/baseline_symbols.txt: Add missing symbols.
163         * config/abi/s390x-linux-gnu/baseline_symbols.txt: New file.
165 2004-10-05  Christopher Jefferson  <caj@cs.york.ac.uk>
167         * include/bits/stl_algobase.h (iter_swap): delegate to swap via
168         __iter_swap when iterator's value_types are equal.
169         (struct __iter_swap): New.
171 2004-10-04  Benjamin Kosnik  <bkoz@redhat.com>
173         * configure.ac (libtool_VERSION): To 6:3:0.
174         * configure: Regnerate.
175         * testsuite/testsuite_abi.cc (check_version): Add 3.4.3.
177 2004-10-04  Roger Sayle  <roger@eyesopen.com>
178             Eric Botcazou  <ebotcazou@libertysurf.fr>
180         PR libstdc++/17505
181         * config/linker-map.gnu: Synchronize the current list of stub
182         functions from libmath.
184 2004-10-03  Roger Sayle  <roger@eyesopen.com>
186         * config/locale/generic/c_locale.cc (__convert_to_v): Use
187         _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
188         Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
189         to check for presence of strtold.
191 2004-10-03  Paolo Carlini  <pcarlini@suse.de>
193         * include/bits/stl_list.h: Trivial formatting fixes.
194         * include/bits/stl_tree.h: Likewise.
196 2004-10-03  Paolo Carlini  <pcarlini@suse.de>
198         * include/bits/sstream.tcc (seekpos): In case of success, just
199         return __sp.
201 2004-10-01  Paolo Carlini  <pcarlini@suse.de>
203         * include/bits/sstream.tcc (pbackfail): Implement correctly
204         27.7.1.3/2, bullet 2: if mode & ios_base::out is false do not
205         write in the buffer.
206         * testsuite/27_io/basic_stringbuf/pbackfail/char/1.cc: New.
207         * testsuite/27_io/basic_stringbuf/pbackfail/char/2.cc: Likewise.
208         * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/1.cc: Likewise.
209         * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/2.cc: Likewise.
210         * testsuite/27_io/basic_istream/putback/char/1.cc: Tweak consistently.
212 2004-10-01  Paolo Carlini  <pcarlini@suse.de>
214         * include/bits/sstream.tcc (seekpos): Minor rearrangement of two
215         conditionals consistently with seekoff.
216         * include/std/std_sstream.h (setbuf): Avoid a string temporary.
217         (_M_sync): Simplify a bit, clean-up comment.
219 2004-09-30  Paolo Carlini  <pcarlini@suse.de>
221         PR libstdc++/10975 (DR 453)
222         * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
223         and __off == 0.
224         * docs/html/ext/howto.html: Add an entry for DR 453.
225         * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
226         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
227         * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
228         * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
229         * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
230         * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
231         move to...
232         * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
233         * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
234         move to...
235         * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
237 2004-09-29  Paolo Carlini  <pcarlini@suse.de>
239         * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
240         Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
241         (str()): Slightly tweak, protect from pptr() == 0.
242         (_M_update_egptr()): Likewise.
243         * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
244         for an empty buffer use __beg instead of _M_string.capacity().
245         * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
246         * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
248         * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
249         * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
250         * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
251         * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
253 2004-09-29  Paolo Carlini  <pcarlini@suse.de>
254             Benjamin Kosnik  <bkoz@redhat.com>
255         
256         * testsuite/testsuite_io.h (class constraint_buf): New, extended
257         and templatized version of constraint_filebuf; add typedefs for
258         streambuf/stringbuf/filebuf and wchar_t counterparts.
260 2004-09-28  Paolo Carlini  <pcarlini@suse.de>
262         PR libstdc++/16612
263         * include/bits/basic_string.h (_M_dispose, _M_refcopy,
264         basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
265         don't deal with _S_empty_rep.
266         * include/bits/basic_string.tcc (_S_construct, _M_destroy,
267         _M_leak_hard, _M_mutate): Likewise.
268         * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
269         * acconfig.h: Add corresponding undef.  
270         * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
271         * docs/html/configopts.html: Document --enable-fully-dynamic-string.
272         * configure: Regenerate.
273         * config.h.in: Likewise.
275 2004-09-28  Benjamin Kosnik  <bkoz@redhat.com>
276             Paolo Carlini  <pcarlini@suse.de>
278         * testsuite/21_strings/basic_string/operations/char/1.cc: New.
279         * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
280         * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
281         * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc: 
282         New.
284 2004-09-28  Paolo Carlini  <pcarlini@suse.de>
286         * README: Remove obsolete entry about include/c_shadow.
288 2004-09-24  H.J. Lu  <hongjiu.lu@intel.com>
290         PR libstdc++/17469
291         * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
293 2004-09-24  Paolo Carlini  <pcarlini@suse.de>
295         * src/localename.cc (locale::locale(const char*)): Minor tweaks:
296         rename a variable, move an assignment.
297         (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
299 2004-09-24  Paul Brook  <paul@codesourcery.com>
301         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
302         simulator targets.
303         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
304         * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
305         * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
306         * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
307         * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
308         * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
310 2004-09-23  Zack Weinberg  <zack@codesourcery.com>
312         * testsuite/20_util/memory/auto_ptr/assign_neg.cc
313         * testsuite/23_containers/map/operators/1_neg.cc
314         * testsuite/23_containers/set/operators/1_neg.cc:
315         Update locations and/or regexps of dg-error markers.
317 2004-09-23  P.J. Darcy  <darcypj@us.ibm.com>
319         * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
320         Add rule to build ${host_builddir}/gthr-tpf.h.
321         * include/Makefile.in: Regenerate.
323 2004-09-23  Paolo Carlini  <pcarlini@suse.de>
324             Magnus Fromreide  <magfr@lysator.liu.se>
326         * include/bits/boost_concept_check.h (struct _SequenceConcept):
327         Remove wrong requirement, i.e., not present in Table 67.
329 2004-09-21  Paolo Carlini  <pcarlini@suse.de>
331         PR libstdc++/12882 (cont)
332         * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
333         * configure: Regenerate.
334         * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
335         _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
336         trivial showmanyc for large files too.
338 2004-09-17  Jonathan Wakely  <redi@gcc.gnu.org>
340         * include/bits/stl_algo.h (remove): Remove too restrictive
341         concept-check.
343 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
345         * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
346         as per Nathan's original suggestion.
348 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
350         * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
351         up a bit.
352         * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
353         * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
354         * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
356 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
357             Andrea Arcangeli  <andrea@suse.de>
359         * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
360         call unnecessarily sync, that is fflush: the library, since 3.4.0
361         does not use buffered fread/fwrite.
362         * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
364 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
366         * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
367         Define.
368         * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
369         Define.
370         * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
371         (__cxa_vec_new): Use it.
372         (__cxa_vec_new2): Likewise.
373         (__cxa_vec_new3): Likewise.
374         (__cxa_vec_cdtor): Likewise.
375         (__cxa_vec_cctor): Likeiwse.
376         (__cxa_vec_dtor): Likewise.
377         (__cxa_vec_cleanup): Likewise.
378         (__cxa_vec_delete2): Likewise.
379         (__cxa_vec_delete3): Likewise.
380         * libsupc++/vec.cc (__cxa_vec_new): Likewise.
381         (__cxa_vec_new2): Likewise.
382         (__cxa_vec_new3): Likewise.
383         (__cxa_vec_cdtor): Likewise.
384         (__cxa_vec_cctor): Likeiwse.
385         (__cxa_vec_dtor): Likewise.
386         (__cxa_vec_cleanup): Likewise.
387         (__cxa_vec_delete2): Likewise.
388         (__cxa_vec_delete3): Likewise.
389         (__aeabi_vec_ctor_nocookie_nodtor): New function.
390         (__aeabi_vec_ctor_cookie_nodtor): Likewise.
391         (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
392         (__aeabi_vec_new_cookie_noctor): Likewise.
393         (__aeabi_vec_new_nocookie): Likewise.
394         (__aeabi_vec_new_cookie_nodtor): Likewise.
395         (__aeabi_vec_new_cookie): Likewise.
396         (__aeabi_vec_dtor): Likewise.
397         (__aeabi_vec_dtor_cookie): Likewise.
398         (__aeabi_vec_delete): Likewise.
399         (__aeabi_vec_delete3): Likewise.
400         (__aeabi_vec_delete3_nodtor): Likewise.
401         (__aeabi_atexit): Likewise.
403 2004-09-14  Nathan Myers  <ncm@cantrip.org>
405         * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
406         for 11722: copy can replace move; the common case is __avail == 0.
408 2004-09-14  Paolo Carlini  <pcarlini@suse.de>
410         * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
411         to __is_scalar, more clear and consistent with "tr1" naming.
412         * include/bits/stl_algobase.h: Update consistently throughout.
414 2004-09-13  Paolo Carlini  <pcarlini@suse.de>
416         PR libstdc++/11722
417         * include/std/std_fstream.h (xsgetn): Declare only.
418         * include/bits/fstream.tcc (xsgetn): Define, optimize for the
419         always_noconv() case: when __n > __buflen, copy the available
420         buffer and issue a direct read.
421         * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
423         * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
424         conditional.
426 2004-09-13  Hans-Peter Nilsson  <hp@bitrange.com>
428         * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
429         libstdc++_maybe_build_wrapper instead of using local code.
431 2004-09-08  Benjamin Kosnik  <bkoz@redhat.com>
433         * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
435 2004-09-03  Jan Beulich  <jbeulich@novell.com>
437         * crossconfig.m4: Add NetWare as a target.
438         * configure: Regenerate.
440 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
442         * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
443         defined.
445 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
446             Simon Richter  <Simon.Richter@hogyros.de>
448         PR libstdc++/16715
449         * include/bits/istream.tcc: Add extern template for iostream
450         char and wchar_t instantiations.
452 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
453             Leland Wang  <llwang@infor.org>
455         PR libstdc++/17259
456         * include/ext/ropeimpl.h (rope::_S_compare): Use
457         _Rope_constants::_S_leaf.
459 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
461         PR libstdc++/16848
462         * include/Makefile.am (ext_headers): Remove demangle.h.
463         * include/Makefile.in: Regenerate.
464         * include/ext/demangle.h: Remove.
466 2004-09-01  Benjamin Kosnik  <bkoz@redhat.com>
468         PR libstdc++/16614
469         * include/ext/mt_allocator.h (__mt_base): Not type dependent,
470         split into..
471         (__pool): New, specialize.
472         (__common_pool): New, static bits here.
473         (__per_type_pool): New, and here.
474         (__mt_alloc_base): New.
475         (__mt_alloc): Add template parameter, inherit from it.
476         * src/allocator.cc: Split this...
477         * src/allocator-inst.cc: And this...
478         * src/pool_allocator.cc: ...into this.
479         * src/mt_allocator.cc: ... and this. Add definitions for
480         __mt_base.
481         * src/Makefile.am (sources): Split allocator.cc to
482         pool_allocator.cc and mt_allocator.cc.
483         * src/Makefile.in: Regenerate.
484         * config/linker-map.gnu: Add symbols.
485         * docs/html/ext/mt_allocator.html: Document new design.
486         * testsuite/ext/mt_allocator/tune-1.cc: New.
487         * testsuite/ext/mt_allocator/tune-2.cc: New.
488         * testsuite/ext/mt_allocator/tune-3.cc: New.
489         * testsuite/ext/mt_allocator/tune-4.cc: New.
491         * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
492         * testsuite/ext/allocators.cc: Use check_new, split into...
493         * testsuite/ext/mt_allocator/check_new.cc: this.
494         * testsuite/ext/pool_allocator/check_new.cc: this.
495         * testsuite/ext/malloc_allocator/check_new.cc: this.
496         * testsuite/ext/debug_allocator/check_new.cc: this.
497         * testsuite/ext/mt_allocator/instantiate.cc: this.
498         * testsuite/ext/pool_allocator/instantiate.cc: this.
499         * testsuite/ext/malloc_allocator/instantiate.cc: this.
500         * testsuite/ext/debug_allocator/instantiate.cc: this.
502 2004-08-30  Phil Edwards  <phil@codesourcery.com>
504         * docs/html/install.html:  Update locales list (from Paolo).
505         Remove other redundant information and point to the GCC install
506         documentation.
508 2004-08-30  Benjamin Kosnik  <bkoz@redhat.com>
510         * include/ext/pool_allocator.h: Rename __pool_base to
511         __pool_alloc_base.
512         * src/allocator.cc: Same.
513         * config/linker-map.gnu: Same.
515 2004-08-30  Paolo Carlini  <pcarlini@suse.de>
516             Kenneth C. Schalk  <ken@xorian.net>
518         PR libstdc++/17215
519         * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
520         Check the return value of fclose/sync, loop on EINTR.
521         (__basic_file<char>::sys_open): Likewise, for sync.
523 2004-08-29  Paolo Carlini  <pcarlini@suse.de>
525         * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
526         case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
527         and 7.23.3.5), two if !_GLIBCXX_USE_C99.
528         * testsuite/22_locale/time_get/get_time/char/4.cc: New.
529         * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
531 2004-08-27  Jason Merrill  <jason@redhat.com>
533         PR c++/13684
534         * libsupc++/guard.cc (static_mutex): Internal class implementing a
535         recursive mutex which controls initialization of local statics.
536         (__gnu_cxx::recursive_init): New exception class.
537         (__cxa_guard_acquire): Deal with locking and recursion detection.
538         (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
540 2004-08-27  Matthias Klose  <doko@debian.org>
542         * configure.host: For mips*-*-linux* update cpu_include_dir
543         after atomicity_dir is set.
545 2004-08-27  Matthias Klose  <doko@debian.org>
547         * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
548         * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
549         * configure.host: Set abi_baseline_pair for arm*-*-linux* and
550         mips*-*-linux*.
552 2004-08-27  Paolo Carlini  <pcarlini@suse.de>
554         * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
555         * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
556         * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
557         * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
558         * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
560         * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
561         formatting fixes.
562         * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
563         * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
564         * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
565         * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
567 2004-08-25  Paolo Carlini  <pcarlini@suse.de>
569         PR libstdc++/17038 (partial)
570         * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
571         __maxlen to 128.
572         * include/bits/locale_facets.h (class __timepunct): Add FIXME
573         comment about _M_put.
574         * config/locale/generic/time_members.cc (_M_put): Always null
575         terminate __s.
576         * config/locale/gnu/time_members.cc (_M_put): Likewise.
577         * testsuite/22_locale/time_put/put/char/17038.cc: New.
578         * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
580 2004-08-24  Paolo Carlini  <pcarlini@suse.de>
582         * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
583         * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
584         * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
585         * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
586         * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
587         * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
589         * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
590         newlines.
591         * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
593 2004-08-22  Matthias Klose  <doko@debian.org>
595         * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
596         * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
598 2004-08-23  Paolo Carlini  <pcarlini@suse.de>
600         * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
601         * aclocal.m4: Regenerate with automake-1.9.1.
602         * configure: Regenerate.
603         * Makefile.in: Likewise.
604         * include/Makefile.in: Likewise.
605         * libmath/Makefile.in: Likewise.
606         * libsupc++/Makefile.in: Likewise.
607         * po/Makefile.in: Likewise.
608         * src/Makefile.in: Likewise.
609         * testsuite/Makefile.in: Likewise.
611 2004-08-22  Paolo Carlini  <pcarlini@suse.de>
613         * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
614         to a signed type, long according to the resolution of DR 359.
615         * testsuite/22_locale/num_put/put/char/9.cc: New.
616         * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
618         * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
619         Simplify a bit: no need to clear showpos.
621 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
623         * include/bits/char_traits.h (struct _Char_traits_match): Remove,
624         unused.
626 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
628         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
629         wchar_t type for the fill argument; minor formatting tweaks.
630         * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
631         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
632         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
633         * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
634         * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
635         * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
637 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
639         * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
640         with _M_word != _M_local_word two times, redundantly.
642 2004-08-20  Jason Merrill  <jason@redhat.com>
644         * include/Makefile.am (${host_builddir}/gthr.h): Don't add
645         _GLIBCXX_ to #pragma lines.
646         * include/Makefile.in: Update.
648 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
650         PR libstdc++/7219 (continued)
651         * include/bits/ios_base.h (class ios_base): Expose Annex D.6
652         typedefs by default.
653         * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
654         * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
655         line number.
656         * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
658 2004-08-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
660         * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
661         barrier to locking asm.
663 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
665         * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
666         actually the warning is a front-end bug (c++/17120).
668 2004-08-20  Matthias Klose  <doko@debian.org>
670         * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
672 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
674         * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
675         used as truth value warning.
677 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
679         * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
680         baseline.
682 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
684         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
686 2004-08-19  Benjamin Kosnik  <bkoz@redhat.com>
688         * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
689         timezone.
690         * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
692 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
694         * testsuite/performance/20_util/allocator/insert.cc: For std::map
695         instantiate the allocator for a correct pair type.
696         * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
697         * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
698         * testsuite/performance/20_util/allocator/producer_consumer.cc:
699         Likewise.
701         * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
702         minor formatting fixes.
703         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
705 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
707         * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
708         results.
709         * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
710         * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
711         * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
712         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
713         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
714         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
715         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
717 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
719         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
721 2004-08-18  Matthias Klose  <doko@debian.org>
723         * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
724         * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
725         * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
727 2004-08-17  Paolo Carlini  <pcarlini@suse.de>
729         * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
731 2004-08-17  Paolo Carlini  <pcarlini@suse.de>
733         * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
735 2004-08-17  Benjamin Kosnik  <bkoz@redhat.com>
737         * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
739 2004-08-16  Paolo Carlini  <pcarlini@suse.de>
741         * include/bits/indirect_array.h: Trivial formatting fixes.
742         * include/bits/valarray_after.h: Likewise.
743         * include/bits/valarray_array.h: Likewise.
744         * src/valarray-inst.cc: Likewise.
746 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
748         * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
749         * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
750         * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
752         * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
753         * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
754         * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
755         * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
756         * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
758 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
760         * include/bits/deque.tcc: Trivial formatting fixes.
762 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
764         * include/bits/deque.tcc: Trivial formatting fixes.
766         * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
767         Remove unneded typedef.
769         * include/bits/locale_facets.tcc: Very minor tweaks.
771         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
772         type for the fill argument.
773         * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
774         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
775         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
776         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
777         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
778         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
779         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
780         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
782 2004-08-13  Paolo Carlini  <pcarlini@suse.de>
784         * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
785         memmove is not needed, memcpy suffices.
787 2004-08-13  Paolo Carlini  <pcarlini@suse.de>
789         * include/std/std_fstream.h (class basic_ifstream,
790         class basic_ofstream, class basic_fstream): Add const overloads
791         of is_open, as per DR 365 [WP].
792         * docs/html/ext/howto.html: Add an entry for DR 365.
794 2004-08-12  Paolo Carlini  <pcarlini@suse.de>
796         * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
798 2004-08-12  Paolo Carlini  <pcarlini@suse.de>
800         PR libstdc++/16956
801         * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
802         to the returned value, reorganize a bit.
803         * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
804         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
806         * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
807         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
808         * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
809         * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
811 2004-08-12  Paul Brook  <paul@codesourcery.com>
813         * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
814         _GLIBCXX_CXA_VEC_CTOR_RETURN.
815         * config/cpu/generic/cxxabi_tweaks.h: Ditto.
816         * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
817         __cxa_vec_ctor_return.
818         * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
819         Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
821 2004-08-12  Kelley Cook  <kcook@gcc.gnu.org>
823         * Makefile.in, aclocal.m4, configure, include/Makefile.in,
824         libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
825         src/Makefile.in, testsuite/Makefile.in: Regenerate
827 2004-08-12  Jan Beulich  <jbeulich@novell.com>
829         * config/locale/generic/ctype_members.cc
830         (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
831         initializer for return value, as that is invalid for enumerated types.
832         * config/locale/gnu/ctype_members.cc
833         (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
835 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
837         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
839 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
841         * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
842         variable.
843         * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
844         * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
845         * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
846         * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
847         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
848         * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
849         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
850         * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
851         * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
852         * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
853         * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
854         * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
855         * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
856         * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
857         * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
858         * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
859         * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
860         * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
861         * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
862         * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
863         * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
865 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
866             Petur Runolfsson  <peturr02@ru.is>
868         PR libstdc++/16959
869         * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
870         standard streams are constructed.
871         * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
873 2004-08-09  Paolo Carlini  <pcarlini@suse.de>
875         * include/bits/stl_bvector.h: Trivial formatting fixes.
877 2004-08-09  Paolo Carlini  <pcarlini@suse.de>
879         * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
881 2004-08-07  Jonathan Wakely  <redi@gcc.gnu.org>
882             Paolo Carlini  <pcarlini@suse.de>
884         * src/debug.cc (_Error_formatter::_M_print_string): In order
885         to print individual words from __string, _M_format_word can't
886         be called since may be just sprintf, thus ignoring completely
887         __n: instead, use memmove and append '\0' by hand.
889 2004-08-07  Paolo Carlini  <pcarlini@suse.de>
891         * config/locale/generic/c_locale.h (__convert_from_v): Don't
892         use a default for __prec, assume __prec >= 0 and simplify.
893         * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
894         * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
895         Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
897 2004-08-04  Phil Edwards  <phil@codesourcery.com>
899         * docs/html/configopts.html:  Emphasize that options change.
900         * docs/html/17_intro/configury.html:  Update links.
902 2004-08-03  Paolo Carlini  <pcarlini@suse.de>
904         * include/bits/list.tcc: Trivial formatting fixes.
906 2004-08-03  Mark Mitchell  <mark@codesourcery.com>
908         * libsupc++/new_op.cc: Update comments.
909         * libsupc++/del_op.cc: Likewise.
911 2004-08-02  Mark Mitchell  <mark@codesourcery.com>
913         * libsupc++/cxxabi.h: Make all declarations have default
914         visibility.
915         * libsupc++/exception: Likewise.
916         * libsupc++/new: Likewise.
917         * libsupc++/typeinfo: Likewise.
918         * libsupc++/unwind-cxx.h: Likewise.
919         * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
920         the __cxxabiv1 namespace.
921         (__cxa_free_exception): Likewise.
922         * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
923         (__cxa_bad_typeid): Likewise.
924         * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
925         (__cxa_end_catch): Likewise.
926         * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
927         (__cxa_get_globals): Likewise.
928         * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
929         (__cxa_rethrow): Likewise.
930         * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
931         * libsupc++/eh_type.cc: Include <cxxabi.h>.
933         * Makefile.am (hosted_source): Add libmath and testsuite.
934         (SUBDIRS): Remove them.
935         * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
936         on arm*-*-symbianelf*.
937         * crossconfig.m4: Add arm*-*-symbianelf* support.
938         * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
939         when freestanding.  Do not bring names into std:: namespace with
940         "using" when freestanding.  Declare required functions and macros
941         when freestanding.
942         * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
943         when freestanding.
944         * libsupc++/del_op.cc: Declare "free" only when freestanding.
945         * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
946         (malloc): Declare when freestanding.
947         (free): Likewise.
948         (memset): Likewise.
949         (__cxa_allocate_exception): Call malloc, not std::malloc.  Likewise
950         for memset.
951         (__cxa_free_exception): Likewise for free.
952         * libsupc++/new_op.cc: Declare "malloc" when freestanding.
953         * libsupc++/pure.cc (writestr): Define to nothing when
954         freestanding.
955         * libsupc++/vterminate.cc: Do not define anything when
956         freestanding.
957         * Makefile.in: Regenerated.
958         * aclocal.m4: Likewise.
959         * configure: Likewise.
960         * include/Makefile.in: Likewise.
961         * libmath/Makefile.in: Likewise.
962         * libsupc++/Makefile.in: Likewise.
963         * po/Makefile.in: Likewise.
964         * src/Makefile.in: Likewise.
965         * testsuite/Makefile.in: Likewise.
967 2004-08-01  Matt Austern  <austern@apple.com>
969         PR libstdc++/16844
970         * include/bits/stl_list.h (_M_create_node): Remove unused
971         zero-argument version.
972         * include/ext/slist (_M_create_node): Pass two arguments to
973         allocator's construct() member function.
974         * testsuite/23_containers/deque/explicit_instantiation.cc: New.
975         * testsuite/23_containers/list/explicit_instantiation.cc: New.
976         * testsuite/23_containers/vector/explicit_instantiation.cc: New.
977         * testsuite/23_containers/map/explicit_instantiation.cc: New.
978         * testsuite/23_containers/set/explicit_instantiation.cc: New.
979         * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
980         * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
981         * testsuite/ext/hash_set_explicit_instantiation.cc: New.
982         * testsuite/ext/slist_explicit_instantiation.cc: New.
984 2004-07-30  Paolo Carlini  <pcarlini@suse.de>
986         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
987         num_get<>::_M_extract_int): In the main parsing loop delay the
988         life of __q to the actual use point.
990 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
992         PR libstdc++/14220
993         * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
994         Don't clip the precision passed down to __convert_from_v:
995         22.2.2.2.2 nowhere says so.
996         * testsuite/22_locale/num_put/put/char/14220.cc: New.
997         * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
999 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
1001         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
1003 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
1004             Petur Runolfsson  <peturr02@ru.is>
1006         PR libstdc++/12658 (continued)
1007         * src/locale_init.cc (locale::locale, locale::global): Use
1008         a single locale_mutex instead of two separate mutexes.
1010 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
1012         PR libstdc++/16813
1013         * include/debug/map.h (insert(_InputIterator, _InputIterator)):
1014         Fix typo.
1015         * testsuite/23_containers/map/insert/16813.cc: New.
1017 2004-07-29  Phil Edwards  <phil@codesourcery.com>
1019         * docs/html/faq/index.html:  Update version references.  Make
1020         clear that code from SGI has diverged greatly.  Remove references
1021         to library snapshots and what's-new sections.
1022         * docs/html/faq/index.txt:  Regenerate.
1024 2004-07-28  Matt Austern  <austern@apple.com>
1026         * include/bits/stl_construct.h (_Destroy): New three-argument
1027         overload that takes an allocator argument.  Another inline
1028         three-argument overload that takes std::allocator and dispatches
1029         to the two-argument version.
1030         * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
1031         Change return type to void to match uninitialized_fill_n.
1032         (__uninitialized_copy_a_): New function.  Like uninitialized_copy
1033         except that it takes an allocator and uses it for construct and
1034         destroy.  If the allocator is std::allocator, dispatches to
1035         uninitialized_copy.
1036         (__uninitialized_fill_a): Likewise.
1037         (__uninitialized_fill_n_a): Likewise.
1038         (__uninitialized_copy_copy): Give it an allocator argument.
1039         (__uninitialized_fill_copy): Likewise.
1040         (__uninitialized_copy_fill): Likewise.
1041         * include/bits/deque.tcc: Use new forms defined in stl_construct.h
1042         and stl_uninitialized.h.  Replace use of single-argument _Construct
1043         and _Destroy with use of allocator's construct and destroy methods.
1044         * include/bits/list.tcc: Likewise.
1045         * include/bits/stl_deque.h: Likewise.
1046         * include/bits/stl_list.h: Likewise.
1047         * include/bits/stl_tree.h: Likewise.
1048         * include/bits/stl_vector.h: Likewise.
1049         * include/bits/vector.tcc: Likewise.
1050         * include/ext/hashtable.h: Use rebind so that allocator_type
1051         has correct type for a container's allocator.  Replace use of
1052         single-argument _Construct and _Destroy with use of allocator's
1053         construct and destroy methods.
1054         * include/ext/memory (__uninitialized_copy_n_a): New function.
1055         Like uninitialized_copy_n except that it takes an extra parameter,
1056         an allocator, and uses it for construct and destroy operations.
1057         * include/ext/rope: Use new forms defined in stl_construct.h,
1058         stl_uninitialized.h, and ext/memory.  Replace use of single-argument
1059         _Construct and _Destroy with allocator construct and destroy methods.
1060         * include/ext/ropeimpl.h: Likewise.
1061         * include/ext/slist.h: Likewise.
1062         * testsuite/testsuite_allocator.h (check_construct_destroy): New.
1063         * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
1064         * testsuite/23_containers/deque/check_construct_destroy.cc: New.
1065         * testsuite/23_containers/list/check_construct_destroy.cc: New.
1066         * testsuite/23_containers/set/check_construct_destroy.cc: New.
1067         * testsuite/23_containers/vector/check_construct_destroy.cc: New.
1068         * testsuite/ext/hash_check_construct_destroy.cc: New.
1069         * testsuite/ext/slist_check_construct_destroy.cc: New.
1071 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
1073         2003-10-01  Eric Christopher  <echristo@redhat.com>
1074         * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
1075         constraint.
1076         2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
1077         * config/cpu/sh/atomicity.h: New.  Use movli and movco on SH4a.
1079 2004-07-23  Benjamin Kosnik  <bkoz@redhat.com>
1081         PR libstdc++/16678
1082         * include/bits/locale_facets.tcc: Fix for -Werror.
1084 2004-07-23  Jonathan Wakely  <redi@gcc.gnu.org>
1086         * docs/html/debug.html: Say debug mode only available since 3.4.0.
1088 2004-07-21  Benjamin Kosnik  <bkoz@redhat.com>
1090         * docs/doxygen/mainpage.html: Clarify links.
1091         * docs/doxygen/stdheader.cc: Add files.
1092         * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
1093         * docs/doxygen/user.cfg.in: New options, wrap.
1095 2004-07-20  Danny Smith  <dannysmith@users.sourceforge.net>
1097         * include/c_std/std_cwchar.h (wcsstr): Correct signature.
1099 2004-07-19  Benjamin Kosnik  <bkoz@redhat.com>
1101         PR libstdc++/15488
1102         * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
1104 2004-07-17  Richard Sandiford  <rsandifo@redhat.com>
1106         PR bootstrap/16469
1107         * scripts/create_testsuite_files: Pass -print to find.
1109 2004-07-15  Paolo Carlini  <pcarlini@suse.de>
1111         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
1112         * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
1114 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
1116         PR libstdc++/14697
1117         * acinclude.m4 (glibcxx_shared_libgcc): Correct
1118         glibcxx_shared_libgcc test for multilibs.
1119         * configure: Rebuilt.
1121 2004-07-14  Paolo Carlini  <pcarlini@suse.de>
1123         PR libstdc++/16505
1124         * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
1125         the signature to return void, as per 20.4.4.3.
1126         * include/bits/stl_vector.h (vector::vector(size_type,
1127         const value_type&, const allocator_type&), vector::vector(size_type),
1128         vector::_M_initialize_dispatch): Adjust callers.
1129         * include/bits/vector.tcc (vector<>::_M_fill_assign,
1130         vector<>::_M_fill_insert): Likewise.
1131         * testsuite/20_util/memory/16505.cc: New.
1133 2004-07-14  Paolo Carlini  <pcarlini@suse.de>
1135         * testsuite/22_locale/locale/cons/12658_thread-1.cc,
1136         12658_thread-2.cc: Use __gnu_test::try_named_locale.
1138 2004-07-13  Benjamin Kosnik  <bkoz@redhat.com>
1140         * docs/html/ext/mt_allocator.html: Add docs for _Tune.
1141         * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
1142         (__mt_alloc::_S_set_options): Same.
1143         Add to comments.
1145 2004-07-13  Benjamin Kosnik  <bkoz@redhat.com>
1147         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
1148         for linux.
1149         * configure: Regenerated.
1151 2004-07-13  Paolo Carlini  <pcarlini@suse.de>
1153         * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
1154         to 12658_thread-1.cc and xfail.
1155         * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
1156         simpler version of 12658_thread-1.cc, still failing on 3_3 and
1157         not failing on 3_4/mainline - both on single processor and
1158         multiprocessor machines.
1160 2004-07-12  Benjamin Kosnik  <bkoz@redhat.com>
1162         * docs/html/abi.html: Remove non-public qualification.
1164         * include/bits/concurrence.h: Tweak comments.
1166 2004-07-11  Paolo Carlini  <pcarlini@suse.de>
1168         Add wchar_t counterparts of the basic_streambbuf<char> tests.
1169         * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
1170         * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
1171         Likewise.
1172         * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
1173         * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
1174         3599.cc: Likewise.
1175         * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
1176         * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
1177         * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
1178         * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
1179         * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
1180         Likewise.
1181         * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
1183         * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
1184         tweaks.
1185         * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
1186         Likewise.
1187         * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
1188         * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
1190 2004-07-11  Phil Edwards  <phil@codesourcery.com>
1192         * acinclude.m4:  Cosmetic shell syntax fixes.
1193         * configure.ac:  Bring comment inline with reality.
1194         * configure.host:  Both of the above.  Move 'arm' case to right
1195         place in host_cpu switch.
1196         * aclocal.m4, configure:  Regenerate.
1198 2004-07-09  Paolo Carlini  <pcarlini@suse.de>
1200         Add wchar_t counterparts of the basic_stringbuf<char> tests.
1201         * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
1202         * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
1203         * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
1204         3599.cc, 9988.cc: Likewise.
1205         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
1206         Likewise.
1207         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
1208         Likewise.
1209         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
1210         Likewise.
1211         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
1212         Likewise.
1213         * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
1214         * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
1215         * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
1216         * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
1217         Likewise.
1218         * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
1219         9404-1.cc: Likewise.
1220         * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
1221         9404-2.cc: Likewise.
1222         * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
1223         3955.cc: Likewise.
1224         * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
1225         * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
1227 2004-07-08  Paolo Carlini  <pcarlini@suse.de>
1229         * include/bits/gslice.h: Trivial formatting fixes.
1230         * include/bits/gslice_array.h: Likewise.
1231         * include/bits/indirect_array.h: Likewise.
1232         * include/bits/mask_array.h: Likewise.
1233         * include/bits/slice_array.h: Likewise.
1234         * include/bits/valarray_after.h: Likewise.
1235         * include/bits/valarray_array.h: Likewise.
1236         * include/bits/valarray_before.h: Likewise.
1237         * include/std/std_valarray.h: Likewise.
1239 2004-07-08  Benjamin Kosnik  <bkoz@redhat.com>
1241         PR c++/16169
1242         * include/bits/basic_string.h (basic_string::operator=): Revert.
1244 2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>
1246         * configure.ac (libtool_VERSION): To 6:2:0.
1247         * configure: Regenerated.
1249         * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
1251 2004-07-07  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
1253         PR libstdc++/16411
1254         * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
1256 2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>
1258         * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
1259         -Weffc++ issues.
1261 2004-07-07  Paolo Carlini  <pcarlini@suse.de>
1263         PR libstdc++/16401
1264         * include/bits/sstream.tcc (overflow): When reallocating _M_string
1265         use an exponential grow policy.
1266         * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
1267         * testsuite/performance/27_io/stringbuf_overflow.cc: New.
1269 2004-07-06  Anssi Hannula  <anssi.hannula@mbnet.fi>
1271         PR libstdc++/15928
1272         * crossconfig.m4: Add in bits for djgpp.
1273         * configure: Regenerate.
1275 2004-07-05  Jonathan Wakely  <redi@gcc.gnu.org>
1277         * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
1278         instantiation of set and multiset (functor param given as int).
1280 2004-07-04  Paolo Carlini  <pcarlini@suse.de>
1282         * include/bits/basic_string.h: Trivial formatting fixes and/or
1283         const-ification of some variables.
1284         * include/bits/deque.tcc: Likewise.
1285         * include/bits/stl_algobase.h: Likewise.
1286         * include/bits/stl_bvector.h: Likewise.
1287         * include/bits/stl_construct.h: Likewise.
1288         * include/bits/stl_deque.h: Likewise.
1289         * include/bits/stl_pair.h: Likewise.
1290         * include/bits/stl_vector.h: Likewise.
1291         * include/bits/vector.tcc: Likewise.
1293 2004-07-04  Paolo Carlini  <pcarlini@suse.de>
1295         * testsuite/25_algorithms/copy/1.cc: Add instantiations for
1296         systems with no COMDAT or weak support.
1297         * testsuite/25_algorithms/copy/2.cc: Likewise.
1298         * testsuite/25_algorithms/copy/3.cc: Likewise.
1299         * testsuite/25_algorithms/copy/4.cc: Likewise.
1301 2004-07-03  Paul Brook  <paul@codesourcery.com>
1303         * configure.ac: Set ABI_TWEAKS_SRCDIR.
1304         * configure.host: Set abi_tweaks_dir.  Check for atomicity.h when
1305         setting atomicity_dir.  Override type_cpu for arm based targets.
1306         * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
1307         * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
1308         * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
1309         * libsupc++/vec.cc: Ditto.
1310         * config/cpu/arm/cxxabi_tweaks.h: New file.
1311         * config/cpu/generic/cxxabi_tweaks.h: New file.
1312         * */Makefile.in: Regenerate.
1313         * configure: Regenerate.
1315 2004-07-02  Paolo Carlini  <pcarlini@suse.de>
1317         * include/bits/type_traits.h (_Is_normal_iterator): Move...
1318         * include/bits/cpp_type_traits.h: ... here, renamed to
1319         __is_normal_iterator and consistent with the other traits.
1320         * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
1321         to the struct __copy_normal and three specializations.
1322         (__copy_backward_output_normal_iterator,
1323         __copy_backward_input_normal_iterator): Likewise, convert to
1324         the struct __copy_backward_normal and three specializations.
1325         (copy, copy_backward): Use the latter.
1326         (__copy_aux, __copy_backward_aux): Very minor tweaks.
1328 2004-07-01  Paolo Carlini  <pcarlini@suse.de>
1330         * include/bits/stl_algobase.h (__copy_trivial): Remove.
1331         (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
1332         __is_trivially_copyable, __are_same and __copy::copy.
1333         (__copy): Rewrite as a class template and two specializations.
1334         (__copy_ni2): Simplify, just call __copy_aux.
1336         * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
1337         check.
1338         * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
1339         for destination value type != source value type.
1341 2004-07-01  Benjamin Kosnik  <bkoz@redhat.com>
1342             Per Bothner  <per@bothner.com>
1343             Mohan Embar  <gnustuff@thisiscool.com>
1345         PR libstdc++/16248
1346         * include/bits/concurrence.h (__glibcxx_mutex_type): New.
1347         (__glibcxx_mutex): Encapsulate mutex init function into type for
1348         threaded configurations without __GTHREAD_MUTEX_INIT.
1349         (lock::lock): Make device member a reference.
1350         (lock::~lock): Same.
1351         * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
1352         to mutex_type.
1353         * src/allocator.cc: Same.
1355 2004-06-30  Brad Spencer  <spencer@infointeractive.com>
1357         * include/ext/mt_allocator.h: Handle allocations at static
1358         initialization that happen before _S_options is (automatically)
1359         constructed; set _S_init even if _M_force_new is true.
1361 2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
1363         * config/linker-map.gnu: Revert new exports.
1365 2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
1366             Stuart Anderson  <anderson@netsweng.com>
1368         * config/linker-map.gnu: Add destructor exports for abstract base
1369         classes to conform to LSB.
1371 2004-06-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1372             Paolo Carlini  <pcarlini@suse.de>
1374         * include/bits/cpp_type_traits.h: Add __is_pointer and
1375         __is_trivially_copyable.
1376         * include/bits/stl_algobase.h (fill, fill_n): Slightly
1377         tweak to use the latter.
1378         (__copy_backward_dispatch): Remove.
1379         (__copy_backward_aux): Rewrite to use __is_pointer and
1380         __is_trivially_copyable and __copy_backward::copy_b.
1381         (__copy_backward): Rewrite as a class template and two
1382         specializations.
1384 2004-06-30  Paolo Carlini  <pcarlini@suse.de>
1386         * testsuite/25_algorithms/copy.cc: Move to...
1387         * testsuite/25_algorithms/copy/1.cc: ... here, extend.
1388         * testsuite/25_algorithms/copy/2.cc: New.
1389         * testsuite/25_algorithms/copy/3.cc: New.
1390         * testsuite/25_algorithms/copy/4.cc: New.
1392 2004-06-29  Paul Brook  <paul@codesourcery.com>
1394         * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
1395         element size in the cookie.
1397 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
1399         * include/bits/cpp_type_traits.h: Move the additions to
1400         namespace __gnu_internal outside of namespace std; trivial
1401         formatting fixes.
1403 2004-06-28  Benjamin Kosnik  <bkoz@redhat.com>
1405         * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
1406         Revert -Weffc++ changes that defined copy ctory and or assignment
1407         operator.
1408         * libsupc++/tinfo.cc (__upcast_result): Same.
1410 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
1412         * src/localename.cc (locale::_Impl::_Impl): Slightly improve
1413         the algorithm used to name the categories.
1415 2004-06-28  Paolo Bonzini  <bonzini@gnu.org>
1417         * include/Makefile.am: Give a .gch extension to
1418         the PCH files, not only to the directory.
1419         * include/Makefile.in: Regenerate.
1421 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
1423         * config/locale/gnu/monetary_members.cc
1424         (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
1425         assignments of _M_decimal_point and _M_thousands_sep.
1427 2004-06-27  Paolo Carlini  <pcarlini@suse.de>
1429         * docs/html/17_intro/contribute.html: Update some links.
1430         * docs/html/17_intro/porting-howto.html: Likewise.
1431         * docs/html/17_intro/porting-howto.xml: Likewise.
1432         * docs/html/18_support/howto.html: Likewise.
1433         * docs/html/21_strings/howto.html: Likewise.
1434         * docs/html/27_io/howto.html: Likewise.
1435         * docs/html/configopts.html: Likewise.
1436         * docs/html/ext/howto.html: Likewise.
1437         * docs/html/faq/index.html: Likewise.
1438         * docs/html/install.html: Don't mention 2.x compilers.
1440 2004-06-27  Paolo Carlini  <pcarlini@suse.de>
1442         * include/ext/rope: Trivial formatting fixes.
1443         * include/ext/ropeimpl.h: Likewise.
1445 2004-06-26  Paolo Carlini  <pcarlini@suse.de>
1447         PR libstdc++/16210
1448         * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
1449         availability of strto(u)ll, not used anymore in the iostreams.
1450         * configure: Regenerate.
1452 2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>
1454         PR libstdc++/16182
1455         * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
1456         AC_DEFINE_UNQUOTED.
1457         * configure: Regenerate.
1459 2004-06-25  Paul Brook  <paul@codesourcery.com>
1461         * libsupc++/cxxabi.h: Define __ARM_EABI__
1462         (__guard): Use it.
1463         * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
1465 2004-06-25  Paul Brook  <paul@codesourcery.com>
1467         * include/bits/concurrence.h: Still create mutex object when
1468         single-threaded.
1470 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
1472         * include/bits/stl_algobase.h (fill, fill_n): Revert last
1473         change: actually we need to copy construct an object of type
1474         _Tp, not of type iterator_traits<>::value_type, therefore the
1475         code is ok.
1477 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
1479         * include/bits/stl_algobase.h (fill, fill_n): Tighten the
1480         dispatch: use iterator_traits<>::value_type, not _Tp.
1482 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
1484         * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
1485         * testsuite/25_algorithms/fill/2.cc: Likewise.
1487 2004-06-25  Dan Nicolaescu  <dann@ics.uci.edu>
1488             Paolo Carlini  <pcarlini@suse.de>
1490         * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
1491         for fill and fill_n, respectively: when copying is cheap, use a
1492         temporary to avoid a memory read in each iteration.
1494 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
1496         * testsuite/25_algorithms/fill/1.cc: New.
1497         * testsuite/25_algorithms/fill/2.cc: Likewise.
1499 2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>
1501         * include/debug/formatter.h (__gnu_debug::_Error_formatter):
1502         Remove copy constructor and assignment operator.
1504 2004-06-24  Benjamin Kosnik  <bkoz@redhat.com>
1506         * include/bits/concurrence.h (__gnu_cxx::lock): New.
1507         * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
1508         (__pool_base::_M_get_mutex): New.
1509         * include/bits/allocator.h: Tweak.
1510         * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
1511         * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
1512         * include/bits/stl_threads.h: Remove.
1513         * include/Makefile.am: Also here.
1514         * include/Makefile.in: Regenerate.
1516         * src/locale_init.cc: Use __gnu_cxx::lock.
1518         * src/allocator.cc: Move all instantiations...
1519         * src/allocator-inst.cc: ...here.
1521 2004-06-23  Andrew Pinski  <apinski@apple.com>
1523         * linkage.m4: Remove check for libmx.
1524         * configure: Regenerate.
1526 2004-06-23  Paolo Carlini  <pcarlini@suse.de>
1528         PR libstdc++/16154
1529         * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
1530         Don't require the _DefaultConstructibleConcept.
1531         (struct _ForwardIteratorConcept): Require it here.
1533 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
1535         * include/bits/istream.tcc (getline): Make sure arguments passed
1536         to min/max have the same type.
1537         * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
1538         * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
1540 2004-06-22  Benjamin Kosnik  <bkoz@redhat.com>
1542         * docs/html/abi.html: Update links.
1544 2004-06-22  Paolo Carlini  <pcarlini@suse.de>
1546         * testsuite/26_numerics/complex_inserters_extractors.cc,
1547         complex_value.cc, buggy_complex.cc: Move to...
1548         * testsuite/26_numerics/complex/: ... here.
1549         * testsuite/26_numerics/c99_classification_macros_c++.cc,
1550         c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
1551         fabs_inline.cc: Move to...
1552         * testsuite/26_numerics/cmath/: ... here.
1553         * testsuite/26_numerics/binary_closure.cc, slice.cc,
1554         slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
1555         valarray_name_lookup.cc, valarray_operators.cc,
1556         valarray_subset_assignment.cc: Move to...
1557         * testsuite/26_numerics/valarray/: ... here (new dir).
1558         * testsuite/26_numerics/sum_diff.cc: Move to...
1559         * testsuite/26_numerics/numeric/: ... here (new dir).
1561 2004-06-22  Paolo Carlini  <pcarlini@suse.de>
1563         * include/std/std_istream.h (ignore(streamsize __n = 1,
1564         int_type __delim = traits_type::eof())): Split into...
1565         (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1566         int_type __delim)): The first two can be much more simpler
1567         and efficient than the fully general case; also, the last
1568         two can take advantage of the same mechanism already used
1569         for getline.
1570         * include/bits/istream.tcc (ignore(streamsize __n = 1,
1571         int_type __delim = traits_type::eof()): Remove.
1572         (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1573         int_type __delim)): New.
1575 2004-06-21  Loren J. Rittle  <ljrittle@acm.org>
1577         * config/linker-map.gnu: Use wildcards for
1578         __basic_file::sys_open(FILE*, _Ios_Openmode).
1580 2004-06-20  Paolo Carlini  <pcarlini@suse.de>
1582         * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
1584 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
1586         * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
1587         the alignment requested.
1588         (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
1589         (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
1590         (__mt_alloc<>::deallocate): Likewise.
1592 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
1594         PR libstdc++/16020
1595         * include/debug/safe_base.h
1596         (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
1597         _Safe_sequence_base::operator=): Provide definitions.
1598         * testsuite/23_containers/bitset/cons/16020.cc: New.
1600 2004-06-18  Benjamin Kosnik  <bkoz@redhat.com>
1602         * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
1603         (__pool_base): Remove unused template parameter.  Add
1604         protected. Move lock data into __pool_base::_Lock. Remove static
1605         on member functions.
1606         (__pool_base::_M_get_free_list): New.
1607         (__pool_alloc): Move _S_force new here.
1608         * src/allocator.cc: Move out of line __pool_base definitions here.
1609         * config/linker-map.gnu: Export bits from __pool_base.
1611 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
1613         * config/locale/gnu/numeric_members.cc
1614         (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
1615         assignments of _M_decimal_point and _M_thousands_sep.
1616         * config/locale/gnu/time_members.cc
1617         (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
1618         and reformat assignments of date and time fields.
1620 2004-06-16  Paolo Carlini  <pcarlini@suse.de>
1622         * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
1623         to use _Data_allocate.
1624         * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
1625         (rope<>::_S_substring): Likewise.
1626         (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
1627         (rope<>::c_str()): Likewise.
1628         (rope<>::replace_with_c_str()): Likewise.
1630         * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
1631         Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
1632         not _RopeRep.
1633         (_Rope_iterator_base<>::_S_setcache): Likewise.
1634         (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
1635         (rope<>::_S_substring): Likewise.
1636         (rope<>::_S_dump): Likewise.
1637         (rope<>::_S_fetch_ptr): Likewise.
1638         (rope<>::_S_compare): Likewise.
1639         (rope<>::replace_with_c_str()): Likewise.
1641         * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
1642         * testsuite/ext/rope/2.cc: New.
1644 2004-06-16  Paolo Carlini  <pcarlini@suse.de>
1645             Matt Austern  <austern@apple.com>
1647         * testsuite/ext/rope/3.cc: New.
1649 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
1651         * acinclude.m4: Remove useless multilib configury.
1652         * Makefile.am: Remove useless multilib rules.
1653         * aclocal.m4: Regenerate.
1654         * Makefile.in: Regenerate.
1655         * configure: Regenerate.
1657 2004-06-15  Paolo Carlini  <pcarlini@suse.de>
1659         * include/ext/hashtable.h: Trivial formatting fixes.
1660         * include/ext/rb_tree: Likewise.
1662 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
1664         * include/ext/hash_map: Trivial formatting fixes.
1665         * include/ext/hash_set: Likewise.
1666         * include/ext/memory: Likewise.
1667         * include/ext/numeric: Likewise.
1669 2004-06-14  Benjamin Kosnik  <bkoz@redhat.com>
1671         * Makefile.in: Regenerate with automake 1.8.5.
1672         * aclocal.m4: Same.
1673         * include/Makefile.in: Same.
1674         * libmath/Makefile.in: Same.
1675         * libsupc++/Makefile.in: Same.
1676         * po/Makefile.in: Same.
1677         * src/Makefile.in: Same.
1678         * testsuite/Makefile.in: Same.
1680 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
1682         * include/ext/slist: Trivial formatting fixes.
1684 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
1686         * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
1687         Don't use the 'magic number' 10 in the computation of __minlen;
1688         never access __name past __minlen; in the loop over __i3, don't
1689         decrease __nmatches and increase __i3 at once, only either of
1690         the two; tidy.
1692 2004-06-13  Paolo Carlini  <pcarlini@suse.de>
1694         * include/bits/locale_facets.tcc (time_get<>::do_get_time,
1695         time_get<>::do_get_date): Use only once _M_extract_via_format,
1696         instead of going through "%X"/"%x" and calling it two times
1697         (+ using widen).
1699 2004-06-12  Paolo Carlini  <pcarlini@suse.de>
1701         * include/ext/algorithm: Trivial formatting fixes.
1702         * include/ext/functional: Likewise.
1703         * include/ext/hash_fun.h: Likewise.
1704         * include/ext/iterator: Likewise.
1706 2004-06-12  Paolo Carlini  <pcarlini@suse.de>
1708         * include/bits/basic_string.tcc (find(const _CharT*, size_type,
1709         size_type)): Reimplement using std::search.
1710         * src/string-inst.cc: Instantiate std::search for char/wchar_t.
1712 2004-06-12  Dhruv Matani  <dhruvbird@gmx.net>
1714         * testsuite/performance/21_strings/string_find.cc: New.
1716 2004-06-10  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
1718         * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
1720 2004-06-10  Jan van Dijk  <jan@etpmod.phys.tue.nl>
1722         * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
1723         this function return a value.
1725 2004-06-09  Paolo Carlini  <pcarlini@suse.de>
1727         PR libstdc++/15775
1728         * include/bits/stl_deque.h: Consistently with stl_set.h, define
1729         pointer as allocator's pointer, likewise for reference,
1730         const_pointer, and const_reference.
1731         * include/bits/stl_list.h: Likewise.
1732         * include/bits/stl_map.h: Likewise.
1733         * include/bits/stl_multimap.h: Likewise.
1734         * include/bits/stl_vector.h: Likewise.
1736 2004-06-09  Benjamin Kosnik  <bkoz@redhat.com>
1738         * crossconfig.m4: Remove signbit, signbitf, signbitl.
1739         * linkage.m4: Comment LIBMATHOBJS, tweak others.  AC_DEFINES for
1740         builtin math functions instead of AC_DEFINE_UNQUOTED.
1741         * configure: Regenerate.
1743 2004-06-08  Benjamin Kosnik  <bkoz@redhat.com>
1745         * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
1746         * docs/doxygen/mainpage.html: Remove links.
1748 2004-06-08  Jason Merrill  <jason@redhat.com>
1750         * config/linker-map.gnu: Use wildcards for
1751         __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
1753 2004-06-08  Paolo Carlini  <pcarlini@suse.de>
1755         * include/ext/pool_allocator.h: Convert to a global free-list,
1756         as per the original SGI/HP design: move the implementation
1757         details to struct __pool_base, from which __pool_alloc derives.
1758         * src/allocator.cc: Instantiate __pool_base.
1760 2004-06-07  Dhruv Matani  <dhruvbird@gmx.net>
1761             Paolo Carlini  <pcarlini@suse.de>
1763         * testsuite/testsuite_performance.h
1764         (resource_counter::allocated_memory): Make it return the right
1765         number of bytes requested by the allocators/application. This is
1766         the sbrk+mmaped memory.
1768 2004-06-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1770         * include/std/std_complex.h (log): Tidy.
1772 2004-05-31  Benjamin Kosnik  <bkoz@redhat.com>
1774         * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
1775         * testsuite/testsuite_abi.cc: Same.
1776         * configure.ac (libtool_VERSION): Bump to 6:1:0.
1777         * configure: Regenerate.
1778         * aclocal.m4: Regenerate.
1780 2004-05-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1782         * include/std/std_complex.h (complex<_Tp>): Properly indent
1783         to follow C++STYLE.
1784         (complex<>::__rep): New.
1785         (__complex_abs): New.  Dispatch to built-ins.
1786         (abs): Use them.
1787         (__complex_arg): New. Dispatch to built-ins.
1788         (arg): Use it.
1789         (__complex_cos): New. Dispatch to built-ins.
1790         (cos): Use it.
1791         (__complex_cosh): New. Dispatch to built-ins.
1792         (cosh): Use it.
1793         (__complex_exp): New. Dispatch to built-ins.
1794         (exp): Use it.
1795         (__complex_log): New. Dispatch to built-ins.
1796         (log): Use it.
1797         (__complex_sin): New. Dispatch to built-ins.
1798         (sin): Use it.
1799         (__complex_sinh): New. Dispatch to built-ins.
1800         (sinh): Use it.
1801         (__complex_sqrt): New. Dispatch to built-ins.
1802         (sqrt): Use it.
1803         (__complex_tan): New. Dispatch to built-ins.
1804         (tan): Use it.
1805         (__complex_tanh): New. Dispatch to built-ins.
1806         (tanh): Use it.
1807         (__complex_pow): New. Dispatch to built-ins.
1808         (pow): Use it.
1810 2004-05-29  Richard B. Kreckel  <Richard.Kreckel@Framatome-ANP.com>
1811             Benjamin Kosnik  <bkoz@redhat.com>
1813         PR libstdc++/14600
1814         * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
1815         * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
1816         * config/io/basic_file_stdio.cc (__basic_file::file): New.
1817         * config/io/basic_file_stdio.h: Define.
1819 2004-05-27  Benjamin Kosnik  <bkoz@redhat.com>
1821         PR libstdc++/15675
1822         * docs/html/documentation.html: Update doxygen links for 3.4.0.
1824 2004-05-27  Jan Beulich  <jbeulich@novell.com>
1826         * scripts/create_testsuite_files: Tweak.
1828 2004-05-25  Benjamin Kosnik  <bkoz@redhat.com>
1830         PR libstdc++/15489
1831         * scripts/create_testsuite_files: Revert xtype change, add non-GNU
1832         bits to do the same thing.
1834 2004-05-24  Paolo Carlini  <pcarlini@suse.de>
1836         * include/bits/istream.tcc (ignore): Correctly deal with
1837         n == numeric_limits<streamsize>::max().
1838         * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
1840         * include/bits/istream.tcc (basic_istream<>::getline): Prefer
1841         '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
1842         __n == numeric_limits<>::min().
1844         * include/bits/istream.tcc: Minor tweaks.
1846         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
1847         Tighten.
1848         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
1849         Likewise.
1850         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
1851         Likewise.
1852         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
1853         Likewise.
1854         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
1856 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
1858         PR libstdc++/12854
1859         Fixups for -Weffc++.
1860         * include/bits/basic_string.h (basic_string::operator=): Return
1861         pointer to this instead of result of assign. Although redundant,
1862         this doesn't impact resultant codegen.
1864         * include/bits/locale_facets.h (__numpunct_cache): Declare
1865         assignment opxserator and copy constructor private.
1866         (__timepunct_cache): Same.
1867         (__moneypunct_cache): Same.
1868         (collate): Use member initialization list for _M_c_locale_collate.
1869         * config/locale/gnu/messages_members.h: Same.
1870         * config/locale/gnu/time_members.h (__timepunct): Same.
1871         * src/codecvt.cc: Use member initialization list to initialize
1872         _M_c_locale_codecvt.
1873         * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
1874         * config/os/gnu-linux/ctype_noninline.h: Same.
1875         * src/locale.cc (_Impl): Same.
1876         * src/locale_init.cc: Same.
1877         * src/localename.cc: Same.
1879         * include/bits/basic_ios.h (basic_ios): Complete member
1880         initialization list.
1881         * include/bits/istream.tcc (basic_istream::sentry): Same.
1882         * include/bits/ostream.tcc (basic_ostream::sentry): Same.
1883         * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
1884         _M_pback to member initialization list.
1885         * include/std/std_streambuf.h: Same.
1886         * include/std/std_sstream.h: Same, for _M_mode.
1887         * src/ios.cc (ios_base): Same.
1889         * include/ext/rope: Make derived classes match exception
1891          specifications. Add copy constructors and assignment operators.
1893         * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
1894         constructor and assignment operator protected.
1895         (_Safe_iterator_base): Same.
1896         * include/debug/formatter.h (_Error_formatter): Define copy
1897         constructor and assignment operator.
1899         * include/backward/strstream: Declare assignment operator and copy
1900         constructor private.
1902 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
1904         * testsuite/testsuite_hooks.h (func_callback): Declare copy
1905         constructor and assignment operator private.
1906         * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
1907         exception specifications of base class.
1908         * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
1909         * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
1910         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
1912 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
1914         * libsupc++/cxxabi.h: Remove duplicated and useless public and
1915         private keywords in class declarations. Format. Use
1916         stddef.h. Expose declarations to "C" compilation.
1917         * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
1918         assignment operator.
1919         (__dyncast_result): Same.
1920         * libsupc++/vec.cc (uncatch_exception): Same, use member
1921         initialization list.
1923 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
1925         * testsuite/abi_check.cc: Add unistd.h.
1927 2004-05-22  Paolo Carlini  <pcarlini@suse.de>
1929         PR libstdc++/15565
1930         * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
1931         __int_to_char(unsigned long long)): Showpos is not relevant
1932         for unsigned types.
1933         * testsuite/22_locale/num_put/put/char/15565.cc: New.
1934         * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
1936         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
1937         char.
1938         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
1939         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
1940         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
1941         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
1942         * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
1943         * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
1945 2004-05-21  Matthias Klose  <doko@debian.org>
1947         * docs/doxygen/run_doxygen:  Bump required version.
1949 2004-05-21  Benjamin Kosnik  <bkoz@redhat.com>
1951         * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
1952         * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
1954 2004-05-21  Paolo Carlini  <pcarlini@suse.de>
1956         * include/bits/istream.tcc (ignore): Remove redundant line.
1957         (readsome): Tidy, closely following 27.6.1.3, p30.
1959 2004-05-20  Paolo Carlini  <pcarlini@suse.de>
1961         * include/bits/istream.tcc (operator>>(basic_istream<>&,
1962         basic_string<>&)): Use a temporary buffer, thus avoiding
1963         reallocation for common case.
1964         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
1965         New.
1966         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
1967         Likewise.
1969         * include/bits/istream.tcc: Const-ification of a few variables.
1971         * include/bits/ostream.tcc: Trivial formatting fixes and
1972         const-ification of some variables.
1974 2004-05-20  Benjamin Kosnik  <bkoz@redhat.com>
1976         PR libstdc++/15123
1977         PR libstdc++/13928
1978         * docs/doxygen/Intro.3: Remove Allocators.3.
1979         Add new extension headers, extension namespace list.
1980         * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
1981         Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
1982         __gnu_debug::. Remove __policy_ renames.
1983         * docs/doxygen/guide.html: Add dot note.
1984         * docs/doxygen/stdheader.cc: Edit, add files.
1985         * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
1987 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
1989         * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
1991 2004-05-18  Jan Beulich  <jbeulich@novell.com>
1993         PR libstdc++/15489
1994         * scripts/create_testsuite_files: Also find source files through
1995         symbolic links.
1997 2004-05-18  Jan Beulich  <jbeulich@novell.com>
1999         PR libstdc++/15488
2000         * testsuite/lib/libstdc++.exp: Make test files writable.
2002 2004-05-18  Paolo Carlini  <pcarlini@suse.de>
2004         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
2005         tweaks.
2007 2004-05-18  Dhruv Matani  <dhruvbird@gmx.net>
2009         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
2010         allocation loop which removes blocks from the global free list
2011         from O(N) to O(1) when the required blocks are <= the number
2012         available.
2014 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
2016         * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
2018 2004-05-17  Benjamin Kosnik  <bkoz@redhat.com>
2020         * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
2021         * testsuite/23_containers/deque/14340.cc: New.
2022         * testsuite/23_containers/list/14340.cc: New.
2023         * testsuite/23_containers/map/14340.cc: New.
2024         * testsuite/23_containers/multimap/14340.cc: New.
2025         * testsuite/23_containers/multiset/14340.cc: New.
2026         * testsuite/23_containers/set/14340.cc: New.
2027         * testsuite/23_containers/vector/14340.cc: New.
2029 2004-05-17  Douglas Gregor   <gregod@cs.rpi.edu>
2031         PR libstdc++/14340
2032         * include/debug/safe_iterator.h (_Safe_iterator converting
2033         constructor): Only allow declaration to instantiate when the
2034         incoming _Safe_iterator has exactly the right iterator type.
2036 2004-05-17  Jonathan Wakely  <redi@gcc.gnu.org>
2038         * include/bits/boost_concept_check.h: Fix old attribute syntax.
2039         * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
2040         to pass concept-checks.
2041         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2042         * testsuite/23_containers/set/modifiers/swap.cc: Same.
2043         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2045 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
2047         * include/std/std_bitset.h: Minor formatting fixes.
2049 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
2051         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2052         Consistently update __bin._M_free[0].
2053         (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
2054         __bin._M_free[0] to simplify the while loop (i.e., the number
2055         of iterations becomes known at the outset).
2057 2004-05-15  Paolo Carlini  <pcarlini@suse.de>
2059         * include/std/std_bitset.h: Trivial formatting fixes.
2061 2004-05-14  Paolo Carlini  <pcarlini@suse.de>
2062             Ivan Godard  <igodard@pacbell.net>
2064         PR libstdc++/15361
2065         * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
2066         * testsuite/23_containers/bitset/ext/15361.cc: New.
2068 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
2070         PR libstdc++/15046
2071         * crossconfig.m4: Add C99 math bits for linux crosses.
2072         * configure: Regenerate.
2074 2004-05-13  Simon Marshall <simon.marshall@misys.com>
2075             Benjamin Kosnik  <bkoz@redhat.com>
2077         PR libstdc++/15090
2078         * include/bits/locale_facets.h: Fix for -fno-for-scope.
2079         * include/debug/safe_sequence.h: Same.
2080         * include/debug/safe_iterator.tcc: Same.
2081         * src/debug.cc: Same.
2082         * src/locale.cc: Same.
2083         * src/locale_init.cc: Same.
2084         * src/localename.cc: Same.
2085         * config/locale/gnu/ctype_members.cc: Same.
2086         * config/locale/gnu/numeric_members.cc: Same.
2087         * testsuite/testsuite_abi.cc: Same.
2088         * testsuite/testsuite_hooks.cc: Same.
2090 2004-05-13  Jonathan Wakely  <redi@gcc.gnu.org>
2092         * docs/html/abi.html: Document effect of -fabi-version on value
2093         of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
2094         Fix markup.
2096 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
2098         PR libstdc++/15074
2099         * docs/html/faq/index.html: Update docs for libsupc++ usage.
2101 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
2103         PR libstdc++/15412
2104         * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
2105         __gnu_internal.
2106         (_GLIBCXX_mutex_address): Same.
2107         (_GLIBCXX_once): Same.
2108         (_GLIBCXX_mutex_init): Same.
2109         (_GLIBCXX_mutex_address_init): Same.
2111 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
2113         * docs/html/abi.html: New.
2114         * docs/html/abi.txt: Remove.
2115         * docs/html/documentation.html: Add link.
2116         * testsuite/Makefile.am: Add files.
2117         * testsuite/Makefile.in: Regenerated.
2118         * testsuite/abi_check.cc: Move and modify code into...
2119         * testsuite/testsuite_abi.cc: Add.
2120         * testsuite/testsuite_abi.h: Add.
2122         * docs/html/17_intro/TODO: Update.
2123         * include/bits/stl_pair.h: Format.
2125 2004-05-06  Matthias Klose  <doko@debian.org>
2127         * include/backward/iterator.h:  Add GPL copyright info,
2128         with exception clause.
2129         * include/bits/boost_concept_check.h: Likewise.
2130         * include
2131         * libsupc++/tinfo.h: Likewise.
2132         * po/string_literals.cc: Likewise.
2134 2004-05-03  Andreas Tobler  <a.tobler@schweiz.ch>
2136         * acinclude.m4: Replace -W with more speaking -Wextra.
2137         * configure: Rebuilt.
2139 2004-05-03  Paolo Carlini  <pcarlini@suse.de>
2141         Optimize locale::_M_impl->_M_names for the most common cases:
2142         !_M_names[0] means unnamed; !_M_names[1] means all the categories
2143         the same name (_M_names[0] && _M_names[1] means that the full set
2144         of _M_names must be processed, the general case).
2145         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
2146         Tweak, saving work when !_M_names[1].
2147         (locale::locale(const locale&, _Facet*): Simplify: now just setting
2148         _M_names[0] = 0 means unnamed.
2149         * src/locale.cc (locale::operator==): Deal first with the common,
2150         easy cases, otherwise fall back to locale::name().
2151         (locale::name()): Tweak, if !_M_names[0] just return "*".
2152         (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
2153         copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
2154         * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
2155         * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
2156         Simplify when !std::strchr, just updating _M_names[0]; clean up.
2157         (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
2158         for the general case (full set of names), then do the usual work;
2159         clean up.
2161         * src/locale.cc (locale::name()): Reserve space in __ret.
2162         * src/locale_init.cc (locale::global(const locale&)): Save
2163         the name in a temporary.
2164         * src/localename.cc (locale::locale(const char*)): Reserve space
2165         in __str.
2167 2004-04-29  Paolo Carlini  <pcarlini@suse.de>
2169         * src/locale.cc (locale::operator==): Always avoid constructing
2170         locale::name(), directly compare pairs of _M_names.
2172 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
2174         * include/bits/istream.tcc: Fix comment.
2176 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
2178         * include/bits/stl_vector.h: Trivial formatting fixes.
2179         * include/bits/vector.tcc: Likewise.
2181 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
2183         PR libstdc++/15002 (continued again)
2184         * include/bits/istream.tcc (getline(basic_istream<>&,
2185         basic_string<>&, _CharT)): Use a temporary buffer, thus
2186         avoiding reallocation for common case.
2188         * include/bits/basic_string.tcc (_S_construct(_InIterator,
2189         _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
2190         of temporary buffer to a power of two.
2192         * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
2194 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
2196         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2197         New.
2198         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2199         Likewise.
2200         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2202 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
2203             Petur Runolfsson  <peturr02@ru.is>
2205         PR libstdc++/15002 (continued)
2206         * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
2207         streamsize, char_type)): Use traits::find/copy in a loop to speed
2208         up greatly the function in the common case (I/O buffer size >> 1).
2210 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
2212         * testsuite/27_io/basic_istream/getline/char/4.cc: New.
2214         * include/bits/istream.tcc (getline(basic_istream<>&,
2215         basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
2216         of sbumpc(), consistently with the other functions, thus also
2217         dealing correctly with the case of exceeded string::max_size().
2219 2004-04-24  Matthias Klose  <doko@debian.org>
2221         Jonathan Wakely  <cow@compsoc.man.ac.uk>
2222         * docs/html/configopts.html: Fix reference to allocator config option.
2224 2004-04-23  Andrew Pinski  <pinskia@physics.uc.edu>
2226         * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
2227         * configure: Regenerate.
2229 2004-04-23  Daniel Jacobowitz  <drow@mvista.com>
2231         PR libstdc++/15047, libstdc++/11610
2232         * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
2233         (libstdc++_init): Don't pass outdir to v3-copy-files.
2235 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
2237         * include/bits/deque.tcc: Trivial formatting fixes.
2238         * include/bits/stl_deque.h: Likewise.
2239         * include/bits/stl_list.h: Likewise.
2240         * include/bits/stl_tree.h: Likewise.
2242 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
2243             Andrew Pinski  <pinskia@physics.uc.edu>
2245         * include/bits/basic_string.tcc (_M_mutate): Don't compute
2246         __src unnecessarily.
2248 2004-04-19  Benjamin Kosnik  <bkoz@redhat.com>
2250         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
2251         Clarify assertion, set test variable to false before assert.
2252         * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
2253         * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
2254         * testsuite/27_io/ios_base/storage/2.cc: Same.
2256         * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
2257         function returns.
2258         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
2259         * testsuite/27_io/fpos/14320-3.cc: Same.
2261         * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
2262         * testsuite/27_io/fpos/1.cc: Same.
2263         * testsuite/27_io/basic_stringstream/2.cc: Same.
2264         * testsuite/27_io/basic_stringbuf/4.cc: Same.
2265         * testsuite/27_io/basic_stringbuf/1.cc: Same.
2266         * testsuite/27_io/basic_stringbuf/2.cc: Same.
2267         * testsuite/27_io/basic_streambuf/2.cc: Same.
2268         * testsuite/27_io/basic_ostringstream/2.cc: Same.
2269         * testsuite/27_io/basic_ostream/2.cc: Same.
2270         * testsuite/27_io/basic_ofstream/2.cc: Same.
2271         * testsuite/27_io/basic_istringstream/2.cc: Same.
2272         * testsuite/27_io/basic_istream/2.cc: Same.
2273         * testsuite/27_io/basic_iostream/2.cc: Same.
2274         * testsuite/27_io/basic_ios/2.cc: Same.
2275         * testsuite/27_io/basic_ifstream/2.cc: Same.
2276         * testsuite/27_io/basic_fstream/2.cc: Same.
2277         * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
2279         * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
2280         unsigned against zero.
2281         * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
2282         * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
2284         * testsuite/18_support/new_delete_placement.cc: Initialize
2285         variables before first use.
2286         * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
2287         * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
2288         * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
2289         * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
2290         Same.
2291         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
2292         * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
2293         Same.
2294         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
2295         * testsuite/27_io/types/2.cc: Same.
2297         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
2298         file name.
2299         * testsuite/27_io/fpos/14775.cc: Same.
2301 2004-04-19  Paolo Carlini  <pcarlini@suse.de>
2303         PR libstdc++/15002 (partial)
2304         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2305         Special case __n2 == 1, not calling traits_type::assign/copy.
2307 2004-04-17  Benjamin Kosnik  <bkoz@redhat.com>
2309         * include/bits/stl_bvector.h: Use _M_impl._M_start.
2311 2004-04-16  Benjamin Kosnik  <bkoz@redhat.com>
2313         * include/bits/c++config (_GLIBCXX_STD): New.
2314         * src/list.cc: Use it.
2315         * include/std/std_bitset.h: Same.
2316         * include/bits/vector.tcc: Same.
2317         * include/bits/stl_set.h: Same.
2318         * include/bits/stl_multiset.h: Same.
2319         * include/bits/stl_multimap.h: Same.
2320         * include/bits/stl_map.h: Same.
2321         * include/bits/stl_list.h: Same.
2322         * include/bits/stl_vector.h: Same.
2323         * include/bits/stl_bvector.h: Same.
2324         * include/bits/stl_deque.h: Same.
2325         * include/bits/deque.tcc: Same.
2326         * include/bits/list.tcc: Same.
2327         * include/debug/vector: Same.
2328         * include/debug/set.h: Same.
2329         * include/debug/multiset.h: Same.
2330         * include/debug/multimap.h: Same.
2331         * include/debug/map.h: Same.
2332         * include/debug/list: Same.
2333         * include/debug/deque: Same.
2334         * include/debug/bitset: Same.
2335         * include/debug/formatter.h (__gnu_debug): Remove using directive.
2336         Add using declaration for std::type_info.
2337         * include/debug/safe_iterator.h: Add using declaration for
2338         std::iterator_traits and std::pair.
2339         * src/debug_list.cc: New.
2340         * src/Makefile.am: Add debug_list.cc.
2341         * src/Makefile.in: Regenerate.
2342         * config/linker-map.gnu: Add _List_node_base exports for std and
2343         __gnu_norm.
2345         * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
2346         idiom that other containers use.
2347         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2349 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
2351         PR libstdc++/14975
2352         * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
2353         in case of error.
2354         * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
2355         * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
2357 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
2359         * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
2360         used anymore.
2361         * config.h.in: Regenerate.
2363 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
2365         * config/locale/generic/monetary_members.cc
2366         (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
2367         btowc unnecessarily, just cast to wchar_t (the concerned chars
2368         all belong to the basic character set).
2369         * config/locale/generic/numeric_members.cc
2370         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2371         * config/locale/gnu/monetary_members.cc
2372         (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
2373         * config/locale/gnu/numeric_members.cc
2374         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2376 2004-04-15  Paolo Carlini  <pcarlini@suse.de>
2378         * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
2379         avoid constructing unnecessarily this->name().
2381 2004-04-14  Zack Weinberg  <zack@codesourcery.com>
2383         * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
2384         Change definition of CXX to use $(shell) instead of backticks.
2385         * testsuite/Makefile.in: Regenerate.
2387 2004-04-12  Dhruv Matani  <dhruvbird@gmx.net>
2389         * testsuite/performance/20_util/allocator/list_sort_search.cc:
2390         Minor formatting fixes.
2391         * testsuite/performance/20_util/allocator/map_mt_find.cc:
2392         Likewise.
2394 2004-04-12  Paolo Carlini <pcarlini@suse.de>
2396         * config/locale/gnu/numeric_members.cc
2397         (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
2398         in __uselocale, since btowc is called for chars belonging to
2399         the basic character set.
2401 2004-04-09  Paolo Carlini  <pcarlini@suse.de>
2403         * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
2404         * testsuite/22_locale/messages/members/char/2.cc: Ditto.
2405         * testsuite/22_locale/messages/members/char/3.cc: Ditto.
2406         * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
2407         * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
2408         * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
2409         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
2410         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
2411         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
2412         * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
2413         * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
2414         * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
2415         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
2416         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
2417         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
2418         * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
2419         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
2421 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
2423         * config/locale/generic/time_members.cc
2424         (__timepunct<char>::_M_initialize_timepunct,
2425         __timepunct<wchar_t>::_M_initialize_timepunct): the correct
2426         _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
2427         * config/locale/gnu/time_members.cc
2428         (__timepunct<char>::_M_initialize_timepunct,
2429         __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
2430         * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
2431         * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
2433         * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
2434         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
2435         * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
2436         * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
2437         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
2438         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
2439         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
2440         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
2441         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
2442         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
2443         * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
2444         * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
2445         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
2446         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
2447         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
2448         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
2449         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
2450         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
2451         * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
2452         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
2453         * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
2454         * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
2455         * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
2456         * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
2457         * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
2458         * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
2459         * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
2460         * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
2461         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
2462         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
2463         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
2464         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
2465         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
2466         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
2467         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
2468         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
2470         * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
2472 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
2474         * config/locale/gnu/monetary_members.cc
2475         (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
2476         _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
2477         and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
2478         _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
2479         * config/locale/gnu/numeric_members.cc
2480         (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
2481         and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
2483 2004-04-06  Benjamin Kosnik  <bkoz@redhat.com>
2485         Fixups for EDG front end.
2486         * include/ext/rope: Instead of non-existent function
2487         _Data_allocate, use allocator's allocate. Use this.
2488         (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
2489         enumerations from _Rope_RopeRep here.
2490         * include/ext/ropeimpl.h: Same.
2491         * src/ext-inst.cc (_S_min_len): Fix up definition.
2493         * config/locale/gnu/ctype_members.cc: Qualify base class members
2494         with this.
2495         * config/locale/generic/ctype_members.cc: Same.
2496         * config/locale/gnu/messages_members.h: Same.
2497         * config/locale/generic/messages_members.h: Same.
2498         * src/ctype.cc: Same.
2499         * include/bits/codecvt.h: Same.
2501         * include/bits/boost_concept_check.h: Declare.
2502         (__error_type_must_be_an_unsigned_integer_type): Remove this.
2503         (__error_type_must_be_an_integer_type): Remove this.
2504         (__error_type_must_be_a_signed_integer_type): Remove this.
2506         * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
2508         * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
2509         specification to definition.
2510         (__cxa_allocate_exception): Same.
2511         * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
2512         * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
2513         (__cxa_get_globals): Same.
2515         * libsupc++/del_op.cc: Add comment about freestanding.
2517 2004-04-05  Paolo Carlini  <pcarlini@suse.de>
2519         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2520         The critical section is actually very small, only two assignments.
2522 2004-04-04  Paolo Carlini  <pcarlini@suse.de>
2523             Petur Runolfsson  <peturr02@ru.is>
2525         * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
2526         adapted from libstdc++/11378.
2528 2004-04-03  Paolo Carlini  <pcarlini@suse.de>
2530         * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
2531         some duplicated code.
2532         (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
2533         in the single threaded case.
2534         * testsuite/performance/20_util/allocator/list_sort_search.cc:
2535         Reorder and renumber the tests consistently with the other testfiles.
2536         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
2537         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
2538         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
2540 2004-04-02  Paolo Carlini  <pcarlini@suse.de>
2542         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2543         Rearrange arithmetic to avoid computing two divisions at
2544         each deallocation.
2546 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
2548         * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
2549         Streamline the second half, wrapping it in a single
2550         '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
2551         conditionals inside loops.
2553 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
2555         PR libstdc++/14775
2556         * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
2557         * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
2558         GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
2559         to _GLIBCXX_RES_LIMITS.
2560         (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
2561         HAVE_LIMIT_*.
2562         * testsuite/testsuite_hooks.h: Declare set_file_limit.
2563         * testsuite/testsuite_hooks.cc: Define it, using getrlimit
2564         and setrlimit(RLIMIT_FSIZE).
2565         * testsuite/27_io/fpos/14775.cc: New.
2566         * config.h.in: Regenerate.
2567         * configure: Likewise.
2569 2004-03-31  Paolo Carlini  <pcarlini@suse.de>
2571         * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
2572         In v3 uses of sscanf, the special floating-point numbers INF,
2573         INFINITY, etc., cannot occur in input, therefore, if the latter
2574         is too large, ERANGE is always stored in errno, no need of finitel.
2576 2004-03-30  Benjamin Kosnik  <bkoz@redhat.com>
2578         PR libstdc++/14783
2579         * include/bits/stl_tree.h: Adjust initialization list order.
2581 2004-03-29  Loren J. Rittle  <ljrittle@acm.org>
2583         * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
2585 2004-03-29  Paolo Carlini  <pcarlini@suse.de>
2587         * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
2588         on allocator behavior, the memory pointed by data2 may well be not
2589         trashed.
2591 2004-03-28  Chavdar Botev  <cbotev@yahoo.com>
2593         PR libstdc++/14245
2594         * include/bits/basic_string.tcc
2595         (basic_string::basic_string(const basic_string&)): Pass to
2596         _Rep::_M_grab the actual allocator of the string being constructed
2597         not the default constructed one.
2599 2004-03-27  Benjamin Kosnik  <bkoz@redhat.com>
2601         libstdc++ PR/13598
2602         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
2603         (__enc_traits::_M_destroy): New.
2604         (__enc_traits::~__enc_traits): Use it.
2605         (__enc_traits::operator=): Use _M_destroy, _M_init.
2606         (__enc_traits::__enc_traits): Same.
2608 2004-03-27  Petur Runolfsson  <peturr02@ru.is>
2610         * testsuite/ext/enc_filebuf/char/13598.cc: New.
2612 2004-03-27  Paolo Carlini  <pcarlini@suse.de>
2614         * include/ext/mt_allocator.h: Uglify consistently names of
2615         variables, members and classes; tidy.
2617 2004-03-27  Dhruv Matani  <dhruvbird@gmx.net>
2619         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2620         Deallocation loop rewrote.
2622 2004-03-26  Paolo Carlini  <pcarlini@suse.de>
2624         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
2625         __mt_alloc<>::deallocate): Protect two instances of
2626         block->thread_id with __GTHREADS.
2628 2004-03-25  Gawain Bolton  <gp.bolton@computer.org>
2630         * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
2631         default argument in constructors.
2632         (_Rb_tree::_M_empty_initialize): Remove.
2634 2004-03-25  Benjamin Kosnik  <bkoz@redhat.com>
2636         * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
2637         * testsuite/23_containers/set/operators/1_neg.cc: Same.
2639 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
2641         * include/bits/cpp_type_traits.h: Changed __is_pod
2642         completely. Now, it does not use any of the previous type_traits
2643         to detect the pod types, and it also detects function pointers as
2644         POD types.
2646         * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
2647         which encapsulates the internal implementation of an rb_tree. Made
2648         the allocator a base class of this class instead of the rb_tree,
2649         which was not conforming. This _Rb_tree_impl class is also
2650         specialized on whether the _Compare parameter is a POD type or
2651         not. If so, then it maintains the comparison function as a data
2652         member, otherwise it makes the _Compare parameter a base class of
2653         itself. Also, _M_key_compare is now a function instead of a data
2654         member, so that the above trick can work properly. Delegated the
2655         initialization of the other data members to this newly created
2656         class. Also, now other member functions of rb_tree must refer to
2657         _M_key_compare as _M_impl._M_key_compare(). The other data members
2658         (*) can be referenced to as _M_impl.(*), where
2659         (*) includes _M_header, and _M_node_count.
2661 2004-03-25  Paolo Carlini  <pcarlini@suse.de>
2663         * include/ext/mt_allocator.h (__mt_alloc<>::tune):
2664         Add _M_min_bin, the size in bytes of the smallest bin.
2665         (__mt_alloc<>::tune()): Tweak accordingly.
2666         (__mt_alloc<>::tune(size_t, ...)): Likewise.
2667         (__mt_alloc<>::block_record): Change to a union: members next
2668         and thread_id are never used at the same time.
2669         (__mt_alloc<>::allocate): Update consistently.
2670         (__mt_alloc<>::deallocate): Likewise.
2671         (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
2672         _S_bin_size for the configurable _M_min_size.
2674 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
2676         * include/bits/stl_list.h: Created a _List_impl class and made it
2677         derive from the allocator, instead of the list deriving from the
2678         allocator class, which was not conformant. Changed all references
2679         from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
2680         as above (changed all references to the concerned variables).
2682 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
2684         * include/bits/stl_deque.h: Created a _Deque_impl class and made
2685         it derive from the allocator, instead of the deque deriving from
2686         the allocator class, which was not conformant. Changed all
2687         references to the _M_start, _M_finish, _M_map, and _M_map_size to
2688         _M_impl.*.
2689         (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
2690         qualification in 2 places where it was missing.
2691         (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
2692         above.
2693         * include/bits/deque.tcc: Same as above (changed all references to
2694         the concerned variables).
2696 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
2698         * include/bits/stl_vector.h: Created a _Vector_impl class and made
2699         it derive from the allocator, instead of the _Vector_base class,
2700         deriving from the allocator which was not conformant. Changed all
2701         references to the _M_start, _M_finish, and _M_end_of_storage to
2702         _M_impl.*.
2703         * include/bits/vector.tcc: Same as above (changed all references
2704         to the concerned variables).
2706 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
2708         * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
2709         * testsuite/23_containers/list/cons/clear_allocator.cc: New.
2710         * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
2712 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
2714         * include/ext/malloc_allocator.h: Fixed the construct function to
2715         call global placement new instead of assignment. Added a check
2716         after the return from malloc to check whether returned pointer is
2717         NULL, and if so, throw std::bad_alloc().
2718         * include/ext/debug_allocator.h: Added a check in the deallocate
2719         function to check whether the user has passed a NULL pointer or
2720         not.
2722 2004-03-24  Benjamin Kosnik  <bkoz@redhat.com>
2724         * docs/html/20_util/allocator.html: Add bitmap_allocator links.
2726 2004-03-24  Andreas Schwab  <schwab@suse.de>
2728         * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
2729         warning from IA64 assembler.
2731 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
2733         * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
2734         function call __builtin_ctz instead of the while loop.
2735         (allocate) -> If condition has __builtin_expect.
2736         (deallocate) -> Ditto.
2737         Renamed a few left-over variables and typedefs according to the
2738         C++STYLE mentioned in the documentation.
2739         Protected calls to __gthread* by __gthread_active_p(), whose value
2740         is cached in the local variable __threads_active.
2742 2004-03-24  Felix Yen  <fwy@alumni.brown.edu>
2744         * testsuite/performance/20_util/allocator/producer_consumer.cc:
2745         Use linear algorithm for producer.
2747 2004-03-24  Paolo Carlini  <pcarlini@suse.de>
2749         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
2750         __mt_alloc<>::deallocate): Avoid redundant conditionals.
2752 2004-03-23  Benjamin Kosnik  <bkoz@redhat.com>
2754         * include/bits/locale_facets.h: Tweaks for 80 column.
2755         (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
2756         (__moneypunct_cache::_M_cache): Same.
2757         (num_get): Don't inherit from __num_base.
2758         (num_put): Same.
2759         (money_get): Don't inherit from money_base.
2760         (money_put): Same.
2761         (__timepunct::_M_am_pm_format): New.
2762         (time_get::_M_extract_num): Return iterator, use ios_base as argument.
2763         (time_get::_M_extract_name): Same.
2764         (time_get::_M_extract_via_format): Same.
2765         * include/bits/locale_facets.tcc: Tweaks for 80 column.
2766         Use _M_getloc instead of getloc.
2767         * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
2768         * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
2769         * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
2771 2004-03-22  Paolo Carlini  <pcarlini@suse.de>
2773         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
2774         * configure: Regenerate.
2775         * config/allocator/pool_allocator_base.h: New.
2776         * include/ext/pool_allocator.h: Convert to a standard-conforming
2777         allocator.
2778         * src/allocator.cc: Tweak instantiations.
2779         * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
2780         * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
2781         * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
2782         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
2783         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
2784         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
2786 2004-03-22  Hans-Peter Nilsson  <hp@axis.com>
2788         * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
2789         inline" and attribute-unused.  Qualify parameter __mem with
2790         "volatile".
2791         (__exchange_and_add): Ditto.  Add back memory clobber to asm.
2793 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
2795         * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
2796         Remove junk.
2797         * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
2798         Likewise.
2799         * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
2800         Likewise.
2801         * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
2802         Likewise.
2803         * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
2804         Likewise.
2805         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
2806         Likewise.
2807         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
2808         Likewise.
2809         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
2810         Likewise.
2811         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
2812         Likewise.
2813         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
2814         Likewise.
2816 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
2818         * include/std/std_valarray.h: Document DR389 [Ready].
2819         * docs/html/ext/howto.html: Add an entry for DR389.
2821 2004-03-19  Michael Eager  <eager@mvista.com>
2823         * config/cpu/mips/atomicity.h:  Prevent reg loads between LL and
2824         SC instructions.
2826 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
2828         * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
2829         static_cast-s.
2830         * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
2831         * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
2832         * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
2833         * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
2834         * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
2835         * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
2836         * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
2837         * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
2838         * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
2840 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
2841             Petur Runolfsson  <peturr02@ru.is>
2843         PR libstdc++/12077
2844         * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
2845         no way to find out the conversion used by the underlying FILE*.
2846         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
2847         * testsuite/27_io/objects/char/9.cc: Tweak.
2849 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
2851         PR libstdc++/14648
2852         * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
2853         memory allocation/deallocation calls.
2854         * testsuite/ext/14648.cc: New.
2856 2004-03-19  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
2858         PR libstdc++/14647
2859         * include/backward/bvector.h (bit_vector): Allocator is in std
2860         namespace.
2862 2004-03-19  Phil Edwards  <phil@codesourcery.com>
2864         * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT):  Set LIBICONV,
2865         not libiconv.  SUBST this variable as well.
2866         * testsuite/Makefile.am (site.exp):  New target, based on that
2867         created by automake.  Also set libiconv.
2869         * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
2870         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2871         testsuite/Makefile.in:  Regenerate.
2873 2004-03-16  Benjamin Kosnik  <bkoz@redhat.com>
2875         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
2876         new_allocator for all hosts.
2877         * configure: Regenerate.
2879 2004-03-16  Paolo Carlini  <pcarlini@suse.de>
2881         * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
2882         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2884 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
2886         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2887         Adjust the logic underlying the parsing of symbol to deal
2888         correctly with an optional sign component (i.e., when either
2889         negative_sign or positive_sign is empty)
2890         * testsuite/22_locale/money_get/get/char/19.cc: New.
2891         * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
2893 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
2895         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2896         Do not accept an incomplete currency symbol.
2897         * testsuite/22_locale/money_get/get/char/18.cc: New.
2898         * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
2900 2004-03-13  Benjamin Kosnik  <bkoz@redhat.com>
2902         * config/allocator: New.
2903         * config/allocator/bitmap_allocator_base.h: New.
2904         * config/allocator/malloc_allocator_base.h: New.
2905         * config/allocator/mt_allocator_base.h: New.
2906         * config/allocator/new_allocator_base.h: New.
2907         * include/bits/allocator.h: Include c++allocator.h.
2908         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
2909         * aclocal.m4: Regenerate.
2910         * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
2911         * configure: Regenerate.
2912         * include/Makefile.am (host_headers_extra): Add c++allocator.h.
2913         * include/Makefile.in: Regenerate.
2914         * docs/html/configopts.html: Add enable-libstdcxx-allocator.
2916 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
2918         * include/bits/allocator.h: Revert.
2920 2004-03-12  Paolo Carlini  <pcarlini@suse.de>
2922         * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
2923         * include/bits/gslice_array.h: Add comment about DR 253.
2924         * include/bits/indirect_array.h: Likewise.
2925         * include/bits/mask_array.h: Likewise.
2926         * include/bits/slice_array.h: Likewise.
2928 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
2930         * testsuite/20_util/allocator/14176.cc: New.
2931         * include/ext/mt_allocator.h: Formatting fixes.
2933 2004-03-11  Dhruv Matani  <dhruvbird@HotPOP.com>
2935         * include/Makefile.am (ext_headers): Add
2936         ${ext_srcdir}/bitmap_allocator.h .
2937         * include/Makefile.in: Regenerate.
2938         * docs/html/ext/ballocator_doc.txt: New file.
2939         * include/ext/bitmap_allocator.h: New file.
2940         * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
2941         test.
2942         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
2943         * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
2944         test for the bitmap_allocator<>.
2945         * testsuite/performance/20_util/allocator/insert.cc: Likewise.
2946         * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
2947         * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
2949 2004-03-11  Paolo Carlini  <pcarlini@suse.de>
2951         * include/std/std_complex.h (pow(const complex&, const _Tp&),
2952         pow(const _Tp&, const complex&), pow(const complex&,
2953         const complex&)): Fully qualify with std:: a few calls.
2954         * testsuite/26_numerics/complex/13450.cc: Minor tweak.
2956 2004-03-11  Steven Bosscher  <stevenb@suse.de>
2958         PR libstdc++/11706
2959         * include/c_std/cmath.tcc (__cmath_power): Define inline.
2961 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
2963         * configure.ac: Bump AC_PREREQ to 2.59.
2965 2004-03-10  Paolo Carlini  <pcarlini@suse.de>
2967         * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
2969 2004-03-10  Paul Kienzle  <pkienzle@nist.gov>
2970             Paolo Carlini  <pcarlini@suse.de>
2972         PR libstdc++/13450
2973         * include/std/std_complex.h (pow(const complex&, const _Tp&),
2974         pow(const _Tp&, const complex&)): Use cmath pow only when safe.
2975         * testsuite/26_numerics/complex/13450.cc: New.
2977         * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
2978         * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
2980 2004-03-10  Jerry Quinn  <jlquinn@optonline.net>
2982         PR libstdc++/3247
2983         * include/bits/gslice_array.h (gslice_array()): Make public.
2984         (operator=(gslice_array)): Make public.  Implement.
2985         * include/bits/indirect_array.h (indirect_array()): Make public.
2986         * include/bits/mask_array.h (mask_array()): Make public.
2987         (operator=(mask_array)): Make public.  Implement.
2988         * include/bits/valarray_array.tcc (__valarray_copy):
2989         Comment.  Add versions for gslice_array and mask_array.
2990         * testsuite/26_numerics/valarray_subset_assignment.cc:  New test.
2992 2004-03-09  Benjamin Kosnik  <bkoz@redhat.com>
2994         * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
2995         non-weak systems.
2996         * testsuite/23_containers/vector/modifiers/swap.cc: Same.
2997         * testsuite/23_containers/set/modifiers/swap.cc: Same.
2998         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2999         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
3000         * testsuite/23_containers/map/modifiers/swap.cc: Same.
3001         * testsuite/23_containers/list/modifiers/swap.cc: Same.
3003         * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
3005 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
3007         PR c++/13658
3008         * testsuite/23_containers/deque/modifiers/swap.cc: New.
3009         * testsuite/23_containers/list/modifiers/swap.cc: New.
3010         * testsuite/23_containers/map/modifiers/swap.cc: New.
3011         * testsuite/23_containers/multimap/modifiers/swap.cc: New.
3012         * testsuite/23_containers/multiset/modifiers/swap.cc: New.
3013         * testsuite/23_containers/set/modifiers/swap.cc: New.
3014         * testsuite/23_containers/vector/modifiers/swap.cc: New.
3016 2004-03-08  Petur Runolfsson  <peturr02@ru.is>
3018         PR libstdc++/12658
3019         * testsuite/22_locale/locale/cons/12658_thread.cc: New.
3021 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
3023         * docs/html/ext/howto.html: Add entry for DR 103 [WP].
3024         * include/bits/stl_multiset.h: Add comment about DR 103.
3025         * include/bits/stl_set.h: Likewise.
3027 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
3029         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3030         The value _space_ indicates that at least one space is required
3031         at that position.
3032         * testsuite/22_locale/money_get/get/char/17.cc: New.
3033         * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
3035         * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
3036         * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
3038         * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
3039         Remove redundant conditional on __str.size().
3041 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
3043         * include/bits/allocator.h: Switch defaults to mt_alloc.
3045 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
3047         * include/ext/mt_allocator.h (_S_initialize): If
3048         !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
3050 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
3052         PR libstdc++/12658
3053         * src/locale_init.cc (locale::locale): Lock critical regions with
3054         external mutexes.
3055         (locale::global): Same.
3056         * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
3057         Add in once bits for cases without __GTHREAD_MUTEX_INIT.
3058         (__glibcxx_mutex_lock): Same.
3060         * config/cpu/generic/atomicity.h: Remove
3061         _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
3062         * src/misc-inst.cc: Move all locking bits out of this file.
3064         * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
3065         * src/misc-inst.cc: Same.
3066         * config/cpu/hppa/atomicity.h: Same.
3068         * config/linker-map.gnu: Remove types in the signature of atomic
3069         exports, as they may vary.
3071 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
3073         * include/bits/locale_facets.tcc: Tweak the comment preceding
3074         has_facet: doesn't throw.
3076 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
3078         * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
3079         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3080         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3081         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3082         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3083         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3084         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3085         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3087 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
3089         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3090         num_get<>::_M_extract_int, num_get<>::do_get(bool&),
3091         __pad<>::_S_pad): Prefer plain operator== to traits::eq().
3092         * testsuite/testsuite_character.h (struct __gnu_test::character):
3093         Provide operator==.
3094         * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
3095         Likewise.
3097 2004-03-05  Paolo Carlini  <pcarlini@suse.de>
3099         * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
3101 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
3103         * testsuite/23_containers/multiset/insert/1.cc: Test result string.
3105         * testsuite/23_containers/bitset/invalidation/1.cc: Main always
3106         returns 0.
3107         * testsuite/23_containers/deque/invalidation/4.cc: Same.
3108         * testsuite/23_containers/list/invalidation/1.cc: Same.
3109         * testsuite/23_containers/list/invalidation/2.cc: Same.
3110         * testsuite/23_containers/list/invalidation/3.cc: Same.
3111         * testsuite/23_containers/list/invalidation/4.cc: Same.
3112         * testsuite/23_containers/map/invalidation/2.cc: Same.
3113         * testsuite/23_containers/multimap/invalidation/1.cc: Same.
3114         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3115         * testsuite/23_containers/multiset/invalidation/1.cc: Same.
3116         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3117         * testsuite/23_containers/set/invalidation/1.cc: Same.
3118         * testsuite/23_containers/set/invalidation/2.cc: Same.
3119         * testsuite/23_containers/vector/invalidation/1.cc: Same.
3120         * testsuite/23_containers/vector/invalidation/2.cc: Same.
3121         * testsuite/23_containers/vector/invalidation/3.cc: Same.
3122         * testsuite/23_containers/vector/invalidation/4.cc: Same.
3124 2004-03-04  Paolo Carlini  <pcarlini@suse.de>
3126         * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
3127         CXXFLAGS_save.
3128         * testsuite/lib/libstdc++.exp: Don't add it conditionally to
3129         DEFAULT_CXXFLAGS.
3130         * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
3131         from the dg-options.
3132         * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
3133         * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
3134         * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
3135         * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
3136         * testsuite/23_containers/vector/resize/1.cc: Likewise.
3137         * testsuite/26_numerics/complex_value.cc: Likewise.
3138         * testsuite/27_io/ios_base/storage/1.cc: Likewise.
3139         * testsuite/27_io/ios_base/storage/2.cc: Likewise.
3140         * testsuite/27_io/ios_base/storage/3.cc: Likewise.
3141         * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
3142         * testsuite/27_io/objects/char/5.cc: Likewise.
3143         * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
3144         * testsuite/backward/11460.cc: Likewise.
3145         * testsuite/thread/pthread7-rope.cc: Likewise.
3147         * testsuite/21_strings/basic_string/compare/char/1.cc: Add
3148         missing test variable.
3149         * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
3150         missing test variable.
3152 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
3154         * testsuite/20_util/allocator/1.cc: Provide explicit
3155         instantiations for non-weak systems.
3156         * testsuite/20_util/binders.cc: Same.
3157         * testsuite/20_util/allocator/8230.cc: Same.
3158         * testsuite/20_util/allocator/10378.cc: Same.
3159         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
3160         * testsuite/22_locale/ctype/is/char/2.cc: Same.
3161         * testsuite/thread/pthread7-rope.cc: Same.
3162         * testsuite/thread/pthread6.cc: Same.
3163         * testsuite/thread/pthread5.cc: Same.
3164         * testsuite/thread/pthread4.cc: Same.
3165         * testsuite/thread/pthread1.cc: Same.
3166         * testsuite/ext/rope.cc: Same.
3167         * testsuite/ext/hash_set.cc: Same.
3168         * testsuite/ext/hash_map.cc: Same.
3169         * testsuite/ext/concept_checks.cc: Same.
3170         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
3171         * testsuite/25_algorithms/unique/2.cc: Same.
3172         * testsuite/25_algorithms/unique/1.cc: Same.
3173         * testsuite/25_algorithms/rotate.cc: Same.
3174         * testsuite/25_algorithms/min_max.cc: Same.
3175         * testsuite/25_algorithms/equal.cc: Same.
3176         * testsuite/24_iterators/rel_ops.cc: Same.
3177         * testsuite/24_iterators/iterator.cc: Same.
3178         * testsuite/24_iterators/insert_iterator.cc: Same.
3179         * testsuite/24_iterators/front_insert_iterator.cc: Same.
3180         * testsuite/24_iterators/back_insert_iterator.cc: Same.
3181         * testsuite/23_containers/vector/resize/1.cc: Same.
3182         * testsuite/23_containers/vector/modifiers/2.cc: Same.
3183         * testsuite/23_containers/vector/modifiers/1.cc: Same.
3184         * testsuite/23_containers/vector/invalidation/4.cc: Same.
3185         * testsuite/23_containers/vector/invalidation/3.cc: Same.
3186         * testsuite/23_containers/vector/invalidation/2.cc: Same.
3187         * testsuite/23_containers/vector/invalidation/1.cc: Same.
3188         * testsuite/23_containers/vector/element_access/1.cc: Same.
3189         * testsuite/23_containers/vector/cons/6513.cc: Same.
3190         * testsuite/23_containers/vector/cons/3.cc: Same.
3191         * testsuite/23_containers/vector/cons/2.cc: Same.
3192         * testsuite/23_containers/vector/cons/1.cc: Same.
3193         * testsuite/23_containers/vector/capacity/8230.cc: Same.
3194         * testsuite/23_containers/vector/capacity/1.cc: Same.
3195         * testsuite/23_containers/vector/bool/6886.cc: Same.
3196         * testsuite/23_containers/stack/members/7158.cc: Same.
3197         * testsuite/23_containers/set/invalidation/2.cc: Same.
3198         * testsuite/23_containers/set/invalidation/1.cc: Same.
3199         * testsuite/23_containers/queue/members/7157.cc: Same.
3200         * testsuite/23_containers/priority_queue/members/7161.cc: Same.
3201         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3202         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3203         * testsuite/23_containers/multiset/insert/1.cc: Same.
3204         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3205         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3206         * testsuite/23_containers/map/operators/1.cc: Same.
3207         * testsuite/23_containers/map/invalidation/2.cc: Same.
3208         * testsuite/23_containers/map/invalidation/1.cc: Same.
3209         * testsuite/23_containers/map/insert/1.cc: Same.
3210         * testsuite/23_containers/list/operators/4.cc: Same.
3211         * testsuite/23_containers/list/operators/3.cc: Same.
3212         * testsuite/23_containers/list/operators/2.cc: Same.
3213         * testsuite/23_containers/list/operators/1.cc: Same.
3214         * testsuite/23_containers/list/modifiers/3.cc: Same.
3215         * testsuite/23_containers/list/modifiers/2.cc: Same.
3216         * testsuite/23_containers/list/modifiers/1.cc: Same.
3217         * testsuite/23_containers/list/invalidation/4.cc: Same.
3218         * testsuite/23_containers/list/invalidation/3.cc: Same.
3219         * testsuite/23_containers/list/invalidation/2.cc: Same.
3220         * testsuite/23_containers/list/invalidation/1.cc: Same.
3221         * testsuite/23_containers/list/cons/9.cc: Same.
3222         * testsuite/23_containers/list/cons/8.cc: Same.
3223         * testsuite/23_containers/list/cons/7.cc: Same.
3224         * testsuite/23_containers/list/cons/6.cc: Same.
3225         * testsuite/23_containers/list/cons/5.cc: Same.
3226         * testsuite/23_containers/list/cons/4.cc: Same.
3227         * testsuite/23_containers/list/cons/3.cc: Same.
3228         * testsuite/23_containers/list/cons/2.cc: Same.
3229         * testsuite/23_containers/list/cons/1.cc: Same.
3230         * testsuite/23_containers/list/capacity/1.cc: Same.
3231         * testsuite/23_containers/deque/operators/1.cc: Same.
3232         * testsuite/23_containers/deque/invalidation/4.cc: Same.
3233         * testsuite/23_containers/deque/invalidation/3.cc: Same.
3234         * testsuite/23_containers/deque/invalidation/2.cc: Same.
3235         * testsuite/23_containers/deque/invalidation/1.cc: Same.
3236         * testsuite/23_containers/deque/cons/2.cc: Same.
3237         * testsuite/23_containers/deque/cons/1.cc: Same.
3239         * src/allocator.cc: Add char, wchar_t instantiations
3240         to match extern template declarations in memory.h.
3242 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
3244         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3245         Fix warning regression.
3247 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
3249         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3250         Deal properly with empty __digits and negative frac_digits,
3251         clean-up a bit.
3253 2004-03-03  Jonathan Wakely  <redi@gcc.gnu.org>
3255         * docs/html/documentation.html: Regenerate.
3257 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
3259         PR libstdc++/14320
3260         * include/bits/postypes.h (class streamoff): Remove, now
3261         streamoff is just typedef a 64 bit signed integer type.
3262         (class fpos): Tweak consistently.
3263         * testsuite/27_io/fpos/14320-1.cc: New.
3264         * testsuite/27_io/fpos/14320-2.cc: New.
3265         * testsuite/27_io/fpos/14320-3.cc: New.
3266         * testsuite/27_io/fpos/14320-4.cc: New.
3267         * testsuite/27_io/fpos/14320-5.cc: New.
3268         * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
3270 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
3272         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3273         Reorganize a bit the main parsing loop, thus early detecting
3274         an empty value component.
3275         * testsuite/22_locale/money_get/get/char/16.cc: New.
3276         * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
3278 2004-03-02  Benjamin Kosnik  <bkoz@redhat.com>
3280         Support automake 1.8.2
3281         * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
3282         * po/Makefile.am (EXTRA_DIST): New.
3283         * po/Makefile.in: Regenerate.
3284         * Makefile.in: Same.
3285         * include/Makefile.in: Same.
3286         * libmath/Makefile.in: Same.
3287         * libsupc++/Makefile.in: Same.
3288         * src/Makefile.in: Same.
3289         * testsuite/Makefile.in: Same.
3291         * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
3292         __GXX_WEAK__ instead of SUPPORTS_WEAK.
3293         (${host_builddir}/gthr-default.h): Same.
3294         (${host_builddir}/gthr.h): Same.
3295         * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
3296         _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
3297         -fno-weak.
3298         * aclocal.m4: Regenerate.
3299         * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
3300         * config.h.in: Regenerate.
3301         * configure: Same.
3303 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
3305         Support autoconf 2.59
3306         * acinclude.m4: Quote correctly.
3307         * aclocal.m4: Regenerate.
3308         * linkage.m4: Same.
3310 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
3312         * docs/html/test.html: Add multilib RUNTESTFLAGS example.
3314         * docs/html/18_support/howto.html: Add bit about writing to
3315         stderr, mostly by Zack.
3317 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
3319         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3320         money_get<>::do_get(string_type&)): ... and two more.
3322 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
3324         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3325         Fix thinkos in the switch from string_type& to string& as last
3326         argument.
3328 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
3330         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3331         Also when parsing exponent sign, first look for thousands_sep
3332         and decimal_point; tweak a bit.
3333         * testsuite/22_locale/num_get/get/char/15.cc: New.
3334         * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
3336         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3337         num_get<>::_M_extract_int): Reorder some conditionals.
3339 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
3341         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3342         Consistently with numpunct, enforce the requirements in
3343         22.2.6.3, p3 for the thousands separators; tweak a bit.
3344         * testsuite/22_locale/money_get/get/char/15.cc: New.
3345         * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
3347 2004-03-01  David Billinghurst <David.Billinghurst@riotinto.com>
3349         * testsuite/lib/libstdc++.exp (v3-list-tests): Use
3350         testsuite_files from correct multilib blddir when running
3351         testsuite.
3353 2004-02-29  Phil Edwards  <phil@codesourcery.com>
3355         * testsuite/Makefile.am (check-abi, check-abi-verbose):  Copy
3356         the summary file to the logfile.
3357         * testsuite/Makefile.in:  Regenerate.
3359 2004-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3361         * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
3362         volatile.
3363         * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
3364         __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
3366 2004-02-28  Paolo Carlini  <pcarlini@suse.de>
3368         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3369         According to 22.2.3.1, p2, 'units' may be followed by 'e' with
3370         no 'decimal-point' in the middle: in this case too we must fix
3371         up __found_grouping; slightly tweak.
3372         * testsuite/22_locale/num_get/get/char/14.cc: New.
3373         * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
3375 2004-02-27  Eric Christopher  <echristo@redhat.com>
3376             Phil Edwards  <phil@codesourcery.com>
3378         * testsuite/22_locale/collate/compare/wchar_t/2.cc,
3379         testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
3380         testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
3381         testsuite/22_locale/collate/hash/wchar_t/2.cc,
3382         testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
3383         testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
3384         testsuite/22_locale/collate/transform/wchar_t/2.cc,
3385         testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
3386         testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3387         Use dg-require-iconv.
3388         * testsuite/lib/libstdc++.exp:  Load target-supports.exp.
3390 2004-02-27  Phil Edwards  <phil@codesourcery.com>
3391             Eric Christopher  <echristo@redhat.com>
3393         * testsuite/config/default.exp:  Update with comments.
3394         (${tool}_target_compile):  New wrapper routine.
3395         * testsuite/lib/dg-options.exp:  New file, with dg-require-iconv.
3396         * testsuite/lib/libstdc++.exp:  Update with comments and cosmetic
3397         fixes.
3398         (load_gcc_lib, v3track):  New routines.
3399         (v3-init):  Rename to libstdc++_init.
3400         * testsuite/libstdc++-dg/normal.exp:  No longer call v3-init.
3401         Move DEFAULT_CXXFLAGS handling into libstdc++_init.
3403 2004-02-27  Benjamin Kosnik  <bkoz@redhat.com>
3405         * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
3407         * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
3409         * config/os/irix/irix5.2/atomicity.h: Merge..
3410         * config/os/irix/irix6.5/atomicity.h: Merge..
3411         * config/os/irix/atomicity.h: ...into this.
3412         * config/os/irix/atomic_word.h: New.
3413         * configure.host: Set atomic_word_dir for irix.
3415         * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
3416         * i386/atomicity.h: Same.
3417         * m68k/atomicity.h: Same.
3418         * sparc/atomicity.h: Same.
3420 2004-02-27  David Edelsohn  <edelsohn@gnu.org>
3422         * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
3423         static, and inline keywords.
3425 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
3427         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3428         num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
3429         call reserve on the __tmp_gruping string.
3430         (num_get<>::_M_extract_float): Don't append unnecessarily a
3431         char() to the returned string.
3432         * include/bits/locale_facets.tcc: Trivial reformattings.
3434 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
3436         * include/bits/locale_facets.h (money_get<>::_M_extract):
3437         Change signature: now takes a plain string&.
3438         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3439         Update consistently the definition; use the moneypunct cache
3440         to parse the value; use swap to change __units.
3441         (money_get<>::do_get(long double&)): Update call of _M_extract,
3442         avoid ctype::narrow, not correct wrt the standard.
3443         (money_get<>::do_get(string_type&)): Likewise, update call
3444         of _M_extract, use ctype::widen.
3445         * src/locale-inst.cc: Tweak instantiations of _M_extract.
3447 2004-02-26  Ian Lance Taylor  <ian@wasabisystems.com>
3449         * testsuite/demangle/abi_examples/01.cc: Expect error -2.
3450         * testsuite/demangle/abi_examples/02.cc: Likewise.
3451         * testsuite/demangle/regression/cw-11.cc: Likewise.
3452         * testsuite/demangle/regression/cw-16.cc: Change two expected
3453         results to match libiberty demangler output.
3455 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
3457         PR libstdc++/10246
3458         * libsupc++/Makefile.am: Use libiberty demangler.
3459         (c_sources): Add cp-demangle.c.
3460         * libsupc++/Makefile.in: Regenerate.
3461         * src/Makefile.am (sources): Remove demangle.cc.
3462         * src/Makefile.in: Regenerate.
3463         * include/Makefile.am (bits_headers): Move demangle.h.
3464         (ext_headers): ...here.
3465         * include/Makefile.in: Regenerate.
3466         * include/bits/demangle.h: Move...
3467         * include/ext/demangle.h: ...here.
3468         * src/demangle.cc: Remove.
3470 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
3472         * include/bits/demangle.h: Add type template parameter to all
3473         templates with just an Allocator template parameter.
3475 2004-02-25  Benjamin Kosnik  <bkoz@redhat.com>
3477         * include/bits/atomicity.h: New, forward declarations for __atomic_add
3478         and __exchange_and_add.
3479         * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
3480         * config/cpu/cris/atomic_word.h: Same.
3481         * config/cpu/sparc/atomic_word.h: Same.
3482         * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
3483         Qualifiy with __gnu_cxx.
3484         (_Callback_list::_M_add_reference): Same.
3485         * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
3486         (locale::facet::_M_remove_reference): Same.
3487         (locale::_Impl::_M_add_reference): Add.
3488         (locale::_Impl::_M_remove_reference): Same.
3489         * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
3490         (basic_string::_Rep::_M_dispose): Same.
3491         * src/ios.cc (ios_base::xalloc): Same.
3492         * src/ios_init.cc (ios_base::Init::Init): Same.
3493         (ios_base::Init::~Init): Same.
3494         * src/locale.cc (locale::id::_M_id): Same.
3495         * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
3496         static, and inline keywords.
3497         * config/cpu/alpha/atomicity.h: Same.
3498         * config/cpu/cris/atomicity.h: Same.
3499         * config/cpu/generic/atomicity.h: Same.
3500         * config/cpu/hppa/atomicity.h: Same.
3501         * config/cpu/i386/atomicity.h: Same.
3502         * config/cpu/ia64/atomicity.h: Same.
3503         * config/cpu/m68k/atomicity.h: Same.
3504         * config/cpu/mips/atomicity.h: Same.
3505         * config/cpu/powerpc/atomicity.h: Same.
3506         * config/cpu/s390/atomicity.h: Same.
3507         * config/cpu/sparc/atomicity.h: Same.
3509         * src/Makefile.am (host_sources): Add atomicity.cc.
3510         (atomicity.cc): New rule.
3511         * src/Makefile.in: Regenerate.
3512         * include/Makefile.am (host_headers): Remove host atomicity.h.
3513         (host_headers): Add atomic_word.h.
3514         (bits_headers): Add bits atomicity.h.
3515         Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3516         * include/Makefile.in: Regenerate.
3517         * configure.host (atomic_word_dir): Add.
3518         * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
3519         ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3520         * configure: Regenerate.
3521         * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
3523         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
3524         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3526 2004-02-25  Jonathan Wakely  <redi@gcc.gnu.org>
3528         * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
3529         docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
3530         Fix markup, more <link> tags.
3532 2004-02-25  Carlo Wood  <carlo@alinoe.com>
3534         * bits/demangle.h
3535         namespace __gnu_cxx::demangler
3536         (session<Allocator>::qualifier_list_Allocator): Add
3537         (session<Allocator>::M_qualifier_list_alloc): Add
3538         (session<Allocator>::decode_type_with_postfix):
3539         Use M_qualifier_list_alloc instead of calling operator new/delete.
3541 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
3543         PR libstdc++/14252
3544         * include/bits/postypes.h (class streamoff): Add operator++(),
3545         operator++(int), operator--() and operator--(int).
3546         * testsuite/27_io/fpos/14252.cc: New.
3548 2004-02-24  Richard Sandiford  <rsandifo@redhat.com>
3550         * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
3551         error in handling of hex constants.
3553 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
3555         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3556         Prefer basic_string::append to operator+= and a temporary.
3558 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
3560         * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
3561         Only use fputs, not write.
3563 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
3565         * include/ext/malloc_allocator.h: Add operators ==, !=.
3566         * include/ext/new_allocator.h: Add operators ==, !=.
3567         * include/ext/mt_allocator.h (__mt_alloc::tune): New.
3568         (__mt_alloc::_S_get_options): New.
3569         (__mt_alloc::_S_set_options): New.
3570         (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
3571         (__mt_alloc::_S_no_of_bins): To _S_bin_size.
3572         Move functions out of line, simplify, format.
3573         * src/allocator.cc: Simplify explicit instantiations.
3574         * include/bits/allocator.h: Tweak.
3576 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
3578         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3579         Restructure formatting of value component, first dealing with
3580         the non-decimal digits; use reserve.
3582 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
3584         * include/bits/locale_facets.h (class money_get): Inherit
3585         from money_base too; tweak declaration of _M_extract, now
3586         parameterized on _Intl too.
3587         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3588         Update definition to use the cache; call reserve on __res to
3589         avoid multiple reallocations; fix parsing of sign component
3590         according to 22.2.6.1.2, p3.
3591         (money_get<>::do_get(long double&),
3592         money_get<>::do_get(string_type&)): Update calls of _M_extract.
3593         * src/locale-inst.cc:  Add instantiations of
3594         money_get::_M_extract<false> and money_get::_M_extract<true>.
3595         * testsuite/22_locale/money_get/get/char/14.cc: New.
3596         * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
3598 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
3600         * libsupc++/vterminate.cc
3601         (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
3602         calls to terminate.
3603         * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
3605         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3606         not set RLIMIT_AS on HP-UX.
3608 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
3610         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3611         not set RLIMIT_AS on HP-UX.
3613 2004-02-21  Paolo Carlini  <pcarlini@suse.de>
3615         * include/bits/locale_facets.h (class money_base): Add { _S_minus,
3616         _S_zero, _S_end } enum, _S_atoms.
3617         (struct __moneypunct_cache<>): Parameterize on _Intl too; add
3618         _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
3619         _M_negative_sign_size, _M_atoms; tweak constructor consistently.
3620         (__moneypunct_cache<>::~__moneypunct_cache): Update.
3621         (__moneypunct_cache<>::_M_cache): Fill the cache.
3622         (class moneypunct): Tweak __cache_type typedef.
3623         (class money_put): Inherit from money_base too; tweak declaration
3624         of _M_insert, now parameterized on _Intl.
3625         * include/bits/locale_facets.tcc
3626         (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
3627         (money_put<>::_M_insert): Update definition to use the cache;
3628         call reserve on __res to avoid multiple reallocations.
3629         (money_put<>::do_put(long double),
3630         money_put<>::do_put(const string_type&): Update calls of _M_insert.
3631         * config/locale/generic/monetary_members.cc
3632         (moneypunct<char, true>::_M_initialize_moneypunct,
3633         moneypunct<char, false>::_M_initialize_moneypunct,
3634         moneypunct<wchar_t, true>::_M_initialize_moneypunct,
3635         moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
3636         * config/locale/gnu/monetary_members.cc: Likewise.
3637         * config/locale/gnu/monetary_members.cc
3638         (moneypunct<wchar_t, true>::~moneypunct(),
3639         moneypunct<wchar_t, false>::~moneypunct()): Likewise.
3640         * src/globals_locale.cc: Tweak fake_money_cache_c.
3641         * src/locale-inst.cc: Add instantiations for
3642         money_put::_M_insert<false> and money_put::_M_insert<true> and
3643         __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
3644         * src/locale_facets.cc: Define money_base::_S_atoms.
3645         * src/locale_init.cc: Update placement new of
3646         __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
3647         __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
3649         * config/locale/generic/numeric_members.cc: Clean up.
3650         * config/locale/gnu/numeric_members.cc: Likewise.
3651         * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
3652         * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
3653         * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
3654         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
3655         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
3656         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
3658 2004-02-20  Mark Mitchell  <mark@codesourcery.com>
3660         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
3661         FIFO for writing with ios_base::in|ios_base::out.
3662         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3663         * testsuite/27_io/objects/char/7.cc: Likewise.
3664         * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
3665         with "r+".
3667 2004-02-19  David Edelsohn  <edelsohn@gnu.org>
3669         * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
3670         from iso-8859-1 to ISO8859-1.
3671         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
3672         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
3673         * 22_locale/collate/hash/wchar_t/2.cc: Same.
3674         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
3675         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
3676         * 22_locale/collate/transform/wchar_t/2.cc: Same.
3677         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
3678         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
3680 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
3682         * include/bits/locale_facets.h (money_get<>::_M_extract):
3683         New, helper for do_get.
3684         (money_put<>::_M_insert): Likewise, for do_put.
3685         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3686         money_put<>::_M_insert): Define.
3687         (money_get<>::do_get(long double&), money_get<>::do_get(
3688         string_type&), money_put::do_put(long double),
3689         money_put::do_put(const string_type&)): Use the helpers.
3691 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
3693         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
3694         Rewrite, avoiding recursion.
3695         (__gnu_internal::xwrite): Minor tweaks.
3697 2004-02-17  Stefan Olsson  <stefan@xapa.se>
3699         * include/ext/mt_allocator.h: Removed the last
3700         pointer. Deallocated blocks are now added to the front of
3701         freelists as proposed by Felix Yen.  This gives roughly 10%
3702         performance boost and saves some memory.
3703         * docs/html/ext/mt_allocator.html: Change due to that deallocated
3704         blocks now are added to the front of freelists. The reason to this
3705         approach is also explained.
3707 2004-02-17  Paolo Carlini  <pcarlini@suse.de>
3709         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3710         num_get<>::_M_extract_int, money_get<>::do_get): Simplify
3711         grouping fidelity conditional.
3713 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
3715         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
3716         Qualify exception with std::.
3717         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
3718         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
3719         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3720         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3721         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3723 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
3725         * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
3726         for now that the catch block is not reached.
3727         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
3729 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
3731         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
3732         Fix parsing of the remaining sign characters.
3733         * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
3734         the input is scanned 'til eof.
3735         * 22_locale/money_get/get/char/4.cc: Likewise.
3736         * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
3737         * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
3738         * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
3739         not do_pos_format: the former is the only one that matters during
3740         input.
3741         * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
3743         * 22_locale/money_get/get/char/6.cc: Minor tweak.
3744         * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
3746 2004-02-15  David Asher  <david.asher@cavium.com>
3748         PR libstdc++/11352
3749         * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
3750         access __olds beyond __oldlen.
3752 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
3754         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
3755         sure the exception is actually thrown.
3756         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3757         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3758         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3760 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
3762         PR libstdc++/13858
3763         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
3764         In case of conversion errors, throw ios_failure; simplify.
3765         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
3766         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
3767         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
3768         previously we didn't throw in case of conversion errors, instead
3769         just returned eof().
3770         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3771         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3772         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3774         * include/bits/fstream.tcc (basic_filebuf<>::overflow):
3775         Trivial simplification of a conditional.
3777 2004-02-12  Paolo Carlini  <pcarlini@suse.de>
3779         PR libstdc++/13731 (final part: writev)
3780         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
3781         New, a wrapper around writev() handling partial writes.
3782         (__basic_file<char>::xwrite): Move to __gnu_internal and make
3783         static.
3784         (__basic_file<char>::xsputn): Update call.
3785         (__basic_file<char>::xsputn_2): Likewise.
3786         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
3787         Don't declare, now static.
3789 2004-02-11  Stefan Olsson  <stefan@xapa.se>
3791         * docs/html/ext/mt_allocator.html: New.
3793 2004-02-11  Benjamin Kosnik  <bkoz@redhat.com>
3795         * docs/html/20_util/allocator.html: New file, consolidate
3796         allocator information here. Revamp.
3797         * docs/html/documentation.html: Change links.
3798         * docs/html/20_util/howto.html: Same.
3799         * docs/html/ext/howto.html: Same.
3801 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
3803         PR libstdc++/13731 (first part: write)
3804         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
3805         New, declare.
3806         * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
3807         Define it: a wrapper around write() handling partial write.
3808         (__basic_file<char>::xsputn): Use it.
3809         (__basic_file<char>::xsputn_2): Likewise.
3811 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
3812             Petur Runolfsson  <peturr02@ru.is>
3814         PR libstdc++/14078
3815         * include/std/std_istream.h (operator>>(__istream_type& (*)
3816         (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
3817         operator>>(ios_base& (*)(ios_base&))): Declare inline.
3818         * include/std/std_ostream.h (operator<<(__ostream_type& (*)
3819         (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
3820         operator<<(ios_base& (*) (ios_base&))): Likewise.
3821         * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
3823 2004-02-10  Loren J. Rittle  <ljrittle@acm.org>
3825         PR libstdc++/14098
3826         * config/linker-map.gnu: Add typeinfo and typeinfo name for
3827         __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
3829         PR libstdc++/14097
3830         * config/linker-map.gnu: Add typeinfo and typeinfo name for
3831         __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
3833 2004-02-09  Loren J. Rittle  <ljrittle@acm.org>
3835         * include/ext/pool_allocator.h: Include c++config.h.
3837 2004-02-09  Stefan Olsson  <stefan@xapa.se>
3839         * include/ext/mt_allocator.h: thread_id is unused in non threaded
3840         applications and now has a ifdef to remove it completely on
3841         compilers without thread support. Include stdlib.h due to a
3842         compiler warning on getenv().
3844 2004-02-09  Paul Brook  <paul@codesourcery.com>
3846         * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
3848 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
3850         PR libstdc++/14071
3851         * src/locale_init.cc (locale::global(const locale&)): Use
3852         locale::name() in order to decide whether calling setlocale.
3853         * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
3855         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
3856         Avoid computing &= unnecessarily.
3858 2004-02-09  James E Wilson  <wilson@specifixinc.com>
3860         PR libstdc++/5625
3861         * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
3862         __builtin_extend_pointer.
3864 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
3866         PR libstdc++/14072
3867         * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
3868         Don't leave dangling pointers.
3869         * testsuite/27_io/basic_ios/imbue/14072.cc: New.
3870         * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
3871         facet is needed in the final test.
3873 2004-02-09  Bernardo Innocenti  <bernie@develer.com>
3875         * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
3876         * configure: Regenerate.
3878 2004-02-08  Richard Henderson  <rth@redhat.com>
3880         PR libstdc++/14026
3881         * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
3882         uncaughtExceptions during nested catch rethrow.
3883         * testsuite/18_support/14026.cc: New.
3885 2004-02-08  Paolo Carlini  <pcarlini@suse.de>
3887         * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
3888         When working in place remember to set the state to sharable
3889         (otherwise, _M_mutate does it).
3891 2004-02-08  Bernardo Innocenti  <bernie@develer.com>
3893         * include/bits/allocator.h, include/bits/basic_ios.h,
3894         include/bits/basic_ios.tcc, include/bits/basic_string.h,
3895         include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
3896         include/bits/char_traits.h, include/bits/codecvt.h,
3897         include/bits/concurrence.h, include/bits/cpp_type_traits.h,
3898         include/bits/demangle.h, include/bits/deque.tcc,
3899         include/bits/fstream.tcc, include/bits/functexcept.h,
3900         include/bits/gslice.h, include/bits/gslice_array.h,
3901         include/bits/indirect_array.h, include/bits/ios_base.h,
3902         include/bits/istream.tcc, include/bits/list.tcc,
3903         include/bits/locale_classes.h, include/bits/locale_facets.h,
3904         include/bits/locale_facets.tcc, include/bits/localefwd.h,
3905         include/bits/mask_array.h, include/bits/ostream.tcc,
3906         include/bits/postypes.h, include/bits/slice_array.h,
3907         include/bits/sstream.tcc, include/bits/stl_algo.h,
3908         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
3909         include/bits/stl_construct.h, include/bits/stl_deque.h,
3910         include/bits/stl_function.h, include/bits/stl_heap.h,
3911         include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
3912         include/bits/stl_list.h, include/bits/stl_map.h,
3913         include/bits/stl_multimap.h, include/bits/stl_multiset.h,
3914         include/bits/stl_numeric.h, include/bits/stl_pair.h,
3915         include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
3916         include/bits/stl_relops.h, include/bits/stl_set.h,
3917         include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
3918         include/bits/stl_threads.h, include/bits/stl_tree.h,
3919         include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
3920         include/bits/stream_iterator.h, include/bits/streambuf.tcc,
3921         include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
3922         include/bits/type_traits.h, include/bits/valarray_after.h,
3923         include/bits/valarray_array.h, include/bits/valarray_array.tcc,
3924         include/bits/valarray_before.h, include/bits/vector.tcc: Remove
3925         trailing whitespace.
3927 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
3929         * include/bits/basic_string.h: Fix comment.
3931 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
3933         * include/bits/stl_construct.h: Wrap overlong lines, reformat
3934         according to the coding standards.
3935         * include/bits/stl_pair.h: Likewise.
3936         * include/bits/stl_raw_storage_iter.h: Likewise.
3937         * include/bits/stl_stack.h: Likewise.
3938         * include/bits/stl_uninitialized.h: Likewise.
3939         * include/bits/stream_iterator.h: Likewise.
3940         * include/bits/streambuf_iterator.h: Likewise.
3941         * include/bits/type_traits.h: Likewise.
3943 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
3945         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
3946         Adjust timings.
3948 2004-02-05  Loren J. Rittle  <ljrittle@acm.org>
3950         * scripts/check_performance: Support PCH.
3952         * scripts/check_performance (CXX): Add -DNOTHREAD.
3953         * testsuite/performance/20_util/allocator/insert.cc: Integrate
3954         threaded tests from insert_insert.cc.  Tweak iterations,
3955         remove special cases.
3956         * testsuite/performance/20_util/allocator/insert_insert.cc:
3957         Make all tests single-threaded. Tweak iterations.
3958         * testsuite/performance/20_util/allocator/map_thread.cc:
3959         Tweak iterations.
3960         * testsuite/performance/20_util/allocator/producer_consumer.cc:
3961         Likewise.
3963 2004-02-05  Geoffrey Keating  <geoffk@apple.com>
3965         PR 12179
3966         * .cvsignore: New.
3967         * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
3968         'gcc-lib'.  Add comment about poorly-named variables.
3969         * aclocal.m4: Regenerate.
3970         * configure: Regenerate.
3972 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
3974         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
3975         Thousands-sep are always optional; thousands-sep are not allowed
3976         after the decimal_point.
3977         * testsuite/22_locale/money_get/get/char/12.cc: New.
3978         * testsuite/22_locale/money_get/get/char/13.cc: New.
3979         * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
3980         * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
3982         * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
3983         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3984         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3985         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3986         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3987         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3988         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3989         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3991         * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
3992         the standard.
3993         * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
3995 2004-02-05  Richard Sandiford  <rsandifo@redhat.com>
3997         * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
3998         Define.
3999         * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
4000         it to decide whether FIONREAD should take an off_t or int argument.
4002 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
4004         * include/bits/stl_function.h: Minor formatting changes.
4006 2004-02-04  Zack Weinberg  <zack@codesourcery.com>
4008         Revert previous change to config/abi/*/baseline_symbols.txt.
4010 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
4011             Zack Weinberg  <zack@codesourcery.com>
4013         * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
4014         New function.
4015         (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
4016         (__basic_file<char>::_M_open_mode): Delete.
4017         * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
4019         * testsuite/27_io/basic_filebuf/close/char/9964.cc
4020         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4021         Correct flags to filebuf::open calls.
4023         * config/abi/alpha-freebsd5/baseline_symbols.txt
4024         * config/abi/alpha-linux-gnu/baseline_symbols.txt
4025         * config/abi/hppa-linux-gnu/baseline_symbols.txt
4026         * config/abi/i386-freebsd4/baseline_symbols.txt
4027         * config/abi/i386-freebsd5/baseline_symbols.txt
4028         * config/abi/i486-linux-gnu/baseline_symbols.txt
4029         * config/abi/ia64-linux-gnu/baseline_symbols.txt
4030         * config/abi/mips-linux-gnu/baseline_symbols.txt
4031         * config/abi/sparc-freebsd5/baseline_symbols.txt
4032         * config/abi/sparc-linux-gnu/baseline_symbols.txt
4033         * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
4034         Remove entry for __basic_file<char>::_M_open_mode.
4036 2004-02-04  Loren J. Rittle  <ljrittle@acm.org>
4038         * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
4040 2004-02-04  Felix Yen  <fwy@alumni.brown.edu>
4042         * testsuite/performance/20_util/producer_consumer.cc: New.
4043         * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
4045 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
4047         * testsuite/performance/20_util/allocator.cc: Move to..
4048         * testsuite/performance/20_util/allocator/insert.cc: ...here.
4049         * testsuite/performance/20_util/allocator_thread.cc: Move to...
4050         * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
4051         * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
4052         * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
4054 2004-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
4056         * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
4057         * docs/html/faq/index.txt: Regenerate.
4059 2004-02-04  Dhruv Matani  <dhruvbird@gmx.net>
4061         * include/ext/debug_allocator.h: _M_extra now stands for the
4062         number of extra objects instead of the number of extra bytes.
4063         (debug_allocator::allocate): Adjust.
4064         (debug_allocator::deallocate): Adjust.
4066         * include/ext/pool_allocator.h: Fix typo.
4068 2004-02-03  Felix Yen  <fwy@alumni.brown.edu>
4069             Benjamin Kosnik  <bkoz@redhat.com>
4071         * testsuite/performance/20_util/allocator.cc: Add map,
4072         deque, set tests.
4073         * testsuite/performance/20_util/allocator_thread.cc: Same.
4075 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
4077         * include/bits/basic_string.h (insert(iterator)): Remove,
4078         non-standard and already scheduled for removal.
4080 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
4082         * include/bits/stl_iterator_base_funcs.h: Minor formatting
4083         and indentation tweaks.
4084         * include/bits/stl_iterator_base_types.h: Likewise.
4085         * include/bits/stl_list.h: Likewise.
4086         * include/bits/stl_map.h: Likewise.
4087         * include/bits/stl_tempbuf.h: Likewise.
4089 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
4091         * include/bits/gslice.h, include/bits/gslice_array.h,
4092         include/bits/indirect_array.h, include/bits/mask_array.h,
4093         include/bits/slice_array.h, include/bits/stl_numeric.h,
4094         include/std/std_valarray.h:  Update copyright years.
4096 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
4098         * include/bits/gslice.h (gslice):  Document.
4099         * include/bits/gslice_array.h (gslice_array):  Document.
4100         * include/bits/indirect_array (indirect_array):  Document.
4101         * include/bits/mask_array (mask_array):  Document.
4102         * include/bits/slice_array.h (slice,slice_array):  Document.
4103         * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
4104         adjacent_difference):  Document
4105         * include/std/std_valarray.h (valarray):  Document.
4107 2004-02-02  Benjamin Kosnik  <bkoz@redhat.com>
4109         * docs/html/19_diagnostics/howto.html: Move verbose terminate
4110         documentation...
4111         * docs/html/18_support/howto.html: Here.
4112         * docs/html/documentation.html: Add reference here.
4114 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
4116         * config/locale/gnu/c++locale_internal.h: Remove prototypes
4117         of no longer used GLIBC thread locale functions.
4119 2004-02-02  Eric Christopher  <echristo@redhat.com>
4120             Zack Weinberg  <zack@codesourcery.com>
4122         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
4123         -finput-charset.
4124         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
4125         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
4126         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
4127         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
4128         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
4129         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
4130         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
4131         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4132         Ditto.
4134 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
4136         * include/bits/stl_function.h: Additional minor tweaks.
4137         * include/bits/stl_multiset.h: Likewise.
4139         * include/bits/stl_queue.h: Minor tweaks.
4141 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
4143         PR libstdc++/13976 (continued)
4144         * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
4145         Make the second parameter unnamed, to void unused parameter
4146         warnings.
4147         * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
4149 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
4151         PR libstdc++/13976
4152         * include/ext/malloc_allocator.h (malloc_allocator::allocate):
4153         Make the second parameter unnamed, to void unused parameter
4154         warnings.
4155         * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
4156         * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
4158 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
4160         * include/bits/stl_algo.h: Additional minor tweaks.
4161         * include/bits/stl_map.h: Likewise.
4162         * include/bits/stl_multimap.h: Likewise.
4163         * include/bits/stl_multiset.h: Likewise.
4164         * include/bits/stl_set.h: Likewise.
4165         * include/bits/stl_tree.h: Likewise.
4167 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
4169         * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
4170         Remove, unused.
4172 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
4174         * include/bits/stl_function.h: Additional minor tweaks.
4176 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
4178         * include/bits/deque.tcc: Wrap overlong lines, constify
4179         a few variables, reformat according to the coding standards.
4180         * include/bits/list.tcc: Likewise.
4181         * include/bits/stl_deque.h: Likewise.
4182         * include/bits/stl_function.h: Likewise.
4183         * include/bits/stl_iterator.h: Likewise.
4184         * include/bits/stl_iterator_base_funcs.h: Likewise.
4185         * include/bits/stl_iterator_base_types.h: Likewise.
4186         * include/bits/stl_list.h: Likewise.
4187         * include/bits/stl_map.h: Likewise.
4188         * include/bits/stl_multimap.h: Likewise.
4189         * include/bits/stl_multiset.h: Likewise.
4190         * include/bits/stl_relops.h: Likewise.
4191         * include/bits/stl_set.h: Likewise.
4193 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
4195         * include/bits/stl_bvector.h: Wrap overlong lines, constify
4196         a few variables, reformat according to the coding standards.
4197         * include/bits/stl_tree.h: Likewise.
4199 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
4201         * include/bits/stl_algo.h: Minor additional reformat, add
4202         copyright year.
4203         * include/bits/stl_algobase.h: Add copyright year.
4205 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
4207         * include/bits/stl_algo.h: Wrap overlong lines, constify
4208         a few variables, reformat according to the coding standards.
4209         * include/bits/stl_algobase.h: Likewise.
4210         * include/bits/stl_heap.h: Likewise.
4212 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
4214         * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
4216         * include/bits/basic_string.h: Fix two comments.
4218 2004-01-31  Per Bothner  <per@bothner.com>
4220         * include/ext/mt_allocator.h
4221         (__mt_alloc::_S_thread_freelist_mutex): Guard with
4222         __GTHREAD_MUTEX_INIT.
4224 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
4226         * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
4228 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
4230         * testsuite/21_strings/basic_string/cons/char/6.cc: New.
4231         * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
4232         * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
4234 2004-01-30  Felix Yen  <fwy@alumni.brown.edu>
4236         * testsuite/performance/20_util/allocator_thread.cc (do_loop):
4237         Don't use clear, but instead assign. Use insert.
4239 2004-01-30  Benjamin Kosnik  <bkoz@redhat.com>
4241         * src/demangle.cc: Add instantiations.
4242         * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
4243         * src/Makefile.in: Regenerate.
4245 2004-01-30  David Edelsohn  <edelsohn@gnu.org>
4247         * src/allocator.cc: Protect _S_get_thread_id() and
4248         _S_thread_key_destr() with #ifdef __GTHREADS.
4250 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
4252         Reshuffle performance testsuite.
4253         * testsuite/performance/allocator.cc, allocator_map_thread.cc,
4254         allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
4255         cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
4256         fstream_seek_write.cc, ifstream_extract_float.cc,
4257         ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
4258         list_create_fill_sort.cc, map_create_fill.cc,
4259         narrow_widen_char.cc, narrow_widen_wchar_t.cc,
4260         ofstream_insert_float.cc, ofstream_insert_int.cc,
4261         string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
4262         wchar_t_out.cc: Split into...
4263         * testsuite/performance/20_util/allocator.cc: New.
4264         * testsuite/performance/20_util/allocator_map_thread.cc: New.
4265         * testsuite/performance/20_util/allocator_thread.cc: New.
4266         * testsuite/performance/21_strings/string_append: New.
4267         * testsuite/performance/22_locale/is_wchar_t.cc: New.
4268         * testsuite/performance/22_locale/narrow_widen_char.cc: New.
4269         * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
4270         * testsuite/performance/22_locale/wchar_t_in.cc: New.
4271         * testsuite/performance/22_locale/wchar_t_length.cc: New.
4272         * testsuite/performance/22_locale/wchar_t_out.cc: New.
4273         * testsuite/performance/23_containers/container_benchmark.cc: New.
4274         * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
4275         * testsuite/performance/23_containers/map_create_fill.cc: New.
4276         * testsuite/performance/26_numerics/complex_norm.cc: New.
4277         * testsuite/performance/27_io/cout_insert_int.cc: New.
4278         * testsuite/performance/27_io/filebuf_copy.cc: New.
4279         * testsuite/performance/27_io/filebuf_sputc.cc: New.
4280         * testsuite/performance/27_io/fstream_seek_write.cc: New.
4281         * testsuite/performance/27_io/ifstream_extract_float.cc: New.
4282         * testsuite/performance/27_io/ifstream_extract_int.cc: New.
4283         * testsuite/performance/27_io/ifstream_getline.cc: New.
4284         * testsuite/performance/27_io/ofstream_insert_float.cc: New.
4285         * testsuite/performance/27_io/ofstream_insert_int.cc: New.
4287 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
4289         * include/bits/basic_string.tcc (_Rep::_S_create):
4290         Never allocate a string bigger than max_size(); always keep
4291         __capacity and __size in sync to avoid memory leaks at
4292         deallocation time.
4294 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
4296         * include/bits/basic_string.tcc (_S_construct(_InIterator,
4297         _InIterator, const _Alloc&, input_iterator_tag)): Simplify
4298         the double loop, streamline.
4300         * include/bits/basic_string.tcc: Very minor tweaks.
4302 2004-01-30  Loren J. Rittle  <ljrittle@acm.org>
4304         * scripts/check_performance: Only compile with $THREAD_FLAG
4305         when test is marked to require it.  Allow multiple
4306         compilations/executions of marked tests.
4307         * testsuite/testsuite_performance.h (report_performance):
4308         Report dynamic thread support status.
4309         (report_header): Likewise.
4310         * testsuite/performance/allocator.cc: Stabilize iteration
4311         count.  Support more allocators.  Mark each allocator test to
4312         run and report independently.
4313         * testsuite/performance/allocator_map_thread.cc: Likewise.
4314         * testsuite/performance/allocator_thread.cc: Likewise.
4316 2004-01-29  Stephen M. Webb  <stephen.webb@bregmasoft.com>
4318         * config/local/generic/c_locale.h: Change ::malloc() to new char[].
4319         * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
4320         * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
4321         std::get_temporary_buffer() instead of duplicating its code.
4322         Update to C++STYLE conventions.
4323         * include/std/std_memory.h (get_temporary_buffer): Use ::operator
4324         new() instead of std::malloc().
4325         (return_temporary_buffer): Use ::operator delete() instead of
4326         std::free().
4328 2004-01-29  Benjamin Kosnik  <bkoz@redhat.com>
4330         * include/bits/allocator.h: Temporary switch to new_allocator as
4331         the default to unjam bootstraps.
4333 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
4335         * include/Makefile.am (bits_headers): Remove allocator_traits.h.
4336         * include/Makefile.in: Regenerate.
4337         * include/bits/allocator_traits.h: Remove.
4338         * include/bits/allocator.h: Remove allocator_traits.h include, and
4339         relevant comments.
4340         (allocator): Empty base class, inherit from the underlying allocator.
4341         * src/allocator-inst.cc: Move __pool_alloc instantiation to...
4342         * src/allocator.cc: ...here. New. For the underlying allocators.
4343         Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
4344         * config/linker-map.gnu: Remove __pool_alloc bits.
4345         * src/Makefile.am (sources): Add allocator.cc.
4346         * src/Makefile.in: Regenerate.
4347         * testsuite/20_util/allocator/1.cc: Split second test into...
4348         * testsuite/20_util/allocator/8230.cc: ...this.
4349         * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
4350         typedef to use std::allocatore. Format.
4351         * include/ext/pool_allocator.h: Remove allocator_traits.h include,
4352         _Alloc_traits.
4353         * include/ext/mt_allocator.h (__gnu_cxx): Qualify
4354         __throw_bad_alloc calls. Don't include <memory>.
4355         * include/ext/malloc_allocator.h: Remove <memory> include.
4356         * include/ext/new_allocator.h (new_allocator): Same.
4357         * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
4358         declaration. Switch __alloc to _Alloc.
4359         * include/ext/hashtable.h: Remove __alloc.
4360         * include/backward/alloc.h: Only inject allocator, not
4361         implementation details.
4363         * include/ext/mt_allocator.h: Replace free with delete.
4365 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
4367         * src/globals_io.cc: Change to __gnu_internal namespace.
4368         * src/globals_locale.cc: Same.
4369         * src/locale_init.cc: Same.
4370         * src/ios_init.cc: Same.
4372 2004-01-28  Stefan Olsson  <stefan@snon.net>
4374         * include/ext/mt_allocator.h: Replaced all malloc() calls with
4375         operator new(). Added support for the env variable
4376         GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
4377         one in allocate() as well). Fix typos.
4379 2004-01-28  Paolo Carlini  <pcarlini@suse.de>
4381         * include/bits/basic_string.h (_S_create(size_t,
4382         const _Alloc&): Change signature to take two size_type
4383         arguments.
4384         * include/bits/basic_string.tcc (_S_construct(_InIterator,
4385         _InIterator, const _Alloc&, input_iterator_tag)): Update
4386         call, tweak a bit.
4387         (_S_construct(_InIterator, _InIterator, const _Alloc&,
4388         forward_iterator_tag)): Likewise.
4389         (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
4390         (_M_mutate(size_type, size_type, size_type)): Don't
4391         implement the exponential growth policy, demand it to
4392         _S_create, update call and simplify.
4393         (_M_clone(const _Alloc&, size_type)): Likewise.
4394         (_S_create(size_type, size_type, const _Alloc&)): Implement
4395         the growth policy, simplify otherwise.
4397         * include/bits/basic_string.h (_Rep::operator[]): Tweak
4398         signature to take a size_type, consistently with the other
4399         members.
4401 2004-01-27  Benjamin Kosnik  <bkoz@redhat.com>
4403         * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
4404         delete declarations, add include and test variable.
4406 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
4408         * include/bits/codecvt.h, include/bits/locale_facets.h,
4409         include/bits/postypes.h, include/bits/stl_bvector.h,
4410         include/bits/stl_multiset.h, include/bits/stl_set.h,
4411         include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
4412         include/std/std_complex.h:  Document.
4414 2004-01-27  Jerry Quinn  <jlquinn@optonline.net>
4416         PR libstdc++/11584
4417         * include/bits/ios_base.h (ios_base::_M_grow_words):  Add
4418         iword/pword selector.
4419         (ios_base::iword, ios_base::pword):  Use it.
4420         * src/ios.cc (ios_base::_M_grow_words):  Clear _M_word_zero
4421         iword or pword member on alloc failure.
4422         * testsuite/27_io/ios_base/storage/11584.cc:  New test.
4424 2004-01-27  Ulrich Weigand  <uweigand@de.ibm.com>
4425             PJ Darcy  <darcypj@us.ibm.com>
4427         * configure.host: Add support for *-tpf.
4428         * crossconfig.m4: Likewise.
4429         * configure: Regenerate.
4430         * config/os/tpf: New directory.
4431         * config/os/tpf/os_defines.h: New file.
4432         * config/os/tpf/ctype_base.h: Likewise.
4433         * config/os/tpf/ctype_inline.h: Likewise.
4434         * config/os/tpf/ctype_noninline.h: Likewise.
4436 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
4438         PR libstdc++/13884
4439         * include/bits/sstream.tcc: Guard use of extern template.
4441 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
4443         * include/bits/basic_string.tcc
4444         (basic_string(const basic_string&, size_type, size_type),
4445         basic_string(const basic_string&, size_type, size_type,
4446         const _Alloc&)): Avoid unnecessarily constructing iterators.
4448 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
4450         * config/locale/generic/c_locale.cc: Fix throw messages
4451         to use the __N marker.
4452         * config/locale/gnu/c_locale.cc: Likewise.
4453         * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
4454         Likewise.
4455         * docs/html/17_intro/C++STYLE: Likewise.
4456         * include/bits/basic_ios.tcc: Likewise.
4457         * include/bits/fstream.tcc: Likewise.
4458         * include/bits/vector.tcc: Likewise.
4459         * include/ext/ropeimpl.h: Likewise.
4460         * include/std/std_bitset.h: Likewise.
4461         * src/ios.cc: Likewise.
4462         * src/locale.cc: Likewise.
4463         * src/localename.cc: Likewise.
4465 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
4467         * include/bits/basic_string.h (_M_replace_aux): Use the
4468         __N marker in throw message.
4469         * include/bits/basic_string.tcc (assign(const _CharT*,
4470         size_type), insert(size_type, const _CharT*, size_type),
4471         replace(size_type, size_type, const _CharT*, size_type),
4472         reserve, _Rep::_S_create, resize, _M_replace_dispatch):
4473         Likewise.
4475         * include/bits/basic_string.h, include/bits/basic_string.tcc:
4476         Fold overlong lines, minor formatting changes.
4478 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
4480         * include/bits/basic_string.h (replace(iterator, iterator,
4481         const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
4482         (replace(iterator, iterator, const _CharT*)): Ditto.
4483         (replace(iterator, iterator, const _CharT*, size_type)):
4484         Add missing _GLIBCXX_DEBUG_PEDASSERT.
4486 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
4488         * include/bits/basic_string.tcc (replace(size_type,
4489         size_type, const _CharT*, size_type)): Implement optimized
4490         in-place algorithm for non-overlapping ranges.
4491         * testsuite/21_strings/basic_string/replace/char/6.cc: New.
4492         * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
4494         * include/bits/basic_string.tcc (insert(size_type,
4495         const _CharT*, size_type)): Tweak slightly.
4497 2004-01-26  Andreas Schwab  <schwab@suse.de>
4499         * config/locale/gnu/monetary_members.cc: Restore locale before
4500         rethrowing exception.
4502 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
4504         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
4505         Define inline here.
4506         * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
4507         Move inline.
4509         * include/bits/basic_string.tcc: Very minor tweaks.
4511 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
4513         * testsuite/performance/string_append.cc: Increase number
4514         of iterations.
4516 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
4518         * include/bits/basic_string.h (erase(size_type, size_type),
4519         erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
4520         instead, thus avoiding redundant check for length_error.
4522         * include/bits/basic_string.h: Tweak some comments.
4524 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
4526         * include/bits/basic_string.tcc (operator+(const _CharT*,
4527         const basic_string&)): No need to go through the append
4528         taking two iterators.
4530 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
4532         * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
4533         Revert last change to use std::min: machine language is worse.
4534         (find_last_of(const _CharT*, size_type, size_type)): Ditto.
4535         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4536         (find_last_not_of(_CharT, size_type)): Ditto.
4538         * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
4539         size_type)): Discard the value returned by _M_check.
4540         (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
4541         (append(const basic_string&, size_type, size_type)): Ditto.
4542         (copy(_CharT*, size_type, size_type)): Ditto.
4543         (compare(size_type, size_type, const basic_string&)): Ditto.
4544         (compare(size_type, size_type, const basic_string&,
4545         size_type, size_type)): Ditto.
4546         (compare(size_type, size_type, const _CharT*)): Ditto.
4547         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
4549 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
4551         * include/bits/basic_string.h (insert(size_type,
4552         const basic_string&, size_type, size_type)): Define inline here.
4553         * include/bits/basic_string.tcc (insert(size_type,
4554         const basic_string&, size_type, size_type)): Move inline.
4556 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
4558         * include/bits/basic_string.h (assign(const basic_string&,
4559         size_type, size_type)): Define inline here.
4560         (replace(size_type, size_type, const basic_string&,
4561         size_type, size_type)): Ditto.
4562         (_M_replace_dispatch(iterator, iterator, _InputIterator,
4563         _InputIterator, __false_type)): Only declare.
4564         (_M_replace(iterator, iterator, _InputIterator,
4565         _InputIterator)): Remove.
4566         * include/bits/basic_string.tcc (assign(const basic_string&,
4567         size_type, size_type)): Move inline.
4568         (replace(size_type, size_type, const basic_string&,
4569         size_type, size_type)): Ditto.
4570         (_M_replace_dispatch(iterator, iterator, _InputIterator,
4571         _InputIterator, __false_type)): Define, now does also what
4572         _M_replace did before.
4573         * src/string-inst.cc (_M_replace): Don't instantiate.
4575         * include/bits/basic_string.tcc (find(const _CharT*,
4576         size_type, size_type)): Tidy.
4577         (rfind(_CharT, size_type)): Ditto.
4578         (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
4579         (find_first_not_of(_CharT, size_type)): Ditto.
4580         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4581         (find_last_not_of(_CharT, size_type)): Ditto.
4583 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
4585         PR libstdc++/13838
4586         * include/debug/bitset (operator|=): Fix typo.
4587         * testsuite/23_containers/bitset/operations/13838.cc: New.
4589 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
4591         * include/bits/basic_string.tcc (insert(size_type,
4592         const _CharT*, size_type __n)): Fix length_error check.
4593         (replace(size_type, size_type, const _CharT*, size_type):
4594         Ditto; call _M_replace_safe.
4595         (_M_replace_aux(size_type, size_type, size_type, _CharT):
4596         Fix length_error check.
4597         (_M_replace(iterator, iterator, _InputIterator,
4598         _InputIterator)): Ditto, tweak.
4599         (_M_replace_safe(size_type, size_type, const _CharT*,
4600         size_type)): Remove length_error check.
4602         * include/bits/basic_string.tcc (append(const basic_string&),
4603         append(const basic_string&, size_type, size_type)): Tweak
4604         comment.
4606         * include/bits/basic_string.tcc (copy(_CharT*, size_type,
4607         size_type)): If __n == 0 don't call traits::copy.
4609 2004-01-23  Stefan Olsson  <stefan@snon.net>
4611         * include/ext/mt_allocator.h: Reduce lock contention.
4613 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
4615         PR libstdc++/13831
4616         * include/bits/fstream.tcc (underflow): Remove unused
4617         variable.
4618         * include/bits/streambuf_iterator.h (equal): Ditto.
4619         * include/bits/locale_facets.h (_M_convert_from_char):
4620         Ditto.
4622 2004-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4624         PR c/13814
4625         * config/linker-map.gnu (nan): Delete.
4626         * libmath/mathconf.h (NAN, nan): Delete.
4627         * linkage.m4 (nan): Don't check for it.
4628         * libmath/nan.c: Delete file.
4630         * config.h.in, configure: Regenerate.
4632 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
4634         * include/bits/basic_string.h (push_back(_CharT)):
4635         Call _M_replace_aux.
4636         (insert(size_type, const basic_string&)): Trivial tweak.
4637         (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
4638         (insert(iterator, _CharT)): Ditto.
4639         (erase(size_type, size_type)): Ditto.
4640         (erase(iterator)): Ditto.
4641         (erase(iterator, iterator)): Ditto.
4642         (replace(size_type, size_type, size_type, _CharT)): Ditto.
4644 2004-01-23  Loren J. Rittle  <ljrittle@acm.org>
4646         libstdc++/13823
4647         * testsuite/performance/allocator_map_thread.cc: New test.
4649 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
4651         * include/bits/locale_facets.tcc
4652         (money_put::do_put(..., long double)): Use the basic_string
4653         constructor for char arrays, not that for C-strings, to pass
4654         __digits to do_put(..., const string_type&): __ws isn't
4655         null-terminated.
4657 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
4659         * include/bits/basic_string.h (_M_replace_safe): Change
4660         signatures to take size_types and const _CharT*.
4661         (_M_replace_aux): Likewise, takes size_types instead of
4662         iterators.
4663         (append(size_type, _CharT)): Update call.
4664         (assign(size_type, _CharT)): Ditto.
4665         (replace(iterator, iterator, size_type, _CharT)): Ditto.
4666         (_M_replace_dispatch(iterator, iterator, _Integer,
4667         _Integer, __true_type)): Ditto.
4668         * include/bits/basic_string.tcc (assign(const _CharT*,
4669         size_type)): Ditto.
4670         (insert(size_type, const _CharT*, size_type)): Ditto.
4671         (replace(size_type, size_type, const _CharT*,
4672         size_type)): Ditto.
4673         (_M_replace(iterator, iterator, _InputIterator,
4674         _InputIterator)): Ditto.
4675         (append(const basic_string&)): Ditto.
4676         (append(const basic_string&, size_type, size_type): Ditto.
4677         (append(const _CharT*, size_type): Ditto.
4678         (_M_replace_safe, _M_replace_safe): Change definitions
4679         accordingly, simplify.
4680         * string-inst.cc (_M_replace_safe): Don't instantiate.
4682 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
4684         * include/bits/basic_string.tcc (append(const basic_string&)):
4685         Revert previous change.
4686         (append(const basic_string&, size_type, size_type)): Revert
4687         previous change, use _M_check and _M_limit.
4689 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
4691         * include/bits/basic_string.h (_M_check): Change to return
4692         a checked __pos and take an additional const char* argument.
4693         (_M_fold): Rename to _M_limit, change to return a size_type,
4694         corresponding to the __off limited to the actual length.
4695         (insert(size_type, size_type, _CharT)): Update call, call
4696         replace.
4697         (insert(iterator, _CharT)): Call replace(iterator, iterator,
4698         size_type, _CharT) instead.
4699         (erase(size_type, size_type)): Update calls.
4700         (replace(size_type, size_type, size_type, _CharT)): Ditto.
4701         (substr(size_type, size_type)): Use _M_check.
4702         * include/bits/basic_string.tcc (basic_string(const basic_string&,
4703         size_type, size_type)): Update calls.
4704         (basic_string(const basic_string&, size_type, size_type,
4705         const _Alloc&)): Ditto.
4706         (assign(const basic_string&, size_type, size_type)): Use the
4707         new _M_check and _M_limit.
4708         (insert(size_type, const basic_string&, size_type, size_type):
4709         Ditto.
4710         (insert(size_type, const _CharT*, size_type)): Ditto.
4711         (replace(size_type, size_type, const _CharT*, size_type): Ditto.
4712         (replace(size_type, size_type, const basic_string&,
4713         size_type, size_type)): Ditto.
4714         (append(const basic_string&)): Ditto.
4715         (append(const basic_string&, size_type, size_type)): Ditto.
4716         (copy(_CharT*, size_type, size_type)): Ditto.
4717         (compare(size_type, size_type, const basic_string&)): Ditto.
4718         (compare(size_type, size_type, const basic_string&,size_type,
4719         size_type)): Ditto.
4720         (compare(size_type, size_type, const _CharT*)): Ditto.
4721         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
4723 2004-01-19  Stefan Olsson  <stefan@snon.net>
4725         * include/ext/mt_allocator.h: If a thread, when it dies, still has
4726         memory on it's freelist this memory is not returned to global
4727         list. Simplification of deallocate so that memory is always
4728         returned to the calling thread id's freelist instead of to
4729         global. Fix typos. Add volatile where appropriate.
4731 2004-01-19  Loren J. Rittle  <ljrittle@acm.org>
4733         * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
4734         * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test.  Like -2 but
4735         use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
4737 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
4739         * src/debug.cc: Make sure all the names are prefixed with
4740         double (or single) underscore.
4742 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
4744         * src/debug.cc: Trivial formatting change.
4746 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
4748         * include/bits/basic_string.tcc (_S_construct(size_type,
4749         _CharT, const _Alloc&)): Remove redundant try/catch.
4750         (_M_mutate(size_type, size_type, size_type)): Ditto.
4751         (_M_clone(const _Alloc&, size_type)): Ditto.
4753 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
4755         * include/bits/basic_string.h (c_str()): Simplify, due to
4756         21.3.4 the internal representation is always kept null-terminated.
4757         * include/bits/basic_string.tcc (_M_clone): Null-terminate.
4758         * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
4759         * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
4760         Ditto.
4762 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
4764         * include/bits/basic_string.h (append(size_type, _CharT)):
4765         Moved inline, just call _M_replace_aux, no source iterators at
4766         risk of being clobbered.
4767         (assign(size_type, _CharT)): Call directly _M_replace_aux.
4768         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
4769         input_iterator_tag)): Remove fifth unused argument.
4770         (_M_replace_dispatch(iterator, iterator, _InputIterator,
4771         _InputIterator, __false_type)): Update call.
4772         * include/bits/basic_string.tcc (replace(size_type, size_type,
4773         const _CharT*, size_type)): Update call.
4774         (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
4775         throw string literal.
4776         (_M_replace_safe(iterator, iterator, _ForwardIterator,
4777         _ForwardIterator)): Likewise.
4778         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
4779         input_iterator_tag)): Remove fifth unused argument.
4780         (append(size_type __n, _CharT __c)): Move inline.
4781         * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
4782         const C*, const C*, input_iterator_tag)): Remove fifth unused
4783         argument.
4785 2004-01-16  Benjamin Kosnik  <bkoz@redhat.com>
4787         * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
4788         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
4790 2004-01-16  Danny Smith  <dannysmith@users.sourceforge.net>
4792         * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
4793         mkfifo for mingw32.
4795 2004-01-15  Stefan Olsson  <stefan@snon.net>
4797         * include/ext/mt_allocator.h: Reuse thread id's as soon as
4798         possible by changing the behaviour of thread_freelist to do
4799         push_front when threads die instead of push_back.
4801 2004-01-14  Paolo Carlini  <pcarlini@suse.de>
4803         * include/bits/locale_facets.h (struct __numpunct_cache):
4804         Add member _M_grouping_size, caching the length of _M_grouping.
4805         (__numpunct_cache<>::_M_cache): Assign the latter.
4806         (__verify_grouping): Move declaration...
4807         * include/bits/locale_facets.tcc (__verify_grouping):
4808         ... here, change signature to take a const char* and a size_t
4809         for the grouping; not a template anymore.
4810         (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
4811         Likewise change signature and tweak consistently.
4812         (num_get::_M_extract_float, num_get::_M_extract_int,
4813         num_put::_M_insert_int, num_put::_M_insert_float,
4814         money_get::do_get(string_type&), money_get::do_put(string_type)):
4815         Update callers.
4816         * config/locale/generic/numeric_members.cc
4817         (numpunct<>::_M_initialize_numpunct): Assign the new member.
4818         * config/locale/gnu/numeric_members.cc
4819         (numpunct<>::_M_initialize_numpunct): Likewise.
4820         * src/locale-inst.cc (__add_grouping): Tweak signature.
4821         (__verify_grouping): Don't instantiate, not a template anymore.
4823         * include/bits/locale_facets.h: Rename _M_truename_len ->
4824         _M_truename_size, _M_falsename_len -> _M_falsename_size.
4825         * include/bits/locale_facets.tcc: Likewise.
4826         * config/locale/generic/numeric_members.cc: Likewise.
4827         * config/locale/gnu/numeric_members.cc: Likewise.
4829 2004-01-14  Stefan Olsson  <stefan@snon.net>
4831         * include/ext/mt_allocator.h: Fixups.
4832         * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
4833         * testsuite/performance/allocator_thread.cc: Same.
4835 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
4837         * testsuite/performance/ifstream_extract_float.cc: Add higher
4838         precision tests.
4839         * testsuite/performance/ofstream_insert_float.cc: Same.
4841 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
4843         * src/locale-misc-inst.cc (__convert_from_v(long),
4844         __convert_from_v(unsigned long), __convert_from_v(long long),
4845         __convert_from_v(unsigned long long)): Remove, unused.
4847 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
4849         * testsuite/performance/ifstream_extract_float.cc: New.
4850         * testsuite/performance/ofstream_insert_float.cc: Float generation
4851         matches above.
4853         * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
4854         * 20_util/auto_ptr/1.cc: ...this.
4855         * 20_util/auto_ptr/2.cc: Same.
4856         * 20_util/auto_ptr/3.cc: Same.
4857         * 20_util/auto_ptr/3946.cc: Same.
4858         * 20_util/auto_ptr/4.cc: Same.
4859         * 20_util/auto_ptr/5.cc: Same.
4860         * 20_util/auto_ptr/6.cc: Same.
4861         * 20_util/auto_ptr/7.cc: Same.
4862         * 20_util/auto_ptr/assign_neg.cc
4863         * 20_util/pairs.cc: Break into...
4864         * 20_util/pair/1.cc: ...this.
4865         * 20_util/pair/2.cc: Same.
4866         * 20_util/pair/3.cc: Same.
4867         * 20_util/pair/4.cc: Same.
4869 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
4871         * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
4872         Set correctly just basefield, the only group that matters.
4874 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
4876         * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
4877         (_Rope_rep_base): Inherit directly from the rope allocator;
4878         use rebinding instead of _Alloc_traits; pick up data member
4879         from _Rope_rep_alloc_base.
4880         (_Rope_alloc_base): Eliminate.
4881         (_Rope_base): Inherit directly from the rope allocator; use
4882         rebinding instead of _Alloc_traits; pick up data member from
4883         _Rope_alloc_base.
4884         (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
4885         rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
4887 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
4889         PR libstdc++/13650
4890         * include/bits/basic_string.tcc (compare(size_type, size_type,
4891         const _CharT*, size_type)): Implement correctly the resolution
4892         of DR 5: basically, s is a char array, -not- a C string.
4893         * include/bits/basic_string.h: Tweak some comments.
4894         * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
4895         * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
4897 2004-01-12  Andreas Tobler  <a.tobler@schweiz.ch>
4899         * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
4900         Solaris.
4902 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
4904         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
4905         Use try_mkfifo.
4906         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
4907         Likewise.
4909 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
4911         * include/bits/locale_facets.h (struct __numpunct_cache):
4912         Add members _M_truename_len and _M_falsename_len, caching
4913         the lengths of _M_truename and _M_falsename.
4914         (__numpunct_cache<>::_M_cache): Assign the latter.
4915         * include/bits/locale_facets.tcc (num_get::do_get(bool&),
4916         num_put::do_put(bool)): Use the new members, thus avoiding
4917         computing string lengths again and again.
4918         * config/locale/generic/numeric_members.cc
4919         (numpunct<>::_M_initialize_numpunct): Assign the new members.
4920         * config/locale/gnu/numeric_members.cc
4921         (numpunct<>::_M_initialize_numpunct): Likewise.
4923 2004-01-12  Mark Mitchell  <mark@codesourcery.com>
4925         * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
4926         * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
4927         it.
4928         * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
4929         and remove Cygwin XFAIL.
4930         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
4931         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
4932         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
4933         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
4934         Likewise.
4935         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
4936         * testsuite/27_io/objects/char/7.cc: Likewise.
4937         * testsuite/27_io/objects/char/9661-1.cc: Likewise.
4938         * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
4939         * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
4941 2004-01-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4943         * include/std/std_complex.h (std::complex<>::real): Return a
4944         reference. Add non-const overload.
4945         (std::complex<>::real): Likewise.
4946         (std::real): Likewise.
4947         (std::imag): Likewise.
4948         (std::operator+): Tidy.
4949         (std::operator-): Likewise.
4950         (std::operator*): Likewise.
4951         (std::operator/): Likewise.
4952         (std::operator>>): Likewise.
4954 2004-01-11  Paolo Carlini  <pcarlini@suse.de>
4956         PR libstdc++/13582
4957         * include/bits/fstream.tcc (imbue): Exploit the external
4958         buffer to imbue 'on the fly' a new locale and convert its
4959         remainder with the new codecvt facet.
4960         (underflow): Tweak slightly to deal with this special case.
4961         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
4962         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
4963         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
4964         * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
4965         * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
4967 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
4969         * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
4970         Import Revision 28.
4972 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
4974         PR libstdc++/13630
4975         * include/bits/locale_classes.h (class locale): Fix category
4976         typedef.
4977         * testsuite/22_locale/locale/13630.cc: Add.
4979 2004-01-10  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
4981         * include/bits/locale_facets.h: Make a name really dependent. This
4982         will be needed when Core Issue 224 is implemented.
4984 2004-01-09  Paolo Carlini  <pcarlini@suse.de>
4986         * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
4987         * testsuite/performance/allocator_thread.cc: Likewise.
4989 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
4991         * crossconfig.m4: Add LFS, io bits to linux cross config.
4992         * acconfig.h: Remove obsolete bits, reorder.
4993         * config.h.in: Regenerate.
4994         * aclocal.m4: Same.
4995         * configure: Same.
4997 2004-01-07  Gawain Bolton  <gp.bolton@computer.org>
4999         * include/bits/stl_list.h:
5000         * include/bits/list.tc:
5001         * src/list.cc:
5002         Performance enhancements for destructor, push_front(),
5003         push_back(), pop_front(), pop_back(), sort()
5004         Eliminated static_casts where possible.
5005         Moved code out of header files into new src/list.cc
5006         implementation file for library where possible.
5007         Remove inheritance from iterator class and create separate
5008         classes for non-constant and constant iterators.
5009         * include/bits/stl_tree.h (_Rb_tree class):
5010         * src/tree.cc:
5011         Only erase contents in destructor.
5012         Eliminate unnecessary initialization in assignment operator.
5013         Optimize for the nominal case by not checking whether
5014         container is empty in clear().
5015         Re-order test in _M_insert() to improve performance.
5016         Move initialization of new node's left & right pointers to
5017         src/tree.cc to where new node's colour is initialized
5018         and to reduce the amount of inline code.
5019         Use  _M_leftmost() and _M_end() to improve readability where
5020         appropriate.
5021         Create separate classes for non-constant and constant
5022         iterators to clarify code, avoid extra template parameters and
5023         casting away constness.
5025 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
5027         * src/Makefile.am (sources): Add list.cc, tree.cc.
5028         * src/stl_tree.cc: Move to...
5029         * src/tree.cc: ...here.
5030         * src/list.cc: Add.
5031         * config/linker-map.gnu: Tweaks.
5032         * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
5033         * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
5035         * bits/stl_vector.h: Column wrap comments.
5037 2004-01-07  Loren J. Rittle  <ljrittle@acm.org>
5039         (re-open) PR libstdc++/12658
5040         * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
5041         (locale::global): Likewise.
5043 2004-01-07  Paolo Carlini  <pcarlini@suse.de>
5045         * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
5046         Remove redundant #include.
5047         * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
5048         * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
5049         re-enable normal testing.
5050         * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
5051         #include.
5052         * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
5053         * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
5054         Likewise.
5055         * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
5056         Likewise.
5057         * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
5058         Likewise.
5059         * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
5060         Likewise.
5061         * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
5062         Likewise.
5063         * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
5064         Likewise.
5065         * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
5066         Likewise.
5067         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
5068         More properly, #include <locale>.
5069         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
5070         Remove redundant #include.
5071         * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
5072         * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
5073         redundant DejaGnu directive.
5074         * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
5075         redundant #include.
5077 2004-01-06  Benjamin Kosnik  <bkoz@redhat.com>
5078             Stefan Olsson  <stefan@snon.net>
5080         * scripts/check_performance: Use -pthread.
5081         * testsuite/performance/allocator.cc: Tweaks, add list.
5082         * testsuite/performance/allocator_thread.cc: New.
5084 2004-01-06  Jerry Quinn  <jlquinn@optonline.net>
5086         * include/bits/locale_facets.h: Document public classes and
5087         functions.
5088         * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
5089         Add comment.
5091 2004-01-06  Paolo Carlini  <pcarlini@suse.de>
5093         * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
5094         Remove redundant #includes.
5095         * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
5096         Likewise.
5097         * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
5098         Likewise.
5099         * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
5100         * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
5101         * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
5102         * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
5103         * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
5104         * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
5105         * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
5106         * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
5107         * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
5108         * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
5109         * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
5110         * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
5111         * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
5112         * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
5113         * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
5114         Likewise.
5115         * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
5116         Likewise.
5117         * testsuite/27_io/basic_istream/readsome/char/8258.cc:
5118         Likewise.
5119         * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
5120         Likewise.
5121         * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
5122         Likewise.
5123         * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
5124         * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
5125         * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
5127 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
5129         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
5130         Remove redundant #includes.
5131         * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
5132         Likewise.
5133         * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
5134         Likewise.
5135         * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
5136         Likewise.
5137         * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
5138         Likewise.
5139         * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
5140         Likewise.
5141         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
5142         Likewise.
5143         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
5144         Likewise.
5145         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
5146         Likewise.
5147         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
5148         Likewise.
5149         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
5150         Likewise.
5151         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
5152         Likewise.
5153         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
5154         Likewise.
5156 2004-01-04  Mark Mitchell  <mark@codesourcery.com>
5158         PR c++/12226
5159         * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
5160         constructor.
5161         * testsuite/27_io/basic_fstream/4.cc: Likewise.
5162         * testsuite/27_io/basic_ifstream/4.cc: Likewise.
5163         * testsuite/27_io/basic_ios/4.cc: Likewise.
5164         * testsuite/27_io/basic_iostream/4.cc: Likewise.
5165         * testsuite/27_io/basic_istream/4.cc: Likewise.
5166         * testsuite/27_io/basic_istingstream/4.cc: Likewise.
5167         * testsuite/27_io/basic_ofstream/4.cc: Likewise.
5168         * testsuite/27_io/basic_ostream/4.cc: Likewise.
5169         * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
5170         * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
5171         * testsuite/27_io/basic_stringstream/4.cc: Likewise.
5173 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
5175         * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
5176         Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
5177         always use double underscored names.
5178         * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
5179         Likewise.
5180         * include/bits/locale_facets.h (struct __numpunct_cache):
5181         Dimension _M_atoms_out and _M_atoms_in one position smaller.
5182         (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out
5183         and _M_atoms_in.