Restored acciddental check-in.
[official-gcc.git] / libstdc++-v3 / ChangeLog
blobf736c640fa859fc4c8912f9f4f86261f991bb04a
1 2004-10-11  Benjamin Kosnik  <bkoz@redhat.com>
3         * include/bits/stl_deque.h: Correct for over-long lines.
5 2004-10-11  Benjamin Kosnik  <bkoz@redhat.com>
7         PR libstdc++/17937
8         * include/ext/mt_allocator.h (__pool::_M_destroy): New.
9         * src/mt_allocator.cc (__pool::~__pool): Change definitions to
10         _M_destroy.
11         * acconfig.h: Remove _GLIBCXX_USE___CXA_ATEXIT.
12         * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): Remove.
13         * configure.ac: Remove call to GLIBCXX_ENABLE_CXA_EXIT.
14         * configure: Regenerate.
15         * config/linker-map.gnu: Tweak exports.
16         * docs/html/ext/mt_allocator.html: Update docs.
17         * testsuite/ext/mt_allocator/deallocate_global-2.cc: Fix.
18         * testsuite/ext/mt_allocator/deallocate_global-4.cc: Fix.       
19         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Fix.
20         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Fix.
21         * testsuite/ext/mt_allocator/deallocate_local-2.cc: Fix.
22         * testsuite/ext/mt_allocator/deallocate_local-4.cc: Fix.
23         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Fix.
24         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Fix.
26 2004-10-11  Benjamin Kosnik  <bkoz@redhat.com>
28         PR libstdc++/16614 continued.
29         * include/ext/mt_allocator.h
30         (__per_type_pool_policy::_S_get_pool): Use saner defaults based on
31         specific type characteristics.
32         (__pool_base): Add constructor that takes a _Tune argument.
33         (__pool): Same.
34         * testsuite/ext/mt_allocator/tune-2.cc: Adjust default.
35         * testsuite/ext/mt_allocator/tune-4.cc: Same.
36         * testsuite/ext/mt_allocator/tune-3.cc: Same.
38 2004-10-11  Joachim Kuebart  <kuebart@mathematik.uni-ulm.de>
39             Paolo Carlini  <pcarlini@suse.de>
41         * src/pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk):
42         Deal properly with exceptions thrown by ::operator new(size_t).
43         * testsuite/ext/pool_allocator/allocate_chunk.cc: New.
45         * include/ext/pool_allocator.h: Include <cstdlib>.
47 2004-10-10  Benjamin Kosnik  <bkoz@redhat.com>
49         * include/bits/functexcept.h: Add guards.
51         * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Tweak test.
52         * configure: Regenerate.
53         
54 2004-10-10  Paolo Carlini  <pcarlini@suse.de>
56         * config/locale/gnu/monetary_members.cc (_S_construct_pattern):
57         Give __ret a default value, thus avoiding spurious warnings.
59         * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Open either
60         words or linux.words, otherwise exit.
61         * testsuite/performance/27_io/ifstream_getline.cc: Slighlty tweak.
63 2004-10-09  Paolo Carlini  <pcarlini@suse.de>
65         * include/std/std_memory.h (__get_temporary_buffer): Don't use
66         INT_MAX, prefer numeric_limits<ptrdiff_t>::max(), ok on 64-bit
67         platforms too.
68         * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust dg-error
69         line numbers.
71 2004-10-08  Benjamin Kosnik  <bkoz@redhat.com>
73         * acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
74         * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): New.
75         * configure.ac: Call GLIBCXX_ENABLE_CXA_EXIT.
76         * configure: Regenerate.
77         * src/mt_allocator.cc (__pool::~__pool): Make conditional on
78         _GLIBCXX_USE___CXA_ATEXIT macro.
79         * docs/html/ext/mt_allocator.html: Add note about deallocation.
80         * testsuite/ext/mt_allocator/deallocate_local-2.cc: Guard checks
81         with _GLIBCXX_USE___CXA_ATEXIT.
82         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
83         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
84         * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
85         * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
86         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
87         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
88         * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
89         
90 2004-10-07  Phil Edwards  <phil@codesourcery.com>
92         * testsuite/lib/libstdc++.exp:  Update list of undefined functions.
94 2004-10-07  Paolo Carlini  <pcarlini@suse.de>
96         * include/bits/list.tcc (operator=): Avoid iterator postincrement.
97         * include/bits/stl_tree.h (erase(iterator, iterator)): Likewise.
99 2004-10-07  Benjamin Kosnik  <bkoz@redhat.com>
101         * include/tr1: New.
102         * include/tr1/array: New.
103         * include/Makefile.am (tr1_headers): New.
104         (stamp-tr1): New.
105         (install-headers): New.
106         (allstamped): Add stamp-tr1.
108         * include/ext/array_allocator.h: New.
109         * include/Makefile.am: Add.
110         * include/Makefile.in: Regenerate.
111         * testsuite/ext/array_allocator/1.cc: New.
112         * testsuite/ext/array_allocator/2.cc: New.
114 2004-10-07  Richard Earnshaw  <rearnsha@arm.com>
116         * testsuite/lib/libstdc++.exp (libstdc++_exit): New proc.
118 2004-10-07  Roger Sayle  <roger@eyesopen.com>
120         PR libstdc++/17850
121         * configure.ac: Newlib does not provide strtold.
122         * configure: Regenerate.
124 2004-10-06  Benjamin Kosnik  <bkoz@redhat.com>
126         * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
127         (GLIBCXX_CONFIGURE_TESTSUITE): Use it.
128         * configure: Regenerated.
129         * testsuite/Makefile.am (CLEANFILES): Add TEST for
130         check-performance executables.
131         (stamp_thread): New.
132         (all-local): Use it.
133         * testsuite/Makefile.in: Regenerate.
134         * scripts/create_testsuite_files: Filter thread tests.
136         * testsuite/thread/pthread1.cc: Remove macro conditionals: this
137         file will only be run by thread enabled configurations.
138         * testsuite/thread/pthread7-rope.cc: Same, add rope_type typedef.
139         * testsuite/thread/pthread6.cc: Same.
140         * testsuite/thread/pthread5.cc: Same.
141         * testsuite/thread/pthread4.cc: Same.
142         * testsuite/thread/pthread3.cc: Same.
143         * testsuite/thread/pthread2.cc: Same.
145         * testsuite/ext/mt_allocator/instantiate.cc: Add in __GTHREADS guard.
146         * testsuite/ext/mt_allocator/deallocate_global-1.cc: Move to...
147         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: ...here.
148         * testsuite/ext/mt_allocator/deallocate_global-3.cc: Move to...
149         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: ...here. 
150         * testsuite/ext/mt_allocator/deallocate_local-1.cc: Move to...
151         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: ...here.
152         * testsuite/ext/mt_allocator/deallocate_local-3.cc: Move to...
153         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: ...here.
155 2004-10-06  Benjamin Kosnik  <bkoz@redhat.com>
156             Paolo Carlini  <pcarlini@suse.de>
158         PR libstdc++/17780
159         * src/mt_allocator.cc (__pool<true>::_M_reserve_block): Revert
160         to old locking order.
162 2004-10-06  Paolo Carlini  <pcarlini@suse.de>
164         * include/std/std_sstream.h (_M_sync): When the caller is
165         setbuf, don't trust _M_string.capacity() to be the size of
166         the buffer area, use _M_string.size() in this case.
167         * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
168         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.
170         * include/bits/sstream.tcc (overflow): Avoid calling string::assign
171         unnecessarily when the current _M_string is empty.
173 2004-10-06  Paolo Carlini  <pcarlini@suse.de>
175         * include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)):
176         Avoid iterator postincrement.
177         (__rotate): Likewise.
179         * include/bits/stl_algo.h: Minor formatting tweaks.
181 2004-10-06  Christopher Jefferson <caj@cs.york.ac.uk>
183         * include/bits/stl_algo.h (__reverse(random_access_iterator_tag)):
184         Avoid iterator postincrement; fix swapping middle element with
185         itself on odd-length inputs.
187 2004-10-05  Benjamin Kosnik  <bkoz@redhat.com>
189         PR libstdc++/17780
190         * include/ext/mt_allocator.h (__pool_base::_Tune): Add default
191         options as compile-time constant enums.
192         (__pool_base::_Tune::is_default): New.
193         (__pool_base::_Block_address): New.
194         (__pool_base): Rearrange data members.
195         (__pool::_M_reserve_memory): To _M_reserve_block.
196         (__pool::_M_reclaim_memory): To _M_reclaim_block.       
197         (__pool::_Bin_record): Add _Block_address data member.
198         (__pool<false>): Add _M_thread_freelist_initial.
199         (__pool::~__pool): Declare.     
200         (__common_pool_policy): Move static data member to...
201         (__common_pool_policy::_S_get_pool): ...here, make static local.
202         (__per_type_pool_policy): Move static data member to...
203         (__per_type_pool_policy::_S_get_pool): ...here, make static local.
204         (__mt_alloc::__mt_alloc): Call __policy_type::_S_get_pool.
205         Remove static member definitions. Use define for __default_policy.
206         * src/mt_allocator.cc: Same.
207         * config/linker-map.gnu: Don't export _S_get_pool. Renames.
208         * testsuite/ext/new_allocator: New.
209         * testsuite/ext/new_allocator/instantiate.cc: New.
210         * testsuite/ext/new_allocator/check_new.cc: New.
211         * testsuite/ext/new_allocator/deallocate_global.cc: New.
212         * testsuite/ext/new_allocator/deallocate_local.cc: New.
213         * testsuite/ext/mt_allocator/instantiate.cc: Instantiate all
214         template arguments.
215         * testsuite/ext/mt_allocator/deallocate_global-1.cc: New.
216         * testsuite/ext/mt_allocator/deallocate_global-2.cc: New.
217         * testsuite/ext/mt_allocator/deallocate_global-3.cc: New.
218         * testsuite/ext/mt_allocator/deallocate_global-4.cc: New.
219         * testsuite/ext/mt_allocator/deallocate_local-1.cc: New.
220         * testsuite/ext/mt_allocator/deallocate_local-2.cc: New.
221         * testsuite/ext/mt_allocator/deallocate_local-3.cc: New.
222         * testsuite/ext/mt_allocator/deallocate_local-4.cc: New.
223         * testsuite/ext/mt_allocator/deallocate.cc: New.
224         * testsuite/ext/malloc_allocator/deallocate.cc: New.    
225         * testsuite/ext/malloc_allocator/deallocate_global.cc: New.
226         * testsuite/ext/malloc_allocator/deallocate_local.cc: New.
227         
228 2004-10-05  Ulrich Weigand  <uweigand@de.ibm.com>
230         * configure.host (abi_baseline_pair): Define for s390-*-linux* and
231         s390x-*-linux*.
232         * config/abi/s390-linux-gnu/baseline_symbols.txt: Add missing symbols.
233         * config/abi/s390x-linux-gnu/baseline_symbols.txt: New file.
235 2004-10-05  Christopher Jefferson  <caj@cs.york.ac.uk>
237         * include/bits/stl_algobase.h (iter_swap): delegate to swap via
238         __iter_swap when iterator's value_types are equal.
239         (struct __iter_swap): New.
241 2004-10-04  Benjamin Kosnik  <bkoz@redhat.com>
243         * configure.ac (libtool_VERSION): To 6:3:0.
244         * configure: Regnerate.
245         * testsuite/testsuite_abi.cc (check_version): Add 3.4.3.
247 2004-10-04  Roger Sayle  <roger@eyesopen.com>
248             Eric Botcazou  <ebotcazou@libertysurf.fr>
250         PR libstdc++/17505
251         * config/linker-map.gnu: Synchronize the current list of stub
252         functions from libmath.
254 2004-10-03  Roger Sayle  <roger@eyesopen.com>
256         * config/locale/generic/c_locale.cc (__convert_to_v): Use
257         _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
258         Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
259         to check for presence of strtold.
261 2004-10-03  Paolo Carlini  <pcarlini@suse.de>
263         * include/bits/stl_list.h: Trivial formatting fixes.
264         * include/bits/stl_tree.h: Likewise.
266 2004-10-03  Paolo Carlini  <pcarlini@suse.de>
268         * include/bits/sstream.tcc (seekpos): In case of success, just
269         return __sp.
271 2004-10-01  Paolo Carlini  <pcarlini@suse.de>
273         * include/bits/sstream.tcc (pbackfail): Implement correctly
274         27.7.1.3/2, bullet 2: if mode & ios_base::out is false do not
275         write in the buffer.
276         * testsuite/27_io/basic_stringbuf/pbackfail/char/1.cc: New.
277         * testsuite/27_io/basic_stringbuf/pbackfail/char/2.cc: Likewise.
278         * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/1.cc: Likewise.
279         * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/2.cc: Likewise.
280         * testsuite/27_io/basic_istream/putback/char/1.cc: Tweak consistently.
282 2004-10-01  Paolo Carlini  <pcarlini@suse.de>
284         * include/bits/sstream.tcc (seekpos): Minor rearrangement of two
285         conditionals consistently with seekoff.
286         * include/std/std_sstream.h (setbuf): Avoid a string temporary.
287         (_M_sync): Simplify a bit, clean-up comment.
289 2004-09-30  Paolo Carlini  <pcarlini@suse.de>
291         PR libstdc++/10975 (DR 453)
292         * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
293         and __off == 0.
294         * docs/html/ext/howto.html: Add an entry for DR 453.
295         * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
296         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
297         * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
298         * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
299         * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
300         * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
301         move to...
302         * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
303         * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
304         move to...
305         * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
307 2004-09-29  Paolo Carlini  <pcarlini@suse.de>
309         * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
310         Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
311         (str()): Slightly tweak, protect from pptr() == 0.
312         (_M_update_egptr()): Likewise.
313         * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
314         for an empty buffer use __beg instead of _M_string.capacity().
315         * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
316         * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
318         * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
319         * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
320         * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
321         * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
323 2004-09-29  Paolo Carlini  <pcarlini@suse.de>
324             Benjamin Kosnik  <bkoz@redhat.com>
325         
326         * testsuite/testsuite_io.h (class constraint_buf): New, extended
327         and templatized version of constraint_filebuf; add typedefs for
328         streambuf/stringbuf/filebuf and wchar_t counterparts.
330 2004-09-28  Paolo Carlini  <pcarlini@suse.de>
332         PR libstdc++/16612
333         * include/bits/basic_string.h (_M_dispose, _M_refcopy,
334         basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
335         don't deal with _S_empty_rep.
336         * include/bits/basic_string.tcc (_S_construct, _M_destroy,
337         _M_leak_hard, _M_mutate): Likewise.
338         * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
339         * acconfig.h: Add corresponding undef.  
340         * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
341         * docs/html/configopts.html: Document --enable-fully-dynamic-string.
342         * configure: Regenerate.
343         * config.h.in: Likewise.
345 2004-09-28  Benjamin Kosnik  <bkoz@redhat.com>
346             Paolo Carlini  <pcarlini@suse.de>
348         * testsuite/21_strings/basic_string/operations/char/1.cc: New.
349         * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
350         * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
351         * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc: 
352         New.
354 2004-09-28  Paolo Carlini  <pcarlini@suse.de>
356         * README: Remove obsolete entry about include/c_shadow.
358 2004-09-24  H.J. Lu  <hongjiu.lu@intel.com>
360         PR libstdc++/17469
361         * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
363 2004-09-24  Paolo Carlini  <pcarlini@suse.de>
365         * src/localename.cc (locale::locale(const char*)): Minor tweaks:
366         rename a variable, move an assignment.
367         (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
369 2004-09-24  Paul Brook  <paul@codesourcery.com>
371         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
372         simulator targets.
373         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
374         * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
375         * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
376         * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
377         * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
378         * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
380 2004-09-23  Zack Weinberg  <zack@codesourcery.com>
382         * testsuite/20_util/memory/auto_ptr/assign_neg.cc
383         * testsuite/23_containers/map/operators/1_neg.cc
384         * testsuite/23_containers/set/operators/1_neg.cc:
385         Update locations and/or regexps of dg-error markers.
387 2004-09-23  P.J. Darcy  <darcypj@us.ibm.com>
389         * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
390         Add rule to build ${host_builddir}/gthr-tpf.h.
391         * include/Makefile.in: Regenerate.
393 2004-09-23  Paolo Carlini  <pcarlini@suse.de>
394             Magnus Fromreide  <magfr@lysator.liu.se>
396         * include/bits/boost_concept_check.h (struct _SequenceConcept):
397         Remove wrong requirement, i.e., not present in Table 67.
399 2004-09-21  Paolo Carlini  <pcarlini@suse.de>
401         PR libstdc++/12882 (cont)
402         * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
403         * configure: Regenerate.
404         * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
405         _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
406         trivial showmanyc for large files too.
408 2004-09-17  Jonathan Wakely  <redi@gcc.gnu.org>
410         * include/bits/stl_algo.h (remove): Remove too restrictive
411         concept-check.
413 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
415         * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
416         as per Nathan's original suggestion.
418 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
420         * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
421         up a bit.
422         * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
423         * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
424         * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
426 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
427             Andrea Arcangeli  <andrea@suse.de>
429         * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
430         call unnecessarily sync, that is fflush: the library, since 3.4.0
431         does not use buffered fread/fwrite.
432         * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
434 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
436         * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
437         Define.
438         * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
439         Define.
440         * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
441         (__cxa_vec_new): Use it.
442         (__cxa_vec_new2): Likewise.
443         (__cxa_vec_new3): Likewise.
444         (__cxa_vec_cdtor): Likewise.
445         (__cxa_vec_cctor): Likeiwse.
446         (__cxa_vec_dtor): Likewise.
447         (__cxa_vec_cleanup): Likewise.
448         (__cxa_vec_delete2): Likewise.
449         (__cxa_vec_delete3): Likewise.
450         * libsupc++/vec.cc (__cxa_vec_new): Likewise.
451         (__cxa_vec_new2): Likewise.
452         (__cxa_vec_new3): Likewise.
453         (__cxa_vec_cdtor): Likewise.
454         (__cxa_vec_cctor): Likeiwse.
455         (__cxa_vec_dtor): Likewise.
456         (__cxa_vec_cleanup): Likewise.
457         (__cxa_vec_delete2): Likewise.
458         (__cxa_vec_delete3): Likewise.
459         (__aeabi_vec_ctor_nocookie_nodtor): New function.
460         (__aeabi_vec_ctor_cookie_nodtor): Likewise.
461         (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
462         (__aeabi_vec_new_cookie_noctor): Likewise.
463         (__aeabi_vec_new_nocookie): Likewise.
464         (__aeabi_vec_new_cookie_nodtor): Likewise.
465         (__aeabi_vec_new_cookie): Likewise.
466         (__aeabi_vec_dtor): Likewise.
467         (__aeabi_vec_dtor_cookie): Likewise.
468         (__aeabi_vec_delete): Likewise.
469         (__aeabi_vec_delete3): Likewise.
470         (__aeabi_vec_delete3_nodtor): Likewise.
471         (__aeabi_atexit): Likewise.
473 2004-09-14  Nathan Myers  <ncm@cantrip.org>
475         * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
476         for 11722: copy can replace move; the common case is __avail == 0.
478 2004-09-14  Paolo Carlini  <pcarlini@suse.de>
480         * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
481         to __is_scalar, more clear and consistent with "tr1" naming.
482         * include/bits/stl_algobase.h: Update consistently throughout.
484 2004-09-13  Paolo Carlini  <pcarlini@suse.de>
486         PR libstdc++/11722
487         * include/std/std_fstream.h (xsgetn): Declare only.
488         * include/bits/fstream.tcc (xsgetn): Define, optimize for the
489         always_noconv() case: when __n > __buflen, copy the available
490         buffer and issue a direct read.
491         * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
493         * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
494         conditional.
496 2004-09-13  Hans-Peter Nilsson  <hp@bitrange.com>
498         * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
499         libstdc++_maybe_build_wrapper instead of using local code.
501 2004-09-08  Benjamin Kosnik  <bkoz@redhat.com>
503         * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
505 2004-09-03  Jan Beulich  <jbeulich@novell.com>
507         * crossconfig.m4: Add NetWare as a target.
508         * configure: Regenerate.
510 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
512         * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
513         defined.
515 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
516             Simon Richter  <Simon.Richter@hogyros.de>
518         PR libstdc++/16715
519         * include/bits/istream.tcc: Add extern template for iostream
520         char and wchar_t instantiations.
522 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
523             Leland Wang  <llwang@infor.org>
525         PR libstdc++/17259
526         * include/ext/ropeimpl.h (rope::_S_compare): Use
527         _Rope_constants::_S_leaf.
529 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
531         PR libstdc++/16848
532         * include/Makefile.am (ext_headers): Remove demangle.h.
533         * include/Makefile.in: Regenerate.
534         * include/ext/demangle.h: Remove.
536 2004-09-01  Benjamin Kosnik  <bkoz@redhat.com>
538         PR libstdc++/16614
539         * include/ext/mt_allocator.h (__mt_base): Not type dependent,
540         split into..
541         (__pool): New, specialize.
542         (__common_pool): New, static bits here.
543         (__per_type_pool): New, and here.
544         (__mt_alloc_base): New.
545         (__mt_alloc): Add template parameter, inherit from it.
546         * src/allocator.cc: Split this...
547         * src/allocator-inst.cc: And this...
548         * src/pool_allocator.cc: ...into this.
549         * src/mt_allocator.cc: ... and this. Add definitions for
550         __mt_base.
551         * src/Makefile.am (sources): Split allocator.cc to
552         pool_allocator.cc and mt_allocator.cc.
553         * src/Makefile.in: Regenerate.
554         * config/linker-map.gnu: Add symbols.
555         * docs/html/ext/mt_allocator.html: Document new design.
556         * testsuite/ext/mt_allocator/tune-1.cc: New.
557         * testsuite/ext/mt_allocator/tune-2.cc: New.
558         * testsuite/ext/mt_allocator/tune-3.cc: New.
559         * testsuite/ext/mt_allocator/tune-4.cc: New.
561         * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
562         * testsuite/ext/allocators.cc: Use check_new, split into...
563         * testsuite/ext/mt_allocator/check_new.cc: this.
564         * testsuite/ext/pool_allocator/check_new.cc: this.
565         * testsuite/ext/malloc_allocator/check_new.cc: this.
566         * testsuite/ext/debug_allocator/check_new.cc: this.
567         * testsuite/ext/mt_allocator/instantiate.cc: this.
568         * testsuite/ext/pool_allocator/instantiate.cc: this.
569         * testsuite/ext/malloc_allocator/instantiate.cc: this.
570         * testsuite/ext/debug_allocator/instantiate.cc: this.
572 2004-08-30  Phil Edwards  <phil@codesourcery.com>
574         * docs/html/install.html:  Update locales list (from Paolo).
575         Remove other redundant information and point to the GCC install
576         documentation.
578 2004-08-30  Benjamin Kosnik  <bkoz@redhat.com>
580         * include/ext/pool_allocator.h: Rename __pool_base to
581         __pool_alloc_base.
582         * src/allocator.cc: Same.
583         * config/linker-map.gnu: Same.
585 2004-08-30  Paolo Carlini  <pcarlini@suse.de>
586             Kenneth C. Schalk  <ken@xorian.net>
588         PR libstdc++/17215
589         * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
590         Check the return value of fclose/sync, loop on EINTR.
591         (__basic_file<char>::sys_open): Likewise, for sync.
593 2004-08-29  Paolo Carlini  <pcarlini@suse.de>
595         * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
596         case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
597         and 7.23.3.5), two if !_GLIBCXX_USE_C99.
598         * testsuite/22_locale/time_get/get_time/char/4.cc: New.
599         * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
601 2004-08-27  Jason Merrill  <jason@redhat.com>
603         PR c++/13684
604         * libsupc++/guard.cc (static_mutex): Internal class implementing a
605         recursive mutex which controls initialization of local statics.
606         (__gnu_cxx::recursive_init): New exception class.
607         (__cxa_guard_acquire): Deal with locking and recursion detection.
608         (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
610 2004-08-27  Matthias Klose  <doko@debian.org>
612         * configure.host: For mips*-*-linux* update cpu_include_dir
613         after atomicity_dir is set.
615 2004-08-27  Matthias Klose  <doko@debian.org>
617         * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
618         * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
619         * configure.host: Set abi_baseline_pair for arm*-*-linux* and
620         mips*-*-linux*.
622 2004-08-27  Paolo Carlini  <pcarlini@suse.de>
624         * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
625         * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
626         * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
627         * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
628         * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
630         * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
631         formatting fixes.
632         * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
633         * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
634         * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
635         * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
637 2004-08-25  Paolo Carlini  <pcarlini@suse.de>
639         PR libstdc++/17038 (partial)
640         * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
641         __maxlen to 128.
642         * include/bits/locale_facets.h (class __timepunct): Add FIXME
643         comment about _M_put.
644         * config/locale/generic/time_members.cc (_M_put): Always null
645         terminate __s.
646         * config/locale/gnu/time_members.cc (_M_put): Likewise.
647         * testsuite/22_locale/time_put/put/char/17038.cc: New.
648         * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
650 2004-08-24  Paolo Carlini  <pcarlini@suse.de>
652         * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
653         * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
654         * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
655         * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
656         * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
657         * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
659         * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
660         newlines.
661         * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
663 2004-08-22  Matthias Klose  <doko@debian.org>
665         * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
666         * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
668 2004-08-23  Paolo Carlini  <pcarlini@suse.de>
670         * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
671         * aclocal.m4: Regenerate with automake-1.9.1.
672         * configure: Regenerate.
673         * Makefile.in: Likewise.
674         * include/Makefile.in: Likewise.
675         * libmath/Makefile.in: Likewise.
676         * libsupc++/Makefile.in: Likewise.
677         * po/Makefile.in: Likewise.
678         * src/Makefile.in: Likewise.
679         * testsuite/Makefile.in: Likewise.
681 2004-08-22  Paolo Carlini  <pcarlini@suse.de>
683         * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
684         to a signed type, long according to the resolution of DR 359.
685         * testsuite/22_locale/num_put/put/char/9.cc: New.
686         * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
688         * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
689         Simplify a bit: no need to clear showpos.
691 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
693         * include/bits/char_traits.h (struct _Char_traits_match): Remove,
694         unused.
696 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
698         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
699         wchar_t type for the fill argument; minor formatting tweaks.
700         * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
701         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
702         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
703         * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
704         * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
705         * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
707 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
709         * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
710         with _M_word != _M_local_word two times, redundantly.
712 2004-08-20  Jason Merrill  <jason@redhat.com>
714         * include/Makefile.am (${host_builddir}/gthr.h): Don't add
715         _GLIBCXX_ to #pragma lines.
716         * include/Makefile.in: Update.
718 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
720         PR libstdc++/7219 (continued)
721         * include/bits/ios_base.h (class ios_base): Expose Annex D.6
722         typedefs by default.
723         * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
724         * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
725         line number.
726         * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
728 2004-08-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
730         * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
731         barrier to locking asm.
733 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
735         * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
736         actually the warning is a front-end bug (c++/17120).
738 2004-08-20  Matthias Klose  <doko@debian.org>
740         * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
742 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
744         * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
745         used as truth value warning.
747 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
749         * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
750         baseline.
752 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
754         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
756 2004-08-19  Benjamin Kosnik  <bkoz@redhat.com>
758         * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
759         timezone.
760         * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
762 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
764         * testsuite/performance/20_util/allocator/insert.cc: For std::map
765         instantiate the allocator for a correct pair type.
766         * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
767         * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
768         * testsuite/performance/20_util/allocator/producer_consumer.cc:
769         Likewise.
771         * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
772         minor formatting fixes.
773         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
775 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
777         * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
778         results.
779         * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
780         * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
781         * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
782         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
783         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
784         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
785         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
787 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
789         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
791 2004-08-18  Matthias Klose  <doko@debian.org>
793         * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
794         * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
795         * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
797 2004-08-17  Paolo Carlini  <pcarlini@suse.de>
799         * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
801 2004-08-17  Paolo Carlini  <pcarlini@suse.de>
803         * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
805 2004-08-17  Benjamin Kosnik  <bkoz@redhat.com>
807         * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
809 2004-08-16  Paolo Carlini  <pcarlini@suse.de>
811         * include/bits/indirect_array.h: Trivial formatting fixes.
812         * include/bits/valarray_after.h: Likewise.
813         * include/bits/valarray_array.h: Likewise.
814         * src/valarray-inst.cc: Likewise.
816 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
818         * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
819         * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
820         * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
822         * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
823         * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
824         * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
825         * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
826         * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
828 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
830         * include/bits/deque.tcc: Trivial formatting fixes.
832 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
834         * include/bits/deque.tcc: Trivial formatting fixes.
836         * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
837         Remove unneded typedef.
839         * include/bits/locale_facets.tcc: Very minor tweaks.
841         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
842         type for the fill argument.
843         * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
844         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
845         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
846         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
847         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
848         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
849         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
850         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
852 2004-08-13  Paolo Carlini  <pcarlini@suse.de>
854         * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
855         memmove is not needed, memcpy suffices.
857 2004-08-13  Paolo Carlini  <pcarlini@suse.de>
859         * include/std/std_fstream.h (class basic_ifstream,
860         class basic_ofstream, class basic_fstream): Add const overloads
861         of is_open, as per DR 365 [WP].
862         * docs/html/ext/howto.html: Add an entry for DR 365.
864 2004-08-12  Paolo Carlini  <pcarlini@suse.de>
866         * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
868 2004-08-12  Paolo Carlini  <pcarlini@suse.de>
870         PR libstdc++/16956
871         * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
872         to the returned value, reorganize a bit.
873         * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
874         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
876         * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
877         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
878         * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
879         * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
881 2004-08-12  Paul Brook  <paul@codesourcery.com>
883         * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
884         _GLIBCXX_CXA_VEC_CTOR_RETURN.
885         * config/cpu/generic/cxxabi_tweaks.h: Ditto.
886         * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
887         __cxa_vec_ctor_return.
888         * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
889         Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
891 2004-08-12  Kelley Cook  <kcook@gcc.gnu.org>
893         * Makefile.in, aclocal.m4, configure, include/Makefile.in,
894         libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
895         src/Makefile.in, testsuite/Makefile.in: Regenerate
897 2004-08-12  Jan Beulich  <jbeulich@novell.com>
899         * config/locale/generic/ctype_members.cc
900         (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
901         initializer for return value, as that is invalid for enumerated types.
902         * config/locale/gnu/ctype_members.cc
903         (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
905 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
907         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
909 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
911         * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
912         variable.
913         * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
914         * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
915         * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
916         * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
917         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
918         * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
919         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
920         * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
921         * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
922         * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
923         * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
924         * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
925         * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
926         * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
927         * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
928         * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
929         * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
930         * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
931         * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
932         * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
933         * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
935 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
936             Petur Runolfsson  <peturr02@ru.is>
938         PR libstdc++/16959
939         * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
940         standard streams are constructed.
941         * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
943 2004-08-09  Paolo Carlini  <pcarlini@suse.de>
945         * include/bits/stl_bvector.h: Trivial formatting fixes.
947 2004-08-09  Paolo Carlini  <pcarlini@suse.de>
949         * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
951 2004-08-07  Jonathan Wakely  <redi@gcc.gnu.org>
952             Paolo Carlini  <pcarlini@suse.de>
954         * src/debug.cc (_Error_formatter::_M_print_string): In order
955         to print individual words from __string, _M_format_word can't
956         be called since may be just sprintf, thus ignoring completely
957         __n: instead, use memmove and append '\0' by hand.
959 2004-08-07  Paolo Carlini  <pcarlini@suse.de>
961         * config/locale/generic/c_locale.h (__convert_from_v): Don't
962         use a default for __prec, assume __prec >= 0 and simplify.
963         * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
964         * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
965         Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
967 2004-08-04  Phil Edwards  <phil@codesourcery.com>
969         * docs/html/configopts.html:  Emphasize that options change.
970         * docs/html/17_intro/configury.html:  Update links.
972 2004-08-03  Paolo Carlini  <pcarlini@suse.de>
974         * include/bits/list.tcc: Trivial formatting fixes.
976 2004-08-03  Mark Mitchell  <mark@codesourcery.com>
978         * libsupc++/new_op.cc: Update comments.
979         * libsupc++/del_op.cc: Likewise.
981 2004-08-02  Mark Mitchell  <mark@codesourcery.com>
983         * libsupc++/cxxabi.h: Make all declarations have default
984         visibility.
985         * libsupc++/exception: Likewise.
986         * libsupc++/new: Likewise.
987         * libsupc++/typeinfo: Likewise.
988         * libsupc++/unwind-cxx.h: Likewise.
989         * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
990         the __cxxabiv1 namespace.
991         (__cxa_free_exception): Likewise.
992         * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
993         (__cxa_bad_typeid): Likewise.
994         * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
995         (__cxa_end_catch): Likewise.
996         * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
997         (__cxa_get_globals): Likewise.
998         * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
999         (__cxa_rethrow): Likewise.
1000         * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
1001         * libsupc++/eh_type.cc: Include <cxxabi.h>.
1003         * Makefile.am (hosted_source): Add libmath and testsuite.
1004         (SUBDIRS): Remove them.
1005         * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
1006         on arm*-*-symbianelf*.
1007         * crossconfig.m4: Add arm*-*-symbianelf* support.
1008         * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
1009         when freestanding.  Do not bring names into std:: namespace with
1010         "using" when freestanding.  Declare required functions and macros
1011         when freestanding.
1012         * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
1013         when freestanding.
1014         * libsupc++/del_op.cc: Declare "free" only when freestanding.
1015         * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
1016         (malloc): Declare when freestanding.
1017         (free): Likewise.
1018         (memset): Likewise.
1019         (__cxa_allocate_exception): Call malloc, not std::malloc.  Likewise
1020         for memset.
1021         (__cxa_free_exception): Likewise for free.
1022         * libsupc++/new_op.cc: Declare "malloc" when freestanding.
1023         * libsupc++/pure.cc (writestr): Define to nothing when
1024         freestanding.
1025         * libsupc++/vterminate.cc: Do not define anything when
1026         freestanding.
1027         * Makefile.in: Regenerated.
1028         * aclocal.m4: Likewise.
1029         * configure: Likewise.
1030         * include/Makefile.in: Likewise.
1031         * libmath/Makefile.in: Likewise.
1032         * libsupc++/Makefile.in: Likewise.
1033         * po/Makefile.in: Likewise.
1034         * src/Makefile.in: Likewise.
1035         * testsuite/Makefile.in: Likewise.
1037 2004-08-01  Matt Austern  <austern@apple.com>
1039         PR libstdc++/16844
1040         * include/bits/stl_list.h (_M_create_node): Remove unused
1041         zero-argument version.
1042         * include/ext/slist (_M_create_node): Pass two arguments to
1043         allocator's construct() member function.
1044         * testsuite/23_containers/deque/explicit_instantiation.cc: New.
1045         * testsuite/23_containers/list/explicit_instantiation.cc: New.
1046         * testsuite/23_containers/vector/explicit_instantiation.cc: New.
1047         * testsuite/23_containers/map/explicit_instantiation.cc: New.
1048         * testsuite/23_containers/set/explicit_instantiation.cc: New.
1049         * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
1050         * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
1051         * testsuite/ext/hash_set_explicit_instantiation.cc: New.
1052         * testsuite/ext/slist_explicit_instantiation.cc: New.
1054 2004-07-30  Paolo Carlini  <pcarlini@suse.de>
1056         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1057         num_get<>::_M_extract_int): In the main parsing loop delay the
1058         life of __q to the actual use point.
1060 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
1062         PR libstdc++/14220
1063         * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
1064         Don't clip the precision passed down to __convert_from_v:
1065         22.2.2.2.2 nowhere says so.
1066         * testsuite/22_locale/num_put/put/char/14220.cc: New.
1067         * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
1069 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
1071         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
1073 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
1074             Petur Runolfsson  <peturr02@ru.is>
1076         PR libstdc++/12658 (continued)
1077         * src/locale_init.cc (locale::locale, locale::global): Use
1078         a single locale_mutex instead of two separate mutexes.
1080 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
1082         PR libstdc++/16813
1083         * include/debug/map.h (insert(_InputIterator, _InputIterator)):
1084         Fix typo.
1085         * testsuite/23_containers/map/insert/16813.cc: New.
1087 2004-07-29  Phil Edwards  <phil@codesourcery.com>
1089         * docs/html/faq/index.html:  Update version references.  Make
1090         clear that code from SGI has diverged greatly.  Remove references
1091         to library snapshots and what's-new sections.
1092         * docs/html/faq/index.txt:  Regenerate.
1094 2004-07-28  Matt Austern  <austern@apple.com>
1096         * include/bits/stl_construct.h (_Destroy): New three-argument
1097         overload that takes an allocator argument.  Another inline
1098         three-argument overload that takes std::allocator and dispatches
1099         to the two-argument version.
1100         * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
1101         Change return type to void to match uninitialized_fill_n.
1102         (__uninitialized_copy_a_): New function.  Like uninitialized_copy
1103         except that it takes an allocator and uses it for construct and
1104         destroy.  If the allocator is std::allocator, dispatches to
1105         uninitialized_copy.
1106         (__uninitialized_fill_a): Likewise.
1107         (__uninitialized_fill_n_a): Likewise.
1108         (__uninitialized_copy_copy): Give it an allocator argument.
1109         (__uninitialized_fill_copy): Likewise.
1110         (__uninitialized_copy_fill): Likewise.
1111         * include/bits/deque.tcc: Use new forms defined in stl_construct.h
1112         and stl_uninitialized.h.  Replace use of single-argument _Construct
1113         and _Destroy with use of allocator's construct and destroy methods.
1114         * include/bits/list.tcc: Likewise.
1115         * include/bits/stl_deque.h: Likewise.
1116         * include/bits/stl_list.h: Likewise.
1117         * include/bits/stl_tree.h: Likewise.
1118         * include/bits/stl_vector.h: Likewise.
1119         * include/bits/vector.tcc: Likewise.
1120         * include/ext/hashtable.h: Use rebind so that allocator_type
1121         has correct type for a container's allocator.  Replace use of
1122         single-argument _Construct and _Destroy with use of allocator's
1123         construct and destroy methods.
1124         * include/ext/memory (__uninitialized_copy_n_a): New function.
1125         Like uninitialized_copy_n except that it takes an extra parameter,
1126         an allocator, and uses it for construct and destroy operations.
1127         * include/ext/rope: Use new forms defined in stl_construct.h,
1128         stl_uninitialized.h, and ext/memory.  Replace use of single-argument
1129         _Construct and _Destroy with allocator construct and destroy methods.
1130         * include/ext/ropeimpl.h: Likewise.
1131         * include/ext/slist.h: Likewise.
1132         * testsuite/testsuite_allocator.h (check_construct_destroy): New.
1133         * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
1134         * testsuite/23_containers/deque/check_construct_destroy.cc: New.
1135         * testsuite/23_containers/list/check_construct_destroy.cc: New.
1136         * testsuite/23_containers/set/check_construct_destroy.cc: New.
1137         * testsuite/23_containers/vector/check_construct_destroy.cc: New.
1138         * testsuite/ext/hash_check_construct_destroy.cc: New.
1139         * testsuite/ext/slist_check_construct_destroy.cc: New.
1141 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
1143         2003-10-01  Eric Christopher  <echristo@redhat.com>
1144         * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
1145         constraint.
1146         2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
1147         * config/cpu/sh/atomicity.h: New.  Use movli and movco on SH4a.
1149 2004-07-23  Benjamin Kosnik  <bkoz@redhat.com>
1151         PR libstdc++/16678
1152         * include/bits/locale_facets.tcc: Fix for -Werror.
1154 2004-07-23  Jonathan Wakely  <redi@gcc.gnu.org>
1156         * docs/html/debug.html: Say debug mode only available since 3.4.0.
1158 2004-07-21  Benjamin Kosnik  <bkoz@redhat.com>
1160         * docs/doxygen/mainpage.html: Clarify links.
1161         * docs/doxygen/stdheader.cc: Add files.
1162         * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
1163         * docs/doxygen/user.cfg.in: New options, wrap.
1165 2004-07-20  Danny Smith  <dannysmith@users.sourceforge.net>
1167         * include/c_std/std_cwchar.h (wcsstr): Correct signature.
1169 2004-07-19  Benjamin Kosnik  <bkoz@redhat.com>
1171         PR libstdc++/15488
1172         * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
1174 2004-07-17  Richard Sandiford  <rsandifo@redhat.com>
1176         PR bootstrap/16469
1177         * scripts/create_testsuite_files: Pass -print to find.
1179 2004-07-15  Paolo Carlini  <pcarlini@suse.de>
1181         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
1182         * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
1184 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
1186         PR libstdc++/14697
1187         * acinclude.m4 (glibcxx_shared_libgcc): Correct
1188         glibcxx_shared_libgcc test for multilibs.
1189         * configure: Rebuilt.
1191 2004-07-14  Paolo Carlini  <pcarlini@suse.de>
1193         PR libstdc++/16505
1194         * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
1195         the signature to return void, as per 20.4.4.3.
1196         * include/bits/stl_vector.h (vector::vector(size_type,
1197         const value_type&, const allocator_type&), vector::vector(size_type),
1198         vector::_M_initialize_dispatch): Adjust callers.
1199         * include/bits/vector.tcc (vector<>::_M_fill_assign,
1200         vector<>::_M_fill_insert): Likewise.
1201         * testsuite/20_util/memory/16505.cc: New.
1203 2004-07-14  Paolo Carlini  <pcarlini@suse.de>
1205         * testsuite/22_locale/locale/cons/12658_thread-1.cc,
1206         12658_thread-2.cc: Use __gnu_test::try_named_locale.
1208 2004-07-13  Benjamin Kosnik  <bkoz@redhat.com>
1210         * docs/html/ext/mt_allocator.html: Add docs for _Tune.
1211         * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
1212         (__mt_alloc::_S_set_options): Same.
1213         Add to comments.
1215 2004-07-13  Benjamin Kosnik  <bkoz@redhat.com>
1217         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
1218         for linux.
1219         * configure: Regenerated.
1221 2004-07-13  Paolo Carlini  <pcarlini@suse.de>
1223         * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
1224         to 12658_thread-1.cc and xfail.
1225         * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
1226         simpler version of 12658_thread-1.cc, still failing on 3_3 and
1227         not failing on 3_4/mainline - both on single processor and
1228         multiprocessor machines.
1230 2004-07-12  Benjamin Kosnik  <bkoz@redhat.com>
1232         * docs/html/abi.html: Remove non-public qualification.
1234         * include/bits/concurrence.h: Tweak comments.
1236 2004-07-11  Paolo Carlini  <pcarlini@suse.de>
1238         Add wchar_t counterparts of the basic_streambbuf<char> tests.
1239         * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
1240         * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
1241         Likewise.
1242         * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
1243         * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
1244         3599.cc: Likewise.
1245         * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
1246         * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
1247         * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
1248         * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
1249         * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
1250         Likewise.
1251         * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
1253         * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
1254         tweaks.
1255         * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
1256         Likewise.
1257         * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
1258         * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
1260 2004-07-11  Phil Edwards  <phil@codesourcery.com>
1262         * acinclude.m4:  Cosmetic shell syntax fixes.
1263         * configure.ac:  Bring comment inline with reality.
1264         * configure.host:  Both of the above.  Move 'arm' case to right
1265         place in host_cpu switch.
1266         * aclocal.m4, configure:  Regenerate.
1268 2004-07-09  Paolo Carlini  <pcarlini@suse.de>
1270         Add wchar_t counterparts of the basic_stringbuf<char> tests.
1271         * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
1272         * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
1273         * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
1274         3599.cc, 9988.cc: Likewise.
1275         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
1276         Likewise.
1277         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
1278         Likewise.
1279         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
1280         Likewise.
1281         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
1282         Likewise.
1283         * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
1284         * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
1285         * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
1286         * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
1287         Likewise.
1288         * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
1289         9404-1.cc: Likewise.
1290         * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
1291         9404-2.cc: Likewise.
1292         * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
1293         3955.cc: Likewise.
1294         * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
1295         * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
1297 2004-07-08  Paolo Carlini  <pcarlini@suse.de>
1299         * include/bits/gslice.h: Trivial formatting fixes.
1300         * include/bits/gslice_array.h: Likewise.
1301         * include/bits/indirect_array.h: Likewise.
1302         * include/bits/mask_array.h: Likewise.
1303         * include/bits/slice_array.h: Likewise.
1304         * include/bits/valarray_after.h: Likewise.
1305         * include/bits/valarray_array.h: Likewise.
1306         * include/bits/valarray_before.h: Likewise.
1307         * include/std/std_valarray.h: Likewise.
1309 2004-07-08  Benjamin Kosnik  <bkoz@redhat.com>
1311         PR c++/16169
1312         * include/bits/basic_string.h (basic_string::operator=): Revert.
1314 2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>
1316         * configure.ac (libtool_VERSION): To 6:2:0.
1317         * configure: Regenerated.
1319         * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
1321 2004-07-07  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
1323         PR libstdc++/16411
1324         * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
1326 2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>
1328         * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
1329         -Weffc++ issues.
1331 2004-07-07  Paolo Carlini  <pcarlini@suse.de>
1333         PR libstdc++/16401
1334         * include/bits/sstream.tcc (overflow): When reallocating _M_string
1335         use an exponential grow policy.
1336         * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
1337         * testsuite/performance/27_io/stringbuf_overflow.cc: New.
1339 2004-07-06  Anssi Hannula  <anssi.hannula@mbnet.fi>
1341         PR libstdc++/15928
1342         * crossconfig.m4: Add in bits for djgpp.
1343         * configure: Regenerate.
1345 2004-07-05  Jonathan Wakely  <redi@gcc.gnu.org>
1347         * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
1348         instantiation of set and multiset (functor param given as int).
1350 2004-07-04  Paolo Carlini  <pcarlini@suse.de>
1352         * include/bits/basic_string.h: Trivial formatting fixes and/or
1353         const-ification of some variables.
1354         * include/bits/deque.tcc: Likewise.
1355         * include/bits/stl_algobase.h: Likewise.
1356         * include/bits/stl_bvector.h: Likewise.
1357         * include/bits/stl_construct.h: Likewise.
1358         * include/bits/stl_deque.h: Likewise.
1359         * include/bits/stl_pair.h: Likewise.
1360         * include/bits/stl_vector.h: Likewise.
1361         * include/bits/vector.tcc: Likewise.
1363 2004-07-04  Paolo Carlini  <pcarlini@suse.de>
1365         * testsuite/25_algorithms/copy/1.cc: Add instantiations for
1366         systems with no COMDAT or weak support.
1367         * testsuite/25_algorithms/copy/2.cc: Likewise.
1368         * testsuite/25_algorithms/copy/3.cc: Likewise.
1369         * testsuite/25_algorithms/copy/4.cc: Likewise.
1371 2004-07-03  Paul Brook  <paul@codesourcery.com>
1373         * configure.ac: Set ABI_TWEAKS_SRCDIR.
1374         * configure.host: Set abi_tweaks_dir.  Check for atomicity.h when
1375         setting atomicity_dir.  Override type_cpu for arm based targets.
1376         * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
1377         * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
1378         * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
1379         * libsupc++/vec.cc: Ditto.
1380         * config/cpu/arm/cxxabi_tweaks.h: New file.
1381         * config/cpu/generic/cxxabi_tweaks.h: New file.
1382         * */Makefile.in: Regenerate.
1383         * configure: Regenerate.
1385 2004-07-02  Paolo Carlini  <pcarlini@suse.de>
1387         * include/bits/type_traits.h (_Is_normal_iterator): Move...
1388         * include/bits/cpp_type_traits.h: ... here, renamed to
1389         __is_normal_iterator and consistent with the other traits.
1390         * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
1391         to the struct __copy_normal and three specializations.
1392         (__copy_backward_output_normal_iterator,
1393         __copy_backward_input_normal_iterator): Likewise, convert to
1394         the struct __copy_backward_normal and three specializations.
1395         (copy, copy_backward): Use the latter.
1396         (__copy_aux, __copy_backward_aux): Very minor tweaks.
1398 2004-07-01  Paolo Carlini  <pcarlini@suse.de>
1400         * include/bits/stl_algobase.h (__copy_trivial): Remove.
1401         (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
1402         __is_trivially_copyable, __are_same and __copy::copy.
1403         (__copy): Rewrite as a class template and two specializations.
1404         (__copy_ni2): Simplify, just call __copy_aux.
1406         * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
1407         check.
1408         * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
1409         for destination value type != source value type.
1411 2004-07-01  Benjamin Kosnik  <bkoz@redhat.com>
1412             Per Bothner  <per@bothner.com>
1413             Mohan Embar  <gnustuff@thisiscool.com>
1415         PR libstdc++/16248
1416         * include/bits/concurrence.h (__glibcxx_mutex_type): New.
1417         (__glibcxx_mutex): Encapsulate mutex init function into type for
1418         threaded configurations without __GTHREAD_MUTEX_INIT.
1419         (lock::lock): Make device member a reference.
1420         (lock::~lock): Same.
1421         * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
1422         to mutex_type.
1423         * src/allocator.cc: Same.
1425 2004-06-30  Brad Spencer  <spencer@infointeractive.com>
1427         * include/ext/mt_allocator.h: Handle allocations at static
1428         initialization that happen before _S_options is (automatically)
1429         constructed; set _S_init even if _M_force_new is true.
1431 2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
1433         * config/linker-map.gnu: Revert new exports.
1435 2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
1436             Stuart Anderson  <anderson@netsweng.com>
1438         * config/linker-map.gnu: Add destructor exports for abstract base
1439         classes to conform to LSB.
1441 2004-06-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1442             Paolo Carlini  <pcarlini@suse.de>
1444         * include/bits/cpp_type_traits.h: Add __is_pointer and
1445         __is_trivially_copyable.
1446         * include/bits/stl_algobase.h (fill, fill_n): Slightly
1447         tweak to use the latter.
1448         (__copy_backward_dispatch): Remove.
1449         (__copy_backward_aux): Rewrite to use __is_pointer and
1450         __is_trivially_copyable and __copy_backward::copy_b.
1451         (__copy_backward): Rewrite as a class template and two
1452         specializations.
1454 2004-06-30  Paolo Carlini  <pcarlini@suse.de>
1456         * testsuite/25_algorithms/copy.cc: Move to...
1457         * testsuite/25_algorithms/copy/1.cc: ... here, extend.
1458         * testsuite/25_algorithms/copy/2.cc: New.
1459         * testsuite/25_algorithms/copy/3.cc: New.
1460         * testsuite/25_algorithms/copy/4.cc: New.
1462 2004-06-29  Paul Brook  <paul@codesourcery.com>
1464         * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
1465         element size in the cookie.
1467 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
1469         * include/bits/cpp_type_traits.h: Move the additions to
1470         namespace __gnu_internal outside of namespace std; trivial
1471         formatting fixes.
1473 2004-06-28  Benjamin Kosnik  <bkoz@redhat.com>
1475         * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
1476         Revert -Weffc++ changes that defined copy ctory and or assignment
1477         operator.
1478         * libsupc++/tinfo.cc (__upcast_result): Same.
1480 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
1482         * src/localename.cc (locale::_Impl::_Impl): Slightly improve
1483         the algorithm used to name the categories.
1485 2004-06-28  Paolo Bonzini  <bonzini@gnu.org>
1487         * include/Makefile.am: Give a .gch extension to
1488         the PCH files, not only to the directory.
1489         * include/Makefile.in: Regenerate.
1491 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
1493         * config/locale/gnu/monetary_members.cc
1494         (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
1495         assignments of _M_decimal_point and _M_thousands_sep.
1497 2004-06-27  Paolo Carlini  <pcarlini@suse.de>
1499         * docs/html/17_intro/contribute.html: Update some links.
1500         * docs/html/17_intro/porting-howto.html: Likewise.
1501         * docs/html/17_intro/porting-howto.xml: Likewise.
1502         * docs/html/18_support/howto.html: Likewise.
1503         * docs/html/21_strings/howto.html: Likewise.
1504         * docs/html/27_io/howto.html: Likewise.
1505         * docs/html/configopts.html: Likewise.
1506         * docs/html/ext/howto.html: Likewise.
1507         * docs/html/faq/index.html: Likewise.
1508         * docs/html/install.html: Don't mention 2.x compilers.
1510 2004-06-27  Paolo Carlini  <pcarlini@suse.de>
1512         * include/ext/rope: Trivial formatting fixes.
1513         * include/ext/ropeimpl.h: Likewise.
1515 2004-06-26  Paolo Carlini  <pcarlini@suse.de>
1517         PR libstdc++/16210
1518         * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
1519         availability of strto(u)ll, not used anymore in the iostreams.
1520         * configure: Regenerate.
1522 2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>
1524         PR libstdc++/16182
1525         * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
1526         AC_DEFINE_UNQUOTED.
1527         * configure: Regenerate.
1529 2004-06-25  Paul Brook  <paul@codesourcery.com>
1531         * libsupc++/cxxabi.h: Define __ARM_EABI__
1532         (__guard): Use it.
1533         * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
1535 2004-06-25  Paul Brook  <paul@codesourcery.com>
1537         * include/bits/concurrence.h: Still create mutex object when
1538         single-threaded.
1540 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
1542         * include/bits/stl_algobase.h (fill, fill_n): Revert last
1543         change: actually we need to copy construct an object of type
1544         _Tp, not of type iterator_traits<>::value_type, therefore the
1545         code is ok.
1547 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
1549         * include/bits/stl_algobase.h (fill, fill_n): Tighten the
1550         dispatch: use iterator_traits<>::value_type, not _Tp.
1552 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
1554         * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
1555         * testsuite/25_algorithms/fill/2.cc: Likewise.
1557 2004-06-25  Dan Nicolaescu  <dann@ics.uci.edu>
1558             Paolo Carlini  <pcarlini@suse.de>
1560         * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
1561         for fill and fill_n, respectively: when copying is cheap, use a
1562         temporary to avoid a memory read in each iteration.
1564 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
1566         * testsuite/25_algorithms/fill/1.cc: New.
1567         * testsuite/25_algorithms/fill/2.cc: Likewise.
1569 2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>
1571         * include/debug/formatter.h (__gnu_debug::_Error_formatter):
1572         Remove copy constructor and assignment operator.
1574 2004-06-24  Benjamin Kosnik  <bkoz@redhat.com>
1576         * include/bits/concurrence.h (__gnu_cxx::lock): New.
1577         * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
1578         (__pool_base::_M_get_mutex): New.
1579         * include/bits/allocator.h: Tweak.
1580         * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
1581         * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
1582         * include/bits/stl_threads.h: Remove.
1583         * include/Makefile.am: Also here.
1584         * include/Makefile.in: Regenerate.
1586         * src/locale_init.cc: Use __gnu_cxx::lock.
1588         * src/allocator.cc: Move all instantiations...
1589         * src/allocator-inst.cc: ...here.
1591 2004-06-23  Andrew Pinski  <apinski@apple.com>
1593         * linkage.m4: Remove check for libmx.
1594         * configure: Regenerate.
1596 2004-06-23  Paolo Carlini  <pcarlini@suse.de>
1598         PR libstdc++/16154
1599         * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
1600         Don't require the _DefaultConstructibleConcept.
1601         (struct _ForwardIteratorConcept): Require it here.
1603 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
1605         * include/bits/istream.tcc (getline): Make sure arguments passed
1606         to min/max have the same type.
1607         * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
1608         * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
1610 2004-06-22  Benjamin Kosnik  <bkoz@redhat.com>
1612         * docs/html/abi.html: Update links.
1614 2004-06-22  Paolo Carlini  <pcarlini@suse.de>
1616         * testsuite/26_numerics/complex_inserters_extractors.cc,
1617         complex_value.cc, buggy_complex.cc: Move to...
1618         * testsuite/26_numerics/complex/: ... here.
1619         * testsuite/26_numerics/c99_classification_macros_c++.cc,
1620         c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
1621         fabs_inline.cc: Move to...
1622         * testsuite/26_numerics/cmath/: ... here.
1623         * testsuite/26_numerics/binary_closure.cc, slice.cc,
1624         slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
1625         valarray_name_lookup.cc, valarray_operators.cc,
1626         valarray_subset_assignment.cc: Move to...
1627         * testsuite/26_numerics/valarray/: ... here (new dir).
1628         * testsuite/26_numerics/sum_diff.cc: Move to...
1629         * testsuite/26_numerics/numeric/: ... here (new dir).
1631 2004-06-22  Paolo Carlini  <pcarlini@suse.de>
1633         * include/std/std_istream.h (ignore(streamsize __n = 1,
1634         int_type __delim = traits_type::eof())): Split into...
1635         (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1636         int_type __delim)): The first two can be much more simpler
1637         and efficient than the fully general case; also, the last
1638         two can take advantage of the same mechanism already used
1639         for getline.
1640         * include/bits/istream.tcc (ignore(streamsize __n = 1,
1641         int_type __delim = traits_type::eof()): Remove.
1642         (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1643         int_type __delim)): New.
1645 2004-06-21  Loren J. Rittle  <ljrittle@acm.org>
1647         * config/linker-map.gnu: Use wildcards for
1648         __basic_file::sys_open(FILE*, _Ios_Openmode).
1650 2004-06-20  Paolo Carlini  <pcarlini@suse.de>
1652         * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
1654 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
1656         * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
1657         the alignment requested.
1658         (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
1659         (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
1660         (__mt_alloc<>::deallocate): Likewise.
1662 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
1664         PR libstdc++/16020
1665         * include/debug/safe_base.h
1666         (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
1667         _Safe_sequence_base::operator=): Provide definitions.
1668         * testsuite/23_containers/bitset/cons/16020.cc: New.
1670 2004-06-18  Benjamin Kosnik  <bkoz@redhat.com>
1672         * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
1673         (__pool_base): Remove unused template parameter.  Add
1674         protected. Move lock data into __pool_base::_Lock. Remove static
1675         on member functions.
1676         (__pool_base::_M_get_free_list): New.
1677         (__pool_alloc): Move _S_force new here.
1678         * src/allocator.cc: Move out of line __pool_base definitions here.
1679         * config/linker-map.gnu: Export bits from __pool_base.
1681 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
1683         * config/locale/gnu/numeric_members.cc
1684         (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
1685         assignments of _M_decimal_point and _M_thousands_sep.
1686         * config/locale/gnu/time_members.cc
1687         (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
1688         and reformat assignments of date and time fields.
1690 2004-06-16  Paolo Carlini  <pcarlini@suse.de>
1692         * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
1693         to use _Data_allocate.
1694         * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
1695         (rope<>::_S_substring): Likewise.
1696         (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
1697         (rope<>::c_str()): Likewise.
1698         (rope<>::replace_with_c_str()): Likewise.
1700         * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
1701         Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
1702         not _RopeRep.
1703         (_Rope_iterator_base<>::_S_setcache): Likewise.
1704         (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
1705         (rope<>::_S_substring): Likewise.
1706         (rope<>::_S_dump): Likewise.
1707         (rope<>::_S_fetch_ptr): Likewise.
1708         (rope<>::_S_compare): Likewise.
1709         (rope<>::replace_with_c_str()): Likewise.
1711         * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
1712         * testsuite/ext/rope/2.cc: New.
1714 2004-06-16  Paolo Carlini  <pcarlini@suse.de>
1715             Matt Austern  <austern@apple.com>
1717         * testsuite/ext/rope/3.cc: New.
1719 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
1721         * acinclude.m4: Remove useless multilib configury.
1722         * Makefile.am: Remove useless multilib rules.
1723         * aclocal.m4: Regenerate.
1724         * Makefile.in: Regenerate.
1725         * configure: Regenerate.
1727 2004-06-15  Paolo Carlini  <pcarlini@suse.de>
1729         * include/ext/hashtable.h: Trivial formatting fixes.
1730         * include/ext/rb_tree: Likewise.
1732 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
1734         * include/ext/hash_map: Trivial formatting fixes.
1735         * include/ext/hash_set: Likewise.
1736         * include/ext/memory: Likewise.
1737         * include/ext/numeric: Likewise.
1739 2004-06-14  Benjamin Kosnik  <bkoz@redhat.com>
1741         * Makefile.in: Regenerate with automake 1.8.5.
1742         * aclocal.m4: Same.
1743         * include/Makefile.in: Same.
1744         * libmath/Makefile.in: Same.
1745         * libsupc++/Makefile.in: Same.
1746         * po/Makefile.in: Same.
1747         * src/Makefile.in: Same.
1748         * testsuite/Makefile.in: Same.
1750 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
1752         * include/ext/slist: Trivial formatting fixes.
1754 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
1756         * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
1757         Don't use the 'magic number' 10 in the computation of __minlen;
1758         never access __name past __minlen; in the loop over __i3, don't
1759         decrease __nmatches and increase __i3 at once, only either of
1760         the two; tidy.
1762 2004-06-13  Paolo Carlini  <pcarlini@suse.de>
1764         * include/bits/locale_facets.tcc (time_get<>::do_get_time,
1765         time_get<>::do_get_date): Use only once _M_extract_via_format,
1766         instead of going through "%X"/"%x" and calling it two times
1767         (+ using widen).
1769 2004-06-12  Paolo Carlini  <pcarlini@suse.de>
1771         * include/ext/algorithm: Trivial formatting fixes.
1772         * include/ext/functional: Likewise.
1773         * include/ext/hash_fun.h: Likewise.
1774         * include/ext/iterator: Likewise.
1776 2004-06-12  Paolo Carlini  <pcarlini@suse.de>
1778         * include/bits/basic_string.tcc (find(const _CharT*, size_type,
1779         size_type)): Reimplement using std::search.
1780         * src/string-inst.cc: Instantiate std::search for char/wchar_t.
1782 2004-06-12  Dhruv Matani  <dhruvbird@gmx.net>
1784         * testsuite/performance/21_strings/string_find.cc: New.
1786 2004-06-10  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
1788         * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
1790 2004-06-10  Jan van Dijk  <jan@etpmod.phys.tue.nl>
1792         * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
1793         this function return a value.
1795 2004-06-09  Paolo Carlini  <pcarlini@suse.de>
1797         PR libstdc++/15775
1798         * include/bits/stl_deque.h: Consistently with stl_set.h, define
1799         pointer as allocator's pointer, likewise for reference,
1800         const_pointer, and const_reference.
1801         * include/bits/stl_list.h: Likewise.
1802         * include/bits/stl_map.h: Likewise.
1803         * include/bits/stl_multimap.h: Likewise.
1804         * include/bits/stl_vector.h: Likewise.
1806 2004-06-09  Benjamin Kosnik  <bkoz@redhat.com>
1808         * crossconfig.m4: Remove signbit, signbitf, signbitl.
1809         * linkage.m4: Comment LIBMATHOBJS, tweak others.  AC_DEFINES for
1810         builtin math functions instead of AC_DEFINE_UNQUOTED.
1811         * configure: Regenerate.
1813 2004-06-08  Benjamin Kosnik  <bkoz@redhat.com>
1815         * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
1816         * docs/doxygen/mainpage.html: Remove links.
1818 2004-06-08  Jason Merrill  <jason@redhat.com>
1820         * config/linker-map.gnu: Use wildcards for
1821         __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
1823 2004-06-08  Paolo Carlini  <pcarlini@suse.de>
1825         * include/ext/pool_allocator.h: Convert to a global free-list,
1826         as per the original SGI/HP design: move the implementation
1827         details to struct __pool_base, from which __pool_alloc derives.
1828         * src/allocator.cc: Instantiate __pool_base.
1830 2004-06-07  Dhruv Matani  <dhruvbird@gmx.net>
1831             Paolo Carlini  <pcarlini@suse.de>
1833         * testsuite/testsuite_performance.h
1834         (resource_counter::allocated_memory): Make it return the right
1835         number of bytes requested by the allocators/application. This is
1836         the sbrk+mmaped memory.
1838 2004-06-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1840         * include/std/std_complex.h (log): Tidy.
1842 2004-05-31  Benjamin Kosnik  <bkoz@redhat.com>
1844         * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
1845         * testsuite/testsuite_abi.cc: Same.
1846         * configure.ac (libtool_VERSION): Bump to 6:1:0.
1847         * configure: Regenerate.
1848         * aclocal.m4: Regenerate.
1850 2004-05-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1852         * include/std/std_complex.h (complex<_Tp>): Properly indent
1853         to follow C++STYLE.
1854         (complex<>::__rep): New.
1855         (__complex_abs): New.  Dispatch to built-ins.
1856         (abs): Use them.
1857         (__complex_arg): New. Dispatch to built-ins.
1858         (arg): Use it.
1859         (__complex_cos): New. Dispatch to built-ins.
1860         (cos): Use it.
1861         (__complex_cosh): New. Dispatch to built-ins.
1862         (cosh): Use it.
1863         (__complex_exp): New. Dispatch to built-ins.
1864         (exp): Use it.
1865         (__complex_log): New. Dispatch to built-ins.
1866         (log): Use it.
1867         (__complex_sin): New. Dispatch to built-ins.
1868         (sin): Use it.
1869         (__complex_sinh): New. Dispatch to built-ins.
1870         (sinh): Use it.
1871         (__complex_sqrt): New. Dispatch to built-ins.
1872         (sqrt): Use it.
1873         (__complex_tan): New. Dispatch to built-ins.
1874         (tan): Use it.
1875         (__complex_tanh): New. Dispatch to built-ins.
1876         (tanh): Use it.
1877         (__complex_pow): New. Dispatch to built-ins.
1878         (pow): Use it.
1880 2004-05-29  Richard B. Kreckel  <Richard.Kreckel@Framatome-ANP.com>
1881             Benjamin Kosnik  <bkoz@redhat.com>
1883         PR libstdc++/14600
1884         * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
1885         * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
1886         * config/io/basic_file_stdio.cc (__basic_file::file): New.
1887         * config/io/basic_file_stdio.h: Define.
1889 2004-05-27  Benjamin Kosnik  <bkoz@redhat.com>
1891         PR libstdc++/15675
1892         * docs/html/documentation.html: Update doxygen links for 3.4.0.
1894 2004-05-27  Jan Beulich  <jbeulich@novell.com>
1896         * scripts/create_testsuite_files: Tweak.
1898 2004-05-25  Benjamin Kosnik  <bkoz@redhat.com>
1900         PR libstdc++/15489
1901         * scripts/create_testsuite_files: Revert xtype change, add non-GNU
1902         bits to do the same thing.
1904 2004-05-24  Paolo Carlini  <pcarlini@suse.de>
1906         * include/bits/istream.tcc (ignore): Correctly deal with
1907         n == numeric_limits<streamsize>::max().
1908         * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
1910         * include/bits/istream.tcc (basic_istream<>::getline): Prefer
1911         '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
1912         __n == numeric_limits<>::min().
1914         * include/bits/istream.tcc: Minor tweaks.
1916         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
1917         Tighten.
1918         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
1919         Likewise.
1920         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
1921         Likewise.
1922         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
1923         Likewise.
1924         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
1926 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
1928         PR libstdc++/12854
1929         Fixups for -Weffc++.
1930         * include/bits/basic_string.h (basic_string::operator=): Return
1931         pointer to this instead of result of assign. Although redundant,
1932         this doesn't impact resultant codegen.
1934         * include/bits/locale_facets.h (__numpunct_cache): Declare
1935         assignment opxserator and copy constructor private.
1936         (__timepunct_cache): Same.
1937         (__moneypunct_cache): Same.
1938         (collate): Use member initialization list for _M_c_locale_collate.
1939         * config/locale/gnu/messages_members.h: Same.
1940         * config/locale/gnu/time_members.h (__timepunct): Same.
1941         * src/codecvt.cc: Use member initialization list to initialize
1942         _M_c_locale_codecvt.
1943         * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
1944         * config/os/gnu-linux/ctype_noninline.h: Same.
1945         * src/locale.cc (_Impl): Same.
1946         * src/locale_init.cc: Same.
1947         * src/localename.cc: Same.
1949         * include/bits/basic_ios.h (basic_ios): Complete member
1950         initialization list.
1951         * include/bits/istream.tcc (basic_istream::sentry): Same.
1952         * include/bits/ostream.tcc (basic_ostream::sentry): Same.
1953         * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
1954         _M_pback to member initialization list.
1955         * include/std/std_streambuf.h: Same.
1956         * include/std/std_sstream.h: Same, for _M_mode.
1957         * src/ios.cc (ios_base): Same.
1959         * include/ext/rope: Make derived classes match exception
1961          specifications. Add copy constructors and assignment operators.
1963         * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
1964         constructor and assignment operator protected.
1965         (_Safe_iterator_base): Same.
1966         * include/debug/formatter.h (_Error_formatter): Define copy
1967         constructor and assignment operator.
1969         * include/backward/strstream: Declare assignment operator and copy
1970         constructor private.
1972 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
1974         * testsuite/testsuite_hooks.h (func_callback): Declare copy
1975         constructor and assignment operator private.
1976         * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
1977         exception specifications of base class.
1978         * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
1979         * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
1980         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
1982 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
1984         * libsupc++/cxxabi.h: Remove duplicated and useless public and
1985         private keywords in class declarations. Format. Use
1986         stddef.h. Expose declarations to "C" compilation.
1987         * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
1988         assignment operator.
1989         (__dyncast_result): Same.
1990         * libsupc++/vec.cc (uncatch_exception): Same, use member
1991         initialization list.
1993 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
1995         * testsuite/abi_check.cc: Add unistd.h.
1997 2004-05-22  Paolo Carlini  <pcarlini@suse.de>
1999         PR libstdc++/15565
2000         * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
2001         __int_to_char(unsigned long long)): Showpos is not relevant
2002         for unsigned types.
2003         * testsuite/22_locale/num_put/put/char/15565.cc: New.
2004         * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
2006         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
2007         char.
2008         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
2009         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
2010         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2011         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
2012         * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
2013         * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
2015 2004-05-21  Matthias Klose  <doko@debian.org>
2017         * docs/doxygen/run_doxygen:  Bump required version.
2019 2004-05-21  Benjamin Kosnik  <bkoz@redhat.com>
2021         * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
2022         * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
2024 2004-05-21  Paolo Carlini  <pcarlini@suse.de>
2026         * include/bits/istream.tcc (ignore): Remove redundant line.
2027         (readsome): Tidy, closely following 27.6.1.3, p30.
2029 2004-05-20  Paolo Carlini  <pcarlini@suse.de>
2031         * include/bits/istream.tcc (operator>>(basic_istream<>&,
2032         basic_string<>&)): Use a temporary buffer, thus avoiding
2033         reallocation for common case.
2034         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2035         New.
2036         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2037         Likewise.
2039         * include/bits/istream.tcc: Const-ification of a few variables.
2041         * include/bits/ostream.tcc: Trivial formatting fixes and
2042         const-ification of some variables.
2044 2004-05-20  Benjamin Kosnik  <bkoz@redhat.com>
2046         PR libstdc++/15123
2047         PR libstdc++/13928
2048         * docs/doxygen/Intro.3: Remove Allocators.3.
2049         Add new extension headers, extension namespace list.
2050         * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
2051         Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
2052         __gnu_debug::. Remove __policy_ renames.
2053         * docs/doxygen/guide.html: Add dot note.
2054         * docs/doxygen/stdheader.cc: Edit, add files.
2055         * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
2057 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
2059         * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
2061 2004-05-18  Jan Beulich  <jbeulich@novell.com>
2063         PR libstdc++/15489
2064         * scripts/create_testsuite_files: Also find source files through
2065         symbolic links.
2067 2004-05-18  Jan Beulich  <jbeulich@novell.com>
2069         PR libstdc++/15488
2070         * testsuite/lib/libstdc++.exp: Make test files writable.
2072 2004-05-18  Paolo Carlini  <pcarlini@suse.de>
2074         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
2075         tweaks.
2077 2004-05-18  Dhruv Matani  <dhruvbird@gmx.net>
2079         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
2080         allocation loop which removes blocks from the global free list
2081         from O(N) to O(1) when the required blocks are <= the number
2082         available.
2084 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
2086         * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
2088 2004-05-17  Benjamin Kosnik  <bkoz@redhat.com>
2090         * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
2091         * testsuite/23_containers/deque/14340.cc: New.
2092         * testsuite/23_containers/list/14340.cc: New.
2093         * testsuite/23_containers/map/14340.cc: New.
2094         * testsuite/23_containers/multimap/14340.cc: New.
2095         * testsuite/23_containers/multiset/14340.cc: New.
2096         * testsuite/23_containers/set/14340.cc: New.
2097         * testsuite/23_containers/vector/14340.cc: New.
2099 2004-05-17  Douglas Gregor   <gregod@cs.rpi.edu>
2101         PR libstdc++/14340
2102         * include/debug/safe_iterator.h (_Safe_iterator converting
2103         constructor): Only allow declaration to instantiate when the
2104         incoming _Safe_iterator has exactly the right iterator type.
2106 2004-05-17  Jonathan Wakely  <redi@gcc.gnu.org>
2108         * include/bits/boost_concept_check.h: Fix old attribute syntax.
2109         * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
2110         to pass concept-checks.
2111         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2112         * testsuite/23_containers/set/modifiers/swap.cc: Same.
2113         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2115 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
2117         * include/std/std_bitset.h: Minor formatting fixes.
2119 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
2121         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2122         Consistently update __bin._M_free[0].
2123         (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
2124         __bin._M_free[0] to simplify the while loop (i.e., the number
2125         of iterations becomes known at the outset).
2127 2004-05-15  Paolo Carlini  <pcarlini@suse.de>
2129         * include/std/std_bitset.h: Trivial formatting fixes.
2131 2004-05-14  Paolo Carlini  <pcarlini@suse.de>
2132             Ivan Godard  <igodard@pacbell.net>
2134         PR libstdc++/15361
2135         * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
2136         * testsuite/23_containers/bitset/ext/15361.cc: New.
2138 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
2140         PR libstdc++/15046
2141         * crossconfig.m4: Add C99 math bits for linux crosses.
2142         * configure: Regenerate.
2144 2004-05-13  Simon Marshall <simon.marshall@misys.com>
2145             Benjamin Kosnik  <bkoz@redhat.com>
2147         PR libstdc++/15090
2148         * include/bits/locale_facets.h: Fix for -fno-for-scope.
2149         * include/debug/safe_sequence.h: Same.
2150         * include/debug/safe_iterator.tcc: Same.
2151         * src/debug.cc: Same.
2152         * src/locale.cc: Same.
2153         * src/locale_init.cc: Same.
2154         * src/localename.cc: Same.
2155         * config/locale/gnu/ctype_members.cc: Same.
2156         * config/locale/gnu/numeric_members.cc: Same.
2157         * testsuite/testsuite_abi.cc: Same.
2158         * testsuite/testsuite_hooks.cc: Same.
2160 2004-05-13  Jonathan Wakely  <redi@gcc.gnu.org>
2162         * docs/html/abi.html: Document effect of -fabi-version on value
2163         of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
2164         Fix markup.
2166 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
2168         PR libstdc++/15074
2169         * docs/html/faq/index.html: Update docs for libsupc++ usage.
2171 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
2173         PR libstdc++/15412
2174         * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
2175         __gnu_internal.
2176         (_GLIBCXX_mutex_address): Same.
2177         (_GLIBCXX_once): Same.
2178         (_GLIBCXX_mutex_init): Same.
2179         (_GLIBCXX_mutex_address_init): Same.
2181 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
2183         * docs/html/abi.html: New.
2184         * docs/html/abi.txt: Remove.
2185         * docs/html/documentation.html: Add link.
2186         * testsuite/Makefile.am: Add files.
2187         * testsuite/Makefile.in: Regenerated.
2188         * testsuite/abi_check.cc: Move and modify code into...
2189         * testsuite/testsuite_abi.cc: Add.
2190         * testsuite/testsuite_abi.h: Add.
2192         * docs/html/17_intro/TODO: Update.
2193         * include/bits/stl_pair.h: Format.
2195 2004-05-06  Matthias Klose  <doko@debian.org>
2197         * include/backward/iterator.h:  Add GPL copyright info,
2198         with exception clause.
2199         * include/bits/boost_concept_check.h: Likewise.
2200         * include
2201         * libsupc++/tinfo.h: Likewise.
2202         * po/string_literals.cc: Likewise.
2204 2004-05-03  Andreas Tobler  <a.tobler@schweiz.ch>
2206         * acinclude.m4: Replace -W with more speaking -Wextra.
2207         * configure: Rebuilt.
2209 2004-05-03  Paolo Carlini  <pcarlini@suse.de>
2211         Optimize locale::_M_impl->_M_names for the most common cases:
2212         !_M_names[0] means unnamed; !_M_names[1] means all the categories
2213         the same name (_M_names[0] && _M_names[1] means that the full set
2214         of _M_names must be processed, the general case).
2215         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
2216         Tweak, saving work when !_M_names[1].
2217         (locale::locale(const locale&, _Facet*): Simplify: now just setting
2218         _M_names[0] = 0 means unnamed.
2219         * src/locale.cc (locale::operator==): Deal first with the common,
2220         easy cases, otherwise fall back to locale::name().
2221         (locale::name()): Tweak, if !_M_names[0] just return "*".
2222         (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
2223         copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
2224         * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
2225         * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
2226         Simplify when !std::strchr, just updating _M_names[0]; clean up.
2227         (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
2228         for the general case (full set of names), then do the usual work;
2229         clean up.
2231         * src/locale.cc (locale::name()): Reserve space in __ret.
2232         * src/locale_init.cc (locale::global(const locale&)): Save
2233         the name in a temporary.
2234         * src/localename.cc (locale::locale(const char*)): Reserve space
2235         in __str.
2237 2004-04-29  Paolo Carlini  <pcarlini@suse.de>
2239         * src/locale.cc (locale::operator==): Always avoid constructing
2240         locale::name(), directly compare pairs of _M_names.
2242 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
2244         * include/bits/istream.tcc: Fix comment.
2246 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
2248         * include/bits/stl_vector.h: Trivial formatting fixes.
2249         * include/bits/vector.tcc: Likewise.
2251 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
2253         PR libstdc++/15002 (continued again)
2254         * include/bits/istream.tcc (getline(basic_istream<>&,
2255         basic_string<>&, _CharT)): Use a temporary buffer, thus
2256         avoiding reallocation for common case.
2258         * include/bits/basic_string.tcc (_S_construct(_InIterator,
2259         _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
2260         of temporary buffer to a power of two.
2262         * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
2264 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
2266         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2267         New.
2268         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2269         Likewise.
2270         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2272 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
2273             Petur Runolfsson  <peturr02@ru.is>
2275         PR libstdc++/15002 (continued)
2276         * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
2277         streamsize, char_type)): Use traits::find/copy in a loop to speed
2278         up greatly the function in the common case (I/O buffer size >> 1).
2280 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
2282         * testsuite/27_io/basic_istream/getline/char/4.cc: New.
2284         * include/bits/istream.tcc (getline(basic_istream<>&,
2285         basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
2286         of sbumpc(), consistently with the other functions, thus also
2287         dealing correctly with the case of exceeded string::max_size().
2289 2004-04-24  Matthias Klose  <doko@debian.org>
2291         Jonathan Wakely  <cow@compsoc.man.ac.uk>
2292         * docs/html/configopts.html: Fix reference to allocator config option.
2294 2004-04-23  Andrew Pinski  <pinskia@physics.uc.edu>
2296         * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
2297         * configure: Regenerate.
2299 2004-04-23  Daniel Jacobowitz  <drow@mvista.com>
2301         PR libstdc++/15047, libstdc++/11610
2302         * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
2303         (libstdc++_init): Don't pass outdir to v3-copy-files.
2305 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
2307         * include/bits/deque.tcc: Trivial formatting fixes.
2308         * include/bits/stl_deque.h: Likewise.
2309         * include/bits/stl_list.h: Likewise.
2310         * include/bits/stl_tree.h: Likewise.
2312 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
2313             Andrew Pinski  <pinskia@physics.uc.edu>
2315         * include/bits/basic_string.tcc (_M_mutate): Don't compute
2316         __src unnecessarily.
2318 2004-04-19  Benjamin Kosnik  <bkoz@redhat.com>
2320         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
2321         Clarify assertion, set test variable to false before assert.
2322         * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
2323         * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
2324         * testsuite/27_io/ios_base/storage/2.cc: Same.
2326         * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
2327         function returns.
2328         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
2329         * testsuite/27_io/fpos/14320-3.cc: Same.
2331         * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
2332         * testsuite/27_io/fpos/1.cc: Same.
2333         * testsuite/27_io/basic_stringstream/2.cc: Same.
2334         * testsuite/27_io/basic_stringbuf/4.cc: Same.
2335         * testsuite/27_io/basic_stringbuf/1.cc: Same.
2336         * testsuite/27_io/basic_stringbuf/2.cc: Same.
2337         * testsuite/27_io/basic_streambuf/2.cc: Same.
2338         * testsuite/27_io/basic_ostringstream/2.cc: Same.
2339         * testsuite/27_io/basic_ostream/2.cc: Same.
2340         * testsuite/27_io/basic_ofstream/2.cc: Same.
2341         * testsuite/27_io/basic_istringstream/2.cc: Same.
2342         * testsuite/27_io/basic_istream/2.cc: Same.
2343         * testsuite/27_io/basic_iostream/2.cc: Same.
2344         * testsuite/27_io/basic_ios/2.cc: Same.
2345         * testsuite/27_io/basic_ifstream/2.cc: Same.
2346         * testsuite/27_io/basic_fstream/2.cc: Same.
2347         * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
2349         * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
2350         unsigned against zero.
2351         * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
2352         * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
2354         * testsuite/18_support/new_delete_placement.cc: Initialize
2355         variables before first use.
2356         * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
2357         * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
2358         * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
2359         * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
2360         Same.
2361         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
2362         * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
2363         Same.
2364         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
2365         * testsuite/27_io/types/2.cc: Same.
2367         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
2368         file name.
2369         * testsuite/27_io/fpos/14775.cc: Same.
2371 2004-04-19  Paolo Carlini  <pcarlini@suse.de>
2373         PR libstdc++/15002 (partial)
2374         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2375         Special case __n2 == 1, not calling traits_type::assign/copy.
2377 2004-04-17  Benjamin Kosnik  <bkoz@redhat.com>
2379         * include/bits/stl_bvector.h: Use _M_impl._M_start.
2381 2004-04-16  Benjamin Kosnik  <bkoz@redhat.com>
2383         * include/bits/c++config (_GLIBCXX_STD): New.
2384         * src/list.cc: Use it.
2385         * include/std/std_bitset.h: Same.
2386         * include/bits/vector.tcc: Same.
2387         * include/bits/stl_set.h: Same.
2388         * include/bits/stl_multiset.h: Same.
2389         * include/bits/stl_multimap.h: Same.
2390         * include/bits/stl_map.h: Same.
2391         * include/bits/stl_list.h: Same.
2392         * include/bits/stl_vector.h: Same.
2393         * include/bits/stl_bvector.h: Same.
2394         * include/bits/stl_deque.h: Same.
2395         * include/bits/deque.tcc: Same.
2396         * include/bits/list.tcc: Same.
2397         * include/debug/vector: Same.
2398         * include/debug/set.h: Same.
2399         * include/debug/multiset.h: Same.
2400         * include/debug/multimap.h: Same.
2401         * include/debug/map.h: Same.
2402         * include/debug/list: Same.
2403         * include/debug/deque: Same.
2404         * include/debug/bitset: Same.
2405         * include/debug/formatter.h (__gnu_debug): Remove using directive.
2406         Add using declaration for std::type_info.
2407         * include/debug/safe_iterator.h: Add using declaration for
2408         std::iterator_traits and std::pair.
2409         * src/debug_list.cc: New.
2410         * src/Makefile.am: Add debug_list.cc.
2411         * src/Makefile.in: Regenerate.
2412         * config/linker-map.gnu: Add _List_node_base exports for std and
2413         __gnu_norm.
2415         * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
2416         idiom that other containers use.
2417         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2419 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
2421         PR libstdc++/14975
2422         * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
2423         in case of error.
2424         * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
2425         * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
2427 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
2429         * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
2430         used anymore.
2431         * config.h.in: Regenerate.
2433 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
2435         * config/locale/generic/monetary_members.cc
2436         (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
2437         btowc unnecessarily, just cast to wchar_t (the concerned chars
2438         all belong to the basic character set).
2439         * config/locale/generic/numeric_members.cc
2440         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2441         * config/locale/gnu/monetary_members.cc
2442         (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
2443         * config/locale/gnu/numeric_members.cc
2444         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2446 2004-04-15  Paolo Carlini  <pcarlini@suse.de>
2448         * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
2449         avoid constructing unnecessarily this->name().
2451 2004-04-14  Zack Weinberg  <zack@codesourcery.com>
2453         * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
2454         Change definition of CXX to use $(shell) instead of backticks.
2455         * testsuite/Makefile.in: Regenerate.
2457 2004-04-12  Dhruv Matani  <dhruvbird@gmx.net>
2459         * testsuite/performance/20_util/allocator/list_sort_search.cc:
2460         Minor formatting fixes.
2461         * testsuite/performance/20_util/allocator/map_mt_find.cc:
2462         Likewise.
2464 2004-04-12  Paolo Carlini <pcarlini@suse.de>
2466         * config/locale/gnu/numeric_members.cc
2467         (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
2468         in __uselocale, since btowc is called for chars belonging to
2469         the basic character set.
2471 2004-04-09  Paolo Carlini  <pcarlini@suse.de>
2473         * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
2474         * testsuite/22_locale/messages/members/char/2.cc: Ditto.
2475         * testsuite/22_locale/messages/members/char/3.cc: Ditto.
2476         * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
2477         * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
2478         * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
2479         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
2480         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
2481         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
2482         * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
2483         * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
2484         * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
2485         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
2486         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
2487         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
2488         * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
2489         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
2491 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
2493         * config/locale/generic/time_members.cc
2494         (__timepunct<char>::_M_initialize_timepunct,
2495         __timepunct<wchar_t>::_M_initialize_timepunct): the correct
2496         _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
2497         * config/locale/gnu/time_members.cc
2498         (__timepunct<char>::_M_initialize_timepunct,
2499         __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
2500         * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
2501         * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
2503         * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
2504         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
2505         * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
2506         * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
2507         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
2508         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
2509         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
2510         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
2511         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
2512         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
2513         * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
2514         * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
2515         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
2516         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
2517         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
2518         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
2519         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
2520         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
2521         * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
2522         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
2523         * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
2524         * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
2525         * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
2526         * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
2527         * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
2528         * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
2529         * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
2530         * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
2531         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
2532         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
2533         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
2534         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
2535         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
2536         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
2537         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
2538         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
2540         * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
2542 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
2544         * config/locale/gnu/monetary_members.cc
2545         (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
2546         _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
2547         and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
2548         _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
2549         * config/locale/gnu/numeric_members.cc
2550         (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
2551         and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
2553 2004-04-06  Benjamin Kosnik  <bkoz@redhat.com>
2555         Fixups for EDG front end.
2556         * include/ext/rope: Instead of non-existent function
2557         _Data_allocate, use allocator's allocate. Use this.
2558         (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
2559         enumerations from _Rope_RopeRep here.
2560         * include/ext/ropeimpl.h: Same.
2561         * src/ext-inst.cc (_S_min_len): Fix up definition.
2563         * config/locale/gnu/ctype_members.cc: Qualify base class members
2564         with this.
2565         * config/locale/generic/ctype_members.cc: Same.
2566         * config/locale/gnu/messages_members.h: Same.
2567         * config/locale/generic/messages_members.h: Same.
2568         * src/ctype.cc: Same.
2569         * include/bits/codecvt.h: Same.
2571         * include/bits/boost_concept_check.h: Declare.
2572         (__error_type_must_be_an_unsigned_integer_type): Remove this.
2573         (__error_type_must_be_an_integer_type): Remove this.
2574         (__error_type_must_be_a_signed_integer_type): Remove this.
2576         * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
2578         * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
2579         specification to definition.
2580         (__cxa_allocate_exception): Same.
2581         * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
2582         * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
2583         (__cxa_get_globals): Same.
2585         * libsupc++/del_op.cc: Add comment about freestanding.
2587 2004-04-05  Paolo Carlini  <pcarlini@suse.de>
2589         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2590         The critical section is actually very small, only two assignments.
2592 2004-04-04  Paolo Carlini  <pcarlini@suse.de>
2593             Petur Runolfsson  <peturr02@ru.is>
2595         * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
2596         adapted from libstdc++/11378.
2598 2004-04-03  Paolo Carlini  <pcarlini@suse.de>
2600         * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
2601         some duplicated code.
2602         (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
2603         in the single threaded case.
2604         * testsuite/performance/20_util/allocator/list_sort_search.cc:
2605         Reorder and renumber the tests consistently with the other testfiles.
2606         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
2607         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
2608         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
2610 2004-04-02  Paolo Carlini  <pcarlini@suse.de>
2612         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2613         Rearrange arithmetic to avoid computing two divisions at
2614         each deallocation.
2616 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
2618         * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
2619         Streamline the second half, wrapping it in a single
2620         '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
2621         conditionals inside loops.
2623 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
2625         PR libstdc++/14775
2626         * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
2627         * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
2628         GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
2629         to _GLIBCXX_RES_LIMITS.
2630         (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
2631         HAVE_LIMIT_*.
2632         * testsuite/testsuite_hooks.h: Declare set_file_limit.
2633         * testsuite/testsuite_hooks.cc: Define it, using getrlimit
2634         and setrlimit(RLIMIT_FSIZE).
2635         * testsuite/27_io/fpos/14775.cc: New.
2636         * config.h.in: Regenerate.
2637         * configure: Likewise.
2639 2004-03-31  Paolo Carlini  <pcarlini@suse.de>
2641         * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
2642         In v3 uses of sscanf, the special floating-point numbers INF,
2643         INFINITY, etc., cannot occur in input, therefore, if the latter
2644         is too large, ERANGE is always stored in errno, no need of finitel.
2646 2004-03-30  Benjamin Kosnik  <bkoz@redhat.com>
2648         PR libstdc++/14783
2649         * include/bits/stl_tree.h: Adjust initialization list order.
2651 2004-03-29  Loren J. Rittle  <ljrittle@acm.org>
2653         * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
2655 2004-03-29  Paolo Carlini  <pcarlini@suse.de>
2657         * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
2658         on allocator behavior, the memory pointed by data2 may well be not
2659         trashed.
2661 2004-03-28  Chavdar Botev  <cbotev@yahoo.com>
2663         PR libstdc++/14245
2664         * include/bits/basic_string.tcc
2665         (basic_string::basic_string(const basic_string&)): Pass to
2666         _Rep::_M_grab the actual allocator of the string being constructed
2667         not the default constructed one.
2669 2004-03-27  Benjamin Kosnik  <bkoz@redhat.com>
2671         libstdc++ PR/13598
2672         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
2673         (__enc_traits::_M_destroy): New.
2674         (__enc_traits::~__enc_traits): Use it.
2675         (__enc_traits::operator=): Use _M_destroy, _M_init.
2676         (__enc_traits::__enc_traits): Same.
2678 2004-03-27  Petur Runolfsson  <peturr02@ru.is>
2680         * testsuite/ext/enc_filebuf/char/13598.cc: New.
2682 2004-03-27  Paolo Carlini  <pcarlini@suse.de>
2684         * include/ext/mt_allocator.h: Uglify consistently names of
2685         variables, members and classes; tidy.
2687 2004-03-27  Dhruv Matani  <dhruvbird@gmx.net>
2689         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2690         Deallocation loop rewrote.
2692 2004-03-26  Paolo Carlini  <pcarlini@suse.de>
2694         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
2695         __mt_alloc<>::deallocate): Protect two instances of
2696         block->thread_id with __GTHREADS.
2698 2004-03-25  Gawain Bolton  <gp.bolton@computer.org>
2700         * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
2701         default argument in constructors.
2702         (_Rb_tree::_M_empty_initialize): Remove.
2704 2004-03-25  Benjamin Kosnik  <bkoz@redhat.com>
2706         * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
2707         * testsuite/23_containers/set/operators/1_neg.cc: Same.
2709 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
2711         * include/bits/cpp_type_traits.h: Changed __is_pod
2712         completely. Now, it does not use any of the previous type_traits
2713         to detect the pod types, and it also detects function pointers as
2714         POD types.
2716         * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
2717         which encapsulates the internal implementation of an rb_tree. Made
2718         the allocator a base class of this class instead of the rb_tree,
2719         which was not conforming. This _Rb_tree_impl class is also
2720         specialized on whether the _Compare parameter is a POD type or
2721         not. If so, then it maintains the comparison function as a data
2722         member, otherwise it makes the _Compare parameter a base class of
2723         itself. Also, _M_key_compare is now a function instead of a data
2724         member, so that the above trick can work properly. Delegated the
2725         initialization of the other data members to this newly created
2726         class. Also, now other member functions of rb_tree must refer to
2727         _M_key_compare as _M_impl._M_key_compare(). The other data members
2728         (*) can be referenced to as _M_impl.(*), where
2729         (*) includes _M_header, and _M_node_count.
2731 2004-03-25  Paolo Carlini  <pcarlini@suse.de>
2733         * include/ext/mt_allocator.h (__mt_alloc<>::tune):
2734         Add _M_min_bin, the size in bytes of the smallest bin.
2735         (__mt_alloc<>::tune()): Tweak accordingly.
2736         (__mt_alloc<>::tune(size_t, ...)): Likewise.
2737         (__mt_alloc<>::block_record): Change to a union: members next
2738         and thread_id are never used at the same time.
2739         (__mt_alloc<>::allocate): Update consistently.
2740         (__mt_alloc<>::deallocate): Likewise.
2741         (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
2742         _S_bin_size for the configurable _M_min_size.
2744 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
2746         * include/bits/stl_list.h: Created a _List_impl class and made it
2747         derive from the allocator, instead of the list deriving from the
2748         allocator class, which was not conformant. Changed all references
2749         from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
2750         as above (changed all references to the concerned variables).
2752 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
2754         * include/bits/stl_deque.h: Created a _Deque_impl class and made
2755         it derive from the allocator, instead of the deque deriving from
2756         the allocator class, which was not conformant. Changed all
2757         references to the _M_start, _M_finish, _M_map, and _M_map_size to
2758         _M_impl.*.
2759         (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
2760         qualification in 2 places where it was missing.
2761         (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
2762         above.
2763         * include/bits/deque.tcc: Same as above (changed all references to
2764         the concerned variables).
2766 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
2768         * include/bits/stl_vector.h: Created a _Vector_impl class and made
2769         it derive from the allocator, instead of the _Vector_base class,
2770         deriving from the allocator which was not conformant. Changed all
2771         references to the _M_start, _M_finish, and _M_end_of_storage to
2772         _M_impl.*.
2773         * include/bits/vector.tcc: Same as above (changed all references
2774         to the concerned variables).
2776 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
2778         * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
2779         * testsuite/23_containers/list/cons/clear_allocator.cc: New.
2780         * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
2782 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
2784         * include/ext/malloc_allocator.h: Fixed the construct function to
2785         call global placement new instead of assignment. Added a check
2786         after the return from malloc to check whether returned pointer is
2787         NULL, and if so, throw std::bad_alloc().
2788         * include/ext/debug_allocator.h: Added a check in the deallocate
2789         function to check whether the user has passed a NULL pointer or
2790         not.
2792 2004-03-24  Benjamin Kosnik  <bkoz@redhat.com>
2794         * docs/html/20_util/allocator.html: Add bitmap_allocator links.
2796 2004-03-24  Andreas Schwab  <schwab@suse.de>
2798         * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
2799         warning from IA64 assembler.
2801 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
2803         * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
2804         function call __builtin_ctz instead of the while loop.
2805         (allocate) -> If condition has __builtin_expect.
2806         (deallocate) -> Ditto.
2807         Renamed a few left-over variables and typedefs according to the
2808         C++STYLE mentioned in the documentation.
2809         Protected calls to __gthread* by __gthread_active_p(), whose value
2810         is cached in the local variable __threads_active.
2812 2004-03-24  Felix Yen  <fwy@alumni.brown.edu>
2814         * testsuite/performance/20_util/allocator/producer_consumer.cc:
2815         Use linear algorithm for producer.
2817 2004-03-24  Paolo Carlini  <pcarlini@suse.de>
2819         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
2820         __mt_alloc<>::deallocate): Avoid redundant conditionals.
2822 2004-03-23  Benjamin Kosnik  <bkoz@redhat.com>
2824         * include/bits/locale_facets.h: Tweaks for 80 column.
2825         (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
2826         (__moneypunct_cache::_M_cache): Same.
2827         (num_get): Don't inherit from __num_base.
2828         (num_put): Same.
2829         (money_get): Don't inherit from money_base.
2830         (money_put): Same.
2831         (__timepunct::_M_am_pm_format): New.
2832         (time_get::_M_extract_num): Return iterator, use ios_base as argument.
2833         (time_get::_M_extract_name): Same.
2834         (time_get::_M_extract_via_format): Same.
2835         * include/bits/locale_facets.tcc: Tweaks for 80 column.
2836         Use _M_getloc instead of getloc.
2837         * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
2838         * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
2839         * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
2841 2004-03-22  Paolo Carlini  <pcarlini@suse.de>
2843         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
2844         * configure: Regenerate.
2845         * config/allocator/pool_allocator_base.h: New.
2846         * include/ext/pool_allocator.h: Convert to a standard-conforming
2847         allocator.
2848         * src/allocator.cc: Tweak instantiations.
2849         * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
2850         * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
2851         * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
2852         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
2853         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
2854         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
2856 2004-03-22  Hans-Peter Nilsson  <hp@axis.com>
2858         * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
2859         inline" and attribute-unused.  Qualify parameter __mem with
2860         "volatile".
2861         (__exchange_and_add): Ditto.  Add back memory clobber to asm.
2863 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
2865         * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
2866         Remove junk.
2867         * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
2868         Likewise.
2869         * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
2870         Likewise.
2871         * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
2872         Likewise.
2873         * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
2874         Likewise.
2875         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
2876         Likewise.
2877         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
2878         Likewise.
2879         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
2880         Likewise.
2881         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
2882         Likewise.
2883         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
2884         Likewise.
2886 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
2888         * include/std/std_valarray.h: Document DR389 [Ready].
2889         * docs/html/ext/howto.html: Add an entry for DR389.
2891 2004-03-19  Michael Eager  <eager@mvista.com>
2893         * config/cpu/mips/atomicity.h:  Prevent reg loads between LL and
2894         SC instructions.
2896 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
2898         * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
2899         static_cast-s.
2900         * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
2901         * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
2902         * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
2903         * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
2904         * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
2905         * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
2906         * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
2907         * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
2908         * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
2910 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
2911             Petur Runolfsson  <peturr02@ru.is>
2913         PR libstdc++/12077
2914         * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
2915         no way to find out the conversion used by the underlying FILE*.
2916         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
2917         * testsuite/27_io/objects/char/9.cc: Tweak.
2919 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
2921         PR libstdc++/14648
2922         * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
2923         memory allocation/deallocation calls.
2924         * testsuite/ext/14648.cc: New.
2926 2004-03-19  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
2928         PR libstdc++/14647
2929         * include/backward/bvector.h (bit_vector): Allocator is in std
2930         namespace.
2932 2004-03-19  Phil Edwards  <phil@codesourcery.com>
2934         * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT):  Set LIBICONV,
2935         not libiconv.  SUBST this variable as well.
2936         * testsuite/Makefile.am (site.exp):  New target, based on that
2937         created by automake.  Also set libiconv.
2939         * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
2940         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2941         testsuite/Makefile.in:  Regenerate.
2943 2004-03-16  Benjamin Kosnik  <bkoz@redhat.com>
2945         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
2946         new_allocator for all hosts.
2947         * configure: Regenerate.
2949 2004-03-16  Paolo Carlini  <pcarlini@suse.de>
2951         * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
2952         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2954 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
2956         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2957         Adjust the logic underlying the parsing of symbol to deal
2958         correctly with an optional sign component (i.e., when either
2959         negative_sign or positive_sign is empty)
2960         * testsuite/22_locale/money_get/get/char/19.cc: New.
2961         * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
2963 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
2965         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2966         Do not accept an incomplete currency symbol.
2967         * testsuite/22_locale/money_get/get/char/18.cc: New.
2968         * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
2970 2004-03-13  Benjamin Kosnik  <bkoz@redhat.com>
2972         * config/allocator: New.
2973         * config/allocator/bitmap_allocator_base.h: New.
2974         * config/allocator/malloc_allocator_base.h: New.
2975         * config/allocator/mt_allocator_base.h: New.
2976         * config/allocator/new_allocator_base.h: New.
2977         * include/bits/allocator.h: Include c++allocator.h.
2978         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
2979         * aclocal.m4: Regenerate.
2980         * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
2981         * configure: Regenerate.
2982         * include/Makefile.am (host_headers_extra): Add c++allocator.h.
2983         * include/Makefile.in: Regenerate.
2984         * docs/html/configopts.html: Add enable-libstdcxx-allocator.
2986 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
2988         * include/bits/allocator.h: Revert.
2990 2004-03-12  Paolo Carlini  <pcarlini@suse.de>
2992         * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
2993         * include/bits/gslice_array.h: Add comment about DR 253.
2994         * include/bits/indirect_array.h: Likewise.
2995         * include/bits/mask_array.h: Likewise.
2996         * include/bits/slice_array.h: Likewise.
2998 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
3000         * testsuite/20_util/allocator/14176.cc: New.
3001         * include/ext/mt_allocator.h: Formatting fixes.
3003 2004-03-11  Dhruv Matani  <dhruvbird@HotPOP.com>
3005         * include/Makefile.am (ext_headers): Add
3006         ${ext_srcdir}/bitmap_allocator.h .
3007         * include/Makefile.in: Regenerate.
3008         * docs/html/ext/ballocator_doc.txt: New file.
3009         * include/ext/bitmap_allocator.h: New file.
3010         * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
3011         test.
3012         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
3013         * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
3014         test for the bitmap_allocator<>.
3015         * testsuite/performance/20_util/allocator/insert.cc: Likewise.
3016         * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
3017         * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
3019 2004-03-11  Paolo Carlini  <pcarlini@suse.de>
3021         * include/std/std_complex.h (pow(const complex&, const _Tp&),
3022         pow(const _Tp&, const complex&), pow(const complex&,
3023         const complex&)): Fully qualify with std:: a few calls.
3024         * testsuite/26_numerics/complex/13450.cc: Minor tweak.
3026 2004-03-11  Steven Bosscher  <stevenb@suse.de>
3028         PR libstdc++/11706
3029         * include/c_std/cmath.tcc (__cmath_power): Define inline.
3031 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
3033         * configure.ac: Bump AC_PREREQ to 2.59.
3035 2004-03-10  Paolo Carlini  <pcarlini@suse.de>
3037         * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
3039 2004-03-10  Paul Kienzle  <pkienzle@nist.gov>
3040             Paolo Carlini  <pcarlini@suse.de>
3042         PR libstdc++/13450
3043         * include/std/std_complex.h (pow(const complex&, const _Tp&),
3044         pow(const _Tp&, const complex&)): Use cmath pow only when safe.
3045         * testsuite/26_numerics/complex/13450.cc: New.
3047         * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
3048         * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
3050 2004-03-10  Jerry Quinn  <jlquinn@optonline.net>
3052         PR libstdc++/3247
3053         * include/bits/gslice_array.h (gslice_array()): Make public.
3054         (operator=(gslice_array)): Make public.  Implement.
3055         * include/bits/indirect_array.h (indirect_array()): Make public.
3056         * include/bits/mask_array.h (mask_array()): Make public.
3057         (operator=(mask_array)): Make public.  Implement.
3058         * include/bits/valarray_array.tcc (__valarray_copy):
3059         Comment.  Add versions for gslice_array and mask_array.
3060         * testsuite/26_numerics/valarray_subset_assignment.cc:  New test.
3062 2004-03-09  Benjamin Kosnik  <bkoz@redhat.com>
3064         * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
3065         non-weak systems.
3066         * testsuite/23_containers/vector/modifiers/swap.cc: Same.
3067         * testsuite/23_containers/set/modifiers/swap.cc: Same.
3068         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
3069         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
3070         * testsuite/23_containers/map/modifiers/swap.cc: Same.
3071         * testsuite/23_containers/list/modifiers/swap.cc: Same.
3073         * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
3075 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
3077         PR c++/13658
3078         * testsuite/23_containers/deque/modifiers/swap.cc: New.
3079         * testsuite/23_containers/list/modifiers/swap.cc: New.
3080         * testsuite/23_containers/map/modifiers/swap.cc: New.
3081         * testsuite/23_containers/multimap/modifiers/swap.cc: New.
3082         * testsuite/23_containers/multiset/modifiers/swap.cc: New.
3083         * testsuite/23_containers/set/modifiers/swap.cc: New.
3084         * testsuite/23_containers/vector/modifiers/swap.cc: New.
3086 2004-03-08  Petur Runolfsson  <peturr02@ru.is>
3088         PR libstdc++/12658
3089         * testsuite/22_locale/locale/cons/12658_thread.cc: New.
3091 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
3093         * docs/html/ext/howto.html: Add entry for DR 103 [WP].
3094         * include/bits/stl_multiset.h: Add comment about DR 103.
3095         * include/bits/stl_set.h: Likewise.
3097 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
3099         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3100         The value _space_ indicates that at least one space is required
3101         at that position.
3102         * testsuite/22_locale/money_get/get/char/17.cc: New.
3103         * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
3105         * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
3106         * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
3108         * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
3109         Remove redundant conditional on __str.size().
3111 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
3113         * include/bits/allocator.h: Switch defaults to mt_alloc.
3115 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
3117         * include/ext/mt_allocator.h (_S_initialize): If
3118         !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
3120 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
3122         PR libstdc++/12658
3123         * src/locale_init.cc (locale::locale): Lock critical regions with
3124         external mutexes.
3125         (locale::global): Same.
3126         * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
3127         Add in once bits for cases without __GTHREAD_MUTEX_INIT.
3128         (__glibcxx_mutex_lock): Same.
3130         * config/cpu/generic/atomicity.h: Remove
3131         _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
3132         * src/misc-inst.cc: Move all locking bits out of this file.
3134         * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
3135         * src/misc-inst.cc: Same.
3136         * config/cpu/hppa/atomicity.h: Same.
3138         * config/linker-map.gnu: Remove types in the signature of atomic
3139         exports, as they may vary.
3141 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
3143         * include/bits/locale_facets.tcc: Tweak the comment preceding
3144         has_facet: doesn't throw.
3146 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
3148         * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
3149         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3150         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3151         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3152         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3153         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3154         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3155         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3157 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
3159         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3160         num_get<>::_M_extract_int, num_get<>::do_get(bool&),
3161         __pad<>::_S_pad): Prefer plain operator== to traits::eq().
3162         * testsuite/testsuite_character.h (struct __gnu_test::character):
3163         Provide operator==.
3164         * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
3165         Likewise.
3167 2004-03-05  Paolo Carlini  <pcarlini@suse.de>
3169         * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
3171 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
3173         * testsuite/23_containers/multiset/insert/1.cc: Test result string.
3175         * testsuite/23_containers/bitset/invalidation/1.cc: Main always
3176         returns 0.
3177         * testsuite/23_containers/deque/invalidation/4.cc: Same.
3178         * testsuite/23_containers/list/invalidation/1.cc: Same.
3179         * testsuite/23_containers/list/invalidation/2.cc: Same.
3180         * testsuite/23_containers/list/invalidation/3.cc: Same.
3181         * testsuite/23_containers/list/invalidation/4.cc: Same.
3182         * testsuite/23_containers/map/invalidation/2.cc: Same.
3183         * testsuite/23_containers/multimap/invalidation/1.cc: Same.
3184         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3185         * testsuite/23_containers/multiset/invalidation/1.cc: Same.
3186         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3187         * testsuite/23_containers/set/invalidation/1.cc: Same.
3188         * testsuite/23_containers/set/invalidation/2.cc: Same.
3189         * testsuite/23_containers/vector/invalidation/1.cc: Same.
3190         * testsuite/23_containers/vector/invalidation/2.cc: Same.
3191         * testsuite/23_containers/vector/invalidation/3.cc: Same.
3192         * testsuite/23_containers/vector/invalidation/4.cc: Same.
3194 2004-03-04  Paolo Carlini  <pcarlini@suse.de>
3196         * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
3197         CXXFLAGS_save.
3198         * testsuite/lib/libstdc++.exp: Don't add it conditionally to
3199         DEFAULT_CXXFLAGS.
3200         * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
3201         from the dg-options.
3202         * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
3203         * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
3204         * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
3205         * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
3206         * testsuite/23_containers/vector/resize/1.cc: Likewise.
3207         * testsuite/26_numerics/complex_value.cc: Likewise.
3208         * testsuite/27_io/ios_base/storage/1.cc: Likewise.
3209         * testsuite/27_io/ios_base/storage/2.cc: Likewise.
3210         * testsuite/27_io/ios_base/storage/3.cc: Likewise.
3211         * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
3212         * testsuite/27_io/objects/char/5.cc: Likewise.
3213         * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
3214         * testsuite/backward/11460.cc: Likewise.
3215         * testsuite/thread/pthread7-rope.cc: Likewise.
3217         * testsuite/21_strings/basic_string/compare/char/1.cc: Add
3218         missing test variable.
3219         * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
3220         missing test variable.
3222 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
3224         * testsuite/20_util/allocator/1.cc: Provide explicit
3225         instantiations for non-weak systems.
3226         * testsuite/20_util/binders.cc: Same.
3227         * testsuite/20_util/allocator/8230.cc: Same.
3228         * testsuite/20_util/allocator/10378.cc: Same.
3229         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
3230         * testsuite/22_locale/ctype/is/char/2.cc: Same.
3231         * testsuite/thread/pthread7-rope.cc: Same.
3232         * testsuite/thread/pthread6.cc: Same.
3233         * testsuite/thread/pthread5.cc: Same.
3234         * testsuite/thread/pthread4.cc: Same.
3235         * testsuite/thread/pthread1.cc: Same.
3236         * testsuite/ext/rope.cc: Same.
3237         * testsuite/ext/hash_set.cc: Same.
3238         * testsuite/ext/hash_map.cc: Same.
3239         * testsuite/ext/concept_checks.cc: Same.
3240         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
3241         * testsuite/25_algorithms/unique/2.cc: Same.
3242         * testsuite/25_algorithms/unique/1.cc: Same.
3243         * testsuite/25_algorithms/rotate.cc: Same.
3244         * testsuite/25_algorithms/min_max.cc: Same.
3245         * testsuite/25_algorithms/equal.cc: Same.
3246         * testsuite/24_iterators/rel_ops.cc: Same.
3247         * testsuite/24_iterators/iterator.cc: Same.
3248         * testsuite/24_iterators/insert_iterator.cc: Same.
3249         * testsuite/24_iterators/front_insert_iterator.cc: Same.
3250         * testsuite/24_iterators/back_insert_iterator.cc: Same.
3251         * testsuite/23_containers/vector/resize/1.cc: Same.
3252         * testsuite/23_containers/vector/modifiers/2.cc: Same.
3253         * testsuite/23_containers/vector/modifiers/1.cc: Same.
3254         * testsuite/23_containers/vector/invalidation/4.cc: Same.
3255         * testsuite/23_containers/vector/invalidation/3.cc: Same.
3256         * testsuite/23_containers/vector/invalidation/2.cc: Same.
3257         * testsuite/23_containers/vector/invalidation/1.cc: Same.
3258         * testsuite/23_containers/vector/element_access/1.cc: Same.
3259         * testsuite/23_containers/vector/cons/6513.cc: Same.
3260         * testsuite/23_containers/vector/cons/3.cc: Same.
3261         * testsuite/23_containers/vector/cons/2.cc: Same.
3262         * testsuite/23_containers/vector/cons/1.cc: Same.
3263         * testsuite/23_containers/vector/capacity/8230.cc: Same.
3264         * testsuite/23_containers/vector/capacity/1.cc: Same.
3265         * testsuite/23_containers/vector/bool/6886.cc: Same.
3266         * testsuite/23_containers/stack/members/7158.cc: Same.
3267         * testsuite/23_containers/set/invalidation/2.cc: Same.
3268         * testsuite/23_containers/set/invalidation/1.cc: Same.
3269         * testsuite/23_containers/queue/members/7157.cc: Same.
3270         * testsuite/23_containers/priority_queue/members/7161.cc: Same.
3271         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3272         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3273         * testsuite/23_containers/multiset/insert/1.cc: Same.
3274         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3275         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3276         * testsuite/23_containers/map/operators/1.cc: Same.
3277         * testsuite/23_containers/map/invalidation/2.cc: Same.
3278         * testsuite/23_containers/map/invalidation/1.cc: Same.
3279         * testsuite/23_containers/map/insert/1.cc: Same.
3280         * testsuite/23_containers/list/operators/4.cc: Same.
3281         * testsuite/23_containers/list/operators/3.cc: Same.
3282         * testsuite/23_containers/list/operators/2.cc: Same.
3283         * testsuite/23_containers/list/operators/1.cc: Same.
3284         * testsuite/23_containers/list/modifiers/3.cc: Same.
3285         * testsuite/23_containers/list/modifiers/2.cc: Same.
3286         * testsuite/23_containers/list/modifiers/1.cc: Same.
3287         * testsuite/23_containers/list/invalidation/4.cc: Same.
3288         * testsuite/23_containers/list/invalidation/3.cc: Same.
3289         * testsuite/23_containers/list/invalidation/2.cc: Same.
3290         * testsuite/23_containers/list/invalidation/1.cc: Same.
3291         * testsuite/23_containers/list/cons/9.cc: Same.
3292         * testsuite/23_containers/list/cons/8.cc: Same.
3293         * testsuite/23_containers/list/cons/7.cc: Same.
3294         * testsuite/23_containers/list/cons/6.cc: Same.
3295         * testsuite/23_containers/list/cons/5.cc: Same.
3296         * testsuite/23_containers/list/cons/4.cc: Same.
3297         * testsuite/23_containers/list/cons/3.cc: Same.
3298         * testsuite/23_containers/list/cons/2.cc: Same.
3299         * testsuite/23_containers/list/cons/1.cc: Same.
3300         * testsuite/23_containers/list/capacity/1.cc: Same.
3301         * testsuite/23_containers/deque/operators/1.cc: Same.
3302         * testsuite/23_containers/deque/invalidation/4.cc: Same.
3303         * testsuite/23_containers/deque/invalidation/3.cc: Same.
3304         * testsuite/23_containers/deque/invalidation/2.cc: Same.
3305         * testsuite/23_containers/deque/invalidation/1.cc: Same.
3306         * testsuite/23_containers/deque/cons/2.cc: Same.
3307         * testsuite/23_containers/deque/cons/1.cc: Same.
3309         * src/allocator.cc: Add char, wchar_t instantiations
3310         to match extern template declarations in memory.h.
3312 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
3314         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3315         Fix warning regression.
3317 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
3319         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3320         Deal properly with empty __digits and negative frac_digits,
3321         clean-up a bit.
3323 2004-03-03  Jonathan Wakely  <redi@gcc.gnu.org>
3325         * docs/html/documentation.html: Regenerate.
3327 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
3329         PR libstdc++/14320
3330         * include/bits/postypes.h (class streamoff): Remove, now
3331         streamoff is just typedef a 64 bit signed integer type.
3332         (class fpos): Tweak consistently.
3333         * testsuite/27_io/fpos/14320-1.cc: New.
3334         * testsuite/27_io/fpos/14320-2.cc: New.
3335         * testsuite/27_io/fpos/14320-3.cc: New.
3336         * testsuite/27_io/fpos/14320-4.cc: New.
3337         * testsuite/27_io/fpos/14320-5.cc: New.
3338         * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
3340 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
3342         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3343         Reorganize a bit the main parsing loop, thus early detecting
3344         an empty value component.
3345         * testsuite/22_locale/money_get/get/char/16.cc: New.
3346         * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
3348 2004-03-02  Benjamin Kosnik  <bkoz@redhat.com>
3350         Support automake 1.8.2
3351         * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
3352         * po/Makefile.am (EXTRA_DIST): New.
3353         * po/Makefile.in: Regenerate.
3354         * Makefile.in: Same.
3355         * include/Makefile.in: Same.
3356         * libmath/Makefile.in: Same.
3357         * libsupc++/Makefile.in: Same.
3358         * src/Makefile.in: Same.
3359         * testsuite/Makefile.in: Same.
3361         * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
3362         __GXX_WEAK__ instead of SUPPORTS_WEAK.
3363         (${host_builddir}/gthr-default.h): Same.
3364         (${host_builddir}/gthr.h): Same.
3365         * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
3366         _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
3367         -fno-weak.
3368         * aclocal.m4: Regenerate.
3369         * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
3370         * config.h.in: Regenerate.
3371         * configure: Same.
3373 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
3375         Support autoconf 2.59
3376         * acinclude.m4: Quote correctly.
3377         * aclocal.m4: Regenerate.
3378         * linkage.m4: Same.
3380 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
3382         * docs/html/test.html: Add multilib RUNTESTFLAGS example.
3384         * docs/html/18_support/howto.html: Add bit about writing to
3385         stderr, mostly by Zack.
3387 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
3389         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3390         money_get<>::do_get(string_type&)): ... and two more.
3392 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
3394         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3395         Fix thinkos in the switch from string_type& to string& as last
3396         argument.
3398 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
3400         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3401         Also when parsing exponent sign, first look for thousands_sep
3402         and decimal_point; tweak a bit.
3403         * testsuite/22_locale/num_get/get/char/15.cc: New.
3404         * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
3406         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3407         num_get<>::_M_extract_int): Reorder some conditionals.
3409 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
3411         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3412         Consistently with numpunct, enforce the requirements in
3413         22.2.6.3, p3 for the thousands separators; tweak a bit.
3414         * testsuite/22_locale/money_get/get/char/15.cc: New.
3415         * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
3417 2004-03-01  David Billinghurst <David.Billinghurst@riotinto.com>
3419         * testsuite/lib/libstdc++.exp (v3-list-tests): Use
3420         testsuite_files from correct multilib blddir when running
3421         testsuite.
3423 2004-02-29  Phil Edwards  <phil@codesourcery.com>
3425         * testsuite/Makefile.am (check-abi, check-abi-verbose):  Copy
3426         the summary file to the logfile.
3427         * testsuite/Makefile.in:  Regenerate.
3429 2004-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3431         * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
3432         volatile.
3433         * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
3434         __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
3436 2004-02-28  Paolo Carlini  <pcarlini@suse.de>
3438         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3439         According to 22.2.3.1, p2, 'units' may be followed by 'e' with
3440         no 'decimal-point' in the middle: in this case too we must fix
3441         up __found_grouping; slightly tweak.
3442         * testsuite/22_locale/num_get/get/char/14.cc: New.
3443         * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
3445 2004-02-27  Eric Christopher  <echristo@redhat.com>
3446             Phil Edwards  <phil@codesourcery.com>
3448         * testsuite/22_locale/collate/compare/wchar_t/2.cc,
3449         testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
3450         testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
3451         testsuite/22_locale/collate/hash/wchar_t/2.cc,
3452         testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
3453         testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
3454         testsuite/22_locale/collate/transform/wchar_t/2.cc,
3455         testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
3456         testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3457         Use dg-require-iconv.
3458         * testsuite/lib/libstdc++.exp:  Load target-supports.exp.
3460 2004-02-27  Phil Edwards  <phil@codesourcery.com>
3461             Eric Christopher  <echristo@redhat.com>
3463         * testsuite/config/default.exp:  Update with comments.
3464         (${tool}_target_compile):  New wrapper routine.
3465         * testsuite/lib/dg-options.exp:  New file, with dg-require-iconv.
3466         * testsuite/lib/libstdc++.exp:  Update with comments and cosmetic
3467         fixes.
3468         (load_gcc_lib, v3track):  New routines.
3469         (v3-init):  Rename to libstdc++_init.
3470         * testsuite/libstdc++-dg/normal.exp:  No longer call v3-init.
3471         Move DEFAULT_CXXFLAGS handling into libstdc++_init.
3473 2004-02-27  Benjamin Kosnik  <bkoz@redhat.com>
3475         * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
3477         * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
3479         * config/os/irix/irix5.2/atomicity.h: Merge..
3480         * config/os/irix/irix6.5/atomicity.h: Merge..
3481         * config/os/irix/atomicity.h: ...into this.
3482         * config/os/irix/atomic_word.h: New.
3483         * configure.host: Set atomic_word_dir for irix.
3485         * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
3486         * i386/atomicity.h: Same.
3487         * m68k/atomicity.h: Same.
3488         * sparc/atomicity.h: Same.
3490 2004-02-27  David Edelsohn  <edelsohn@gnu.org>
3492         * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
3493         static, and inline keywords.
3495 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
3497         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3498         num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
3499         call reserve on the __tmp_gruping string.
3500         (num_get<>::_M_extract_float): Don't append unnecessarily a
3501         char() to the returned string.
3502         * include/bits/locale_facets.tcc: Trivial reformattings.
3504 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
3506         * include/bits/locale_facets.h (money_get<>::_M_extract):
3507         Change signature: now takes a plain string&.
3508         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3509         Update consistently the definition; use the moneypunct cache
3510         to parse the value; use swap to change __units.
3511         (money_get<>::do_get(long double&)): Update call of _M_extract,
3512         avoid ctype::narrow, not correct wrt the standard.
3513         (money_get<>::do_get(string_type&)): Likewise, update call
3514         of _M_extract, use ctype::widen.
3515         * src/locale-inst.cc: Tweak instantiations of _M_extract.
3517 2004-02-26  Ian Lance Taylor  <ian@wasabisystems.com>
3519         * testsuite/demangle/abi_examples/01.cc: Expect error -2.
3520         * testsuite/demangle/abi_examples/02.cc: Likewise.
3521         * testsuite/demangle/regression/cw-11.cc: Likewise.
3522         * testsuite/demangle/regression/cw-16.cc: Change two expected
3523         results to match libiberty demangler output.
3525 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
3527         PR libstdc++/10246
3528         * libsupc++/Makefile.am: Use libiberty demangler.
3529         (c_sources): Add cp-demangle.c.
3530         * libsupc++/Makefile.in: Regenerate.
3531         * src/Makefile.am (sources): Remove demangle.cc.
3532         * src/Makefile.in: Regenerate.
3533         * include/Makefile.am (bits_headers): Move demangle.h.
3534         (ext_headers): ...here.
3535         * include/Makefile.in: Regenerate.
3536         * include/bits/demangle.h: Move...
3537         * include/ext/demangle.h: ...here.
3538         * src/demangle.cc: Remove.
3540 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
3542         * include/bits/demangle.h: Add type template parameter to all
3543         templates with just an Allocator template parameter.
3545 2004-02-25  Benjamin Kosnik  <bkoz@redhat.com>
3547         * include/bits/atomicity.h: New, forward declarations for __atomic_add
3548         and __exchange_and_add.
3549         * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
3550         * config/cpu/cris/atomic_word.h: Same.
3551         * config/cpu/sparc/atomic_word.h: Same.
3552         * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
3553         Qualifiy with __gnu_cxx.
3554         (_Callback_list::_M_add_reference): Same.
3555         * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
3556         (locale::facet::_M_remove_reference): Same.
3557         (locale::_Impl::_M_add_reference): Add.
3558         (locale::_Impl::_M_remove_reference): Same.
3559         * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
3560         (basic_string::_Rep::_M_dispose): Same.
3561         * src/ios.cc (ios_base::xalloc): Same.
3562         * src/ios_init.cc (ios_base::Init::Init): Same.
3563         (ios_base::Init::~Init): Same.
3564         * src/locale.cc (locale::id::_M_id): Same.
3565         * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
3566         static, and inline keywords.
3567         * config/cpu/alpha/atomicity.h: Same.
3568         * config/cpu/cris/atomicity.h: Same.
3569         * config/cpu/generic/atomicity.h: Same.
3570         * config/cpu/hppa/atomicity.h: Same.
3571         * config/cpu/i386/atomicity.h: Same.
3572         * config/cpu/ia64/atomicity.h: Same.
3573         * config/cpu/m68k/atomicity.h: Same.
3574         * config/cpu/mips/atomicity.h: Same.
3575         * config/cpu/powerpc/atomicity.h: Same.
3576         * config/cpu/s390/atomicity.h: Same.
3577         * config/cpu/sparc/atomicity.h: Same.
3579         * src/Makefile.am (host_sources): Add atomicity.cc.
3580         (atomicity.cc): New rule.
3581         * src/Makefile.in: Regenerate.
3582         * include/Makefile.am (host_headers): Remove host atomicity.h.
3583         (host_headers): Add atomic_word.h.
3584         (bits_headers): Add bits atomicity.h.
3585         Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3586         * include/Makefile.in: Regenerate.
3587         * configure.host (atomic_word_dir): Add.
3588         * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
3589         ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3590         * configure: Regenerate.
3591         * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
3593         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
3594         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3596 2004-02-25  Jonathan Wakely  <redi@gcc.gnu.org>
3598         * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
3599         docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
3600         Fix markup, more <link> tags.
3602 2004-02-25  Carlo Wood  <carlo@alinoe.com>
3604         * bits/demangle.h
3605         namespace __gnu_cxx::demangler
3606         (session<Allocator>::qualifier_list_Allocator): Add
3607         (session<Allocator>::M_qualifier_list_alloc): Add
3608         (session<Allocator>::decode_type_with_postfix):
3609         Use M_qualifier_list_alloc instead of calling operator new/delete.
3611 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
3613         PR libstdc++/14252
3614         * include/bits/postypes.h (class streamoff): Add operator++(),
3615         operator++(int), operator--() and operator--(int).
3616         * testsuite/27_io/fpos/14252.cc: New.
3618 2004-02-24  Richard Sandiford  <rsandifo@redhat.com>
3620         * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
3621         error in handling of hex constants.
3623 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
3625         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3626         Prefer basic_string::append to operator+= and a temporary.
3628 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
3630         * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
3631         Only use fputs, not write.
3633 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
3635         * include/ext/malloc_allocator.h: Add operators ==, !=.
3636         * include/ext/new_allocator.h: Add operators ==, !=.
3637         * include/ext/mt_allocator.h (__mt_alloc::tune): New.
3638         (__mt_alloc::_S_get_options): New.
3639         (__mt_alloc::_S_set_options): New.
3640         (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
3641         (__mt_alloc::_S_no_of_bins): To _S_bin_size.
3642         Move functions out of line, simplify, format.
3643         * src/allocator.cc: Simplify explicit instantiations.
3644         * include/bits/allocator.h: Tweak.
3646 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
3648         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3649         Restructure formatting of value component, first dealing with
3650         the non-decimal digits; use reserve.
3652 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
3654         * include/bits/locale_facets.h (class money_get): Inherit
3655         from money_base too; tweak declaration of _M_extract, now
3656         parameterized on _Intl too.
3657         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3658         Update definition to use the cache; call reserve on __res to
3659         avoid multiple reallocations; fix parsing of sign component
3660         according to 22.2.6.1.2, p3.
3661         (money_get<>::do_get(long double&),
3662         money_get<>::do_get(string_type&)): Update calls of _M_extract.
3663         * src/locale-inst.cc:  Add instantiations of
3664         money_get::_M_extract<false> and money_get::_M_extract<true>.
3665         * testsuite/22_locale/money_get/get/char/14.cc: New.
3666         * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
3668 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
3670         * libsupc++/vterminate.cc
3671         (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
3672         calls to terminate.
3673         * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
3675         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3676         not set RLIMIT_AS on HP-UX.
3678 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
3680         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3681         not set RLIMIT_AS on HP-UX.
3683 2004-02-21  Paolo Carlini  <pcarlini@suse.de>
3685         * include/bits/locale_facets.h (class money_base): Add { _S_minus,
3686         _S_zero, _S_end } enum, _S_atoms.
3687         (struct __moneypunct_cache<>): Parameterize on _Intl too; add
3688         _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
3689         _M_negative_sign_size, _M_atoms; tweak constructor consistently.
3690         (__moneypunct_cache<>::~__moneypunct_cache): Update.
3691         (__moneypunct_cache<>::_M_cache): Fill the cache.
3692         (class moneypunct): Tweak __cache_type typedef.
3693         (class money_put): Inherit from money_base too; tweak declaration
3694         of _M_insert, now parameterized on _Intl.
3695         * include/bits/locale_facets.tcc
3696         (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
3697         (money_put<>::_M_insert): Update definition to use the cache;
3698         call reserve on __res to avoid multiple reallocations.
3699         (money_put<>::do_put(long double),
3700         money_put<>::do_put(const string_type&): Update calls of _M_insert.
3701         * config/locale/generic/monetary_members.cc
3702         (moneypunct<char, true>::_M_initialize_moneypunct,
3703         moneypunct<char, false>::_M_initialize_moneypunct,
3704         moneypunct<wchar_t, true>::_M_initialize_moneypunct,
3705         moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
3706         * config/locale/gnu/monetary_members.cc: Likewise.
3707         * config/locale/gnu/monetary_members.cc
3708         (moneypunct<wchar_t, true>::~moneypunct(),
3709         moneypunct<wchar_t, false>::~moneypunct()): Likewise.
3710         * src/globals_locale.cc: Tweak fake_money_cache_c.
3711         * src/locale-inst.cc: Add instantiations for
3712         money_put::_M_insert<false> and money_put::_M_insert<true> and
3713         __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
3714         * src/locale_facets.cc: Define money_base::_S_atoms.
3715         * src/locale_init.cc: Update placement new of
3716         __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
3717         __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
3719         * config/locale/generic/numeric_members.cc: Clean up.
3720         * config/locale/gnu/numeric_members.cc: Likewise.
3721         * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
3722         * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
3723         * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
3724         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
3725         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
3726         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
3728 2004-02-20  Mark Mitchell  <mark@codesourcery.com>
3730         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
3731         FIFO for writing with ios_base::in|ios_base::out.
3732         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3733         * testsuite/27_io/objects/char/7.cc: Likewise.
3734         * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
3735         with "r+".
3737 2004-02-19  David Edelsohn  <edelsohn@gnu.org>
3739         * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
3740         from iso-8859-1 to ISO8859-1.
3741         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
3742         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
3743         * 22_locale/collate/hash/wchar_t/2.cc: Same.
3744         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
3745         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
3746         * 22_locale/collate/transform/wchar_t/2.cc: Same.
3747         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
3748         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
3750 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
3752         * include/bits/locale_facets.h (money_get<>::_M_extract):
3753         New, helper for do_get.
3754         (money_put<>::_M_insert): Likewise, for do_put.
3755         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3756         money_put<>::_M_insert): Define.
3757         (money_get<>::do_get(long double&), money_get<>::do_get(
3758         string_type&), money_put::do_put(long double),
3759         money_put::do_put(const string_type&)): Use the helpers.
3761 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
3763         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
3764         Rewrite, avoiding recursion.
3765         (__gnu_internal::xwrite): Minor tweaks.
3767 2004-02-17  Stefan Olsson  <stefan@xapa.se>
3769         * include/ext/mt_allocator.h: Removed the last
3770         pointer. Deallocated blocks are now added to the front of
3771         freelists as proposed by Felix Yen.  This gives roughly 10%
3772         performance boost and saves some memory.
3773         * docs/html/ext/mt_allocator.html: Change due to that deallocated
3774         blocks now are added to the front of freelists. The reason to this
3775         approach is also explained.
3777 2004-02-17  Paolo Carlini  <pcarlini@suse.de>
3779         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3780         num_get<>::_M_extract_int, money_get<>::do_get): Simplify
3781         grouping fidelity conditional.
3783 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
3785         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
3786         Qualify exception with std::.
3787         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
3788         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
3789         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3790         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3791         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3793 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
3795         * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
3796         for now that the catch block is not reached.
3797         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
3799 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
3801         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
3802         Fix parsing of the remaining sign characters.
3803         * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
3804         the input is scanned 'til eof.
3805         * 22_locale/money_get/get/char/4.cc: Likewise.
3806         * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
3807         * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
3808         * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
3809         not do_pos_format: the former is the only one that matters during
3810         input.
3811         * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
3813         * 22_locale/money_get/get/char/6.cc: Minor tweak.
3814         * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
3816 2004-02-15  David Asher  <david.asher@cavium.com>
3818         PR libstdc++/11352
3819         * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
3820         access __olds beyond __oldlen.
3822 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
3824         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
3825         sure the exception is actually thrown.
3826         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3827         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3828         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3830 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
3832         PR libstdc++/13858
3833         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
3834         In case of conversion errors, throw ios_failure; simplify.
3835         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
3836         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
3837         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
3838         previously we didn't throw in case of conversion errors, instead
3839         just returned eof().
3840         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3841         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3842         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3844         * include/bits/fstream.tcc (basic_filebuf<>::overflow):
3845         Trivial simplification of a conditional.
3847 2004-02-12  Paolo Carlini  <pcarlini@suse.de>
3849         PR libstdc++/13731 (final part: writev)
3850         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
3851         New, a wrapper around writev() handling partial writes.
3852         (__basic_file<char>::xwrite): Move to __gnu_internal and make
3853         static.
3854         (__basic_file<char>::xsputn): Update call.
3855         (__basic_file<char>::xsputn_2): Likewise.
3856         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
3857         Don't declare, now static.
3859 2004-02-11  Stefan Olsson  <stefan@xapa.se>
3861         * docs/html/ext/mt_allocator.html: New.
3863 2004-02-11  Benjamin Kosnik  <bkoz@redhat.com>
3865         * docs/html/20_util/allocator.html: New file, consolidate
3866         allocator information here. Revamp.
3867         * docs/html/documentation.html: Change links.
3868         * docs/html/20_util/howto.html: Same.
3869         * docs/html/ext/howto.html: Same.
3871 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
3873         PR libstdc++/13731 (first part: write)
3874         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
3875         New, declare.
3876         * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
3877         Define it: a wrapper around write() handling partial write.
3878         (__basic_file<char>::xsputn): Use it.
3879         (__basic_file<char>::xsputn_2): Likewise.
3881 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
3882             Petur Runolfsson  <peturr02@ru.is>
3884         PR libstdc++/14078
3885         * include/std/std_istream.h (operator>>(__istream_type& (*)
3886         (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
3887         operator>>(ios_base& (*)(ios_base&))): Declare inline.
3888         * include/std/std_ostream.h (operator<<(__ostream_type& (*)
3889         (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
3890         operator<<(ios_base& (*) (ios_base&))): Likewise.
3891         * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
3893 2004-02-10  Loren J. Rittle  <ljrittle@acm.org>
3895         PR libstdc++/14098
3896         * config/linker-map.gnu: Add typeinfo and typeinfo name for
3897         __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
3899         PR libstdc++/14097
3900         * config/linker-map.gnu: Add typeinfo and typeinfo name for
3901         __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
3903 2004-02-09  Loren J. Rittle  <ljrittle@acm.org>
3905         * include/ext/pool_allocator.h: Include c++config.h.
3907 2004-02-09  Stefan Olsson  <stefan@xapa.se>
3909         * include/ext/mt_allocator.h: thread_id is unused in non threaded
3910         applications and now has a ifdef to remove it completely on
3911         compilers without thread support. Include stdlib.h due to a
3912         compiler warning on getenv().
3914 2004-02-09  Paul Brook  <paul@codesourcery.com>
3916         * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
3918 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
3920         PR libstdc++/14071
3921         * src/locale_init.cc (locale::global(const locale&)): Use
3922         locale::name() in order to decide whether calling setlocale.
3923         * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
3925         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
3926         Avoid computing &= unnecessarily.
3928 2004-02-09  James E Wilson  <wilson@specifixinc.com>
3930         PR libstdc++/5625
3931         * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
3932         __builtin_extend_pointer.
3934 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
3936         PR libstdc++/14072
3937         * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
3938         Don't leave dangling pointers.
3939         * testsuite/27_io/basic_ios/imbue/14072.cc: New.
3940         * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
3941         facet is needed in the final test.
3943 2004-02-09  Bernardo Innocenti  <bernie@develer.com>
3945         * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
3946         * configure: Regenerate.
3948 2004-02-08  Richard Henderson  <rth@redhat.com>
3950         PR libstdc++/14026
3951         * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
3952         uncaughtExceptions during nested catch rethrow.
3953         * testsuite/18_support/14026.cc: New.
3955 2004-02-08  Paolo Carlini  <pcarlini@suse.de>
3957         * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
3958         When working in place remember to set the state to sharable
3959         (otherwise, _M_mutate does it).
3961 2004-02-08  Bernardo Innocenti  <bernie@develer.com>
3963         * include/bits/allocator.h, include/bits/basic_ios.h,
3964         include/bits/basic_ios.tcc, include/bits/basic_string.h,
3965         include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
3966         include/bits/char_traits.h, include/bits/codecvt.h,
3967         include/bits/concurrence.h, include/bits/cpp_type_traits.h,
3968         include/bits/demangle.h, include/bits/deque.tcc,
3969         include/bits/fstream.tcc, include/bits/functexcept.h,
3970         include/bits/gslice.h, include/bits/gslice_array.h,
3971         include/bits/indirect_array.h, include/bits/ios_base.h,
3972         include/bits/istream.tcc, include/bits/list.tcc,
3973         include/bits/locale_classes.h, include/bits/locale_facets.h,
3974         include/bits/locale_facets.tcc, include/bits/localefwd.h,
3975         include/bits/mask_array.h, include/bits/ostream.tcc,
3976         include/bits/postypes.h, include/bits/slice_array.h,
3977         include/bits/sstream.tcc, include/bits/stl_algo.h,
3978         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
3979         include/bits/stl_construct.h, include/bits/stl_deque.h,
3980         include/bits/stl_function.h, include/bits/stl_heap.h,
3981         include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
3982         include/bits/stl_list.h, include/bits/stl_map.h,
3983         include/bits/stl_multimap.h, include/bits/stl_multiset.h,
3984         include/bits/stl_numeric.h, include/bits/stl_pair.h,
3985         include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
3986         include/bits/stl_relops.h, include/bits/stl_set.h,
3987         include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
3988         include/bits/stl_threads.h, include/bits/stl_tree.h,
3989         include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
3990         include/bits/stream_iterator.h, include/bits/streambuf.tcc,
3991         include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
3992         include/bits/type_traits.h, include/bits/valarray_after.h,
3993         include/bits/valarray_array.h, include/bits/valarray_array.tcc,
3994         include/bits/valarray_before.h, include/bits/vector.tcc: Remove
3995         trailing whitespace.
3997 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
3999         * include/bits/basic_string.h: Fix comment.
4001 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
4003         * include/bits/stl_construct.h: Wrap overlong lines, reformat
4004         according to the coding standards.
4005         * include/bits/stl_pair.h: Likewise.
4006         * include/bits/stl_raw_storage_iter.h: Likewise.
4007         * include/bits/stl_stack.h: Likewise.
4008         * include/bits/stl_uninitialized.h: Likewise.
4009         * include/bits/stream_iterator.h: Likewise.
4010         * include/bits/streambuf_iterator.h: Likewise.
4011         * include/bits/type_traits.h: Likewise.
4013 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
4015         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4016         Adjust timings.
4018 2004-02-05  Loren J. Rittle  <ljrittle@acm.org>
4020         * scripts/check_performance: Support PCH.
4022         * scripts/check_performance (CXX): Add -DNOTHREAD.
4023         * testsuite/performance/20_util/allocator/insert.cc: Integrate
4024         threaded tests from insert_insert.cc.  Tweak iterations,
4025         remove special cases.
4026         * testsuite/performance/20_util/allocator/insert_insert.cc:
4027         Make all tests single-threaded. Tweak iterations.
4028         * testsuite/performance/20_util/allocator/map_thread.cc:
4029         Tweak iterations.
4030         * testsuite/performance/20_util/allocator/producer_consumer.cc:
4031         Likewise.
4033 2004-02-05  Geoffrey Keating  <geoffk@apple.com>
4035         PR 12179
4036         * .cvsignore: New.
4037         * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
4038         'gcc-lib'.  Add comment about poorly-named variables.
4039         * aclocal.m4: Regenerate.
4040         * configure: Regenerate.
4042 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
4044         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4045         Thousands-sep are always optional; thousands-sep are not allowed
4046         after the decimal_point.
4047         * testsuite/22_locale/money_get/get/char/12.cc: New.
4048         * testsuite/22_locale/money_get/get/char/13.cc: New.
4049         * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
4050         * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
4052         * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
4053         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
4054         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
4055         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
4056         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
4057         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
4058         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
4059         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
4061         * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
4062         the standard.
4063         * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
4065 2004-02-05  Richard Sandiford  <rsandifo@redhat.com>
4067         * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
4068         Define.
4069         * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
4070         it to decide whether FIONREAD should take an off_t or int argument.
4072 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
4074         * include/bits/stl_function.h: Minor formatting changes.
4076 2004-02-04  Zack Weinberg  <zack@codesourcery.com>
4078         Revert previous change to config/abi/*/baseline_symbols.txt.
4080 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
4081             Zack Weinberg  <zack@codesourcery.com>
4083         * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
4084         New function.
4085         (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
4086         (__basic_file<char>::_M_open_mode): Delete.
4087         * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
4089         * testsuite/27_io/basic_filebuf/close/char/9964.cc
4090         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4091         Correct flags to filebuf::open calls.
4093         * config/abi/alpha-freebsd5/baseline_symbols.txt
4094         * config/abi/alpha-linux-gnu/baseline_symbols.txt
4095         * config/abi/hppa-linux-gnu/baseline_symbols.txt
4096         * config/abi/i386-freebsd4/baseline_symbols.txt
4097         * config/abi/i386-freebsd5/baseline_symbols.txt
4098         * config/abi/i486-linux-gnu/baseline_symbols.txt
4099         * config/abi/ia64-linux-gnu/baseline_symbols.txt
4100         * config/abi/mips-linux-gnu/baseline_symbols.txt
4101         * config/abi/sparc-freebsd5/baseline_symbols.txt
4102         * config/abi/sparc-linux-gnu/baseline_symbols.txt
4103         * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
4104         Remove entry for __basic_file<char>::_M_open_mode.
4106 2004-02-04  Loren J. Rittle  <ljrittle@acm.org>
4108         * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
4110 2004-02-04  Felix Yen  <fwy@alumni.brown.edu>
4112         * testsuite/performance/20_util/producer_consumer.cc: New.
4113         * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
4115 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
4117         * testsuite/performance/20_util/allocator.cc: Move to..
4118         * testsuite/performance/20_util/allocator/insert.cc: ...here.
4119         * testsuite/performance/20_util/allocator_thread.cc: Move to...
4120         * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
4121         * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
4122         * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
4124 2004-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
4126         * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
4127         * docs/html/faq/index.txt: Regenerate.
4129 2004-02-04  Dhruv Matani  <dhruvbird@gmx.net>
4131         * include/ext/debug_allocator.h: _M_extra now stands for the
4132         number of extra objects instead of the number of extra bytes.
4133         (debug_allocator::allocate): Adjust.
4134         (debug_allocator::deallocate): Adjust.
4136         * include/ext/pool_allocator.h: Fix typo.
4138 2004-02-03  Felix Yen  <fwy@alumni.brown.edu>
4139             Benjamin Kosnik  <bkoz@redhat.com>
4141         * testsuite/performance/20_util/allocator.cc: Add map,
4142         deque, set tests.
4143         * testsuite/performance/20_util/allocator_thread.cc: Same.
4145 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
4147         * include/bits/basic_string.h (insert(iterator)): Remove,
4148         non-standard and already scheduled for removal.
4150 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
4152         * include/bits/stl_iterator_base_funcs.h: Minor formatting
4153         and indentation tweaks.
4154         * include/bits/stl_iterator_base_types.h: Likewise.
4155         * include/bits/stl_list.h: Likewise.
4156         * include/bits/stl_map.h: Likewise.
4157         * include/bits/stl_tempbuf.h: Likewise.
4159 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
4161         * include/bits/gslice.h, include/bits/gslice_array.h,
4162         include/bits/indirect_array.h, include/bits/mask_array.h,
4163         include/bits/slice_array.h, include/bits/stl_numeric.h,
4164         include/std/std_valarray.h:  Update copyright years.
4166 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
4168         * include/bits/gslice.h (gslice):  Document.
4169         * include/bits/gslice_array.h (gslice_array):  Document.
4170         * include/bits/indirect_array (indirect_array):  Document.
4171         * include/bits/mask_array (mask_array):  Document.
4172         * include/bits/slice_array.h (slice,slice_array):  Document.
4173         * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
4174         adjacent_difference):  Document
4175         * include/std/std_valarray.h (valarray):  Document.
4177 2004-02-02  Benjamin Kosnik  <bkoz@redhat.com>
4179         * docs/html/19_diagnostics/howto.html: Move verbose terminate
4180         documentation...
4181         * docs/html/18_support/howto.html: Here.
4182         * docs/html/documentation.html: Add reference here.
4184 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
4186         * config/locale/gnu/c++locale_internal.h: Remove prototypes
4187         of no longer used GLIBC thread locale functions.
4189 2004-02-02  Eric Christopher  <echristo@redhat.com>
4190             Zack Weinberg  <zack@codesourcery.com>
4192         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
4193         -finput-charset.
4194         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
4195         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
4196         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
4197         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
4198         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
4199         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
4200         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
4201         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4202         Ditto.
4204 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
4206         * include/bits/stl_function.h: Additional minor tweaks.
4207         * include/bits/stl_multiset.h: Likewise.
4209         * include/bits/stl_queue.h: Minor tweaks.
4211 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
4213         PR libstdc++/13976 (continued)
4214         * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
4215         Make the second parameter unnamed, to void unused parameter
4216         warnings.
4217         * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
4219 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
4221         PR libstdc++/13976
4222         * include/ext/malloc_allocator.h (malloc_allocator::allocate):
4223         Make the second parameter unnamed, to void unused parameter
4224         warnings.
4225         * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
4226         * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
4228 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
4230         * include/bits/stl_algo.h: Additional minor tweaks.
4231         * include/bits/stl_map.h: Likewise.
4232         * include/bits/stl_multimap.h: Likewise.
4233         * include/bits/stl_multiset.h: Likewise.
4234         * include/bits/stl_set.h: Likewise.
4235         * include/bits/stl_tree.h: Likewise.
4237 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
4239         * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
4240         Remove, unused.
4242 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
4244         * include/bits/stl_function.h: Additional minor tweaks.
4246 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
4248         * include/bits/deque.tcc: Wrap overlong lines, constify
4249         a few variables, reformat according to the coding standards.
4250         * include/bits/list.tcc: Likewise.
4251         * include/bits/stl_deque.h: Likewise.
4252         * include/bits/stl_function.h: Likewise.
4253         * include/bits/stl_iterator.h: Likewise.
4254         * include/bits/stl_iterator_base_funcs.h: Likewise.
4255         * include/bits/stl_iterator_base_types.h: Likewise.
4256         * include/bits/stl_list.h: Likewise.
4257         * include/bits/stl_map.h: Likewise.
4258         * include/bits/stl_multimap.h: Likewise.
4259         * include/bits/stl_multiset.h: Likewise.
4260         * include/bits/stl_relops.h: Likewise.
4261         * include/bits/stl_set.h: Likewise.
4263 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
4265         * include/bits/stl_bvector.h: Wrap overlong lines, constify
4266         a few variables, reformat according to the coding standards.
4267         * include/bits/stl_tree.h: Likewise.
4269 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
4271         * include/bits/stl_algo.h: Minor additional reformat, add
4272         copyright year.
4273         * include/bits/stl_algobase.h: Add copyright year.
4275 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
4277         * include/bits/stl_algo.h: Wrap overlong lines, constify
4278         a few variables, reformat according to the coding standards.
4279         * include/bits/stl_algobase.h: Likewise.
4280         * include/bits/stl_heap.h: Likewise.
4282 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
4284         * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
4286         * include/bits/basic_string.h: Fix two comments.
4288 2004-01-31  Per Bothner  <per@bothner.com>
4290         * include/ext/mt_allocator.h
4291         (__mt_alloc::_S_thread_freelist_mutex): Guard with
4292         __GTHREAD_MUTEX_INIT.
4294 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
4296         * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
4298 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
4300         * testsuite/21_strings/basic_string/cons/char/6.cc: New.
4301         * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
4302         * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
4304 2004-01-30  Felix Yen  <fwy@alumni.brown.edu>
4306         * testsuite/performance/20_util/allocator_thread.cc (do_loop):
4307         Don't use clear, but instead assign. Use insert.
4309 2004-01-30  Benjamin Kosnik  <bkoz@redhat.com>
4311         * src/demangle.cc: Add instantiations.
4312         * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
4313         * src/Makefile.in: Regenerate.
4315 2004-01-30  David Edelsohn  <edelsohn@gnu.org>
4317         * src/allocator.cc: Protect _S_get_thread_id() and
4318         _S_thread_key_destr() with #ifdef __GTHREADS.
4320 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
4322         Reshuffle performance testsuite.
4323         * testsuite/performance/allocator.cc, allocator_map_thread.cc,
4324         allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
4325         cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
4326         fstream_seek_write.cc, ifstream_extract_float.cc,
4327         ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
4328         list_create_fill_sort.cc, map_create_fill.cc,
4329         narrow_widen_char.cc, narrow_widen_wchar_t.cc,
4330         ofstream_insert_float.cc, ofstream_insert_int.cc,
4331         string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
4332         wchar_t_out.cc: Split into...
4333         * testsuite/performance/20_util/allocator.cc: New.
4334         * testsuite/performance/20_util/allocator_map_thread.cc: New.
4335         * testsuite/performance/20_util/allocator_thread.cc: New.
4336         * testsuite/performance/21_strings/string_append: New.
4337         * testsuite/performance/22_locale/is_wchar_t.cc: New.
4338         * testsuite/performance/22_locale/narrow_widen_char.cc: New.
4339         * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
4340         * testsuite/performance/22_locale/wchar_t_in.cc: New.
4341         * testsuite/performance/22_locale/wchar_t_length.cc: New.
4342         * testsuite/performance/22_locale/wchar_t_out.cc: New.
4343         * testsuite/performance/23_containers/container_benchmark.cc: New.
4344         * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
4345         * testsuite/performance/23_containers/map_create_fill.cc: New.
4346         * testsuite/performance/26_numerics/complex_norm.cc: New.
4347         * testsuite/performance/27_io/cout_insert_int.cc: New.
4348         * testsuite/performance/27_io/filebuf_copy.cc: New.
4349         * testsuite/performance/27_io/filebuf_sputc.cc: New.
4350         * testsuite/performance/27_io/fstream_seek_write.cc: New.
4351         * testsuite/performance/27_io/ifstream_extract_float.cc: New.
4352         * testsuite/performance/27_io/ifstream_extract_int.cc: New.
4353         * testsuite/performance/27_io/ifstream_getline.cc: New.
4354         * testsuite/performance/27_io/ofstream_insert_float.cc: New.
4355         * testsuite/performance/27_io/ofstream_insert_int.cc: New.
4357 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
4359         * include/bits/basic_string.tcc (_Rep::_S_create):
4360         Never allocate a string bigger than max_size(); always keep
4361         __capacity and __size in sync to avoid memory leaks at
4362         deallocation time.
4364 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
4366         * include/bits/basic_string.tcc (_S_construct(_InIterator,
4367         _InIterator, const _Alloc&, input_iterator_tag)): Simplify
4368         the double loop, streamline.
4370         * include/bits/basic_string.tcc: Very minor tweaks.
4372 2004-01-30  Loren J. Rittle  <ljrittle@acm.org>
4374         * scripts/check_performance: Only compile with $THREAD_FLAG
4375         when test is marked to require it.  Allow multiple
4376         compilations/executions of marked tests.
4377         * testsuite/testsuite_performance.h (report_performance):
4378         Report dynamic thread support status.
4379         (report_header): Likewise.
4380         * testsuite/performance/allocator.cc: Stabilize iteration
4381         count.  Support more allocators.  Mark each allocator test to
4382         run and report independently.
4383         * testsuite/performance/allocator_map_thread.cc: Likewise.
4384         * testsuite/performance/allocator_thread.cc: Likewise.
4386 2004-01-29  Stephen M. Webb  <stephen.webb@bregmasoft.com>
4388         * config/local/generic/c_locale.h: Change ::malloc() to new char[].
4389         * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
4390         * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
4391         std::get_temporary_buffer() instead of duplicating its code.
4392         Update to C++STYLE conventions.
4393         * include/std/std_memory.h (get_temporary_buffer): Use ::operator
4394         new() instead of std::malloc().
4395         (return_temporary_buffer): Use ::operator delete() instead of
4396         std::free().
4398 2004-01-29  Benjamin Kosnik  <bkoz@redhat.com>
4400         * include/bits/allocator.h: Temporary switch to new_allocator as
4401         the default to unjam bootstraps.
4403 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
4405         * include/Makefile.am (bits_headers): Remove allocator_traits.h.
4406         * include/Makefile.in: Regenerate.
4407         * include/bits/allocator_traits.h: Remove.
4408         * include/bits/allocator.h: Remove allocator_traits.h include, and
4409         relevant comments.
4410         (allocator): Empty base class, inherit from the underlying allocator.
4411         * src/allocator-inst.cc: Move __pool_alloc instantiation to...
4412         * src/allocator.cc: ...here. New. For the underlying allocators.
4413         Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
4414         * config/linker-map.gnu: Remove __pool_alloc bits.
4415         * src/Makefile.am (sources): Add allocator.cc.
4416         * src/Makefile.in: Regenerate.
4417         * testsuite/20_util/allocator/1.cc: Split second test into...
4418         * testsuite/20_util/allocator/8230.cc: ...this.
4419         * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
4420         typedef to use std::allocatore. Format.
4421         * include/ext/pool_allocator.h: Remove allocator_traits.h include,
4422         _Alloc_traits.
4423         * include/ext/mt_allocator.h (__gnu_cxx): Qualify
4424         __throw_bad_alloc calls. Don't include <memory>.
4425         * include/ext/malloc_allocator.h: Remove <memory> include.
4426         * include/ext/new_allocator.h (new_allocator): Same.
4427         * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
4428         declaration. Switch __alloc to _Alloc.
4429         * include/ext/hashtable.h: Remove __alloc.
4430         * include/backward/alloc.h: Only inject allocator, not
4431         implementation details.
4433         * include/ext/mt_allocator.h: Replace free with delete.
4435 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
4437         * src/globals_io.cc: Change to __gnu_internal namespace.
4438         * src/globals_locale.cc: Same.
4439         * src/locale_init.cc: Same.
4440         * src/ios_init.cc: Same.
4442 2004-01-28  Stefan Olsson  <stefan@snon.net>
4444         * include/ext/mt_allocator.h: Replaced all malloc() calls with
4445         operator new(). Added support for the env variable
4446         GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
4447         one in allocate() as well). Fix typos.
4449 2004-01-28  Paolo Carlini  <pcarlini@suse.de>
4451         * include/bits/basic_string.h (_S_create(size_t,
4452         const _Alloc&): Change signature to take two size_type
4453         arguments.
4454         * include/bits/basic_string.tcc (_S_construct(_InIterator,
4455         _InIterator, const _Alloc&, input_iterator_tag)): Update
4456         call, tweak a bit.
4457         (_S_construct(_InIterator, _InIterator, const _Alloc&,
4458         forward_iterator_tag)): Likewise.
4459         (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
4460         (_M_mutate(size_type, size_type, size_type)): Don't
4461         implement the exponential growth policy, demand it to
4462         _S_create, update call and simplify.
4463         (_M_clone(const _Alloc&, size_type)): Likewise.
4464         (_S_create(size_type, size_type, const _Alloc&)): Implement
4465         the growth policy, simplify otherwise.
4467         * include/bits/basic_string.h (_Rep::operator[]): Tweak
4468         signature to take a size_type, consistently with the other
4469         members.
4471 2004-01-27  Benjamin Kosnik  <bkoz@redhat.com>
4473         * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
4474         delete declarations, add include and test variable.
4476 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
4478         * include/bits/codecvt.h, include/bits/locale_facets.h,
4479         include/bits/postypes.h, include/bits/stl_bvector.h,
4480         include/bits/stl_multiset.h, include/bits/stl_set.h,
4481         include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
4482         include/std/std_complex.h:  Document.
4484 2004-01-27  Jerry Quinn  <jlquinn@optonline.net>
4486         PR libstdc++/11584
4487         * include/bits/ios_base.h (ios_base::_M_grow_words):  Add
4488         iword/pword selector.
4489         (ios_base::iword, ios_base::pword):  Use it.
4490         * src/ios.cc (ios_base::_M_grow_words):  Clear _M_word_zero
4491         iword or pword member on alloc failure.
4492         * testsuite/27_io/ios_base/storage/11584.cc:  New test.
4494 2004-01-27  Ulrich Weigand  <uweigand@de.ibm.com>
4495             PJ Darcy  <darcypj@us.ibm.com>
4497         * configure.host: Add support for *-tpf.
4498         * crossconfig.m4: Likewise.
4499         * configure: Regenerate.
4500         * config/os/tpf: New directory.
4501         * config/os/tpf/os_defines.h: New file.
4502         * config/os/tpf/ctype_base.h: Likewise.
4503         * config/os/tpf/ctype_inline.h: Likewise.
4504         * config/os/tpf/ctype_noninline.h: Likewise.
4506 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
4508         PR libstdc++/13884
4509         * include/bits/sstream.tcc: Guard use of extern template.
4511 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
4513         * include/bits/basic_string.tcc
4514         (basic_string(const basic_string&, size_type, size_type),
4515         basic_string(const basic_string&, size_type, size_type,
4516         const _Alloc&)): Avoid unnecessarily constructing iterators.
4518 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
4520         * config/locale/generic/c_locale.cc: Fix throw messages
4521         to use the __N marker.
4522         * config/locale/gnu/c_locale.cc: Likewise.
4523         * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
4524         Likewise.
4525         * docs/html/17_intro/C++STYLE: Likewise.
4526         * include/bits/basic_ios.tcc: Likewise.
4527         * include/bits/fstream.tcc: Likewise.
4528         * include/bits/vector.tcc: Likewise.
4529         * include/ext/ropeimpl.h: Likewise.
4530         * include/std/std_bitset.h: Likewise.
4531         * src/ios.cc: Likewise.
4532         * src/locale.cc: Likewise.
4533         * src/localename.cc: Likewise.
4535 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
4537         * include/bits/basic_string.h (_M_replace_aux): Use the
4538         __N marker in throw message.
4539         * include/bits/basic_string.tcc (assign(const _CharT*,
4540         size_type), insert(size_type, const _CharT*, size_type),
4541         replace(size_type, size_type, const _CharT*, size_type),
4542         reserve, _Rep::_S_create, resize, _M_replace_dispatch):
4543         Likewise.
4545         * include/bits/basic_string.h, include/bits/basic_string.tcc:
4546         Fold overlong lines, minor formatting changes.
4548 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
4550         * include/bits/basic_string.h (replace(iterator, iterator,
4551         const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
4552         (replace(iterator, iterator, const _CharT*)): Ditto.
4553         (replace(iterator, iterator, const _CharT*, size_type)):
4554         Add missing _GLIBCXX_DEBUG_PEDASSERT.
4556 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
4558         * include/bits/basic_string.tcc (replace(size_type,
4559         size_type, const _CharT*, size_type)): Implement optimized
4560         in-place algorithm for non-overlapping ranges.
4561         * testsuite/21_strings/basic_string/replace/char/6.cc: New.
4562         * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
4564         * include/bits/basic_string.tcc (insert(size_type,
4565         const _CharT*, size_type)): Tweak slightly.
4567 2004-01-26  Andreas Schwab  <schwab@suse.de>
4569         * config/locale/gnu/monetary_members.cc: Restore locale before
4570         rethrowing exception.
4572 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
4574         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
4575         Define inline here.
4576         * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
4577         Move inline.
4579         * include/bits/basic_string.tcc: Very minor tweaks.
4581 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
4583         * testsuite/performance/string_append.cc: Increase number
4584         of iterations.
4586 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
4588         * include/bits/basic_string.h (erase(size_type, size_type),
4589         erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
4590         instead, thus avoiding redundant check for length_error.
4592         * include/bits/basic_string.h: Tweak some comments.
4594 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
4596         * include/bits/basic_string.tcc (operator+(const _CharT*,
4597         const basic_string&)): No need to go through the append
4598         taking two iterators.
4600 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
4602         * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
4603         Revert last change to use std::min: machine language is worse.
4604         (find_last_of(const _CharT*, size_type, size_type)): Ditto.
4605         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4606         (find_last_not_of(_CharT, size_type)): Ditto.
4608         * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
4609         size_type)): Discard the value returned by _M_check.
4610         (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
4611         (append(const basic_string&, size_type, size_type)): Ditto.
4612         (copy(_CharT*, size_type, size_type)): Ditto.
4613         (compare(size_type, size_type, const basic_string&)): Ditto.
4614         (compare(size_type, size_type, const basic_string&,
4615         size_type, size_type)): Ditto.
4616         (compare(size_type, size_type, const _CharT*)): Ditto.
4617         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
4619 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
4621         * include/bits/basic_string.h (insert(size_type,
4622         const basic_string&, size_type, size_type)): Define inline here.
4623         * include/bits/basic_string.tcc (insert(size_type,
4624         const basic_string&, size_type, size_type)): Move inline.
4626 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
4628         * include/bits/basic_string.h (assign(const basic_string&,
4629         size_type, size_type)): Define inline here.
4630         (replace(size_type, size_type, const basic_string&,
4631         size_type, size_type)): Ditto.
4632         (_M_replace_dispatch(iterator, iterator, _InputIterator,
4633         _InputIterator, __false_type)): Only declare.
4634         (_M_replace(iterator, iterator, _InputIterator,
4635         _InputIterator)): Remove.
4636         * include/bits/basic_string.tcc (assign(const basic_string&,
4637         size_type, size_type)): Move inline.
4638         (replace(size_type, size_type, const basic_string&,
4639         size_type, size_type)): Ditto.
4640         (_M_replace_dispatch(iterator, iterator, _InputIterator,
4641         _InputIterator, __false_type)): Define, now does also what
4642         _M_replace did before.
4643         * src/string-inst.cc (_M_replace): Don't instantiate.
4645         * include/bits/basic_string.tcc (find(const _CharT*,
4646         size_type, size_type)): Tidy.
4647         (rfind(_CharT, size_type)): Ditto.
4648         (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
4649         (find_first_not_of(_CharT, size_type)): Ditto.
4650         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4651         (find_last_not_of(_CharT, size_type)): Ditto.
4653 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
4655         PR libstdc++/13838
4656         * include/debug/bitset (operator|=): Fix typo.
4657         * testsuite/23_containers/bitset/operations/13838.cc: New.
4659 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
4661         * include/bits/basic_string.tcc (insert(size_type,
4662         const _CharT*, size_type __n)): Fix length_error check.
4663         (replace(size_type, size_type, const _CharT*, size_type):
4664         Ditto; call _M_replace_safe.
4665         (_M_replace_aux(size_type, size_type, size_type, _CharT):
4666         Fix length_error check.
4667         (_M_replace(iterator, iterator, _InputIterator,
4668         _InputIterator)): Ditto, tweak.
4669         (_M_replace_safe(size_type, size_type, const _CharT*,
4670         size_type)): Remove length_error check.
4672         * include/bits/basic_string.tcc (append(const basic_string&),
4673         append(const basic_string&, size_type, size_type)): Tweak
4674         comment.
4676         * include/bits/basic_string.tcc (copy(_CharT*, size_type,
4677         size_type)): If __n == 0 don't call traits::copy.
4679 2004-01-23  Stefan Olsson  <stefan@snon.net>
4681         * include/ext/mt_allocator.h: Reduce lock contention.
4683 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
4685         PR libstdc++/13831
4686         * include/bits/fstream.tcc (underflow): Remove unused
4687         variable.
4688         * include/bits/streambuf_iterator.h (equal): Ditto.
4689         * include/bits/locale_facets.h (_M_convert_from_char):
4690         Ditto.
4692 2004-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4694         PR c/13814
4695         * config/linker-map.gnu (nan): Delete.
4696         * libmath/mathconf.h (NAN, nan): Delete.
4697         * linkage.m4 (nan): Don't check for it.
4698         * libmath/nan.c: Delete file.
4700         * config.h.in, configure: Regenerate.
4702 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
4704         * include/bits/basic_string.h (push_back(_CharT)):
4705         Call _M_replace_aux.
4706         (insert(size_type, const basic_string&)): Trivial tweak.
4707         (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
4708         (insert(iterator, _CharT)): Ditto.
4709         (erase(size_type, size_type)): Ditto.
4710         (erase(iterator)): Ditto.
4711         (erase(iterator, iterator)): Ditto.
4712         (replace(size_type, size_type, size_type, _CharT)): Ditto.
4714 2004-01-23  Loren J. Rittle  <ljrittle@acm.org>
4716         libstdc++/13823
4717         * testsuite/performance/allocator_map_thread.cc: New test.
4719 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
4721         * include/bits/locale_facets.tcc
4722         (money_put::do_put(..., long double)): Use the basic_string
4723         constructor for char arrays, not that for C-strings, to pass
4724         __digits to do_put(..., const string_type&): __ws isn't
4725         null-terminated.
4727 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
4729         * include/bits/basic_string.h (_M_replace_safe): Change
4730         signatures to take size_types and const _CharT*.
4731         (_M_replace_aux): Likewise, takes size_types instead of
4732         iterators.
4733         (append(size_type, _CharT)): Update call.
4734         (assign(size_type, _CharT)): Ditto.
4735         (replace(iterator, iterator, size_type, _CharT)): Ditto.
4736         (_M_replace_dispatch(iterator, iterator, _Integer,
4737         _Integer, __true_type)): Ditto.
4738         * include/bits/basic_string.tcc (assign(const _CharT*,
4739         size_type)): Ditto.
4740         (insert(size_type, const _CharT*, size_type)): Ditto.
4741         (replace(size_type, size_type, const _CharT*,
4742         size_type)): Ditto.
4743         (_M_replace(iterator, iterator, _InputIterator,
4744         _InputIterator)): Ditto.
4745         (append(const basic_string&)): Ditto.
4746         (append(const basic_string&, size_type, size_type): Ditto.
4747         (append(const _CharT*, size_type): Ditto.
4748         (_M_replace_safe, _M_replace_safe): Change definitions
4749         accordingly, simplify.
4750         * string-inst.cc (_M_replace_safe): Don't instantiate.
4752 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
4754         * include/bits/basic_string.tcc (append(const basic_string&)):
4755         Revert previous change.
4756         (append(const basic_string&, size_type, size_type)): Revert
4757         previous change, use _M_check and _M_limit.
4759 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
4761         * include/bits/basic_string.h (_M_check): Change to return
4762         a checked __pos and take an additional const char* argument.
4763         (_M_fold): Rename to _M_limit, change to return a size_type,
4764         corresponding to the __off limited to the actual length.
4765         (insert(size_type, size_type, _CharT)): Update call, call
4766         replace.
4767         (insert(iterator, _CharT)): Call replace(iterator, iterator,
4768         size_type, _CharT) instead.
4769         (erase(size_type, size_type)): Update calls.
4770         (replace(size_type, size_type, size_type, _CharT)): Ditto.
4771         (substr(size_type, size_type)): Use _M_check.
4772         * include/bits/basic_string.tcc (basic_string(const basic_string&,
4773         size_type, size_type)): Update calls.
4774         (basic_string(const basic_string&, size_type, size_type,
4775         const _Alloc&)): Ditto.
4776         (assign(const basic_string&, size_type, size_type)): Use the
4777         new _M_check and _M_limit.
4778         (insert(size_type, const basic_string&, size_type, size_type):
4779         Ditto.
4780         (insert(size_type, const _CharT*, size_type)): Ditto.
4781         (replace(size_type, size_type, const _CharT*, size_type): Ditto.
4782         (replace(size_type, size_type, const basic_string&,
4783         size_type, size_type)): Ditto.
4784         (append(const basic_string&)): Ditto.
4785         (append(const basic_string&, size_type, size_type)): Ditto.
4786         (copy(_CharT*, size_type, size_type)): Ditto.
4787         (compare(size_type, size_type, const basic_string&)): Ditto.
4788         (compare(size_type, size_type, const basic_string&,size_type,
4789         size_type)): Ditto.
4790         (compare(size_type, size_type, const _CharT*)): Ditto.
4791         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
4793 2004-01-19  Stefan Olsson  <stefan@snon.net>
4795         * include/ext/mt_allocator.h: If a thread, when it dies, still has
4796         memory on it's freelist this memory is not returned to global
4797         list. Simplification of deallocate so that memory is always
4798         returned to the calling thread id's freelist instead of to
4799         global. Fix typos. Add volatile where appropriate.
4801 2004-01-19  Loren J. Rittle  <ljrittle@acm.org>
4803         * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
4804         * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test.  Like -2 but
4805         use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
4807 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
4809         * src/debug.cc: Make sure all the names are prefixed with
4810         double (or single) underscore.
4812 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
4814         * src/debug.cc: Trivial formatting change.
4816 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
4818         * include/bits/basic_string.tcc (_S_construct(size_type,
4819         _CharT, const _Alloc&)): Remove redundant try/catch.
4820         (_M_mutate(size_type, size_type, size_type)): Ditto.
4821         (_M_clone(const _Alloc&, size_type)): Ditto.
4823 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
4825         * include/bits/basic_string.h (c_str()): Simplify, due to
4826         21.3.4 the internal representation is always kept null-terminated.
4827         * include/bits/basic_string.tcc (_M_clone): Null-terminate.
4828         * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
4829         * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
4830         Ditto.
4832 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
4834         * include/bits/basic_string.h (append(size_type, _CharT)):
4835         Moved inline, just call _M_replace_aux, no source iterators at
4836         risk of being clobbered.
4837         (assign(size_type, _CharT)): Call directly _M_replace_aux.
4838         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
4839         input_iterator_tag)): Remove fifth unused argument.
4840         (_M_replace_dispatch(iterator, iterator, _InputIterator,
4841         _InputIterator, __false_type)): Update call.
4842         * include/bits/basic_string.tcc (replace(size_type, size_type,
4843         const _CharT*, size_type)): Update call.
4844         (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
4845         throw string literal.
4846         (_M_replace_safe(iterator, iterator, _ForwardIterator,
4847         _ForwardIterator)): Likewise.
4848         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
4849         input_iterator_tag)): Remove fifth unused argument.
4850         (append(size_type __n, _CharT __c)): Move inline.
4851         * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
4852         const C*, const C*, input_iterator_tag)): Remove fifth unused
4853         argument.
4855 2004-01-16  Benjamin Kosnik  <bkoz@redhat.com>
4857         * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
4858         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
4860 2004-01-16  Danny Smith  <dannysmith@users.sourceforge.net>
4862         * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
4863         mkfifo for mingw32.
4865 2004-01-15  Stefan Olsson  <stefan@snon.net>
4867         * include/ext/mt_allocator.h: Reuse thread id's as soon as
4868         possible by changing the behaviour of thread_freelist to do
4869         push_front when threads die instead of push_back.
4871 2004-01-14  Paolo Carlini  <pcarlini@suse.de>
4873         * include/bits/locale_facets.h (struct __numpunct_cache):
4874         Add member _M_grouping_size, caching the length of _M_grouping.
4875         (__numpunct_cache<>::_M_cache): Assign the latter.
4876         (__verify_grouping): Move declaration...
4877         * include/bits/locale_facets.tcc (__verify_grouping):
4878         ... here, change signature to take a const char* and a size_t
4879         for the grouping; not a template anymore.
4880         (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
4881         Likewise change signature and tweak consistently.
4882         (num_get::_M_extract_float, num_get::_M_extract_int,
4883         num_put::_M_insert_int, num_put::_M_insert_float,
4884         money_get::do_get(string_type&), money_get::do_put(string_type)):
4885         Update callers.
4886         * config/locale/generic/numeric_members.cc
4887         (numpunct<>::_M_initialize_numpunct): Assign the new member.
4888         * config/locale/gnu/numeric_members.cc
4889         (numpunct<>::_M_initialize_numpunct): Likewise.
4890         * src/locale-inst.cc (__add_grouping): Tweak signature.
4891         (__verify_grouping): Don't instantiate, not a template anymore.
4893         * include/bits/locale_facets.h: Rename _M_truename_len ->
4894         _M_truename_size, _M_falsename_len -> _M_falsename_size.
4895         * include/bits/locale_facets.tcc: Likewise.
4896         * config/locale/generic/numeric_members.cc: Likewise.
4897         * config/locale/gnu/numeric_members.cc: Likewise.
4899 2004-01-14  Stefan Olsson  <stefan@snon.net>
4901         * include/ext/mt_allocator.h: Fixups.
4902         * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
4903         * testsuite/performance/allocator_thread.cc: Same.
4905 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
4907         * testsuite/performance/ifstream_extract_float.cc: Add higher
4908         precision tests.
4909         * testsuite/performance/ofstream_insert_float.cc: Same.
4911 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
4913         * src/locale-misc-inst.cc (__convert_from_v(long),
4914         __convert_from_v(unsigned long), __convert_from_v(long long),
4915         __convert_from_v(unsigned long long)): Remove, unused.
4917 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
4919         * testsuite/performance/ifstream_extract_float.cc: New.
4920         * testsuite/performance/ofstream_insert_float.cc: Float generation
4921         matches above.
4923         * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
4924         * 20_util/auto_ptr/1.cc: ...this.
4925         * 20_util/auto_ptr/2.cc: Same.
4926         * 20_util/auto_ptr/3.cc: Same.
4927         * 20_util/auto_ptr/3946.cc: Same.
4928         * 20_util/auto_ptr/4.cc: Same.
4929         * 20_util/auto_ptr/5.cc: Same.
4930         * 20_util/auto_ptr/6.cc: Same.
4931         * 20_util/auto_ptr/7.cc: Same.
4932         * 20_util/auto_ptr/assign_neg.cc
4933         * 20_util/pairs.cc: Break into...
4934         * 20_util/pair/1.cc: ...this.
4935         * 20_util/pair/2.cc: Same.
4936         * 20_util/pair/3.cc: Same.
4937         * 20_util/pair/4.cc: Same.
4939 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
4941         * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
4942         Set correctly just basefield, the only group that matters.
4944 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
4946         * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
4947         (_Rope_rep_base): Inherit directly from the rope allocator;
4948         use rebinding instead of _Alloc_traits; pick up data member
4949         from _Rope_rep_alloc_base.
4950         (_Rope_alloc_base): Eliminate.
4951         (_Rope_base): Inherit directly from the rope allocator; use
4952         rebinding instead of _Alloc_traits; pick up data member from
4953         _Rope_alloc_base.
4954         (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
4955         rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
4957 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
4959         PR libstdc++/13650
4960         * include/bits/basic_string.tcc (compare(size_type, size_type,
4961         const _CharT*, size_type)): Implement correctly the resolution
4962         of DR 5: basically, s is a char array, -not- a C string.
4963         * include/bits/basic_string.h: Tweak some comments.
4964         * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
4965         * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
4967 2004-01-12  Andreas Tobler  <a.tobler@schweiz.ch>
4969         * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
4970         Solaris.
4972 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
4974         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
4975         Use try_mkfifo.
4976         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
4977         Likewise.
4979 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
4981         * include/bits/locale_facets.h (struct __numpunct_cache):
4982         Add members _M_truename_len and _M_falsename_len, caching
4983         the lengths of _M_truename and _M_falsename.
4984         (__numpunct_cache<>::_M_cache): Assign the latter.
4985         * include/bits/locale_facets.tcc (num_get::do_get(bool&),
4986         num_put::do_put(bool)): Use the new members, thus avoiding
4987         computing string lengths again and again.
4988         * config/locale/generic/numeric_members.cc
4989         (numpunct<>::_M_initialize_numpunct): Assign the new members.
4990         * config/locale/gnu/numeric_members.cc
4991         (numpunct<>::_M_initialize_numpunct): Likewise.
4993 2004-01-12  Mark Mitchell  <mark@codesourcery.com>
4995         * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
4996         * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
4997         it.
4998         * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
4999         and remove Cygwin XFAIL.
5000         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
5001         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
5002         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
5003         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
5004         Likewise.
5005         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
5006         * testsuite/27_io/objects/char/7.cc: Likewise.
5007         * testsuite/27_io/objects/char/9661-1.cc: Likewise.
5008         * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
5009         * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
5011 2004-01-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5013         * include/std/std_complex.h (std::complex<>::real): Return a
5014         reference. Add non-const overload.
5015         (std::complex<>::real): Likewise.
5016         (std::real): Likewise.
5017         (std::imag): Likewise.
5018         (std::operator+): Tidy.
5019         (std::operator-): Likewise.
5020         (std::operator*): Likewise.
5021         (std::operator/): Likewise.
5022         (std::operator>>): Likewise.
5024 2004-01-11  Paolo Carlini  <pcarlini@suse.de>
5026         PR libstdc++/13582
5027         * include/bits/fstream.tcc (imbue): Exploit the external
5028         buffer to imbue 'on the fly' a new locale and convert its
5029         remainder with the new codecvt facet.
5030         (underflow): Tweak slightly to deal with this special case.
5031         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
5032         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
5033         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
5034         * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
5035         * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
5037 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
5039         * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
5040         Import Revision 28.
5042 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
5044         PR libstdc++/13630
5045         * include/bits/locale_classes.h (class locale): Fix category
5046         typedef.
5047         * testsuite/22_locale/locale/13630.cc: Add.
5049 2004-01-10  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
5051         * include/bits/locale_facets.h: Make a name really dependent. This
5052         will be needed when Core Issue 224 is implemented.
5054 2004-01-09  Paolo Carlini  <pcarlini@suse.de>
5056         * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
5057         * testsuite/performance/allocator_thread.cc: Likewise.
5059 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
5061         * crossconfig.m4: Add LFS, io bits to linux cross config.
5062         * acconfig.h: Remove obsolete bits, reorder.
5063         * config.h.in: Regenerate.
5064         * aclocal.m4: Same.
5065         * configure: Same.
5067 2004-01-07  Gawain Bolton  <gp.bolton@computer.org>
5069         * include/bits/stl_list.h:
5070         * include/bits/list.tc:
5071         * src/list.cc:
5072         Performance enhancements for destructor, push_front(),
5073         push_back(), pop_front(), pop_back(), sort()
5074         Eliminated static_casts where possible.
5075         Moved code out of header files into new src/list.cc
5076         implementation file for library where possible.
5077         Remove inheritance from iterator class and create separate
5078         classes for non-constant and constant iterators.
5079         * include/bits/stl_tree.h (_Rb_tree class):
5080         * src/tree.cc:
5081         Only erase contents in destructor.
5082         Eliminate unnecessary initialization in assignment operator.
5083         Optimize for the nominal case by not checking whether
5084         container is empty in clear().
5085         Re-order test in _M_insert() to improve performance.
5086         Move initialization of new node's left & right pointers to
5087         src/tree.cc to where new node's colour is initialized
5088         and to reduce the amount of inline code.
5089         Use  _M_leftmost() and _M_end() to improve readability where
5090         appropriate.
5091         Create separate classes for non-constant and constant
5092         iterators to clarify code, avoid extra template parameters and
5093         casting away constness.
5095 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
5097         * src/Makefile.am (sources): Add list.cc, tree.cc.
5098         * src/stl_tree.cc: Move to...
5099         * src/tree.cc: ...here.
5100         * src/list.cc: Add.
5101         * config/linker-map.gnu: Tweaks.
5102         * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
5103         * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
5105         * bits/stl_vector.h: Column wrap comments.
5107 2004-01-07  Loren J. Rittle  <ljrittle@acm.org>
5109         (re-open) PR libstdc++/12658
5110         * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
5111         (locale::global): Likewise.
5113 2004-01-07  Paolo Carlini  <pcarlini@suse.de>
5115         * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
5116         Remove redundant #include.
5117         * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
5118         * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
5119         re-enable normal testing.
5120         * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
5121         #include.
5122         * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
5123         * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
5124         Likewise.
5125         * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
5126         Likewise.
5127         * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
5128         Likewise.
5129         * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
5130         Likewise.
5131         * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
5132         Likewise.
5133         * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
5134         Likewise.
5135         * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
5136         Likewise.
5137         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
5138         More properly, #include <locale>.
5139         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
5140         Remove redundant #include.
5141         * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
5142         * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
5143         redundant DejaGnu directive.
5144         * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
5145         redundant #include.
5147 2004-01-06  Benjamin Kosnik  <bkoz@redhat.com>
5148             Stefan Olsson  <stefan@snon.net>
5150         * scripts/check_performance: Use -pthread.
5151         * testsuite/performance/allocator.cc: Tweaks, add list.
5152         * testsuite/performance/allocator_thread.cc: New.
5154 2004-01-06  Jerry Quinn  <jlquinn@optonline.net>
5156         * include/bits/locale_facets.h: Document public classes and
5157         functions.
5158         * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
5159         Add comment.
5161 2004-01-06  Paolo Carlini  <pcarlini@suse.de>
5163         * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
5164         Remove redundant #includes.
5165         * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
5166         Likewise.
5167         * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
5168         Likewise.
5169         * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
5170         * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
5171         * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
5172         * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
5173         * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
5174         * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
5175         * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
5176         * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
5177         * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
5178         * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
5179         * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
5180         * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
5181         * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
5182         * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
5183         * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
5184         Likewise.
5185         * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
5186         Likewise.
5187         * testsuite/27_io/basic_istream/readsome/char/8258.cc:
5188         Likewise.
5189         * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
5190         Likewise.
5191         * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
5192         Likewise.
5193         * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
5194         * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
5195         * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
5197 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
5199         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
5200         Remove redundant #includes.
5201         * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
5202         Likewise.
5203         * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
5204         Likewise.
5205         * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
5206         Likewise.
5207         * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
5208         Likewise.
5209         * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
5210         Likewise.
5211         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
5212         Likewise.
5213         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
5214         Likewise.
5215         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
5216         Likewise.
5217         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
5218         Likewise.
5219         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
5220         Likewise.
5221         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
5222         Likewise.
5223         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
5224         Likewise.
5226 2004-01-04  Mark Mitchell  <mark@codesourcery.com>
5228         PR c++/12226
5229         * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
5230         constructor.
5231         * testsuite/27_io/basic_fstream/4.cc: Likewise.
5232         * testsuite/27_io/basic_ifstream/4.cc: Likewise.
5233         * testsuite/27_io/basic_ios/4.cc: Likewise.
5234         * testsuite/27_io/basic_iostream/4.cc: Likewise.
5235         * testsuite/27_io/basic_istream/4.cc: Likewise.
5236         * testsuite/27_io/basic_istingstream/4.cc: Likewise.
5237         * testsuite/27_io/basic_ofstream/4.cc: Likewise.
5238         * testsuite/27_io/basic_ostream/4.cc: Likewise.
5239         * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
5240         * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
5241         * testsuite/27_io/basic_stringstream/4.cc: Likewise.
5243 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
5245         * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
5246         Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
5247         always use double underscored names.
5248         * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
5249         Likewise.
5250         * include/bits/locale_facets.h (struct __numpunct_cache):
5251         Dimension _M_atoms_out and _M_atoms_in one position smaller.
5252         (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out
5253         and _M_atoms_in.