1 2004-07-17 Richard Sandiford <rsandifo@redhat.com>
4 * scripts/create_testsuite_files: Pass -print to find.
6 2004-07-15 Paolo Carlini <pcarlini@suse.de>
8 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
9 * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
11 2004-07-15 Jakub Jelinek <jakub@redhat.com>
14 * acinclude.m4 (glibcxx_shared_libgcc): Correct
15 glibcxx_shared_libgcc test for multilibs.
18 2004-07-14 Paolo Carlini <pcarlini@suse.de>
21 * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
22 the signature to return void, as per 20.4.4.3.
23 * include/bits/stl_vector.h (vector::vector(size_type,
24 const value_type&, const allocator_type&), vector::vector(size_type),
25 vector::_M_initialize_dispatch): Adjust callers.
26 * include/bits/vector.tcc (vector<>::_M_fill_assign,
27 vector<>::_M_fill_insert): Likewise.
28 * testsuite/20_util/memory/16505.cc: New.
30 2004-07-14 Paolo Carlini <pcarlini@suse.de>
32 * testsuite/22_locale/locale/cons/12658_thread-1.cc,
33 12658_thread-2.cc: Use __gnu_test::try_named_locale.
35 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
37 * docs/html/ext/mt_allocator.html: Add docs for _Tune.
38 * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
39 (__mt_alloc::_S_set_options): Same.
42 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
44 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
46 * configure: Regenerated.
48 2004-07-13 Paolo Carlini <pcarlini@suse.de>
50 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
51 to 12658_thread-1.cc and xfail.
52 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
53 simpler version of 12658_thread-1.cc, still failing on 3_3 and
54 not failing on 3_4/mainline - both on single processor and
55 multiprocessor machines.
57 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
59 * docs/html/abi.html: Remove non-public qualification.
61 * include/bits/concurrence.h: Tweak comments.
63 2004-07-11 Paolo Carlini <pcarlini@suse.de>
65 Add wchar_t counterparts of the basic_streambbuf<char> tests.
66 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
67 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
69 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
70 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
72 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
73 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
74 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
75 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
76 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
78 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
80 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
82 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
84 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
85 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
87 2004-07-11 Phil Edwards <phil@codesourcery.com>
89 * acinclude.m4: Cosmetic shell syntax fixes.
90 * configure.ac: Bring comment inline with reality.
91 * configure.host: Both of the above. Move 'arm' case to right
92 place in host_cpu switch.
93 * aclocal.m4, configure: Regenerate.
95 2004-07-09 Paolo Carlini <pcarlini@suse.de>
97 Add wchar_t counterparts of the basic_stringbuf<char> tests.
98 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
99 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
100 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
101 3599.cc, 9988.cc: Likewise.
102 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
104 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
106 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
108 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
110 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
111 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
112 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
113 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
115 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
117 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
119 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
121 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
122 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
124 2004-07-08 Paolo Carlini <pcarlini@suse.de>
126 * include/bits/gslice.h: Trivial formatting fixes.
127 * include/bits/gslice_array.h: Likewise.
128 * include/bits/indirect_array.h: Likewise.
129 * include/bits/mask_array.h: Likewise.
130 * include/bits/slice_array.h: Likewise.
131 * include/bits/valarray_after.h: Likewise.
132 * include/bits/valarray_array.h: Likewise.
133 * include/bits/valarray_before.h: Likewise.
134 * include/std/std_valarray.h: Likewise.
136 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
139 * include/bits/basic_string.h (basic_string::operator=): Revert.
141 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
143 * configure.ac (libtool_VERSION): To 6:2:0.
144 * configure: Regenerated.
146 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
148 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
151 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
153 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
155 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
158 2004-07-07 Paolo Carlini <pcarlini@suse.de>
161 * include/bits/sstream.tcc (overflow): When reallocating _M_string
162 use an exponential grow policy.
163 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
164 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
166 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
169 * crossconfig.m4: Add in bits for djgpp.
170 * configure: Regenerate.
172 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
174 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
175 instantiation of set and multiset (functor param given as int).
177 2004-07-04 Paolo Carlini <pcarlini@suse.de>
179 * include/bits/basic_string.h: Trivial formatting fixes and/or
180 const-ification of some variables.
181 * include/bits/deque.tcc: Likewise.
182 * include/bits/stl_algobase.h: Likewise.
183 * include/bits/stl_bvector.h: Likewise.
184 * include/bits/stl_construct.h: Likewise.
185 * include/bits/stl_deque.h: Likewise.
186 * include/bits/stl_pair.h: Likewise.
187 * include/bits/stl_vector.h: Likewise.
188 * include/bits/vector.tcc: Likewise.
190 2004-07-04 Paolo Carlini <pcarlini@suse.de>
192 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
193 systems with no COMDAT or weak support.
194 * testsuite/25_algorithms/copy/2.cc: Likewise.
195 * testsuite/25_algorithms/copy/3.cc: Likewise.
196 * testsuite/25_algorithms/copy/4.cc: Likewise.
198 2004-07-03 Paul Brook <paul@codesourcery.com>
200 * configure.ac: Set ABI_TWEAKS_SRCDIR.
201 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
202 setting atomicity_dir. Override type_cpu for arm based targets.
203 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
204 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
205 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
206 * libsupc++/vec.cc: Ditto.
207 * config/cpu/arm/cxxabi_tweaks.h: New file.
208 * config/cpu/generic/cxxabi_tweaks.h: New file.
209 * */Makefile.in: Regenerate.
210 * configure: Regenerate.
212 2004-07-02 Paolo Carlini <pcarlini@suse.de>
214 * include/bits/type_traits.h (_Is_normal_iterator): Move...
215 * include/bits/cpp_type_traits.h: ... here, renamed to
216 __is_normal_iterator and consistent with the other traits.
217 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
218 to the struct __copy_normal and three specializations.
219 (__copy_backward_output_normal_iterator,
220 __copy_backward_input_normal_iterator): Likewise, convert to
221 the struct __copy_backward_normal and three specializations.
222 (copy, copy_backward): Use the latter.
223 (__copy_aux, __copy_backward_aux): Very minor tweaks.
225 2004-07-01 Paolo Carlini <pcarlini@suse.de>
227 * include/bits/stl_algobase.h (__copy_trivial): Remove.
228 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
229 __is_trivially_copyable, __are_same and __copy::copy.
230 (__copy): Rewrite as a class template and two specializations.
231 (__copy_ni2): Simplify, just call __copy_aux.
233 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
235 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
236 for destination value type != source value type.
238 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
239 Per Bothner <per@bothner.com>
240 Mohan Embar <gnustuff@thisiscool.com>
243 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
244 (__glibcxx_mutex): Encapsulate mutex init function into type for
245 threaded configurations without __GTHREAD_MUTEX_INIT.
246 (lock::lock): Make device member a reference.
248 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
250 * src/allocator.cc: Same.
252 2004-06-30 Brad Spencer <spencer@infointeractive.com>
254 * include/ext/mt_allocator.h: Handle allocations at static
255 initialization that happen before _S_options is (automatically)
256 constructed; set _S_init even if _M_force_new is true.
258 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
260 * config/linker-map.gnu: Revert new exports.
262 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
263 Stuart Anderson <anderson@netsweng.com>
265 * config/linker-map.gnu: Add destructor exports for abstract base
266 classes to conform to LSB.
268 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
269 Paolo Carlini <pcarlini@suse.de>
271 * include/bits/cpp_type_traits.h: Add __is_pointer and
272 __is_trivially_copyable.
273 * include/bits/stl_algobase.h (fill, fill_n): Slightly
274 tweak to use the latter.
275 (__copy_backward_dispatch): Remove.
276 (__copy_backward_aux): Rewrite to use __is_pointer and
277 __is_trivially_copyable and __copy_backward::copy_b.
278 (__copy_backward): Rewrite as a class template and two
281 2004-06-30 Paolo Carlini <pcarlini@suse.de>
283 * testsuite/25_algorithms/copy.cc: Move to...
284 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
285 * testsuite/25_algorithms/copy/2.cc: New.
286 * testsuite/25_algorithms/copy/3.cc: New.
287 * testsuite/25_algorithms/copy/4.cc: New.
289 2004-06-29 Paul Brook <paul@codesourcery.com>
291 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
292 element size in the cookie.
294 2004-06-28 Paolo Carlini <pcarlini@suse.de>
296 * include/bits/cpp_type_traits.h: Move the additions to
297 namespace __gnu_internal outside of namespace std; trivial
300 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
302 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
303 Revert -Weffc++ changes that defined copy ctory and or assignment
305 * libsupc++/tinfo.cc (__upcast_result): Same.
307 2004-06-28 Paolo Carlini <pcarlini@suse.de>
309 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
310 the algorithm used to name the categories.
312 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
314 * include/Makefile.am: Give a .gch extension to
315 the PCH files, not only to the directory.
316 * include/Makefile.in: Regenerate.
318 2004-06-28 Paolo Carlini <pcarlini@suse.de>
320 * config/locale/gnu/monetary_members.cc
321 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
322 assignments of _M_decimal_point and _M_thousands_sep.
324 2004-06-27 Paolo Carlini <pcarlini@suse.de>
326 * docs/html/17_intro/contribute.html: Update some links.
327 * docs/html/17_intro/porting-howto.html: Likewise.
328 * docs/html/17_intro/porting-howto.xml: Likewise.
329 * docs/html/18_support/howto.html: Likewise.
330 * docs/html/21_strings/howto.html: Likewise.
331 * docs/html/27_io/howto.html: Likewise.
332 * docs/html/configopts.html: Likewise.
333 * docs/html/ext/howto.html: Likewise.
334 * docs/html/faq/index.html: Likewise.
335 * docs/html/install.html: Don't mention 2.x compilers.
337 2004-06-27 Paolo Carlini <pcarlini@suse.de>
339 * include/ext/rope: Trivial formatting fixes.
340 * include/ext/ropeimpl.h: Likewise.
342 2004-06-26 Paolo Carlini <pcarlini@suse.de>
345 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
346 availability of strto(u)ll, not used anymore in the iostreams.
347 * configure: Regenerate.
349 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
352 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
354 * configure: Regenerate.
356 2004-06-25 Paul Brook <paul@codesourcery.com>
358 * libsupc++/cxxabi.h: Define __ARM_EABI__
360 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
362 2004-06-25 Paul Brook <paul@codesourcery.com>
364 * include/bits/concurrence.h: Still create mutex object when
367 2004-06-25 Paolo Carlini <pcarlini@suse.de>
369 * include/bits/stl_algobase.h (fill, fill_n): Revert last
370 change: actually we need to copy construct an object of type
371 _Tp, not of type iterator_traits<>::value_type, therefore the
374 2004-06-25 Paolo Carlini <pcarlini@suse.de>
376 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
377 dispatch: use iterator_traits<>::value_type, not _Tp.
379 2004-06-25 Paolo Carlini <pcarlini@suse.de>
381 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
382 * testsuite/25_algorithms/fill/2.cc: Likewise.
384 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
385 Paolo Carlini <pcarlini@suse.de>
387 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
388 for fill and fill_n, respectively: when copying is cheap, use a
389 temporary to avoid a memory read in each iteration.
391 2004-06-25 Paolo Carlini <pcarlini@suse.de>
393 * testsuite/25_algorithms/fill/1.cc: New.
394 * testsuite/25_algorithms/fill/2.cc: Likewise.
396 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
398 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
399 Remove copy constructor and assignment operator.
401 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
403 * include/bits/concurrence.h (__gnu_cxx::lock): New.
404 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
405 (__pool_base::_M_get_mutex): New.
406 * include/bits/allocator.h: Tweak.
407 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
408 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
409 * include/bits/stl_threads.h: Remove.
410 * include/Makefile.am: Also here.
411 * include/Makefile.in: Regenerate.
413 * src/locale_init.cc: Use __gnu_cxx::lock.
415 * src/allocator.cc: Move all instantiations...
416 * src/allocator-inst.cc: ...here.
418 2004-06-23 Andrew Pinski <apinski@apple.com>
420 * linkage.m4: Remove check for libmx.
421 * configure: Regenerate.
423 2004-06-23 Paolo Carlini <pcarlini@suse.de>
426 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
427 Don't require the _DefaultConstructibleConcept.
428 (struct _ForwardIteratorConcept): Require it here.
430 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
432 * include/bits/istream.tcc (getline): Make sure arguments passed
433 to min/max have the same type.
434 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
435 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
437 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
439 * docs/html/abi.html: Update links.
441 2004-06-22 Paolo Carlini <pcarlini@suse.de>
443 * testsuite/26_numerics/complex_inserters_extractors.cc,
444 complex_value.cc, buggy_complex.cc: Move to...
445 * testsuite/26_numerics/complex/: ... here.
446 * testsuite/26_numerics/c99_classification_macros_c++.cc,
447 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
448 fabs_inline.cc: Move to...
449 * testsuite/26_numerics/cmath/: ... here.
450 * testsuite/26_numerics/binary_closure.cc, slice.cc,
451 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
452 valarray_name_lookup.cc, valarray_operators.cc,
453 valarray_subset_assignment.cc: Move to...
454 * testsuite/26_numerics/valarray/: ... here (new dir).
455 * testsuite/26_numerics/sum_diff.cc: Move to...
456 * testsuite/26_numerics/numeric/: ... here (new dir).
458 2004-06-22 Paolo Carlini <pcarlini@suse.de>
460 * include/std/std_istream.h (ignore(streamsize __n = 1,
461 int_type __delim = traits_type::eof())): Split into...
462 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
463 int_type __delim)): The first two can be much more simpler
464 and efficient than the fully general case; also, the last
465 two can take advantage of the same mechanism already used
467 * include/bits/istream.tcc (ignore(streamsize __n = 1,
468 int_type __delim = traits_type::eof()): Remove.
469 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
470 int_type __delim)): New.
472 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
474 * config/linker-map.gnu: Use wildcards for
475 __basic_file::sys_open(FILE*, _Ios_Openmode).
477 2004-06-20 Paolo Carlini <pcarlini@suse.de>
479 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
481 2004-06-18 Paolo Carlini <pcarlini@suse.de>
483 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
484 the alignment requested.
485 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
486 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
487 (__mt_alloc<>::deallocate): Likewise.
489 2004-06-18 Paolo Carlini <pcarlini@suse.de>
492 * include/debug/safe_base.h
493 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
494 _Safe_sequence_base::operator=): Provide definitions.
495 * testsuite/23_containers/bitset/cons/16020.cc: New.
497 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
499 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
500 (__pool_base): Remove unused template parameter. Add
501 protected. Move lock data into __pool_base::_Lock. Remove static
503 (__pool_base::_M_get_free_list): New.
504 (__pool_alloc): Move _S_force new here.
505 * src/allocator.cc: Move out of line __pool_base definitions here.
506 * config/linker-map.gnu: Export bits from __pool_base.
508 2004-06-18 Paolo Carlini <pcarlini@suse.de>
510 * config/locale/gnu/numeric_members.cc
511 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
512 assignments of _M_decimal_point and _M_thousands_sep.
513 * config/locale/gnu/time_members.cc
514 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
515 and reformat assignments of date and time fields.
517 2004-06-16 Paolo Carlini <pcarlini@suse.de>
519 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
520 to use _Data_allocate.
521 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
522 (rope<>::_S_substring): Likewise.
523 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
524 (rope<>::c_str()): Likewise.
525 (rope<>::replace_with_c_str()): Likewise.
527 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
528 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
530 (_Rope_iterator_base<>::_S_setcache): Likewise.
531 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
532 (rope<>::_S_substring): Likewise.
533 (rope<>::_S_dump): Likewise.
534 (rope<>::_S_fetch_ptr): Likewise.
535 (rope<>::_S_compare): Likewise.
536 (rope<>::replace_with_c_str()): Likewise.
538 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
539 * testsuite/ext/rope/2.cc: New.
541 2004-06-16 Paolo Carlini <pcarlini@suse.de>
542 Matt Austern <austern@apple.com>
544 * testsuite/ext/rope/3.cc: New.
546 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
548 * acinclude.m4: Remove useless multilib configury.
549 * Makefile.am: Remove useless multilib rules.
550 * aclocal.m4: Regenerate.
551 * Makefile.in: Regenerate.
552 * configure: Regenerate.
554 2004-06-15 Paolo Carlini <pcarlini@suse.de>
556 * include/ext/hashtable.h: Trivial formatting fixes.
557 * include/ext/rb_tree: Likewise.
559 2004-06-14 Paolo Carlini <pcarlini@suse.de>
561 * include/ext/hash_map: Trivial formatting fixes.
562 * include/ext/hash_set: Likewise.
563 * include/ext/memory: Likewise.
564 * include/ext/numeric: Likewise.
566 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
568 * Makefile.in: Regenerate with automake 1.8.5.
570 * include/Makefile.in: Same.
571 * libmath/Makefile.in: Same.
572 * libsupc++/Makefile.in: Same.
573 * po/Makefile.in: Same.
574 * src/Makefile.in: Same.
575 * testsuite/Makefile.in: Same.
577 2004-06-14 Paolo Carlini <pcarlini@suse.de>
579 * include/ext/slist: Trivial formatting fixes.
581 2004-06-14 Paolo Carlini <pcarlini@suse.de>
583 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
584 Don't use the 'magic number' 10 in the computation of __minlen;
585 never access __name past __minlen; in the loop over __i3, don't
586 decrease __nmatches and increase __i3 at once, only either of
589 2004-06-13 Paolo Carlini <pcarlini@suse.de>
591 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
592 time_get<>::do_get_date): Use only once _M_extract_via_format,
593 instead of going through "%X"/"%x" and calling it two times
596 2004-06-12 Paolo Carlini <pcarlini@suse.de>
598 * include/ext/algorithm: Trivial formatting fixes.
599 * include/ext/functional: Likewise.
600 * include/ext/hash_fun.h: Likewise.
601 * include/ext/iterator: Likewise.
603 2004-06-12 Paolo Carlini <pcarlini@suse.de>
605 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
606 size_type)): Reimplement using std::search.
607 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
609 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
611 * testsuite/performance/21_strings/string_find.cc: New.
613 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
615 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
617 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
619 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
620 this function return a value.
622 2004-06-09 Paolo Carlini <pcarlini@suse.de>
625 * include/bits/stl_deque.h: Consistently with stl_set.h, define
626 pointer as allocator's pointer, likewise for reference,
627 const_pointer, and const_reference.
628 * include/bits/stl_list.h: Likewise.
629 * include/bits/stl_map.h: Likewise.
630 * include/bits/stl_multimap.h: Likewise.
631 * include/bits/stl_vector.h: Likewise.
633 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
635 * crossconfig.m4: Remove signbit, signbitf, signbitl.
636 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
637 builtin math functions instead of AC_DEFINE_UNQUOTED.
638 * configure: Regenerate.
640 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
642 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
643 * docs/doxygen/mainpage.html: Remove links.
645 2004-06-08 Jason Merrill <jason@redhat.com>
647 * config/linker-map.gnu: Use wildcards for
648 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
650 2004-06-08 Paolo Carlini <pcarlini@suse.de>
652 * include/ext/pool_allocator.h: Convert to a global free-list,
653 as per the original SGI/HP design: move the implementation
654 details to struct __pool_base, from which __pool_alloc derives.
655 * src/allocator.cc: Instantiate __pool_base.
657 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
658 Paolo Carlini <pcarlini@suse.de>
660 * testsuite/testsuite_performance.h
661 (resource_counter::allocated_memory): Make it return the right
662 number of bytes requested by the allocators/application. This is
663 the sbrk+mmaped memory.
665 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
667 * include/std/std_complex.h (log): Tidy.
669 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
671 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
672 * testsuite/testsuite_abi.cc: Same.
673 * configure.ac (libtool_VERSION): Bump to 6:1:0.
674 * configure: Regenerate.
675 * aclocal.m4: Regenerate.
677 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
679 * include/std/std_complex.h (complex<_Tp>): Properly indent
681 (complex<>::__rep): New.
682 (__complex_abs): New. Dispatch to built-ins.
684 (__complex_arg): New. Dispatch to built-ins.
686 (__complex_cos): New. Dispatch to built-ins.
688 (__complex_cosh): New. Dispatch to built-ins.
690 (__complex_exp): New. Dispatch to built-ins.
692 (__complex_log): New. Dispatch to built-ins.
694 (__complex_sin): New. Dispatch to built-ins.
696 (__complex_sinh): New. Dispatch to built-ins.
698 (__complex_sqrt): New. Dispatch to built-ins.
700 (__complex_tan): New. Dispatch to built-ins.
702 (__complex_tanh): New. Dispatch to built-ins.
704 (__complex_pow): New. Dispatch to built-ins.
707 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
708 Benjamin Kosnik <bkoz@redhat.com>
711 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
712 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
713 * config/io/basic_file_stdio.cc (__basic_file::file): New.
714 * config/io/basic_file_stdio.h: Define.
716 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
719 * docs/html/documentation.html: Update doxygen links for 3.4.0.
721 2004-05-27 Jan Beulich <jbeulich@novell.com>
723 * scripts/create_testsuite_files: Tweak.
725 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
728 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
729 bits to do the same thing.
731 2004-05-24 Paolo Carlini <pcarlini@suse.de>
733 * include/bits/istream.tcc (ignore): Correctly deal with
734 n == numeric_limits<streamsize>::max().
735 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
737 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
738 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
739 __n == numeric_limits<>::min().
741 * include/bits/istream.tcc: Minor tweaks.
743 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
745 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
747 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
749 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
751 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
753 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
757 * include/bits/basic_string.h (basic_string::operator=): Return
758 pointer to this instead of result of assign. Although redundant,
759 this doesn't impact resultant codegen.
761 * include/bits/locale_facets.h (__numpunct_cache): Declare
762 assignment opxserator and copy constructor private.
763 (__timepunct_cache): Same.
764 (__moneypunct_cache): Same.
765 (collate): Use member initialization list for _M_c_locale_collate.
766 * config/locale/gnu/messages_members.h: Same.
767 * config/locale/gnu/time_members.h (__timepunct): Same.
768 * src/codecvt.cc: Use member initialization list to initialize
770 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
771 * config/os/gnu-linux/ctype_noninline.h: Same.
772 * src/locale.cc (_Impl): Same.
773 * src/locale_init.cc: Same.
774 * src/localename.cc: Same.
776 * include/bits/basic_ios.h (basic_ios): Complete member
778 * include/bits/istream.tcc (basic_istream::sentry): Same.
779 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
780 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
781 _M_pback to member initialization list.
782 * include/std/std_streambuf.h: Same.
783 * include/std/std_sstream.h: Same, for _M_mode.
784 * src/ios.cc (ios_base): Same.
786 * include/ext/rope: Make derived classes match exception
788 specifications. Add copy constructors and assignment operators.
790 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
791 constructor and assignment operator protected.
792 (_Safe_iterator_base): Same.
793 * include/debug/formatter.h (_Error_formatter): Define copy
794 constructor and assignment operator.
796 * include/backward/strstream: Declare assignment operator and copy
799 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
801 * testsuite/testsuite_hooks.h (func_callback): Declare copy
802 constructor and assignment operator private.
803 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
804 exception specifications of base class.
805 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
806 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
807 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
809 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
811 * libsupc++/cxxabi.h: Remove duplicated and useless public and
812 private keywords in class declarations. Format. Use
813 stddef.h. Expose declarations to "C" compilation.
814 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
816 (__dyncast_result): Same.
817 * libsupc++/vec.cc (uncatch_exception): Same, use member
820 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
822 * testsuite/abi_check.cc: Add unistd.h.
824 2004-05-22 Paolo Carlini <pcarlini@suse.de>
827 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
828 __int_to_char(unsigned long long)): Showpos is not relevant
830 * testsuite/22_locale/num_put/put/char/15565.cc: New.
831 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
833 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
835 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
836 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
837 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
838 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
839 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
840 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
842 2004-05-21 Matthias Klose <doko@debian.org>
844 * docs/doxygen/run_doxygen: Bump required version.
846 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
848 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
849 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
851 2004-05-21 Paolo Carlini <pcarlini@suse.de>
853 * include/bits/istream.tcc (ignore): Remove redundant line.
854 (readsome): Tidy, closely following 27.6.1.3, p30.
856 2004-05-20 Paolo Carlini <pcarlini@suse.de>
858 * include/bits/istream.tcc (operator>>(basic_istream<>&,
859 basic_string<>&)): Use a temporary buffer, thus avoiding
860 reallocation for common case.
861 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
863 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
866 * include/bits/istream.tcc: Const-ification of a few variables.
868 * include/bits/ostream.tcc: Trivial formatting fixes and
869 const-ification of some variables.
871 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
875 * docs/doxygen/Intro.3: Remove Allocators.3.
876 Add new extension headers, extension namespace list.
877 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
878 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
879 __gnu_debug::. Remove __policy_ renames.
880 * docs/doxygen/guide.html: Add dot note.
881 * docs/doxygen/stdheader.cc: Edit, add files.
882 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
884 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
886 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
888 2004-05-18 Jan Beulich <jbeulich@novell.com>
891 * scripts/create_testsuite_files: Also find source files through
894 2004-05-18 Jan Beulich <jbeulich@novell.com>
897 * testsuite/lib/libstdc++.exp: Make test files writable.
899 2004-05-18 Paolo Carlini <pcarlini@suse.de>
901 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
904 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
906 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
907 allocation loop which removes blocks from the global free list
908 from O(N) to O(1) when the required blocks are <= the number
911 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
913 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
915 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
917 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
918 * testsuite/23_containers/deque/14340.cc: New.
919 * testsuite/23_containers/list/14340.cc: New.
920 * testsuite/23_containers/map/14340.cc: New.
921 * testsuite/23_containers/multimap/14340.cc: New.
922 * testsuite/23_containers/multiset/14340.cc: New.
923 * testsuite/23_containers/set/14340.cc: New.
924 * testsuite/23_containers/vector/14340.cc: New.
926 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
929 * include/debug/safe_iterator.h (_Safe_iterator converting
930 constructor): Only allow declaration to instantiate when the
931 incoming _Safe_iterator has exactly the right iterator type.
933 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
935 * include/bits/boost_concept_check.h: Fix old attribute syntax.
936 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
937 to pass concept-checks.
938 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
939 * testsuite/23_containers/set/modifiers/swap.cc: Same.
940 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
942 2004-05-16 Paolo Carlini <pcarlini@suse.de>
944 * include/std/std_bitset.h: Minor formatting fixes.
946 2004-05-16 Paolo Carlini <pcarlini@suse.de>
948 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
949 Consistently update __bin._M_free[0].
950 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
951 __bin._M_free[0] to simplify the while loop (i.e., the number
952 of iterations becomes known at the outset).
954 2004-05-15 Paolo Carlini <pcarlini@suse.de>
956 * include/std/std_bitset.h: Trivial formatting fixes.
958 2004-05-14 Paolo Carlini <pcarlini@suse.de>
959 Ivan Godard <igodard@pacbell.net>
962 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
963 * testsuite/23_containers/bitset/ext/15361.cc: New.
965 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
968 * crossconfig.m4: Add C99 math bits for linux crosses.
969 * configure: Regenerate.
971 2004-05-13 Simon Marshall <simon.marshall@misys.com>
972 Benjamin Kosnik <bkoz@redhat.com>
975 * include/bits/locale_facets.h: Fix for -fno-for-scope.
976 * include/debug/safe_sequence.h: Same.
977 * include/debug/safe_iterator.tcc: Same.
978 * src/debug.cc: Same.
979 * src/locale.cc: Same.
980 * src/locale_init.cc: Same.
981 * src/localename.cc: Same.
982 * config/locale/gnu/ctype_members.cc: Same.
983 * config/locale/gnu/numeric_members.cc: Same.
984 * testsuite/testsuite_abi.cc: Same.
985 * testsuite/testsuite_hooks.cc: Same.
987 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
989 * docs/html/abi.html: Document effect of -fabi-version on value
990 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
993 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
996 * docs/html/faq/index.html: Update docs for libsupc++ usage.
998 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1001 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
1003 (_GLIBCXX_mutex_address): Same.
1004 (_GLIBCXX_once): Same.
1005 (_GLIBCXX_mutex_init): Same.
1006 (_GLIBCXX_mutex_address_init): Same.
1008 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1010 * docs/html/abi.html: New.
1011 * docs/html/abi.txt: Remove.
1012 * docs/html/documentation.html: Add link.
1013 * testsuite/Makefile.am: Add files.
1014 * testsuite/Makefile.in: Regenerated.
1015 * testsuite/abi_check.cc: Move and modify code into...
1016 * testsuite/testsuite_abi.cc: Add.
1017 * testsuite/testsuite_abi.h: Add.
1019 * docs/html/17_intro/TODO: Update.
1020 * include/bits/stl_pair.h: Format.
1022 2004-05-06 Matthias Klose <doko@debian.org>
1024 * include/backward/iterator.h: Add GPL copyright info,
1025 with exception clause.
1026 * include/bits/boost_concept_check.h: Likewise.
1028 * libsupc++/tinfo.h: Likewise.
1029 * po/string_literals.cc: Likewise.
1031 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
1033 * acinclude.m4: Replace -W with more speaking -Wextra.
1034 * configure: Rebuilt.
1036 2004-05-03 Paolo Carlini <pcarlini@suse.de>
1038 Optimize locale::_M_impl->_M_names for the most common cases:
1039 !_M_names[0] means unnamed; !_M_names[1] means all the categories
1040 the same name (_M_names[0] && _M_names[1] means that the full set
1041 of _M_names must be processed, the general case).
1042 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
1043 Tweak, saving work when !_M_names[1].
1044 (locale::locale(const locale&, _Facet*): Simplify: now just setting
1045 _M_names[0] = 0 means unnamed.
1046 * src/locale.cc (locale::operator==): Deal first with the common,
1047 easy cases, otherwise fall back to locale::name().
1048 (locale::name()): Tweak, if !_M_names[0] just return "*".
1049 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
1050 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
1051 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
1052 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
1053 Simplify when !std::strchr, just updating _M_names[0]; clean up.
1054 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
1055 for the general case (full set of names), then do the usual work;
1058 * src/locale.cc (locale::name()): Reserve space in __ret.
1059 * src/locale_init.cc (locale::global(const locale&)): Save
1060 the name in a temporary.
1061 * src/localename.cc (locale::locale(const char*)): Reserve space
1064 2004-04-29 Paolo Carlini <pcarlini@suse.de>
1066 * src/locale.cc (locale::operator==): Always avoid constructing
1067 locale::name(), directly compare pairs of _M_names.
1069 2004-04-26 Paolo Carlini <pcarlini@suse.de>
1071 * include/bits/istream.tcc: Fix comment.
1073 2004-04-26 Paolo Carlini <pcarlini@suse.de>
1075 * include/bits/stl_vector.h: Trivial formatting fixes.
1076 * include/bits/vector.tcc: Likewise.
1078 2004-04-25 Paolo Carlini <pcarlini@suse.de>
1080 PR libstdc++/15002 (continued again)
1081 * include/bits/istream.tcc (getline(basic_istream<>&,
1082 basic_string<>&, _CharT)): Use a temporary buffer, thus
1083 avoiding reallocation for common case.
1085 * include/bits/basic_string.tcc (_S_construct(_InIterator,
1086 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
1087 of temporary buffer to a power of two.
1089 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
1091 2004-04-25 Paolo Carlini <pcarlini@suse.de>
1093 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
1095 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
1097 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
1099 2004-04-24 Paolo Carlini <pcarlini@suse.de>
1100 Petur Runolfsson <peturr02@ru.is>
1102 PR libstdc++/15002 (continued)
1103 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
1104 streamsize, char_type)): Use traits::find/copy in a loop to speed
1105 up greatly the function in the common case (I/O buffer size >> 1).
1107 2004-04-24 Paolo Carlini <pcarlini@suse.de>
1109 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
1111 * include/bits/istream.tcc (getline(basic_istream<>&,
1112 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
1113 of sbumpc(), consistently with the other functions, thus also
1114 dealing correctly with the case of exceeded string::max_size().
1116 2004-04-24 Matthias Klose <doko@debian.org>
1118 Jonathan Wakely <cow@compsoc.man.ac.uk>
1119 * docs/html/configopts.html: Fix reference to allocator config option.
1121 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
1123 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
1124 * configure: Regenerate.
1126 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
1128 PR libstdc++/15047, libstdc++/11610
1129 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
1130 (libstdc++_init): Don't pass outdir to v3-copy-files.
1132 2004-04-21 Paolo Carlini <pcarlini@suse.de>
1134 * include/bits/deque.tcc: Trivial formatting fixes.
1135 * include/bits/stl_deque.h: Likewise.
1136 * include/bits/stl_list.h: Likewise.
1137 * include/bits/stl_tree.h: Likewise.
1139 2004-04-21 Paolo Carlini <pcarlini@suse.de>
1140 Andrew Pinski <pinskia@physics.uc.edu>
1142 * include/bits/basic_string.tcc (_M_mutate): Don't compute
1143 __src unnecessarily.
1145 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
1147 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
1148 Clarify assertion, set test variable to false before assert.
1149 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
1150 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
1151 * testsuite/27_io/ios_base/storage/2.cc: Same.
1153 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
1155 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
1156 * testsuite/27_io/fpos/14320-3.cc: Same.
1158 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
1159 * testsuite/27_io/fpos/1.cc: Same.
1160 * testsuite/27_io/basic_stringstream/2.cc: Same.
1161 * testsuite/27_io/basic_stringbuf/4.cc: Same.
1162 * testsuite/27_io/basic_stringbuf/1.cc: Same.
1163 * testsuite/27_io/basic_stringbuf/2.cc: Same.
1164 * testsuite/27_io/basic_streambuf/2.cc: Same.
1165 * testsuite/27_io/basic_ostringstream/2.cc: Same.
1166 * testsuite/27_io/basic_ostream/2.cc: Same.
1167 * testsuite/27_io/basic_ofstream/2.cc: Same.
1168 * testsuite/27_io/basic_istringstream/2.cc: Same.
1169 * testsuite/27_io/basic_istream/2.cc: Same.
1170 * testsuite/27_io/basic_iostream/2.cc: Same.
1171 * testsuite/27_io/basic_ios/2.cc: Same.
1172 * testsuite/27_io/basic_ifstream/2.cc: Same.
1173 * testsuite/27_io/basic_fstream/2.cc: Same.
1174 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
1176 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
1177 unsigned against zero.
1178 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
1179 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
1181 * testsuite/18_support/new_delete_placement.cc: Initialize
1182 variables before first use.
1183 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
1184 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
1185 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
1186 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
1188 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
1189 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
1191 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
1192 * testsuite/27_io/types/2.cc: Same.
1194 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
1196 * testsuite/27_io/fpos/14775.cc: Same.
1198 2004-04-19 Paolo Carlini <pcarlini@suse.de>
1200 PR libstdc++/15002 (partial)
1201 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
1202 Special case __n2 == 1, not calling traits_type::assign/copy.
1204 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
1206 * include/bits/stl_bvector.h: Use _M_impl._M_start.
1208 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
1210 * include/bits/c++config (_GLIBCXX_STD): New.
1211 * src/list.cc: Use it.
1212 * include/std/std_bitset.h: Same.
1213 * include/bits/vector.tcc: Same.
1214 * include/bits/stl_set.h: Same.
1215 * include/bits/stl_multiset.h: Same.
1216 * include/bits/stl_multimap.h: Same.
1217 * include/bits/stl_map.h: Same.
1218 * include/bits/stl_list.h: Same.
1219 * include/bits/stl_vector.h: Same.
1220 * include/bits/stl_bvector.h: Same.
1221 * include/bits/stl_deque.h: Same.
1222 * include/bits/deque.tcc: Same.
1223 * include/bits/list.tcc: Same.
1224 * include/debug/vector: Same.
1225 * include/debug/set.h: Same.
1226 * include/debug/multiset.h: Same.
1227 * include/debug/multimap.h: Same.
1228 * include/debug/map.h: Same.
1229 * include/debug/list: Same.
1230 * include/debug/deque: Same.
1231 * include/debug/bitset: Same.
1232 * include/debug/formatter.h (__gnu_debug): Remove using directive.
1233 Add using declaration for std::type_info.
1234 * include/debug/safe_iterator.h: Add using declaration for
1235 std::iterator_traits and std::pair.
1236 * src/debug_list.cc: New.
1237 * src/Makefile.am: Add debug_list.cc.
1238 * src/Makefile.in: Regenerate.
1239 * config/linker-map.gnu: Add _List_node_base exports for std and
1242 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
1243 idiom that other containers use.
1244 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
1246 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1249 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
1251 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
1252 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
1254 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1256 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
1258 * config.h.in: Regenerate.
1260 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1262 * config/locale/generic/monetary_members.cc
1263 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
1264 btowc unnecessarily, just cast to wchar_t (the concerned chars
1265 all belong to the basic character set).
1266 * config/locale/generic/numeric_members.cc
1267 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1268 * config/locale/gnu/monetary_members.cc
1269 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
1270 * config/locale/gnu/numeric_members.cc
1271 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1273 2004-04-15 Paolo Carlini <pcarlini@suse.de>
1275 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
1276 avoid constructing unnecessarily this->name().
1278 2004-04-14 Zack Weinberg <zack@codesourcery.com>
1280 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
1281 Change definition of CXX to use $(shell) instead of backticks.
1282 * testsuite/Makefile.in: Regenerate.
1284 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
1286 * testsuite/performance/20_util/allocator/list_sort_search.cc:
1287 Minor formatting fixes.
1288 * testsuite/performance/20_util/allocator/map_mt_find.cc:
1291 2004-04-12 Paolo Carlini <pcarlini@suse.de>
1293 * config/locale/gnu/numeric_members.cc
1294 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
1295 in __uselocale, since btowc is called for chars belonging to
1296 the basic character set.
1298 2004-04-09 Paolo Carlini <pcarlini@suse.de>
1300 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
1301 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
1302 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
1303 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
1304 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
1305 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
1306 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
1307 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
1308 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
1309 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
1310 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
1311 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
1312 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
1313 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
1314 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
1315 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
1316 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
1318 2004-04-07 Paolo Carlini <pcarlini@suse.de>
1320 * config/locale/generic/time_members.cc
1321 (__timepunct<char>::_M_initialize_timepunct,
1322 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
1323 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
1324 * config/locale/gnu/time_members.cc
1325 (__timepunct<char>::_M_initialize_timepunct,
1326 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
1327 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
1328 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
1330 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
1331 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
1332 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
1333 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
1334 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
1335 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
1336 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
1337 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
1338 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
1339 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
1340 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
1341 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
1342 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
1343 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
1344 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
1345 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
1346 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
1347 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
1348 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
1349 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
1350 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
1351 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
1352 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
1353 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
1354 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
1355 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
1356 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
1357 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
1358 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
1359 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
1360 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
1361 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
1362 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
1363 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
1364 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
1365 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
1367 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
1369 2004-04-07 Paolo Carlini <pcarlini@suse.de>
1371 * config/locale/gnu/monetary_members.cc
1372 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
1373 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
1374 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
1375 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
1376 * config/locale/gnu/numeric_members.cc
1377 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
1378 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
1380 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
1382 Fixups for EDG front end.
1383 * include/ext/rope: Instead of non-existent function
1384 _Data_allocate, use allocator's allocate. Use this.
1385 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
1386 enumerations from _Rope_RopeRep here.
1387 * include/ext/ropeimpl.h: Same.
1388 * src/ext-inst.cc (_S_min_len): Fix up definition.
1390 * config/locale/gnu/ctype_members.cc: Qualify base class members
1392 * config/locale/generic/ctype_members.cc: Same.
1393 * config/locale/gnu/messages_members.h: Same.
1394 * config/locale/generic/messages_members.h: Same.
1395 * src/ctype.cc: Same.
1396 * include/bits/codecvt.h: Same.
1398 * include/bits/boost_concept_check.h: Declare.
1399 (__error_type_must_be_an_unsigned_integer_type): Remove this.
1400 (__error_type_must_be_an_integer_type): Remove this.
1401 (__error_type_must_be_a_signed_integer_type): Remove this.
1403 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
1405 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
1406 specification to definition.
1407 (__cxa_allocate_exception): Same.
1408 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
1409 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
1410 (__cxa_get_globals): Same.
1412 * libsupc++/del_op.cc: Add comment about freestanding.
1414 2004-04-05 Paolo Carlini <pcarlini@suse.de>
1416 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1417 The critical section is actually very small, only two assignments.
1419 2004-04-04 Paolo Carlini <pcarlini@suse.de>
1420 Petur Runolfsson <peturr02@ru.is>
1422 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
1423 adapted from libstdc++/11378.
1425 2004-04-03 Paolo Carlini <pcarlini@suse.de>
1427 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
1428 some duplicated code.
1429 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
1430 in the single threaded case.
1431 * testsuite/performance/20_util/allocator/list_sort_search.cc:
1432 Reorder and renumber the tests consistently with the other testfiles.
1433 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1434 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1435 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1437 2004-04-02 Paolo Carlini <pcarlini@suse.de>
1439 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1440 Rearrange arithmetic to avoid computing two divisions at
1443 2004-04-01 Paolo Carlini <pcarlini@suse.de>
1445 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
1446 Streamline the second half, wrapping it in a single
1447 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
1448 conditionals inside loops.
1450 2004-04-01 Paolo Carlini <pcarlini@suse.de>
1453 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
1454 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
1455 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
1456 to _GLIBCXX_RES_LIMITS.
1457 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
1459 * testsuite/testsuite_hooks.h: Declare set_file_limit.
1460 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
1461 and setrlimit(RLIMIT_FSIZE).
1462 * testsuite/27_io/fpos/14775.cc: New.
1463 * config.h.in: Regenerate.
1464 * configure: Likewise.
1466 2004-03-31 Paolo Carlini <pcarlini@suse.de>
1468 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
1469 In v3 uses of sscanf, the special floating-point numbers INF,
1470 INFINITY, etc., cannot occur in input, therefore, if the latter
1471 is too large, ERANGE is always stored in errno, no need of finitel.
1473 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
1476 * include/bits/stl_tree.h: Adjust initialization list order.
1478 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
1480 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
1482 2004-03-29 Paolo Carlini <pcarlini@suse.de>
1484 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
1485 on allocator behavior, the memory pointed by data2 may well be not
1488 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
1491 * include/bits/basic_string.tcc
1492 (basic_string::basic_string(const basic_string&)): Pass to
1493 _Rep::_M_grab the actual allocator of the string being constructed
1494 not the default constructed one.
1496 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
1499 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
1500 (__enc_traits::_M_destroy): New.
1501 (__enc_traits::~__enc_traits): Use it.
1502 (__enc_traits::operator=): Use _M_destroy, _M_init.
1503 (__enc_traits::__enc_traits): Same.
1505 2004-03-27 Petur Runolfsson <peturr02@ru.is>
1507 * testsuite/ext/enc_filebuf/char/13598.cc: New.
1509 2004-03-27 Paolo Carlini <pcarlini@suse.de>
1511 * include/ext/mt_allocator.h: Uglify consistently names of
1512 variables, members and classes; tidy.
1514 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
1516 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1517 Deallocation loop rewrote.
1519 2004-03-26 Paolo Carlini <pcarlini@suse.de>
1521 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1522 __mt_alloc<>::deallocate): Protect two instances of
1523 block->thread_id with __GTHREADS.
1525 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
1527 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
1528 default argument in constructors.
1529 (_Rb_tree::_M_empty_initialize): Remove.
1531 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
1533 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
1534 * testsuite/23_containers/set/operators/1_neg.cc: Same.
1536 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1538 * include/bits/cpp_type_traits.h: Changed __is_pod
1539 completely. Now, it does not use any of the previous type_traits
1540 to detect the pod types, and it also detects function pointers as
1543 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
1544 which encapsulates the internal implementation of an rb_tree. Made
1545 the allocator a base class of this class instead of the rb_tree,
1546 which was not conforming. This _Rb_tree_impl class is also
1547 specialized on whether the _Compare parameter is a POD type or
1548 not. If so, then it maintains the comparison function as a data
1549 member, otherwise it makes the _Compare parameter a base class of
1550 itself. Also, _M_key_compare is now a function instead of a data
1551 member, so that the above trick can work properly. Delegated the
1552 initialization of the other data members to this newly created
1553 class. Also, now other member functions of rb_tree must refer to
1554 _M_key_compare as _M_impl._M_key_compare(). The other data members
1555 (*) can be referenced to as _M_impl.(*), where
1556 (*) includes _M_header, and _M_node_count.
1558 2004-03-25 Paolo Carlini <pcarlini@suse.de>
1560 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
1561 Add _M_min_bin, the size in bytes of the smallest bin.
1562 (__mt_alloc<>::tune()): Tweak accordingly.
1563 (__mt_alloc<>::tune(size_t, ...)): Likewise.
1564 (__mt_alloc<>::block_record): Change to a union: members next
1565 and thread_id are never used at the same time.
1566 (__mt_alloc<>::allocate): Update consistently.
1567 (__mt_alloc<>::deallocate): Likewise.
1568 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
1569 _S_bin_size for the configurable _M_min_size.
1571 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1573 * include/bits/stl_list.h: Created a _List_impl class and made it
1574 derive from the allocator, instead of the list deriving from the
1575 allocator class, which was not conformant. Changed all references
1576 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
1577 as above (changed all references to the concerned variables).
1579 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1581 * include/bits/stl_deque.h: Created a _Deque_impl class and made
1582 it derive from the allocator, instead of the deque deriving from
1583 the allocator class, which was not conformant. Changed all
1584 references to the _M_start, _M_finish, _M_map, and _M_map_size to
1586 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
1587 qualification in 2 places where it was missing.
1588 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
1590 * include/bits/deque.tcc: Same as above (changed all references to
1591 the concerned variables).
1593 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1595 * include/bits/stl_vector.h: Created a _Vector_impl class and made
1596 it derive from the allocator, instead of the _Vector_base class,
1597 deriving from the allocator which was not conformant. Changed all
1598 references to the _M_start, _M_finish, and _M_end_of_storage to
1600 * include/bits/vector.tcc: Same as above (changed all references
1601 to the concerned variables).
1603 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1605 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
1606 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
1607 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
1609 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
1611 * include/ext/malloc_allocator.h: Fixed the construct function to
1612 call global placement new instead of assignment. Added a check
1613 after the return from malloc to check whether returned pointer is
1614 NULL, and if so, throw std::bad_alloc().
1615 * include/ext/debug_allocator.h: Added a check in the deallocate
1616 function to check whether the user has passed a NULL pointer or
1619 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
1621 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
1623 2004-03-24 Andreas Schwab <schwab@suse.de>
1625 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
1626 warning from IA64 assembler.
1628 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
1630 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
1631 function call __builtin_ctz instead of the while loop.
1632 (allocate) -> If condition has __builtin_expect.
1633 (deallocate) -> Ditto.
1634 Renamed a few left-over variables and typedefs according to the
1635 C++STYLE mentioned in the documentation.
1636 Protected calls to __gthread* by __gthread_active_p(), whose value
1637 is cached in the local variable __threads_active.
1639 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
1641 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1642 Use linear algorithm for producer.
1644 2004-03-24 Paolo Carlini <pcarlini@suse.de>
1646 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1647 __mt_alloc<>::deallocate): Avoid redundant conditionals.
1649 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
1651 * include/bits/locale_facets.h: Tweaks for 80 column.
1652 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
1653 (__moneypunct_cache::_M_cache): Same.
1654 (num_get): Don't inherit from __num_base.
1656 (money_get): Don't inherit from money_base.
1658 (__timepunct::_M_am_pm_format): New.
1659 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
1660 (time_get::_M_extract_name): Same.
1661 (time_get::_M_extract_via_format): Same.
1662 * include/bits/locale_facets.tcc: Tweaks for 80 column.
1663 Use _M_getloc instead of getloc.
1664 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
1665 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
1666 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
1668 2004-03-22 Paolo Carlini <pcarlini@suse.de>
1670 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
1671 * configure: Regenerate.
1672 * config/allocator/pool_allocator_base.h: New.
1673 * include/ext/pool_allocator.h: Convert to a standard-conforming
1675 * src/allocator.cc: Tweak instantiations.
1676 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
1677 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
1678 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
1679 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1680 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1681 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1683 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
1685 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
1686 inline" and attribute-unused. Qualify parameter __mem with
1688 (__exchange_and_add): Ditto. Add back memory clobber to asm.
1690 2004-03-20 Paolo Carlini <pcarlini@suse.de>
1692 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
1694 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
1696 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
1698 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
1700 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
1702 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
1704 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
1706 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
1708 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
1710 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
1713 2004-03-20 Paolo Carlini <pcarlini@suse.de>
1715 * include/std/std_valarray.h: Document DR389 [Ready].
1716 * docs/html/ext/howto.html: Add an entry for DR389.
1718 2004-03-19 Michael Eager <eager@mvista.com>
1720 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
1723 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1725 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
1727 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
1728 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
1729 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
1730 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
1731 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
1732 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
1733 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
1734 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
1735 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
1737 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1738 Petur Runolfsson <peturr02@ru.is>
1741 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
1742 no way to find out the conversion used by the underlying FILE*.
1743 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
1744 * testsuite/27_io/objects/char/9.cc: Tweak.
1746 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1749 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
1750 memory allocation/deallocation calls.
1751 * testsuite/ext/14648.cc: New.
1753 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
1756 * include/backward/bvector.h (bit_vector): Allocator is in std
1759 2004-03-19 Phil Edwards <phil@codesourcery.com>
1761 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
1762 not libiconv. SUBST this variable as well.
1763 * testsuite/Makefile.am (site.exp): New target, based on that
1764 created by automake. Also set libiconv.
1766 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
1767 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1768 testsuite/Makefile.in: Regenerate.
1770 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
1772 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
1773 new_allocator for all hosts.
1774 * configure: Regenerate.
1776 2004-03-16 Paolo Carlini <pcarlini@suse.de>
1778 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
1779 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
1781 2004-03-15 Paolo Carlini <pcarlini@suse.de>
1783 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1784 Adjust the logic underlying the parsing of symbol to deal
1785 correctly with an optional sign component (i.e., when either
1786 negative_sign or positive_sign is empty)
1787 * testsuite/22_locale/money_get/get/char/19.cc: New.
1788 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
1790 2004-03-15 Paolo Carlini <pcarlini@suse.de>
1792 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1793 Do not accept an incomplete currency symbol.
1794 * testsuite/22_locale/money_get/get/char/18.cc: New.
1795 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
1797 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
1799 * config/allocator: New.
1800 * config/allocator/bitmap_allocator_base.h: New.
1801 * config/allocator/malloc_allocator_base.h: New.
1802 * config/allocator/mt_allocator_base.h: New.
1803 * config/allocator/new_allocator_base.h: New.
1804 * include/bits/allocator.h: Include c++allocator.h.
1805 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
1806 * aclocal.m4: Regenerate.
1807 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
1808 * configure: Regenerate.
1809 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
1810 * include/Makefile.in: Regenerate.
1811 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
1813 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
1815 * include/bits/allocator.h: Revert.
1817 2004-03-12 Paolo Carlini <pcarlini@suse.de>
1819 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
1820 * include/bits/gslice_array.h: Add comment about DR 253.
1821 * include/bits/indirect_array.h: Likewise.
1822 * include/bits/mask_array.h: Likewise.
1823 * include/bits/slice_array.h: Likewise.
1825 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
1827 * testsuite/20_util/allocator/14176.cc: New.
1828 * include/ext/mt_allocator.h: Formatting fixes.
1830 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
1832 * include/Makefile.am (ext_headers): Add
1833 ${ext_srcdir}/bitmap_allocator.h .
1834 * include/Makefile.in: Regenerate.
1835 * docs/html/ext/ballocator_doc.txt: New file.
1836 * include/ext/bitmap_allocator.h: New file.
1837 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
1839 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1840 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
1841 test for the bitmap_allocator<>.
1842 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
1843 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1844 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1846 2004-03-11 Paolo Carlini <pcarlini@suse.de>
1848 * include/std/std_complex.h (pow(const complex&, const _Tp&),
1849 pow(const _Tp&, const complex&), pow(const complex&,
1850 const complex&)): Fully qualify with std:: a few calls.
1851 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
1853 2004-03-11 Steven Bosscher <stevenb@suse.de>
1856 * include/c_std/cmath.tcc (__cmath_power): Define inline.
1858 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
1860 * configure.ac: Bump AC_PREREQ to 2.59.
1862 2004-03-10 Paolo Carlini <pcarlini@suse.de>
1864 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
1866 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
1867 Paolo Carlini <pcarlini@suse.de>
1870 * include/std/std_complex.h (pow(const complex&, const _Tp&),
1871 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
1872 * testsuite/26_numerics/complex/13450.cc: New.
1874 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
1875 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
1877 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
1880 * include/bits/gslice_array.h (gslice_array()): Make public.
1881 (operator=(gslice_array)): Make public. Implement.
1882 * include/bits/indirect_array.h (indirect_array()): Make public.
1883 * include/bits/mask_array.h (mask_array()): Make public.
1884 (operator=(mask_array)): Make public. Implement.
1885 * include/bits/valarray_array.tcc (__valarray_copy):
1886 Comment. Add versions for gslice_array and mask_array.
1887 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
1889 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
1891 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
1893 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
1894 * testsuite/23_containers/set/modifiers/swap.cc: Same.
1895 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1896 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1897 * testsuite/23_containers/map/modifiers/swap.cc: Same.
1898 * testsuite/23_containers/list/modifiers/swap.cc: Same.
1900 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
1902 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
1905 * testsuite/23_containers/deque/modifiers/swap.cc: New.
1906 * testsuite/23_containers/list/modifiers/swap.cc: New.
1907 * testsuite/23_containers/map/modifiers/swap.cc: New.
1908 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
1909 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
1910 * testsuite/23_containers/set/modifiers/swap.cc: New.
1911 * testsuite/23_containers/vector/modifiers/swap.cc: New.
1913 2004-03-08 Petur Runolfsson <peturr02@ru.is>
1916 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
1918 2004-03-08 Paolo Carlini <pcarlini@suse.de>
1920 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
1921 * include/bits/stl_multiset.h: Add comment about DR 103.
1922 * include/bits/stl_set.h: Likewise.
1924 2004-03-08 Paolo Carlini <pcarlini@suse.de>
1926 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1927 The value _space_ indicates that at least one space is required
1929 * testsuite/22_locale/money_get/get/char/17.cc: New.
1930 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
1932 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
1933 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
1935 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
1936 Remove redundant conditional on __str.size().
1938 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
1940 * include/bits/allocator.h: Switch defaults to mt_alloc.
1942 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
1944 * include/ext/mt_allocator.h (_S_initialize): If
1945 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
1947 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
1950 * src/locale_init.cc (locale::locale): Lock critical regions with
1952 (locale::global): Same.
1953 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
1954 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
1955 (__glibcxx_mutex_lock): Same.
1957 * config/cpu/generic/atomicity.h: Remove
1958 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
1959 * src/misc-inst.cc: Move all locking bits out of this file.
1961 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
1962 * src/misc-inst.cc: Same.
1963 * config/cpu/hppa/atomicity.h: Same.
1965 * config/linker-map.gnu: Remove types in the signature of atomic
1966 exports, as they may vary.
1968 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1970 * include/bits/locale_facets.tcc: Tweak the comment preceding
1971 has_facet: doesn't throw.
1973 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1975 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
1976 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
1977 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
1978 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
1979 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
1980 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
1981 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
1982 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
1984 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1986 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1987 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
1988 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
1989 * testsuite/testsuite_character.h (struct __gnu_test::character):
1991 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
1994 2004-03-05 Paolo Carlini <pcarlini@suse.de>
1996 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
1998 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
2000 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
2002 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
2004 * testsuite/23_containers/deque/invalidation/4.cc: Same.
2005 * testsuite/23_containers/list/invalidation/1.cc: Same.
2006 * testsuite/23_containers/list/invalidation/2.cc: Same.
2007 * testsuite/23_containers/list/invalidation/3.cc: Same.
2008 * testsuite/23_containers/list/invalidation/4.cc: Same.
2009 * testsuite/23_containers/map/invalidation/2.cc: Same.
2010 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
2011 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2012 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
2013 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2014 * testsuite/23_containers/set/invalidation/1.cc: Same.
2015 * testsuite/23_containers/set/invalidation/2.cc: Same.
2016 * testsuite/23_containers/vector/invalidation/1.cc: Same.
2017 * testsuite/23_containers/vector/invalidation/2.cc: Same.
2018 * testsuite/23_containers/vector/invalidation/3.cc: Same.
2019 * testsuite/23_containers/vector/invalidation/4.cc: Same.
2021 2004-03-04 Paolo Carlini <pcarlini@suse.de>
2023 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
2025 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
2027 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
2028 from the dg-options.
2029 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
2030 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
2031 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
2032 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
2033 * testsuite/23_containers/vector/resize/1.cc: Likewise.
2034 * testsuite/26_numerics/complex_value.cc: Likewise.
2035 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
2036 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
2037 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
2038 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
2039 * testsuite/27_io/objects/char/5.cc: Likewise.
2040 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
2041 * testsuite/backward/11460.cc: Likewise.
2042 * testsuite/thread/pthread7-rope.cc: Likewise.
2044 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
2045 missing test variable.
2046 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
2047 missing test variable.
2049 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
2051 * testsuite/20_util/allocator/1.cc: Provide explicit
2052 instantiations for non-weak systems.
2053 * testsuite/20_util/binders.cc: Same.
2054 * testsuite/20_util/allocator/8230.cc: Same.
2055 * testsuite/20_util/allocator/10378.cc: Same.
2056 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
2057 * testsuite/22_locale/ctype/is/char/2.cc: Same.
2058 * testsuite/thread/pthread7-rope.cc: Same.
2059 * testsuite/thread/pthread6.cc: Same.
2060 * testsuite/thread/pthread5.cc: Same.
2061 * testsuite/thread/pthread4.cc: Same.
2062 * testsuite/thread/pthread1.cc: Same.
2063 * testsuite/ext/rope.cc: Same.
2064 * testsuite/ext/hash_set.cc: Same.
2065 * testsuite/ext/hash_map.cc: Same.
2066 * testsuite/ext/concept_checks.cc: Same.
2067 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
2068 * testsuite/25_algorithms/unique/2.cc: Same.
2069 * testsuite/25_algorithms/unique/1.cc: Same.
2070 * testsuite/25_algorithms/rotate.cc: Same.
2071 * testsuite/25_algorithms/min_max.cc: Same.
2072 * testsuite/25_algorithms/equal.cc: Same.
2073 * testsuite/24_iterators/rel_ops.cc: Same.
2074 * testsuite/24_iterators/iterator.cc: Same.
2075 * testsuite/24_iterators/insert_iterator.cc: Same.
2076 * testsuite/24_iterators/front_insert_iterator.cc: Same.
2077 * testsuite/24_iterators/back_insert_iterator.cc: Same.
2078 * testsuite/23_containers/vector/resize/1.cc: Same.
2079 * testsuite/23_containers/vector/modifiers/2.cc: Same.
2080 * testsuite/23_containers/vector/modifiers/1.cc: Same.
2081 * testsuite/23_containers/vector/invalidation/4.cc: Same.
2082 * testsuite/23_containers/vector/invalidation/3.cc: Same.
2083 * testsuite/23_containers/vector/invalidation/2.cc: Same.
2084 * testsuite/23_containers/vector/invalidation/1.cc: Same.
2085 * testsuite/23_containers/vector/element_access/1.cc: Same.
2086 * testsuite/23_containers/vector/cons/6513.cc: Same.
2087 * testsuite/23_containers/vector/cons/3.cc: Same.
2088 * testsuite/23_containers/vector/cons/2.cc: Same.
2089 * testsuite/23_containers/vector/cons/1.cc: Same.
2090 * testsuite/23_containers/vector/capacity/8230.cc: Same.
2091 * testsuite/23_containers/vector/capacity/1.cc: Same.
2092 * testsuite/23_containers/vector/bool/6886.cc: Same.
2093 * testsuite/23_containers/stack/members/7158.cc: Same.
2094 * testsuite/23_containers/set/invalidation/2.cc: Same.
2095 * testsuite/23_containers/set/invalidation/1.cc: Same.
2096 * testsuite/23_containers/queue/members/7157.cc: Same.
2097 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
2098 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2099 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2100 * testsuite/23_containers/multiset/insert/1.cc: Same.
2101 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2102 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2103 * testsuite/23_containers/map/operators/1.cc: Same.
2104 * testsuite/23_containers/map/invalidation/2.cc: Same.
2105 * testsuite/23_containers/map/invalidation/1.cc: Same.
2106 * testsuite/23_containers/map/insert/1.cc: Same.
2107 * testsuite/23_containers/list/operators/4.cc: Same.
2108 * testsuite/23_containers/list/operators/3.cc: Same.
2109 * testsuite/23_containers/list/operators/2.cc: Same.
2110 * testsuite/23_containers/list/operators/1.cc: Same.
2111 * testsuite/23_containers/list/modifiers/3.cc: Same.
2112 * testsuite/23_containers/list/modifiers/2.cc: Same.
2113 * testsuite/23_containers/list/modifiers/1.cc: Same.
2114 * testsuite/23_containers/list/invalidation/4.cc: Same.
2115 * testsuite/23_containers/list/invalidation/3.cc: Same.
2116 * testsuite/23_containers/list/invalidation/2.cc: Same.
2117 * testsuite/23_containers/list/invalidation/1.cc: Same.
2118 * testsuite/23_containers/list/cons/9.cc: Same.
2119 * testsuite/23_containers/list/cons/8.cc: Same.
2120 * testsuite/23_containers/list/cons/7.cc: Same.
2121 * testsuite/23_containers/list/cons/6.cc: Same.
2122 * testsuite/23_containers/list/cons/5.cc: Same.
2123 * testsuite/23_containers/list/cons/4.cc: Same.
2124 * testsuite/23_containers/list/cons/3.cc: Same.
2125 * testsuite/23_containers/list/cons/2.cc: Same.
2126 * testsuite/23_containers/list/cons/1.cc: Same.
2127 * testsuite/23_containers/list/capacity/1.cc: Same.
2128 * testsuite/23_containers/deque/operators/1.cc: Same.
2129 * testsuite/23_containers/deque/invalidation/4.cc: Same.
2130 * testsuite/23_containers/deque/invalidation/3.cc: Same.
2131 * testsuite/23_containers/deque/invalidation/2.cc: Same.
2132 * testsuite/23_containers/deque/invalidation/1.cc: Same.
2133 * testsuite/23_containers/deque/cons/2.cc: Same.
2134 * testsuite/23_containers/deque/cons/1.cc: Same.
2136 * src/allocator.cc: Add char, wchar_t instantiations
2137 to match extern template declarations in memory.h.
2139 2004-03-03 Paolo Carlini <pcarlini@suse.de>
2141 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2142 Fix warning regression.
2144 2004-03-03 Paolo Carlini <pcarlini@suse.de>
2146 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2147 Deal properly with empty __digits and negative frac_digits,
2150 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
2152 * docs/html/documentation.html: Regenerate.
2154 2004-03-02 Paolo Carlini <pcarlini@suse.de>
2157 * include/bits/postypes.h (class streamoff): Remove, now
2158 streamoff is just typedef a 64 bit signed integer type.
2159 (class fpos): Tweak consistently.
2160 * testsuite/27_io/fpos/14320-1.cc: New.
2161 * testsuite/27_io/fpos/14320-2.cc: New.
2162 * testsuite/27_io/fpos/14320-3.cc: New.
2163 * testsuite/27_io/fpos/14320-4.cc: New.
2164 * testsuite/27_io/fpos/14320-5.cc: New.
2165 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
2167 2004-03-02 Paolo Carlini <pcarlini@suse.de>
2169 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2170 Reorganize a bit the main parsing loop, thus early detecting
2171 an empty value component.
2172 * testsuite/22_locale/money_get/get/char/16.cc: New.
2173 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
2175 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
2177 Support automake 1.8.2
2178 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
2179 * po/Makefile.am (EXTRA_DIST): New.
2180 * po/Makefile.in: Regenerate.
2181 * Makefile.in: Same.
2182 * include/Makefile.in: Same.
2183 * libmath/Makefile.in: Same.
2184 * libsupc++/Makefile.in: Same.
2185 * src/Makefile.in: Same.
2186 * testsuite/Makefile.in: Same.
2188 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
2189 __GXX_WEAK__ instead of SUPPORTS_WEAK.
2190 (${host_builddir}/gthr-default.h): Same.
2191 (${host_builddir}/gthr.h): Same.
2192 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
2193 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
2195 * aclocal.m4: Regenerate.
2196 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
2197 * config.h.in: Regenerate.
2200 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
2202 Support autoconf 2.59
2203 * acinclude.m4: Quote correctly.
2204 * aclocal.m4: Regenerate.
2207 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
2209 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
2211 * docs/html/18_support/howto.html: Add bit about writing to
2212 stderr, mostly by Zack.
2214 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2216 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2217 money_get<>::do_get(string_type&)): ... and two more.
2219 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2221 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2222 Fix thinkos in the switch from string_type& to string& as last
2225 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2227 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2228 Also when parsing exponent sign, first look for thousands_sep
2229 and decimal_point; tweak a bit.
2230 * testsuite/22_locale/num_get/get/char/15.cc: New.
2231 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
2233 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2234 num_get<>::_M_extract_int): Reorder some conditionals.
2236 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2238 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2239 Consistently with numpunct, enforce the requirements in
2240 22.2.6.3, p3 for the thousands separators; tweak a bit.
2241 * testsuite/22_locale/money_get/get/char/15.cc: New.
2242 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
2244 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
2246 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
2247 testsuite_files from correct multilib blddir when running
2250 2004-02-29 Phil Edwards <phil@codesourcery.com>
2252 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
2253 the summary file to the logfile.
2254 * testsuite/Makefile.in: Regenerate.
2256 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2258 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
2260 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
2261 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
2263 2004-02-28 Paolo Carlini <pcarlini@suse.de>
2265 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2266 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
2267 no 'decimal-point' in the middle: in this case too we must fix
2268 up __found_grouping; slightly tweak.
2269 * testsuite/22_locale/num_get/get/char/14.cc: New.
2270 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
2272 2004-02-27 Eric Christopher <echristo@redhat.com>
2273 Phil Edwards <phil@codesourcery.com>
2275 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
2276 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
2277 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
2278 testsuite/22_locale/collate/hash/wchar_t/2.cc,
2279 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
2280 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
2281 testsuite/22_locale/collate/transform/wchar_t/2.cc,
2282 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
2283 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2284 Use dg-require-iconv.
2285 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
2287 2004-02-27 Phil Edwards <phil@codesourcery.com>
2288 Eric Christopher <echristo@redhat.com>
2290 * testsuite/config/default.exp: Update with comments.
2291 (${tool}_target_compile): New wrapper routine.
2292 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
2293 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
2295 (load_gcc_lib, v3track): New routines.
2296 (v3-init): Rename to libstdc++_init.
2297 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
2298 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
2300 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
2302 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
2304 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
2306 * config/os/irix/irix5.2/atomicity.h: Merge..
2307 * config/os/irix/irix6.5/atomicity.h: Merge..
2308 * config/os/irix/atomicity.h: ...into this.
2309 * config/os/irix/atomic_word.h: New.
2310 * configure.host: Set atomic_word_dir for irix.
2312 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
2313 * i386/atomicity.h: Same.
2314 * m68k/atomicity.h: Same.
2315 * sparc/atomicity.h: Same.
2317 2004-02-27 David Edelsohn <edelsohn@gnu.org>
2319 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
2320 static, and inline keywords.
2322 2004-02-27 Paolo Carlini <pcarlini@suse.de>
2324 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2325 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
2326 call reserve on the __tmp_gruping string.
2327 (num_get<>::_M_extract_float): Don't append unnecessarily a
2328 char() to the returned string.
2329 * include/bits/locale_facets.tcc: Trivial reformattings.
2331 2004-02-27 Paolo Carlini <pcarlini@suse.de>
2333 * include/bits/locale_facets.h (money_get<>::_M_extract):
2334 Change signature: now takes a plain string&.
2335 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2336 Update consistently the definition; use the moneypunct cache
2337 to parse the value; use swap to change __units.
2338 (money_get<>::do_get(long double&)): Update call of _M_extract,
2339 avoid ctype::narrow, not correct wrt the standard.
2340 (money_get<>::do_get(string_type&)): Likewise, update call
2341 of _M_extract, use ctype::widen.
2342 * src/locale-inst.cc: Tweak instantiations of _M_extract.
2344 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
2346 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
2347 * testsuite/demangle/abi_examples/02.cc: Likewise.
2348 * testsuite/demangle/regression/cw-11.cc: Likewise.
2349 * testsuite/demangle/regression/cw-16.cc: Change two expected
2350 results to match libiberty demangler output.
2352 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
2355 * libsupc++/Makefile.am: Use libiberty demangler.
2356 (c_sources): Add cp-demangle.c.
2357 * libsupc++/Makefile.in: Regenerate.
2358 * src/Makefile.am (sources): Remove demangle.cc.
2359 * src/Makefile.in: Regenerate.
2360 * include/Makefile.am (bits_headers): Move demangle.h.
2361 (ext_headers): ...here.
2362 * include/Makefile.in: Regenerate.
2363 * include/bits/demangle.h: Move...
2364 * include/ext/demangle.h: ...here.
2365 * src/demangle.cc: Remove.
2367 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
2369 * include/bits/demangle.h: Add type template parameter to all
2370 templates with just an Allocator template parameter.
2372 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
2374 * include/bits/atomicity.h: New, forward declarations for __atomic_add
2375 and __exchange_and_add.
2376 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
2377 * config/cpu/cris/atomic_word.h: Same.
2378 * config/cpu/sparc/atomic_word.h: Same.
2379 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
2380 Qualifiy with __gnu_cxx.
2381 (_Callback_list::_M_add_reference): Same.
2382 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
2383 (locale::facet::_M_remove_reference): Same.
2384 (locale::_Impl::_M_add_reference): Add.
2385 (locale::_Impl::_M_remove_reference): Same.
2386 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
2387 (basic_string::_Rep::_M_dispose): Same.
2388 * src/ios.cc (ios_base::xalloc): Same.
2389 * src/ios_init.cc (ios_base::Init::Init): Same.
2390 (ios_base::Init::~Init): Same.
2391 * src/locale.cc (locale::id::_M_id): Same.
2392 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
2393 static, and inline keywords.
2394 * config/cpu/alpha/atomicity.h: Same.
2395 * config/cpu/cris/atomicity.h: Same.
2396 * config/cpu/generic/atomicity.h: Same.
2397 * config/cpu/hppa/atomicity.h: Same.
2398 * config/cpu/i386/atomicity.h: Same.
2399 * config/cpu/ia64/atomicity.h: Same.
2400 * config/cpu/m68k/atomicity.h: Same.
2401 * config/cpu/mips/atomicity.h: Same.
2402 * config/cpu/powerpc/atomicity.h: Same.
2403 * config/cpu/s390/atomicity.h: Same.
2404 * config/cpu/sparc/atomicity.h: Same.
2406 * src/Makefile.am (host_sources): Add atomicity.cc.
2407 (atomicity.cc): New rule.
2408 * src/Makefile.in: Regenerate.
2409 * include/Makefile.am (host_headers): Remove host atomicity.h.
2410 (host_headers): Add atomic_word.h.
2411 (bits_headers): Add bits atomicity.h.
2412 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2413 * include/Makefile.in: Regenerate.
2414 * configure.host (atomic_word_dir): Add.
2415 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
2416 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2417 * configure: Regenerate.
2418 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
2420 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
2421 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2423 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
2425 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
2426 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
2427 Fix markup, more <link> tags.
2429 2004-02-25 Carlo Wood <carlo@alinoe.com>
2432 namespace __gnu_cxx::demangler
2433 (session<Allocator>::qualifier_list_Allocator): Add
2434 (session<Allocator>::M_qualifier_list_alloc): Add
2435 (session<Allocator>::decode_type_with_postfix):
2436 Use M_qualifier_list_alloc instead of calling operator new/delete.
2438 2004-02-24 Paolo Carlini <pcarlini@suse.de>
2441 * include/bits/postypes.h (class streamoff): Add operator++(),
2442 operator++(int), operator--() and operator--(int).
2443 * testsuite/27_io/fpos/14252.cc: New.
2445 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
2447 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
2448 error in handling of hex constants.
2450 2004-02-24 Paolo Carlini <pcarlini@suse.de>
2452 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2453 Prefer basic_string::append to operator+= and a temporary.
2455 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
2457 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
2458 Only use fputs, not write.
2460 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
2462 * include/ext/malloc_allocator.h: Add operators ==, !=.
2463 * include/ext/new_allocator.h: Add operators ==, !=.
2464 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
2465 (__mt_alloc::_S_get_options): New.
2466 (__mt_alloc::_S_set_options): New.
2467 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
2468 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
2469 Move functions out of line, simplify, format.
2470 * src/allocator.cc: Simplify explicit instantiations.
2471 * include/bits/allocator.h: Tweak.
2473 2004-02-22 Paolo Carlini <pcarlini@suse.de>
2475 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2476 Restructure formatting of value component, first dealing with
2477 the non-decimal digits; use reserve.
2479 2004-02-22 Paolo Carlini <pcarlini@suse.de>
2481 * include/bits/locale_facets.h (class money_get): Inherit
2482 from money_base too; tweak declaration of _M_extract, now
2483 parameterized on _Intl too.
2484 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2485 Update definition to use the cache; call reserve on __res to
2486 avoid multiple reallocations; fix parsing of sign component
2487 according to 22.2.6.1.2, p3.
2488 (money_get<>::do_get(long double&),
2489 money_get<>::do_get(string_type&)): Update calls of _M_extract.
2490 * src/locale-inst.cc: Add instantiations of
2491 money_get::_M_extract<false> and money_get::_M_extract<true>.
2492 * testsuite/22_locale/money_get/get/char/14.cc: New.
2493 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
2495 2004-02-21 Mark Mitchell <mark@codesourcery.com>
2497 * libsupc++/vterminate.cc
2498 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
2500 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
2502 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2503 not set RLIMIT_AS on HP-UX.
2505 2004-02-21 Mark Mitchell <mark@codesourcery.com>
2507 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2508 not set RLIMIT_AS on HP-UX.
2510 2004-02-21 Paolo Carlini <pcarlini@suse.de>
2512 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
2513 _S_zero, _S_end } enum, _S_atoms.
2514 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
2515 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
2516 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
2517 (__moneypunct_cache<>::~__moneypunct_cache): Update.
2518 (__moneypunct_cache<>::_M_cache): Fill the cache.
2519 (class moneypunct): Tweak __cache_type typedef.
2520 (class money_put): Inherit from money_base too; tweak declaration
2521 of _M_insert, now parameterized on _Intl.
2522 * include/bits/locale_facets.tcc
2523 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
2524 (money_put<>::_M_insert): Update definition to use the cache;
2525 call reserve on __res to avoid multiple reallocations.
2526 (money_put<>::do_put(long double),
2527 money_put<>::do_put(const string_type&): Update calls of _M_insert.
2528 * config/locale/generic/monetary_members.cc
2529 (moneypunct<char, true>::_M_initialize_moneypunct,
2530 moneypunct<char, false>::_M_initialize_moneypunct,
2531 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
2532 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
2533 * config/locale/gnu/monetary_members.cc: Likewise.
2534 * config/locale/gnu/monetary_members.cc
2535 (moneypunct<wchar_t, true>::~moneypunct(),
2536 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
2537 * src/globals_locale.cc: Tweak fake_money_cache_c.
2538 * src/locale-inst.cc: Add instantiations for
2539 money_put::_M_insert<false> and money_put::_M_insert<true> and
2540 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
2541 * src/locale_facets.cc: Define money_base::_S_atoms.
2542 * src/locale_init.cc: Update placement new of
2543 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
2544 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
2546 * config/locale/generic/numeric_members.cc: Clean up.
2547 * config/locale/gnu/numeric_members.cc: Likewise.
2548 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
2549 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
2550 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
2551 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
2552 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
2553 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
2555 2004-02-20 Mark Mitchell <mark@codesourcery.com>
2557 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
2558 FIFO for writing with ios_base::in|ios_base::out.
2559 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
2560 * testsuite/27_io/objects/char/7.cc: Likewise.
2561 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
2564 2004-02-19 David Edelsohn <edelsohn@gnu.org>
2566 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
2567 from iso-8859-1 to ISO8859-1.
2568 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
2569 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
2570 * 22_locale/collate/hash/wchar_t/2.cc: Same.
2571 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
2572 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
2573 * 22_locale/collate/transform/wchar_t/2.cc: Same.
2574 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
2575 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
2577 2004-02-18 Paolo Carlini <pcarlini@suse.de>
2579 * include/bits/locale_facets.h (money_get<>::_M_extract):
2580 New, helper for do_get.
2581 (money_put<>::_M_insert): Likewise, for do_put.
2582 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2583 money_put<>::_M_insert): Define.
2584 (money_get<>::do_get(long double&), money_get<>::do_get(
2585 string_type&), money_put::do_put(long double),
2586 money_put::do_put(const string_type&)): Use the helpers.
2588 2004-02-18 Paolo Carlini <pcarlini@suse.de>
2590 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2591 Rewrite, avoiding recursion.
2592 (__gnu_internal::xwrite): Minor tweaks.
2594 2004-02-17 Stefan Olsson <stefan@xapa.se>
2596 * include/ext/mt_allocator.h: Removed the last
2597 pointer. Deallocated blocks are now added to the front of
2598 freelists as proposed by Felix Yen. This gives roughly 10%
2599 performance boost and saves some memory.
2600 * docs/html/ext/mt_allocator.html: Change due to that deallocated
2601 blocks now are added to the front of freelists. The reason to this
2602 approach is also explained.
2604 2004-02-17 Paolo Carlini <pcarlini@suse.de>
2606 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2607 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
2608 grouping fidelity conditional.
2610 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2612 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
2613 Qualify exception with std::.
2614 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
2615 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2616 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2617 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2618 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2620 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2622 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
2623 for now that the catch block is not reached.
2624 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
2626 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2628 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2629 Fix parsing of the remaining sign characters.
2630 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
2631 the input is scanned 'til eof.
2632 * 22_locale/money_get/get/char/4.cc: Likewise.
2633 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
2634 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
2635 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
2636 not do_pos_format: the former is the only one that matters during
2638 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
2640 * 22_locale/money_get/get/char/6.cc: Minor tweak.
2641 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
2643 2004-02-15 David Asher <david.asher@cavium.com>
2646 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
2647 access __olds beyond __oldlen.
2649 2004-02-14 Paolo Carlini <pcarlini@suse.de>
2651 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
2652 sure the exception is actually thrown.
2653 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2654 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2655 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2657 2004-02-14 Paolo Carlini <pcarlini@suse.de>
2660 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
2661 In case of conversion errors, throw ios_failure; simplify.
2662 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
2663 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2664 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
2665 previously we didn't throw in case of conversion errors, instead
2666 just returned eof().
2667 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2668 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2669 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2671 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
2672 Trivial simplification of a conditional.
2674 2004-02-12 Paolo Carlini <pcarlini@suse.de>
2676 PR libstdc++/13731 (final part: writev)
2677 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2678 New, a wrapper around writev() handling partial writes.
2679 (__basic_file<char>::xwrite): Move to __gnu_internal and make
2681 (__basic_file<char>::xsputn): Update call.
2682 (__basic_file<char>::xsputn_2): Likewise.
2683 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2684 Don't declare, now static.
2686 2004-02-11 Stefan Olsson <stefan@xapa.se>
2688 * docs/html/ext/mt_allocator.html: New.
2690 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
2692 * docs/html/20_util/allocator.html: New file, consolidate
2693 allocator information here. Revamp.
2694 * docs/html/documentation.html: Change links.
2695 * docs/html/20_util/howto.html: Same.
2696 * docs/html/ext/howto.html: Same.
2698 2004-02-11 Paolo Carlini <pcarlini@suse.de>
2700 PR libstdc++/13731 (first part: write)
2701 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2703 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
2704 Define it: a wrapper around write() handling partial write.
2705 (__basic_file<char>::xsputn): Use it.
2706 (__basic_file<char>::xsputn_2): Likewise.
2708 2004-02-11 Paolo Carlini <pcarlini@suse.de>
2709 Petur Runolfsson <peturr02@ru.is>
2712 * include/std/std_istream.h (operator>>(__istream_type& (*)
2713 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
2714 operator>>(ios_base& (*)(ios_base&))): Declare inline.
2715 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
2716 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
2717 operator<<(ios_base& (*) (ios_base&))): Likewise.
2718 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
2720 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
2723 * config/linker-map.gnu: Add typeinfo and typeinfo name for
2724 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
2727 * config/linker-map.gnu: Add typeinfo and typeinfo name for
2728 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
2730 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
2732 * include/ext/pool_allocator.h: Include c++config.h.
2734 2004-02-09 Stefan Olsson <stefan@xapa.se>
2736 * include/ext/mt_allocator.h: thread_id is unused in non threaded
2737 applications and now has a ifdef to remove it completely on
2738 compilers without thread support. Include stdlib.h due to a
2739 compiler warning on getenv().
2741 2004-02-09 Paul Brook <paul@codesourcery.com>
2743 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
2745 2004-02-09 Paolo Carlini <pcarlini@suse.de>
2748 * src/locale_init.cc (locale::global(const locale&)): Use
2749 locale::name() in order to decide whether calling setlocale.
2750 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
2752 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
2753 Avoid computing &= unnecessarily.
2755 2004-02-09 James E Wilson <wilson@specifixinc.com>
2758 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
2759 __builtin_extend_pointer.
2761 2004-02-09 Paolo Carlini <pcarlini@suse.de>
2764 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
2765 Don't leave dangling pointers.
2766 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
2767 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
2768 facet is needed in the final test.
2770 2004-02-09 Bernardo Innocenti <bernie@develer.com>
2772 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
2773 * configure: Regenerate.
2775 2004-02-08 Richard Henderson <rth@redhat.com>
2778 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
2779 uncaughtExceptions during nested catch rethrow.
2780 * testsuite/18_support/14026.cc: New.
2782 2004-02-08 Paolo Carlini <pcarlini@suse.de>
2784 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
2785 When working in place remember to set the state to sharable
2786 (otherwise, _M_mutate does it).
2788 2004-02-08 Bernardo Innocenti <bernie@develer.com>
2790 * include/bits/allocator.h, include/bits/basic_ios.h,
2791 include/bits/basic_ios.tcc, include/bits/basic_string.h,
2792 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
2793 include/bits/char_traits.h, include/bits/codecvt.h,
2794 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
2795 include/bits/demangle.h, include/bits/deque.tcc,
2796 include/bits/fstream.tcc, include/bits/functexcept.h,
2797 include/bits/gslice.h, include/bits/gslice_array.h,
2798 include/bits/indirect_array.h, include/bits/ios_base.h,
2799 include/bits/istream.tcc, include/bits/list.tcc,
2800 include/bits/locale_classes.h, include/bits/locale_facets.h,
2801 include/bits/locale_facets.tcc, include/bits/localefwd.h,
2802 include/bits/mask_array.h, include/bits/ostream.tcc,
2803 include/bits/postypes.h, include/bits/slice_array.h,
2804 include/bits/sstream.tcc, include/bits/stl_algo.h,
2805 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
2806 include/bits/stl_construct.h, include/bits/stl_deque.h,
2807 include/bits/stl_function.h, include/bits/stl_heap.h,
2808 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
2809 include/bits/stl_list.h, include/bits/stl_map.h,
2810 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
2811 include/bits/stl_numeric.h, include/bits/stl_pair.h,
2812 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
2813 include/bits/stl_relops.h, include/bits/stl_set.h,
2814 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
2815 include/bits/stl_threads.h, include/bits/stl_tree.h,
2816 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
2817 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
2818 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
2819 include/bits/type_traits.h, include/bits/valarray_after.h,
2820 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
2821 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
2822 trailing whitespace.
2824 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2826 * include/bits/basic_string.h: Fix comment.
2828 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2830 * include/bits/stl_construct.h: Wrap overlong lines, reformat
2831 according to the coding standards.
2832 * include/bits/stl_pair.h: Likewise.
2833 * include/bits/stl_raw_storage_iter.h: Likewise.
2834 * include/bits/stl_stack.h: Likewise.
2835 * include/bits/stl_uninitialized.h: Likewise.
2836 * include/bits/stream_iterator.h: Likewise.
2837 * include/bits/streambuf_iterator.h: Likewise.
2838 * include/bits/type_traits.h: Likewise.
2840 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2842 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2845 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
2847 * scripts/check_performance: Support PCH.
2849 * scripts/check_performance (CXX): Add -DNOTHREAD.
2850 * testsuite/performance/20_util/allocator/insert.cc: Integrate
2851 threaded tests from insert_insert.cc. Tweak iterations,
2852 remove special cases.
2853 * testsuite/performance/20_util/allocator/insert_insert.cc:
2854 Make all tests single-threaded. Tweak iterations.
2855 * testsuite/performance/20_util/allocator/map_thread.cc:
2857 * testsuite/performance/20_util/allocator/producer_consumer.cc:
2860 2004-02-05 Geoffrey Keating <geoffk@apple.com>
2864 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
2865 'gcc-lib'. Add comment about poorly-named variables.
2866 * aclocal.m4: Regenerate.
2867 * configure: Regenerate.
2869 2004-02-05 Paolo Carlini <pcarlini@suse.de>
2871 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2872 Thousands-sep are always optional; thousands-sep are not allowed
2873 after the decimal_point.
2874 * testsuite/22_locale/money_get/get/char/12.cc: New.
2875 * testsuite/22_locale/money_get/get/char/13.cc: New.
2876 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
2877 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
2879 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
2880 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2881 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2882 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2883 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2884 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2885 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2886 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2888 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
2890 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
2892 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
2894 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
2896 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
2897 it to decide whether FIONREAD should take an off_t or int argument.
2899 2004-02-05 Paolo Carlini <pcarlini@suse.de>
2901 * include/bits/stl_function.h: Minor formatting changes.
2903 2004-02-04 Zack Weinberg <zack@codesourcery.com>
2905 Revert previous change to config/abi/*/baseline_symbols.txt.
2907 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
2908 Zack Weinberg <zack@codesourcery.com>
2910 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
2912 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
2913 (__basic_file<char>::_M_open_mode): Delete.
2914 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
2916 * testsuite/27_io/basic_filebuf/close/char/9964.cc
2917 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2918 Correct flags to filebuf::open calls.
2920 * config/abi/alpha-freebsd5/baseline_symbols.txt
2921 * config/abi/alpha-linux-gnu/baseline_symbols.txt
2922 * config/abi/hppa-linux-gnu/baseline_symbols.txt
2923 * config/abi/i386-freebsd4/baseline_symbols.txt
2924 * config/abi/i386-freebsd5/baseline_symbols.txt
2925 * config/abi/i486-linux-gnu/baseline_symbols.txt
2926 * config/abi/ia64-linux-gnu/baseline_symbols.txt
2927 * config/abi/mips-linux-gnu/baseline_symbols.txt
2928 * config/abi/sparc-freebsd5/baseline_symbols.txt
2929 * config/abi/sparc-linux-gnu/baseline_symbols.txt
2930 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
2931 Remove entry for __basic_file<char>::_M_open_mode.
2933 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
2935 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
2937 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
2939 * testsuite/performance/20_util/producer_consumer.cc: New.
2940 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
2942 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
2944 * testsuite/performance/20_util/allocator.cc: Move to..
2945 * testsuite/performance/20_util/allocator/insert.cc: ...here.
2946 * testsuite/performance/20_util/allocator_thread.cc: Move to...
2947 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
2948 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
2949 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
2951 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
2953 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
2954 * docs/html/faq/index.txt: Regenerate.
2956 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
2958 * include/ext/debug_allocator.h: _M_extra now stands for the
2959 number of extra objects instead of the number of extra bytes.
2960 (debug_allocator::allocate): Adjust.
2961 (debug_allocator::deallocate): Adjust.
2963 * include/ext/pool_allocator.h: Fix typo.
2965 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
2966 Benjamin Kosnik <bkoz@redhat.com>
2968 * testsuite/performance/20_util/allocator.cc: Add map,
2970 * testsuite/performance/20_util/allocator_thread.cc: Same.
2972 2004-02-03 Paolo Carlini <pcarlini@suse.de>
2974 * include/bits/basic_string.h (insert(iterator)): Remove,
2975 non-standard and already scheduled for removal.
2977 2004-02-03 Paolo Carlini <pcarlini@suse.de>
2979 * include/bits/stl_iterator_base_funcs.h: Minor formatting
2980 and indentation tweaks.
2981 * include/bits/stl_iterator_base_types.h: Likewise.
2982 * include/bits/stl_list.h: Likewise.
2983 * include/bits/stl_map.h: Likewise.
2984 * include/bits/stl_tempbuf.h: Likewise.
2986 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
2988 * include/bits/gslice.h, include/bits/gslice_array.h,
2989 include/bits/indirect_array.h, include/bits/mask_array.h,
2990 include/bits/slice_array.h, include/bits/stl_numeric.h,
2991 include/std/std_valarray.h: Update copyright years.
2993 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
2995 * include/bits/gslice.h (gslice): Document.
2996 * include/bits/gslice_array.h (gslice_array): Document.
2997 * include/bits/indirect_array (indirect_array): Document.
2998 * include/bits/mask_array (mask_array): Document.
2999 * include/bits/slice_array.h (slice,slice_array): Document.
3000 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
3001 adjacent_difference): Document
3002 * include/std/std_valarray.h (valarray): Document.
3004 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
3006 * docs/html/19_diagnostics/howto.html: Move verbose terminate
3008 * docs/html/18_support/howto.html: Here.
3009 * docs/html/documentation.html: Add reference here.
3011 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3013 * config/locale/gnu/c++locale_internal.h: Remove prototypes
3014 of no longer used GLIBC thread locale functions.
3016 2004-02-02 Eric Christopher <echristo@redhat.com>
3017 Zack Weinberg <zack@codesourcery.com>
3019 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
3021 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
3022 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
3023 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
3024 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
3025 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
3026 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
3027 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
3028 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3031 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3033 * include/bits/stl_function.h: Additional minor tweaks.
3034 * include/bits/stl_multiset.h: Likewise.
3036 * include/bits/stl_queue.h: Minor tweaks.
3038 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3040 PR libstdc++/13976 (continued)
3041 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
3042 Make the second parameter unnamed, to void unused parameter
3044 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
3046 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3049 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
3050 Make the second parameter unnamed, to void unused parameter
3052 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
3053 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
3055 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3057 * include/bits/stl_algo.h: Additional minor tweaks.
3058 * include/bits/stl_map.h: Likewise.
3059 * include/bits/stl_multimap.h: Likewise.
3060 * include/bits/stl_multiset.h: Likewise.
3061 * include/bits/stl_set.h: Likewise.
3062 * include/bits/stl_tree.h: Likewise.
3064 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3066 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
3069 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3071 * include/bits/stl_function.h: Additional minor tweaks.
3073 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3075 * include/bits/deque.tcc: Wrap overlong lines, constify
3076 a few variables, reformat according to the coding standards.
3077 * include/bits/list.tcc: Likewise.
3078 * include/bits/stl_deque.h: Likewise.
3079 * include/bits/stl_function.h: Likewise.
3080 * include/bits/stl_iterator.h: Likewise.
3081 * include/bits/stl_iterator_base_funcs.h: Likewise.
3082 * include/bits/stl_iterator_base_types.h: Likewise.
3083 * include/bits/stl_list.h: Likewise.
3084 * include/bits/stl_map.h: Likewise.
3085 * include/bits/stl_multimap.h: Likewise.
3086 * include/bits/stl_multiset.h: Likewise.
3087 * include/bits/stl_relops.h: Likewise.
3088 * include/bits/stl_set.h: Likewise.
3090 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3092 * include/bits/stl_bvector.h: Wrap overlong lines, constify
3093 a few variables, reformat according to the coding standards.
3094 * include/bits/stl_tree.h: Likewise.
3096 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3098 * include/bits/stl_algo.h: Minor additional reformat, add
3100 * include/bits/stl_algobase.h: Add copyright year.
3102 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3104 * include/bits/stl_algo.h: Wrap overlong lines, constify
3105 a few variables, reformat according to the coding standards.
3106 * include/bits/stl_algobase.h: Likewise.
3107 * include/bits/stl_heap.h: Likewise.
3109 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3111 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
3113 * include/bits/basic_string.h: Fix two comments.
3115 2004-01-31 Per Bothner <per@bothner.com>
3117 * include/ext/mt_allocator.h
3118 (__mt_alloc::_S_thread_freelist_mutex): Guard with
3119 __GTHREAD_MUTEX_INIT.
3121 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3123 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
3125 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3127 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
3128 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
3129 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
3131 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
3133 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
3134 Don't use clear, but instead assign. Use insert.
3136 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
3138 * src/demangle.cc: Add instantiations.
3139 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
3140 * src/Makefile.in: Regenerate.
3142 2004-01-30 David Edelsohn <edelsohn@gnu.org>
3144 * src/allocator.cc: Protect _S_get_thread_id() and
3145 _S_thread_key_destr() with #ifdef __GTHREADS.
3147 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3149 Reshuffle performance testsuite.
3150 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
3151 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
3152 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
3153 fstream_seek_write.cc, ifstream_extract_float.cc,
3154 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
3155 list_create_fill_sort.cc, map_create_fill.cc,
3156 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
3157 ofstream_insert_float.cc, ofstream_insert_int.cc,
3158 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
3159 wchar_t_out.cc: Split into...
3160 * testsuite/performance/20_util/allocator.cc: New.
3161 * testsuite/performance/20_util/allocator_map_thread.cc: New.
3162 * testsuite/performance/20_util/allocator_thread.cc: New.
3163 * testsuite/performance/21_strings/string_append: New.
3164 * testsuite/performance/22_locale/is_wchar_t.cc: New.
3165 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
3166 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
3167 * testsuite/performance/22_locale/wchar_t_in.cc: New.
3168 * testsuite/performance/22_locale/wchar_t_length.cc: New.
3169 * testsuite/performance/22_locale/wchar_t_out.cc: New.
3170 * testsuite/performance/23_containers/container_benchmark.cc: New.
3171 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
3172 * testsuite/performance/23_containers/map_create_fill.cc: New.
3173 * testsuite/performance/26_numerics/complex_norm.cc: New.
3174 * testsuite/performance/27_io/cout_insert_int.cc: New.
3175 * testsuite/performance/27_io/filebuf_copy.cc: New.
3176 * testsuite/performance/27_io/filebuf_sputc.cc: New.
3177 * testsuite/performance/27_io/fstream_seek_write.cc: New.
3178 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
3179 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
3180 * testsuite/performance/27_io/ifstream_getline.cc: New.
3181 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
3182 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
3184 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3186 * include/bits/basic_string.tcc (_Rep::_S_create):
3187 Never allocate a string bigger than max_size(); always keep
3188 __capacity and __size in sync to avoid memory leaks at
3191 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3193 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3194 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
3195 the double loop, streamline.
3197 * include/bits/basic_string.tcc: Very minor tweaks.
3199 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
3201 * scripts/check_performance: Only compile with $THREAD_FLAG
3202 when test is marked to require it. Allow multiple
3203 compilations/executions of marked tests.
3204 * testsuite/testsuite_performance.h (report_performance):
3205 Report dynamic thread support status.
3206 (report_header): Likewise.
3207 * testsuite/performance/allocator.cc: Stabilize iteration
3208 count. Support more allocators. Mark each allocator test to
3209 run and report independently.
3210 * testsuite/performance/allocator_map_thread.cc: Likewise.
3211 * testsuite/performance/allocator_thread.cc: Likewise.
3213 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
3215 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
3216 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
3217 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
3218 std::get_temporary_buffer() instead of duplicating its code.
3219 Update to C++STYLE conventions.
3220 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
3221 new() instead of std::malloc().
3222 (return_temporary_buffer): Use ::operator delete() instead of
3225 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
3227 * include/bits/allocator.h: Temporary switch to new_allocator as
3228 the default to unjam bootstraps.
3230 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
3232 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
3233 * include/Makefile.in: Regenerate.
3234 * include/bits/allocator_traits.h: Remove.
3235 * include/bits/allocator.h: Remove allocator_traits.h include, and
3237 (allocator): Empty base class, inherit from the underlying allocator.
3238 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
3239 * src/allocator.cc: ...here. New. For the underlying allocators.
3240 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
3241 * config/linker-map.gnu: Remove __pool_alloc bits.
3242 * src/Makefile.am (sources): Add allocator.cc.
3243 * src/Makefile.in: Regenerate.
3244 * testsuite/20_util/allocator/1.cc: Split second test into...
3245 * testsuite/20_util/allocator/8230.cc: ...this.
3246 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
3247 typedef to use std::allocatore. Format.
3248 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
3250 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
3251 __throw_bad_alloc calls. Don't include <memory>.
3252 * include/ext/malloc_allocator.h: Remove <memory> include.
3253 * include/ext/new_allocator.h (new_allocator): Same.
3254 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
3255 declaration. Switch __alloc to _Alloc.
3256 * include/ext/hashtable.h: Remove __alloc.
3257 * include/backward/alloc.h: Only inject allocator, not
3258 implementation details.
3260 * include/ext/mt_allocator.h: Replace free with delete.
3262 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
3264 * src/globals_io.cc: Change to __gnu_internal namespace.
3265 * src/globals_locale.cc: Same.
3266 * src/locale_init.cc: Same.
3267 * src/ios_init.cc: Same.
3269 2004-01-28 Stefan Olsson <stefan@snon.net>
3271 * include/ext/mt_allocator.h: Replaced all malloc() calls with
3272 operator new(). Added support for the env variable
3273 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
3274 one in allocate() as well). Fix typos.
3276 2004-01-28 Paolo Carlini <pcarlini@suse.de>
3278 * include/bits/basic_string.h (_S_create(size_t,
3279 const _Alloc&): Change signature to take two size_type
3281 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3282 _InIterator, const _Alloc&, input_iterator_tag)): Update
3284 (_S_construct(_InIterator, _InIterator, const _Alloc&,
3285 forward_iterator_tag)): Likewise.
3286 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
3287 (_M_mutate(size_type, size_type, size_type)): Don't
3288 implement the exponential growth policy, demand it to
3289 _S_create, update call and simplify.
3290 (_M_clone(const _Alloc&, size_type)): Likewise.
3291 (_S_create(size_type, size_type, const _Alloc&)): Implement
3292 the growth policy, simplify otherwise.
3294 * include/bits/basic_string.h (_Rep::operator[]): Tweak
3295 signature to take a size_type, consistently with the other
3298 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
3300 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
3301 delete declarations, add include and test variable.
3303 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
3305 * include/bits/codecvt.h, include/bits/locale_facets.h,
3306 include/bits/postypes.h, include/bits/stl_bvector.h,
3307 include/bits/stl_multiset.h, include/bits/stl_set.h,
3308 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
3309 include/std/std_complex.h: Document.
3311 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
3314 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
3315 iword/pword selector.
3316 (ios_base::iword, ios_base::pword): Use it.
3317 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
3318 iword or pword member on alloc failure.
3319 * testsuite/27_io/ios_base/storage/11584.cc: New test.
3321 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
3322 PJ Darcy <darcypj@us.ibm.com>
3324 * configure.host: Add support for *-tpf.
3325 * crossconfig.m4: Likewise.
3326 * configure: Regenerate.
3327 * config/os/tpf: New directory.
3328 * config/os/tpf/os_defines.h: New file.
3329 * config/os/tpf/ctype_base.h: Likewise.
3330 * config/os/tpf/ctype_inline.h: Likewise.
3331 * config/os/tpf/ctype_noninline.h: Likewise.
3333 2004-01-27 Paolo Carlini <pcarlini@suse.de>
3336 * include/bits/sstream.tcc: Guard use of extern template.
3338 2004-01-27 Paolo Carlini <pcarlini@suse.de>
3340 * include/bits/basic_string.tcc
3341 (basic_string(const basic_string&, size_type, size_type),
3342 basic_string(const basic_string&, size_type, size_type,
3343 const _Alloc&)): Avoid unnecessarily constructing iterators.
3345 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3347 * config/locale/generic/c_locale.cc: Fix throw messages
3348 to use the __N marker.
3349 * config/locale/gnu/c_locale.cc: Likewise.
3350 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
3352 * docs/html/17_intro/C++STYLE: Likewise.
3353 * include/bits/basic_ios.tcc: Likewise.
3354 * include/bits/fstream.tcc: Likewise.
3355 * include/bits/vector.tcc: Likewise.
3356 * include/ext/ropeimpl.h: Likewise.
3357 * include/std/std_bitset.h: Likewise.
3358 * src/ios.cc: Likewise.
3359 * src/locale.cc: Likewise.
3360 * src/localename.cc: Likewise.
3362 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3364 * include/bits/basic_string.h (_M_replace_aux): Use the
3365 __N marker in throw message.
3366 * include/bits/basic_string.tcc (assign(const _CharT*,
3367 size_type), insert(size_type, const _CharT*, size_type),
3368 replace(size_type, size_type, const _CharT*, size_type),
3369 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
3372 * include/bits/basic_string.h, include/bits/basic_string.tcc:
3373 Fold overlong lines, minor formatting changes.
3375 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3377 * include/bits/basic_string.h (replace(iterator, iterator,
3378 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
3379 (replace(iterator, iterator, const _CharT*)): Ditto.
3380 (replace(iterator, iterator, const _CharT*, size_type)):
3381 Add missing _GLIBCXX_DEBUG_PEDASSERT.
3383 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3385 * include/bits/basic_string.tcc (replace(size_type,
3386 size_type, const _CharT*, size_type)): Implement optimized
3387 in-place algorithm for non-overlapping ranges.
3388 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
3389 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
3391 * include/bits/basic_string.tcc (insert(size_type,
3392 const _CharT*, size_type)): Tweak slightly.
3394 2004-01-26 Andreas Schwab <schwab@suse.de>
3396 * config/locale/gnu/monetary_members.cc: Restore locale before
3397 rethrowing exception.
3399 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3401 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
3403 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
3406 * include/bits/basic_string.tcc: Very minor tweaks.
3408 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3410 * testsuite/performance/string_append.cc: Increase number
3413 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3415 * include/bits/basic_string.h (erase(size_type, size_type),
3416 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
3417 instead, thus avoiding redundant check for length_error.
3419 * include/bits/basic_string.h: Tweak some comments.
3421 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3423 * include/bits/basic_string.tcc (operator+(const _CharT*,
3424 const basic_string&)): No need to go through the append
3425 taking two iterators.
3427 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3429 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
3430 Revert last change to use std::min: machine language is worse.
3431 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
3432 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3433 (find_last_not_of(_CharT, size_type)): Ditto.
3435 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
3436 size_type)): Discard the value returned by _M_check.
3437 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
3438 (append(const basic_string&, size_type, size_type)): Ditto.
3439 (copy(_CharT*, size_type, size_type)): Ditto.
3440 (compare(size_type, size_type, const basic_string&)): Ditto.
3441 (compare(size_type, size_type, const basic_string&,
3442 size_type, size_type)): Ditto.
3443 (compare(size_type, size_type, const _CharT*)): Ditto.
3444 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3446 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3448 * include/bits/basic_string.h (insert(size_type,
3449 const basic_string&, size_type, size_type)): Define inline here.
3450 * include/bits/basic_string.tcc (insert(size_type,
3451 const basic_string&, size_type, size_type)): Move inline.
3453 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3455 * include/bits/basic_string.h (assign(const basic_string&,
3456 size_type, size_type)): Define inline here.
3457 (replace(size_type, size_type, const basic_string&,
3458 size_type, size_type)): Ditto.
3459 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3460 _InputIterator, __false_type)): Only declare.
3461 (_M_replace(iterator, iterator, _InputIterator,
3462 _InputIterator)): Remove.
3463 * include/bits/basic_string.tcc (assign(const basic_string&,
3464 size_type, size_type)): Move inline.
3465 (replace(size_type, size_type, const basic_string&,
3466 size_type, size_type)): Ditto.
3467 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3468 _InputIterator, __false_type)): Define, now does also what
3469 _M_replace did before.
3470 * src/string-inst.cc (_M_replace): Don't instantiate.
3472 * include/bits/basic_string.tcc (find(const _CharT*,
3473 size_type, size_type)): Tidy.
3474 (rfind(_CharT, size_type)): Ditto.
3475 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
3476 (find_first_not_of(_CharT, size_type)): Ditto.
3477 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3478 (find_last_not_of(_CharT, size_type)): Ditto.
3480 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3483 * include/debug/bitset (operator|=): Fix typo.
3484 * testsuite/23_containers/bitset/operations/13838.cc: New.
3486 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3488 * include/bits/basic_string.tcc (insert(size_type,
3489 const _CharT*, size_type __n)): Fix length_error check.
3490 (replace(size_type, size_type, const _CharT*, size_type):
3491 Ditto; call _M_replace_safe.
3492 (_M_replace_aux(size_type, size_type, size_type, _CharT):
3493 Fix length_error check.
3494 (_M_replace(iterator, iterator, _InputIterator,
3495 _InputIterator)): Ditto, tweak.
3496 (_M_replace_safe(size_type, size_type, const _CharT*,
3497 size_type)): Remove length_error check.
3499 * include/bits/basic_string.tcc (append(const basic_string&),
3500 append(const basic_string&, size_type, size_type)): Tweak
3503 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
3504 size_type)): If __n == 0 don't call traits::copy.
3506 2004-01-23 Stefan Olsson <stefan@snon.net>
3508 * include/ext/mt_allocator.h: Reduce lock contention.
3510 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3513 * include/bits/fstream.tcc (underflow): Remove unused
3515 * include/bits/streambuf_iterator.h (equal): Ditto.
3516 * include/bits/locale_facets.h (_M_convert_from_char):
3519 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3522 * config/linker-map.gnu (nan): Delete.
3523 * libmath/mathconf.h (NAN, nan): Delete.
3524 * linkage.m4 (nan): Don't check for it.
3525 * libmath/nan.c: Delete file.
3527 * config.h.in, configure: Regenerate.
3529 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3531 * include/bits/basic_string.h (push_back(_CharT)):
3532 Call _M_replace_aux.
3533 (insert(size_type, const basic_string&)): Trivial tweak.
3534 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
3535 (insert(iterator, _CharT)): Ditto.
3536 (erase(size_type, size_type)): Ditto.
3537 (erase(iterator)): Ditto.
3538 (erase(iterator, iterator)): Ditto.
3539 (replace(size_type, size_type, size_type, _CharT)): Ditto.
3541 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
3544 * testsuite/performance/allocator_map_thread.cc: New test.
3546 2004-01-22 Paolo Carlini <pcarlini@suse.de>
3548 * include/bits/locale_facets.tcc
3549 (money_put::do_put(..., long double)): Use the basic_string
3550 constructor for char arrays, not that for C-strings, to pass
3551 __digits to do_put(..., const string_type&): __ws isn't
3554 2004-01-22 Paolo Carlini <pcarlini@suse.de>
3556 * include/bits/basic_string.h (_M_replace_safe): Change
3557 signatures to take size_types and const _CharT*.
3558 (_M_replace_aux): Likewise, takes size_types instead of
3560 (append(size_type, _CharT)): Update call.
3561 (assign(size_type, _CharT)): Ditto.
3562 (replace(iterator, iterator, size_type, _CharT)): Ditto.
3563 (_M_replace_dispatch(iterator, iterator, _Integer,
3564 _Integer, __true_type)): Ditto.
3565 * include/bits/basic_string.tcc (assign(const _CharT*,
3567 (insert(size_type, const _CharT*, size_type)): Ditto.
3568 (replace(size_type, size_type, const _CharT*,
3570 (_M_replace(iterator, iterator, _InputIterator,
3571 _InputIterator)): Ditto.
3572 (append(const basic_string&)): Ditto.
3573 (append(const basic_string&, size_type, size_type): Ditto.
3574 (append(const _CharT*, size_type): Ditto.
3575 (_M_replace_safe, _M_replace_safe): Change definitions
3576 accordingly, simplify.
3577 * string-inst.cc (_M_replace_safe): Don't instantiate.
3579 2004-01-21 Paolo Carlini <pcarlini@suse.de>
3581 * include/bits/basic_string.tcc (append(const basic_string&)):
3582 Revert previous change.
3583 (append(const basic_string&, size_type, size_type)): Revert
3584 previous change, use _M_check and _M_limit.
3586 2004-01-21 Paolo Carlini <pcarlini@suse.de>
3588 * include/bits/basic_string.h (_M_check): Change to return
3589 a checked __pos and take an additional const char* argument.
3590 (_M_fold): Rename to _M_limit, change to return a size_type,
3591 corresponding to the __off limited to the actual length.
3592 (insert(size_type, size_type, _CharT)): Update call, call
3594 (insert(iterator, _CharT)): Call replace(iterator, iterator,
3595 size_type, _CharT) instead.
3596 (erase(size_type, size_type)): Update calls.
3597 (replace(size_type, size_type, size_type, _CharT)): Ditto.
3598 (substr(size_type, size_type)): Use _M_check.
3599 * include/bits/basic_string.tcc (basic_string(const basic_string&,
3600 size_type, size_type)): Update calls.
3601 (basic_string(const basic_string&, size_type, size_type,
3602 const _Alloc&)): Ditto.
3603 (assign(const basic_string&, size_type, size_type)): Use the
3604 new _M_check and _M_limit.
3605 (insert(size_type, const basic_string&, size_type, size_type):
3607 (insert(size_type, const _CharT*, size_type)): Ditto.
3608 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
3609 (replace(size_type, size_type, const basic_string&,
3610 size_type, size_type)): Ditto.
3611 (append(const basic_string&)): Ditto.
3612 (append(const basic_string&, size_type, size_type)): Ditto.
3613 (copy(_CharT*, size_type, size_type)): Ditto.
3614 (compare(size_type, size_type, const basic_string&)): Ditto.
3615 (compare(size_type, size_type, const basic_string&,size_type,
3617 (compare(size_type, size_type, const _CharT*)): Ditto.
3618 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3620 2004-01-19 Stefan Olsson <stefan@snon.net>
3622 * include/ext/mt_allocator.h: If a thread, when it dies, still has
3623 memory on it's freelist this memory is not returned to global
3624 list. Simplification of deallocate so that memory is always
3625 returned to the calling thread id's freelist instead of to
3626 global. Fix typos. Add volatile where appropriate.
3628 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
3630 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
3631 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
3632 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
3634 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3636 * src/debug.cc: Make sure all the names are prefixed with
3637 double (or single) underscore.
3639 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3641 * src/debug.cc: Trivial formatting change.
3643 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3645 * include/bits/basic_string.tcc (_S_construct(size_type,
3646 _CharT, const _Alloc&)): Remove redundant try/catch.
3647 (_M_mutate(size_type, size_type, size_type)): Ditto.
3648 (_M_clone(const _Alloc&, size_type)): Ditto.
3650 2004-01-18 Paolo Carlini <pcarlini@suse.de>
3652 * include/bits/basic_string.h (c_str()): Simplify, due to
3653 21.3.4 the internal representation is always kept null-terminated.
3654 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
3655 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
3656 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
3659 2004-01-18 Paolo Carlini <pcarlini@suse.de>
3661 * include/bits/basic_string.h (append(size_type, _CharT)):
3662 Moved inline, just call _M_replace_aux, no source iterators at
3663 risk of being clobbered.
3664 (assign(size_type, _CharT)): Call directly _M_replace_aux.
3665 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3666 input_iterator_tag)): Remove fifth unused argument.
3667 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3668 _InputIterator, __false_type)): Update call.
3669 * include/bits/basic_string.tcc (replace(size_type, size_type,
3670 const _CharT*, size_type)): Update call.
3671 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
3672 throw string literal.
3673 (_M_replace_safe(iterator, iterator, _ForwardIterator,
3674 _ForwardIterator)): Likewise.
3675 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3676 input_iterator_tag)): Remove fifth unused argument.
3677 (append(size_type __n, _CharT __c)): Move inline.
3678 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
3679 const C*, const C*, input_iterator_tag)): Remove fifth unused
3682 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
3684 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
3685 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
3687 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
3689 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
3692 2004-01-15 Stefan Olsson <stefan@snon.net>
3694 * include/ext/mt_allocator.h: Reuse thread id's as soon as
3695 possible by changing the behaviour of thread_freelist to do
3696 push_front when threads die instead of push_back.
3698 2004-01-14 Paolo Carlini <pcarlini@suse.de>
3700 * include/bits/locale_facets.h (struct __numpunct_cache):
3701 Add member _M_grouping_size, caching the length of _M_grouping.
3702 (__numpunct_cache<>::_M_cache): Assign the latter.
3703 (__verify_grouping): Move declaration...
3704 * include/bits/locale_facets.tcc (__verify_grouping):
3705 ... here, change signature to take a const char* and a size_t
3706 for the grouping; not a template anymore.
3707 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
3708 Likewise change signature and tweak consistently.
3709 (num_get::_M_extract_float, num_get::_M_extract_int,
3710 num_put::_M_insert_int, num_put::_M_insert_float,
3711 money_get::do_get(string_type&), money_get::do_put(string_type)):
3713 * config/locale/generic/numeric_members.cc
3714 (numpunct<>::_M_initialize_numpunct): Assign the new member.
3715 * config/locale/gnu/numeric_members.cc
3716 (numpunct<>::_M_initialize_numpunct): Likewise.
3717 * src/locale-inst.cc (__add_grouping): Tweak signature.
3718 (__verify_grouping): Don't instantiate, not a template anymore.
3720 * include/bits/locale_facets.h: Rename _M_truename_len ->
3721 _M_truename_size, _M_falsename_len -> _M_falsename_size.
3722 * include/bits/locale_facets.tcc: Likewise.
3723 * config/locale/generic/numeric_members.cc: Likewise.
3724 * config/locale/gnu/numeric_members.cc: Likewise.
3726 2004-01-14 Stefan Olsson <stefan@snon.net>
3728 * include/ext/mt_allocator.h: Fixups.
3729 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
3730 * testsuite/performance/allocator_thread.cc: Same.
3732 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
3734 * testsuite/performance/ifstream_extract_float.cc: Add higher
3736 * testsuite/performance/ofstream_insert_float.cc: Same.
3738 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3740 * src/locale-misc-inst.cc (__convert_from_v(long),
3741 __convert_from_v(unsigned long), __convert_from_v(long long),
3742 __convert_from_v(unsigned long long)): Remove, unused.
3744 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
3746 * testsuite/performance/ifstream_extract_float.cc: New.
3747 * testsuite/performance/ofstream_insert_float.cc: Float generation
3750 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
3751 * 20_util/auto_ptr/1.cc: ...this.
3752 * 20_util/auto_ptr/2.cc: Same.
3753 * 20_util/auto_ptr/3.cc: Same.
3754 * 20_util/auto_ptr/3946.cc: Same.
3755 * 20_util/auto_ptr/4.cc: Same.
3756 * 20_util/auto_ptr/5.cc: Same.
3757 * 20_util/auto_ptr/6.cc: Same.
3758 * 20_util/auto_ptr/7.cc: Same.
3759 * 20_util/auto_ptr/assign_neg.cc
3760 * 20_util/pairs.cc: Break into...
3761 * 20_util/pair/1.cc: ...this.
3762 * 20_util/pair/2.cc: Same.
3763 * 20_util/pair/3.cc: Same.
3764 * 20_util/pair/4.cc: Same.
3766 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3768 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
3769 Set correctly just basefield, the only group that matters.
3771 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3773 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
3774 (_Rope_rep_base): Inherit directly from the rope allocator;
3775 use rebinding instead of _Alloc_traits; pick up data member
3776 from _Rope_rep_alloc_base.
3777 (_Rope_alloc_base): Eliminate.
3778 (_Rope_base): Inherit directly from the rope allocator; use
3779 rebinding instead of _Alloc_traits; pick up data member from
3781 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
3782 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
3784 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3787 * include/bits/basic_string.tcc (compare(size_type, size_type,
3788 const _CharT*, size_type)): Implement correctly the resolution
3789 of DR 5: basically, s is a char array, -not- a C string.
3790 * include/bits/basic_string.h: Tweak some comments.
3791 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
3792 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
3794 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
3796 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
3799 2004-01-12 Paolo Carlini <pcarlini@suse.de>
3801 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
3803 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
3806 2004-01-12 Paolo Carlini <pcarlini@suse.de>
3808 * include/bits/locale_facets.h (struct __numpunct_cache):
3809 Add members _M_truename_len and _M_falsename_len, caching
3810 the lengths of _M_truename and _M_falsename.
3811 (__numpunct_cache<>::_M_cache): Assign the latter.
3812 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
3813 num_put::do_put(bool)): Use the new members, thus avoiding
3814 computing string lengths again and again.
3815 * config/locale/generic/numeric_members.cc
3816 (numpunct<>::_M_initialize_numpunct): Assign the new members.
3817 * config/locale/gnu/numeric_members.cc
3818 (numpunct<>::_M_initialize_numpunct): Likewise.
3820 2004-01-12 Mark Mitchell <mark@codesourcery.com>
3822 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
3823 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
3825 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
3826 and remove Cygwin XFAIL.
3827 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
3828 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
3829 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
3830 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
3832 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3833 * testsuite/27_io/objects/char/7.cc: Likewise.
3834 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
3835 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
3836 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
3838 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
3840 * include/std/std_complex.h (std::complex<>::real): Return a
3841 reference. Add non-const overload.
3842 (std::complex<>::real): Likewise.
3843 (std::real): Likewise.
3844 (std::imag): Likewise.
3845 (std::operator+): Tidy.
3846 (std::operator-): Likewise.
3847 (std::operator*): Likewise.
3848 (std::operator/): Likewise.
3849 (std::operator>>): Likewise.
3851 2004-01-11 Paolo Carlini <pcarlini@suse.de>
3854 * include/bits/fstream.tcc (imbue): Exploit the external
3855 buffer to imbue 'on the fly' a new locale and convert its
3856 remainder with the new codecvt facet.
3857 (underflow): Tweak slightly to deal with this special case.
3858 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
3859 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
3860 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
3861 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
3862 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
3864 2004-01-10 Paolo Carlini <pcarlini@suse.de>
3866 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
3869 2004-01-10 Paolo Carlini <pcarlini@suse.de>
3872 * include/bits/locale_classes.h (class locale): Fix category
3874 * testsuite/22_locale/locale/13630.cc: Add.
3876 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
3878 * include/bits/locale_facets.h: Make a name really dependent. This
3879 will be needed when Core Issue 224 is implemented.
3881 2004-01-09 Paolo Carlini <pcarlini@suse.de>
3883 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
3884 * testsuite/performance/allocator_thread.cc: Likewise.
3886 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
3888 * crossconfig.m4: Add LFS, io bits to linux cross config.
3889 * acconfig.h: Remove obsolete bits, reorder.
3890 * config.h.in: Regenerate.
3894 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
3896 * include/bits/stl_list.h:
3897 * include/bits/list.tc:
3899 Performance enhancements for destructor, push_front(),
3900 push_back(), pop_front(), pop_back(), sort()
3901 Eliminated static_casts where possible.
3902 Moved code out of header files into new src/list.cc
3903 implementation file for library where possible.
3904 Remove inheritance from iterator class and create separate
3905 classes for non-constant and constant iterators.
3906 * include/bits/stl_tree.h (_Rb_tree class):
3908 Only erase contents in destructor.
3909 Eliminate unnecessary initialization in assignment operator.
3910 Optimize for the nominal case by not checking whether
3911 container is empty in clear().
3912 Re-order test in _M_insert() to improve performance.
3913 Move initialization of new node's left & right pointers to
3914 src/tree.cc to where new node's colour is initialized
3915 and to reduce the amount of inline code.
3916 Use _M_leftmost() and _M_end() to improve readability where
3918 Create separate classes for non-constant and constant
3919 iterators to clarify code, avoid extra template parameters and
3920 casting away constness.
3922 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
3924 * src/Makefile.am (sources): Add list.cc, tree.cc.
3925 * src/stl_tree.cc: Move to...
3926 * src/tree.cc: ...here.
3928 * config/linker-map.gnu: Tweaks.
3929 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
3930 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
3932 * bits/stl_vector.h: Column wrap comments.
3934 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
3936 (re-open) PR libstdc++/12658
3937 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
3938 (locale::global): Likewise.
3940 2004-01-07 Paolo Carlini <pcarlini@suse.de>
3942 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
3943 Remove redundant #include.
3944 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
3945 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
3946 re-enable normal testing.
3947 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
3949 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
3950 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
3952 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
3954 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
3956 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
3958 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
3960 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
3962 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
3964 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
3965 More properly, #include <locale>.
3966 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
3967 Remove redundant #include.
3968 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
3969 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
3970 redundant DejaGnu directive.
3971 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
3974 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
3975 Stefan Olsson <stefan@snon.net>
3977 * scripts/check_performance: Use -pthread.
3978 * testsuite/performance/allocator.cc: Tweaks, add list.
3979 * testsuite/performance/allocator_thread.cc: New.
3981 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
3983 * include/bits/locale_facets.h: Document public classes and
3985 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
3988 2004-01-06 Paolo Carlini <pcarlini@suse.de>
3990 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
3991 Remove redundant #includes.
3992 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
3994 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
3996 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
3997 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
3998 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
3999 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
4000 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
4001 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
4002 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
4003 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
4004 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
4005 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
4006 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
4007 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
4008 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
4009 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
4010 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
4012 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
4014 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
4016 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
4018 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
4020 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
4021 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
4022 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
4024 2004-01-04 Paolo Carlini <pcarlini@suse.de>
4026 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
4027 Remove redundant #includes.
4028 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
4030 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
4032 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
4034 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
4036 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
4038 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
4040 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
4042 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
4044 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
4046 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
4048 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
4050 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
4053 2004-01-04 Mark Mitchell <mark@codesourcery.com>
4056 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
4058 * testsuite/27_io/basic_fstream/4.cc: Likewise.
4059 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
4060 * testsuite/27_io/basic_ios/4.cc: Likewise.
4061 * testsuite/27_io/basic_iostream/4.cc: Likewise.
4062 * testsuite/27_io/basic_istream/4.cc: Likewise.
4063 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
4064 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
4065 * testsuite/27_io/basic_ostream/4.cc: Likewise.
4066 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
4067 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
4068 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
4070 2004-01-04 Paolo Carlini <pcarlini@suse.de>
4072 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
4073 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
4074 always use double underscored names.
4075 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
4077 * include/bits/locale_facets.h (struct __numpunct_cache):
4078 Dimension _M_atoms_out and _M_atoms_in one position smaller.
4079 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out