1 2004-07-28 Matt Austern <austern@apple.com>
3 * include/bits/stl_construct.h (_Destroy): New three-argument
4 overload that takes an allocator argument. Another inline
5 three-argument overload that takes std::allocator and dispatches
6 to the two-argument version.
7 * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
8 Change return type to void to match uninitialized_fill_n.
9 (__uninitialized_copy_a_): New function. Like uninitialized_copy
10 except that it takes an allocator and uses it for construct and
11 destroy. If the allocator is std::allocator, dispatches to
13 (__uninitialized_fill_a): Likewise.
14 (__uninitialized_fill_n_a): Likewise.
15 (__uninitialized_copy_copy): Give it an allocator argument.
16 (__uninitialized_fill_copy): Likewise.
17 (__uninitialized_copy_fill): Likewise.
18 * include/bits/deque.tcc: Use new forms defined in stl_construct.h
19 and stl_uninitialized.h. Replace use of single-argument _Construct
20 and _Destroy with use of allocator's construct and destroy methods.
21 * include/bits/list.tcc: Likewise.
22 * include/bits/stl_deque.h: Likewise.
23 * include/bits/stl_list.h: Likewise.
24 * include/bits/stl_tree.h: Likewise.
25 * include/bits/stl_vector.h: Likewise.
26 * include/bits/vector.tcc: Likewise.
27 * include/ext/hashtable.h: Use rebind so that allocator_type
28 has correct type for a container's allocator. Replace use of
29 single-argument _Construct and _Destroy with use of allocator's
30 construct and destroy methods.
31 * include/ext/memory (__uninitialized_copy_n_a): New function.
32 Like uninitialized_copy_n except that it takes an extra parameter,
33 an allocator, and uses it for construct and destroy operations.
34 * include/ext/rope: Use new forms defined in stl_construct.h,
35 stl_uninitialized.h, and ext/memory. Replace use of single-argument
36 _Construct and _Destroy with allocator construct and destroy methods.
37 * include/ext/ropeimpl.h: Likewise.
38 * include/ext/slist.h: Likewise.
39 * testsuite/testsuite_allocator.h (check_construct_destroy): New.
40 * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
41 * testsuite/23_containers/deque/check_construct_destroy.cc: New.
42 * testsuite/23_containers/list/check_construct_destroy.cc: New.
43 * testsuite/23_containers/set/check_construct_destroy.cc: New.
44 * testsuite/23_containers/vector/check_construct_destroy.cc: New.
45 * testsuite/ext/hash_check_construct_destroy.cc: New.
46 * testsuite/ext/slist_check_construct_destroy.cc: New.
48 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
50 2003-10-01 Eric Christopher <echristo@redhat.com>
51 * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
53 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
54 * config/cpu/sh/atomicity.h: New. Use movli and movco on SH4a.
56 2004-07-23 Benjamin Kosnik <bkoz@redhat.com>
59 * include/bits/locale_facets.tcc: Fix for -Werror.
61 2004-07-23 Jonathan Wakely <redi@gcc.gnu.org>
63 * docs/html/debug.html: Say debug mode only available since 3.4.0.
65 2004-07-21 Benjamin Kosnik <bkoz@redhat.com>
67 * docs/doxygen/mainpage.html: Clarify links.
68 * docs/doxygen/stdheader.cc: Add files.
69 * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
70 * docs/doxygen/user.cfg.in: New options, wrap.
72 2004-07-20 Danny Smith <dannysmith@users.sourceforge.net>
74 * include/c_std/std_cwchar.h (wcsstr): Correct signature.
76 2004-07-19 Benjamin Kosnik <bkoz@redhat.com>
79 * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
81 2004-07-17 Richard Sandiford <rsandifo@redhat.com>
84 * scripts/create_testsuite_files: Pass -print to find.
86 2004-07-15 Paolo Carlini <pcarlini@suse.de>
88 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
89 * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
91 2004-07-15 Jakub Jelinek <jakub@redhat.com>
94 * acinclude.m4 (glibcxx_shared_libgcc): Correct
95 glibcxx_shared_libgcc test for multilibs.
98 2004-07-14 Paolo Carlini <pcarlini@suse.de>
101 * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
102 the signature to return void, as per 20.4.4.3.
103 * include/bits/stl_vector.h (vector::vector(size_type,
104 const value_type&, const allocator_type&), vector::vector(size_type),
105 vector::_M_initialize_dispatch): Adjust callers.
106 * include/bits/vector.tcc (vector<>::_M_fill_assign,
107 vector<>::_M_fill_insert): Likewise.
108 * testsuite/20_util/memory/16505.cc: New.
110 2004-07-14 Paolo Carlini <pcarlini@suse.de>
112 * testsuite/22_locale/locale/cons/12658_thread-1.cc,
113 12658_thread-2.cc: Use __gnu_test::try_named_locale.
115 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
117 * docs/html/ext/mt_allocator.html: Add docs for _Tune.
118 * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
119 (__mt_alloc::_S_set_options): Same.
122 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
124 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
126 * configure: Regenerated.
128 2004-07-13 Paolo Carlini <pcarlini@suse.de>
130 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
131 to 12658_thread-1.cc and xfail.
132 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
133 simpler version of 12658_thread-1.cc, still failing on 3_3 and
134 not failing on 3_4/mainline - both on single processor and
135 multiprocessor machines.
137 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
139 * docs/html/abi.html: Remove non-public qualification.
141 * include/bits/concurrence.h: Tweak comments.
143 2004-07-11 Paolo Carlini <pcarlini@suse.de>
145 Add wchar_t counterparts of the basic_streambbuf<char> tests.
146 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
147 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
149 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
150 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
152 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
153 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
154 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
155 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
156 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
158 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
160 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
162 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
164 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
165 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
167 2004-07-11 Phil Edwards <phil@codesourcery.com>
169 * acinclude.m4: Cosmetic shell syntax fixes.
170 * configure.ac: Bring comment inline with reality.
171 * configure.host: Both of the above. Move 'arm' case to right
172 place in host_cpu switch.
173 * aclocal.m4, configure: Regenerate.
175 2004-07-09 Paolo Carlini <pcarlini@suse.de>
177 Add wchar_t counterparts of the basic_stringbuf<char> tests.
178 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
179 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
180 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
181 3599.cc, 9988.cc: Likewise.
182 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
184 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
186 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
188 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
190 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
191 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
192 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
193 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
195 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
197 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
199 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
201 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
202 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
204 2004-07-08 Paolo Carlini <pcarlini@suse.de>
206 * include/bits/gslice.h: Trivial formatting fixes.
207 * include/bits/gslice_array.h: Likewise.
208 * include/bits/indirect_array.h: Likewise.
209 * include/bits/mask_array.h: Likewise.
210 * include/bits/slice_array.h: Likewise.
211 * include/bits/valarray_after.h: Likewise.
212 * include/bits/valarray_array.h: Likewise.
213 * include/bits/valarray_before.h: Likewise.
214 * include/std/std_valarray.h: Likewise.
216 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
219 * include/bits/basic_string.h (basic_string::operator=): Revert.
221 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
223 * configure.ac (libtool_VERSION): To 6:2:0.
224 * configure: Regenerated.
226 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
228 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
231 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
233 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
235 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
238 2004-07-07 Paolo Carlini <pcarlini@suse.de>
241 * include/bits/sstream.tcc (overflow): When reallocating _M_string
242 use an exponential grow policy.
243 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
244 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
246 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
249 * crossconfig.m4: Add in bits for djgpp.
250 * configure: Regenerate.
252 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
254 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
255 instantiation of set and multiset (functor param given as int).
257 2004-07-04 Paolo Carlini <pcarlini@suse.de>
259 * include/bits/basic_string.h: Trivial formatting fixes and/or
260 const-ification of some variables.
261 * include/bits/deque.tcc: Likewise.
262 * include/bits/stl_algobase.h: Likewise.
263 * include/bits/stl_bvector.h: Likewise.
264 * include/bits/stl_construct.h: Likewise.
265 * include/bits/stl_deque.h: Likewise.
266 * include/bits/stl_pair.h: Likewise.
267 * include/bits/stl_vector.h: Likewise.
268 * include/bits/vector.tcc: Likewise.
270 2004-07-04 Paolo Carlini <pcarlini@suse.de>
272 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
273 systems with no COMDAT or weak support.
274 * testsuite/25_algorithms/copy/2.cc: Likewise.
275 * testsuite/25_algorithms/copy/3.cc: Likewise.
276 * testsuite/25_algorithms/copy/4.cc: Likewise.
278 2004-07-03 Paul Brook <paul@codesourcery.com>
280 * configure.ac: Set ABI_TWEAKS_SRCDIR.
281 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
282 setting atomicity_dir. Override type_cpu for arm based targets.
283 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
284 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
285 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
286 * libsupc++/vec.cc: Ditto.
287 * config/cpu/arm/cxxabi_tweaks.h: New file.
288 * config/cpu/generic/cxxabi_tweaks.h: New file.
289 * */Makefile.in: Regenerate.
290 * configure: Regenerate.
292 2004-07-02 Paolo Carlini <pcarlini@suse.de>
294 * include/bits/type_traits.h (_Is_normal_iterator): Move...
295 * include/bits/cpp_type_traits.h: ... here, renamed to
296 __is_normal_iterator and consistent with the other traits.
297 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
298 to the struct __copy_normal and three specializations.
299 (__copy_backward_output_normal_iterator,
300 __copy_backward_input_normal_iterator): Likewise, convert to
301 the struct __copy_backward_normal and three specializations.
302 (copy, copy_backward): Use the latter.
303 (__copy_aux, __copy_backward_aux): Very minor tweaks.
305 2004-07-01 Paolo Carlini <pcarlini@suse.de>
307 * include/bits/stl_algobase.h (__copy_trivial): Remove.
308 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
309 __is_trivially_copyable, __are_same and __copy::copy.
310 (__copy): Rewrite as a class template and two specializations.
311 (__copy_ni2): Simplify, just call __copy_aux.
313 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
315 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
316 for destination value type != source value type.
318 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
319 Per Bothner <per@bothner.com>
320 Mohan Embar <gnustuff@thisiscool.com>
323 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
324 (__glibcxx_mutex): Encapsulate mutex init function into type for
325 threaded configurations without __GTHREAD_MUTEX_INIT.
326 (lock::lock): Make device member a reference.
328 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
330 * src/allocator.cc: Same.
332 2004-06-30 Brad Spencer <spencer@infointeractive.com>
334 * include/ext/mt_allocator.h: Handle allocations at static
335 initialization that happen before _S_options is (automatically)
336 constructed; set _S_init even if _M_force_new is true.
338 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
340 * config/linker-map.gnu: Revert new exports.
342 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
343 Stuart Anderson <anderson@netsweng.com>
345 * config/linker-map.gnu: Add destructor exports for abstract base
346 classes to conform to LSB.
348 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
349 Paolo Carlini <pcarlini@suse.de>
351 * include/bits/cpp_type_traits.h: Add __is_pointer and
352 __is_trivially_copyable.
353 * include/bits/stl_algobase.h (fill, fill_n): Slightly
354 tweak to use the latter.
355 (__copy_backward_dispatch): Remove.
356 (__copy_backward_aux): Rewrite to use __is_pointer and
357 __is_trivially_copyable and __copy_backward::copy_b.
358 (__copy_backward): Rewrite as a class template and two
361 2004-06-30 Paolo Carlini <pcarlini@suse.de>
363 * testsuite/25_algorithms/copy.cc: Move to...
364 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
365 * testsuite/25_algorithms/copy/2.cc: New.
366 * testsuite/25_algorithms/copy/3.cc: New.
367 * testsuite/25_algorithms/copy/4.cc: New.
369 2004-06-29 Paul Brook <paul@codesourcery.com>
371 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
372 element size in the cookie.
374 2004-06-28 Paolo Carlini <pcarlini@suse.de>
376 * include/bits/cpp_type_traits.h: Move the additions to
377 namespace __gnu_internal outside of namespace std; trivial
380 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
382 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
383 Revert -Weffc++ changes that defined copy ctory and or assignment
385 * libsupc++/tinfo.cc (__upcast_result): Same.
387 2004-06-28 Paolo Carlini <pcarlini@suse.de>
389 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
390 the algorithm used to name the categories.
392 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
394 * include/Makefile.am: Give a .gch extension to
395 the PCH files, not only to the directory.
396 * include/Makefile.in: Regenerate.
398 2004-06-28 Paolo Carlini <pcarlini@suse.de>
400 * config/locale/gnu/monetary_members.cc
401 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
402 assignments of _M_decimal_point and _M_thousands_sep.
404 2004-06-27 Paolo Carlini <pcarlini@suse.de>
406 * docs/html/17_intro/contribute.html: Update some links.
407 * docs/html/17_intro/porting-howto.html: Likewise.
408 * docs/html/17_intro/porting-howto.xml: Likewise.
409 * docs/html/18_support/howto.html: Likewise.
410 * docs/html/21_strings/howto.html: Likewise.
411 * docs/html/27_io/howto.html: Likewise.
412 * docs/html/configopts.html: Likewise.
413 * docs/html/ext/howto.html: Likewise.
414 * docs/html/faq/index.html: Likewise.
415 * docs/html/install.html: Don't mention 2.x compilers.
417 2004-06-27 Paolo Carlini <pcarlini@suse.de>
419 * include/ext/rope: Trivial formatting fixes.
420 * include/ext/ropeimpl.h: Likewise.
422 2004-06-26 Paolo Carlini <pcarlini@suse.de>
425 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
426 availability of strto(u)ll, not used anymore in the iostreams.
427 * configure: Regenerate.
429 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
432 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
434 * configure: Regenerate.
436 2004-06-25 Paul Brook <paul@codesourcery.com>
438 * libsupc++/cxxabi.h: Define __ARM_EABI__
440 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
442 2004-06-25 Paul Brook <paul@codesourcery.com>
444 * include/bits/concurrence.h: Still create mutex object when
447 2004-06-25 Paolo Carlini <pcarlini@suse.de>
449 * include/bits/stl_algobase.h (fill, fill_n): Revert last
450 change: actually we need to copy construct an object of type
451 _Tp, not of type iterator_traits<>::value_type, therefore the
454 2004-06-25 Paolo Carlini <pcarlini@suse.de>
456 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
457 dispatch: use iterator_traits<>::value_type, not _Tp.
459 2004-06-25 Paolo Carlini <pcarlini@suse.de>
461 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
462 * testsuite/25_algorithms/fill/2.cc: Likewise.
464 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
465 Paolo Carlini <pcarlini@suse.de>
467 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
468 for fill and fill_n, respectively: when copying is cheap, use a
469 temporary to avoid a memory read in each iteration.
471 2004-06-25 Paolo Carlini <pcarlini@suse.de>
473 * testsuite/25_algorithms/fill/1.cc: New.
474 * testsuite/25_algorithms/fill/2.cc: Likewise.
476 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
478 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
479 Remove copy constructor and assignment operator.
481 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
483 * include/bits/concurrence.h (__gnu_cxx::lock): New.
484 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
485 (__pool_base::_M_get_mutex): New.
486 * include/bits/allocator.h: Tweak.
487 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
488 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
489 * include/bits/stl_threads.h: Remove.
490 * include/Makefile.am: Also here.
491 * include/Makefile.in: Regenerate.
493 * src/locale_init.cc: Use __gnu_cxx::lock.
495 * src/allocator.cc: Move all instantiations...
496 * src/allocator-inst.cc: ...here.
498 2004-06-23 Andrew Pinski <apinski@apple.com>
500 * linkage.m4: Remove check for libmx.
501 * configure: Regenerate.
503 2004-06-23 Paolo Carlini <pcarlini@suse.de>
506 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
507 Don't require the _DefaultConstructibleConcept.
508 (struct _ForwardIteratorConcept): Require it here.
510 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
512 * include/bits/istream.tcc (getline): Make sure arguments passed
513 to min/max have the same type.
514 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
515 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
517 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
519 * docs/html/abi.html: Update links.
521 2004-06-22 Paolo Carlini <pcarlini@suse.de>
523 * testsuite/26_numerics/complex_inserters_extractors.cc,
524 complex_value.cc, buggy_complex.cc: Move to...
525 * testsuite/26_numerics/complex/: ... here.
526 * testsuite/26_numerics/c99_classification_macros_c++.cc,
527 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
528 fabs_inline.cc: Move to...
529 * testsuite/26_numerics/cmath/: ... here.
530 * testsuite/26_numerics/binary_closure.cc, slice.cc,
531 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
532 valarray_name_lookup.cc, valarray_operators.cc,
533 valarray_subset_assignment.cc: Move to...
534 * testsuite/26_numerics/valarray/: ... here (new dir).
535 * testsuite/26_numerics/sum_diff.cc: Move to...
536 * testsuite/26_numerics/numeric/: ... here (new dir).
538 2004-06-22 Paolo Carlini <pcarlini@suse.de>
540 * include/std/std_istream.h (ignore(streamsize __n = 1,
541 int_type __delim = traits_type::eof())): Split into...
542 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
543 int_type __delim)): The first two can be much more simpler
544 and efficient than the fully general case; also, the last
545 two can take advantage of the same mechanism already used
547 * include/bits/istream.tcc (ignore(streamsize __n = 1,
548 int_type __delim = traits_type::eof()): Remove.
549 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
550 int_type __delim)): New.
552 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
554 * config/linker-map.gnu: Use wildcards for
555 __basic_file::sys_open(FILE*, _Ios_Openmode).
557 2004-06-20 Paolo Carlini <pcarlini@suse.de>
559 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
561 2004-06-18 Paolo Carlini <pcarlini@suse.de>
563 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
564 the alignment requested.
565 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
566 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
567 (__mt_alloc<>::deallocate): Likewise.
569 2004-06-18 Paolo Carlini <pcarlini@suse.de>
572 * include/debug/safe_base.h
573 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
574 _Safe_sequence_base::operator=): Provide definitions.
575 * testsuite/23_containers/bitset/cons/16020.cc: New.
577 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
579 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
580 (__pool_base): Remove unused template parameter. Add
581 protected. Move lock data into __pool_base::_Lock. Remove static
583 (__pool_base::_M_get_free_list): New.
584 (__pool_alloc): Move _S_force new here.
585 * src/allocator.cc: Move out of line __pool_base definitions here.
586 * config/linker-map.gnu: Export bits from __pool_base.
588 2004-06-18 Paolo Carlini <pcarlini@suse.de>
590 * config/locale/gnu/numeric_members.cc
591 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
592 assignments of _M_decimal_point and _M_thousands_sep.
593 * config/locale/gnu/time_members.cc
594 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
595 and reformat assignments of date and time fields.
597 2004-06-16 Paolo Carlini <pcarlini@suse.de>
599 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
600 to use _Data_allocate.
601 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
602 (rope<>::_S_substring): Likewise.
603 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
604 (rope<>::c_str()): Likewise.
605 (rope<>::replace_with_c_str()): Likewise.
607 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
608 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
610 (_Rope_iterator_base<>::_S_setcache): Likewise.
611 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
612 (rope<>::_S_substring): Likewise.
613 (rope<>::_S_dump): Likewise.
614 (rope<>::_S_fetch_ptr): Likewise.
615 (rope<>::_S_compare): Likewise.
616 (rope<>::replace_with_c_str()): Likewise.
618 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
619 * testsuite/ext/rope/2.cc: New.
621 2004-06-16 Paolo Carlini <pcarlini@suse.de>
622 Matt Austern <austern@apple.com>
624 * testsuite/ext/rope/3.cc: New.
626 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
628 * acinclude.m4: Remove useless multilib configury.
629 * Makefile.am: Remove useless multilib rules.
630 * aclocal.m4: Regenerate.
631 * Makefile.in: Regenerate.
632 * configure: Regenerate.
634 2004-06-15 Paolo Carlini <pcarlini@suse.de>
636 * include/ext/hashtable.h: Trivial formatting fixes.
637 * include/ext/rb_tree: Likewise.
639 2004-06-14 Paolo Carlini <pcarlini@suse.de>
641 * include/ext/hash_map: Trivial formatting fixes.
642 * include/ext/hash_set: Likewise.
643 * include/ext/memory: Likewise.
644 * include/ext/numeric: Likewise.
646 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
648 * Makefile.in: Regenerate with automake 1.8.5.
650 * include/Makefile.in: Same.
651 * libmath/Makefile.in: Same.
652 * libsupc++/Makefile.in: Same.
653 * po/Makefile.in: Same.
654 * src/Makefile.in: Same.
655 * testsuite/Makefile.in: Same.
657 2004-06-14 Paolo Carlini <pcarlini@suse.de>
659 * include/ext/slist: Trivial formatting fixes.
661 2004-06-14 Paolo Carlini <pcarlini@suse.de>
663 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
664 Don't use the 'magic number' 10 in the computation of __minlen;
665 never access __name past __minlen; in the loop over __i3, don't
666 decrease __nmatches and increase __i3 at once, only either of
669 2004-06-13 Paolo Carlini <pcarlini@suse.de>
671 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
672 time_get<>::do_get_date): Use only once _M_extract_via_format,
673 instead of going through "%X"/"%x" and calling it two times
676 2004-06-12 Paolo Carlini <pcarlini@suse.de>
678 * include/ext/algorithm: Trivial formatting fixes.
679 * include/ext/functional: Likewise.
680 * include/ext/hash_fun.h: Likewise.
681 * include/ext/iterator: Likewise.
683 2004-06-12 Paolo Carlini <pcarlini@suse.de>
685 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
686 size_type)): Reimplement using std::search.
687 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
689 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
691 * testsuite/performance/21_strings/string_find.cc: New.
693 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
695 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
697 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
699 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
700 this function return a value.
702 2004-06-09 Paolo Carlini <pcarlini@suse.de>
705 * include/bits/stl_deque.h: Consistently with stl_set.h, define
706 pointer as allocator's pointer, likewise for reference,
707 const_pointer, and const_reference.
708 * include/bits/stl_list.h: Likewise.
709 * include/bits/stl_map.h: Likewise.
710 * include/bits/stl_multimap.h: Likewise.
711 * include/bits/stl_vector.h: Likewise.
713 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
715 * crossconfig.m4: Remove signbit, signbitf, signbitl.
716 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
717 builtin math functions instead of AC_DEFINE_UNQUOTED.
718 * configure: Regenerate.
720 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
722 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
723 * docs/doxygen/mainpage.html: Remove links.
725 2004-06-08 Jason Merrill <jason@redhat.com>
727 * config/linker-map.gnu: Use wildcards for
728 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
730 2004-06-08 Paolo Carlini <pcarlini@suse.de>
732 * include/ext/pool_allocator.h: Convert to a global free-list,
733 as per the original SGI/HP design: move the implementation
734 details to struct __pool_base, from which __pool_alloc derives.
735 * src/allocator.cc: Instantiate __pool_base.
737 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
738 Paolo Carlini <pcarlini@suse.de>
740 * testsuite/testsuite_performance.h
741 (resource_counter::allocated_memory): Make it return the right
742 number of bytes requested by the allocators/application. This is
743 the sbrk+mmaped memory.
745 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
747 * include/std/std_complex.h (log): Tidy.
749 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
751 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
752 * testsuite/testsuite_abi.cc: Same.
753 * configure.ac (libtool_VERSION): Bump to 6:1:0.
754 * configure: Regenerate.
755 * aclocal.m4: Regenerate.
757 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
759 * include/std/std_complex.h (complex<_Tp>): Properly indent
761 (complex<>::__rep): New.
762 (__complex_abs): New. Dispatch to built-ins.
764 (__complex_arg): New. Dispatch to built-ins.
766 (__complex_cos): New. Dispatch to built-ins.
768 (__complex_cosh): New. Dispatch to built-ins.
770 (__complex_exp): New. Dispatch to built-ins.
772 (__complex_log): New. Dispatch to built-ins.
774 (__complex_sin): New. Dispatch to built-ins.
776 (__complex_sinh): New. Dispatch to built-ins.
778 (__complex_sqrt): New. Dispatch to built-ins.
780 (__complex_tan): New. Dispatch to built-ins.
782 (__complex_tanh): New. Dispatch to built-ins.
784 (__complex_pow): New. Dispatch to built-ins.
787 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
788 Benjamin Kosnik <bkoz@redhat.com>
791 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
792 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
793 * config/io/basic_file_stdio.cc (__basic_file::file): New.
794 * config/io/basic_file_stdio.h: Define.
796 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
799 * docs/html/documentation.html: Update doxygen links for 3.4.0.
801 2004-05-27 Jan Beulich <jbeulich@novell.com>
803 * scripts/create_testsuite_files: Tweak.
805 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
808 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
809 bits to do the same thing.
811 2004-05-24 Paolo Carlini <pcarlini@suse.de>
813 * include/bits/istream.tcc (ignore): Correctly deal with
814 n == numeric_limits<streamsize>::max().
815 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
817 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
818 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
819 __n == numeric_limits<>::min().
821 * include/bits/istream.tcc: Minor tweaks.
823 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
825 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
827 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
829 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
831 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
833 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
837 * include/bits/basic_string.h (basic_string::operator=): Return
838 pointer to this instead of result of assign. Although redundant,
839 this doesn't impact resultant codegen.
841 * include/bits/locale_facets.h (__numpunct_cache): Declare
842 assignment opxserator and copy constructor private.
843 (__timepunct_cache): Same.
844 (__moneypunct_cache): Same.
845 (collate): Use member initialization list for _M_c_locale_collate.
846 * config/locale/gnu/messages_members.h: Same.
847 * config/locale/gnu/time_members.h (__timepunct): Same.
848 * src/codecvt.cc: Use member initialization list to initialize
850 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
851 * config/os/gnu-linux/ctype_noninline.h: Same.
852 * src/locale.cc (_Impl): Same.
853 * src/locale_init.cc: Same.
854 * src/localename.cc: Same.
856 * include/bits/basic_ios.h (basic_ios): Complete member
858 * include/bits/istream.tcc (basic_istream::sentry): Same.
859 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
860 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
861 _M_pback to member initialization list.
862 * include/std/std_streambuf.h: Same.
863 * include/std/std_sstream.h: Same, for _M_mode.
864 * src/ios.cc (ios_base): Same.
866 * include/ext/rope: Make derived classes match exception
868 specifications. Add copy constructors and assignment operators.
870 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
871 constructor and assignment operator protected.
872 (_Safe_iterator_base): Same.
873 * include/debug/formatter.h (_Error_formatter): Define copy
874 constructor and assignment operator.
876 * include/backward/strstream: Declare assignment operator and copy
879 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
881 * testsuite/testsuite_hooks.h (func_callback): Declare copy
882 constructor and assignment operator private.
883 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
884 exception specifications of base class.
885 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
886 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
887 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
889 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
891 * libsupc++/cxxabi.h: Remove duplicated and useless public and
892 private keywords in class declarations. Format. Use
893 stddef.h. Expose declarations to "C" compilation.
894 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
896 (__dyncast_result): Same.
897 * libsupc++/vec.cc (uncatch_exception): Same, use member
900 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
902 * testsuite/abi_check.cc: Add unistd.h.
904 2004-05-22 Paolo Carlini <pcarlini@suse.de>
907 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
908 __int_to_char(unsigned long long)): Showpos is not relevant
910 * testsuite/22_locale/num_put/put/char/15565.cc: New.
911 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
913 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
915 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
916 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
917 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
918 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
919 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
920 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
922 2004-05-21 Matthias Klose <doko@debian.org>
924 * docs/doxygen/run_doxygen: Bump required version.
926 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
928 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
929 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
931 2004-05-21 Paolo Carlini <pcarlini@suse.de>
933 * include/bits/istream.tcc (ignore): Remove redundant line.
934 (readsome): Tidy, closely following 27.6.1.3, p30.
936 2004-05-20 Paolo Carlini <pcarlini@suse.de>
938 * include/bits/istream.tcc (operator>>(basic_istream<>&,
939 basic_string<>&)): Use a temporary buffer, thus avoiding
940 reallocation for common case.
941 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
943 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
946 * include/bits/istream.tcc: Const-ification of a few variables.
948 * include/bits/ostream.tcc: Trivial formatting fixes and
949 const-ification of some variables.
951 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
955 * docs/doxygen/Intro.3: Remove Allocators.3.
956 Add new extension headers, extension namespace list.
957 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
958 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
959 __gnu_debug::. Remove __policy_ renames.
960 * docs/doxygen/guide.html: Add dot note.
961 * docs/doxygen/stdheader.cc: Edit, add files.
962 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
964 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
966 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
968 2004-05-18 Jan Beulich <jbeulich@novell.com>
971 * scripts/create_testsuite_files: Also find source files through
974 2004-05-18 Jan Beulich <jbeulich@novell.com>
977 * testsuite/lib/libstdc++.exp: Make test files writable.
979 2004-05-18 Paolo Carlini <pcarlini@suse.de>
981 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
984 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
986 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
987 allocation loop which removes blocks from the global free list
988 from O(N) to O(1) when the required blocks are <= the number
991 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
993 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
995 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
997 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
998 * testsuite/23_containers/deque/14340.cc: New.
999 * testsuite/23_containers/list/14340.cc: New.
1000 * testsuite/23_containers/map/14340.cc: New.
1001 * testsuite/23_containers/multimap/14340.cc: New.
1002 * testsuite/23_containers/multiset/14340.cc: New.
1003 * testsuite/23_containers/set/14340.cc: New.
1004 * testsuite/23_containers/vector/14340.cc: New.
1006 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
1009 * include/debug/safe_iterator.h (_Safe_iterator converting
1010 constructor): Only allow declaration to instantiate when the
1011 incoming _Safe_iterator has exactly the right iterator type.
1013 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
1015 * include/bits/boost_concept_check.h: Fix old attribute syntax.
1016 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
1017 to pass concept-checks.
1018 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1019 * testsuite/23_containers/set/modifiers/swap.cc: Same.
1020 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1022 2004-05-16 Paolo Carlini <pcarlini@suse.de>
1024 * include/std/std_bitset.h: Minor formatting fixes.
1026 2004-05-16 Paolo Carlini <pcarlini@suse.de>
1028 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1029 Consistently update __bin._M_free[0].
1030 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
1031 __bin._M_free[0] to simplify the while loop (i.e., the number
1032 of iterations becomes known at the outset).
1034 2004-05-15 Paolo Carlini <pcarlini@suse.de>
1036 * include/std/std_bitset.h: Trivial formatting fixes.
1038 2004-05-14 Paolo Carlini <pcarlini@suse.de>
1039 Ivan Godard <igodard@pacbell.net>
1042 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
1043 * testsuite/23_containers/bitset/ext/15361.cc: New.
1045 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1048 * crossconfig.m4: Add C99 math bits for linux crosses.
1049 * configure: Regenerate.
1051 2004-05-13 Simon Marshall <simon.marshall@misys.com>
1052 Benjamin Kosnik <bkoz@redhat.com>
1055 * include/bits/locale_facets.h: Fix for -fno-for-scope.
1056 * include/debug/safe_sequence.h: Same.
1057 * include/debug/safe_iterator.tcc: Same.
1058 * src/debug.cc: Same.
1059 * src/locale.cc: Same.
1060 * src/locale_init.cc: Same.
1061 * src/localename.cc: Same.
1062 * config/locale/gnu/ctype_members.cc: Same.
1063 * config/locale/gnu/numeric_members.cc: Same.
1064 * testsuite/testsuite_abi.cc: Same.
1065 * testsuite/testsuite_hooks.cc: Same.
1067 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
1069 * docs/html/abi.html: Document effect of -fabi-version on value
1070 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
1073 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1076 * docs/html/faq/index.html: Update docs for libsupc++ usage.
1078 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1081 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
1083 (_GLIBCXX_mutex_address): Same.
1084 (_GLIBCXX_once): Same.
1085 (_GLIBCXX_mutex_init): Same.
1086 (_GLIBCXX_mutex_address_init): Same.
1088 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1090 * docs/html/abi.html: New.
1091 * docs/html/abi.txt: Remove.
1092 * docs/html/documentation.html: Add link.
1093 * testsuite/Makefile.am: Add files.
1094 * testsuite/Makefile.in: Regenerated.
1095 * testsuite/abi_check.cc: Move and modify code into...
1096 * testsuite/testsuite_abi.cc: Add.
1097 * testsuite/testsuite_abi.h: Add.
1099 * docs/html/17_intro/TODO: Update.
1100 * include/bits/stl_pair.h: Format.
1102 2004-05-06 Matthias Klose <doko@debian.org>
1104 * include/backward/iterator.h: Add GPL copyright info,
1105 with exception clause.
1106 * include/bits/boost_concept_check.h: Likewise.
1108 * libsupc++/tinfo.h: Likewise.
1109 * po/string_literals.cc: Likewise.
1111 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
1113 * acinclude.m4: Replace -W with more speaking -Wextra.
1114 * configure: Rebuilt.
1116 2004-05-03 Paolo Carlini <pcarlini@suse.de>
1118 Optimize locale::_M_impl->_M_names for the most common cases:
1119 !_M_names[0] means unnamed; !_M_names[1] means all the categories
1120 the same name (_M_names[0] && _M_names[1] means that the full set
1121 of _M_names must be processed, the general case).
1122 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
1123 Tweak, saving work when !_M_names[1].
1124 (locale::locale(const locale&, _Facet*): Simplify: now just setting
1125 _M_names[0] = 0 means unnamed.
1126 * src/locale.cc (locale::operator==): Deal first with the common,
1127 easy cases, otherwise fall back to locale::name().
1128 (locale::name()): Tweak, if !_M_names[0] just return "*".
1129 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
1130 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
1131 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
1132 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
1133 Simplify when !std::strchr, just updating _M_names[0]; clean up.
1134 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
1135 for the general case (full set of names), then do the usual work;
1138 * src/locale.cc (locale::name()): Reserve space in __ret.
1139 * src/locale_init.cc (locale::global(const locale&)): Save
1140 the name in a temporary.
1141 * src/localename.cc (locale::locale(const char*)): Reserve space
1144 2004-04-29 Paolo Carlini <pcarlini@suse.de>
1146 * src/locale.cc (locale::operator==): Always avoid constructing
1147 locale::name(), directly compare pairs of _M_names.
1149 2004-04-26 Paolo Carlini <pcarlini@suse.de>
1151 * include/bits/istream.tcc: Fix comment.
1153 2004-04-26 Paolo Carlini <pcarlini@suse.de>
1155 * include/bits/stl_vector.h: Trivial formatting fixes.
1156 * include/bits/vector.tcc: Likewise.
1158 2004-04-25 Paolo Carlini <pcarlini@suse.de>
1160 PR libstdc++/15002 (continued again)
1161 * include/bits/istream.tcc (getline(basic_istream<>&,
1162 basic_string<>&, _CharT)): Use a temporary buffer, thus
1163 avoiding reallocation for common case.
1165 * include/bits/basic_string.tcc (_S_construct(_InIterator,
1166 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
1167 of temporary buffer to a power of two.
1169 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
1171 2004-04-25 Paolo Carlini <pcarlini@suse.de>
1173 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
1175 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
1177 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
1179 2004-04-24 Paolo Carlini <pcarlini@suse.de>
1180 Petur Runolfsson <peturr02@ru.is>
1182 PR libstdc++/15002 (continued)
1183 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
1184 streamsize, char_type)): Use traits::find/copy in a loop to speed
1185 up greatly the function in the common case (I/O buffer size >> 1).
1187 2004-04-24 Paolo Carlini <pcarlini@suse.de>
1189 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
1191 * include/bits/istream.tcc (getline(basic_istream<>&,
1192 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
1193 of sbumpc(), consistently with the other functions, thus also
1194 dealing correctly with the case of exceeded string::max_size().
1196 2004-04-24 Matthias Klose <doko@debian.org>
1198 Jonathan Wakely <cow@compsoc.man.ac.uk>
1199 * docs/html/configopts.html: Fix reference to allocator config option.
1201 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
1203 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
1204 * configure: Regenerate.
1206 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
1208 PR libstdc++/15047, libstdc++/11610
1209 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
1210 (libstdc++_init): Don't pass outdir to v3-copy-files.
1212 2004-04-21 Paolo Carlini <pcarlini@suse.de>
1214 * include/bits/deque.tcc: Trivial formatting fixes.
1215 * include/bits/stl_deque.h: Likewise.
1216 * include/bits/stl_list.h: Likewise.
1217 * include/bits/stl_tree.h: Likewise.
1219 2004-04-21 Paolo Carlini <pcarlini@suse.de>
1220 Andrew Pinski <pinskia@physics.uc.edu>
1222 * include/bits/basic_string.tcc (_M_mutate): Don't compute
1223 __src unnecessarily.
1225 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
1227 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
1228 Clarify assertion, set test variable to false before assert.
1229 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
1230 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
1231 * testsuite/27_io/ios_base/storage/2.cc: Same.
1233 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
1235 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
1236 * testsuite/27_io/fpos/14320-3.cc: Same.
1238 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
1239 * testsuite/27_io/fpos/1.cc: Same.
1240 * testsuite/27_io/basic_stringstream/2.cc: Same.
1241 * testsuite/27_io/basic_stringbuf/4.cc: Same.
1242 * testsuite/27_io/basic_stringbuf/1.cc: Same.
1243 * testsuite/27_io/basic_stringbuf/2.cc: Same.
1244 * testsuite/27_io/basic_streambuf/2.cc: Same.
1245 * testsuite/27_io/basic_ostringstream/2.cc: Same.
1246 * testsuite/27_io/basic_ostream/2.cc: Same.
1247 * testsuite/27_io/basic_ofstream/2.cc: Same.
1248 * testsuite/27_io/basic_istringstream/2.cc: Same.
1249 * testsuite/27_io/basic_istream/2.cc: Same.
1250 * testsuite/27_io/basic_iostream/2.cc: Same.
1251 * testsuite/27_io/basic_ios/2.cc: Same.
1252 * testsuite/27_io/basic_ifstream/2.cc: Same.
1253 * testsuite/27_io/basic_fstream/2.cc: Same.
1254 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
1256 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
1257 unsigned against zero.
1258 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
1259 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
1261 * testsuite/18_support/new_delete_placement.cc: Initialize
1262 variables before first use.
1263 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
1264 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
1265 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
1266 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
1268 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
1269 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
1271 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
1272 * testsuite/27_io/types/2.cc: Same.
1274 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
1276 * testsuite/27_io/fpos/14775.cc: Same.
1278 2004-04-19 Paolo Carlini <pcarlini@suse.de>
1280 PR libstdc++/15002 (partial)
1281 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
1282 Special case __n2 == 1, not calling traits_type::assign/copy.
1284 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
1286 * include/bits/stl_bvector.h: Use _M_impl._M_start.
1288 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
1290 * include/bits/c++config (_GLIBCXX_STD): New.
1291 * src/list.cc: Use it.
1292 * include/std/std_bitset.h: Same.
1293 * include/bits/vector.tcc: Same.
1294 * include/bits/stl_set.h: Same.
1295 * include/bits/stl_multiset.h: Same.
1296 * include/bits/stl_multimap.h: Same.
1297 * include/bits/stl_map.h: Same.
1298 * include/bits/stl_list.h: Same.
1299 * include/bits/stl_vector.h: Same.
1300 * include/bits/stl_bvector.h: Same.
1301 * include/bits/stl_deque.h: Same.
1302 * include/bits/deque.tcc: Same.
1303 * include/bits/list.tcc: Same.
1304 * include/debug/vector: Same.
1305 * include/debug/set.h: Same.
1306 * include/debug/multiset.h: Same.
1307 * include/debug/multimap.h: Same.
1308 * include/debug/map.h: Same.
1309 * include/debug/list: Same.
1310 * include/debug/deque: Same.
1311 * include/debug/bitset: Same.
1312 * include/debug/formatter.h (__gnu_debug): Remove using directive.
1313 Add using declaration for std::type_info.
1314 * include/debug/safe_iterator.h: Add using declaration for
1315 std::iterator_traits and std::pair.
1316 * src/debug_list.cc: New.
1317 * src/Makefile.am: Add debug_list.cc.
1318 * src/Makefile.in: Regenerate.
1319 * config/linker-map.gnu: Add _List_node_base exports for std and
1322 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
1323 idiom that other containers use.
1324 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
1326 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1329 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
1331 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
1332 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
1334 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1336 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
1338 * config.h.in: Regenerate.
1340 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1342 * config/locale/generic/monetary_members.cc
1343 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
1344 btowc unnecessarily, just cast to wchar_t (the concerned chars
1345 all belong to the basic character set).
1346 * config/locale/generic/numeric_members.cc
1347 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1348 * config/locale/gnu/monetary_members.cc
1349 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
1350 * config/locale/gnu/numeric_members.cc
1351 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1353 2004-04-15 Paolo Carlini <pcarlini@suse.de>
1355 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
1356 avoid constructing unnecessarily this->name().
1358 2004-04-14 Zack Weinberg <zack@codesourcery.com>
1360 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
1361 Change definition of CXX to use $(shell) instead of backticks.
1362 * testsuite/Makefile.in: Regenerate.
1364 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
1366 * testsuite/performance/20_util/allocator/list_sort_search.cc:
1367 Minor formatting fixes.
1368 * testsuite/performance/20_util/allocator/map_mt_find.cc:
1371 2004-04-12 Paolo Carlini <pcarlini@suse.de>
1373 * config/locale/gnu/numeric_members.cc
1374 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
1375 in __uselocale, since btowc is called for chars belonging to
1376 the basic character set.
1378 2004-04-09 Paolo Carlini <pcarlini@suse.de>
1380 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
1381 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
1382 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
1383 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
1384 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
1385 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
1386 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
1387 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
1388 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
1389 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
1390 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
1391 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
1392 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
1393 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
1394 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
1395 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
1396 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
1398 2004-04-07 Paolo Carlini <pcarlini@suse.de>
1400 * config/locale/generic/time_members.cc
1401 (__timepunct<char>::_M_initialize_timepunct,
1402 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
1403 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
1404 * config/locale/gnu/time_members.cc
1405 (__timepunct<char>::_M_initialize_timepunct,
1406 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
1407 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
1408 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
1410 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
1411 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
1412 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
1413 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
1414 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
1415 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
1416 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
1417 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
1418 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
1419 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
1420 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
1421 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
1422 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
1423 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
1424 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
1425 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
1426 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
1427 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
1428 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
1429 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
1430 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
1431 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
1432 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
1433 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
1434 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
1435 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
1436 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
1437 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
1438 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
1439 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
1440 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
1441 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
1442 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
1443 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
1444 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
1445 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
1447 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
1449 2004-04-07 Paolo Carlini <pcarlini@suse.de>
1451 * config/locale/gnu/monetary_members.cc
1452 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
1453 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
1454 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
1455 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
1456 * config/locale/gnu/numeric_members.cc
1457 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
1458 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
1460 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
1462 Fixups for EDG front end.
1463 * include/ext/rope: Instead of non-existent function
1464 _Data_allocate, use allocator's allocate. Use this.
1465 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
1466 enumerations from _Rope_RopeRep here.
1467 * include/ext/ropeimpl.h: Same.
1468 * src/ext-inst.cc (_S_min_len): Fix up definition.
1470 * config/locale/gnu/ctype_members.cc: Qualify base class members
1472 * config/locale/generic/ctype_members.cc: Same.
1473 * config/locale/gnu/messages_members.h: Same.
1474 * config/locale/generic/messages_members.h: Same.
1475 * src/ctype.cc: Same.
1476 * include/bits/codecvt.h: Same.
1478 * include/bits/boost_concept_check.h: Declare.
1479 (__error_type_must_be_an_unsigned_integer_type): Remove this.
1480 (__error_type_must_be_an_integer_type): Remove this.
1481 (__error_type_must_be_a_signed_integer_type): Remove this.
1483 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
1485 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
1486 specification to definition.
1487 (__cxa_allocate_exception): Same.
1488 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
1489 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
1490 (__cxa_get_globals): Same.
1492 * libsupc++/del_op.cc: Add comment about freestanding.
1494 2004-04-05 Paolo Carlini <pcarlini@suse.de>
1496 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1497 The critical section is actually very small, only two assignments.
1499 2004-04-04 Paolo Carlini <pcarlini@suse.de>
1500 Petur Runolfsson <peturr02@ru.is>
1502 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
1503 adapted from libstdc++/11378.
1505 2004-04-03 Paolo Carlini <pcarlini@suse.de>
1507 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
1508 some duplicated code.
1509 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
1510 in the single threaded case.
1511 * testsuite/performance/20_util/allocator/list_sort_search.cc:
1512 Reorder and renumber the tests consistently with the other testfiles.
1513 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1514 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1515 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1517 2004-04-02 Paolo Carlini <pcarlini@suse.de>
1519 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1520 Rearrange arithmetic to avoid computing two divisions at
1523 2004-04-01 Paolo Carlini <pcarlini@suse.de>
1525 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
1526 Streamline the second half, wrapping it in a single
1527 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
1528 conditionals inside loops.
1530 2004-04-01 Paolo Carlini <pcarlini@suse.de>
1533 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
1534 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
1535 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
1536 to _GLIBCXX_RES_LIMITS.
1537 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
1539 * testsuite/testsuite_hooks.h: Declare set_file_limit.
1540 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
1541 and setrlimit(RLIMIT_FSIZE).
1542 * testsuite/27_io/fpos/14775.cc: New.
1543 * config.h.in: Regenerate.
1544 * configure: Likewise.
1546 2004-03-31 Paolo Carlini <pcarlini@suse.de>
1548 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
1549 In v3 uses of sscanf, the special floating-point numbers INF,
1550 INFINITY, etc., cannot occur in input, therefore, if the latter
1551 is too large, ERANGE is always stored in errno, no need of finitel.
1553 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
1556 * include/bits/stl_tree.h: Adjust initialization list order.
1558 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
1560 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
1562 2004-03-29 Paolo Carlini <pcarlini@suse.de>
1564 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
1565 on allocator behavior, the memory pointed by data2 may well be not
1568 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
1571 * include/bits/basic_string.tcc
1572 (basic_string::basic_string(const basic_string&)): Pass to
1573 _Rep::_M_grab the actual allocator of the string being constructed
1574 not the default constructed one.
1576 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
1579 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
1580 (__enc_traits::_M_destroy): New.
1581 (__enc_traits::~__enc_traits): Use it.
1582 (__enc_traits::operator=): Use _M_destroy, _M_init.
1583 (__enc_traits::__enc_traits): Same.
1585 2004-03-27 Petur Runolfsson <peturr02@ru.is>
1587 * testsuite/ext/enc_filebuf/char/13598.cc: New.
1589 2004-03-27 Paolo Carlini <pcarlini@suse.de>
1591 * include/ext/mt_allocator.h: Uglify consistently names of
1592 variables, members and classes; tidy.
1594 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
1596 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1597 Deallocation loop rewrote.
1599 2004-03-26 Paolo Carlini <pcarlini@suse.de>
1601 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1602 __mt_alloc<>::deallocate): Protect two instances of
1603 block->thread_id with __GTHREADS.
1605 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
1607 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
1608 default argument in constructors.
1609 (_Rb_tree::_M_empty_initialize): Remove.
1611 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
1613 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
1614 * testsuite/23_containers/set/operators/1_neg.cc: Same.
1616 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1618 * include/bits/cpp_type_traits.h: Changed __is_pod
1619 completely. Now, it does not use any of the previous type_traits
1620 to detect the pod types, and it also detects function pointers as
1623 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
1624 which encapsulates the internal implementation of an rb_tree. Made
1625 the allocator a base class of this class instead of the rb_tree,
1626 which was not conforming. This _Rb_tree_impl class is also
1627 specialized on whether the _Compare parameter is a POD type or
1628 not. If so, then it maintains the comparison function as a data
1629 member, otherwise it makes the _Compare parameter a base class of
1630 itself. Also, _M_key_compare is now a function instead of a data
1631 member, so that the above trick can work properly. Delegated the
1632 initialization of the other data members to this newly created
1633 class. Also, now other member functions of rb_tree must refer to
1634 _M_key_compare as _M_impl._M_key_compare(). The other data members
1635 (*) can be referenced to as _M_impl.(*), where
1636 (*) includes _M_header, and _M_node_count.
1638 2004-03-25 Paolo Carlini <pcarlini@suse.de>
1640 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
1641 Add _M_min_bin, the size in bytes of the smallest bin.
1642 (__mt_alloc<>::tune()): Tweak accordingly.
1643 (__mt_alloc<>::tune(size_t, ...)): Likewise.
1644 (__mt_alloc<>::block_record): Change to a union: members next
1645 and thread_id are never used at the same time.
1646 (__mt_alloc<>::allocate): Update consistently.
1647 (__mt_alloc<>::deallocate): Likewise.
1648 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
1649 _S_bin_size for the configurable _M_min_size.
1651 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1653 * include/bits/stl_list.h: Created a _List_impl class and made it
1654 derive from the allocator, instead of the list deriving from the
1655 allocator class, which was not conformant. Changed all references
1656 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
1657 as above (changed all references to the concerned variables).
1659 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1661 * include/bits/stl_deque.h: Created a _Deque_impl class and made
1662 it derive from the allocator, instead of the deque deriving from
1663 the allocator class, which was not conformant. Changed all
1664 references to the _M_start, _M_finish, _M_map, and _M_map_size to
1666 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
1667 qualification in 2 places where it was missing.
1668 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
1670 * include/bits/deque.tcc: Same as above (changed all references to
1671 the concerned variables).
1673 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1675 * include/bits/stl_vector.h: Created a _Vector_impl class and made
1676 it derive from the allocator, instead of the _Vector_base class,
1677 deriving from the allocator which was not conformant. Changed all
1678 references to the _M_start, _M_finish, and _M_end_of_storage to
1680 * include/bits/vector.tcc: Same as above (changed all references
1681 to the concerned variables).
1683 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1685 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
1686 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
1687 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
1689 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
1691 * include/ext/malloc_allocator.h: Fixed the construct function to
1692 call global placement new instead of assignment. Added a check
1693 after the return from malloc to check whether returned pointer is
1694 NULL, and if so, throw std::bad_alloc().
1695 * include/ext/debug_allocator.h: Added a check in the deallocate
1696 function to check whether the user has passed a NULL pointer or
1699 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
1701 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
1703 2004-03-24 Andreas Schwab <schwab@suse.de>
1705 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
1706 warning from IA64 assembler.
1708 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
1710 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
1711 function call __builtin_ctz instead of the while loop.
1712 (allocate) -> If condition has __builtin_expect.
1713 (deallocate) -> Ditto.
1714 Renamed a few left-over variables and typedefs according to the
1715 C++STYLE mentioned in the documentation.
1716 Protected calls to __gthread* by __gthread_active_p(), whose value
1717 is cached in the local variable __threads_active.
1719 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
1721 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1722 Use linear algorithm for producer.
1724 2004-03-24 Paolo Carlini <pcarlini@suse.de>
1726 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1727 __mt_alloc<>::deallocate): Avoid redundant conditionals.
1729 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
1731 * include/bits/locale_facets.h: Tweaks for 80 column.
1732 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
1733 (__moneypunct_cache::_M_cache): Same.
1734 (num_get): Don't inherit from __num_base.
1736 (money_get): Don't inherit from money_base.
1738 (__timepunct::_M_am_pm_format): New.
1739 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
1740 (time_get::_M_extract_name): Same.
1741 (time_get::_M_extract_via_format): Same.
1742 * include/bits/locale_facets.tcc: Tweaks for 80 column.
1743 Use _M_getloc instead of getloc.
1744 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
1745 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
1746 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
1748 2004-03-22 Paolo Carlini <pcarlini@suse.de>
1750 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
1751 * configure: Regenerate.
1752 * config/allocator/pool_allocator_base.h: New.
1753 * include/ext/pool_allocator.h: Convert to a standard-conforming
1755 * src/allocator.cc: Tweak instantiations.
1756 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
1757 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
1758 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
1759 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1760 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1761 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1763 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
1765 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
1766 inline" and attribute-unused. Qualify parameter __mem with
1768 (__exchange_and_add): Ditto. Add back memory clobber to asm.
1770 2004-03-20 Paolo Carlini <pcarlini@suse.de>
1772 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
1774 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
1776 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
1778 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
1780 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
1782 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
1784 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
1786 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
1788 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
1790 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
1793 2004-03-20 Paolo Carlini <pcarlini@suse.de>
1795 * include/std/std_valarray.h: Document DR389 [Ready].
1796 * docs/html/ext/howto.html: Add an entry for DR389.
1798 2004-03-19 Michael Eager <eager@mvista.com>
1800 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
1803 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1805 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
1807 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
1808 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
1809 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
1810 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
1811 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
1812 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
1813 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
1814 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
1815 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
1817 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1818 Petur Runolfsson <peturr02@ru.is>
1821 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
1822 no way to find out the conversion used by the underlying FILE*.
1823 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
1824 * testsuite/27_io/objects/char/9.cc: Tweak.
1826 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1829 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
1830 memory allocation/deallocation calls.
1831 * testsuite/ext/14648.cc: New.
1833 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
1836 * include/backward/bvector.h (bit_vector): Allocator is in std
1839 2004-03-19 Phil Edwards <phil@codesourcery.com>
1841 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
1842 not libiconv. SUBST this variable as well.
1843 * testsuite/Makefile.am (site.exp): New target, based on that
1844 created by automake. Also set libiconv.
1846 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
1847 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1848 testsuite/Makefile.in: Regenerate.
1850 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
1852 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
1853 new_allocator for all hosts.
1854 * configure: Regenerate.
1856 2004-03-16 Paolo Carlini <pcarlini@suse.de>
1858 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
1859 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
1861 2004-03-15 Paolo Carlini <pcarlini@suse.de>
1863 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1864 Adjust the logic underlying the parsing of symbol to deal
1865 correctly with an optional sign component (i.e., when either
1866 negative_sign or positive_sign is empty)
1867 * testsuite/22_locale/money_get/get/char/19.cc: New.
1868 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
1870 2004-03-15 Paolo Carlini <pcarlini@suse.de>
1872 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1873 Do not accept an incomplete currency symbol.
1874 * testsuite/22_locale/money_get/get/char/18.cc: New.
1875 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
1877 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
1879 * config/allocator: New.
1880 * config/allocator/bitmap_allocator_base.h: New.
1881 * config/allocator/malloc_allocator_base.h: New.
1882 * config/allocator/mt_allocator_base.h: New.
1883 * config/allocator/new_allocator_base.h: New.
1884 * include/bits/allocator.h: Include c++allocator.h.
1885 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
1886 * aclocal.m4: Regenerate.
1887 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
1888 * configure: Regenerate.
1889 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
1890 * include/Makefile.in: Regenerate.
1891 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
1893 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
1895 * include/bits/allocator.h: Revert.
1897 2004-03-12 Paolo Carlini <pcarlini@suse.de>
1899 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
1900 * include/bits/gslice_array.h: Add comment about DR 253.
1901 * include/bits/indirect_array.h: Likewise.
1902 * include/bits/mask_array.h: Likewise.
1903 * include/bits/slice_array.h: Likewise.
1905 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
1907 * testsuite/20_util/allocator/14176.cc: New.
1908 * include/ext/mt_allocator.h: Formatting fixes.
1910 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
1912 * include/Makefile.am (ext_headers): Add
1913 ${ext_srcdir}/bitmap_allocator.h .
1914 * include/Makefile.in: Regenerate.
1915 * docs/html/ext/ballocator_doc.txt: New file.
1916 * include/ext/bitmap_allocator.h: New file.
1917 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
1919 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1920 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
1921 test for the bitmap_allocator<>.
1922 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
1923 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1924 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1926 2004-03-11 Paolo Carlini <pcarlini@suse.de>
1928 * include/std/std_complex.h (pow(const complex&, const _Tp&),
1929 pow(const _Tp&, const complex&), pow(const complex&,
1930 const complex&)): Fully qualify with std:: a few calls.
1931 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
1933 2004-03-11 Steven Bosscher <stevenb@suse.de>
1936 * include/c_std/cmath.tcc (__cmath_power): Define inline.
1938 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
1940 * configure.ac: Bump AC_PREREQ to 2.59.
1942 2004-03-10 Paolo Carlini <pcarlini@suse.de>
1944 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
1946 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
1947 Paolo Carlini <pcarlini@suse.de>
1950 * include/std/std_complex.h (pow(const complex&, const _Tp&),
1951 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
1952 * testsuite/26_numerics/complex/13450.cc: New.
1954 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
1955 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
1957 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
1960 * include/bits/gslice_array.h (gslice_array()): Make public.
1961 (operator=(gslice_array)): Make public. Implement.
1962 * include/bits/indirect_array.h (indirect_array()): Make public.
1963 * include/bits/mask_array.h (mask_array()): Make public.
1964 (operator=(mask_array)): Make public. Implement.
1965 * include/bits/valarray_array.tcc (__valarray_copy):
1966 Comment. Add versions for gslice_array and mask_array.
1967 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
1969 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
1971 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
1973 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
1974 * testsuite/23_containers/set/modifiers/swap.cc: Same.
1975 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1976 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1977 * testsuite/23_containers/map/modifiers/swap.cc: Same.
1978 * testsuite/23_containers/list/modifiers/swap.cc: Same.
1980 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
1982 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
1985 * testsuite/23_containers/deque/modifiers/swap.cc: New.
1986 * testsuite/23_containers/list/modifiers/swap.cc: New.
1987 * testsuite/23_containers/map/modifiers/swap.cc: New.
1988 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
1989 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
1990 * testsuite/23_containers/set/modifiers/swap.cc: New.
1991 * testsuite/23_containers/vector/modifiers/swap.cc: New.
1993 2004-03-08 Petur Runolfsson <peturr02@ru.is>
1996 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
1998 2004-03-08 Paolo Carlini <pcarlini@suse.de>
2000 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
2001 * include/bits/stl_multiset.h: Add comment about DR 103.
2002 * include/bits/stl_set.h: Likewise.
2004 2004-03-08 Paolo Carlini <pcarlini@suse.de>
2006 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2007 The value _space_ indicates that at least one space is required
2009 * testsuite/22_locale/money_get/get/char/17.cc: New.
2010 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
2012 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
2013 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
2015 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
2016 Remove redundant conditional on __str.size().
2018 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
2020 * include/bits/allocator.h: Switch defaults to mt_alloc.
2022 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
2024 * include/ext/mt_allocator.h (_S_initialize): If
2025 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
2027 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
2030 * src/locale_init.cc (locale::locale): Lock critical regions with
2032 (locale::global): Same.
2033 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
2034 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
2035 (__glibcxx_mutex_lock): Same.
2037 * config/cpu/generic/atomicity.h: Remove
2038 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
2039 * src/misc-inst.cc: Move all locking bits out of this file.
2041 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
2042 * src/misc-inst.cc: Same.
2043 * config/cpu/hppa/atomicity.h: Same.
2045 * config/linker-map.gnu: Remove types in the signature of atomic
2046 exports, as they may vary.
2048 2004-03-06 Paolo Carlini <pcarlini@suse.de>
2050 * include/bits/locale_facets.tcc: Tweak the comment preceding
2051 has_facet: doesn't throw.
2053 2004-03-06 Paolo Carlini <pcarlini@suse.de>
2055 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
2056 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2057 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2058 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2059 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2060 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2061 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2062 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2064 2004-03-06 Paolo Carlini <pcarlini@suse.de>
2066 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2067 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
2068 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
2069 * testsuite/testsuite_character.h (struct __gnu_test::character):
2071 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
2074 2004-03-05 Paolo Carlini <pcarlini@suse.de>
2076 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
2078 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
2080 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
2082 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
2084 * testsuite/23_containers/deque/invalidation/4.cc: Same.
2085 * testsuite/23_containers/list/invalidation/1.cc: Same.
2086 * testsuite/23_containers/list/invalidation/2.cc: Same.
2087 * testsuite/23_containers/list/invalidation/3.cc: Same.
2088 * testsuite/23_containers/list/invalidation/4.cc: Same.
2089 * testsuite/23_containers/map/invalidation/2.cc: Same.
2090 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
2091 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2092 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
2093 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2094 * testsuite/23_containers/set/invalidation/1.cc: Same.
2095 * testsuite/23_containers/set/invalidation/2.cc: Same.
2096 * testsuite/23_containers/vector/invalidation/1.cc: Same.
2097 * testsuite/23_containers/vector/invalidation/2.cc: Same.
2098 * testsuite/23_containers/vector/invalidation/3.cc: Same.
2099 * testsuite/23_containers/vector/invalidation/4.cc: Same.
2101 2004-03-04 Paolo Carlini <pcarlini@suse.de>
2103 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
2105 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
2107 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
2108 from the dg-options.
2109 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
2110 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
2111 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
2112 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
2113 * testsuite/23_containers/vector/resize/1.cc: Likewise.
2114 * testsuite/26_numerics/complex_value.cc: Likewise.
2115 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
2116 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
2117 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
2118 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
2119 * testsuite/27_io/objects/char/5.cc: Likewise.
2120 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
2121 * testsuite/backward/11460.cc: Likewise.
2122 * testsuite/thread/pthread7-rope.cc: Likewise.
2124 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
2125 missing test variable.
2126 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
2127 missing test variable.
2129 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
2131 * testsuite/20_util/allocator/1.cc: Provide explicit
2132 instantiations for non-weak systems.
2133 * testsuite/20_util/binders.cc: Same.
2134 * testsuite/20_util/allocator/8230.cc: Same.
2135 * testsuite/20_util/allocator/10378.cc: Same.
2136 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
2137 * testsuite/22_locale/ctype/is/char/2.cc: Same.
2138 * testsuite/thread/pthread7-rope.cc: Same.
2139 * testsuite/thread/pthread6.cc: Same.
2140 * testsuite/thread/pthread5.cc: Same.
2141 * testsuite/thread/pthread4.cc: Same.
2142 * testsuite/thread/pthread1.cc: Same.
2143 * testsuite/ext/rope.cc: Same.
2144 * testsuite/ext/hash_set.cc: Same.
2145 * testsuite/ext/hash_map.cc: Same.
2146 * testsuite/ext/concept_checks.cc: Same.
2147 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
2148 * testsuite/25_algorithms/unique/2.cc: Same.
2149 * testsuite/25_algorithms/unique/1.cc: Same.
2150 * testsuite/25_algorithms/rotate.cc: Same.
2151 * testsuite/25_algorithms/min_max.cc: Same.
2152 * testsuite/25_algorithms/equal.cc: Same.
2153 * testsuite/24_iterators/rel_ops.cc: Same.
2154 * testsuite/24_iterators/iterator.cc: Same.
2155 * testsuite/24_iterators/insert_iterator.cc: Same.
2156 * testsuite/24_iterators/front_insert_iterator.cc: Same.
2157 * testsuite/24_iterators/back_insert_iterator.cc: Same.
2158 * testsuite/23_containers/vector/resize/1.cc: Same.
2159 * testsuite/23_containers/vector/modifiers/2.cc: Same.
2160 * testsuite/23_containers/vector/modifiers/1.cc: Same.
2161 * testsuite/23_containers/vector/invalidation/4.cc: Same.
2162 * testsuite/23_containers/vector/invalidation/3.cc: Same.
2163 * testsuite/23_containers/vector/invalidation/2.cc: Same.
2164 * testsuite/23_containers/vector/invalidation/1.cc: Same.
2165 * testsuite/23_containers/vector/element_access/1.cc: Same.
2166 * testsuite/23_containers/vector/cons/6513.cc: Same.
2167 * testsuite/23_containers/vector/cons/3.cc: Same.
2168 * testsuite/23_containers/vector/cons/2.cc: Same.
2169 * testsuite/23_containers/vector/cons/1.cc: Same.
2170 * testsuite/23_containers/vector/capacity/8230.cc: Same.
2171 * testsuite/23_containers/vector/capacity/1.cc: Same.
2172 * testsuite/23_containers/vector/bool/6886.cc: Same.
2173 * testsuite/23_containers/stack/members/7158.cc: Same.
2174 * testsuite/23_containers/set/invalidation/2.cc: Same.
2175 * testsuite/23_containers/set/invalidation/1.cc: Same.
2176 * testsuite/23_containers/queue/members/7157.cc: Same.
2177 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
2178 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2179 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2180 * testsuite/23_containers/multiset/insert/1.cc: Same.
2181 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2182 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2183 * testsuite/23_containers/map/operators/1.cc: Same.
2184 * testsuite/23_containers/map/invalidation/2.cc: Same.
2185 * testsuite/23_containers/map/invalidation/1.cc: Same.
2186 * testsuite/23_containers/map/insert/1.cc: Same.
2187 * testsuite/23_containers/list/operators/4.cc: Same.
2188 * testsuite/23_containers/list/operators/3.cc: Same.
2189 * testsuite/23_containers/list/operators/2.cc: Same.
2190 * testsuite/23_containers/list/operators/1.cc: Same.
2191 * testsuite/23_containers/list/modifiers/3.cc: Same.
2192 * testsuite/23_containers/list/modifiers/2.cc: Same.
2193 * testsuite/23_containers/list/modifiers/1.cc: Same.
2194 * testsuite/23_containers/list/invalidation/4.cc: Same.
2195 * testsuite/23_containers/list/invalidation/3.cc: Same.
2196 * testsuite/23_containers/list/invalidation/2.cc: Same.
2197 * testsuite/23_containers/list/invalidation/1.cc: Same.
2198 * testsuite/23_containers/list/cons/9.cc: Same.
2199 * testsuite/23_containers/list/cons/8.cc: Same.
2200 * testsuite/23_containers/list/cons/7.cc: Same.
2201 * testsuite/23_containers/list/cons/6.cc: Same.
2202 * testsuite/23_containers/list/cons/5.cc: Same.
2203 * testsuite/23_containers/list/cons/4.cc: Same.
2204 * testsuite/23_containers/list/cons/3.cc: Same.
2205 * testsuite/23_containers/list/cons/2.cc: Same.
2206 * testsuite/23_containers/list/cons/1.cc: Same.
2207 * testsuite/23_containers/list/capacity/1.cc: Same.
2208 * testsuite/23_containers/deque/operators/1.cc: Same.
2209 * testsuite/23_containers/deque/invalidation/4.cc: Same.
2210 * testsuite/23_containers/deque/invalidation/3.cc: Same.
2211 * testsuite/23_containers/deque/invalidation/2.cc: Same.
2212 * testsuite/23_containers/deque/invalidation/1.cc: Same.
2213 * testsuite/23_containers/deque/cons/2.cc: Same.
2214 * testsuite/23_containers/deque/cons/1.cc: Same.
2216 * src/allocator.cc: Add char, wchar_t instantiations
2217 to match extern template declarations in memory.h.
2219 2004-03-03 Paolo Carlini <pcarlini@suse.de>
2221 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2222 Fix warning regression.
2224 2004-03-03 Paolo Carlini <pcarlini@suse.de>
2226 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2227 Deal properly with empty __digits and negative frac_digits,
2230 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
2232 * docs/html/documentation.html: Regenerate.
2234 2004-03-02 Paolo Carlini <pcarlini@suse.de>
2237 * include/bits/postypes.h (class streamoff): Remove, now
2238 streamoff is just typedef a 64 bit signed integer type.
2239 (class fpos): Tweak consistently.
2240 * testsuite/27_io/fpos/14320-1.cc: New.
2241 * testsuite/27_io/fpos/14320-2.cc: New.
2242 * testsuite/27_io/fpos/14320-3.cc: New.
2243 * testsuite/27_io/fpos/14320-4.cc: New.
2244 * testsuite/27_io/fpos/14320-5.cc: New.
2245 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
2247 2004-03-02 Paolo Carlini <pcarlini@suse.de>
2249 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2250 Reorganize a bit the main parsing loop, thus early detecting
2251 an empty value component.
2252 * testsuite/22_locale/money_get/get/char/16.cc: New.
2253 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
2255 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
2257 Support automake 1.8.2
2258 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
2259 * po/Makefile.am (EXTRA_DIST): New.
2260 * po/Makefile.in: Regenerate.
2261 * Makefile.in: Same.
2262 * include/Makefile.in: Same.
2263 * libmath/Makefile.in: Same.
2264 * libsupc++/Makefile.in: Same.
2265 * src/Makefile.in: Same.
2266 * testsuite/Makefile.in: Same.
2268 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
2269 __GXX_WEAK__ instead of SUPPORTS_WEAK.
2270 (${host_builddir}/gthr-default.h): Same.
2271 (${host_builddir}/gthr.h): Same.
2272 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
2273 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
2275 * aclocal.m4: Regenerate.
2276 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
2277 * config.h.in: Regenerate.
2280 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
2282 Support autoconf 2.59
2283 * acinclude.m4: Quote correctly.
2284 * aclocal.m4: Regenerate.
2287 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
2289 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
2291 * docs/html/18_support/howto.html: Add bit about writing to
2292 stderr, mostly by Zack.
2294 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2296 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2297 money_get<>::do_get(string_type&)): ... and two more.
2299 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2301 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2302 Fix thinkos in the switch from string_type& to string& as last
2305 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2307 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2308 Also when parsing exponent sign, first look for thousands_sep
2309 and decimal_point; tweak a bit.
2310 * testsuite/22_locale/num_get/get/char/15.cc: New.
2311 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
2313 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2314 num_get<>::_M_extract_int): Reorder some conditionals.
2316 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2318 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2319 Consistently with numpunct, enforce the requirements in
2320 22.2.6.3, p3 for the thousands separators; tweak a bit.
2321 * testsuite/22_locale/money_get/get/char/15.cc: New.
2322 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
2324 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
2326 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
2327 testsuite_files from correct multilib blddir when running
2330 2004-02-29 Phil Edwards <phil@codesourcery.com>
2332 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
2333 the summary file to the logfile.
2334 * testsuite/Makefile.in: Regenerate.
2336 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2338 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
2340 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
2341 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
2343 2004-02-28 Paolo Carlini <pcarlini@suse.de>
2345 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2346 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
2347 no 'decimal-point' in the middle: in this case too we must fix
2348 up __found_grouping; slightly tweak.
2349 * testsuite/22_locale/num_get/get/char/14.cc: New.
2350 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
2352 2004-02-27 Eric Christopher <echristo@redhat.com>
2353 Phil Edwards <phil@codesourcery.com>
2355 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
2356 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
2357 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
2358 testsuite/22_locale/collate/hash/wchar_t/2.cc,
2359 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
2360 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
2361 testsuite/22_locale/collate/transform/wchar_t/2.cc,
2362 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
2363 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2364 Use dg-require-iconv.
2365 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
2367 2004-02-27 Phil Edwards <phil@codesourcery.com>
2368 Eric Christopher <echristo@redhat.com>
2370 * testsuite/config/default.exp: Update with comments.
2371 (${tool}_target_compile): New wrapper routine.
2372 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
2373 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
2375 (load_gcc_lib, v3track): New routines.
2376 (v3-init): Rename to libstdc++_init.
2377 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
2378 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
2380 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
2382 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
2384 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
2386 * config/os/irix/irix5.2/atomicity.h: Merge..
2387 * config/os/irix/irix6.5/atomicity.h: Merge..
2388 * config/os/irix/atomicity.h: ...into this.
2389 * config/os/irix/atomic_word.h: New.
2390 * configure.host: Set atomic_word_dir for irix.
2392 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
2393 * i386/atomicity.h: Same.
2394 * m68k/atomicity.h: Same.
2395 * sparc/atomicity.h: Same.
2397 2004-02-27 David Edelsohn <edelsohn@gnu.org>
2399 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
2400 static, and inline keywords.
2402 2004-02-27 Paolo Carlini <pcarlini@suse.de>
2404 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2405 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
2406 call reserve on the __tmp_gruping string.
2407 (num_get<>::_M_extract_float): Don't append unnecessarily a
2408 char() to the returned string.
2409 * include/bits/locale_facets.tcc: Trivial reformattings.
2411 2004-02-27 Paolo Carlini <pcarlini@suse.de>
2413 * include/bits/locale_facets.h (money_get<>::_M_extract):
2414 Change signature: now takes a plain string&.
2415 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2416 Update consistently the definition; use the moneypunct cache
2417 to parse the value; use swap to change __units.
2418 (money_get<>::do_get(long double&)): Update call of _M_extract,
2419 avoid ctype::narrow, not correct wrt the standard.
2420 (money_get<>::do_get(string_type&)): Likewise, update call
2421 of _M_extract, use ctype::widen.
2422 * src/locale-inst.cc: Tweak instantiations of _M_extract.
2424 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
2426 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
2427 * testsuite/demangle/abi_examples/02.cc: Likewise.
2428 * testsuite/demangle/regression/cw-11.cc: Likewise.
2429 * testsuite/demangle/regression/cw-16.cc: Change two expected
2430 results to match libiberty demangler output.
2432 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
2435 * libsupc++/Makefile.am: Use libiberty demangler.
2436 (c_sources): Add cp-demangle.c.
2437 * libsupc++/Makefile.in: Regenerate.
2438 * src/Makefile.am (sources): Remove demangle.cc.
2439 * src/Makefile.in: Regenerate.
2440 * include/Makefile.am (bits_headers): Move demangle.h.
2441 (ext_headers): ...here.
2442 * include/Makefile.in: Regenerate.
2443 * include/bits/demangle.h: Move...
2444 * include/ext/demangle.h: ...here.
2445 * src/demangle.cc: Remove.
2447 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
2449 * include/bits/demangle.h: Add type template parameter to all
2450 templates with just an Allocator template parameter.
2452 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
2454 * include/bits/atomicity.h: New, forward declarations for __atomic_add
2455 and __exchange_and_add.
2456 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
2457 * config/cpu/cris/atomic_word.h: Same.
2458 * config/cpu/sparc/atomic_word.h: Same.
2459 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
2460 Qualifiy with __gnu_cxx.
2461 (_Callback_list::_M_add_reference): Same.
2462 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
2463 (locale::facet::_M_remove_reference): Same.
2464 (locale::_Impl::_M_add_reference): Add.
2465 (locale::_Impl::_M_remove_reference): Same.
2466 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
2467 (basic_string::_Rep::_M_dispose): Same.
2468 * src/ios.cc (ios_base::xalloc): Same.
2469 * src/ios_init.cc (ios_base::Init::Init): Same.
2470 (ios_base::Init::~Init): Same.
2471 * src/locale.cc (locale::id::_M_id): Same.
2472 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
2473 static, and inline keywords.
2474 * config/cpu/alpha/atomicity.h: Same.
2475 * config/cpu/cris/atomicity.h: Same.
2476 * config/cpu/generic/atomicity.h: Same.
2477 * config/cpu/hppa/atomicity.h: Same.
2478 * config/cpu/i386/atomicity.h: Same.
2479 * config/cpu/ia64/atomicity.h: Same.
2480 * config/cpu/m68k/atomicity.h: Same.
2481 * config/cpu/mips/atomicity.h: Same.
2482 * config/cpu/powerpc/atomicity.h: Same.
2483 * config/cpu/s390/atomicity.h: Same.
2484 * config/cpu/sparc/atomicity.h: Same.
2486 * src/Makefile.am (host_sources): Add atomicity.cc.
2487 (atomicity.cc): New rule.
2488 * src/Makefile.in: Regenerate.
2489 * include/Makefile.am (host_headers): Remove host atomicity.h.
2490 (host_headers): Add atomic_word.h.
2491 (bits_headers): Add bits atomicity.h.
2492 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2493 * include/Makefile.in: Regenerate.
2494 * configure.host (atomic_word_dir): Add.
2495 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
2496 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2497 * configure: Regenerate.
2498 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
2500 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
2501 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2503 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
2505 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
2506 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
2507 Fix markup, more <link> tags.
2509 2004-02-25 Carlo Wood <carlo@alinoe.com>
2512 namespace __gnu_cxx::demangler
2513 (session<Allocator>::qualifier_list_Allocator): Add
2514 (session<Allocator>::M_qualifier_list_alloc): Add
2515 (session<Allocator>::decode_type_with_postfix):
2516 Use M_qualifier_list_alloc instead of calling operator new/delete.
2518 2004-02-24 Paolo Carlini <pcarlini@suse.de>
2521 * include/bits/postypes.h (class streamoff): Add operator++(),
2522 operator++(int), operator--() and operator--(int).
2523 * testsuite/27_io/fpos/14252.cc: New.
2525 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
2527 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
2528 error in handling of hex constants.
2530 2004-02-24 Paolo Carlini <pcarlini@suse.de>
2532 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2533 Prefer basic_string::append to operator+= and a temporary.
2535 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
2537 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
2538 Only use fputs, not write.
2540 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
2542 * include/ext/malloc_allocator.h: Add operators ==, !=.
2543 * include/ext/new_allocator.h: Add operators ==, !=.
2544 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
2545 (__mt_alloc::_S_get_options): New.
2546 (__mt_alloc::_S_set_options): New.
2547 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
2548 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
2549 Move functions out of line, simplify, format.
2550 * src/allocator.cc: Simplify explicit instantiations.
2551 * include/bits/allocator.h: Tweak.
2553 2004-02-22 Paolo Carlini <pcarlini@suse.de>
2555 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2556 Restructure formatting of value component, first dealing with
2557 the non-decimal digits; use reserve.
2559 2004-02-22 Paolo Carlini <pcarlini@suse.de>
2561 * include/bits/locale_facets.h (class money_get): Inherit
2562 from money_base too; tweak declaration of _M_extract, now
2563 parameterized on _Intl too.
2564 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2565 Update definition to use the cache; call reserve on __res to
2566 avoid multiple reallocations; fix parsing of sign component
2567 according to 22.2.6.1.2, p3.
2568 (money_get<>::do_get(long double&),
2569 money_get<>::do_get(string_type&)): Update calls of _M_extract.
2570 * src/locale-inst.cc: Add instantiations of
2571 money_get::_M_extract<false> and money_get::_M_extract<true>.
2572 * testsuite/22_locale/money_get/get/char/14.cc: New.
2573 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
2575 2004-02-21 Mark Mitchell <mark@codesourcery.com>
2577 * libsupc++/vterminate.cc
2578 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
2580 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
2582 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2583 not set RLIMIT_AS on HP-UX.
2585 2004-02-21 Mark Mitchell <mark@codesourcery.com>
2587 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2588 not set RLIMIT_AS on HP-UX.
2590 2004-02-21 Paolo Carlini <pcarlini@suse.de>
2592 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
2593 _S_zero, _S_end } enum, _S_atoms.
2594 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
2595 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
2596 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
2597 (__moneypunct_cache<>::~__moneypunct_cache): Update.
2598 (__moneypunct_cache<>::_M_cache): Fill the cache.
2599 (class moneypunct): Tweak __cache_type typedef.
2600 (class money_put): Inherit from money_base too; tweak declaration
2601 of _M_insert, now parameterized on _Intl.
2602 * include/bits/locale_facets.tcc
2603 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
2604 (money_put<>::_M_insert): Update definition to use the cache;
2605 call reserve on __res to avoid multiple reallocations.
2606 (money_put<>::do_put(long double),
2607 money_put<>::do_put(const string_type&): Update calls of _M_insert.
2608 * config/locale/generic/monetary_members.cc
2609 (moneypunct<char, true>::_M_initialize_moneypunct,
2610 moneypunct<char, false>::_M_initialize_moneypunct,
2611 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
2612 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
2613 * config/locale/gnu/monetary_members.cc: Likewise.
2614 * config/locale/gnu/monetary_members.cc
2615 (moneypunct<wchar_t, true>::~moneypunct(),
2616 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
2617 * src/globals_locale.cc: Tweak fake_money_cache_c.
2618 * src/locale-inst.cc: Add instantiations for
2619 money_put::_M_insert<false> and money_put::_M_insert<true> and
2620 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
2621 * src/locale_facets.cc: Define money_base::_S_atoms.
2622 * src/locale_init.cc: Update placement new of
2623 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
2624 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
2626 * config/locale/generic/numeric_members.cc: Clean up.
2627 * config/locale/gnu/numeric_members.cc: Likewise.
2628 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
2629 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
2630 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
2631 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
2632 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
2633 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
2635 2004-02-20 Mark Mitchell <mark@codesourcery.com>
2637 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
2638 FIFO for writing with ios_base::in|ios_base::out.
2639 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
2640 * testsuite/27_io/objects/char/7.cc: Likewise.
2641 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
2644 2004-02-19 David Edelsohn <edelsohn@gnu.org>
2646 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
2647 from iso-8859-1 to ISO8859-1.
2648 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
2649 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
2650 * 22_locale/collate/hash/wchar_t/2.cc: Same.
2651 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
2652 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
2653 * 22_locale/collate/transform/wchar_t/2.cc: Same.
2654 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
2655 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
2657 2004-02-18 Paolo Carlini <pcarlini@suse.de>
2659 * include/bits/locale_facets.h (money_get<>::_M_extract):
2660 New, helper for do_get.
2661 (money_put<>::_M_insert): Likewise, for do_put.
2662 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2663 money_put<>::_M_insert): Define.
2664 (money_get<>::do_get(long double&), money_get<>::do_get(
2665 string_type&), money_put::do_put(long double),
2666 money_put::do_put(const string_type&)): Use the helpers.
2668 2004-02-18 Paolo Carlini <pcarlini@suse.de>
2670 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2671 Rewrite, avoiding recursion.
2672 (__gnu_internal::xwrite): Minor tweaks.
2674 2004-02-17 Stefan Olsson <stefan@xapa.se>
2676 * include/ext/mt_allocator.h: Removed the last
2677 pointer. Deallocated blocks are now added to the front of
2678 freelists as proposed by Felix Yen. This gives roughly 10%
2679 performance boost and saves some memory.
2680 * docs/html/ext/mt_allocator.html: Change due to that deallocated
2681 blocks now are added to the front of freelists. The reason to this
2682 approach is also explained.
2684 2004-02-17 Paolo Carlini <pcarlini@suse.de>
2686 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2687 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
2688 grouping fidelity conditional.
2690 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2692 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
2693 Qualify exception with std::.
2694 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
2695 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2696 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2697 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2698 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2700 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2702 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
2703 for now that the catch block is not reached.
2704 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
2706 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2708 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2709 Fix parsing of the remaining sign characters.
2710 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
2711 the input is scanned 'til eof.
2712 * 22_locale/money_get/get/char/4.cc: Likewise.
2713 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
2714 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
2715 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
2716 not do_pos_format: the former is the only one that matters during
2718 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
2720 * 22_locale/money_get/get/char/6.cc: Minor tweak.
2721 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
2723 2004-02-15 David Asher <david.asher@cavium.com>
2726 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
2727 access __olds beyond __oldlen.
2729 2004-02-14 Paolo Carlini <pcarlini@suse.de>
2731 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
2732 sure the exception is actually thrown.
2733 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2734 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2735 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2737 2004-02-14 Paolo Carlini <pcarlini@suse.de>
2740 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
2741 In case of conversion errors, throw ios_failure; simplify.
2742 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
2743 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2744 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
2745 previously we didn't throw in case of conversion errors, instead
2746 just returned eof().
2747 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2748 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2749 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2751 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
2752 Trivial simplification of a conditional.
2754 2004-02-12 Paolo Carlini <pcarlini@suse.de>
2756 PR libstdc++/13731 (final part: writev)
2757 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2758 New, a wrapper around writev() handling partial writes.
2759 (__basic_file<char>::xwrite): Move to __gnu_internal and make
2761 (__basic_file<char>::xsputn): Update call.
2762 (__basic_file<char>::xsputn_2): Likewise.
2763 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2764 Don't declare, now static.
2766 2004-02-11 Stefan Olsson <stefan@xapa.se>
2768 * docs/html/ext/mt_allocator.html: New.
2770 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
2772 * docs/html/20_util/allocator.html: New file, consolidate
2773 allocator information here. Revamp.
2774 * docs/html/documentation.html: Change links.
2775 * docs/html/20_util/howto.html: Same.
2776 * docs/html/ext/howto.html: Same.
2778 2004-02-11 Paolo Carlini <pcarlini@suse.de>
2780 PR libstdc++/13731 (first part: write)
2781 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2783 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
2784 Define it: a wrapper around write() handling partial write.
2785 (__basic_file<char>::xsputn): Use it.
2786 (__basic_file<char>::xsputn_2): Likewise.
2788 2004-02-11 Paolo Carlini <pcarlini@suse.de>
2789 Petur Runolfsson <peturr02@ru.is>
2792 * include/std/std_istream.h (operator>>(__istream_type& (*)
2793 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
2794 operator>>(ios_base& (*)(ios_base&))): Declare inline.
2795 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
2796 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
2797 operator<<(ios_base& (*) (ios_base&))): Likewise.
2798 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
2800 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
2803 * config/linker-map.gnu: Add typeinfo and typeinfo name for
2804 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
2807 * config/linker-map.gnu: Add typeinfo and typeinfo name for
2808 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
2810 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
2812 * include/ext/pool_allocator.h: Include c++config.h.
2814 2004-02-09 Stefan Olsson <stefan@xapa.se>
2816 * include/ext/mt_allocator.h: thread_id is unused in non threaded
2817 applications and now has a ifdef to remove it completely on
2818 compilers without thread support. Include stdlib.h due to a
2819 compiler warning on getenv().
2821 2004-02-09 Paul Brook <paul@codesourcery.com>
2823 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
2825 2004-02-09 Paolo Carlini <pcarlini@suse.de>
2828 * src/locale_init.cc (locale::global(const locale&)): Use
2829 locale::name() in order to decide whether calling setlocale.
2830 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
2832 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
2833 Avoid computing &= unnecessarily.
2835 2004-02-09 James E Wilson <wilson@specifixinc.com>
2838 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
2839 __builtin_extend_pointer.
2841 2004-02-09 Paolo Carlini <pcarlini@suse.de>
2844 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
2845 Don't leave dangling pointers.
2846 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
2847 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
2848 facet is needed in the final test.
2850 2004-02-09 Bernardo Innocenti <bernie@develer.com>
2852 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
2853 * configure: Regenerate.
2855 2004-02-08 Richard Henderson <rth@redhat.com>
2858 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
2859 uncaughtExceptions during nested catch rethrow.
2860 * testsuite/18_support/14026.cc: New.
2862 2004-02-08 Paolo Carlini <pcarlini@suse.de>
2864 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
2865 When working in place remember to set the state to sharable
2866 (otherwise, _M_mutate does it).
2868 2004-02-08 Bernardo Innocenti <bernie@develer.com>
2870 * include/bits/allocator.h, include/bits/basic_ios.h,
2871 include/bits/basic_ios.tcc, include/bits/basic_string.h,
2872 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
2873 include/bits/char_traits.h, include/bits/codecvt.h,
2874 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
2875 include/bits/demangle.h, include/bits/deque.tcc,
2876 include/bits/fstream.tcc, include/bits/functexcept.h,
2877 include/bits/gslice.h, include/bits/gslice_array.h,
2878 include/bits/indirect_array.h, include/bits/ios_base.h,
2879 include/bits/istream.tcc, include/bits/list.tcc,
2880 include/bits/locale_classes.h, include/bits/locale_facets.h,
2881 include/bits/locale_facets.tcc, include/bits/localefwd.h,
2882 include/bits/mask_array.h, include/bits/ostream.tcc,
2883 include/bits/postypes.h, include/bits/slice_array.h,
2884 include/bits/sstream.tcc, include/bits/stl_algo.h,
2885 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
2886 include/bits/stl_construct.h, include/bits/stl_deque.h,
2887 include/bits/stl_function.h, include/bits/stl_heap.h,
2888 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
2889 include/bits/stl_list.h, include/bits/stl_map.h,
2890 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
2891 include/bits/stl_numeric.h, include/bits/stl_pair.h,
2892 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
2893 include/bits/stl_relops.h, include/bits/stl_set.h,
2894 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
2895 include/bits/stl_threads.h, include/bits/stl_tree.h,
2896 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
2897 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
2898 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
2899 include/bits/type_traits.h, include/bits/valarray_after.h,
2900 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
2901 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
2902 trailing whitespace.
2904 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2906 * include/bits/basic_string.h: Fix comment.
2908 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2910 * include/bits/stl_construct.h: Wrap overlong lines, reformat
2911 according to the coding standards.
2912 * include/bits/stl_pair.h: Likewise.
2913 * include/bits/stl_raw_storage_iter.h: Likewise.
2914 * include/bits/stl_stack.h: Likewise.
2915 * include/bits/stl_uninitialized.h: Likewise.
2916 * include/bits/stream_iterator.h: Likewise.
2917 * include/bits/streambuf_iterator.h: Likewise.
2918 * include/bits/type_traits.h: Likewise.
2920 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2922 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2925 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
2927 * scripts/check_performance: Support PCH.
2929 * scripts/check_performance (CXX): Add -DNOTHREAD.
2930 * testsuite/performance/20_util/allocator/insert.cc: Integrate
2931 threaded tests from insert_insert.cc. Tweak iterations,
2932 remove special cases.
2933 * testsuite/performance/20_util/allocator/insert_insert.cc:
2934 Make all tests single-threaded. Tweak iterations.
2935 * testsuite/performance/20_util/allocator/map_thread.cc:
2937 * testsuite/performance/20_util/allocator/producer_consumer.cc:
2940 2004-02-05 Geoffrey Keating <geoffk@apple.com>
2944 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
2945 'gcc-lib'. Add comment about poorly-named variables.
2946 * aclocal.m4: Regenerate.
2947 * configure: Regenerate.
2949 2004-02-05 Paolo Carlini <pcarlini@suse.de>
2951 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2952 Thousands-sep are always optional; thousands-sep are not allowed
2953 after the decimal_point.
2954 * testsuite/22_locale/money_get/get/char/12.cc: New.
2955 * testsuite/22_locale/money_get/get/char/13.cc: New.
2956 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
2957 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
2959 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
2960 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2961 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2962 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2963 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2964 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2965 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2966 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2968 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
2970 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
2972 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
2974 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
2976 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
2977 it to decide whether FIONREAD should take an off_t or int argument.
2979 2004-02-05 Paolo Carlini <pcarlini@suse.de>
2981 * include/bits/stl_function.h: Minor formatting changes.
2983 2004-02-04 Zack Weinberg <zack@codesourcery.com>
2985 Revert previous change to config/abi/*/baseline_symbols.txt.
2987 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
2988 Zack Weinberg <zack@codesourcery.com>
2990 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
2992 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
2993 (__basic_file<char>::_M_open_mode): Delete.
2994 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
2996 * testsuite/27_io/basic_filebuf/close/char/9964.cc
2997 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2998 Correct flags to filebuf::open calls.
3000 * config/abi/alpha-freebsd5/baseline_symbols.txt
3001 * config/abi/alpha-linux-gnu/baseline_symbols.txt
3002 * config/abi/hppa-linux-gnu/baseline_symbols.txt
3003 * config/abi/i386-freebsd4/baseline_symbols.txt
3004 * config/abi/i386-freebsd5/baseline_symbols.txt
3005 * config/abi/i486-linux-gnu/baseline_symbols.txt
3006 * config/abi/ia64-linux-gnu/baseline_symbols.txt
3007 * config/abi/mips-linux-gnu/baseline_symbols.txt
3008 * config/abi/sparc-freebsd5/baseline_symbols.txt
3009 * config/abi/sparc-linux-gnu/baseline_symbols.txt
3010 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
3011 Remove entry for __basic_file<char>::_M_open_mode.
3013 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
3015 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
3017 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
3019 * testsuite/performance/20_util/producer_consumer.cc: New.
3020 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
3022 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
3024 * testsuite/performance/20_util/allocator.cc: Move to..
3025 * testsuite/performance/20_util/allocator/insert.cc: ...here.
3026 * testsuite/performance/20_util/allocator_thread.cc: Move to...
3027 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
3028 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
3029 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
3031 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
3033 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
3034 * docs/html/faq/index.txt: Regenerate.
3036 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
3038 * include/ext/debug_allocator.h: _M_extra now stands for the
3039 number of extra objects instead of the number of extra bytes.
3040 (debug_allocator::allocate): Adjust.
3041 (debug_allocator::deallocate): Adjust.
3043 * include/ext/pool_allocator.h: Fix typo.
3045 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
3046 Benjamin Kosnik <bkoz@redhat.com>
3048 * testsuite/performance/20_util/allocator.cc: Add map,
3050 * testsuite/performance/20_util/allocator_thread.cc: Same.
3052 2004-02-03 Paolo Carlini <pcarlini@suse.de>
3054 * include/bits/basic_string.h (insert(iterator)): Remove,
3055 non-standard and already scheduled for removal.
3057 2004-02-03 Paolo Carlini <pcarlini@suse.de>
3059 * include/bits/stl_iterator_base_funcs.h: Minor formatting
3060 and indentation tweaks.
3061 * include/bits/stl_iterator_base_types.h: Likewise.
3062 * include/bits/stl_list.h: Likewise.
3063 * include/bits/stl_map.h: Likewise.
3064 * include/bits/stl_tempbuf.h: Likewise.
3066 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
3068 * include/bits/gslice.h, include/bits/gslice_array.h,
3069 include/bits/indirect_array.h, include/bits/mask_array.h,
3070 include/bits/slice_array.h, include/bits/stl_numeric.h,
3071 include/std/std_valarray.h: Update copyright years.
3073 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
3075 * include/bits/gslice.h (gslice): Document.
3076 * include/bits/gslice_array.h (gslice_array): Document.
3077 * include/bits/indirect_array (indirect_array): Document.
3078 * include/bits/mask_array (mask_array): Document.
3079 * include/bits/slice_array.h (slice,slice_array): Document.
3080 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
3081 adjacent_difference): Document
3082 * include/std/std_valarray.h (valarray): Document.
3084 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
3086 * docs/html/19_diagnostics/howto.html: Move verbose terminate
3088 * docs/html/18_support/howto.html: Here.
3089 * docs/html/documentation.html: Add reference here.
3091 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3093 * config/locale/gnu/c++locale_internal.h: Remove prototypes
3094 of no longer used GLIBC thread locale functions.
3096 2004-02-02 Eric Christopher <echristo@redhat.com>
3097 Zack Weinberg <zack@codesourcery.com>
3099 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
3101 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
3102 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
3103 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
3104 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
3105 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
3106 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
3107 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
3108 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3111 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3113 * include/bits/stl_function.h: Additional minor tweaks.
3114 * include/bits/stl_multiset.h: Likewise.
3116 * include/bits/stl_queue.h: Minor tweaks.
3118 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3120 PR libstdc++/13976 (continued)
3121 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
3122 Make the second parameter unnamed, to void unused parameter
3124 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
3126 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3129 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
3130 Make the second parameter unnamed, to void unused parameter
3132 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
3133 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
3135 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3137 * include/bits/stl_algo.h: Additional minor tweaks.
3138 * include/bits/stl_map.h: Likewise.
3139 * include/bits/stl_multimap.h: Likewise.
3140 * include/bits/stl_multiset.h: Likewise.
3141 * include/bits/stl_set.h: Likewise.
3142 * include/bits/stl_tree.h: Likewise.
3144 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3146 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
3149 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3151 * include/bits/stl_function.h: Additional minor tweaks.
3153 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3155 * include/bits/deque.tcc: Wrap overlong lines, constify
3156 a few variables, reformat according to the coding standards.
3157 * include/bits/list.tcc: Likewise.
3158 * include/bits/stl_deque.h: Likewise.
3159 * include/bits/stl_function.h: Likewise.
3160 * include/bits/stl_iterator.h: Likewise.
3161 * include/bits/stl_iterator_base_funcs.h: Likewise.
3162 * include/bits/stl_iterator_base_types.h: Likewise.
3163 * include/bits/stl_list.h: Likewise.
3164 * include/bits/stl_map.h: Likewise.
3165 * include/bits/stl_multimap.h: Likewise.
3166 * include/bits/stl_multiset.h: Likewise.
3167 * include/bits/stl_relops.h: Likewise.
3168 * include/bits/stl_set.h: Likewise.
3170 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3172 * include/bits/stl_bvector.h: Wrap overlong lines, constify
3173 a few variables, reformat according to the coding standards.
3174 * include/bits/stl_tree.h: Likewise.
3176 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3178 * include/bits/stl_algo.h: Minor additional reformat, add
3180 * include/bits/stl_algobase.h: Add copyright year.
3182 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3184 * include/bits/stl_algo.h: Wrap overlong lines, constify
3185 a few variables, reformat according to the coding standards.
3186 * include/bits/stl_algobase.h: Likewise.
3187 * include/bits/stl_heap.h: Likewise.
3189 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3191 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
3193 * include/bits/basic_string.h: Fix two comments.
3195 2004-01-31 Per Bothner <per@bothner.com>
3197 * include/ext/mt_allocator.h
3198 (__mt_alloc::_S_thread_freelist_mutex): Guard with
3199 __GTHREAD_MUTEX_INIT.
3201 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3203 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
3205 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3207 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
3208 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
3209 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
3211 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
3213 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
3214 Don't use clear, but instead assign. Use insert.
3216 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
3218 * src/demangle.cc: Add instantiations.
3219 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
3220 * src/Makefile.in: Regenerate.
3222 2004-01-30 David Edelsohn <edelsohn@gnu.org>
3224 * src/allocator.cc: Protect _S_get_thread_id() and
3225 _S_thread_key_destr() with #ifdef __GTHREADS.
3227 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3229 Reshuffle performance testsuite.
3230 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
3231 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
3232 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
3233 fstream_seek_write.cc, ifstream_extract_float.cc,
3234 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
3235 list_create_fill_sort.cc, map_create_fill.cc,
3236 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
3237 ofstream_insert_float.cc, ofstream_insert_int.cc,
3238 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
3239 wchar_t_out.cc: Split into...
3240 * testsuite/performance/20_util/allocator.cc: New.
3241 * testsuite/performance/20_util/allocator_map_thread.cc: New.
3242 * testsuite/performance/20_util/allocator_thread.cc: New.
3243 * testsuite/performance/21_strings/string_append: New.
3244 * testsuite/performance/22_locale/is_wchar_t.cc: New.
3245 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
3246 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
3247 * testsuite/performance/22_locale/wchar_t_in.cc: New.
3248 * testsuite/performance/22_locale/wchar_t_length.cc: New.
3249 * testsuite/performance/22_locale/wchar_t_out.cc: New.
3250 * testsuite/performance/23_containers/container_benchmark.cc: New.
3251 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
3252 * testsuite/performance/23_containers/map_create_fill.cc: New.
3253 * testsuite/performance/26_numerics/complex_norm.cc: New.
3254 * testsuite/performance/27_io/cout_insert_int.cc: New.
3255 * testsuite/performance/27_io/filebuf_copy.cc: New.
3256 * testsuite/performance/27_io/filebuf_sputc.cc: New.
3257 * testsuite/performance/27_io/fstream_seek_write.cc: New.
3258 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
3259 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
3260 * testsuite/performance/27_io/ifstream_getline.cc: New.
3261 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
3262 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
3264 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3266 * include/bits/basic_string.tcc (_Rep::_S_create):
3267 Never allocate a string bigger than max_size(); always keep
3268 __capacity and __size in sync to avoid memory leaks at
3271 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3273 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3274 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
3275 the double loop, streamline.
3277 * include/bits/basic_string.tcc: Very minor tweaks.
3279 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
3281 * scripts/check_performance: Only compile with $THREAD_FLAG
3282 when test is marked to require it. Allow multiple
3283 compilations/executions of marked tests.
3284 * testsuite/testsuite_performance.h (report_performance):
3285 Report dynamic thread support status.
3286 (report_header): Likewise.
3287 * testsuite/performance/allocator.cc: Stabilize iteration
3288 count. Support more allocators. Mark each allocator test to
3289 run and report independently.
3290 * testsuite/performance/allocator_map_thread.cc: Likewise.
3291 * testsuite/performance/allocator_thread.cc: Likewise.
3293 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
3295 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
3296 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
3297 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
3298 std::get_temporary_buffer() instead of duplicating its code.
3299 Update to C++STYLE conventions.
3300 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
3301 new() instead of std::malloc().
3302 (return_temporary_buffer): Use ::operator delete() instead of
3305 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
3307 * include/bits/allocator.h: Temporary switch to new_allocator as
3308 the default to unjam bootstraps.
3310 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
3312 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
3313 * include/Makefile.in: Regenerate.
3314 * include/bits/allocator_traits.h: Remove.
3315 * include/bits/allocator.h: Remove allocator_traits.h include, and
3317 (allocator): Empty base class, inherit from the underlying allocator.
3318 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
3319 * src/allocator.cc: ...here. New. For the underlying allocators.
3320 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
3321 * config/linker-map.gnu: Remove __pool_alloc bits.
3322 * src/Makefile.am (sources): Add allocator.cc.
3323 * src/Makefile.in: Regenerate.
3324 * testsuite/20_util/allocator/1.cc: Split second test into...
3325 * testsuite/20_util/allocator/8230.cc: ...this.
3326 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
3327 typedef to use std::allocatore. Format.
3328 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
3330 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
3331 __throw_bad_alloc calls. Don't include <memory>.
3332 * include/ext/malloc_allocator.h: Remove <memory> include.
3333 * include/ext/new_allocator.h (new_allocator): Same.
3334 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
3335 declaration. Switch __alloc to _Alloc.
3336 * include/ext/hashtable.h: Remove __alloc.
3337 * include/backward/alloc.h: Only inject allocator, not
3338 implementation details.
3340 * include/ext/mt_allocator.h: Replace free with delete.
3342 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
3344 * src/globals_io.cc: Change to __gnu_internal namespace.
3345 * src/globals_locale.cc: Same.
3346 * src/locale_init.cc: Same.
3347 * src/ios_init.cc: Same.
3349 2004-01-28 Stefan Olsson <stefan@snon.net>
3351 * include/ext/mt_allocator.h: Replaced all malloc() calls with
3352 operator new(). Added support for the env variable
3353 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
3354 one in allocate() as well). Fix typos.
3356 2004-01-28 Paolo Carlini <pcarlini@suse.de>
3358 * include/bits/basic_string.h (_S_create(size_t,
3359 const _Alloc&): Change signature to take two size_type
3361 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3362 _InIterator, const _Alloc&, input_iterator_tag)): Update
3364 (_S_construct(_InIterator, _InIterator, const _Alloc&,
3365 forward_iterator_tag)): Likewise.
3366 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
3367 (_M_mutate(size_type, size_type, size_type)): Don't
3368 implement the exponential growth policy, demand it to
3369 _S_create, update call and simplify.
3370 (_M_clone(const _Alloc&, size_type)): Likewise.
3371 (_S_create(size_type, size_type, const _Alloc&)): Implement
3372 the growth policy, simplify otherwise.
3374 * include/bits/basic_string.h (_Rep::operator[]): Tweak
3375 signature to take a size_type, consistently with the other
3378 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
3380 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
3381 delete declarations, add include and test variable.
3383 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
3385 * include/bits/codecvt.h, include/bits/locale_facets.h,
3386 include/bits/postypes.h, include/bits/stl_bvector.h,
3387 include/bits/stl_multiset.h, include/bits/stl_set.h,
3388 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
3389 include/std/std_complex.h: Document.
3391 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
3394 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
3395 iword/pword selector.
3396 (ios_base::iword, ios_base::pword): Use it.
3397 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
3398 iword or pword member on alloc failure.
3399 * testsuite/27_io/ios_base/storage/11584.cc: New test.
3401 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
3402 PJ Darcy <darcypj@us.ibm.com>
3404 * configure.host: Add support for *-tpf.
3405 * crossconfig.m4: Likewise.
3406 * configure: Regenerate.
3407 * config/os/tpf: New directory.
3408 * config/os/tpf/os_defines.h: New file.
3409 * config/os/tpf/ctype_base.h: Likewise.
3410 * config/os/tpf/ctype_inline.h: Likewise.
3411 * config/os/tpf/ctype_noninline.h: Likewise.
3413 2004-01-27 Paolo Carlini <pcarlini@suse.de>
3416 * include/bits/sstream.tcc: Guard use of extern template.
3418 2004-01-27 Paolo Carlini <pcarlini@suse.de>
3420 * include/bits/basic_string.tcc
3421 (basic_string(const basic_string&, size_type, size_type),
3422 basic_string(const basic_string&, size_type, size_type,
3423 const _Alloc&)): Avoid unnecessarily constructing iterators.
3425 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3427 * config/locale/generic/c_locale.cc: Fix throw messages
3428 to use the __N marker.
3429 * config/locale/gnu/c_locale.cc: Likewise.
3430 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
3432 * docs/html/17_intro/C++STYLE: Likewise.
3433 * include/bits/basic_ios.tcc: Likewise.
3434 * include/bits/fstream.tcc: Likewise.
3435 * include/bits/vector.tcc: Likewise.
3436 * include/ext/ropeimpl.h: Likewise.
3437 * include/std/std_bitset.h: Likewise.
3438 * src/ios.cc: Likewise.
3439 * src/locale.cc: Likewise.
3440 * src/localename.cc: Likewise.
3442 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3444 * include/bits/basic_string.h (_M_replace_aux): Use the
3445 __N marker in throw message.
3446 * include/bits/basic_string.tcc (assign(const _CharT*,
3447 size_type), insert(size_type, const _CharT*, size_type),
3448 replace(size_type, size_type, const _CharT*, size_type),
3449 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
3452 * include/bits/basic_string.h, include/bits/basic_string.tcc:
3453 Fold overlong lines, minor formatting changes.
3455 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3457 * include/bits/basic_string.h (replace(iterator, iterator,
3458 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
3459 (replace(iterator, iterator, const _CharT*)): Ditto.
3460 (replace(iterator, iterator, const _CharT*, size_type)):
3461 Add missing _GLIBCXX_DEBUG_PEDASSERT.
3463 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3465 * include/bits/basic_string.tcc (replace(size_type,
3466 size_type, const _CharT*, size_type)): Implement optimized
3467 in-place algorithm for non-overlapping ranges.
3468 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
3469 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
3471 * include/bits/basic_string.tcc (insert(size_type,
3472 const _CharT*, size_type)): Tweak slightly.
3474 2004-01-26 Andreas Schwab <schwab@suse.de>
3476 * config/locale/gnu/monetary_members.cc: Restore locale before
3477 rethrowing exception.
3479 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3481 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
3483 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
3486 * include/bits/basic_string.tcc: Very minor tweaks.
3488 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3490 * testsuite/performance/string_append.cc: Increase number
3493 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3495 * include/bits/basic_string.h (erase(size_type, size_type),
3496 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
3497 instead, thus avoiding redundant check for length_error.
3499 * include/bits/basic_string.h: Tweak some comments.
3501 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3503 * include/bits/basic_string.tcc (operator+(const _CharT*,
3504 const basic_string&)): No need to go through the append
3505 taking two iterators.
3507 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3509 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
3510 Revert last change to use std::min: machine language is worse.
3511 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
3512 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3513 (find_last_not_of(_CharT, size_type)): Ditto.
3515 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
3516 size_type)): Discard the value returned by _M_check.
3517 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
3518 (append(const basic_string&, size_type, size_type)): Ditto.
3519 (copy(_CharT*, size_type, size_type)): Ditto.
3520 (compare(size_type, size_type, const basic_string&)): Ditto.
3521 (compare(size_type, size_type, const basic_string&,
3522 size_type, size_type)): Ditto.
3523 (compare(size_type, size_type, const _CharT*)): Ditto.
3524 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3526 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3528 * include/bits/basic_string.h (insert(size_type,
3529 const basic_string&, size_type, size_type)): Define inline here.
3530 * include/bits/basic_string.tcc (insert(size_type,
3531 const basic_string&, size_type, size_type)): Move inline.
3533 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3535 * include/bits/basic_string.h (assign(const basic_string&,
3536 size_type, size_type)): Define inline here.
3537 (replace(size_type, size_type, const basic_string&,
3538 size_type, size_type)): Ditto.
3539 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3540 _InputIterator, __false_type)): Only declare.
3541 (_M_replace(iterator, iterator, _InputIterator,
3542 _InputIterator)): Remove.
3543 * include/bits/basic_string.tcc (assign(const basic_string&,
3544 size_type, size_type)): Move inline.
3545 (replace(size_type, size_type, const basic_string&,
3546 size_type, size_type)): Ditto.
3547 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3548 _InputIterator, __false_type)): Define, now does also what
3549 _M_replace did before.
3550 * src/string-inst.cc (_M_replace): Don't instantiate.
3552 * include/bits/basic_string.tcc (find(const _CharT*,
3553 size_type, size_type)): Tidy.
3554 (rfind(_CharT, size_type)): Ditto.
3555 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
3556 (find_first_not_of(_CharT, size_type)): Ditto.
3557 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3558 (find_last_not_of(_CharT, size_type)): Ditto.
3560 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3563 * include/debug/bitset (operator|=): Fix typo.
3564 * testsuite/23_containers/bitset/operations/13838.cc: New.
3566 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3568 * include/bits/basic_string.tcc (insert(size_type,
3569 const _CharT*, size_type __n)): Fix length_error check.
3570 (replace(size_type, size_type, const _CharT*, size_type):
3571 Ditto; call _M_replace_safe.
3572 (_M_replace_aux(size_type, size_type, size_type, _CharT):
3573 Fix length_error check.
3574 (_M_replace(iterator, iterator, _InputIterator,
3575 _InputIterator)): Ditto, tweak.
3576 (_M_replace_safe(size_type, size_type, const _CharT*,
3577 size_type)): Remove length_error check.
3579 * include/bits/basic_string.tcc (append(const basic_string&),
3580 append(const basic_string&, size_type, size_type)): Tweak
3583 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
3584 size_type)): If __n == 0 don't call traits::copy.
3586 2004-01-23 Stefan Olsson <stefan@snon.net>
3588 * include/ext/mt_allocator.h: Reduce lock contention.
3590 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3593 * include/bits/fstream.tcc (underflow): Remove unused
3595 * include/bits/streambuf_iterator.h (equal): Ditto.
3596 * include/bits/locale_facets.h (_M_convert_from_char):
3599 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3602 * config/linker-map.gnu (nan): Delete.
3603 * libmath/mathconf.h (NAN, nan): Delete.
3604 * linkage.m4 (nan): Don't check for it.
3605 * libmath/nan.c: Delete file.
3607 * config.h.in, configure: Regenerate.
3609 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3611 * include/bits/basic_string.h (push_back(_CharT)):
3612 Call _M_replace_aux.
3613 (insert(size_type, const basic_string&)): Trivial tweak.
3614 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
3615 (insert(iterator, _CharT)): Ditto.
3616 (erase(size_type, size_type)): Ditto.
3617 (erase(iterator)): Ditto.
3618 (erase(iterator, iterator)): Ditto.
3619 (replace(size_type, size_type, size_type, _CharT)): Ditto.
3621 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
3624 * testsuite/performance/allocator_map_thread.cc: New test.
3626 2004-01-22 Paolo Carlini <pcarlini@suse.de>
3628 * include/bits/locale_facets.tcc
3629 (money_put::do_put(..., long double)): Use the basic_string
3630 constructor for char arrays, not that for C-strings, to pass
3631 __digits to do_put(..., const string_type&): __ws isn't
3634 2004-01-22 Paolo Carlini <pcarlini@suse.de>
3636 * include/bits/basic_string.h (_M_replace_safe): Change
3637 signatures to take size_types and const _CharT*.
3638 (_M_replace_aux): Likewise, takes size_types instead of
3640 (append(size_type, _CharT)): Update call.
3641 (assign(size_type, _CharT)): Ditto.
3642 (replace(iterator, iterator, size_type, _CharT)): Ditto.
3643 (_M_replace_dispatch(iterator, iterator, _Integer,
3644 _Integer, __true_type)): Ditto.
3645 * include/bits/basic_string.tcc (assign(const _CharT*,
3647 (insert(size_type, const _CharT*, size_type)): Ditto.
3648 (replace(size_type, size_type, const _CharT*,
3650 (_M_replace(iterator, iterator, _InputIterator,
3651 _InputIterator)): Ditto.
3652 (append(const basic_string&)): Ditto.
3653 (append(const basic_string&, size_type, size_type): Ditto.
3654 (append(const _CharT*, size_type): Ditto.
3655 (_M_replace_safe, _M_replace_safe): Change definitions
3656 accordingly, simplify.
3657 * string-inst.cc (_M_replace_safe): Don't instantiate.
3659 2004-01-21 Paolo Carlini <pcarlini@suse.de>
3661 * include/bits/basic_string.tcc (append(const basic_string&)):
3662 Revert previous change.
3663 (append(const basic_string&, size_type, size_type)): Revert
3664 previous change, use _M_check and _M_limit.
3666 2004-01-21 Paolo Carlini <pcarlini@suse.de>
3668 * include/bits/basic_string.h (_M_check): Change to return
3669 a checked __pos and take an additional const char* argument.
3670 (_M_fold): Rename to _M_limit, change to return a size_type,
3671 corresponding to the __off limited to the actual length.
3672 (insert(size_type, size_type, _CharT)): Update call, call
3674 (insert(iterator, _CharT)): Call replace(iterator, iterator,
3675 size_type, _CharT) instead.
3676 (erase(size_type, size_type)): Update calls.
3677 (replace(size_type, size_type, size_type, _CharT)): Ditto.
3678 (substr(size_type, size_type)): Use _M_check.
3679 * include/bits/basic_string.tcc (basic_string(const basic_string&,
3680 size_type, size_type)): Update calls.
3681 (basic_string(const basic_string&, size_type, size_type,
3682 const _Alloc&)): Ditto.
3683 (assign(const basic_string&, size_type, size_type)): Use the
3684 new _M_check and _M_limit.
3685 (insert(size_type, const basic_string&, size_type, size_type):
3687 (insert(size_type, const _CharT*, size_type)): Ditto.
3688 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
3689 (replace(size_type, size_type, const basic_string&,
3690 size_type, size_type)): Ditto.
3691 (append(const basic_string&)): Ditto.
3692 (append(const basic_string&, size_type, size_type)): Ditto.
3693 (copy(_CharT*, size_type, size_type)): Ditto.
3694 (compare(size_type, size_type, const basic_string&)): Ditto.
3695 (compare(size_type, size_type, const basic_string&,size_type,
3697 (compare(size_type, size_type, const _CharT*)): Ditto.
3698 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3700 2004-01-19 Stefan Olsson <stefan@snon.net>
3702 * include/ext/mt_allocator.h: If a thread, when it dies, still has
3703 memory on it's freelist this memory is not returned to global
3704 list. Simplification of deallocate so that memory is always
3705 returned to the calling thread id's freelist instead of to
3706 global. Fix typos. Add volatile where appropriate.
3708 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
3710 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
3711 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
3712 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
3714 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3716 * src/debug.cc: Make sure all the names are prefixed with
3717 double (or single) underscore.
3719 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3721 * src/debug.cc: Trivial formatting change.
3723 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3725 * include/bits/basic_string.tcc (_S_construct(size_type,
3726 _CharT, const _Alloc&)): Remove redundant try/catch.
3727 (_M_mutate(size_type, size_type, size_type)): Ditto.
3728 (_M_clone(const _Alloc&, size_type)): Ditto.
3730 2004-01-18 Paolo Carlini <pcarlini@suse.de>
3732 * include/bits/basic_string.h (c_str()): Simplify, due to
3733 21.3.4 the internal representation is always kept null-terminated.
3734 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
3735 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
3736 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
3739 2004-01-18 Paolo Carlini <pcarlini@suse.de>
3741 * include/bits/basic_string.h (append(size_type, _CharT)):
3742 Moved inline, just call _M_replace_aux, no source iterators at
3743 risk of being clobbered.
3744 (assign(size_type, _CharT)): Call directly _M_replace_aux.
3745 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3746 input_iterator_tag)): Remove fifth unused argument.
3747 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3748 _InputIterator, __false_type)): Update call.
3749 * include/bits/basic_string.tcc (replace(size_type, size_type,
3750 const _CharT*, size_type)): Update call.
3751 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
3752 throw string literal.
3753 (_M_replace_safe(iterator, iterator, _ForwardIterator,
3754 _ForwardIterator)): Likewise.
3755 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3756 input_iterator_tag)): Remove fifth unused argument.
3757 (append(size_type __n, _CharT __c)): Move inline.
3758 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
3759 const C*, const C*, input_iterator_tag)): Remove fifth unused
3762 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
3764 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
3765 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
3767 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
3769 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
3772 2004-01-15 Stefan Olsson <stefan@snon.net>
3774 * include/ext/mt_allocator.h: Reuse thread id's as soon as
3775 possible by changing the behaviour of thread_freelist to do
3776 push_front when threads die instead of push_back.
3778 2004-01-14 Paolo Carlini <pcarlini@suse.de>
3780 * include/bits/locale_facets.h (struct __numpunct_cache):
3781 Add member _M_grouping_size, caching the length of _M_grouping.
3782 (__numpunct_cache<>::_M_cache): Assign the latter.
3783 (__verify_grouping): Move declaration...
3784 * include/bits/locale_facets.tcc (__verify_grouping):
3785 ... here, change signature to take a const char* and a size_t
3786 for the grouping; not a template anymore.
3787 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
3788 Likewise change signature and tweak consistently.
3789 (num_get::_M_extract_float, num_get::_M_extract_int,
3790 num_put::_M_insert_int, num_put::_M_insert_float,
3791 money_get::do_get(string_type&), money_get::do_put(string_type)):
3793 * config/locale/generic/numeric_members.cc
3794 (numpunct<>::_M_initialize_numpunct): Assign the new member.
3795 * config/locale/gnu/numeric_members.cc
3796 (numpunct<>::_M_initialize_numpunct): Likewise.
3797 * src/locale-inst.cc (__add_grouping): Tweak signature.
3798 (__verify_grouping): Don't instantiate, not a template anymore.
3800 * include/bits/locale_facets.h: Rename _M_truename_len ->
3801 _M_truename_size, _M_falsename_len -> _M_falsename_size.
3802 * include/bits/locale_facets.tcc: Likewise.
3803 * config/locale/generic/numeric_members.cc: Likewise.
3804 * config/locale/gnu/numeric_members.cc: Likewise.
3806 2004-01-14 Stefan Olsson <stefan@snon.net>
3808 * include/ext/mt_allocator.h: Fixups.
3809 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
3810 * testsuite/performance/allocator_thread.cc: Same.
3812 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
3814 * testsuite/performance/ifstream_extract_float.cc: Add higher
3816 * testsuite/performance/ofstream_insert_float.cc: Same.
3818 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3820 * src/locale-misc-inst.cc (__convert_from_v(long),
3821 __convert_from_v(unsigned long), __convert_from_v(long long),
3822 __convert_from_v(unsigned long long)): Remove, unused.
3824 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
3826 * testsuite/performance/ifstream_extract_float.cc: New.
3827 * testsuite/performance/ofstream_insert_float.cc: Float generation
3830 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
3831 * 20_util/auto_ptr/1.cc: ...this.
3832 * 20_util/auto_ptr/2.cc: Same.
3833 * 20_util/auto_ptr/3.cc: Same.
3834 * 20_util/auto_ptr/3946.cc: Same.
3835 * 20_util/auto_ptr/4.cc: Same.
3836 * 20_util/auto_ptr/5.cc: Same.
3837 * 20_util/auto_ptr/6.cc: Same.
3838 * 20_util/auto_ptr/7.cc: Same.
3839 * 20_util/auto_ptr/assign_neg.cc
3840 * 20_util/pairs.cc: Break into...
3841 * 20_util/pair/1.cc: ...this.
3842 * 20_util/pair/2.cc: Same.
3843 * 20_util/pair/3.cc: Same.
3844 * 20_util/pair/4.cc: Same.
3846 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3848 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
3849 Set correctly just basefield, the only group that matters.
3851 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3853 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
3854 (_Rope_rep_base): Inherit directly from the rope allocator;
3855 use rebinding instead of _Alloc_traits; pick up data member
3856 from _Rope_rep_alloc_base.
3857 (_Rope_alloc_base): Eliminate.
3858 (_Rope_base): Inherit directly from the rope allocator; use
3859 rebinding instead of _Alloc_traits; pick up data member from
3861 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
3862 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
3864 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3867 * include/bits/basic_string.tcc (compare(size_type, size_type,
3868 const _CharT*, size_type)): Implement correctly the resolution
3869 of DR 5: basically, s is a char array, -not- a C string.
3870 * include/bits/basic_string.h: Tweak some comments.
3871 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
3872 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
3874 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
3876 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
3879 2004-01-12 Paolo Carlini <pcarlini@suse.de>
3881 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
3883 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
3886 2004-01-12 Paolo Carlini <pcarlini@suse.de>
3888 * include/bits/locale_facets.h (struct __numpunct_cache):
3889 Add members _M_truename_len and _M_falsename_len, caching
3890 the lengths of _M_truename and _M_falsename.
3891 (__numpunct_cache<>::_M_cache): Assign the latter.
3892 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
3893 num_put::do_put(bool)): Use the new members, thus avoiding
3894 computing string lengths again and again.
3895 * config/locale/generic/numeric_members.cc
3896 (numpunct<>::_M_initialize_numpunct): Assign the new members.
3897 * config/locale/gnu/numeric_members.cc
3898 (numpunct<>::_M_initialize_numpunct): Likewise.
3900 2004-01-12 Mark Mitchell <mark@codesourcery.com>
3902 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
3903 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
3905 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
3906 and remove Cygwin XFAIL.
3907 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
3908 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
3909 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
3910 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
3912 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3913 * testsuite/27_io/objects/char/7.cc: Likewise.
3914 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
3915 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
3916 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
3918 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
3920 * include/std/std_complex.h (std::complex<>::real): Return a
3921 reference. Add non-const overload.
3922 (std::complex<>::real): Likewise.
3923 (std::real): Likewise.
3924 (std::imag): Likewise.
3925 (std::operator+): Tidy.
3926 (std::operator-): Likewise.
3927 (std::operator*): Likewise.
3928 (std::operator/): Likewise.
3929 (std::operator>>): Likewise.
3931 2004-01-11 Paolo Carlini <pcarlini@suse.de>
3934 * include/bits/fstream.tcc (imbue): Exploit the external
3935 buffer to imbue 'on the fly' a new locale and convert its
3936 remainder with the new codecvt facet.
3937 (underflow): Tweak slightly to deal with this special case.
3938 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
3939 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
3940 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
3941 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
3942 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
3944 2004-01-10 Paolo Carlini <pcarlini@suse.de>
3946 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
3949 2004-01-10 Paolo Carlini <pcarlini@suse.de>
3952 * include/bits/locale_classes.h (class locale): Fix category
3954 * testsuite/22_locale/locale/13630.cc: Add.
3956 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
3958 * include/bits/locale_facets.h: Make a name really dependent. This
3959 will be needed when Core Issue 224 is implemented.
3961 2004-01-09 Paolo Carlini <pcarlini@suse.de>
3963 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
3964 * testsuite/performance/allocator_thread.cc: Likewise.
3966 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
3968 * crossconfig.m4: Add LFS, io bits to linux cross config.
3969 * acconfig.h: Remove obsolete bits, reorder.
3970 * config.h.in: Regenerate.
3974 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
3976 * include/bits/stl_list.h:
3977 * include/bits/list.tc:
3979 Performance enhancements for destructor, push_front(),
3980 push_back(), pop_front(), pop_back(), sort()
3981 Eliminated static_casts where possible.
3982 Moved code out of header files into new src/list.cc
3983 implementation file for library where possible.
3984 Remove inheritance from iterator class and create separate
3985 classes for non-constant and constant iterators.
3986 * include/bits/stl_tree.h (_Rb_tree class):
3988 Only erase contents in destructor.
3989 Eliminate unnecessary initialization in assignment operator.
3990 Optimize for the nominal case by not checking whether
3991 container is empty in clear().
3992 Re-order test in _M_insert() to improve performance.
3993 Move initialization of new node's left & right pointers to
3994 src/tree.cc to where new node's colour is initialized
3995 and to reduce the amount of inline code.
3996 Use _M_leftmost() and _M_end() to improve readability where
3998 Create separate classes for non-constant and constant
3999 iterators to clarify code, avoid extra template parameters and
4000 casting away constness.
4002 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
4004 * src/Makefile.am (sources): Add list.cc, tree.cc.
4005 * src/stl_tree.cc: Move to...
4006 * src/tree.cc: ...here.
4008 * config/linker-map.gnu: Tweaks.
4009 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
4010 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
4012 * bits/stl_vector.h: Column wrap comments.
4014 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
4016 (re-open) PR libstdc++/12658
4017 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
4018 (locale::global): Likewise.
4020 2004-01-07 Paolo Carlini <pcarlini@suse.de>
4022 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
4023 Remove redundant #include.
4024 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
4025 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
4026 re-enable normal testing.
4027 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
4029 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
4030 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
4032 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
4034 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
4036 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
4038 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
4040 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
4042 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
4044 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
4045 More properly, #include <locale>.
4046 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
4047 Remove redundant #include.
4048 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
4049 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
4050 redundant DejaGnu directive.
4051 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
4054 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
4055 Stefan Olsson <stefan@snon.net>
4057 * scripts/check_performance: Use -pthread.
4058 * testsuite/performance/allocator.cc: Tweaks, add list.
4059 * testsuite/performance/allocator_thread.cc: New.
4061 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
4063 * include/bits/locale_facets.h: Document public classes and
4065 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
4068 2004-01-06 Paolo Carlini <pcarlini@suse.de>
4070 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
4071 Remove redundant #includes.
4072 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
4074 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
4076 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
4077 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
4078 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
4079 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
4080 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
4081 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
4082 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
4083 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
4084 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
4085 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
4086 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
4087 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
4088 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
4089 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
4090 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
4092 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
4094 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
4096 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
4098 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
4100 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
4101 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
4102 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
4104 2004-01-04 Paolo Carlini <pcarlini@suse.de>
4106 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
4107 Remove redundant #includes.
4108 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
4110 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
4112 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
4114 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
4116 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
4118 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
4120 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
4122 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
4124 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
4126 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
4128 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
4130 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
4133 2004-01-04 Mark Mitchell <mark@codesourcery.com>
4136 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
4138 * testsuite/27_io/basic_fstream/4.cc: Likewise.
4139 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
4140 * testsuite/27_io/basic_ios/4.cc: Likewise.
4141 * testsuite/27_io/basic_iostream/4.cc: Likewise.
4142 * testsuite/27_io/basic_istream/4.cc: Likewise.
4143 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
4144 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
4145 * testsuite/27_io/basic_ostream/4.cc: Likewise.
4146 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
4147 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
4148 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
4150 2004-01-04 Paolo Carlini <pcarlini@suse.de>
4152 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
4153 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
4154 always use double underscored names.
4155 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
4157 * include/bits/locale_facets.h (struct __numpunct_cache):
4158 Dimension _M_atoms_out and _M_atoms_in one position smaller.
4159 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out