1 2004-08-03 Paolo Carlini <pcarlini@suse.de>
3 * include/bits/list.tcc: Trivial formatting fixes.
5 2004-08-03 Mark Mitchell <mark@codesourcery.com>
7 * libsupc++/new_op.cc: Update comments.
8 * libsupc++/del_op.cc: Likewise.
10 2004-08-02 Mark Mitchell <mark@codesourcery.com>
12 * libsupc++/cxxabi.h: Make all declarations have default
14 * libsupc++/exception: Likewise.
15 * libsupc++/new: Likewise.
16 * libsupc++/typeinfo: Likewise.
17 * libsupc++/unwind-cxx.h: Likewise.
18 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
19 the __cxxabiv1 namespace.
20 (__cxa_free_exception): Likewise.
21 * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
22 (__cxa_bad_typeid): Likewise.
23 * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
24 (__cxa_end_catch): Likewise.
25 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
26 (__cxa_get_globals): Likewise.
27 * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
28 (__cxa_rethrow): Likewise.
29 * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
30 * libsupc++/eh_type.cc: Include <cxxabi.h>.
32 * Makefile.am (hosted_source): Add libmath and testsuite.
33 (SUBDIRS): Remove them.
34 * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
35 on arm*-*-symbianelf*.
36 * crossconfig.m4: Add arm*-*-symbianelf* support.
37 * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
38 when freestanding. Do not bring names into std:: namespace with
39 "using" when freestanding. Declare required functions and macros
41 * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
43 * libsupc++/del_op.cc: Declare "free" only when freestanding.
44 * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
45 (malloc): Declare when freestanding.
48 (__cxa_allocate_exception): Call malloc, not std::malloc. Likewise
50 (__cxa_free_exception): Likewise for free.
51 * libsupc++/new_op.cc: Declare "malloc" when freestanding.
52 * libsupc++/pure.cc (writestr): Define to nothing when
54 * libsupc++/vterminate.cc: Do not define anything when
56 * Makefile.in: Regenerated.
57 * aclocal.m4: Likewise.
58 * configure: Likewise.
59 * include/Makefile.in: Likewise.
60 * libmath/Makefile.in: Likewise.
61 * libsupc++/Makefile.in: Likewise.
62 * po/Makefile.in: Likewise.
63 * src/Makefile.in: Likewise.
64 * testsuite/Makefile.in: Likewise.
66 2004-08-01 Matt Austern <austern@apple.com>
69 * include/bits/stl_list.h (_M_create_node): Remove unused
70 zero-argument version.
71 * include/ext/slist (_M_create_node): Pass two arguments to
72 allocator's construct() member function.
73 * testsuite/23_containers/deque/explicit_instantiation.cc: New.
74 * testsuite/23_containers/list/explicit_instantiation.cc: New.
75 * testsuite/23_containers/vector/explicit_instantiation.cc: New.
76 * testsuite/23_containers/map/explicit_instantiation.cc: New.
77 * testsuite/23_containers/set/explicit_instantiation.cc: New.
78 * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
79 * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
80 * testsuite/ext/hash_set_explicit_instantiation.cc: New.
81 * testsuite/ext/slist_explicit_instantiation.cc: New.
83 2004-07-30 Paolo Carlini <pcarlini@suse.de>
85 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
86 num_get<>::_M_extract_int): In the main parsing loop delay the
87 life of __q to the actual use point.
89 2004-07-29 Paolo Carlini <pcarlini@suse.de>
92 * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
93 Don't clip the precision passed down to __convert_from_v:
94 22.2.2.2.2 nowhere says so.
95 * testsuite/22_locale/num_put/put/char/14220.cc: New.
96 * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
98 2004-07-29 Paolo Carlini <pcarlini@suse.de>
100 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
102 2004-07-29 Paolo Carlini <pcarlini@suse.de>
103 Petur Runolfsson <peturr02@ru.is>
105 PR libstdc++/12658 (continued)
106 * src/locale_init.cc (locale::locale, locale::global): Use
107 a single locale_mutex instead of two separate mutexes.
109 2004-07-29 Paolo Carlini <pcarlini@suse.de>
112 * include/debug/map.h (insert(_InputIterator, _InputIterator)):
114 * testsuite/23_containers/map/insert/16813.cc: New.
116 2004-07-29 Phil Edwards <phil@codesourcery.com>
118 * docs/html/faq/index.html: Update version references. Make
119 clear that code from SGI has diverged greatly. Remove references
120 to library snapshots and what's-new sections.
121 * docs/html/faq/index.txt: Regenerate.
123 2004-07-28 Matt Austern <austern@apple.com>
125 * include/bits/stl_construct.h (_Destroy): New three-argument
126 overload that takes an allocator argument. Another inline
127 three-argument overload that takes std::allocator and dispatches
128 to the two-argument version.
129 * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
130 Change return type to void to match uninitialized_fill_n.
131 (__uninitialized_copy_a_): New function. Like uninitialized_copy
132 except that it takes an allocator and uses it for construct and
133 destroy. If the allocator is std::allocator, dispatches to
135 (__uninitialized_fill_a): Likewise.
136 (__uninitialized_fill_n_a): Likewise.
137 (__uninitialized_copy_copy): Give it an allocator argument.
138 (__uninitialized_fill_copy): Likewise.
139 (__uninitialized_copy_fill): Likewise.
140 * include/bits/deque.tcc: Use new forms defined in stl_construct.h
141 and stl_uninitialized.h. Replace use of single-argument _Construct
142 and _Destroy with use of allocator's construct and destroy methods.
143 * include/bits/list.tcc: Likewise.
144 * include/bits/stl_deque.h: Likewise.
145 * include/bits/stl_list.h: Likewise.
146 * include/bits/stl_tree.h: Likewise.
147 * include/bits/stl_vector.h: Likewise.
148 * include/bits/vector.tcc: Likewise.
149 * include/ext/hashtable.h: Use rebind so that allocator_type
150 has correct type for a container's allocator. Replace use of
151 single-argument _Construct and _Destroy with use of allocator's
152 construct and destroy methods.
153 * include/ext/memory (__uninitialized_copy_n_a): New function.
154 Like uninitialized_copy_n except that it takes an extra parameter,
155 an allocator, and uses it for construct and destroy operations.
156 * include/ext/rope: Use new forms defined in stl_construct.h,
157 stl_uninitialized.h, and ext/memory. Replace use of single-argument
158 _Construct and _Destroy with allocator construct and destroy methods.
159 * include/ext/ropeimpl.h: Likewise.
160 * include/ext/slist.h: Likewise.
161 * testsuite/testsuite_allocator.h (check_construct_destroy): New.
162 * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
163 * testsuite/23_containers/deque/check_construct_destroy.cc: New.
164 * testsuite/23_containers/list/check_construct_destroy.cc: New.
165 * testsuite/23_containers/set/check_construct_destroy.cc: New.
166 * testsuite/23_containers/vector/check_construct_destroy.cc: New.
167 * testsuite/ext/hash_check_construct_destroy.cc: New.
168 * testsuite/ext/slist_check_construct_destroy.cc: New.
170 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
172 2003-10-01 Eric Christopher <echristo@redhat.com>
173 * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
175 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
176 * config/cpu/sh/atomicity.h: New. Use movli and movco on SH4a.
178 2004-07-23 Benjamin Kosnik <bkoz@redhat.com>
181 * include/bits/locale_facets.tcc: Fix for -Werror.
183 2004-07-23 Jonathan Wakely <redi@gcc.gnu.org>
185 * docs/html/debug.html: Say debug mode only available since 3.4.0.
187 2004-07-21 Benjamin Kosnik <bkoz@redhat.com>
189 * docs/doxygen/mainpage.html: Clarify links.
190 * docs/doxygen/stdheader.cc: Add files.
191 * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
192 * docs/doxygen/user.cfg.in: New options, wrap.
194 2004-07-20 Danny Smith <dannysmith@users.sourceforge.net>
196 * include/c_std/std_cwchar.h (wcsstr): Correct signature.
198 2004-07-19 Benjamin Kosnik <bkoz@redhat.com>
201 * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
203 2004-07-17 Richard Sandiford <rsandifo@redhat.com>
206 * scripts/create_testsuite_files: Pass -print to find.
208 2004-07-15 Paolo Carlini <pcarlini@suse.de>
210 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
211 * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
213 2004-07-15 Jakub Jelinek <jakub@redhat.com>
216 * acinclude.m4 (glibcxx_shared_libgcc): Correct
217 glibcxx_shared_libgcc test for multilibs.
218 * configure: Rebuilt.
220 2004-07-14 Paolo Carlini <pcarlini@suse.de>
223 * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
224 the signature to return void, as per 20.4.4.3.
225 * include/bits/stl_vector.h (vector::vector(size_type,
226 const value_type&, const allocator_type&), vector::vector(size_type),
227 vector::_M_initialize_dispatch): Adjust callers.
228 * include/bits/vector.tcc (vector<>::_M_fill_assign,
229 vector<>::_M_fill_insert): Likewise.
230 * testsuite/20_util/memory/16505.cc: New.
232 2004-07-14 Paolo Carlini <pcarlini@suse.de>
234 * testsuite/22_locale/locale/cons/12658_thread-1.cc,
235 12658_thread-2.cc: Use __gnu_test::try_named_locale.
237 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
239 * docs/html/ext/mt_allocator.html: Add docs for _Tune.
240 * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
241 (__mt_alloc::_S_set_options): Same.
244 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
246 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
248 * configure: Regenerated.
250 2004-07-13 Paolo Carlini <pcarlini@suse.de>
252 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
253 to 12658_thread-1.cc and xfail.
254 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
255 simpler version of 12658_thread-1.cc, still failing on 3_3 and
256 not failing on 3_4/mainline - both on single processor and
257 multiprocessor machines.
259 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
261 * docs/html/abi.html: Remove non-public qualification.
263 * include/bits/concurrence.h: Tweak comments.
265 2004-07-11 Paolo Carlini <pcarlini@suse.de>
267 Add wchar_t counterparts of the basic_streambbuf<char> tests.
268 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
269 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
271 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
272 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
274 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
275 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
276 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
277 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
278 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
280 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
282 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
284 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
286 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
287 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
289 2004-07-11 Phil Edwards <phil@codesourcery.com>
291 * acinclude.m4: Cosmetic shell syntax fixes.
292 * configure.ac: Bring comment inline with reality.
293 * configure.host: Both of the above. Move 'arm' case to right
294 place in host_cpu switch.
295 * aclocal.m4, configure: Regenerate.
297 2004-07-09 Paolo Carlini <pcarlini@suse.de>
299 Add wchar_t counterparts of the basic_stringbuf<char> tests.
300 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
301 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
302 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
303 3599.cc, 9988.cc: Likewise.
304 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
306 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
308 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
310 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
312 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
313 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
314 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
315 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
317 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
319 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
321 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
323 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
324 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
326 2004-07-08 Paolo Carlini <pcarlini@suse.de>
328 * include/bits/gslice.h: Trivial formatting fixes.
329 * include/bits/gslice_array.h: Likewise.
330 * include/bits/indirect_array.h: Likewise.
331 * include/bits/mask_array.h: Likewise.
332 * include/bits/slice_array.h: Likewise.
333 * include/bits/valarray_after.h: Likewise.
334 * include/bits/valarray_array.h: Likewise.
335 * include/bits/valarray_before.h: Likewise.
336 * include/std/std_valarray.h: Likewise.
338 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
341 * include/bits/basic_string.h (basic_string::operator=): Revert.
343 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
345 * configure.ac (libtool_VERSION): To 6:2:0.
346 * configure: Regenerated.
348 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
350 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
353 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
355 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
357 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
360 2004-07-07 Paolo Carlini <pcarlini@suse.de>
363 * include/bits/sstream.tcc (overflow): When reallocating _M_string
364 use an exponential grow policy.
365 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
366 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
368 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
371 * crossconfig.m4: Add in bits for djgpp.
372 * configure: Regenerate.
374 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
376 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
377 instantiation of set and multiset (functor param given as int).
379 2004-07-04 Paolo Carlini <pcarlini@suse.de>
381 * include/bits/basic_string.h: Trivial formatting fixes and/or
382 const-ification of some variables.
383 * include/bits/deque.tcc: Likewise.
384 * include/bits/stl_algobase.h: Likewise.
385 * include/bits/stl_bvector.h: Likewise.
386 * include/bits/stl_construct.h: Likewise.
387 * include/bits/stl_deque.h: Likewise.
388 * include/bits/stl_pair.h: Likewise.
389 * include/bits/stl_vector.h: Likewise.
390 * include/bits/vector.tcc: Likewise.
392 2004-07-04 Paolo Carlini <pcarlini@suse.de>
394 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
395 systems with no COMDAT or weak support.
396 * testsuite/25_algorithms/copy/2.cc: Likewise.
397 * testsuite/25_algorithms/copy/3.cc: Likewise.
398 * testsuite/25_algorithms/copy/4.cc: Likewise.
400 2004-07-03 Paul Brook <paul@codesourcery.com>
402 * configure.ac: Set ABI_TWEAKS_SRCDIR.
403 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
404 setting atomicity_dir. Override type_cpu for arm based targets.
405 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
406 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
407 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
408 * libsupc++/vec.cc: Ditto.
409 * config/cpu/arm/cxxabi_tweaks.h: New file.
410 * config/cpu/generic/cxxabi_tweaks.h: New file.
411 * */Makefile.in: Regenerate.
412 * configure: Regenerate.
414 2004-07-02 Paolo Carlini <pcarlini@suse.de>
416 * include/bits/type_traits.h (_Is_normal_iterator): Move...
417 * include/bits/cpp_type_traits.h: ... here, renamed to
418 __is_normal_iterator and consistent with the other traits.
419 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
420 to the struct __copy_normal and three specializations.
421 (__copy_backward_output_normal_iterator,
422 __copy_backward_input_normal_iterator): Likewise, convert to
423 the struct __copy_backward_normal and three specializations.
424 (copy, copy_backward): Use the latter.
425 (__copy_aux, __copy_backward_aux): Very minor tweaks.
427 2004-07-01 Paolo Carlini <pcarlini@suse.de>
429 * include/bits/stl_algobase.h (__copy_trivial): Remove.
430 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
431 __is_trivially_copyable, __are_same and __copy::copy.
432 (__copy): Rewrite as a class template and two specializations.
433 (__copy_ni2): Simplify, just call __copy_aux.
435 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
437 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
438 for destination value type != source value type.
440 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
441 Per Bothner <per@bothner.com>
442 Mohan Embar <gnustuff@thisiscool.com>
445 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
446 (__glibcxx_mutex): Encapsulate mutex init function into type for
447 threaded configurations without __GTHREAD_MUTEX_INIT.
448 (lock::lock): Make device member a reference.
450 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
452 * src/allocator.cc: Same.
454 2004-06-30 Brad Spencer <spencer@infointeractive.com>
456 * include/ext/mt_allocator.h: Handle allocations at static
457 initialization that happen before _S_options is (automatically)
458 constructed; set _S_init even if _M_force_new is true.
460 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
462 * config/linker-map.gnu: Revert new exports.
464 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
465 Stuart Anderson <anderson@netsweng.com>
467 * config/linker-map.gnu: Add destructor exports for abstract base
468 classes to conform to LSB.
470 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
471 Paolo Carlini <pcarlini@suse.de>
473 * include/bits/cpp_type_traits.h: Add __is_pointer and
474 __is_trivially_copyable.
475 * include/bits/stl_algobase.h (fill, fill_n): Slightly
476 tweak to use the latter.
477 (__copy_backward_dispatch): Remove.
478 (__copy_backward_aux): Rewrite to use __is_pointer and
479 __is_trivially_copyable and __copy_backward::copy_b.
480 (__copy_backward): Rewrite as a class template and two
483 2004-06-30 Paolo Carlini <pcarlini@suse.de>
485 * testsuite/25_algorithms/copy.cc: Move to...
486 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
487 * testsuite/25_algorithms/copy/2.cc: New.
488 * testsuite/25_algorithms/copy/3.cc: New.
489 * testsuite/25_algorithms/copy/4.cc: New.
491 2004-06-29 Paul Brook <paul@codesourcery.com>
493 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
494 element size in the cookie.
496 2004-06-28 Paolo Carlini <pcarlini@suse.de>
498 * include/bits/cpp_type_traits.h: Move the additions to
499 namespace __gnu_internal outside of namespace std; trivial
502 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
504 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
505 Revert -Weffc++ changes that defined copy ctory and or assignment
507 * libsupc++/tinfo.cc (__upcast_result): Same.
509 2004-06-28 Paolo Carlini <pcarlini@suse.de>
511 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
512 the algorithm used to name the categories.
514 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
516 * include/Makefile.am: Give a .gch extension to
517 the PCH files, not only to the directory.
518 * include/Makefile.in: Regenerate.
520 2004-06-28 Paolo Carlini <pcarlini@suse.de>
522 * config/locale/gnu/monetary_members.cc
523 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
524 assignments of _M_decimal_point and _M_thousands_sep.
526 2004-06-27 Paolo Carlini <pcarlini@suse.de>
528 * docs/html/17_intro/contribute.html: Update some links.
529 * docs/html/17_intro/porting-howto.html: Likewise.
530 * docs/html/17_intro/porting-howto.xml: Likewise.
531 * docs/html/18_support/howto.html: Likewise.
532 * docs/html/21_strings/howto.html: Likewise.
533 * docs/html/27_io/howto.html: Likewise.
534 * docs/html/configopts.html: Likewise.
535 * docs/html/ext/howto.html: Likewise.
536 * docs/html/faq/index.html: Likewise.
537 * docs/html/install.html: Don't mention 2.x compilers.
539 2004-06-27 Paolo Carlini <pcarlini@suse.de>
541 * include/ext/rope: Trivial formatting fixes.
542 * include/ext/ropeimpl.h: Likewise.
544 2004-06-26 Paolo Carlini <pcarlini@suse.de>
547 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
548 availability of strto(u)ll, not used anymore in the iostreams.
549 * configure: Regenerate.
551 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
554 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
556 * configure: Regenerate.
558 2004-06-25 Paul Brook <paul@codesourcery.com>
560 * libsupc++/cxxabi.h: Define __ARM_EABI__
562 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
564 2004-06-25 Paul Brook <paul@codesourcery.com>
566 * include/bits/concurrence.h: Still create mutex object when
569 2004-06-25 Paolo Carlini <pcarlini@suse.de>
571 * include/bits/stl_algobase.h (fill, fill_n): Revert last
572 change: actually we need to copy construct an object of type
573 _Tp, not of type iterator_traits<>::value_type, therefore the
576 2004-06-25 Paolo Carlini <pcarlini@suse.de>
578 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
579 dispatch: use iterator_traits<>::value_type, not _Tp.
581 2004-06-25 Paolo Carlini <pcarlini@suse.de>
583 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
584 * testsuite/25_algorithms/fill/2.cc: Likewise.
586 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
587 Paolo Carlini <pcarlini@suse.de>
589 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
590 for fill and fill_n, respectively: when copying is cheap, use a
591 temporary to avoid a memory read in each iteration.
593 2004-06-25 Paolo Carlini <pcarlini@suse.de>
595 * testsuite/25_algorithms/fill/1.cc: New.
596 * testsuite/25_algorithms/fill/2.cc: Likewise.
598 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
600 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
601 Remove copy constructor and assignment operator.
603 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
605 * include/bits/concurrence.h (__gnu_cxx::lock): New.
606 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
607 (__pool_base::_M_get_mutex): New.
608 * include/bits/allocator.h: Tweak.
609 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
610 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
611 * include/bits/stl_threads.h: Remove.
612 * include/Makefile.am: Also here.
613 * include/Makefile.in: Regenerate.
615 * src/locale_init.cc: Use __gnu_cxx::lock.
617 * src/allocator.cc: Move all instantiations...
618 * src/allocator-inst.cc: ...here.
620 2004-06-23 Andrew Pinski <apinski@apple.com>
622 * linkage.m4: Remove check for libmx.
623 * configure: Regenerate.
625 2004-06-23 Paolo Carlini <pcarlini@suse.de>
628 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
629 Don't require the _DefaultConstructibleConcept.
630 (struct _ForwardIteratorConcept): Require it here.
632 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
634 * include/bits/istream.tcc (getline): Make sure arguments passed
635 to min/max have the same type.
636 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
637 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
639 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
641 * docs/html/abi.html: Update links.
643 2004-06-22 Paolo Carlini <pcarlini@suse.de>
645 * testsuite/26_numerics/complex_inserters_extractors.cc,
646 complex_value.cc, buggy_complex.cc: Move to...
647 * testsuite/26_numerics/complex/: ... here.
648 * testsuite/26_numerics/c99_classification_macros_c++.cc,
649 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
650 fabs_inline.cc: Move to...
651 * testsuite/26_numerics/cmath/: ... here.
652 * testsuite/26_numerics/binary_closure.cc, slice.cc,
653 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
654 valarray_name_lookup.cc, valarray_operators.cc,
655 valarray_subset_assignment.cc: Move to...
656 * testsuite/26_numerics/valarray/: ... here (new dir).
657 * testsuite/26_numerics/sum_diff.cc: Move to...
658 * testsuite/26_numerics/numeric/: ... here (new dir).
660 2004-06-22 Paolo Carlini <pcarlini@suse.de>
662 * include/std/std_istream.h (ignore(streamsize __n = 1,
663 int_type __delim = traits_type::eof())): Split into...
664 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
665 int_type __delim)): The first two can be much more simpler
666 and efficient than the fully general case; also, the last
667 two can take advantage of the same mechanism already used
669 * include/bits/istream.tcc (ignore(streamsize __n = 1,
670 int_type __delim = traits_type::eof()): Remove.
671 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
672 int_type __delim)): New.
674 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
676 * config/linker-map.gnu: Use wildcards for
677 __basic_file::sys_open(FILE*, _Ios_Openmode).
679 2004-06-20 Paolo Carlini <pcarlini@suse.de>
681 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
683 2004-06-18 Paolo Carlini <pcarlini@suse.de>
685 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
686 the alignment requested.
687 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
688 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
689 (__mt_alloc<>::deallocate): Likewise.
691 2004-06-18 Paolo Carlini <pcarlini@suse.de>
694 * include/debug/safe_base.h
695 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
696 _Safe_sequence_base::operator=): Provide definitions.
697 * testsuite/23_containers/bitset/cons/16020.cc: New.
699 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
701 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
702 (__pool_base): Remove unused template parameter. Add
703 protected. Move lock data into __pool_base::_Lock. Remove static
705 (__pool_base::_M_get_free_list): New.
706 (__pool_alloc): Move _S_force new here.
707 * src/allocator.cc: Move out of line __pool_base definitions here.
708 * config/linker-map.gnu: Export bits from __pool_base.
710 2004-06-18 Paolo Carlini <pcarlini@suse.de>
712 * config/locale/gnu/numeric_members.cc
713 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
714 assignments of _M_decimal_point and _M_thousands_sep.
715 * config/locale/gnu/time_members.cc
716 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
717 and reformat assignments of date and time fields.
719 2004-06-16 Paolo Carlini <pcarlini@suse.de>
721 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
722 to use _Data_allocate.
723 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
724 (rope<>::_S_substring): Likewise.
725 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
726 (rope<>::c_str()): Likewise.
727 (rope<>::replace_with_c_str()): Likewise.
729 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
730 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
732 (_Rope_iterator_base<>::_S_setcache): Likewise.
733 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
734 (rope<>::_S_substring): Likewise.
735 (rope<>::_S_dump): Likewise.
736 (rope<>::_S_fetch_ptr): Likewise.
737 (rope<>::_S_compare): Likewise.
738 (rope<>::replace_with_c_str()): Likewise.
740 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
741 * testsuite/ext/rope/2.cc: New.
743 2004-06-16 Paolo Carlini <pcarlini@suse.de>
744 Matt Austern <austern@apple.com>
746 * testsuite/ext/rope/3.cc: New.
748 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
750 * acinclude.m4: Remove useless multilib configury.
751 * Makefile.am: Remove useless multilib rules.
752 * aclocal.m4: Regenerate.
753 * Makefile.in: Regenerate.
754 * configure: Regenerate.
756 2004-06-15 Paolo Carlini <pcarlini@suse.de>
758 * include/ext/hashtable.h: Trivial formatting fixes.
759 * include/ext/rb_tree: Likewise.
761 2004-06-14 Paolo Carlini <pcarlini@suse.de>
763 * include/ext/hash_map: Trivial formatting fixes.
764 * include/ext/hash_set: Likewise.
765 * include/ext/memory: Likewise.
766 * include/ext/numeric: Likewise.
768 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
770 * Makefile.in: Regenerate with automake 1.8.5.
772 * include/Makefile.in: Same.
773 * libmath/Makefile.in: Same.
774 * libsupc++/Makefile.in: Same.
775 * po/Makefile.in: Same.
776 * src/Makefile.in: Same.
777 * testsuite/Makefile.in: Same.
779 2004-06-14 Paolo Carlini <pcarlini@suse.de>
781 * include/ext/slist: Trivial formatting fixes.
783 2004-06-14 Paolo Carlini <pcarlini@suse.de>
785 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
786 Don't use the 'magic number' 10 in the computation of __minlen;
787 never access __name past __minlen; in the loop over __i3, don't
788 decrease __nmatches and increase __i3 at once, only either of
791 2004-06-13 Paolo Carlini <pcarlini@suse.de>
793 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
794 time_get<>::do_get_date): Use only once _M_extract_via_format,
795 instead of going through "%X"/"%x" and calling it two times
798 2004-06-12 Paolo Carlini <pcarlini@suse.de>
800 * include/ext/algorithm: Trivial formatting fixes.
801 * include/ext/functional: Likewise.
802 * include/ext/hash_fun.h: Likewise.
803 * include/ext/iterator: Likewise.
805 2004-06-12 Paolo Carlini <pcarlini@suse.de>
807 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
808 size_type)): Reimplement using std::search.
809 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
811 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
813 * testsuite/performance/21_strings/string_find.cc: New.
815 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
817 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
819 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
821 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
822 this function return a value.
824 2004-06-09 Paolo Carlini <pcarlini@suse.de>
827 * include/bits/stl_deque.h: Consistently with stl_set.h, define
828 pointer as allocator's pointer, likewise for reference,
829 const_pointer, and const_reference.
830 * include/bits/stl_list.h: Likewise.
831 * include/bits/stl_map.h: Likewise.
832 * include/bits/stl_multimap.h: Likewise.
833 * include/bits/stl_vector.h: Likewise.
835 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
837 * crossconfig.m4: Remove signbit, signbitf, signbitl.
838 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
839 builtin math functions instead of AC_DEFINE_UNQUOTED.
840 * configure: Regenerate.
842 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
844 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
845 * docs/doxygen/mainpage.html: Remove links.
847 2004-06-08 Jason Merrill <jason@redhat.com>
849 * config/linker-map.gnu: Use wildcards for
850 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
852 2004-06-08 Paolo Carlini <pcarlini@suse.de>
854 * include/ext/pool_allocator.h: Convert to a global free-list,
855 as per the original SGI/HP design: move the implementation
856 details to struct __pool_base, from which __pool_alloc derives.
857 * src/allocator.cc: Instantiate __pool_base.
859 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
860 Paolo Carlini <pcarlini@suse.de>
862 * testsuite/testsuite_performance.h
863 (resource_counter::allocated_memory): Make it return the right
864 number of bytes requested by the allocators/application. This is
865 the sbrk+mmaped memory.
867 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
869 * include/std/std_complex.h (log): Tidy.
871 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
873 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
874 * testsuite/testsuite_abi.cc: Same.
875 * configure.ac (libtool_VERSION): Bump to 6:1:0.
876 * configure: Regenerate.
877 * aclocal.m4: Regenerate.
879 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
881 * include/std/std_complex.h (complex<_Tp>): Properly indent
883 (complex<>::__rep): New.
884 (__complex_abs): New. Dispatch to built-ins.
886 (__complex_arg): New. Dispatch to built-ins.
888 (__complex_cos): New. Dispatch to built-ins.
890 (__complex_cosh): New. Dispatch to built-ins.
892 (__complex_exp): New. Dispatch to built-ins.
894 (__complex_log): New. Dispatch to built-ins.
896 (__complex_sin): New. Dispatch to built-ins.
898 (__complex_sinh): New. Dispatch to built-ins.
900 (__complex_sqrt): New. Dispatch to built-ins.
902 (__complex_tan): New. Dispatch to built-ins.
904 (__complex_tanh): New. Dispatch to built-ins.
906 (__complex_pow): New. Dispatch to built-ins.
909 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
910 Benjamin Kosnik <bkoz@redhat.com>
913 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
914 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
915 * config/io/basic_file_stdio.cc (__basic_file::file): New.
916 * config/io/basic_file_stdio.h: Define.
918 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
921 * docs/html/documentation.html: Update doxygen links for 3.4.0.
923 2004-05-27 Jan Beulich <jbeulich@novell.com>
925 * scripts/create_testsuite_files: Tweak.
927 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
930 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
931 bits to do the same thing.
933 2004-05-24 Paolo Carlini <pcarlini@suse.de>
935 * include/bits/istream.tcc (ignore): Correctly deal with
936 n == numeric_limits<streamsize>::max().
937 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
939 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
940 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
941 __n == numeric_limits<>::min().
943 * include/bits/istream.tcc: Minor tweaks.
945 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
947 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
949 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
951 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
953 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
955 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
959 * include/bits/basic_string.h (basic_string::operator=): Return
960 pointer to this instead of result of assign. Although redundant,
961 this doesn't impact resultant codegen.
963 * include/bits/locale_facets.h (__numpunct_cache): Declare
964 assignment opxserator and copy constructor private.
965 (__timepunct_cache): Same.
966 (__moneypunct_cache): Same.
967 (collate): Use member initialization list for _M_c_locale_collate.
968 * config/locale/gnu/messages_members.h: Same.
969 * config/locale/gnu/time_members.h (__timepunct): Same.
970 * src/codecvt.cc: Use member initialization list to initialize
972 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
973 * config/os/gnu-linux/ctype_noninline.h: Same.
974 * src/locale.cc (_Impl): Same.
975 * src/locale_init.cc: Same.
976 * src/localename.cc: Same.
978 * include/bits/basic_ios.h (basic_ios): Complete member
980 * include/bits/istream.tcc (basic_istream::sentry): Same.
981 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
982 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
983 _M_pback to member initialization list.
984 * include/std/std_streambuf.h: Same.
985 * include/std/std_sstream.h: Same, for _M_mode.
986 * src/ios.cc (ios_base): Same.
988 * include/ext/rope: Make derived classes match exception
990 specifications. Add copy constructors and assignment operators.
992 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
993 constructor and assignment operator protected.
994 (_Safe_iterator_base): Same.
995 * include/debug/formatter.h (_Error_formatter): Define copy
996 constructor and assignment operator.
998 * include/backward/strstream: Declare assignment operator and copy
1001 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1003 * testsuite/testsuite_hooks.h (func_callback): Declare copy
1004 constructor and assignment operator private.
1005 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
1006 exception specifications of base class.
1007 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
1008 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
1009 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
1011 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1013 * libsupc++/cxxabi.h: Remove duplicated and useless public and
1014 private keywords in class declarations. Format. Use
1015 stddef.h. Expose declarations to "C" compilation.
1016 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
1017 assignment operator.
1018 (__dyncast_result): Same.
1019 * libsupc++/vec.cc (uncatch_exception): Same, use member
1020 initialization list.
1022 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1024 * testsuite/abi_check.cc: Add unistd.h.
1026 2004-05-22 Paolo Carlini <pcarlini@suse.de>
1029 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
1030 __int_to_char(unsigned long long)): Showpos is not relevant
1032 * testsuite/22_locale/num_put/put/char/15565.cc: New.
1033 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
1035 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
1037 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
1038 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
1039 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
1040 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
1041 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
1042 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
1044 2004-05-21 Matthias Klose <doko@debian.org>
1046 * docs/doxygen/run_doxygen: Bump required version.
1048 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
1050 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
1051 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
1053 2004-05-21 Paolo Carlini <pcarlini@suse.de>
1055 * include/bits/istream.tcc (ignore): Remove redundant line.
1056 (readsome): Tidy, closely following 27.6.1.3, p30.
1058 2004-05-20 Paolo Carlini <pcarlini@suse.de>
1060 * include/bits/istream.tcc (operator>>(basic_istream<>&,
1061 basic_string<>&)): Use a temporary buffer, thus avoiding
1062 reallocation for common case.
1063 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
1065 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
1068 * include/bits/istream.tcc: Const-ification of a few variables.
1070 * include/bits/ostream.tcc: Trivial formatting fixes and
1071 const-ification of some variables.
1073 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
1077 * docs/doxygen/Intro.3: Remove Allocators.3.
1078 Add new extension headers, extension namespace list.
1079 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
1080 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
1081 __gnu_debug::. Remove __policy_ renames.
1082 * docs/doxygen/guide.html: Add dot note.
1083 * docs/doxygen/stdheader.cc: Edit, add files.
1084 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
1086 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
1088 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
1090 2004-05-18 Jan Beulich <jbeulich@novell.com>
1093 * scripts/create_testsuite_files: Also find source files through
1096 2004-05-18 Jan Beulich <jbeulich@novell.com>
1099 * testsuite/lib/libstdc++.exp: Make test files writable.
1101 2004-05-18 Paolo Carlini <pcarlini@suse.de>
1103 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
1106 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
1108 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
1109 allocation loop which removes blocks from the global free list
1110 from O(N) to O(1) when the required blocks are <= the number
1113 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
1115 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
1117 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
1119 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
1120 * testsuite/23_containers/deque/14340.cc: New.
1121 * testsuite/23_containers/list/14340.cc: New.
1122 * testsuite/23_containers/map/14340.cc: New.
1123 * testsuite/23_containers/multimap/14340.cc: New.
1124 * testsuite/23_containers/multiset/14340.cc: New.
1125 * testsuite/23_containers/set/14340.cc: New.
1126 * testsuite/23_containers/vector/14340.cc: New.
1128 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
1131 * include/debug/safe_iterator.h (_Safe_iterator converting
1132 constructor): Only allow declaration to instantiate when the
1133 incoming _Safe_iterator has exactly the right iterator type.
1135 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
1137 * include/bits/boost_concept_check.h: Fix old attribute syntax.
1138 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
1139 to pass concept-checks.
1140 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1141 * testsuite/23_containers/set/modifiers/swap.cc: Same.
1142 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1144 2004-05-16 Paolo Carlini <pcarlini@suse.de>
1146 * include/std/std_bitset.h: Minor formatting fixes.
1148 2004-05-16 Paolo Carlini <pcarlini@suse.de>
1150 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1151 Consistently update __bin._M_free[0].
1152 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
1153 __bin._M_free[0] to simplify the while loop (i.e., the number
1154 of iterations becomes known at the outset).
1156 2004-05-15 Paolo Carlini <pcarlini@suse.de>
1158 * include/std/std_bitset.h: Trivial formatting fixes.
1160 2004-05-14 Paolo Carlini <pcarlini@suse.de>
1161 Ivan Godard <igodard@pacbell.net>
1164 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
1165 * testsuite/23_containers/bitset/ext/15361.cc: New.
1167 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1170 * crossconfig.m4: Add C99 math bits for linux crosses.
1171 * configure: Regenerate.
1173 2004-05-13 Simon Marshall <simon.marshall@misys.com>
1174 Benjamin Kosnik <bkoz@redhat.com>
1177 * include/bits/locale_facets.h: Fix for -fno-for-scope.
1178 * include/debug/safe_sequence.h: Same.
1179 * include/debug/safe_iterator.tcc: Same.
1180 * src/debug.cc: Same.
1181 * src/locale.cc: Same.
1182 * src/locale_init.cc: Same.
1183 * src/localename.cc: Same.
1184 * config/locale/gnu/ctype_members.cc: Same.
1185 * config/locale/gnu/numeric_members.cc: Same.
1186 * testsuite/testsuite_abi.cc: Same.
1187 * testsuite/testsuite_hooks.cc: Same.
1189 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
1191 * docs/html/abi.html: Document effect of -fabi-version on value
1192 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
1195 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1198 * docs/html/faq/index.html: Update docs for libsupc++ usage.
1200 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1203 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
1205 (_GLIBCXX_mutex_address): Same.
1206 (_GLIBCXX_once): Same.
1207 (_GLIBCXX_mutex_init): Same.
1208 (_GLIBCXX_mutex_address_init): Same.
1210 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1212 * docs/html/abi.html: New.
1213 * docs/html/abi.txt: Remove.
1214 * docs/html/documentation.html: Add link.
1215 * testsuite/Makefile.am: Add files.
1216 * testsuite/Makefile.in: Regenerated.
1217 * testsuite/abi_check.cc: Move and modify code into...
1218 * testsuite/testsuite_abi.cc: Add.
1219 * testsuite/testsuite_abi.h: Add.
1221 * docs/html/17_intro/TODO: Update.
1222 * include/bits/stl_pair.h: Format.
1224 2004-05-06 Matthias Klose <doko@debian.org>
1226 * include/backward/iterator.h: Add GPL copyright info,
1227 with exception clause.
1228 * include/bits/boost_concept_check.h: Likewise.
1230 * libsupc++/tinfo.h: Likewise.
1231 * po/string_literals.cc: Likewise.
1233 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
1235 * acinclude.m4: Replace -W with more speaking -Wextra.
1236 * configure: Rebuilt.
1238 2004-05-03 Paolo Carlini <pcarlini@suse.de>
1240 Optimize locale::_M_impl->_M_names for the most common cases:
1241 !_M_names[0] means unnamed; !_M_names[1] means all the categories
1242 the same name (_M_names[0] && _M_names[1] means that the full set
1243 of _M_names must be processed, the general case).
1244 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
1245 Tweak, saving work when !_M_names[1].
1246 (locale::locale(const locale&, _Facet*): Simplify: now just setting
1247 _M_names[0] = 0 means unnamed.
1248 * src/locale.cc (locale::operator==): Deal first with the common,
1249 easy cases, otherwise fall back to locale::name().
1250 (locale::name()): Tweak, if !_M_names[0] just return "*".
1251 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
1252 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
1253 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
1254 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
1255 Simplify when !std::strchr, just updating _M_names[0]; clean up.
1256 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
1257 for the general case (full set of names), then do the usual work;
1260 * src/locale.cc (locale::name()): Reserve space in __ret.
1261 * src/locale_init.cc (locale::global(const locale&)): Save
1262 the name in a temporary.
1263 * src/localename.cc (locale::locale(const char*)): Reserve space
1266 2004-04-29 Paolo Carlini <pcarlini@suse.de>
1268 * src/locale.cc (locale::operator==): Always avoid constructing
1269 locale::name(), directly compare pairs of _M_names.
1271 2004-04-26 Paolo Carlini <pcarlini@suse.de>
1273 * include/bits/istream.tcc: Fix comment.
1275 2004-04-26 Paolo Carlini <pcarlini@suse.de>
1277 * include/bits/stl_vector.h: Trivial formatting fixes.
1278 * include/bits/vector.tcc: Likewise.
1280 2004-04-25 Paolo Carlini <pcarlini@suse.de>
1282 PR libstdc++/15002 (continued again)
1283 * include/bits/istream.tcc (getline(basic_istream<>&,
1284 basic_string<>&, _CharT)): Use a temporary buffer, thus
1285 avoiding reallocation for common case.
1287 * include/bits/basic_string.tcc (_S_construct(_InIterator,
1288 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
1289 of temporary buffer to a power of two.
1291 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
1293 2004-04-25 Paolo Carlini <pcarlini@suse.de>
1295 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
1297 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
1299 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
1301 2004-04-24 Paolo Carlini <pcarlini@suse.de>
1302 Petur Runolfsson <peturr02@ru.is>
1304 PR libstdc++/15002 (continued)
1305 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
1306 streamsize, char_type)): Use traits::find/copy in a loop to speed
1307 up greatly the function in the common case (I/O buffer size >> 1).
1309 2004-04-24 Paolo Carlini <pcarlini@suse.de>
1311 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
1313 * include/bits/istream.tcc (getline(basic_istream<>&,
1314 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
1315 of sbumpc(), consistently with the other functions, thus also
1316 dealing correctly with the case of exceeded string::max_size().
1318 2004-04-24 Matthias Klose <doko@debian.org>
1320 Jonathan Wakely <cow@compsoc.man.ac.uk>
1321 * docs/html/configopts.html: Fix reference to allocator config option.
1323 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
1325 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
1326 * configure: Regenerate.
1328 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
1330 PR libstdc++/15047, libstdc++/11610
1331 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
1332 (libstdc++_init): Don't pass outdir to v3-copy-files.
1334 2004-04-21 Paolo Carlini <pcarlini@suse.de>
1336 * include/bits/deque.tcc: Trivial formatting fixes.
1337 * include/bits/stl_deque.h: Likewise.
1338 * include/bits/stl_list.h: Likewise.
1339 * include/bits/stl_tree.h: Likewise.
1341 2004-04-21 Paolo Carlini <pcarlini@suse.de>
1342 Andrew Pinski <pinskia@physics.uc.edu>
1344 * include/bits/basic_string.tcc (_M_mutate): Don't compute
1345 __src unnecessarily.
1347 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
1349 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
1350 Clarify assertion, set test variable to false before assert.
1351 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
1352 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
1353 * testsuite/27_io/ios_base/storage/2.cc: Same.
1355 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
1357 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
1358 * testsuite/27_io/fpos/14320-3.cc: Same.
1360 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
1361 * testsuite/27_io/fpos/1.cc: Same.
1362 * testsuite/27_io/basic_stringstream/2.cc: Same.
1363 * testsuite/27_io/basic_stringbuf/4.cc: Same.
1364 * testsuite/27_io/basic_stringbuf/1.cc: Same.
1365 * testsuite/27_io/basic_stringbuf/2.cc: Same.
1366 * testsuite/27_io/basic_streambuf/2.cc: Same.
1367 * testsuite/27_io/basic_ostringstream/2.cc: Same.
1368 * testsuite/27_io/basic_ostream/2.cc: Same.
1369 * testsuite/27_io/basic_ofstream/2.cc: Same.
1370 * testsuite/27_io/basic_istringstream/2.cc: Same.
1371 * testsuite/27_io/basic_istream/2.cc: Same.
1372 * testsuite/27_io/basic_iostream/2.cc: Same.
1373 * testsuite/27_io/basic_ios/2.cc: Same.
1374 * testsuite/27_io/basic_ifstream/2.cc: Same.
1375 * testsuite/27_io/basic_fstream/2.cc: Same.
1376 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
1378 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
1379 unsigned against zero.
1380 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
1381 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
1383 * testsuite/18_support/new_delete_placement.cc: Initialize
1384 variables before first use.
1385 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
1386 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
1387 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
1388 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
1390 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
1391 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
1393 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
1394 * testsuite/27_io/types/2.cc: Same.
1396 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
1398 * testsuite/27_io/fpos/14775.cc: Same.
1400 2004-04-19 Paolo Carlini <pcarlini@suse.de>
1402 PR libstdc++/15002 (partial)
1403 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
1404 Special case __n2 == 1, not calling traits_type::assign/copy.
1406 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
1408 * include/bits/stl_bvector.h: Use _M_impl._M_start.
1410 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
1412 * include/bits/c++config (_GLIBCXX_STD): New.
1413 * src/list.cc: Use it.
1414 * include/std/std_bitset.h: Same.
1415 * include/bits/vector.tcc: Same.
1416 * include/bits/stl_set.h: Same.
1417 * include/bits/stl_multiset.h: Same.
1418 * include/bits/stl_multimap.h: Same.
1419 * include/bits/stl_map.h: Same.
1420 * include/bits/stl_list.h: Same.
1421 * include/bits/stl_vector.h: Same.
1422 * include/bits/stl_bvector.h: Same.
1423 * include/bits/stl_deque.h: Same.
1424 * include/bits/deque.tcc: Same.
1425 * include/bits/list.tcc: Same.
1426 * include/debug/vector: Same.
1427 * include/debug/set.h: Same.
1428 * include/debug/multiset.h: Same.
1429 * include/debug/multimap.h: Same.
1430 * include/debug/map.h: Same.
1431 * include/debug/list: Same.
1432 * include/debug/deque: Same.
1433 * include/debug/bitset: Same.
1434 * include/debug/formatter.h (__gnu_debug): Remove using directive.
1435 Add using declaration for std::type_info.
1436 * include/debug/safe_iterator.h: Add using declaration for
1437 std::iterator_traits and std::pair.
1438 * src/debug_list.cc: New.
1439 * src/Makefile.am: Add debug_list.cc.
1440 * src/Makefile.in: Regenerate.
1441 * config/linker-map.gnu: Add _List_node_base exports for std and
1444 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
1445 idiom that other containers use.
1446 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
1448 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1451 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
1453 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
1454 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
1456 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1458 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
1460 * config.h.in: Regenerate.
1462 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1464 * config/locale/generic/monetary_members.cc
1465 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
1466 btowc unnecessarily, just cast to wchar_t (the concerned chars
1467 all belong to the basic character set).
1468 * config/locale/generic/numeric_members.cc
1469 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1470 * config/locale/gnu/monetary_members.cc
1471 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
1472 * config/locale/gnu/numeric_members.cc
1473 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1475 2004-04-15 Paolo Carlini <pcarlini@suse.de>
1477 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
1478 avoid constructing unnecessarily this->name().
1480 2004-04-14 Zack Weinberg <zack@codesourcery.com>
1482 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
1483 Change definition of CXX to use $(shell) instead of backticks.
1484 * testsuite/Makefile.in: Regenerate.
1486 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
1488 * testsuite/performance/20_util/allocator/list_sort_search.cc:
1489 Minor formatting fixes.
1490 * testsuite/performance/20_util/allocator/map_mt_find.cc:
1493 2004-04-12 Paolo Carlini <pcarlini@suse.de>
1495 * config/locale/gnu/numeric_members.cc
1496 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
1497 in __uselocale, since btowc is called for chars belonging to
1498 the basic character set.
1500 2004-04-09 Paolo Carlini <pcarlini@suse.de>
1502 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
1503 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
1504 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
1505 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
1506 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
1507 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
1508 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
1509 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
1510 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
1511 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
1512 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
1513 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
1514 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
1515 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
1516 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
1517 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
1518 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
1520 2004-04-07 Paolo Carlini <pcarlini@suse.de>
1522 * config/locale/generic/time_members.cc
1523 (__timepunct<char>::_M_initialize_timepunct,
1524 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
1525 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
1526 * config/locale/gnu/time_members.cc
1527 (__timepunct<char>::_M_initialize_timepunct,
1528 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
1529 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
1530 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
1532 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
1533 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
1534 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
1535 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
1536 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
1537 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
1538 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
1539 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
1540 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
1541 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
1542 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
1543 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
1544 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
1545 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
1546 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
1547 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
1548 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
1549 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
1550 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
1551 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
1552 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
1553 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
1554 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
1555 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
1556 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
1557 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
1558 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
1559 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
1560 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
1561 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
1562 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
1563 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
1564 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
1565 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
1566 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
1567 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
1569 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
1571 2004-04-07 Paolo Carlini <pcarlini@suse.de>
1573 * config/locale/gnu/monetary_members.cc
1574 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
1575 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
1576 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
1577 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
1578 * config/locale/gnu/numeric_members.cc
1579 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
1580 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
1582 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
1584 Fixups for EDG front end.
1585 * include/ext/rope: Instead of non-existent function
1586 _Data_allocate, use allocator's allocate. Use this.
1587 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
1588 enumerations from _Rope_RopeRep here.
1589 * include/ext/ropeimpl.h: Same.
1590 * src/ext-inst.cc (_S_min_len): Fix up definition.
1592 * config/locale/gnu/ctype_members.cc: Qualify base class members
1594 * config/locale/generic/ctype_members.cc: Same.
1595 * config/locale/gnu/messages_members.h: Same.
1596 * config/locale/generic/messages_members.h: Same.
1597 * src/ctype.cc: Same.
1598 * include/bits/codecvt.h: Same.
1600 * include/bits/boost_concept_check.h: Declare.
1601 (__error_type_must_be_an_unsigned_integer_type): Remove this.
1602 (__error_type_must_be_an_integer_type): Remove this.
1603 (__error_type_must_be_a_signed_integer_type): Remove this.
1605 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
1607 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
1608 specification to definition.
1609 (__cxa_allocate_exception): Same.
1610 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
1611 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
1612 (__cxa_get_globals): Same.
1614 * libsupc++/del_op.cc: Add comment about freestanding.
1616 2004-04-05 Paolo Carlini <pcarlini@suse.de>
1618 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1619 The critical section is actually very small, only two assignments.
1621 2004-04-04 Paolo Carlini <pcarlini@suse.de>
1622 Petur Runolfsson <peturr02@ru.is>
1624 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
1625 adapted from libstdc++/11378.
1627 2004-04-03 Paolo Carlini <pcarlini@suse.de>
1629 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
1630 some duplicated code.
1631 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
1632 in the single threaded case.
1633 * testsuite/performance/20_util/allocator/list_sort_search.cc:
1634 Reorder and renumber the tests consistently with the other testfiles.
1635 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1636 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1637 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1639 2004-04-02 Paolo Carlini <pcarlini@suse.de>
1641 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1642 Rearrange arithmetic to avoid computing two divisions at
1645 2004-04-01 Paolo Carlini <pcarlini@suse.de>
1647 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
1648 Streamline the second half, wrapping it in a single
1649 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
1650 conditionals inside loops.
1652 2004-04-01 Paolo Carlini <pcarlini@suse.de>
1655 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
1656 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
1657 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
1658 to _GLIBCXX_RES_LIMITS.
1659 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
1661 * testsuite/testsuite_hooks.h: Declare set_file_limit.
1662 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
1663 and setrlimit(RLIMIT_FSIZE).
1664 * testsuite/27_io/fpos/14775.cc: New.
1665 * config.h.in: Regenerate.
1666 * configure: Likewise.
1668 2004-03-31 Paolo Carlini <pcarlini@suse.de>
1670 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
1671 In v3 uses of sscanf, the special floating-point numbers INF,
1672 INFINITY, etc., cannot occur in input, therefore, if the latter
1673 is too large, ERANGE is always stored in errno, no need of finitel.
1675 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
1678 * include/bits/stl_tree.h: Adjust initialization list order.
1680 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
1682 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
1684 2004-03-29 Paolo Carlini <pcarlini@suse.de>
1686 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
1687 on allocator behavior, the memory pointed by data2 may well be not
1690 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
1693 * include/bits/basic_string.tcc
1694 (basic_string::basic_string(const basic_string&)): Pass to
1695 _Rep::_M_grab the actual allocator of the string being constructed
1696 not the default constructed one.
1698 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
1701 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
1702 (__enc_traits::_M_destroy): New.
1703 (__enc_traits::~__enc_traits): Use it.
1704 (__enc_traits::operator=): Use _M_destroy, _M_init.
1705 (__enc_traits::__enc_traits): Same.
1707 2004-03-27 Petur Runolfsson <peturr02@ru.is>
1709 * testsuite/ext/enc_filebuf/char/13598.cc: New.
1711 2004-03-27 Paolo Carlini <pcarlini@suse.de>
1713 * include/ext/mt_allocator.h: Uglify consistently names of
1714 variables, members and classes; tidy.
1716 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
1718 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1719 Deallocation loop rewrote.
1721 2004-03-26 Paolo Carlini <pcarlini@suse.de>
1723 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1724 __mt_alloc<>::deallocate): Protect two instances of
1725 block->thread_id with __GTHREADS.
1727 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
1729 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
1730 default argument in constructors.
1731 (_Rb_tree::_M_empty_initialize): Remove.
1733 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
1735 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
1736 * testsuite/23_containers/set/operators/1_neg.cc: Same.
1738 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1740 * include/bits/cpp_type_traits.h: Changed __is_pod
1741 completely. Now, it does not use any of the previous type_traits
1742 to detect the pod types, and it also detects function pointers as
1745 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
1746 which encapsulates the internal implementation of an rb_tree. Made
1747 the allocator a base class of this class instead of the rb_tree,
1748 which was not conforming. This _Rb_tree_impl class is also
1749 specialized on whether the _Compare parameter is a POD type or
1750 not. If so, then it maintains the comparison function as a data
1751 member, otherwise it makes the _Compare parameter a base class of
1752 itself. Also, _M_key_compare is now a function instead of a data
1753 member, so that the above trick can work properly. Delegated the
1754 initialization of the other data members to this newly created
1755 class. Also, now other member functions of rb_tree must refer to
1756 _M_key_compare as _M_impl._M_key_compare(). The other data members
1757 (*) can be referenced to as _M_impl.(*), where
1758 (*) includes _M_header, and _M_node_count.
1760 2004-03-25 Paolo Carlini <pcarlini@suse.de>
1762 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
1763 Add _M_min_bin, the size in bytes of the smallest bin.
1764 (__mt_alloc<>::tune()): Tweak accordingly.
1765 (__mt_alloc<>::tune(size_t, ...)): Likewise.
1766 (__mt_alloc<>::block_record): Change to a union: members next
1767 and thread_id are never used at the same time.
1768 (__mt_alloc<>::allocate): Update consistently.
1769 (__mt_alloc<>::deallocate): Likewise.
1770 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
1771 _S_bin_size for the configurable _M_min_size.
1773 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1775 * include/bits/stl_list.h: Created a _List_impl class and made it
1776 derive from the allocator, instead of the list deriving from the
1777 allocator class, which was not conformant. Changed all references
1778 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
1779 as above (changed all references to the concerned variables).
1781 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1783 * include/bits/stl_deque.h: Created a _Deque_impl class and made
1784 it derive from the allocator, instead of the deque deriving from
1785 the allocator class, which was not conformant. Changed all
1786 references to the _M_start, _M_finish, _M_map, and _M_map_size to
1788 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
1789 qualification in 2 places where it was missing.
1790 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
1792 * include/bits/deque.tcc: Same as above (changed all references to
1793 the concerned variables).
1795 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1797 * include/bits/stl_vector.h: Created a _Vector_impl class and made
1798 it derive from the allocator, instead of the _Vector_base class,
1799 deriving from the allocator which was not conformant. Changed all
1800 references to the _M_start, _M_finish, and _M_end_of_storage to
1802 * include/bits/vector.tcc: Same as above (changed all references
1803 to the concerned variables).
1805 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1807 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
1808 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
1809 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
1811 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
1813 * include/ext/malloc_allocator.h: Fixed the construct function to
1814 call global placement new instead of assignment. Added a check
1815 after the return from malloc to check whether returned pointer is
1816 NULL, and if so, throw std::bad_alloc().
1817 * include/ext/debug_allocator.h: Added a check in the deallocate
1818 function to check whether the user has passed a NULL pointer or
1821 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
1823 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
1825 2004-03-24 Andreas Schwab <schwab@suse.de>
1827 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
1828 warning from IA64 assembler.
1830 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
1832 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
1833 function call __builtin_ctz instead of the while loop.
1834 (allocate) -> If condition has __builtin_expect.
1835 (deallocate) -> Ditto.
1836 Renamed a few left-over variables and typedefs according to the
1837 C++STYLE mentioned in the documentation.
1838 Protected calls to __gthread* by __gthread_active_p(), whose value
1839 is cached in the local variable __threads_active.
1841 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
1843 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1844 Use linear algorithm for producer.
1846 2004-03-24 Paolo Carlini <pcarlini@suse.de>
1848 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1849 __mt_alloc<>::deallocate): Avoid redundant conditionals.
1851 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
1853 * include/bits/locale_facets.h: Tweaks for 80 column.
1854 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
1855 (__moneypunct_cache::_M_cache): Same.
1856 (num_get): Don't inherit from __num_base.
1858 (money_get): Don't inherit from money_base.
1860 (__timepunct::_M_am_pm_format): New.
1861 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
1862 (time_get::_M_extract_name): Same.
1863 (time_get::_M_extract_via_format): Same.
1864 * include/bits/locale_facets.tcc: Tweaks for 80 column.
1865 Use _M_getloc instead of getloc.
1866 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
1867 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
1868 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
1870 2004-03-22 Paolo Carlini <pcarlini@suse.de>
1872 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
1873 * configure: Regenerate.
1874 * config/allocator/pool_allocator_base.h: New.
1875 * include/ext/pool_allocator.h: Convert to a standard-conforming
1877 * src/allocator.cc: Tweak instantiations.
1878 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
1879 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
1880 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
1881 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1882 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1883 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1885 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
1887 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
1888 inline" and attribute-unused. Qualify parameter __mem with
1890 (__exchange_and_add): Ditto. Add back memory clobber to asm.
1892 2004-03-20 Paolo Carlini <pcarlini@suse.de>
1894 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
1896 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
1898 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
1900 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
1902 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
1904 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
1906 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
1908 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
1910 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
1912 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
1915 2004-03-20 Paolo Carlini <pcarlini@suse.de>
1917 * include/std/std_valarray.h: Document DR389 [Ready].
1918 * docs/html/ext/howto.html: Add an entry for DR389.
1920 2004-03-19 Michael Eager <eager@mvista.com>
1922 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
1925 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1927 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
1929 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
1930 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
1931 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
1932 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
1933 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
1934 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
1935 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
1936 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
1937 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
1939 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1940 Petur Runolfsson <peturr02@ru.is>
1943 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
1944 no way to find out the conversion used by the underlying FILE*.
1945 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
1946 * testsuite/27_io/objects/char/9.cc: Tweak.
1948 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1951 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
1952 memory allocation/deallocation calls.
1953 * testsuite/ext/14648.cc: New.
1955 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
1958 * include/backward/bvector.h (bit_vector): Allocator is in std
1961 2004-03-19 Phil Edwards <phil@codesourcery.com>
1963 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
1964 not libiconv. SUBST this variable as well.
1965 * testsuite/Makefile.am (site.exp): New target, based on that
1966 created by automake. Also set libiconv.
1968 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
1969 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1970 testsuite/Makefile.in: Regenerate.
1972 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
1974 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
1975 new_allocator for all hosts.
1976 * configure: Regenerate.
1978 2004-03-16 Paolo Carlini <pcarlini@suse.de>
1980 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
1981 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
1983 2004-03-15 Paolo Carlini <pcarlini@suse.de>
1985 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1986 Adjust the logic underlying the parsing of symbol to deal
1987 correctly with an optional sign component (i.e., when either
1988 negative_sign or positive_sign is empty)
1989 * testsuite/22_locale/money_get/get/char/19.cc: New.
1990 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
1992 2004-03-15 Paolo Carlini <pcarlini@suse.de>
1994 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1995 Do not accept an incomplete currency symbol.
1996 * testsuite/22_locale/money_get/get/char/18.cc: New.
1997 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
1999 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
2001 * config/allocator: New.
2002 * config/allocator/bitmap_allocator_base.h: New.
2003 * config/allocator/malloc_allocator_base.h: New.
2004 * config/allocator/mt_allocator_base.h: New.
2005 * config/allocator/new_allocator_base.h: New.
2006 * include/bits/allocator.h: Include c++allocator.h.
2007 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
2008 * aclocal.m4: Regenerate.
2009 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
2010 * configure: Regenerate.
2011 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
2012 * include/Makefile.in: Regenerate.
2013 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
2015 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
2017 * include/bits/allocator.h: Revert.
2019 2004-03-12 Paolo Carlini <pcarlini@suse.de>
2021 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
2022 * include/bits/gslice_array.h: Add comment about DR 253.
2023 * include/bits/indirect_array.h: Likewise.
2024 * include/bits/mask_array.h: Likewise.
2025 * include/bits/slice_array.h: Likewise.
2027 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
2029 * testsuite/20_util/allocator/14176.cc: New.
2030 * include/ext/mt_allocator.h: Formatting fixes.
2032 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
2034 * include/Makefile.am (ext_headers): Add
2035 ${ext_srcdir}/bitmap_allocator.h .
2036 * include/Makefile.in: Regenerate.
2037 * docs/html/ext/ballocator_doc.txt: New file.
2038 * include/ext/bitmap_allocator.h: New file.
2039 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
2041 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
2042 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
2043 test for the bitmap_allocator<>.
2044 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
2045 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
2046 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
2048 2004-03-11 Paolo Carlini <pcarlini@suse.de>
2050 * include/std/std_complex.h (pow(const complex&, const _Tp&),
2051 pow(const _Tp&, const complex&), pow(const complex&,
2052 const complex&)): Fully qualify with std:: a few calls.
2053 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
2055 2004-03-11 Steven Bosscher <stevenb@suse.de>
2058 * include/c_std/cmath.tcc (__cmath_power): Define inline.
2060 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
2062 * configure.ac: Bump AC_PREREQ to 2.59.
2064 2004-03-10 Paolo Carlini <pcarlini@suse.de>
2066 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
2068 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
2069 Paolo Carlini <pcarlini@suse.de>
2072 * include/std/std_complex.h (pow(const complex&, const _Tp&),
2073 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
2074 * testsuite/26_numerics/complex/13450.cc: New.
2076 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
2077 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
2079 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
2082 * include/bits/gslice_array.h (gslice_array()): Make public.
2083 (operator=(gslice_array)): Make public. Implement.
2084 * include/bits/indirect_array.h (indirect_array()): Make public.
2085 * include/bits/mask_array.h (mask_array()): Make public.
2086 (operator=(mask_array)): Make public. Implement.
2087 * include/bits/valarray_array.tcc (__valarray_copy):
2088 Comment. Add versions for gslice_array and mask_array.
2089 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
2091 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
2093 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
2095 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
2096 * testsuite/23_containers/set/modifiers/swap.cc: Same.
2097 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2098 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2099 * testsuite/23_containers/map/modifiers/swap.cc: Same.
2100 * testsuite/23_containers/list/modifiers/swap.cc: Same.
2102 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
2104 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
2107 * testsuite/23_containers/deque/modifiers/swap.cc: New.
2108 * testsuite/23_containers/list/modifiers/swap.cc: New.
2109 * testsuite/23_containers/map/modifiers/swap.cc: New.
2110 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
2111 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
2112 * testsuite/23_containers/set/modifiers/swap.cc: New.
2113 * testsuite/23_containers/vector/modifiers/swap.cc: New.
2115 2004-03-08 Petur Runolfsson <peturr02@ru.is>
2118 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
2120 2004-03-08 Paolo Carlini <pcarlini@suse.de>
2122 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
2123 * include/bits/stl_multiset.h: Add comment about DR 103.
2124 * include/bits/stl_set.h: Likewise.
2126 2004-03-08 Paolo Carlini <pcarlini@suse.de>
2128 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2129 The value _space_ indicates that at least one space is required
2131 * testsuite/22_locale/money_get/get/char/17.cc: New.
2132 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
2134 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
2135 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
2137 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
2138 Remove redundant conditional on __str.size().
2140 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
2142 * include/bits/allocator.h: Switch defaults to mt_alloc.
2144 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
2146 * include/ext/mt_allocator.h (_S_initialize): If
2147 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
2149 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
2152 * src/locale_init.cc (locale::locale): Lock critical regions with
2154 (locale::global): Same.
2155 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
2156 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
2157 (__glibcxx_mutex_lock): Same.
2159 * config/cpu/generic/atomicity.h: Remove
2160 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
2161 * src/misc-inst.cc: Move all locking bits out of this file.
2163 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
2164 * src/misc-inst.cc: Same.
2165 * config/cpu/hppa/atomicity.h: Same.
2167 * config/linker-map.gnu: Remove types in the signature of atomic
2168 exports, as they may vary.
2170 2004-03-06 Paolo Carlini <pcarlini@suse.de>
2172 * include/bits/locale_facets.tcc: Tweak the comment preceding
2173 has_facet: doesn't throw.
2175 2004-03-06 Paolo Carlini <pcarlini@suse.de>
2177 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
2178 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2179 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2180 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2181 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2182 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2183 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2184 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2186 2004-03-06 Paolo Carlini <pcarlini@suse.de>
2188 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2189 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
2190 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
2191 * testsuite/testsuite_character.h (struct __gnu_test::character):
2193 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
2196 2004-03-05 Paolo Carlini <pcarlini@suse.de>
2198 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
2200 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
2202 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
2204 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
2206 * testsuite/23_containers/deque/invalidation/4.cc: Same.
2207 * testsuite/23_containers/list/invalidation/1.cc: Same.
2208 * testsuite/23_containers/list/invalidation/2.cc: Same.
2209 * testsuite/23_containers/list/invalidation/3.cc: Same.
2210 * testsuite/23_containers/list/invalidation/4.cc: Same.
2211 * testsuite/23_containers/map/invalidation/2.cc: Same.
2212 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
2213 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2214 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
2215 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2216 * testsuite/23_containers/set/invalidation/1.cc: Same.
2217 * testsuite/23_containers/set/invalidation/2.cc: Same.
2218 * testsuite/23_containers/vector/invalidation/1.cc: Same.
2219 * testsuite/23_containers/vector/invalidation/2.cc: Same.
2220 * testsuite/23_containers/vector/invalidation/3.cc: Same.
2221 * testsuite/23_containers/vector/invalidation/4.cc: Same.
2223 2004-03-04 Paolo Carlini <pcarlini@suse.de>
2225 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
2227 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
2229 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
2230 from the dg-options.
2231 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
2232 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
2233 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
2234 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
2235 * testsuite/23_containers/vector/resize/1.cc: Likewise.
2236 * testsuite/26_numerics/complex_value.cc: Likewise.
2237 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
2238 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
2239 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
2240 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
2241 * testsuite/27_io/objects/char/5.cc: Likewise.
2242 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
2243 * testsuite/backward/11460.cc: Likewise.
2244 * testsuite/thread/pthread7-rope.cc: Likewise.
2246 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
2247 missing test variable.
2248 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
2249 missing test variable.
2251 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
2253 * testsuite/20_util/allocator/1.cc: Provide explicit
2254 instantiations for non-weak systems.
2255 * testsuite/20_util/binders.cc: Same.
2256 * testsuite/20_util/allocator/8230.cc: Same.
2257 * testsuite/20_util/allocator/10378.cc: Same.
2258 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
2259 * testsuite/22_locale/ctype/is/char/2.cc: Same.
2260 * testsuite/thread/pthread7-rope.cc: Same.
2261 * testsuite/thread/pthread6.cc: Same.
2262 * testsuite/thread/pthread5.cc: Same.
2263 * testsuite/thread/pthread4.cc: Same.
2264 * testsuite/thread/pthread1.cc: Same.
2265 * testsuite/ext/rope.cc: Same.
2266 * testsuite/ext/hash_set.cc: Same.
2267 * testsuite/ext/hash_map.cc: Same.
2268 * testsuite/ext/concept_checks.cc: Same.
2269 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
2270 * testsuite/25_algorithms/unique/2.cc: Same.
2271 * testsuite/25_algorithms/unique/1.cc: Same.
2272 * testsuite/25_algorithms/rotate.cc: Same.
2273 * testsuite/25_algorithms/min_max.cc: Same.
2274 * testsuite/25_algorithms/equal.cc: Same.
2275 * testsuite/24_iterators/rel_ops.cc: Same.
2276 * testsuite/24_iterators/iterator.cc: Same.
2277 * testsuite/24_iterators/insert_iterator.cc: Same.
2278 * testsuite/24_iterators/front_insert_iterator.cc: Same.
2279 * testsuite/24_iterators/back_insert_iterator.cc: Same.
2280 * testsuite/23_containers/vector/resize/1.cc: Same.
2281 * testsuite/23_containers/vector/modifiers/2.cc: Same.
2282 * testsuite/23_containers/vector/modifiers/1.cc: Same.
2283 * testsuite/23_containers/vector/invalidation/4.cc: Same.
2284 * testsuite/23_containers/vector/invalidation/3.cc: Same.
2285 * testsuite/23_containers/vector/invalidation/2.cc: Same.
2286 * testsuite/23_containers/vector/invalidation/1.cc: Same.
2287 * testsuite/23_containers/vector/element_access/1.cc: Same.
2288 * testsuite/23_containers/vector/cons/6513.cc: Same.
2289 * testsuite/23_containers/vector/cons/3.cc: Same.
2290 * testsuite/23_containers/vector/cons/2.cc: Same.
2291 * testsuite/23_containers/vector/cons/1.cc: Same.
2292 * testsuite/23_containers/vector/capacity/8230.cc: Same.
2293 * testsuite/23_containers/vector/capacity/1.cc: Same.
2294 * testsuite/23_containers/vector/bool/6886.cc: Same.
2295 * testsuite/23_containers/stack/members/7158.cc: Same.
2296 * testsuite/23_containers/set/invalidation/2.cc: Same.
2297 * testsuite/23_containers/set/invalidation/1.cc: Same.
2298 * testsuite/23_containers/queue/members/7157.cc: Same.
2299 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
2300 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2301 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2302 * testsuite/23_containers/multiset/insert/1.cc: Same.
2303 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2304 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2305 * testsuite/23_containers/map/operators/1.cc: Same.
2306 * testsuite/23_containers/map/invalidation/2.cc: Same.
2307 * testsuite/23_containers/map/invalidation/1.cc: Same.
2308 * testsuite/23_containers/map/insert/1.cc: Same.
2309 * testsuite/23_containers/list/operators/4.cc: Same.
2310 * testsuite/23_containers/list/operators/3.cc: Same.
2311 * testsuite/23_containers/list/operators/2.cc: Same.
2312 * testsuite/23_containers/list/operators/1.cc: Same.
2313 * testsuite/23_containers/list/modifiers/3.cc: Same.
2314 * testsuite/23_containers/list/modifiers/2.cc: Same.
2315 * testsuite/23_containers/list/modifiers/1.cc: Same.
2316 * testsuite/23_containers/list/invalidation/4.cc: Same.
2317 * testsuite/23_containers/list/invalidation/3.cc: Same.
2318 * testsuite/23_containers/list/invalidation/2.cc: Same.
2319 * testsuite/23_containers/list/invalidation/1.cc: Same.
2320 * testsuite/23_containers/list/cons/9.cc: Same.
2321 * testsuite/23_containers/list/cons/8.cc: Same.
2322 * testsuite/23_containers/list/cons/7.cc: Same.
2323 * testsuite/23_containers/list/cons/6.cc: Same.
2324 * testsuite/23_containers/list/cons/5.cc: Same.
2325 * testsuite/23_containers/list/cons/4.cc: Same.
2326 * testsuite/23_containers/list/cons/3.cc: Same.
2327 * testsuite/23_containers/list/cons/2.cc: Same.
2328 * testsuite/23_containers/list/cons/1.cc: Same.
2329 * testsuite/23_containers/list/capacity/1.cc: Same.
2330 * testsuite/23_containers/deque/operators/1.cc: Same.
2331 * testsuite/23_containers/deque/invalidation/4.cc: Same.
2332 * testsuite/23_containers/deque/invalidation/3.cc: Same.
2333 * testsuite/23_containers/deque/invalidation/2.cc: Same.
2334 * testsuite/23_containers/deque/invalidation/1.cc: Same.
2335 * testsuite/23_containers/deque/cons/2.cc: Same.
2336 * testsuite/23_containers/deque/cons/1.cc: Same.
2338 * src/allocator.cc: Add char, wchar_t instantiations
2339 to match extern template declarations in memory.h.
2341 2004-03-03 Paolo Carlini <pcarlini@suse.de>
2343 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2344 Fix warning regression.
2346 2004-03-03 Paolo Carlini <pcarlini@suse.de>
2348 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2349 Deal properly with empty __digits and negative frac_digits,
2352 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
2354 * docs/html/documentation.html: Regenerate.
2356 2004-03-02 Paolo Carlini <pcarlini@suse.de>
2359 * include/bits/postypes.h (class streamoff): Remove, now
2360 streamoff is just typedef a 64 bit signed integer type.
2361 (class fpos): Tweak consistently.
2362 * testsuite/27_io/fpos/14320-1.cc: New.
2363 * testsuite/27_io/fpos/14320-2.cc: New.
2364 * testsuite/27_io/fpos/14320-3.cc: New.
2365 * testsuite/27_io/fpos/14320-4.cc: New.
2366 * testsuite/27_io/fpos/14320-5.cc: New.
2367 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
2369 2004-03-02 Paolo Carlini <pcarlini@suse.de>
2371 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2372 Reorganize a bit the main parsing loop, thus early detecting
2373 an empty value component.
2374 * testsuite/22_locale/money_get/get/char/16.cc: New.
2375 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
2377 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
2379 Support automake 1.8.2
2380 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
2381 * po/Makefile.am (EXTRA_DIST): New.
2382 * po/Makefile.in: Regenerate.
2383 * Makefile.in: Same.
2384 * include/Makefile.in: Same.
2385 * libmath/Makefile.in: Same.
2386 * libsupc++/Makefile.in: Same.
2387 * src/Makefile.in: Same.
2388 * testsuite/Makefile.in: Same.
2390 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
2391 __GXX_WEAK__ instead of SUPPORTS_WEAK.
2392 (${host_builddir}/gthr-default.h): Same.
2393 (${host_builddir}/gthr.h): Same.
2394 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
2395 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
2397 * aclocal.m4: Regenerate.
2398 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
2399 * config.h.in: Regenerate.
2402 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
2404 Support autoconf 2.59
2405 * acinclude.m4: Quote correctly.
2406 * aclocal.m4: Regenerate.
2409 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
2411 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
2413 * docs/html/18_support/howto.html: Add bit about writing to
2414 stderr, mostly by Zack.
2416 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2418 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2419 money_get<>::do_get(string_type&)): ... and two more.
2421 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2423 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2424 Fix thinkos in the switch from string_type& to string& as last
2427 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2429 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2430 Also when parsing exponent sign, first look for thousands_sep
2431 and decimal_point; tweak a bit.
2432 * testsuite/22_locale/num_get/get/char/15.cc: New.
2433 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
2435 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2436 num_get<>::_M_extract_int): Reorder some conditionals.
2438 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2440 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2441 Consistently with numpunct, enforce the requirements in
2442 22.2.6.3, p3 for the thousands separators; tweak a bit.
2443 * testsuite/22_locale/money_get/get/char/15.cc: New.
2444 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
2446 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
2448 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
2449 testsuite_files from correct multilib blddir when running
2452 2004-02-29 Phil Edwards <phil@codesourcery.com>
2454 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
2455 the summary file to the logfile.
2456 * testsuite/Makefile.in: Regenerate.
2458 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2460 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
2462 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
2463 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
2465 2004-02-28 Paolo Carlini <pcarlini@suse.de>
2467 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2468 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
2469 no 'decimal-point' in the middle: in this case too we must fix
2470 up __found_grouping; slightly tweak.
2471 * testsuite/22_locale/num_get/get/char/14.cc: New.
2472 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
2474 2004-02-27 Eric Christopher <echristo@redhat.com>
2475 Phil Edwards <phil@codesourcery.com>
2477 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
2478 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
2479 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
2480 testsuite/22_locale/collate/hash/wchar_t/2.cc,
2481 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
2482 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
2483 testsuite/22_locale/collate/transform/wchar_t/2.cc,
2484 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
2485 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2486 Use dg-require-iconv.
2487 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
2489 2004-02-27 Phil Edwards <phil@codesourcery.com>
2490 Eric Christopher <echristo@redhat.com>
2492 * testsuite/config/default.exp: Update with comments.
2493 (${tool}_target_compile): New wrapper routine.
2494 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
2495 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
2497 (load_gcc_lib, v3track): New routines.
2498 (v3-init): Rename to libstdc++_init.
2499 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
2500 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
2502 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
2504 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
2506 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
2508 * config/os/irix/irix5.2/atomicity.h: Merge..
2509 * config/os/irix/irix6.5/atomicity.h: Merge..
2510 * config/os/irix/atomicity.h: ...into this.
2511 * config/os/irix/atomic_word.h: New.
2512 * configure.host: Set atomic_word_dir for irix.
2514 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
2515 * i386/atomicity.h: Same.
2516 * m68k/atomicity.h: Same.
2517 * sparc/atomicity.h: Same.
2519 2004-02-27 David Edelsohn <edelsohn@gnu.org>
2521 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
2522 static, and inline keywords.
2524 2004-02-27 Paolo Carlini <pcarlini@suse.de>
2526 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2527 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
2528 call reserve on the __tmp_gruping string.
2529 (num_get<>::_M_extract_float): Don't append unnecessarily a
2530 char() to the returned string.
2531 * include/bits/locale_facets.tcc: Trivial reformattings.
2533 2004-02-27 Paolo Carlini <pcarlini@suse.de>
2535 * include/bits/locale_facets.h (money_get<>::_M_extract):
2536 Change signature: now takes a plain string&.
2537 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2538 Update consistently the definition; use the moneypunct cache
2539 to parse the value; use swap to change __units.
2540 (money_get<>::do_get(long double&)): Update call of _M_extract,
2541 avoid ctype::narrow, not correct wrt the standard.
2542 (money_get<>::do_get(string_type&)): Likewise, update call
2543 of _M_extract, use ctype::widen.
2544 * src/locale-inst.cc: Tweak instantiations of _M_extract.
2546 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
2548 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
2549 * testsuite/demangle/abi_examples/02.cc: Likewise.
2550 * testsuite/demangle/regression/cw-11.cc: Likewise.
2551 * testsuite/demangle/regression/cw-16.cc: Change two expected
2552 results to match libiberty demangler output.
2554 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
2557 * libsupc++/Makefile.am: Use libiberty demangler.
2558 (c_sources): Add cp-demangle.c.
2559 * libsupc++/Makefile.in: Regenerate.
2560 * src/Makefile.am (sources): Remove demangle.cc.
2561 * src/Makefile.in: Regenerate.
2562 * include/Makefile.am (bits_headers): Move demangle.h.
2563 (ext_headers): ...here.
2564 * include/Makefile.in: Regenerate.
2565 * include/bits/demangle.h: Move...
2566 * include/ext/demangle.h: ...here.
2567 * src/demangle.cc: Remove.
2569 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
2571 * include/bits/demangle.h: Add type template parameter to all
2572 templates with just an Allocator template parameter.
2574 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
2576 * include/bits/atomicity.h: New, forward declarations for __atomic_add
2577 and __exchange_and_add.
2578 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
2579 * config/cpu/cris/atomic_word.h: Same.
2580 * config/cpu/sparc/atomic_word.h: Same.
2581 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
2582 Qualifiy with __gnu_cxx.
2583 (_Callback_list::_M_add_reference): Same.
2584 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
2585 (locale::facet::_M_remove_reference): Same.
2586 (locale::_Impl::_M_add_reference): Add.
2587 (locale::_Impl::_M_remove_reference): Same.
2588 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
2589 (basic_string::_Rep::_M_dispose): Same.
2590 * src/ios.cc (ios_base::xalloc): Same.
2591 * src/ios_init.cc (ios_base::Init::Init): Same.
2592 (ios_base::Init::~Init): Same.
2593 * src/locale.cc (locale::id::_M_id): Same.
2594 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
2595 static, and inline keywords.
2596 * config/cpu/alpha/atomicity.h: Same.
2597 * config/cpu/cris/atomicity.h: Same.
2598 * config/cpu/generic/atomicity.h: Same.
2599 * config/cpu/hppa/atomicity.h: Same.
2600 * config/cpu/i386/atomicity.h: Same.
2601 * config/cpu/ia64/atomicity.h: Same.
2602 * config/cpu/m68k/atomicity.h: Same.
2603 * config/cpu/mips/atomicity.h: Same.
2604 * config/cpu/powerpc/atomicity.h: Same.
2605 * config/cpu/s390/atomicity.h: Same.
2606 * config/cpu/sparc/atomicity.h: Same.
2608 * src/Makefile.am (host_sources): Add atomicity.cc.
2609 (atomicity.cc): New rule.
2610 * src/Makefile.in: Regenerate.
2611 * include/Makefile.am (host_headers): Remove host atomicity.h.
2612 (host_headers): Add atomic_word.h.
2613 (bits_headers): Add bits atomicity.h.
2614 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2615 * include/Makefile.in: Regenerate.
2616 * configure.host (atomic_word_dir): Add.
2617 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
2618 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2619 * configure: Regenerate.
2620 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
2622 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
2623 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2625 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
2627 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
2628 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
2629 Fix markup, more <link> tags.
2631 2004-02-25 Carlo Wood <carlo@alinoe.com>
2634 namespace __gnu_cxx::demangler
2635 (session<Allocator>::qualifier_list_Allocator): Add
2636 (session<Allocator>::M_qualifier_list_alloc): Add
2637 (session<Allocator>::decode_type_with_postfix):
2638 Use M_qualifier_list_alloc instead of calling operator new/delete.
2640 2004-02-24 Paolo Carlini <pcarlini@suse.de>
2643 * include/bits/postypes.h (class streamoff): Add operator++(),
2644 operator++(int), operator--() and operator--(int).
2645 * testsuite/27_io/fpos/14252.cc: New.
2647 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
2649 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
2650 error in handling of hex constants.
2652 2004-02-24 Paolo Carlini <pcarlini@suse.de>
2654 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2655 Prefer basic_string::append to operator+= and a temporary.
2657 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
2659 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
2660 Only use fputs, not write.
2662 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
2664 * include/ext/malloc_allocator.h: Add operators ==, !=.
2665 * include/ext/new_allocator.h: Add operators ==, !=.
2666 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
2667 (__mt_alloc::_S_get_options): New.
2668 (__mt_alloc::_S_set_options): New.
2669 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
2670 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
2671 Move functions out of line, simplify, format.
2672 * src/allocator.cc: Simplify explicit instantiations.
2673 * include/bits/allocator.h: Tweak.
2675 2004-02-22 Paolo Carlini <pcarlini@suse.de>
2677 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2678 Restructure formatting of value component, first dealing with
2679 the non-decimal digits; use reserve.
2681 2004-02-22 Paolo Carlini <pcarlini@suse.de>
2683 * include/bits/locale_facets.h (class money_get): Inherit
2684 from money_base too; tweak declaration of _M_extract, now
2685 parameterized on _Intl too.
2686 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2687 Update definition to use the cache; call reserve on __res to
2688 avoid multiple reallocations; fix parsing of sign component
2689 according to 22.2.6.1.2, p3.
2690 (money_get<>::do_get(long double&),
2691 money_get<>::do_get(string_type&)): Update calls of _M_extract.
2692 * src/locale-inst.cc: Add instantiations of
2693 money_get::_M_extract<false> and money_get::_M_extract<true>.
2694 * testsuite/22_locale/money_get/get/char/14.cc: New.
2695 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
2697 2004-02-21 Mark Mitchell <mark@codesourcery.com>
2699 * libsupc++/vterminate.cc
2700 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
2702 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
2704 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2705 not set RLIMIT_AS on HP-UX.
2707 2004-02-21 Mark Mitchell <mark@codesourcery.com>
2709 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2710 not set RLIMIT_AS on HP-UX.
2712 2004-02-21 Paolo Carlini <pcarlini@suse.de>
2714 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
2715 _S_zero, _S_end } enum, _S_atoms.
2716 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
2717 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
2718 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
2719 (__moneypunct_cache<>::~__moneypunct_cache): Update.
2720 (__moneypunct_cache<>::_M_cache): Fill the cache.
2721 (class moneypunct): Tweak __cache_type typedef.
2722 (class money_put): Inherit from money_base too; tweak declaration
2723 of _M_insert, now parameterized on _Intl.
2724 * include/bits/locale_facets.tcc
2725 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
2726 (money_put<>::_M_insert): Update definition to use the cache;
2727 call reserve on __res to avoid multiple reallocations.
2728 (money_put<>::do_put(long double),
2729 money_put<>::do_put(const string_type&): Update calls of _M_insert.
2730 * config/locale/generic/monetary_members.cc
2731 (moneypunct<char, true>::_M_initialize_moneypunct,
2732 moneypunct<char, false>::_M_initialize_moneypunct,
2733 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
2734 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
2735 * config/locale/gnu/monetary_members.cc: Likewise.
2736 * config/locale/gnu/monetary_members.cc
2737 (moneypunct<wchar_t, true>::~moneypunct(),
2738 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
2739 * src/globals_locale.cc: Tweak fake_money_cache_c.
2740 * src/locale-inst.cc: Add instantiations for
2741 money_put::_M_insert<false> and money_put::_M_insert<true> and
2742 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
2743 * src/locale_facets.cc: Define money_base::_S_atoms.
2744 * src/locale_init.cc: Update placement new of
2745 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
2746 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
2748 * config/locale/generic/numeric_members.cc: Clean up.
2749 * config/locale/gnu/numeric_members.cc: Likewise.
2750 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
2751 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
2752 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
2753 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
2754 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
2755 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
2757 2004-02-20 Mark Mitchell <mark@codesourcery.com>
2759 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
2760 FIFO for writing with ios_base::in|ios_base::out.
2761 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
2762 * testsuite/27_io/objects/char/7.cc: Likewise.
2763 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
2766 2004-02-19 David Edelsohn <edelsohn@gnu.org>
2768 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
2769 from iso-8859-1 to ISO8859-1.
2770 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
2771 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
2772 * 22_locale/collate/hash/wchar_t/2.cc: Same.
2773 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
2774 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
2775 * 22_locale/collate/transform/wchar_t/2.cc: Same.
2776 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
2777 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
2779 2004-02-18 Paolo Carlini <pcarlini@suse.de>
2781 * include/bits/locale_facets.h (money_get<>::_M_extract):
2782 New, helper for do_get.
2783 (money_put<>::_M_insert): Likewise, for do_put.
2784 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2785 money_put<>::_M_insert): Define.
2786 (money_get<>::do_get(long double&), money_get<>::do_get(
2787 string_type&), money_put::do_put(long double),
2788 money_put::do_put(const string_type&)): Use the helpers.
2790 2004-02-18 Paolo Carlini <pcarlini@suse.de>
2792 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2793 Rewrite, avoiding recursion.
2794 (__gnu_internal::xwrite): Minor tweaks.
2796 2004-02-17 Stefan Olsson <stefan@xapa.se>
2798 * include/ext/mt_allocator.h: Removed the last
2799 pointer. Deallocated blocks are now added to the front of
2800 freelists as proposed by Felix Yen. This gives roughly 10%
2801 performance boost and saves some memory.
2802 * docs/html/ext/mt_allocator.html: Change due to that deallocated
2803 blocks now are added to the front of freelists. The reason to this
2804 approach is also explained.
2806 2004-02-17 Paolo Carlini <pcarlini@suse.de>
2808 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2809 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
2810 grouping fidelity conditional.
2812 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2814 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
2815 Qualify exception with std::.
2816 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
2817 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2818 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2819 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2820 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2822 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2824 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
2825 for now that the catch block is not reached.
2826 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
2828 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2830 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2831 Fix parsing of the remaining sign characters.
2832 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
2833 the input is scanned 'til eof.
2834 * 22_locale/money_get/get/char/4.cc: Likewise.
2835 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
2836 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
2837 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
2838 not do_pos_format: the former is the only one that matters during
2840 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
2842 * 22_locale/money_get/get/char/6.cc: Minor tweak.
2843 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
2845 2004-02-15 David Asher <david.asher@cavium.com>
2848 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
2849 access __olds beyond __oldlen.
2851 2004-02-14 Paolo Carlini <pcarlini@suse.de>
2853 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
2854 sure the exception is actually thrown.
2855 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2856 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2857 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2859 2004-02-14 Paolo Carlini <pcarlini@suse.de>
2862 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
2863 In case of conversion errors, throw ios_failure; simplify.
2864 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
2865 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2866 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
2867 previously we didn't throw in case of conversion errors, instead
2868 just returned eof().
2869 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2870 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2871 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2873 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
2874 Trivial simplification of a conditional.
2876 2004-02-12 Paolo Carlini <pcarlini@suse.de>
2878 PR libstdc++/13731 (final part: writev)
2879 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2880 New, a wrapper around writev() handling partial writes.
2881 (__basic_file<char>::xwrite): Move to __gnu_internal and make
2883 (__basic_file<char>::xsputn): Update call.
2884 (__basic_file<char>::xsputn_2): Likewise.
2885 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2886 Don't declare, now static.
2888 2004-02-11 Stefan Olsson <stefan@xapa.se>
2890 * docs/html/ext/mt_allocator.html: New.
2892 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
2894 * docs/html/20_util/allocator.html: New file, consolidate
2895 allocator information here. Revamp.
2896 * docs/html/documentation.html: Change links.
2897 * docs/html/20_util/howto.html: Same.
2898 * docs/html/ext/howto.html: Same.
2900 2004-02-11 Paolo Carlini <pcarlini@suse.de>
2902 PR libstdc++/13731 (first part: write)
2903 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2905 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
2906 Define it: a wrapper around write() handling partial write.
2907 (__basic_file<char>::xsputn): Use it.
2908 (__basic_file<char>::xsputn_2): Likewise.
2910 2004-02-11 Paolo Carlini <pcarlini@suse.de>
2911 Petur Runolfsson <peturr02@ru.is>
2914 * include/std/std_istream.h (operator>>(__istream_type& (*)
2915 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
2916 operator>>(ios_base& (*)(ios_base&))): Declare inline.
2917 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
2918 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
2919 operator<<(ios_base& (*) (ios_base&))): Likewise.
2920 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
2922 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
2925 * config/linker-map.gnu: Add typeinfo and typeinfo name for
2926 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
2929 * config/linker-map.gnu: Add typeinfo and typeinfo name for
2930 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
2932 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
2934 * include/ext/pool_allocator.h: Include c++config.h.
2936 2004-02-09 Stefan Olsson <stefan@xapa.se>
2938 * include/ext/mt_allocator.h: thread_id is unused in non threaded
2939 applications and now has a ifdef to remove it completely on
2940 compilers without thread support. Include stdlib.h due to a
2941 compiler warning on getenv().
2943 2004-02-09 Paul Brook <paul@codesourcery.com>
2945 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
2947 2004-02-09 Paolo Carlini <pcarlini@suse.de>
2950 * src/locale_init.cc (locale::global(const locale&)): Use
2951 locale::name() in order to decide whether calling setlocale.
2952 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
2954 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
2955 Avoid computing &= unnecessarily.
2957 2004-02-09 James E Wilson <wilson@specifixinc.com>
2960 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
2961 __builtin_extend_pointer.
2963 2004-02-09 Paolo Carlini <pcarlini@suse.de>
2966 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
2967 Don't leave dangling pointers.
2968 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
2969 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
2970 facet is needed in the final test.
2972 2004-02-09 Bernardo Innocenti <bernie@develer.com>
2974 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
2975 * configure: Regenerate.
2977 2004-02-08 Richard Henderson <rth@redhat.com>
2980 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
2981 uncaughtExceptions during nested catch rethrow.
2982 * testsuite/18_support/14026.cc: New.
2984 2004-02-08 Paolo Carlini <pcarlini@suse.de>
2986 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
2987 When working in place remember to set the state to sharable
2988 (otherwise, _M_mutate does it).
2990 2004-02-08 Bernardo Innocenti <bernie@develer.com>
2992 * include/bits/allocator.h, include/bits/basic_ios.h,
2993 include/bits/basic_ios.tcc, include/bits/basic_string.h,
2994 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
2995 include/bits/char_traits.h, include/bits/codecvt.h,
2996 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
2997 include/bits/demangle.h, include/bits/deque.tcc,
2998 include/bits/fstream.tcc, include/bits/functexcept.h,
2999 include/bits/gslice.h, include/bits/gslice_array.h,
3000 include/bits/indirect_array.h, include/bits/ios_base.h,
3001 include/bits/istream.tcc, include/bits/list.tcc,
3002 include/bits/locale_classes.h, include/bits/locale_facets.h,
3003 include/bits/locale_facets.tcc, include/bits/localefwd.h,
3004 include/bits/mask_array.h, include/bits/ostream.tcc,
3005 include/bits/postypes.h, include/bits/slice_array.h,
3006 include/bits/sstream.tcc, include/bits/stl_algo.h,
3007 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
3008 include/bits/stl_construct.h, include/bits/stl_deque.h,
3009 include/bits/stl_function.h, include/bits/stl_heap.h,
3010 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
3011 include/bits/stl_list.h, include/bits/stl_map.h,
3012 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
3013 include/bits/stl_numeric.h, include/bits/stl_pair.h,
3014 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
3015 include/bits/stl_relops.h, include/bits/stl_set.h,
3016 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
3017 include/bits/stl_threads.h, include/bits/stl_tree.h,
3018 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
3019 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
3020 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
3021 include/bits/type_traits.h, include/bits/valarray_after.h,
3022 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
3023 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
3024 trailing whitespace.
3026 2004-02-06 Paolo Carlini <pcarlini@suse.de>
3028 * include/bits/basic_string.h: Fix comment.
3030 2004-02-06 Paolo Carlini <pcarlini@suse.de>
3032 * include/bits/stl_construct.h: Wrap overlong lines, reformat
3033 according to the coding standards.
3034 * include/bits/stl_pair.h: Likewise.
3035 * include/bits/stl_raw_storage_iter.h: Likewise.
3036 * include/bits/stl_stack.h: Likewise.
3037 * include/bits/stl_uninitialized.h: Likewise.
3038 * include/bits/stream_iterator.h: Likewise.
3039 * include/bits/streambuf_iterator.h: Likewise.
3040 * include/bits/type_traits.h: Likewise.
3042 2004-02-06 Paolo Carlini <pcarlini@suse.de>
3044 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
3047 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
3049 * scripts/check_performance: Support PCH.
3051 * scripts/check_performance (CXX): Add -DNOTHREAD.
3052 * testsuite/performance/20_util/allocator/insert.cc: Integrate
3053 threaded tests from insert_insert.cc. Tweak iterations,
3054 remove special cases.
3055 * testsuite/performance/20_util/allocator/insert_insert.cc:
3056 Make all tests single-threaded. Tweak iterations.
3057 * testsuite/performance/20_util/allocator/map_thread.cc:
3059 * testsuite/performance/20_util/allocator/producer_consumer.cc:
3062 2004-02-05 Geoffrey Keating <geoffk@apple.com>
3066 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
3067 'gcc-lib'. Add comment about poorly-named variables.
3068 * aclocal.m4: Regenerate.
3069 * configure: Regenerate.
3071 2004-02-05 Paolo Carlini <pcarlini@suse.de>
3073 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
3074 Thousands-sep are always optional; thousands-sep are not allowed
3075 after the decimal_point.
3076 * testsuite/22_locale/money_get/get/char/12.cc: New.
3077 * testsuite/22_locale/money_get/get/char/13.cc: New.
3078 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
3079 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
3081 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
3082 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3083 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3084 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3085 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3086 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3087 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3088 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3090 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
3092 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
3094 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
3096 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
3098 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
3099 it to decide whether FIONREAD should take an off_t or int argument.
3101 2004-02-05 Paolo Carlini <pcarlini@suse.de>
3103 * include/bits/stl_function.h: Minor formatting changes.
3105 2004-02-04 Zack Weinberg <zack@codesourcery.com>
3107 Revert previous change to config/abi/*/baseline_symbols.txt.
3109 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
3110 Zack Weinberg <zack@codesourcery.com>
3112 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
3114 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
3115 (__basic_file<char>::_M_open_mode): Delete.
3116 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
3118 * testsuite/27_io/basic_filebuf/close/char/9964.cc
3119 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
3120 Correct flags to filebuf::open calls.
3122 * config/abi/alpha-freebsd5/baseline_symbols.txt
3123 * config/abi/alpha-linux-gnu/baseline_symbols.txt
3124 * config/abi/hppa-linux-gnu/baseline_symbols.txt
3125 * config/abi/i386-freebsd4/baseline_symbols.txt
3126 * config/abi/i386-freebsd5/baseline_symbols.txt
3127 * config/abi/i486-linux-gnu/baseline_symbols.txt
3128 * config/abi/ia64-linux-gnu/baseline_symbols.txt
3129 * config/abi/mips-linux-gnu/baseline_symbols.txt
3130 * config/abi/sparc-freebsd5/baseline_symbols.txt
3131 * config/abi/sparc-linux-gnu/baseline_symbols.txt
3132 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
3133 Remove entry for __basic_file<char>::_M_open_mode.
3135 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
3137 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
3139 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
3141 * testsuite/performance/20_util/producer_consumer.cc: New.
3142 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
3144 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
3146 * testsuite/performance/20_util/allocator.cc: Move to..
3147 * testsuite/performance/20_util/allocator/insert.cc: ...here.
3148 * testsuite/performance/20_util/allocator_thread.cc: Move to...
3149 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
3150 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
3151 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
3153 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
3155 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
3156 * docs/html/faq/index.txt: Regenerate.
3158 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
3160 * include/ext/debug_allocator.h: _M_extra now stands for the
3161 number of extra objects instead of the number of extra bytes.
3162 (debug_allocator::allocate): Adjust.
3163 (debug_allocator::deallocate): Adjust.
3165 * include/ext/pool_allocator.h: Fix typo.
3167 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
3168 Benjamin Kosnik <bkoz@redhat.com>
3170 * testsuite/performance/20_util/allocator.cc: Add map,
3172 * testsuite/performance/20_util/allocator_thread.cc: Same.
3174 2004-02-03 Paolo Carlini <pcarlini@suse.de>
3176 * include/bits/basic_string.h (insert(iterator)): Remove,
3177 non-standard and already scheduled for removal.
3179 2004-02-03 Paolo Carlini <pcarlini@suse.de>
3181 * include/bits/stl_iterator_base_funcs.h: Minor formatting
3182 and indentation tweaks.
3183 * include/bits/stl_iterator_base_types.h: Likewise.
3184 * include/bits/stl_list.h: Likewise.
3185 * include/bits/stl_map.h: Likewise.
3186 * include/bits/stl_tempbuf.h: Likewise.
3188 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
3190 * include/bits/gslice.h, include/bits/gslice_array.h,
3191 include/bits/indirect_array.h, include/bits/mask_array.h,
3192 include/bits/slice_array.h, include/bits/stl_numeric.h,
3193 include/std/std_valarray.h: Update copyright years.
3195 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
3197 * include/bits/gslice.h (gslice): Document.
3198 * include/bits/gslice_array.h (gslice_array): Document.
3199 * include/bits/indirect_array (indirect_array): Document.
3200 * include/bits/mask_array (mask_array): Document.
3201 * include/bits/slice_array.h (slice,slice_array): Document.
3202 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
3203 adjacent_difference): Document
3204 * include/std/std_valarray.h (valarray): Document.
3206 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
3208 * docs/html/19_diagnostics/howto.html: Move verbose terminate
3210 * docs/html/18_support/howto.html: Here.
3211 * docs/html/documentation.html: Add reference here.
3213 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3215 * config/locale/gnu/c++locale_internal.h: Remove prototypes
3216 of no longer used GLIBC thread locale functions.
3218 2004-02-02 Eric Christopher <echristo@redhat.com>
3219 Zack Weinberg <zack@codesourcery.com>
3221 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
3223 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
3224 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
3225 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
3226 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
3227 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
3228 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
3229 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
3230 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3233 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3235 * include/bits/stl_function.h: Additional minor tweaks.
3236 * include/bits/stl_multiset.h: Likewise.
3238 * include/bits/stl_queue.h: Minor tweaks.
3240 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3242 PR libstdc++/13976 (continued)
3243 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
3244 Make the second parameter unnamed, to void unused parameter
3246 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
3248 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3251 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
3252 Make the second parameter unnamed, to void unused parameter
3254 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
3255 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
3257 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3259 * include/bits/stl_algo.h: Additional minor tweaks.
3260 * include/bits/stl_map.h: Likewise.
3261 * include/bits/stl_multimap.h: Likewise.
3262 * include/bits/stl_multiset.h: Likewise.
3263 * include/bits/stl_set.h: Likewise.
3264 * include/bits/stl_tree.h: Likewise.
3266 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3268 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
3271 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3273 * include/bits/stl_function.h: Additional minor tweaks.
3275 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3277 * include/bits/deque.tcc: Wrap overlong lines, constify
3278 a few variables, reformat according to the coding standards.
3279 * include/bits/list.tcc: Likewise.
3280 * include/bits/stl_deque.h: Likewise.
3281 * include/bits/stl_function.h: Likewise.
3282 * include/bits/stl_iterator.h: Likewise.
3283 * include/bits/stl_iterator_base_funcs.h: Likewise.
3284 * include/bits/stl_iterator_base_types.h: Likewise.
3285 * include/bits/stl_list.h: Likewise.
3286 * include/bits/stl_map.h: Likewise.
3287 * include/bits/stl_multimap.h: Likewise.
3288 * include/bits/stl_multiset.h: Likewise.
3289 * include/bits/stl_relops.h: Likewise.
3290 * include/bits/stl_set.h: Likewise.
3292 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3294 * include/bits/stl_bvector.h: Wrap overlong lines, constify
3295 a few variables, reformat according to the coding standards.
3296 * include/bits/stl_tree.h: Likewise.
3298 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3300 * include/bits/stl_algo.h: Minor additional reformat, add
3302 * include/bits/stl_algobase.h: Add copyright year.
3304 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3306 * include/bits/stl_algo.h: Wrap overlong lines, constify
3307 a few variables, reformat according to the coding standards.
3308 * include/bits/stl_algobase.h: Likewise.
3309 * include/bits/stl_heap.h: Likewise.
3311 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3313 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
3315 * include/bits/basic_string.h: Fix two comments.
3317 2004-01-31 Per Bothner <per@bothner.com>
3319 * include/ext/mt_allocator.h
3320 (__mt_alloc::_S_thread_freelist_mutex): Guard with
3321 __GTHREAD_MUTEX_INIT.
3323 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3325 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
3327 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3329 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
3330 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
3331 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
3333 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
3335 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
3336 Don't use clear, but instead assign. Use insert.
3338 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
3340 * src/demangle.cc: Add instantiations.
3341 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
3342 * src/Makefile.in: Regenerate.
3344 2004-01-30 David Edelsohn <edelsohn@gnu.org>
3346 * src/allocator.cc: Protect _S_get_thread_id() and
3347 _S_thread_key_destr() with #ifdef __GTHREADS.
3349 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3351 Reshuffle performance testsuite.
3352 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
3353 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
3354 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
3355 fstream_seek_write.cc, ifstream_extract_float.cc,
3356 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
3357 list_create_fill_sort.cc, map_create_fill.cc,
3358 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
3359 ofstream_insert_float.cc, ofstream_insert_int.cc,
3360 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
3361 wchar_t_out.cc: Split into...
3362 * testsuite/performance/20_util/allocator.cc: New.
3363 * testsuite/performance/20_util/allocator_map_thread.cc: New.
3364 * testsuite/performance/20_util/allocator_thread.cc: New.
3365 * testsuite/performance/21_strings/string_append: New.
3366 * testsuite/performance/22_locale/is_wchar_t.cc: New.
3367 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
3368 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
3369 * testsuite/performance/22_locale/wchar_t_in.cc: New.
3370 * testsuite/performance/22_locale/wchar_t_length.cc: New.
3371 * testsuite/performance/22_locale/wchar_t_out.cc: New.
3372 * testsuite/performance/23_containers/container_benchmark.cc: New.
3373 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
3374 * testsuite/performance/23_containers/map_create_fill.cc: New.
3375 * testsuite/performance/26_numerics/complex_norm.cc: New.
3376 * testsuite/performance/27_io/cout_insert_int.cc: New.
3377 * testsuite/performance/27_io/filebuf_copy.cc: New.
3378 * testsuite/performance/27_io/filebuf_sputc.cc: New.
3379 * testsuite/performance/27_io/fstream_seek_write.cc: New.
3380 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
3381 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
3382 * testsuite/performance/27_io/ifstream_getline.cc: New.
3383 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
3384 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
3386 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3388 * include/bits/basic_string.tcc (_Rep::_S_create):
3389 Never allocate a string bigger than max_size(); always keep
3390 __capacity and __size in sync to avoid memory leaks at
3393 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3395 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3396 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
3397 the double loop, streamline.
3399 * include/bits/basic_string.tcc: Very minor tweaks.
3401 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
3403 * scripts/check_performance: Only compile with $THREAD_FLAG
3404 when test is marked to require it. Allow multiple
3405 compilations/executions of marked tests.
3406 * testsuite/testsuite_performance.h (report_performance):
3407 Report dynamic thread support status.
3408 (report_header): Likewise.
3409 * testsuite/performance/allocator.cc: Stabilize iteration
3410 count. Support more allocators. Mark each allocator test to
3411 run and report independently.
3412 * testsuite/performance/allocator_map_thread.cc: Likewise.
3413 * testsuite/performance/allocator_thread.cc: Likewise.
3415 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
3417 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
3418 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
3419 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
3420 std::get_temporary_buffer() instead of duplicating its code.
3421 Update to C++STYLE conventions.
3422 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
3423 new() instead of std::malloc().
3424 (return_temporary_buffer): Use ::operator delete() instead of
3427 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
3429 * include/bits/allocator.h: Temporary switch to new_allocator as
3430 the default to unjam bootstraps.
3432 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
3434 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
3435 * include/Makefile.in: Regenerate.
3436 * include/bits/allocator_traits.h: Remove.
3437 * include/bits/allocator.h: Remove allocator_traits.h include, and
3439 (allocator): Empty base class, inherit from the underlying allocator.
3440 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
3441 * src/allocator.cc: ...here. New. For the underlying allocators.
3442 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
3443 * config/linker-map.gnu: Remove __pool_alloc bits.
3444 * src/Makefile.am (sources): Add allocator.cc.
3445 * src/Makefile.in: Regenerate.
3446 * testsuite/20_util/allocator/1.cc: Split second test into...
3447 * testsuite/20_util/allocator/8230.cc: ...this.
3448 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
3449 typedef to use std::allocatore. Format.
3450 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
3452 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
3453 __throw_bad_alloc calls. Don't include <memory>.
3454 * include/ext/malloc_allocator.h: Remove <memory> include.
3455 * include/ext/new_allocator.h (new_allocator): Same.
3456 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
3457 declaration. Switch __alloc to _Alloc.
3458 * include/ext/hashtable.h: Remove __alloc.
3459 * include/backward/alloc.h: Only inject allocator, not
3460 implementation details.
3462 * include/ext/mt_allocator.h: Replace free with delete.
3464 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
3466 * src/globals_io.cc: Change to __gnu_internal namespace.
3467 * src/globals_locale.cc: Same.
3468 * src/locale_init.cc: Same.
3469 * src/ios_init.cc: Same.
3471 2004-01-28 Stefan Olsson <stefan@snon.net>
3473 * include/ext/mt_allocator.h: Replaced all malloc() calls with
3474 operator new(). Added support for the env variable
3475 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
3476 one in allocate() as well). Fix typos.
3478 2004-01-28 Paolo Carlini <pcarlini@suse.de>
3480 * include/bits/basic_string.h (_S_create(size_t,
3481 const _Alloc&): Change signature to take two size_type
3483 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3484 _InIterator, const _Alloc&, input_iterator_tag)): Update
3486 (_S_construct(_InIterator, _InIterator, const _Alloc&,
3487 forward_iterator_tag)): Likewise.
3488 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
3489 (_M_mutate(size_type, size_type, size_type)): Don't
3490 implement the exponential growth policy, demand it to
3491 _S_create, update call and simplify.
3492 (_M_clone(const _Alloc&, size_type)): Likewise.
3493 (_S_create(size_type, size_type, const _Alloc&)): Implement
3494 the growth policy, simplify otherwise.
3496 * include/bits/basic_string.h (_Rep::operator[]): Tweak
3497 signature to take a size_type, consistently with the other
3500 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
3502 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
3503 delete declarations, add include and test variable.
3505 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
3507 * include/bits/codecvt.h, include/bits/locale_facets.h,
3508 include/bits/postypes.h, include/bits/stl_bvector.h,
3509 include/bits/stl_multiset.h, include/bits/stl_set.h,
3510 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
3511 include/std/std_complex.h: Document.
3513 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
3516 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
3517 iword/pword selector.
3518 (ios_base::iword, ios_base::pword): Use it.
3519 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
3520 iword or pword member on alloc failure.
3521 * testsuite/27_io/ios_base/storage/11584.cc: New test.
3523 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
3524 PJ Darcy <darcypj@us.ibm.com>
3526 * configure.host: Add support for *-tpf.
3527 * crossconfig.m4: Likewise.
3528 * configure: Regenerate.
3529 * config/os/tpf: New directory.
3530 * config/os/tpf/os_defines.h: New file.
3531 * config/os/tpf/ctype_base.h: Likewise.
3532 * config/os/tpf/ctype_inline.h: Likewise.
3533 * config/os/tpf/ctype_noninline.h: Likewise.
3535 2004-01-27 Paolo Carlini <pcarlini@suse.de>
3538 * include/bits/sstream.tcc: Guard use of extern template.
3540 2004-01-27 Paolo Carlini <pcarlini@suse.de>
3542 * include/bits/basic_string.tcc
3543 (basic_string(const basic_string&, size_type, size_type),
3544 basic_string(const basic_string&, size_type, size_type,
3545 const _Alloc&)): Avoid unnecessarily constructing iterators.
3547 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3549 * config/locale/generic/c_locale.cc: Fix throw messages
3550 to use the __N marker.
3551 * config/locale/gnu/c_locale.cc: Likewise.
3552 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
3554 * docs/html/17_intro/C++STYLE: Likewise.
3555 * include/bits/basic_ios.tcc: Likewise.
3556 * include/bits/fstream.tcc: Likewise.
3557 * include/bits/vector.tcc: Likewise.
3558 * include/ext/ropeimpl.h: Likewise.
3559 * include/std/std_bitset.h: Likewise.
3560 * src/ios.cc: Likewise.
3561 * src/locale.cc: Likewise.
3562 * src/localename.cc: Likewise.
3564 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3566 * include/bits/basic_string.h (_M_replace_aux): Use the
3567 __N marker in throw message.
3568 * include/bits/basic_string.tcc (assign(const _CharT*,
3569 size_type), insert(size_type, const _CharT*, size_type),
3570 replace(size_type, size_type, const _CharT*, size_type),
3571 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
3574 * include/bits/basic_string.h, include/bits/basic_string.tcc:
3575 Fold overlong lines, minor formatting changes.
3577 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3579 * include/bits/basic_string.h (replace(iterator, iterator,
3580 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
3581 (replace(iterator, iterator, const _CharT*)): Ditto.
3582 (replace(iterator, iterator, const _CharT*, size_type)):
3583 Add missing _GLIBCXX_DEBUG_PEDASSERT.
3585 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3587 * include/bits/basic_string.tcc (replace(size_type,
3588 size_type, const _CharT*, size_type)): Implement optimized
3589 in-place algorithm for non-overlapping ranges.
3590 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
3591 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
3593 * include/bits/basic_string.tcc (insert(size_type,
3594 const _CharT*, size_type)): Tweak slightly.
3596 2004-01-26 Andreas Schwab <schwab@suse.de>
3598 * config/locale/gnu/monetary_members.cc: Restore locale before
3599 rethrowing exception.
3601 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3603 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
3605 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
3608 * include/bits/basic_string.tcc: Very minor tweaks.
3610 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3612 * testsuite/performance/string_append.cc: Increase number
3615 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3617 * include/bits/basic_string.h (erase(size_type, size_type),
3618 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
3619 instead, thus avoiding redundant check for length_error.
3621 * include/bits/basic_string.h: Tweak some comments.
3623 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3625 * include/bits/basic_string.tcc (operator+(const _CharT*,
3626 const basic_string&)): No need to go through the append
3627 taking two iterators.
3629 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3631 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
3632 Revert last change to use std::min: machine language is worse.
3633 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
3634 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3635 (find_last_not_of(_CharT, size_type)): Ditto.
3637 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
3638 size_type)): Discard the value returned by _M_check.
3639 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
3640 (append(const basic_string&, size_type, size_type)): Ditto.
3641 (copy(_CharT*, size_type, size_type)): Ditto.
3642 (compare(size_type, size_type, const basic_string&)): Ditto.
3643 (compare(size_type, size_type, const basic_string&,
3644 size_type, size_type)): Ditto.
3645 (compare(size_type, size_type, const _CharT*)): Ditto.
3646 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3648 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3650 * include/bits/basic_string.h (insert(size_type,
3651 const basic_string&, size_type, size_type)): Define inline here.
3652 * include/bits/basic_string.tcc (insert(size_type,
3653 const basic_string&, size_type, size_type)): Move inline.
3655 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3657 * include/bits/basic_string.h (assign(const basic_string&,
3658 size_type, size_type)): Define inline here.
3659 (replace(size_type, size_type, const basic_string&,
3660 size_type, size_type)): Ditto.
3661 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3662 _InputIterator, __false_type)): Only declare.
3663 (_M_replace(iterator, iterator, _InputIterator,
3664 _InputIterator)): Remove.
3665 * include/bits/basic_string.tcc (assign(const basic_string&,
3666 size_type, size_type)): Move inline.
3667 (replace(size_type, size_type, const basic_string&,
3668 size_type, size_type)): Ditto.
3669 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3670 _InputIterator, __false_type)): Define, now does also what
3671 _M_replace did before.
3672 * src/string-inst.cc (_M_replace): Don't instantiate.
3674 * include/bits/basic_string.tcc (find(const _CharT*,
3675 size_type, size_type)): Tidy.
3676 (rfind(_CharT, size_type)): Ditto.
3677 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
3678 (find_first_not_of(_CharT, size_type)): Ditto.
3679 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3680 (find_last_not_of(_CharT, size_type)): Ditto.
3682 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3685 * include/debug/bitset (operator|=): Fix typo.
3686 * testsuite/23_containers/bitset/operations/13838.cc: New.
3688 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3690 * include/bits/basic_string.tcc (insert(size_type,
3691 const _CharT*, size_type __n)): Fix length_error check.
3692 (replace(size_type, size_type, const _CharT*, size_type):
3693 Ditto; call _M_replace_safe.
3694 (_M_replace_aux(size_type, size_type, size_type, _CharT):
3695 Fix length_error check.
3696 (_M_replace(iterator, iterator, _InputIterator,
3697 _InputIterator)): Ditto, tweak.
3698 (_M_replace_safe(size_type, size_type, const _CharT*,
3699 size_type)): Remove length_error check.
3701 * include/bits/basic_string.tcc (append(const basic_string&),
3702 append(const basic_string&, size_type, size_type)): Tweak
3705 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
3706 size_type)): If __n == 0 don't call traits::copy.
3708 2004-01-23 Stefan Olsson <stefan@snon.net>
3710 * include/ext/mt_allocator.h: Reduce lock contention.
3712 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3715 * include/bits/fstream.tcc (underflow): Remove unused
3717 * include/bits/streambuf_iterator.h (equal): Ditto.
3718 * include/bits/locale_facets.h (_M_convert_from_char):
3721 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3724 * config/linker-map.gnu (nan): Delete.
3725 * libmath/mathconf.h (NAN, nan): Delete.
3726 * linkage.m4 (nan): Don't check for it.
3727 * libmath/nan.c: Delete file.
3729 * config.h.in, configure: Regenerate.
3731 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3733 * include/bits/basic_string.h (push_back(_CharT)):
3734 Call _M_replace_aux.
3735 (insert(size_type, const basic_string&)): Trivial tweak.
3736 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
3737 (insert(iterator, _CharT)): Ditto.
3738 (erase(size_type, size_type)): Ditto.
3739 (erase(iterator)): Ditto.
3740 (erase(iterator, iterator)): Ditto.
3741 (replace(size_type, size_type, size_type, _CharT)): Ditto.
3743 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
3746 * testsuite/performance/allocator_map_thread.cc: New test.
3748 2004-01-22 Paolo Carlini <pcarlini@suse.de>
3750 * include/bits/locale_facets.tcc
3751 (money_put::do_put(..., long double)): Use the basic_string
3752 constructor for char arrays, not that for C-strings, to pass
3753 __digits to do_put(..., const string_type&): __ws isn't
3756 2004-01-22 Paolo Carlini <pcarlini@suse.de>
3758 * include/bits/basic_string.h (_M_replace_safe): Change
3759 signatures to take size_types and const _CharT*.
3760 (_M_replace_aux): Likewise, takes size_types instead of
3762 (append(size_type, _CharT)): Update call.
3763 (assign(size_type, _CharT)): Ditto.
3764 (replace(iterator, iterator, size_type, _CharT)): Ditto.
3765 (_M_replace_dispatch(iterator, iterator, _Integer,
3766 _Integer, __true_type)): Ditto.
3767 * include/bits/basic_string.tcc (assign(const _CharT*,
3769 (insert(size_type, const _CharT*, size_type)): Ditto.
3770 (replace(size_type, size_type, const _CharT*,
3772 (_M_replace(iterator, iterator, _InputIterator,
3773 _InputIterator)): Ditto.
3774 (append(const basic_string&)): Ditto.
3775 (append(const basic_string&, size_type, size_type): Ditto.
3776 (append(const _CharT*, size_type): Ditto.
3777 (_M_replace_safe, _M_replace_safe): Change definitions
3778 accordingly, simplify.
3779 * string-inst.cc (_M_replace_safe): Don't instantiate.
3781 2004-01-21 Paolo Carlini <pcarlini@suse.de>
3783 * include/bits/basic_string.tcc (append(const basic_string&)):
3784 Revert previous change.
3785 (append(const basic_string&, size_type, size_type)): Revert
3786 previous change, use _M_check and _M_limit.
3788 2004-01-21 Paolo Carlini <pcarlini@suse.de>
3790 * include/bits/basic_string.h (_M_check): Change to return
3791 a checked __pos and take an additional const char* argument.
3792 (_M_fold): Rename to _M_limit, change to return a size_type,
3793 corresponding to the __off limited to the actual length.
3794 (insert(size_type, size_type, _CharT)): Update call, call
3796 (insert(iterator, _CharT)): Call replace(iterator, iterator,
3797 size_type, _CharT) instead.
3798 (erase(size_type, size_type)): Update calls.
3799 (replace(size_type, size_type, size_type, _CharT)): Ditto.
3800 (substr(size_type, size_type)): Use _M_check.
3801 * include/bits/basic_string.tcc (basic_string(const basic_string&,
3802 size_type, size_type)): Update calls.
3803 (basic_string(const basic_string&, size_type, size_type,
3804 const _Alloc&)): Ditto.
3805 (assign(const basic_string&, size_type, size_type)): Use the
3806 new _M_check and _M_limit.
3807 (insert(size_type, const basic_string&, size_type, size_type):
3809 (insert(size_type, const _CharT*, size_type)): Ditto.
3810 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
3811 (replace(size_type, size_type, const basic_string&,
3812 size_type, size_type)): Ditto.
3813 (append(const basic_string&)): Ditto.
3814 (append(const basic_string&, size_type, size_type)): Ditto.
3815 (copy(_CharT*, size_type, size_type)): Ditto.
3816 (compare(size_type, size_type, const basic_string&)): Ditto.
3817 (compare(size_type, size_type, const basic_string&,size_type,
3819 (compare(size_type, size_type, const _CharT*)): Ditto.
3820 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3822 2004-01-19 Stefan Olsson <stefan@snon.net>
3824 * include/ext/mt_allocator.h: If a thread, when it dies, still has
3825 memory on it's freelist this memory is not returned to global
3826 list. Simplification of deallocate so that memory is always
3827 returned to the calling thread id's freelist instead of to
3828 global. Fix typos. Add volatile where appropriate.
3830 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
3832 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
3833 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
3834 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
3836 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3838 * src/debug.cc: Make sure all the names are prefixed with
3839 double (or single) underscore.
3841 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3843 * src/debug.cc: Trivial formatting change.
3845 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3847 * include/bits/basic_string.tcc (_S_construct(size_type,
3848 _CharT, const _Alloc&)): Remove redundant try/catch.
3849 (_M_mutate(size_type, size_type, size_type)): Ditto.
3850 (_M_clone(const _Alloc&, size_type)): Ditto.
3852 2004-01-18 Paolo Carlini <pcarlini@suse.de>
3854 * include/bits/basic_string.h (c_str()): Simplify, due to
3855 21.3.4 the internal representation is always kept null-terminated.
3856 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
3857 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
3858 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
3861 2004-01-18 Paolo Carlini <pcarlini@suse.de>
3863 * include/bits/basic_string.h (append(size_type, _CharT)):
3864 Moved inline, just call _M_replace_aux, no source iterators at
3865 risk of being clobbered.
3866 (assign(size_type, _CharT)): Call directly _M_replace_aux.
3867 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3868 input_iterator_tag)): Remove fifth unused argument.
3869 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3870 _InputIterator, __false_type)): Update call.
3871 * include/bits/basic_string.tcc (replace(size_type, size_type,
3872 const _CharT*, size_type)): Update call.
3873 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
3874 throw string literal.
3875 (_M_replace_safe(iterator, iterator, _ForwardIterator,
3876 _ForwardIterator)): Likewise.
3877 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3878 input_iterator_tag)): Remove fifth unused argument.
3879 (append(size_type __n, _CharT __c)): Move inline.
3880 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
3881 const C*, const C*, input_iterator_tag)): Remove fifth unused
3884 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
3886 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
3887 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
3889 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
3891 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
3894 2004-01-15 Stefan Olsson <stefan@snon.net>
3896 * include/ext/mt_allocator.h: Reuse thread id's as soon as
3897 possible by changing the behaviour of thread_freelist to do
3898 push_front when threads die instead of push_back.
3900 2004-01-14 Paolo Carlini <pcarlini@suse.de>
3902 * include/bits/locale_facets.h (struct __numpunct_cache):
3903 Add member _M_grouping_size, caching the length of _M_grouping.
3904 (__numpunct_cache<>::_M_cache): Assign the latter.
3905 (__verify_grouping): Move declaration...
3906 * include/bits/locale_facets.tcc (__verify_grouping):
3907 ... here, change signature to take a const char* and a size_t
3908 for the grouping; not a template anymore.
3909 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
3910 Likewise change signature and tweak consistently.
3911 (num_get::_M_extract_float, num_get::_M_extract_int,
3912 num_put::_M_insert_int, num_put::_M_insert_float,
3913 money_get::do_get(string_type&), money_get::do_put(string_type)):
3915 * config/locale/generic/numeric_members.cc
3916 (numpunct<>::_M_initialize_numpunct): Assign the new member.
3917 * config/locale/gnu/numeric_members.cc
3918 (numpunct<>::_M_initialize_numpunct): Likewise.
3919 * src/locale-inst.cc (__add_grouping): Tweak signature.
3920 (__verify_grouping): Don't instantiate, not a template anymore.
3922 * include/bits/locale_facets.h: Rename _M_truename_len ->
3923 _M_truename_size, _M_falsename_len -> _M_falsename_size.
3924 * include/bits/locale_facets.tcc: Likewise.
3925 * config/locale/generic/numeric_members.cc: Likewise.
3926 * config/locale/gnu/numeric_members.cc: Likewise.
3928 2004-01-14 Stefan Olsson <stefan@snon.net>
3930 * include/ext/mt_allocator.h: Fixups.
3931 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
3932 * testsuite/performance/allocator_thread.cc: Same.
3934 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
3936 * testsuite/performance/ifstream_extract_float.cc: Add higher
3938 * testsuite/performance/ofstream_insert_float.cc: Same.
3940 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3942 * src/locale-misc-inst.cc (__convert_from_v(long),
3943 __convert_from_v(unsigned long), __convert_from_v(long long),
3944 __convert_from_v(unsigned long long)): Remove, unused.
3946 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
3948 * testsuite/performance/ifstream_extract_float.cc: New.
3949 * testsuite/performance/ofstream_insert_float.cc: Float generation
3952 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
3953 * 20_util/auto_ptr/1.cc: ...this.
3954 * 20_util/auto_ptr/2.cc: Same.
3955 * 20_util/auto_ptr/3.cc: Same.
3956 * 20_util/auto_ptr/3946.cc: Same.
3957 * 20_util/auto_ptr/4.cc: Same.
3958 * 20_util/auto_ptr/5.cc: Same.
3959 * 20_util/auto_ptr/6.cc: Same.
3960 * 20_util/auto_ptr/7.cc: Same.
3961 * 20_util/auto_ptr/assign_neg.cc
3962 * 20_util/pairs.cc: Break into...
3963 * 20_util/pair/1.cc: ...this.
3964 * 20_util/pair/2.cc: Same.
3965 * 20_util/pair/3.cc: Same.
3966 * 20_util/pair/4.cc: Same.
3968 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3970 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
3971 Set correctly just basefield, the only group that matters.
3973 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3975 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
3976 (_Rope_rep_base): Inherit directly from the rope allocator;
3977 use rebinding instead of _Alloc_traits; pick up data member
3978 from _Rope_rep_alloc_base.
3979 (_Rope_alloc_base): Eliminate.
3980 (_Rope_base): Inherit directly from the rope allocator; use
3981 rebinding instead of _Alloc_traits; pick up data member from
3983 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
3984 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
3986 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3989 * include/bits/basic_string.tcc (compare(size_type, size_type,
3990 const _CharT*, size_type)): Implement correctly the resolution
3991 of DR 5: basically, s is a char array, -not- a C string.
3992 * include/bits/basic_string.h: Tweak some comments.
3993 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
3994 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
3996 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
3998 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
4001 2004-01-12 Paolo Carlini <pcarlini@suse.de>
4003 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
4005 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
4008 2004-01-12 Paolo Carlini <pcarlini@suse.de>
4010 * include/bits/locale_facets.h (struct __numpunct_cache):
4011 Add members _M_truename_len and _M_falsename_len, caching
4012 the lengths of _M_truename and _M_falsename.
4013 (__numpunct_cache<>::_M_cache): Assign the latter.
4014 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
4015 num_put::do_put(bool)): Use the new members, thus avoiding
4016 computing string lengths again and again.
4017 * config/locale/generic/numeric_members.cc
4018 (numpunct<>::_M_initialize_numpunct): Assign the new members.
4019 * config/locale/gnu/numeric_members.cc
4020 (numpunct<>::_M_initialize_numpunct): Likewise.
4022 2004-01-12 Mark Mitchell <mark@codesourcery.com>
4024 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
4025 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
4027 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
4028 and remove Cygwin XFAIL.
4029 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
4030 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
4031 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
4032 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
4034 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
4035 * testsuite/27_io/objects/char/7.cc: Likewise.
4036 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
4037 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
4038 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
4040 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
4042 * include/std/std_complex.h (std::complex<>::real): Return a
4043 reference. Add non-const overload.
4044 (std::complex<>::real): Likewise.
4045 (std::real): Likewise.
4046 (std::imag): Likewise.
4047 (std::operator+): Tidy.
4048 (std::operator-): Likewise.
4049 (std::operator*): Likewise.
4050 (std::operator/): Likewise.
4051 (std::operator>>): Likewise.
4053 2004-01-11 Paolo Carlini <pcarlini@suse.de>
4056 * include/bits/fstream.tcc (imbue): Exploit the external
4057 buffer to imbue 'on the fly' a new locale and convert its
4058 remainder with the new codecvt facet.
4059 (underflow): Tweak slightly to deal with this special case.
4060 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
4061 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
4062 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
4063 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
4064 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
4066 2004-01-10 Paolo Carlini <pcarlini@suse.de>
4068 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
4071 2004-01-10 Paolo Carlini <pcarlini@suse.de>
4074 * include/bits/locale_classes.h (class locale): Fix category
4076 * testsuite/22_locale/locale/13630.cc: Add.
4078 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
4080 * include/bits/locale_facets.h: Make a name really dependent. This
4081 will be needed when Core Issue 224 is implemented.
4083 2004-01-09 Paolo Carlini <pcarlini@suse.de>
4085 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
4086 * testsuite/performance/allocator_thread.cc: Likewise.
4088 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
4090 * crossconfig.m4: Add LFS, io bits to linux cross config.
4091 * acconfig.h: Remove obsolete bits, reorder.
4092 * config.h.in: Regenerate.
4096 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
4098 * include/bits/stl_list.h:
4099 * include/bits/list.tc:
4101 Performance enhancements for destructor, push_front(),
4102 push_back(), pop_front(), pop_back(), sort()
4103 Eliminated static_casts where possible.
4104 Moved code out of header files into new src/list.cc
4105 implementation file for library where possible.
4106 Remove inheritance from iterator class and create separate
4107 classes for non-constant and constant iterators.
4108 * include/bits/stl_tree.h (_Rb_tree class):
4110 Only erase contents in destructor.
4111 Eliminate unnecessary initialization in assignment operator.
4112 Optimize for the nominal case by not checking whether
4113 container is empty in clear().
4114 Re-order test in _M_insert() to improve performance.
4115 Move initialization of new node's left & right pointers to
4116 src/tree.cc to where new node's colour is initialized
4117 and to reduce the amount of inline code.
4118 Use _M_leftmost() and _M_end() to improve readability where
4120 Create separate classes for non-constant and constant
4121 iterators to clarify code, avoid extra template parameters and
4122 casting away constness.
4124 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
4126 * src/Makefile.am (sources): Add list.cc, tree.cc.
4127 * src/stl_tree.cc: Move to...
4128 * src/tree.cc: ...here.
4130 * config/linker-map.gnu: Tweaks.
4131 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
4132 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
4134 * bits/stl_vector.h: Column wrap comments.
4136 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
4138 (re-open) PR libstdc++/12658
4139 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
4140 (locale::global): Likewise.
4142 2004-01-07 Paolo Carlini <pcarlini@suse.de>
4144 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
4145 Remove redundant #include.
4146 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
4147 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
4148 re-enable normal testing.
4149 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
4151 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
4152 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
4154 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
4156 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
4158 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
4160 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
4162 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
4164 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
4166 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
4167 More properly, #include <locale>.
4168 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
4169 Remove redundant #include.
4170 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
4171 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
4172 redundant DejaGnu directive.
4173 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
4176 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
4177 Stefan Olsson <stefan@snon.net>
4179 * scripts/check_performance: Use -pthread.
4180 * testsuite/performance/allocator.cc: Tweaks, add list.
4181 * testsuite/performance/allocator_thread.cc: New.
4183 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
4185 * include/bits/locale_facets.h: Document public classes and
4187 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
4190 2004-01-06 Paolo Carlini <pcarlini@suse.de>
4192 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
4193 Remove redundant #includes.
4194 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
4196 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
4198 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
4199 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
4200 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
4201 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
4202 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
4203 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
4204 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
4205 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
4206 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
4207 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
4208 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
4209 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
4210 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
4211 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
4212 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
4214 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
4216 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
4218 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
4220 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
4222 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
4223 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
4224 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
4226 2004-01-04 Paolo Carlini <pcarlini@suse.de>
4228 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
4229 Remove redundant #includes.
4230 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
4232 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
4234 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
4236 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
4238 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
4240 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
4242 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
4244 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
4246 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
4248 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
4250 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
4252 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
4255 2004-01-04 Mark Mitchell <mark@codesourcery.com>
4258 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
4260 * testsuite/27_io/basic_fstream/4.cc: Likewise.
4261 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
4262 * testsuite/27_io/basic_ios/4.cc: Likewise.
4263 * testsuite/27_io/basic_iostream/4.cc: Likewise.
4264 * testsuite/27_io/basic_istream/4.cc: Likewise.
4265 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
4266 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
4267 * testsuite/27_io/basic_ostream/4.cc: Likewise.
4268 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
4269 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
4270 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
4272 2004-01-04 Paolo Carlini <pcarlini@suse.de>
4274 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
4275 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
4276 always use double underscored names.
4277 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
4279 * include/bits/locale_facets.h (struct __numpunct_cache):
4280 Dimension _M_atoms_out and _M_atoms_in one position smaller.
4281 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out