1 2004-07-13 Paolo Carlini <pcarlini@suse.de>
3 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
4 to 12658_thread-1.cc and xfail.
5 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
6 simpler version of 12658_thread-1.cc, still failing on 3_3 and
7 not failing on 3_4/mainline - both on single processor and
8 multiprocessor machines.
10 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
12 * docs/html/abi.html: Remove non-public qualification.
14 * include/bits/concurrence.h: Tweak comments.
16 2004-07-11 Paolo Carlini <pcarlini@suse.de>
18 Add wchar_t counterparts of the basic_streambbuf<char> tests.
19 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
20 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
22 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
23 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
25 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
26 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
27 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
28 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
29 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
31 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
33 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
35 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
37 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
38 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
40 2004-07-11 Phil Edwards <phil@codesourcery.com>
42 * acinclude.m4: Cosmetic shell syntax fixes.
43 * configure.ac: Bring comment inline with reality.
44 * configure.host: Both of the above. Move 'arm' case to right
45 place in host_cpu switch.
46 * aclocal.m4, configure: Regenerate.
48 2004-07-09 Paolo Carlini <pcarlini@suse.de>
50 Add wchar_t counterparts of the basic_stringbuf<char> tests.
51 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
52 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
53 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
54 3599.cc, 9988.cc: Likewise.
55 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
57 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
59 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
61 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
63 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
64 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
65 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
66 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
68 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
70 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
72 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
74 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
75 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
77 2004-07-08 Paolo Carlini <pcarlini@suse.de>
79 * include/bits/gslice.h: Trivial formatting fixes.
80 * include/bits/gslice_array.h: Likewise.
81 * include/bits/indirect_array.h: Likewise.
82 * include/bits/mask_array.h: Likewise.
83 * include/bits/slice_array.h: Likewise.
84 * include/bits/valarray_after.h: Likewise.
85 * include/bits/valarray_array.h: Likewise.
86 * include/bits/valarray_before.h: Likewise.
87 * include/std/std_valarray.h: Likewise.
89 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
92 * include/bits/basic_string.h (basic_string::operator=): Revert.
94 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
96 * configure.ac (libtool_VERSION): To 6:2:0.
97 * configure: Regenerated.
99 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
101 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
104 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
106 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
108 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
111 2004-07-07 Paolo Carlini <pcarlini@suse.de>
114 * include/bits/sstream.tcc (overflow): When reallocating _M_string
115 use an exponential grow policy.
116 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
117 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
119 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
122 * crossconfig.m4: Add in bits for djgpp.
123 * configure: Regenerate.
125 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
127 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
128 instantiation of set and multiset (functor param given as int).
130 2004-07-04 Paolo Carlini <pcarlini@suse.de>
132 * include/bits/basic_string.h: Trivial formatting fixes and/or
133 const-ification of some variables.
134 * include/bits/deque.tcc: Likewise.
135 * include/bits/stl_algobase.h: Likewise.
136 * include/bits/stl_bvector.h: Likewise.
137 * include/bits/stl_construct.h: Likewise.
138 * include/bits/stl_deque.h: Likewise.
139 * include/bits/stl_pair.h: Likewise.
140 * include/bits/stl_vector.h: Likewise.
141 * include/bits/vector.tcc: Likewise.
143 2004-07-04 Paolo Carlini <pcarlini@suse.de>
145 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
146 systems with no COMDAT or weak support.
147 * testsuite/25_algorithms/copy/2.cc: Likewise.
148 * testsuite/25_algorithms/copy/3.cc: Likewise.
149 * testsuite/25_algorithms/copy/4.cc: Likewise.
151 2004-07-03 Paul Brook <paul@codesourcery.com>
153 * configure.ac: Set ABI_TWEAKS_SRCDIR.
154 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
155 setting atomicity_dir. Override type_cpu for arm based targets.
156 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
157 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
158 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
159 * libsupc++/vec.cc: Ditto.
160 * config/cpu/arm/cxxabi_tweaks.h: New file.
161 * config/cpu/generic/cxxabi_tweaks.h: New file.
162 * */Makefile.in: Regenerate.
163 * configure: Regenerate.
165 2004-07-02 Paolo Carlini <pcarlini@suse.de>
167 * include/bits/type_traits.h (_Is_normal_iterator): Move...
168 * include/bits/cpp_type_traits.h: ... here, renamed to
169 __is_normal_iterator and consistent with the other traits.
170 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
171 to the struct __copy_normal and three specializations.
172 (__copy_backward_output_normal_iterator,
173 __copy_backward_input_normal_iterator): Likewise, convert to
174 the struct __copy_backward_normal and three specializations.
175 (copy, copy_backward): Use the latter.
176 (__copy_aux, __copy_backward_aux): Very minor tweaks.
178 2004-07-01 Paolo Carlini <pcarlini@suse.de>
180 * include/bits/stl_algobase.h (__copy_trivial): Remove.
181 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
182 __is_trivially_copyable, __are_same and __copy::copy.
183 (__copy): Rewrite as a class template and two specializations.
184 (__copy_ni2): Simplify, just call __copy_aux.
186 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
188 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
189 for destination value type != source value type.
191 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
192 Per Bothner <per@bothner.com>
193 Mohan Embar <gnustuff@thisiscool.com>
196 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
197 (__glibcxx_mutex): Encapsulate mutex init function into type for
198 threaded configurations without __GTHREAD_MUTEX_INIT.
199 (lock::lock): Make device member a reference.
201 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
203 * src/allocator.cc: Same.
205 2004-06-30 Brad Spencer <spencer@infointeractive.com>
207 * include/ext/mt_allocator.h: Handle allocations at static
208 initialization that happen before _S_options is (automatically)
209 constructed; set _S_init even if _M_force_new is true.
211 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
213 * config/linker-map.gnu: Revert new exports.
215 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
216 Stuart Anderson <anderson@netsweng.com>
218 * config/linker-map.gnu: Add destructor exports for abstract base
219 classes to conform to LSB.
221 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
222 Paolo Carlini <pcarlini@suse.de>
224 * include/bits/cpp_type_traits.h: Add __is_pointer and
225 __is_trivially_copyable.
226 * include/bits/stl_algobase.h (fill, fill_n): Slightly
227 tweak to use the latter.
228 (__copy_backward_dispatch): Remove.
229 (__copy_backward_aux): Rewrite to use __is_pointer and
230 __is_trivially_copyable and __copy_backward::copy_b.
231 (__copy_backward): Rewrite as a class template and two
234 2004-06-30 Paolo Carlini <pcarlini@suse.de>
236 * testsuite/25_algorithms/copy.cc: Move to...
237 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
238 * testsuite/25_algorithms/copy/2.cc: New.
239 * testsuite/25_algorithms/copy/3.cc: New.
240 * testsuite/25_algorithms/copy/4.cc: New.
242 2004-06-29 Paul Brook <paul@codesourcery.com>
244 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
245 element size in the cookie.
247 2004-06-28 Paolo Carlini <pcarlini@suse.de>
249 * include/bits/cpp_type_traits.h: Move the additions to
250 namespace __gnu_internal outside of namespace std; trivial
253 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
255 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
256 Revert -Weffc++ changes that defined copy ctory and or assignment
258 * libsupc++/tinfo.cc (__upcast_result): Same.
260 2004-06-28 Paolo Carlini <pcarlini@suse.de>
262 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
263 the algorithm used to name the categories.
265 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
267 * include/Makefile.am: Give a .gch extension to
268 the PCH files, not only to the directory.
269 * include/Makefile.in: Regenerate.
271 2004-06-28 Paolo Carlini <pcarlini@suse.de>
273 * config/locale/gnu/monetary_members.cc
274 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
275 assignments of _M_decimal_point and _M_thousands_sep.
277 2004-06-27 Paolo Carlini <pcarlini@suse.de>
279 * docs/html/17_intro/contribute.html: Update some links.
280 * docs/html/17_intro/porting-howto.html: Likewise.
281 * docs/html/17_intro/porting-howto.xml: Likewise.
282 * docs/html/18_support/howto.html: Likewise.
283 * docs/html/21_strings/howto.html: Likewise.
284 * docs/html/27_io/howto.html: Likewise.
285 * docs/html/configopts.html: Likewise.
286 * docs/html/ext/howto.html: Likewise.
287 * docs/html/faq/index.html: Likewise.
288 * docs/html/install.html: Don't mention 2.x compilers.
290 2004-06-27 Paolo Carlini <pcarlini@suse.de>
292 * include/ext/rope: Trivial formatting fixes.
293 * include/ext/ropeimpl.h: Likewise.
295 2004-06-26 Paolo Carlini <pcarlini@suse.de>
298 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
299 availability of strto(u)ll, not used anymore in the iostreams.
300 * configure: Regenerate.
302 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
305 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
307 * configure: Regenerate.
309 2004-06-25 Paul Brook <paul@codesourcery.com>
311 * libsupc++/cxxabi.h: Define __ARM_EABI__
313 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
315 2004-06-25 Paul Brook <paul@codesourcery.com>
317 * include/bits/concurrence.h: Still create mutex object when
320 2004-06-25 Paolo Carlini <pcarlini@suse.de>
322 * include/bits/stl_algobase.h (fill, fill_n): Revert last
323 change: actually we need to copy construct an object of type
324 _Tp, not of type iterator_traits<>::value_type, therefore the
327 2004-06-25 Paolo Carlini <pcarlini@suse.de>
329 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
330 dispatch: use iterator_traits<>::value_type, not _Tp.
332 2004-06-25 Paolo Carlini <pcarlini@suse.de>
334 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
335 * testsuite/25_algorithms/fill/2.cc: Likewise.
337 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
338 Paolo Carlini <pcarlini@suse.de>
340 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
341 for fill and fill_n, respectively: when copying is cheap, use a
342 temporary to avoid a memory read in each iteration.
344 2004-06-25 Paolo Carlini <pcarlini@suse.de>
346 * testsuite/25_algorithms/fill/1.cc: New.
347 * testsuite/25_algorithms/fill/2.cc: Likewise.
349 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
351 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
352 Remove copy constructor and assignment operator.
354 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
356 * include/bits/concurrence.h (__gnu_cxx::lock): New.
357 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
358 (__pool_base::_M_get_mutex): New.
359 * include/bits/allocator.h: Tweak.
360 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
361 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
362 * include/bits/stl_threads.h: Remove.
363 * include/Makefile.am: Also here.
364 * include/Makefile.in: Regenerate.
366 * src/locale_init.cc: Use __gnu_cxx::lock.
368 * src/allocator.cc: Move all instantiations...
369 * src/allocator-inst.cc: ...here.
371 2004-06-23 Andrew Pinski <apinski@apple.com>
373 * linkage.m4: Remove check for libmx.
374 * configure: Regenerate.
376 2004-06-23 Paolo Carlini <pcarlini@suse.de>
379 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
380 Don't require the _DefaultConstructibleConcept.
381 (struct _ForwardIteratorConcept): Require it here.
383 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
385 * include/bits/istream.tcc (getline): Make sure arguments passed
386 to min/max have the same type.
387 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
388 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
390 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
392 * docs/html/abi.html: Update links.
394 2004-06-22 Paolo Carlini <pcarlini@suse.de>
396 * testsuite/26_numerics/complex_inserters_extractors.cc,
397 complex_value.cc, buggy_complex.cc: Move to...
398 * testsuite/26_numerics/complex/: ... here.
399 * testsuite/26_numerics/c99_classification_macros_c++.cc,
400 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
401 fabs_inline.cc: Move to...
402 * testsuite/26_numerics/cmath/: ... here.
403 * testsuite/26_numerics/binary_closure.cc, slice.cc,
404 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
405 valarray_name_lookup.cc, valarray_operators.cc,
406 valarray_subset_assignment.cc: Move to...
407 * testsuite/26_numerics/valarray/: ... here (new dir).
408 * testsuite/26_numerics/sum_diff.cc: Move to...
409 * testsuite/26_numerics/numeric/: ... here (new dir).
411 2004-06-22 Paolo Carlini <pcarlini@suse.de>
413 * include/std/std_istream.h (ignore(streamsize __n = 1,
414 int_type __delim = traits_type::eof())): Split into...
415 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
416 int_type __delim)): The first two can be much more simpler
417 and efficient than the fully general case; also, the last
418 two can take advantage of the same mechanism already used
420 * include/bits/istream.tcc (ignore(streamsize __n = 1,
421 int_type __delim = traits_type::eof()): Remove.
422 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
423 int_type __delim)): New.
425 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
427 * config/linker-map.gnu: Use wildcards for
428 __basic_file::sys_open(FILE*, _Ios_Openmode).
430 2004-06-20 Paolo Carlini <pcarlini@suse.de>
432 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
434 2004-06-18 Paolo Carlini <pcarlini@suse.de>
436 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
437 the alignment requested.
438 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
439 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
440 (__mt_alloc<>::deallocate): Likewise.
442 2004-06-18 Paolo Carlini <pcarlini@suse.de>
445 * include/debug/safe_base.h
446 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
447 _Safe_sequence_base::operator=): Provide definitions.
448 * testsuite/23_containers/bitset/cons/16020.cc: New.
450 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
452 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
453 (__pool_base): Remove unused template parameter. Add
454 protected. Move lock data into __pool_base::_Lock. Remove static
456 (__pool_base::_M_get_free_list): New.
457 (__pool_alloc): Move _S_force new here.
458 * src/allocator.cc: Move out of line __pool_base definitions here.
459 * config/linker-map.gnu: Export bits from __pool_base.
461 2004-06-18 Paolo Carlini <pcarlini@suse.de>
463 * config/locale/gnu/numeric_members.cc
464 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
465 assignments of _M_decimal_point and _M_thousands_sep.
466 * config/locale/gnu/time_members.cc
467 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
468 and reformat assignments of date and time fields.
470 2004-06-16 Paolo Carlini <pcarlini@suse.de>
472 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
473 to use _Data_allocate.
474 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
475 (rope<>::_S_substring): Likewise.
476 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
477 (rope<>::c_str()): Likewise.
478 (rope<>::replace_with_c_str()): Likewise.
480 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
481 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
483 (_Rope_iterator_base<>::_S_setcache): Likewise.
484 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
485 (rope<>::_S_substring): Likewise.
486 (rope<>::_S_dump): Likewise.
487 (rope<>::_S_fetch_ptr): Likewise.
488 (rope<>::_S_compare): Likewise.
489 (rope<>::replace_with_c_str()): Likewise.
491 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
492 * testsuite/ext/rope/2.cc: New.
494 2004-06-16 Paolo Carlini <pcarlini@suse.de>
495 Matt Austern <austern@apple.com>
497 * testsuite/ext/rope/3.cc: New.
499 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
501 * acinclude.m4: Remove useless multilib configury.
502 * Makefile.am: Remove useless multilib rules.
503 * aclocal.m4: Regenerate.
504 * Makefile.in: Regenerate.
505 * configure: Regenerate.
507 2004-06-15 Paolo Carlini <pcarlini@suse.de>
509 * include/ext/hashtable.h: Trivial formatting fixes.
510 * include/ext/rb_tree: Likewise.
512 2004-06-14 Paolo Carlini <pcarlini@suse.de>
514 * include/ext/hash_map: Trivial formatting fixes.
515 * include/ext/hash_set: Likewise.
516 * include/ext/memory: Likewise.
517 * include/ext/numeric: Likewise.
519 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
521 * Makefile.in: Regenerate with automake 1.8.5.
523 * include/Makefile.in: Same.
524 * libmath/Makefile.in: Same.
525 * libsupc++/Makefile.in: Same.
526 * po/Makefile.in: Same.
527 * src/Makefile.in: Same.
528 * testsuite/Makefile.in: Same.
530 2004-06-14 Paolo Carlini <pcarlini@suse.de>
532 * include/ext/slist: Trivial formatting fixes.
534 2004-06-14 Paolo Carlini <pcarlini@suse.de>
536 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
537 Don't use the 'magic number' 10 in the computation of __minlen;
538 never access __name past __minlen; in the loop over __i3, don't
539 decrease __nmatches and increase __i3 at once, only either of
542 2004-06-13 Paolo Carlini <pcarlini@suse.de>
544 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
545 time_get<>::do_get_date): Use only once _M_extract_via_format,
546 instead of going through "%X"/"%x" and calling it two times
549 2004-06-12 Paolo Carlini <pcarlini@suse.de>
551 * include/ext/algorithm: Trivial formatting fixes.
552 * include/ext/functional: Likewise.
553 * include/ext/hash_fun.h: Likewise.
554 * include/ext/iterator: Likewise.
556 2004-06-12 Paolo Carlini <pcarlini@suse.de>
558 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
559 size_type)): Reimplement using std::search.
560 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
562 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
564 * testsuite/performance/21_strings/string_find.cc: New.
566 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
568 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
570 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
572 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
573 this function return a value.
575 2004-06-09 Paolo Carlini <pcarlini@suse.de>
578 * include/bits/stl_deque.h: Consistently with stl_set.h, define
579 pointer as allocator's pointer, likewise for reference,
580 const_pointer, and const_reference.
581 * include/bits/stl_list.h: Likewise.
582 * include/bits/stl_map.h: Likewise.
583 * include/bits/stl_multimap.h: Likewise.
584 * include/bits/stl_vector.h: Likewise.
586 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
588 * crossconfig.m4: Remove signbit, signbitf, signbitl.
589 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
590 builtin math functions instead of AC_DEFINE_UNQUOTED.
591 * configure: Regenerate.
593 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
595 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
596 * docs/doxygen/mainpage.html: Remove links.
598 2004-06-08 Jason Merrill <jason@redhat.com>
600 * config/linker-map.gnu: Use wildcards for
601 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
603 2004-06-08 Paolo Carlini <pcarlini@suse.de>
605 * include/ext/pool_allocator.h: Convert to a global free-list,
606 as per the original SGI/HP design: move the implementation
607 details to struct __pool_base, from which __pool_alloc derives.
608 * src/allocator.cc: Instantiate __pool_base.
610 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
611 Paolo Carlini <pcarlini@suse.de>
613 * testsuite/testsuite_performance.h
614 (resource_counter::allocated_memory): Make it return the right
615 number of bytes requested by the allocators/application. This is
616 the sbrk+mmaped memory.
618 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
620 * include/std/std_complex.h (log): Tidy.
622 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
624 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
625 * testsuite/testsuite_abi.cc: Same.
626 * configure.ac (libtool_VERSION): Bump to 6:1:0.
627 * configure: Regenerate.
628 * aclocal.m4: Regenerate.
630 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
632 * include/std/std_complex.h (complex<_Tp>): Properly indent
634 (complex<>::__rep): New.
635 (__complex_abs): New. Dispatch to built-ins.
637 (__complex_arg): New. Dispatch to built-ins.
639 (__complex_cos): New. Dispatch to built-ins.
641 (__complex_cosh): New. Dispatch to built-ins.
643 (__complex_exp): New. Dispatch to built-ins.
645 (__complex_log): New. Dispatch to built-ins.
647 (__complex_sin): New. Dispatch to built-ins.
649 (__complex_sinh): New. Dispatch to built-ins.
651 (__complex_sqrt): New. Dispatch to built-ins.
653 (__complex_tan): New. Dispatch to built-ins.
655 (__complex_tanh): New. Dispatch to built-ins.
657 (__complex_pow): New. Dispatch to built-ins.
660 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
661 Benjamin Kosnik <bkoz@redhat.com>
664 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
665 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
666 * config/io/basic_file_stdio.cc (__basic_file::file): New.
667 * config/io/basic_file_stdio.h: Define.
669 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
672 * docs/html/documentation.html: Update doxygen links for 3.4.0.
674 2004-05-27 Jan Beulich <jbeulich@novell.com>
676 * scripts/create_testsuite_files: Tweak.
678 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
681 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
682 bits to do the same thing.
684 2004-05-24 Paolo Carlini <pcarlini@suse.de>
686 * include/bits/istream.tcc (ignore): Correctly deal with
687 n == numeric_limits<streamsize>::max().
688 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
690 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
691 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
692 __n == numeric_limits<>::min().
694 * include/bits/istream.tcc: Minor tweaks.
696 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
698 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
700 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
702 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
704 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
706 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
710 * include/bits/basic_string.h (basic_string::operator=): Return
711 pointer to this instead of result of assign. Although redundant,
712 this doesn't impact resultant codegen.
714 * include/bits/locale_facets.h (__numpunct_cache): Declare
715 assignment opxserator and copy constructor private.
716 (__timepunct_cache): Same.
717 (__moneypunct_cache): Same.
718 (collate): Use member initialization list for _M_c_locale_collate.
719 * config/locale/gnu/messages_members.h: Same.
720 * config/locale/gnu/time_members.h (__timepunct): Same.
721 * src/codecvt.cc: Use member initialization list to initialize
723 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
724 * config/os/gnu-linux/ctype_noninline.h: Same.
725 * src/locale.cc (_Impl): Same.
726 * src/locale_init.cc: Same.
727 * src/localename.cc: Same.
729 * include/bits/basic_ios.h (basic_ios): Complete member
731 * include/bits/istream.tcc (basic_istream::sentry): Same.
732 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
733 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
734 _M_pback to member initialization list.
735 * include/std/std_streambuf.h: Same.
736 * include/std/std_sstream.h: Same, for _M_mode.
737 * src/ios.cc (ios_base): Same.
739 * include/ext/rope: Make derived classes match exception
741 specifications. Add copy constructors and assignment operators.
743 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
744 constructor and assignment operator protected.
745 (_Safe_iterator_base): Same.
746 * include/debug/formatter.h (_Error_formatter): Define copy
747 constructor and assignment operator.
749 * include/backward/strstream: Declare assignment operator and copy
752 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
754 * testsuite/testsuite_hooks.h (func_callback): Declare copy
755 constructor and assignment operator private.
756 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
757 exception specifications of base class.
758 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
759 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
760 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
762 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
764 * libsupc++/cxxabi.h: Remove duplicated and useless public and
765 private keywords in class declarations. Format. Use
766 stddef.h. Expose declarations to "C" compilation.
767 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
769 (__dyncast_result): Same.
770 * libsupc++/vec.cc (uncatch_exception): Same, use member
773 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
775 * testsuite/abi_check.cc: Add unistd.h.
777 2004-05-22 Paolo Carlini <pcarlini@suse.de>
780 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
781 __int_to_char(unsigned long long)): Showpos is not relevant
783 * testsuite/22_locale/num_put/put/char/15565.cc: New.
784 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
786 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
788 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
789 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
790 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
791 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
792 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
793 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
795 2004-05-21 Matthias Klose <doko@debian.org>
797 * docs/doxygen/run_doxygen: Bump required version.
799 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
801 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
802 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
804 2004-05-21 Paolo Carlini <pcarlini@suse.de>
806 * include/bits/istream.tcc (ignore): Remove redundant line.
807 (readsome): Tidy, closely following 27.6.1.3, p30.
809 2004-05-20 Paolo Carlini <pcarlini@suse.de>
811 * include/bits/istream.tcc (operator>>(basic_istream<>&,
812 basic_string<>&)): Use a temporary buffer, thus avoiding
813 reallocation for common case.
814 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
816 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
819 * include/bits/istream.tcc: Const-ification of a few variables.
821 * include/bits/ostream.tcc: Trivial formatting fixes and
822 const-ification of some variables.
824 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
828 * docs/doxygen/Intro.3: Remove Allocators.3.
829 Add new extension headers, extension namespace list.
830 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
831 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
832 __gnu_debug::. Remove __policy_ renames.
833 * docs/doxygen/guide.html: Add dot note.
834 * docs/doxygen/stdheader.cc: Edit, add files.
835 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
837 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
839 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
841 2004-05-18 Jan Beulich <jbeulich@novell.com>
844 * scripts/create_testsuite_files: Also find source files through
847 2004-05-18 Jan Beulich <jbeulich@novell.com>
850 * testsuite/lib/libstdc++.exp: Make test files writable.
852 2004-05-18 Paolo Carlini <pcarlini@suse.de>
854 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
857 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
859 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
860 allocation loop which removes blocks from the global free list
861 from O(N) to O(1) when the required blocks are <= the number
864 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
866 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
868 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
870 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
871 * testsuite/23_containers/deque/14340.cc: New.
872 * testsuite/23_containers/list/14340.cc: New.
873 * testsuite/23_containers/map/14340.cc: New.
874 * testsuite/23_containers/multimap/14340.cc: New.
875 * testsuite/23_containers/multiset/14340.cc: New.
876 * testsuite/23_containers/set/14340.cc: New.
877 * testsuite/23_containers/vector/14340.cc: New.
879 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
882 * include/debug/safe_iterator.h (_Safe_iterator converting
883 constructor): Only allow declaration to instantiate when the
884 incoming _Safe_iterator has exactly the right iterator type.
886 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
888 * include/bits/boost_concept_check.h: Fix old attribute syntax.
889 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
890 to pass concept-checks.
891 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
892 * testsuite/23_containers/set/modifiers/swap.cc: Same.
893 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
895 2004-05-16 Paolo Carlini <pcarlini@suse.de>
897 * include/std/std_bitset.h: Minor formatting fixes.
899 2004-05-16 Paolo Carlini <pcarlini@suse.de>
901 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
902 Consistently update __bin._M_free[0].
903 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
904 __bin._M_free[0] to simplify the while loop (i.e., the number
905 of iterations becomes known at the outset).
907 2004-05-15 Paolo Carlini <pcarlini@suse.de>
909 * include/std/std_bitset.h: Trivial formatting fixes.
911 2004-05-14 Paolo Carlini <pcarlini@suse.de>
912 Ivan Godard <igodard@pacbell.net>
915 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
916 * testsuite/23_containers/bitset/ext/15361.cc: New.
918 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
921 * crossconfig.m4: Add C99 math bits for linux crosses.
922 * configure: Regenerate.
924 2004-05-13 Simon Marshall <simon.marshall@misys.com>
925 Benjamin Kosnik <bkoz@redhat.com>
928 * include/bits/locale_facets.h: Fix for -fno-for-scope.
929 * include/debug/safe_sequence.h: Same.
930 * include/debug/safe_iterator.tcc: Same.
931 * src/debug.cc: Same.
932 * src/locale.cc: Same.
933 * src/locale_init.cc: Same.
934 * src/localename.cc: Same.
935 * config/locale/gnu/ctype_members.cc: Same.
936 * config/locale/gnu/numeric_members.cc: Same.
937 * testsuite/testsuite_abi.cc: Same.
938 * testsuite/testsuite_hooks.cc: Same.
940 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
942 * docs/html/abi.html: Document effect of -fabi-version on value
943 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
946 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
949 * docs/html/faq/index.html: Update docs for libsupc++ usage.
951 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
954 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
956 (_GLIBCXX_mutex_address): Same.
957 (_GLIBCXX_once): Same.
958 (_GLIBCXX_mutex_init): Same.
959 (_GLIBCXX_mutex_address_init): Same.
961 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
963 * docs/html/abi.html: New.
964 * docs/html/abi.txt: Remove.
965 * docs/html/documentation.html: Add link.
966 * testsuite/Makefile.am: Add files.
967 * testsuite/Makefile.in: Regenerated.
968 * testsuite/abi_check.cc: Move and modify code into...
969 * testsuite/testsuite_abi.cc: Add.
970 * testsuite/testsuite_abi.h: Add.
972 * docs/html/17_intro/TODO: Update.
973 * include/bits/stl_pair.h: Format.
975 2004-05-06 Matthias Klose <doko@debian.org>
977 * include/backward/iterator.h: Add GPL copyright info,
978 with exception clause.
979 * include/bits/boost_concept_check.h: Likewise.
981 * libsupc++/tinfo.h: Likewise.
982 * po/string_literals.cc: Likewise.
984 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
986 * acinclude.m4: Replace -W with more speaking -Wextra.
987 * configure: Rebuilt.
989 2004-05-03 Paolo Carlini <pcarlini@suse.de>
991 Optimize locale::_M_impl->_M_names for the most common cases:
992 !_M_names[0] means unnamed; !_M_names[1] means all the categories
993 the same name (_M_names[0] && _M_names[1] means that the full set
994 of _M_names must be processed, the general case).
995 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
996 Tweak, saving work when !_M_names[1].
997 (locale::locale(const locale&, _Facet*): Simplify: now just setting
998 _M_names[0] = 0 means unnamed.
999 * src/locale.cc (locale::operator==): Deal first with the common,
1000 easy cases, otherwise fall back to locale::name().
1001 (locale::name()): Tweak, if !_M_names[0] just return "*".
1002 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
1003 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
1004 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
1005 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
1006 Simplify when !std::strchr, just updating _M_names[0]; clean up.
1007 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
1008 for the general case (full set of names), then do the usual work;
1011 * src/locale.cc (locale::name()): Reserve space in __ret.
1012 * src/locale_init.cc (locale::global(const locale&)): Save
1013 the name in a temporary.
1014 * src/localename.cc (locale::locale(const char*)): Reserve space
1017 2004-04-29 Paolo Carlini <pcarlini@suse.de>
1019 * src/locale.cc (locale::operator==): Always avoid constructing
1020 locale::name(), directly compare pairs of _M_names.
1022 2004-04-26 Paolo Carlini <pcarlini@suse.de>
1024 * include/bits/istream.tcc: Fix comment.
1026 2004-04-26 Paolo Carlini <pcarlini@suse.de>
1028 * include/bits/stl_vector.h: Trivial formatting fixes.
1029 * include/bits/vector.tcc: Likewise.
1031 2004-04-25 Paolo Carlini <pcarlini@suse.de>
1033 PR libstdc++/15002 (continued again)
1034 * include/bits/istream.tcc (getline(basic_istream<>&,
1035 basic_string<>&, _CharT)): Use a temporary buffer, thus
1036 avoiding reallocation for common case.
1038 * include/bits/basic_string.tcc (_S_construct(_InIterator,
1039 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
1040 of temporary buffer to a power of two.
1042 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
1044 2004-04-25 Paolo Carlini <pcarlini@suse.de>
1046 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
1048 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
1050 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
1052 2004-04-24 Paolo Carlini <pcarlini@suse.de>
1053 Petur Runolfsson <peturr02@ru.is>
1055 PR libstdc++/15002 (continued)
1056 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
1057 streamsize, char_type)): Use traits::find/copy in a loop to speed
1058 up greatly the function in the common case (I/O buffer size >> 1).
1060 2004-04-24 Paolo Carlini <pcarlini@suse.de>
1062 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
1064 * include/bits/istream.tcc (getline(basic_istream<>&,
1065 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
1066 of sbumpc(), consistently with the other functions, thus also
1067 dealing correctly with the case of exceeded string::max_size().
1069 2004-04-24 Matthias Klose <doko@debian.org>
1071 Jonathan Wakely <cow@compsoc.man.ac.uk>
1072 * docs/html/configopts.html: Fix reference to allocator config option.
1074 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
1076 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
1077 * configure: Regenerate.
1079 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
1081 PR libstdc++/15047, libstdc++/11610
1082 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
1083 (libstdc++_init): Don't pass outdir to v3-copy-files.
1085 2004-04-21 Paolo Carlini <pcarlini@suse.de>
1087 * include/bits/deque.tcc: Trivial formatting fixes.
1088 * include/bits/stl_deque.h: Likewise.
1089 * include/bits/stl_list.h: Likewise.
1090 * include/bits/stl_tree.h: Likewise.
1092 2004-04-21 Paolo Carlini <pcarlini@suse.de>
1093 Andrew Pinski <pinskia@physics.uc.edu>
1095 * include/bits/basic_string.tcc (_M_mutate): Don't compute
1096 __src unnecessarily.
1098 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
1100 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
1101 Clarify assertion, set test variable to false before assert.
1102 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
1103 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
1104 * testsuite/27_io/ios_base/storage/2.cc: Same.
1106 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
1108 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
1109 * testsuite/27_io/fpos/14320-3.cc: Same.
1111 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
1112 * testsuite/27_io/fpos/1.cc: Same.
1113 * testsuite/27_io/basic_stringstream/2.cc: Same.
1114 * testsuite/27_io/basic_stringbuf/4.cc: Same.
1115 * testsuite/27_io/basic_stringbuf/1.cc: Same.
1116 * testsuite/27_io/basic_stringbuf/2.cc: Same.
1117 * testsuite/27_io/basic_streambuf/2.cc: Same.
1118 * testsuite/27_io/basic_ostringstream/2.cc: Same.
1119 * testsuite/27_io/basic_ostream/2.cc: Same.
1120 * testsuite/27_io/basic_ofstream/2.cc: Same.
1121 * testsuite/27_io/basic_istringstream/2.cc: Same.
1122 * testsuite/27_io/basic_istream/2.cc: Same.
1123 * testsuite/27_io/basic_iostream/2.cc: Same.
1124 * testsuite/27_io/basic_ios/2.cc: Same.
1125 * testsuite/27_io/basic_ifstream/2.cc: Same.
1126 * testsuite/27_io/basic_fstream/2.cc: Same.
1127 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
1129 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
1130 unsigned against zero.
1131 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
1132 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
1134 * testsuite/18_support/new_delete_placement.cc: Initialize
1135 variables before first use.
1136 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
1137 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
1138 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
1139 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
1141 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
1142 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
1144 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
1145 * testsuite/27_io/types/2.cc: Same.
1147 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
1149 * testsuite/27_io/fpos/14775.cc: Same.
1151 2004-04-19 Paolo Carlini <pcarlini@suse.de>
1153 PR libstdc++/15002 (partial)
1154 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
1155 Special case __n2 == 1, not calling traits_type::assign/copy.
1157 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
1159 * include/bits/stl_bvector.h: Use _M_impl._M_start.
1161 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
1163 * include/bits/c++config (_GLIBCXX_STD): New.
1164 * src/list.cc: Use it.
1165 * include/std/std_bitset.h: Same.
1166 * include/bits/vector.tcc: Same.
1167 * include/bits/stl_set.h: Same.
1168 * include/bits/stl_multiset.h: Same.
1169 * include/bits/stl_multimap.h: Same.
1170 * include/bits/stl_map.h: Same.
1171 * include/bits/stl_list.h: Same.
1172 * include/bits/stl_vector.h: Same.
1173 * include/bits/stl_bvector.h: Same.
1174 * include/bits/stl_deque.h: Same.
1175 * include/bits/deque.tcc: Same.
1176 * include/bits/list.tcc: Same.
1177 * include/debug/vector: Same.
1178 * include/debug/set.h: Same.
1179 * include/debug/multiset.h: Same.
1180 * include/debug/multimap.h: Same.
1181 * include/debug/map.h: Same.
1182 * include/debug/list: Same.
1183 * include/debug/deque: Same.
1184 * include/debug/bitset: Same.
1185 * include/debug/formatter.h (__gnu_debug): Remove using directive.
1186 Add using declaration for std::type_info.
1187 * include/debug/safe_iterator.h: Add using declaration for
1188 std::iterator_traits and std::pair.
1189 * src/debug_list.cc: New.
1190 * src/Makefile.am: Add debug_list.cc.
1191 * src/Makefile.in: Regenerate.
1192 * config/linker-map.gnu: Add _List_node_base exports for std and
1195 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
1196 idiom that other containers use.
1197 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
1199 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1202 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
1204 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
1205 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
1207 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1209 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
1211 * config.h.in: Regenerate.
1213 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1215 * config/locale/generic/monetary_members.cc
1216 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
1217 btowc unnecessarily, just cast to wchar_t (the concerned chars
1218 all belong to the basic character set).
1219 * config/locale/generic/numeric_members.cc
1220 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1221 * config/locale/gnu/monetary_members.cc
1222 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
1223 * config/locale/gnu/numeric_members.cc
1224 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1226 2004-04-15 Paolo Carlini <pcarlini@suse.de>
1228 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
1229 avoid constructing unnecessarily this->name().
1231 2004-04-14 Zack Weinberg <zack@codesourcery.com>
1233 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
1234 Change definition of CXX to use $(shell) instead of backticks.
1235 * testsuite/Makefile.in: Regenerate.
1237 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
1239 * testsuite/performance/20_util/allocator/list_sort_search.cc:
1240 Minor formatting fixes.
1241 * testsuite/performance/20_util/allocator/map_mt_find.cc:
1244 2004-04-12 Paolo Carlini <pcarlini@suse.de>
1246 * config/locale/gnu/numeric_members.cc
1247 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
1248 in __uselocale, since btowc is called for chars belonging to
1249 the basic character set.
1251 2004-04-09 Paolo Carlini <pcarlini@suse.de>
1253 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
1254 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
1255 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
1256 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
1257 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
1258 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
1259 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
1260 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
1261 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
1262 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
1263 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
1264 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
1265 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
1266 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
1267 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
1268 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
1269 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
1271 2004-04-07 Paolo Carlini <pcarlini@suse.de>
1273 * config/locale/generic/time_members.cc
1274 (__timepunct<char>::_M_initialize_timepunct,
1275 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
1276 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
1277 * config/locale/gnu/time_members.cc
1278 (__timepunct<char>::_M_initialize_timepunct,
1279 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
1280 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
1281 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
1283 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
1284 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
1285 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
1286 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
1287 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
1288 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
1289 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
1290 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
1291 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
1292 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
1293 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
1294 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
1295 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
1296 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
1297 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
1298 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
1299 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
1300 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
1301 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
1302 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
1303 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
1304 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
1305 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
1306 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
1307 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
1308 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
1309 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
1310 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
1311 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
1312 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
1313 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
1314 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
1315 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
1316 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
1317 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
1318 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
1320 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
1322 2004-04-07 Paolo Carlini <pcarlini@suse.de>
1324 * config/locale/gnu/monetary_members.cc
1325 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
1326 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
1327 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
1328 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
1329 * config/locale/gnu/numeric_members.cc
1330 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
1331 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
1333 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
1335 Fixups for EDG front end.
1336 * include/ext/rope: Instead of non-existent function
1337 _Data_allocate, use allocator's allocate. Use this.
1338 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
1339 enumerations from _Rope_RopeRep here.
1340 * include/ext/ropeimpl.h: Same.
1341 * src/ext-inst.cc (_S_min_len): Fix up definition.
1343 * config/locale/gnu/ctype_members.cc: Qualify base class members
1345 * config/locale/generic/ctype_members.cc: Same.
1346 * config/locale/gnu/messages_members.h: Same.
1347 * config/locale/generic/messages_members.h: Same.
1348 * src/ctype.cc: Same.
1349 * include/bits/codecvt.h: Same.
1351 * include/bits/boost_concept_check.h: Declare.
1352 (__error_type_must_be_an_unsigned_integer_type): Remove this.
1353 (__error_type_must_be_an_integer_type): Remove this.
1354 (__error_type_must_be_a_signed_integer_type): Remove this.
1356 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
1358 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
1359 specification to definition.
1360 (__cxa_allocate_exception): Same.
1361 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
1362 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
1363 (__cxa_get_globals): Same.
1365 * libsupc++/del_op.cc: Add comment about freestanding.
1367 2004-04-05 Paolo Carlini <pcarlini@suse.de>
1369 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1370 The critical section is actually very small, only two assignments.
1372 2004-04-04 Paolo Carlini <pcarlini@suse.de>
1373 Petur Runolfsson <peturr02@ru.is>
1375 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
1376 adapted from libstdc++/11378.
1378 2004-04-03 Paolo Carlini <pcarlini@suse.de>
1380 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
1381 some duplicated code.
1382 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
1383 in the single threaded case.
1384 * testsuite/performance/20_util/allocator/list_sort_search.cc:
1385 Reorder and renumber the tests consistently with the other testfiles.
1386 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1387 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1388 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1390 2004-04-02 Paolo Carlini <pcarlini@suse.de>
1392 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1393 Rearrange arithmetic to avoid computing two divisions at
1396 2004-04-01 Paolo Carlini <pcarlini@suse.de>
1398 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
1399 Streamline the second half, wrapping it in a single
1400 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
1401 conditionals inside loops.
1403 2004-04-01 Paolo Carlini <pcarlini@suse.de>
1406 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
1407 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
1408 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
1409 to _GLIBCXX_RES_LIMITS.
1410 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
1412 * testsuite/testsuite_hooks.h: Declare set_file_limit.
1413 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
1414 and setrlimit(RLIMIT_FSIZE).
1415 * testsuite/27_io/fpos/14775.cc: New.
1416 * config.h.in: Regenerate.
1417 * configure: Likewise.
1419 2004-03-31 Paolo Carlini <pcarlini@suse.de>
1421 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
1422 In v3 uses of sscanf, the special floating-point numbers INF,
1423 INFINITY, etc., cannot occur in input, therefore, if the latter
1424 is too large, ERANGE is always stored in errno, no need of finitel.
1426 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
1429 * include/bits/stl_tree.h: Adjust initialization list order.
1431 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
1433 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
1435 2004-03-29 Paolo Carlini <pcarlini@suse.de>
1437 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
1438 on allocator behavior, the memory pointed by data2 may well be not
1441 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
1444 * include/bits/basic_string.tcc
1445 (basic_string::basic_string(const basic_string&)): Pass to
1446 _Rep::_M_grab the actual allocator of the string being constructed
1447 not the default constructed one.
1449 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
1452 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
1453 (__enc_traits::_M_destroy): New.
1454 (__enc_traits::~__enc_traits): Use it.
1455 (__enc_traits::operator=): Use _M_destroy, _M_init.
1456 (__enc_traits::__enc_traits): Same.
1458 2004-03-27 Petur Runolfsson <peturr02@ru.is>
1460 * testsuite/ext/enc_filebuf/char/13598.cc: New.
1462 2004-03-27 Paolo Carlini <pcarlini@suse.de>
1464 * include/ext/mt_allocator.h: Uglify consistently names of
1465 variables, members and classes; tidy.
1467 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
1469 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1470 Deallocation loop rewrote.
1472 2004-03-26 Paolo Carlini <pcarlini@suse.de>
1474 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1475 __mt_alloc<>::deallocate): Protect two instances of
1476 block->thread_id with __GTHREADS.
1478 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
1480 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
1481 default argument in constructors.
1482 (_Rb_tree::_M_empty_initialize): Remove.
1484 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
1486 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
1487 * testsuite/23_containers/set/operators/1_neg.cc: Same.
1489 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1491 * include/bits/cpp_type_traits.h: Changed __is_pod
1492 completely. Now, it does not use any of the previous type_traits
1493 to detect the pod types, and it also detects function pointers as
1496 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
1497 which encapsulates the internal implementation of an rb_tree. Made
1498 the allocator a base class of this class instead of the rb_tree,
1499 which was not conforming. This _Rb_tree_impl class is also
1500 specialized on whether the _Compare parameter is a POD type or
1501 not. If so, then it maintains the comparison function as a data
1502 member, otherwise it makes the _Compare parameter a base class of
1503 itself. Also, _M_key_compare is now a function instead of a data
1504 member, so that the above trick can work properly. Delegated the
1505 initialization of the other data members to this newly created
1506 class. Also, now other member functions of rb_tree must refer to
1507 _M_key_compare as _M_impl._M_key_compare(). The other data members
1508 (*) can be referenced to as _M_impl.(*), where
1509 (*) includes _M_header, and _M_node_count.
1511 2004-03-25 Paolo Carlini <pcarlini@suse.de>
1513 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
1514 Add _M_min_bin, the size in bytes of the smallest bin.
1515 (__mt_alloc<>::tune()): Tweak accordingly.
1516 (__mt_alloc<>::tune(size_t, ...)): Likewise.
1517 (__mt_alloc<>::block_record): Change to a union: members next
1518 and thread_id are never used at the same time.
1519 (__mt_alloc<>::allocate): Update consistently.
1520 (__mt_alloc<>::deallocate): Likewise.
1521 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
1522 _S_bin_size for the configurable _M_min_size.
1524 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1526 * include/bits/stl_list.h: Created a _List_impl class and made it
1527 derive from the allocator, instead of the list deriving from the
1528 allocator class, which was not conformant. Changed all references
1529 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
1530 as above (changed all references to the concerned variables).
1532 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1534 * include/bits/stl_deque.h: Created a _Deque_impl class and made
1535 it derive from the allocator, instead of the deque deriving from
1536 the allocator class, which was not conformant. Changed all
1537 references to the _M_start, _M_finish, _M_map, and _M_map_size to
1539 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
1540 qualification in 2 places where it was missing.
1541 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
1543 * include/bits/deque.tcc: Same as above (changed all references to
1544 the concerned variables).
1546 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1548 * include/bits/stl_vector.h: Created a _Vector_impl class and made
1549 it derive from the allocator, instead of the _Vector_base class,
1550 deriving from the allocator which was not conformant. Changed all
1551 references to the _M_start, _M_finish, and _M_end_of_storage to
1553 * include/bits/vector.tcc: Same as above (changed all references
1554 to the concerned variables).
1556 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1558 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
1559 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
1560 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
1562 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
1564 * include/ext/malloc_allocator.h: Fixed the construct function to
1565 call global placement new instead of assignment. Added a check
1566 after the return from malloc to check whether returned pointer is
1567 NULL, and if so, throw std::bad_alloc().
1568 * include/ext/debug_allocator.h: Added a check in the deallocate
1569 function to check whether the user has passed a NULL pointer or
1572 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
1574 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
1576 2004-03-24 Andreas Schwab <schwab@suse.de>
1578 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
1579 warning from IA64 assembler.
1581 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
1583 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
1584 function call __builtin_ctz instead of the while loop.
1585 (allocate) -> If condition has __builtin_expect.
1586 (deallocate) -> Ditto.
1587 Renamed a few left-over variables and typedefs according to the
1588 C++STYLE mentioned in the documentation.
1589 Protected calls to __gthread* by __gthread_active_p(), whose value
1590 is cached in the local variable __threads_active.
1592 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
1594 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1595 Use linear algorithm for producer.
1597 2004-03-24 Paolo Carlini <pcarlini@suse.de>
1599 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1600 __mt_alloc<>::deallocate): Avoid redundant conditionals.
1602 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
1604 * include/bits/locale_facets.h: Tweaks for 80 column.
1605 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
1606 (__moneypunct_cache::_M_cache): Same.
1607 (num_get): Don't inherit from __num_base.
1609 (money_get): Don't inherit from money_base.
1611 (__timepunct::_M_am_pm_format): New.
1612 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
1613 (time_get::_M_extract_name): Same.
1614 (time_get::_M_extract_via_format): Same.
1615 * include/bits/locale_facets.tcc: Tweaks for 80 column.
1616 Use _M_getloc instead of getloc.
1617 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
1618 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
1619 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
1621 2004-03-22 Paolo Carlini <pcarlini@suse.de>
1623 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
1624 * configure: Regenerate.
1625 * config/allocator/pool_allocator_base.h: New.
1626 * include/ext/pool_allocator.h: Convert to a standard-conforming
1628 * src/allocator.cc: Tweak instantiations.
1629 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
1630 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
1631 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
1632 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1633 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1634 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1636 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
1638 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
1639 inline" and attribute-unused. Qualify parameter __mem with
1641 (__exchange_and_add): Ditto. Add back memory clobber to asm.
1643 2004-03-20 Paolo Carlini <pcarlini@suse.de>
1645 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
1647 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
1649 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
1651 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
1653 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
1655 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
1657 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
1659 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
1661 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
1663 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
1666 2004-03-20 Paolo Carlini <pcarlini@suse.de>
1668 * include/std/std_valarray.h: Document DR389 [Ready].
1669 * docs/html/ext/howto.html: Add an entry for DR389.
1671 2004-03-19 Michael Eager <eager@mvista.com>
1673 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
1676 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1678 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
1680 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
1681 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
1682 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
1683 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
1684 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
1685 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
1686 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
1687 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
1688 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
1690 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1691 Petur Runolfsson <peturr02@ru.is>
1694 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
1695 no way to find out the conversion used by the underlying FILE*.
1696 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
1697 * testsuite/27_io/objects/char/9.cc: Tweak.
1699 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1702 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
1703 memory allocation/deallocation calls.
1704 * testsuite/ext/14648.cc: New.
1706 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
1709 * include/backward/bvector.h (bit_vector): Allocator is in std
1712 2004-03-19 Phil Edwards <phil@codesourcery.com>
1714 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
1715 not libiconv. SUBST this variable as well.
1716 * testsuite/Makefile.am (site.exp): New target, based on that
1717 created by automake. Also set libiconv.
1719 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
1720 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1721 testsuite/Makefile.in: Regenerate.
1723 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
1725 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
1726 new_allocator for all hosts.
1727 * configure: Regenerate.
1729 2004-03-16 Paolo Carlini <pcarlini@suse.de>
1731 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
1732 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
1734 2004-03-15 Paolo Carlini <pcarlini@suse.de>
1736 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1737 Adjust the logic underlying the parsing of symbol to deal
1738 correctly with an optional sign component (i.e., when either
1739 negative_sign or positive_sign is empty)
1740 * testsuite/22_locale/money_get/get/char/19.cc: New.
1741 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
1743 2004-03-15 Paolo Carlini <pcarlini@suse.de>
1745 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1746 Do not accept an incomplete currency symbol.
1747 * testsuite/22_locale/money_get/get/char/18.cc: New.
1748 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
1750 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
1752 * config/allocator: New.
1753 * config/allocator/bitmap_allocator_base.h: New.
1754 * config/allocator/malloc_allocator_base.h: New.
1755 * config/allocator/mt_allocator_base.h: New.
1756 * config/allocator/new_allocator_base.h: New.
1757 * include/bits/allocator.h: Include c++allocator.h.
1758 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
1759 * aclocal.m4: Regenerate.
1760 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
1761 * configure: Regenerate.
1762 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
1763 * include/Makefile.in: Regenerate.
1764 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
1766 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
1768 * include/bits/allocator.h: Revert.
1770 2004-03-12 Paolo Carlini <pcarlini@suse.de>
1772 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
1773 * include/bits/gslice_array.h: Add comment about DR 253.
1774 * include/bits/indirect_array.h: Likewise.
1775 * include/bits/mask_array.h: Likewise.
1776 * include/bits/slice_array.h: Likewise.
1778 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
1780 * testsuite/20_util/allocator/14176.cc: New.
1781 * include/ext/mt_allocator.h: Formatting fixes.
1783 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
1785 * include/Makefile.am (ext_headers): Add
1786 ${ext_srcdir}/bitmap_allocator.h .
1787 * include/Makefile.in: Regenerate.
1788 * docs/html/ext/ballocator_doc.txt: New file.
1789 * include/ext/bitmap_allocator.h: New file.
1790 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
1792 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1793 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
1794 test for the bitmap_allocator<>.
1795 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
1796 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1797 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1799 2004-03-11 Paolo Carlini <pcarlini@suse.de>
1801 * include/std/std_complex.h (pow(const complex&, const _Tp&),
1802 pow(const _Tp&, const complex&), pow(const complex&,
1803 const complex&)): Fully qualify with std:: a few calls.
1804 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
1806 2004-03-11 Steven Bosscher <stevenb@suse.de>
1809 * include/c_std/cmath.tcc (__cmath_power): Define inline.
1811 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
1813 * configure.ac: Bump AC_PREREQ to 2.59.
1815 2004-03-10 Paolo Carlini <pcarlini@suse.de>
1817 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
1819 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
1820 Paolo Carlini <pcarlini@suse.de>
1823 * include/std/std_complex.h (pow(const complex&, const _Tp&),
1824 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
1825 * testsuite/26_numerics/complex/13450.cc: New.
1827 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
1828 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
1830 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
1833 * include/bits/gslice_array.h (gslice_array()): Make public.
1834 (operator=(gslice_array)): Make public. Implement.
1835 * include/bits/indirect_array.h (indirect_array()): Make public.
1836 * include/bits/mask_array.h (mask_array()): Make public.
1837 (operator=(mask_array)): Make public. Implement.
1838 * include/bits/valarray_array.tcc (__valarray_copy):
1839 Comment. Add versions for gslice_array and mask_array.
1840 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
1842 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
1844 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
1846 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
1847 * testsuite/23_containers/set/modifiers/swap.cc: Same.
1848 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1849 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1850 * testsuite/23_containers/map/modifiers/swap.cc: Same.
1851 * testsuite/23_containers/list/modifiers/swap.cc: Same.
1853 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
1855 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
1858 * testsuite/23_containers/deque/modifiers/swap.cc: New.
1859 * testsuite/23_containers/list/modifiers/swap.cc: New.
1860 * testsuite/23_containers/map/modifiers/swap.cc: New.
1861 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
1862 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
1863 * testsuite/23_containers/set/modifiers/swap.cc: New.
1864 * testsuite/23_containers/vector/modifiers/swap.cc: New.
1866 2004-03-08 Petur Runolfsson <peturr02@ru.is>
1869 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
1871 2004-03-08 Paolo Carlini <pcarlini@suse.de>
1873 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
1874 * include/bits/stl_multiset.h: Add comment about DR 103.
1875 * include/bits/stl_set.h: Likewise.
1877 2004-03-08 Paolo Carlini <pcarlini@suse.de>
1879 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1880 The value _space_ indicates that at least one space is required
1882 * testsuite/22_locale/money_get/get/char/17.cc: New.
1883 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
1885 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
1886 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
1888 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
1889 Remove redundant conditional on __str.size().
1891 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
1893 * include/bits/allocator.h: Switch defaults to mt_alloc.
1895 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
1897 * include/ext/mt_allocator.h (_S_initialize): If
1898 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
1900 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
1903 * src/locale_init.cc (locale::locale): Lock critical regions with
1905 (locale::global): Same.
1906 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
1907 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
1908 (__glibcxx_mutex_lock): Same.
1910 * config/cpu/generic/atomicity.h: Remove
1911 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
1912 * src/misc-inst.cc: Move all locking bits out of this file.
1914 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
1915 * src/misc-inst.cc: Same.
1916 * config/cpu/hppa/atomicity.h: Same.
1918 * config/linker-map.gnu: Remove types in the signature of atomic
1919 exports, as they may vary.
1921 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1923 * include/bits/locale_facets.tcc: Tweak the comment preceding
1924 has_facet: doesn't throw.
1926 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1928 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
1929 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
1930 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
1931 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
1932 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
1933 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
1934 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
1935 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
1937 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1939 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1940 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
1941 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
1942 * testsuite/testsuite_character.h (struct __gnu_test::character):
1944 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
1947 2004-03-05 Paolo Carlini <pcarlini@suse.de>
1949 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
1951 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
1953 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
1955 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
1957 * testsuite/23_containers/deque/invalidation/4.cc: Same.
1958 * testsuite/23_containers/list/invalidation/1.cc: Same.
1959 * testsuite/23_containers/list/invalidation/2.cc: Same.
1960 * testsuite/23_containers/list/invalidation/3.cc: Same.
1961 * testsuite/23_containers/list/invalidation/4.cc: Same.
1962 * testsuite/23_containers/map/invalidation/2.cc: Same.
1963 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
1964 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1965 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
1966 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1967 * testsuite/23_containers/set/invalidation/1.cc: Same.
1968 * testsuite/23_containers/set/invalidation/2.cc: Same.
1969 * testsuite/23_containers/vector/invalidation/1.cc: Same.
1970 * testsuite/23_containers/vector/invalidation/2.cc: Same.
1971 * testsuite/23_containers/vector/invalidation/3.cc: Same.
1972 * testsuite/23_containers/vector/invalidation/4.cc: Same.
1974 2004-03-04 Paolo Carlini <pcarlini@suse.de>
1976 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
1978 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
1980 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
1981 from the dg-options.
1982 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
1983 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
1984 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
1985 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
1986 * testsuite/23_containers/vector/resize/1.cc: Likewise.
1987 * testsuite/26_numerics/complex_value.cc: Likewise.
1988 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
1989 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1990 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
1991 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1992 * testsuite/27_io/objects/char/5.cc: Likewise.
1993 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
1994 * testsuite/backward/11460.cc: Likewise.
1995 * testsuite/thread/pthread7-rope.cc: Likewise.
1997 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
1998 missing test variable.
1999 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
2000 missing test variable.
2002 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
2004 * testsuite/20_util/allocator/1.cc: Provide explicit
2005 instantiations for non-weak systems.
2006 * testsuite/20_util/binders.cc: Same.
2007 * testsuite/20_util/allocator/8230.cc: Same.
2008 * testsuite/20_util/allocator/10378.cc: Same.
2009 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
2010 * testsuite/22_locale/ctype/is/char/2.cc: Same.
2011 * testsuite/thread/pthread7-rope.cc: Same.
2012 * testsuite/thread/pthread6.cc: Same.
2013 * testsuite/thread/pthread5.cc: Same.
2014 * testsuite/thread/pthread4.cc: Same.
2015 * testsuite/thread/pthread1.cc: Same.
2016 * testsuite/ext/rope.cc: Same.
2017 * testsuite/ext/hash_set.cc: Same.
2018 * testsuite/ext/hash_map.cc: Same.
2019 * testsuite/ext/concept_checks.cc: Same.
2020 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
2021 * testsuite/25_algorithms/unique/2.cc: Same.
2022 * testsuite/25_algorithms/unique/1.cc: Same.
2023 * testsuite/25_algorithms/rotate.cc: Same.
2024 * testsuite/25_algorithms/min_max.cc: Same.
2025 * testsuite/25_algorithms/equal.cc: Same.
2026 * testsuite/24_iterators/rel_ops.cc: Same.
2027 * testsuite/24_iterators/iterator.cc: Same.
2028 * testsuite/24_iterators/insert_iterator.cc: Same.
2029 * testsuite/24_iterators/front_insert_iterator.cc: Same.
2030 * testsuite/24_iterators/back_insert_iterator.cc: Same.
2031 * testsuite/23_containers/vector/resize/1.cc: Same.
2032 * testsuite/23_containers/vector/modifiers/2.cc: Same.
2033 * testsuite/23_containers/vector/modifiers/1.cc: Same.
2034 * testsuite/23_containers/vector/invalidation/4.cc: Same.
2035 * testsuite/23_containers/vector/invalidation/3.cc: Same.
2036 * testsuite/23_containers/vector/invalidation/2.cc: Same.
2037 * testsuite/23_containers/vector/invalidation/1.cc: Same.
2038 * testsuite/23_containers/vector/element_access/1.cc: Same.
2039 * testsuite/23_containers/vector/cons/6513.cc: Same.
2040 * testsuite/23_containers/vector/cons/3.cc: Same.
2041 * testsuite/23_containers/vector/cons/2.cc: Same.
2042 * testsuite/23_containers/vector/cons/1.cc: Same.
2043 * testsuite/23_containers/vector/capacity/8230.cc: Same.
2044 * testsuite/23_containers/vector/capacity/1.cc: Same.
2045 * testsuite/23_containers/vector/bool/6886.cc: Same.
2046 * testsuite/23_containers/stack/members/7158.cc: Same.
2047 * testsuite/23_containers/set/invalidation/2.cc: Same.
2048 * testsuite/23_containers/set/invalidation/1.cc: Same.
2049 * testsuite/23_containers/queue/members/7157.cc: Same.
2050 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
2051 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2052 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2053 * testsuite/23_containers/multiset/insert/1.cc: Same.
2054 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2055 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2056 * testsuite/23_containers/map/operators/1.cc: Same.
2057 * testsuite/23_containers/map/invalidation/2.cc: Same.
2058 * testsuite/23_containers/map/invalidation/1.cc: Same.
2059 * testsuite/23_containers/map/insert/1.cc: Same.
2060 * testsuite/23_containers/list/operators/4.cc: Same.
2061 * testsuite/23_containers/list/operators/3.cc: Same.
2062 * testsuite/23_containers/list/operators/2.cc: Same.
2063 * testsuite/23_containers/list/operators/1.cc: Same.
2064 * testsuite/23_containers/list/modifiers/3.cc: Same.
2065 * testsuite/23_containers/list/modifiers/2.cc: Same.
2066 * testsuite/23_containers/list/modifiers/1.cc: Same.
2067 * testsuite/23_containers/list/invalidation/4.cc: Same.
2068 * testsuite/23_containers/list/invalidation/3.cc: Same.
2069 * testsuite/23_containers/list/invalidation/2.cc: Same.
2070 * testsuite/23_containers/list/invalidation/1.cc: Same.
2071 * testsuite/23_containers/list/cons/9.cc: Same.
2072 * testsuite/23_containers/list/cons/8.cc: Same.
2073 * testsuite/23_containers/list/cons/7.cc: Same.
2074 * testsuite/23_containers/list/cons/6.cc: Same.
2075 * testsuite/23_containers/list/cons/5.cc: Same.
2076 * testsuite/23_containers/list/cons/4.cc: Same.
2077 * testsuite/23_containers/list/cons/3.cc: Same.
2078 * testsuite/23_containers/list/cons/2.cc: Same.
2079 * testsuite/23_containers/list/cons/1.cc: Same.
2080 * testsuite/23_containers/list/capacity/1.cc: Same.
2081 * testsuite/23_containers/deque/operators/1.cc: Same.
2082 * testsuite/23_containers/deque/invalidation/4.cc: Same.
2083 * testsuite/23_containers/deque/invalidation/3.cc: Same.
2084 * testsuite/23_containers/deque/invalidation/2.cc: Same.
2085 * testsuite/23_containers/deque/invalidation/1.cc: Same.
2086 * testsuite/23_containers/deque/cons/2.cc: Same.
2087 * testsuite/23_containers/deque/cons/1.cc: Same.
2089 * src/allocator.cc: Add char, wchar_t instantiations
2090 to match extern template declarations in memory.h.
2092 2004-03-03 Paolo Carlini <pcarlini@suse.de>
2094 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2095 Fix warning regression.
2097 2004-03-03 Paolo Carlini <pcarlini@suse.de>
2099 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2100 Deal properly with empty __digits and negative frac_digits,
2103 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
2105 * docs/html/documentation.html: Regenerate.
2107 2004-03-02 Paolo Carlini <pcarlini@suse.de>
2110 * include/bits/postypes.h (class streamoff): Remove, now
2111 streamoff is just typedef a 64 bit signed integer type.
2112 (class fpos): Tweak consistently.
2113 * testsuite/27_io/fpos/14320-1.cc: New.
2114 * testsuite/27_io/fpos/14320-2.cc: New.
2115 * testsuite/27_io/fpos/14320-3.cc: New.
2116 * testsuite/27_io/fpos/14320-4.cc: New.
2117 * testsuite/27_io/fpos/14320-5.cc: New.
2118 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
2120 2004-03-02 Paolo Carlini <pcarlini@suse.de>
2122 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2123 Reorganize a bit the main parsing loop, thus early detecting
2124 an empty value component.
2125 * testsuite/22_locale/money_get/get/char/16.cc: New.
2126 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
2128 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
2130 Support automake 1.8.2
2131 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
2132 * po/Makefile.am (EXTRA_DIST): New.
2133 * po/Makefile.in: Regenerate.
2134 * Makefile.in: Same.
2135 * include/Makefile.in: Same.
2136 * libmath/Makefile.in: Same.
2137 * libsupc++/Makefile.in: Same.
2138 * src/Makefile.in: Same.
2139 * testsuite/Makefile.in: Same.
2141 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
2142 __GXX_WEAK__ instead of SUPPORTS_WEAK.
2143 (${host_builddir}/gthr-default.h): Same.
2144 (${host_builddir}/gthr.h): Same.
2145 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
2146 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
2148 * aclocal.m4: Regenerate.
2149 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
2150 * config.h.in: Regenerate.
2153 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
2155 Support autoconf 2.59
2156 * acinclude.m4: Quote correctly.
2157 * aclocal.m4: Regenerate.
2160 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
2162 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
2164 * docs/html/18_support/howto.html: Add bit about writing to
2165 stderr, mostly by Zack.
2167 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2169 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2170 money_get<>::do_get(string_type&)): ... and two more.
2172 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2174 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2175 Fix thinkos in the switch from string_type& to string& as last
2178 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2180 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2181 Also when parsing exponent sign, first look for thousands_sep
2182 and decimal_point; tweak a bit.
2183 * testsuite/22_locale/num_get/get/char/15.cc: New.
2184 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
2186 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2187 num_get<>::_M_extract_int): Reorder some conditionals.
2189 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2191 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2192 Consistently with numpunct, enforce the requirements in
2193 22.2.6.3, p3 for the thousands separators; tweak a bit.
2194 * testsuite/22_locale/money_get/get/char/15.cc: New.
2195 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
2197 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
2199 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
2200 testsuite_files from correct multilib blddir when running
2203 2004-02-29 Phil Edwards <phil@codesourcery.com>
2205 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
2206 the summary file to the logfile.
2207 * testsuite/Makefile.in: Regenerate.
2209 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2211 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
2213 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
2214 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
2216 2004-02-28 Paolo Carlini <pcarlini@suse.de>
2218 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2219 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
2220 no 'decimal-point' in the middle: in this case too we must fix
2221 up __found_grouping; slightly tweak.
2222 * testsuite/22_locale/num_get/get/char/14.cc: New.
2223 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
2225 2004-02-27 Eric Christopher <echristo@redhat.com>
2226 Phil Edwards <phil@codesourcery.com>
2228 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
2229 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
2230 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
2231 testsuite/22_locale/collate/hash/wchar_t/2.cc,
2232 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
2233 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
2234 testsuite/22_locale/collate/transform/wchar_t/2.cc,
2235 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
2236 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2237 Use dg-require-iconv.
2238 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
2240 2004-02-27 Phil Edwards <phil@codesourcery.com>
2241 Eric Christopher <echristo@redhat.com>
2243 * testsuite/config/default.exp: Update with comments.
2244 (${tool}_target_compile): New wrapper routine.
2245 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
2246 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
2248 (load_gcc_lib, v3track): New routines.
2249 (v3-init): Rename to libstdc++_init.
2250 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
2251 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
2253 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
2255 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
2257 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
2259 * config/os/irix/irix5.2/atomicity.h: Merge..
2260 * config/os/irix/irix6.5/atomicity.h: Merge..
2261 * config/os/irix/atomicity.h: ...into this.
2262 * config/os/irix/atomic_word.h: New.
2263 * configure.host: Set atomic_word_dir for irix.
2265 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
2266 * i386/atomicity.h: Same.
2267 * m68k/atomicity.h: Same.
2268 * sparc/atomicity.h: Same.
2270 2004-02-27 David Edelsohn <edelsohn@gnu.org>
2272 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
2273 static, and inline keywords.
2275 2004-02-27 Paolo Carlini <pcarlini@suse.de>
2277 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2278 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
2279 call reserve on the __tmp_gruping string.
2280 (num_get<>::_M_extract_float): Don't append unnecessarily a
2281 char() to the returned string.
2282 * include/bits/locale_facets.tcc: Trivial reformattings.
2284 2004-02-27 Paolo Carlini <pcarlini@suse.de>
2286 * include/bits/locale_facets.h (money_get<>::_M_extract):
2287 Change signature: now takes a plain string&.
2288 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2289 Update consistently the definition; use the moneypunct cache
2290 to parse the value; use swap to change __units.
2291 (money_get<>::do_get(long double&)): Update call of _M_extract,
2292 avoid ctype::narrow, not correct wrt the standard.
2293 (money_get<>::do_get(string_type&)): Likewise, update call
2294 of _M_extract, use ctype::widen.
2295 * src/locale-inst.cc: Tweak instantiations of _M_extract.
2297 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
2299 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
2300 * testsuite/demangle/abi_examples/02.cc: Likewise.
2301 * testsuite/demangle/regression/cw-11.cc: Likewise.
2302 * testsuite/demangle/regression/cw-16.cc: Change two expected
2303 results to match libiberty demangler output.
2305 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
2308 * libsupc++/Makefile.am: Use libiberty demangler.
2309 (c_sources): Add cp-demangle.c.
2310 * libsupc++/Makefile.in: Regenerate.
2311 * src/Makefile.am (sources): Remove demangle.cc.
2312 * src/Makefile.in: Regenerate.
2313 * include/Makefile.am (bits_headers): Move demangle.h.
2314 (ext_headers): ...here.
2315 * include/Makefile.in: Regenerate.
2316 * include/bits/demangle.h: Move...
2317 * include/ext/demangle.h: ...here.
2318 * src/demangle.cc: Remove.
2320 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
2322 * include/bits/demangle.h: Add type template parameter to all
2323 templates with just an Allocator template parameter.
2325 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
2327 * include/bits/atomicity.h: New, forward declarations for __atomic_add
2328 and __exchange_and_add.
2329 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
2330 * config/cpu/cris/atomic_word.h: Same.
2331 * config/cpu/sparc/atomic_word.h: Same.
2332 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
2333 Qualifiy with __gnu_cxx.
2334 (_Callback_list::_M_add_reference): Same.
2335 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
2336 (locale::facet::_M_remove_reference): Same.
2337 (locale::_Impl::_M_add_reference): Add.
2338 (locale::_Impl::_M_remove_reference): Same.
2339 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
2340 (basic_string::_Rep::_M_dispose): Same.
2341 * src/ios.cc (ios_base::xalloc): Same.
2342 * src/ios_init.cc (ios_base::Init::Init): Same.
2343 (ios_base::Init::~Init): Same.
2344 * src/locale.cc (locale::id::_M_id): Same.
2345 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
2346 static, and inline keywords.
2347 * config/cpu/alpha/atomicity.h: Same.
2348 * config/cpu/cris/atomicity.h: Same.
2349 * config/cpu/generic/atomicity.h: Same.
2350 * config/cpu/hppa/atomicity.h: Same.
2351 * config/cpu/i386/atomicity.h: Same.
2352 * config/cpu/ia64/atomicity.h: Same.
2353 * config/cpu/m68k/atomicity.h: Same.
2354 * config/cpu/mips/atomicity.h: Same.
2355 * config/cpu/powerpc/atomicity.h: Same.
2356 * config/cpu/s390/atomicity.h: Same.
2357 * config/cpu/sparc/atomicity.h: Same.
2359 * src/Makefile.am (host_sources): Add atomicity.cc.
2360 (atomicity.cc): New rule.
2361 * src/Makefile.in: Regenerate.
2362 * include/Makefile.am (host_headers): Remove host atomicity.h.
2363 (host_headers): Add atomic_word.h.
2364 (bits_headers): Add bits atomicity.h.
2365 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2366 * include/Makefile.in: Regenerate.
2367 * configure.host (atomic_word_dir): Add.
2368 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
2369 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2370 * configure: Regenerate.
2371 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
2373 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
2374 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2376 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
2378 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
2379 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
2380 Fix markup, more <link> tags.
2382 2004-02-25 Carlo Wood <carlo@alinoe.com>
2385 namespace __gnu_cxx::demangler
2386 (session<Allocator>::qualifier_list_Allocator): Add
2387 (session<Allocator>::M_qualifier_list_alloc): Add
2388 (session<Allocator>::decode_type_with_postfix):
2389 Use M_qualifier_list_alloc instead of calling operator new/delete.
2391 2004-02-24 Paolo Carlini <pcarlini@suse.de>
2394 * include/bits/postypes.h (class streamoff): Add operator++(),
2395 operator++(int), operator--() and operator--(int).
2396 * testsuite/27_io/fpos/14252.cc: New.
2398 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
2400 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
2401 error in handling of hex constants.
2403 2004-02-24 Paolo Carlini <pcarlini@suse.de>
2405 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2406 Prefer basic_string::append to operator+= and a temporary.
2408 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
2410 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
2411 Only use fputs, not write.
2413 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
2415 * include/ext/malloc_allocator.h: Add operators ==, !=.
2416 * include/ext/new_allocator.h: Add operators ==, !=.
2417 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
2418 (__mt_alloc::_S_get_options): New.
2419 (__mt_alloc::_S_set_options): New.
2420 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
2421 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
2422 Move functions out of line, simplify, format.
2423 * src/allocator.cc: Simplify explicit instantiations.
2424 * include/bits/allocator.h: Tweak.
2426 2004-02-22 Paolo Carlini <pcarlini@suse.de>
2428 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2429 Restructure formatting of value component, first dealing with
2430 the non-decimal digits; use reserve.
2432 2004-02-22 Paolo Carlini <pcarlini@suse.de>
2434 * include/bits/locale_facets.h (class money_get): Inherit
2435 from money_base too; tweak declaration of _M_extract, now
2436 parameterized on _Intl too.
2437 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2438 Update definition to use the cache; call reserve on __res to
2439 avoid multiple reallocations; fix parsing of sign component
2440 according to 22.2.6.1.2, p3.
2441 (money_get<>::do_get(long double&),
2442 money_get<>::do_get(string_type&)): Update calls of _M_extract.
2443 * src/locale-inst.cc: Add instantiations of
2444 money_get::_M_extract<false> and money_get::_M_extract<true>.
2445 * testsuite/22_locale/money_get/get/char/14.cc: New.
2446 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
2448 2004-02-21 Mark Mitchell <mark@codesourcery.com>
2450 * libsupc++/vterminate.cc
2451 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
2453 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
2455 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2456 not set RLIMIT_AS on HP-UX.
2458 2004-02-21 Mark Mitchell <mark@codesourcery.com>
2460 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2461 not set RLIMIT_AS on HP-UX.
2463 2004-02-21 Paolo Carlini <pcarlini@suse.de>
2465 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
2466 _S_zero, _S_end } enum, _S_atoms.
2467 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
2468 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
2469 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
2470 (__moneypunct_cache<>::~__moneypunct_cache): Update.
2471 (__moneypunct_cache<>::_M_cache): Fill the cache.
2472 (class moneypunct): Tweak __cache_type typedef.
2473 (class money_put): Inherit from money_base too; tweak declaration
2474 of _M_insert, now parameterized on _Intl.
2475 * include/bits/locale_facets.tcc
2476 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
2477 (money_put<>::_M_insert): Update definition to use the cache;
2478 call reserve on __res to avoid multiple reallocations.
2479 (money_put<>::do_put(long double),
2480 money_put<>::do_put(const string_type&): Update calls of _M_insert.
2481 * config/locale/generic/monetary_members.cc
2482 (moneypunct<char, true>::_M_initialize_moneypunct,
2483 moneypunct<char, false>::_M_initialize_moneypunct,
2484 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
2485 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
2486 * config/locale/gnu/monetary_members.cc: Likewise.
2487 * config/locale/gnu/monetary_members.cc
2488 (moneypunct<wchar_t, true>::~moneypunct(),
2489 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
2490 * src/globals_locale.cc: Tweak fake_money_cache_c.
2491 * src/locale-inst.cc: Add instantiations for
2492 money_put::_M_insert<false> and money_put::_M_insert<true> and
2493 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
2494 * src/locale_facets.cc: Define money_base::_S_atoms.
2495 * src/locale_init.cc: Update placement new of
2496 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
2497 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
2499 * config/locale/generic/numeric_members.cc: Clean up.
2500 * config/locale/gnu/numeric_members.cc: Likewise.
2501 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
2502 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
2503 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
2504 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
2505 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
2506 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
2508 2004-02-20 Mark Mitchell <mark@codesourcery.com>
2510 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
2511 FIFO for writing with ios_base::in|ios_base::out.
2512 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
2513 * testsuite/27_io/objects/char/7.cc: Likewise.
2514 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
2517 2004-02-19 David Edelsohn <edelsohn@gnu.org>
2519 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
2520 from iso-8859-1 to ISO8859-1.
2521 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
2522 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
2523 * 22_locale/collate/hash/wchar_t/2.cc: Same.
2524 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
2525 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
2526 * 22_locale/collate/transform/wchar_t/2.cc: Same.
2527 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
2528 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
2530 2004-02-18 Paolo Carlini <pcarlini@suse.de>
2532 * include/bits/locale_facets.h (money_get<>::_M_extract):
2533 New, helper for do_get.
2534 (money_put<>::_M_insert): Likewise, for do_put.
2535 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2536 money_put<>::_M_insert): Define.
2537 (money_get<>::do_get(long double&), money_get<>::do_get(
2538 string_type&), money_put::do_put(long double),
2539 money_put::do_put(const string_type&)): Use the helpers.
2541 2004-02-18 Paolo Carlini <pcarlini@suse.de>
2543 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2544 Rewrite, avoiding recursion.
2545 (__gnu_internal::xwrite): Minor tweaks.
2547 2004-02-17 Stefan Olsson <stefan@xapa.se>
2549 * include/ext/mt_allocator.h: Removed the last
2550 pointer. Deallocated blocks are now added to the front of
2551 freelists as proposed by Felix Yen. This gives roughly 10%
2552 performance boost and saves some memory.
2553 * docs/html/ext/mt_allocator.html: Change due to that deallocated
2554 blocks now are added to the front of freelists. The reason to this
2555 approach is also explained.
2557 2004-02-17 Paolo Carlini <pcarlini@suse.de>
2559 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2560 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
2561 grouping fidelity conditional.
2563 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2565 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
2566 Qualify exception with std::.
2567 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
2568 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2569 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2570 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2571 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2573 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2575 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
2576 for now that the catch block is not reached.
2577 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
2579 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2581 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2582 Fix parsing of the remaining sign characters.
2583 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
2584 the input is scanned 'til eof.
2585 * 22_locale/money_get/get/char/4.cc: Likewise.
2586 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
2587 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
2588 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
2589 not do_pos_format: the former is the only one that matters during
2591 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
2593 * 22_locale/money_get/get/char/6.cc: Minor tweak.
2594 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
2596 2004-02-15 David Asher <david.asher@cavium.com>
2599 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
2600 access __olds beyond __oldlen.
2602 2004-02-14 Paolo Carlini <pcarlini@suse.de>
2604 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
2605 sure the exception is actually thrown.
2606 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2607 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2608 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2610 2004-02-14 Paolo Carlini <pcarlini@suse.de>
2613 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
2614 In case of conversion errors, throw ios_failure; simplify.
2615 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
2616 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2617 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
2618 previously we didn't throw in case of conversion errors, instead
2619 just returned eof().
2620 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2621 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2622 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2624 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
2625 Trivial simplification of a conditional.
2627 2004-02-12 Paolo Carlini <pcarlini@suse.de>
2629 PR libstdc++/13731 (final part: writev)
2630 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2631 New, a wrapper around writev() handling partial writes.
2632 (__basic_file<char>::xwrite): Move to __gnu_internal and make
2634 (__basic_file<char>::xsputn): Update call.
2635 (__basic_file<char>::xsputn_2): Likewise.
2636 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2637 Don't declare, now static.
2639 2004-02-11 Stefan Olsson <stefan@xapa.se>
2641 * docs/html/ext/mt_allocator.html: New.
2643 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
2645 * docs/html/20_util/allocator.html: New file, consolidate
2646 allocator information here. Revamp.
2647 * docs/html/documentation.html: Change links.
2648 * docs/html/20_util/howto.html: Same.
2649 * docs/html/ext/howto.html: Same.
2651 2004-02-11 Paolo Carlini <pcarlini@suse.de>
2653 PR libstdc++/13731 (first part: write)
2654 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2656 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
2657 Define it: a wrapper around write() handling partial write.
2658 (__basic_file<char>::xsputn): Use it.
2659 (__basic_file<char>::xsputn_2): Likewise.
2661 2004-02-11 Paolo Carlini <pcarlini@suse.de>
2662 Petur Runolfsson <peturr02@ru.is>
2665 * include/std/std_istream.h (operator>>(__istream_type& (*)
2666 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
2667 operator>>(ios_base& (*)(ios_base&))): Declare inline.
2668 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
2669 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
2670 operator<<(ios_base& (*) (ios_base&))): Likewise.
2671 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
2673 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
2676 * config/linker-map.gnu: Add typeinfo and typeinfo name for
2677 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
2680 * config/linker-map.gnu: Add typeinfo and typeinfo name for
2681 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
2683 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
2685 * include/ext/pool_allocator.h: Include c++config.h.
2687 2004-02-09 Stefan Olsson <stefan@xapa.se>
2689 * include/ext/mt_allocator.h: thread_id is unused in non threaded
2690 applications and now has a ifdef to remove it completely on
2691 compilers without thread support. Include stdlib.h due to a
2692 compiler warning on getenv().
2694 2004-02-09 Paul Brook <paul@codesourcery.com>
2696 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
2698 2004-02-09 Paolo Carlini <pcarlini@suse.de>
2701 * src/locale_init.cc (locale::global(const locale&)): Use
2702 locale::name() in order to decide whether calling setlocale.
2703 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
2705 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
2706 Avoid computing &= unnecessarily.
2708 2004-02-09 James E Wilson <wilson@specifixinc.com>
2711 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
2712 __builtin_extend_pointer.
2714 2004-02-09 Paolo Carlini <pcarlini@suse.de>
2717 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
2718 Don't leave dangling pointers.
2719 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
2720 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
2721 facet is needed in the final test.
2723 2004-02-09 Bernardo Innocenti <bernie@develer.com>
2725 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
2726 * configure: Regenerate.
2728 2004-02-08 Richard Henderson <rth@redhat.com>
2731 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
2732 uncaughtExceptions during nested catch rethrow.
2733 * testsuite/18_support/14026.cc: New.
2735 2004-02-08 Paolo Carlini <pcarlini@suse.de>
2737 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
2738 When working in place remember to set the state to sharable
2739 (otherwise, _M_mutate does it).
2741 2004-02-08 Bernardo Innocenti <bernie@develer.com>
2743 * include/bits/allocator.h, include/bits/basic_ios.h,
2744 include/bits/basic_ios.tcc, include/bits/basic_string.h,
2745 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
2746 include/bits/char_traits.h, include/bits/codecvt.h,
2747 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
2748 include/bits/demangle.h, include/bits/deque.tcc,
2749 include/bits/fstream.tcc, include/bits/functexcept.h,
2750 include/bits/gslice.h, include/bits/gslice_array.h,
2751 include/bits/indirect_array.h, include/bits/ios_base.h,
2752 include/bits/istream.tcc, include/bits/list.tcc,
2753 include/bits/locale_classes.h, include/bits/locale_facets.h,
2754 include/bits/locale_facets.tcc, include/bits/localefwd.h,
2755 include/bits/mask_array.h, include/bits/ostream.tcc,
2756 include/bits/postypes.h, include/bits/slice_array.h,
2757 include/bits/sstream.tcc, include/bits/stl_algo.h,
2758 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
2759 include/bits/stl_construct.h, include/bits/stl_deque.h,
2760 include/bits/stl_function.h, include/bits/stl_heap.h,
2761 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
2762 include/bits/stl_list.h, include/bits/stl_map.h,
2763 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
2764 include/bits/stl_numeric.h, include/bits/stl_pair.h,
2765 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
2766 include/bits/stl_relops.h, include/bits/stl_set.h,
2767 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
2768 include/bits/stl_threads.h, include/bits/stl_tree.h,
2769 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
2770 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
2771 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
2772 include/bits/type_traits.h, include/bits/valarray_after.h,
2773 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
2774 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
2775 trailing whitespace.
2777 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2779 * include/bits/basic_string.h: Fix comment.
2781 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2783 * include/bits/stl_construct.h: Wrap overlong lines, reformat
2784 according to the coding standards.
2785 * include/bits/stl_pair.h: Likewise.
2786 * include/bits/stl_raw_storage_iter.h: Likewise.
2787 * include/bits/stl_stack.h: Likewise.
2788 * include/bits/stl_uninitialized.h: Likewise.
2789 * include/bits/stream_iterator.h: Likewise.
2790 * include/bits/streambuf_iterator.h: Likewise.
2791 * include/bits/type_traits.h: Likewise.
2793 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2795 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2798 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
2800 * scripts/check_performance: Support PCH.
2802 * scripts/check_performance (CXX): Add -DNOTHREAD.
2803 * testsuite/performance/20_util/allocator/insert.cc: Integrate
2804 threaded tests from insert_insert.cc. Tweak iterations,
2805 remove special cases.
2806 * testsuite/performance/20_util/allocator/insert_insert.cc:
2807 Make all tests single-threaded. Tweak iterations.
2808 * testsuite/performance/20_util/allocator/map_thread.cc:
2810 * testsuite/performance/20_util/allocator/producer_consumer.cc:
2813 2004-02-05 Geoffrey Keating <geoffk@apple.com>
2817 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
2818 'gcc-lib'. Add comment about poorly-named variables.
2819 * aclocal.m4: Regenerate.
2820 * configure: Regenerate.
2822 2004-02-05 Paolo Carlini <pcarlini@suse.de>
2824 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2825 Thousands-sep are always optional; thousands-sep are not allowed
2826 after the decimal_point.
2827 * testsuite/22_locale/money_get/get/char/12.cc: New.
2828 * testsuite/22_locale/money_get/get/char/13.cc: New.
2829 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
2830 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
2832 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
2833 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2834 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2835 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2836 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2837 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2838 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2839 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2841 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
2843 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
2845 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
2847 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
2849 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
2850 it to decide whether FIONREAD should take an off_t or int argument.
2852 2004-02-05 Paolo Carlini <pcarlini@suse.de>
2854 * include/bits/stl_function.h: Minor formatting changes.
2856 2004-02-04 Zack Weinberg <zack@codesourcery.com>
2858 Revert previous change to config/abi/*/baseline_symbols.txt.
2860 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
2861 Zack Weinberg <zack@codesourcery.com>
2863 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
2865 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
2866 (__basic_file<char>::_M_open_mode): Delete.
2867 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
2869 * testsuite/27_io/basic_filebuf/close/char/9964.cc
2870 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2871 Correct flags to filebuf::open calls.
2873 * config/abi/alpha-freebsd5/baseline_symbols.txt
2874 * config/abi/alpha-linux-gnu/baseline_symbols.txt
2875 * config/abi/hppa-linux-gnu/baseline_symbols.txt
2876 * config/abi/i386-freebsd4/baseline_symbols.txt
2877 * config/abi/i386-freebsd5/baseline_symbols.txt
2878 * config/abi/i486-linux-gnu/baseline_symbols.txt
2879 * config/abi/ia64-linux-gnu/baseline_symbols.txt
2880 * config/abi/mips-linux-gnu/baseline_symbols.txt
2881 * config/abi/sparc-freebsd5/baseline_symbols.txt
2882 * config/abi/sparc-linux-gnu/baseline_symbols.txt
2883 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
2884 Remove entry for __basic_file<char>::_M_open_mode.
2886 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
2888 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
2890 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
2892 * testsuite/performance/20_util/producer_consumer.cc: New.
2893 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
2895 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
2897 * testsuite/performance/20_util/allocator.cc: Move to..
2898 * testsuite/performance/20_util/allocator/insert.cc: ...here.
2899 * testsuite/performance/20_util/allocator_thread.cc: Move to...
2900 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
2901 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
2902 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
2904 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
2906 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
2907 * docs/html/faq/index.txt: Regenerate.
2909 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
2911 * include/ext/debug_allocator.h: _M_extra now stands for the
2912 number of extra objects instead of the number of extra bytes.
2913 (debug_allocator::allocate): Adjust.
2914 (debug_allocator::deallocate): Adjust.
2916 * include/ext/pool_allocator.h: Fix typo.
2918 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
2919 Benjamin Kosnik <bkoz@redhat.com>
2921 * testsuite/performance/20_util/allocator.cc: Add map,
2923 * testsuite/performance/20_util/allocator_thread.cc: Same.
2925 2004-02-03 Paolo Carlini <pcarlini@suse.de>
2927 * include/bits/basic_string.h (insert(iterator)): Remove,
2928 non-standard and already scheduled for removal.
2930 2004-02-03 Paolo Carlini <pcarlini@suse.de>
2932 * include/bits/stl_iterator_base_funcs.h: Minor formatting
2933 and indentation tweaks.
2934 * include/bits/stl_iterator_base_types.h: Likewise.
2935 * include/bits/stl_list.h: Likewise.
2936 * include/bits/stl_map.h: Likewise.
2937 * include/bits/stl_tempbuf.h: Likewise.
2939 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
2941 * include/bits/gslice.h, include/bits/gslice_array.h,
2942 include/bits/indirect_array.h, include/bits/mask_array.h,
2943 include/bits/slice_array.h, include/bits/stl_numeric.h,
2944 include/std/std_valarray.h: Update copyright years.
2946 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
2948 * include/bits/gslice.h (gslice): Document.
2949 * include/bits/gslice_array.h (gslice_array): Document.
2950 * include/bits/indirect_array (indirect_array): Document.
2951 * include/bits/mask_array (mask_array): Document.
2952 * include/bits/slice_array.h (slice,slice_array): Document.
2953 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
2954 adjacent_difference): Document
2955 * include/std/std_valarray.h (valarray): Document.
2957 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
2959 * docs/html/19_diagnostics/howto.html: Move verbose terminate
2961 * docs/html/18_support/howto.html: Here.
2962 * docs/html/documentation.html: Add reference here.
2964 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2966 * config/locale/gnu/c++locale_internal.h: Remove prototypes
2967 of no longer used GLIBC thread locale functions.
2969 2004-02-02 Eric Christopher <echristo@redhat.com>
2970 Zack Weinberg <zack@codesourcery.com>
2972 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
2974 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
2975 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
2976 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
2977 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
2978 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
2979 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
2980 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
2981 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2984 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2986 * include/bits/stl_function.h: Additional minor tweaks.
2987 * include/bits/stl_multiset.h: Likewise.
2989 * include/bits/stl_queue.h: Minor tweaks.
2991 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2993 PR libstdc++/13976 (continued)
2994 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
2995 Make the second parameter unnamed, to void unused parameter
2997 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
2999 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3002 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
3003 Make the second parameter unnamed, to void unused parameter
3005 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
3006 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
3008 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3010 * include/bits/stl_algo.h: Additional minor tweaks.
3011 * include/bits/stl_map.h: Likewise.
3012 * include/bits/stl_multimap.h: Likewise.
3013 * include/bits/stl_multiset.h: Likewise.
3014 * include/bits/stl_set.h: Likewise.
3015 * include/bits/stl_tree.h: Likewise.
3017 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3019 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
3022 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3024 * include/bits/stl_function.h: Additional minor tweaks.
3026 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3028 * include/bits/deque.tcc: Wrap overlong lines, constify
3029 a few variables, reformat according to the coding standards.
3030 * include/bits/list.tcc: Likewise.
3031 * include/bits/stl_deque.h: Likewise.
3032 * include/bits/stl_function.h: Likewise.
3033 * include/bits/stl_iterator.h: Likewise.
3034 * include/bits/stl_iterator_base_funcs.h: Likewise.
3035 * include/bits/stl_iterator_base_types.h: Likewise.
3036 * include/bits/stl_list.h: Likewise.
3037 * include/bits/stl_map.h: Likewise.
3038 * include/bits/stl_multimap.h: Likewise.
3039 * include/bits/stl_multiset.h: Likewise.
3040 * include/bits/stl_relops.h: Likewise.
3041 * include/bits/stl_set.h: Likewise.
3043 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3045 * include/bits/stl_bvector.h: Wrap overlong lines, constify
3046 a few variables, reformat according to the coding standards.
3047 * include/bits/stl_tree.h: Likewise.
3049 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3051 * include/bits/stl_algo.h: Minor additional reformat, add
3053 * include/bits/stl_algobase.h: Add copyright year.
3055 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3057 * include/bits/stl_algo.h: Wrap overlong lines, constify
3058 a few variables, reformat according to the coding standards.
3059 * include/bits/stl_algobase.h: Likewise.
3060 * include/bits/stl_heap.h: Likewise.
3062 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3064 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
3066 * include/bits/basic_string.h: Fix two comments.
3068 2004-01-31 Per Bothner <per@bothner.com>
3070 * include/ext/mt_allocator.h
3071 (__mt_alloc::_S_thread_freelist_mutex): Guard with
3072 __GTHREAD_MUTEX_INIT.
3074 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3076 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
3078 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3080 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
3081 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
3082 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
3084 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
3086 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
3087 Don't use clear, but instead assign. Use insert.
3089 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
3091 * src/demangle.cc: Add instantiations.
3092 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
3093 * src/Makefile.in: Regenerate.
3095 2004-01-30 David Edelsohn <edelsohn@gnu.org>
3097 * src/allocator.cc: Protect _S_get_thread_id() and
3098 _S_thread_key_destr() with #ifdef __GTHREADS.
3100 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3102 Reshuffle performance testsuite.
3103 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
3104 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
3105 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
3106 fstream_seek_write.cc, ifstream_extract_float.cc,
3107 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
3108 list_create_fill_sort.cc, map_create_fill.cc,
3109 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
3110 ofstream_insert_float.cc, ofstream_insert_int.cc,
3111 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
3112 wchar_t_out.cc: Split into...
3113 * testsuite/performance/20_util/allocator.cc: New.
3114 * testsuite/performance/20_util/allocator_map_thread.cc: New.
3115 * testsuite/performance/20_util/allocator_thread.cc: New.
3116 * testsuite/performance/21_strings/string_append: New.
3117 * testsuite/performance/22_locale/is_wchar_t.cc: New.
3118 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
3119 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
3120 * testsuite/performance/22_locale/wchar_t_in.cc: New.
3121 * testsuite/performance/22_locale/wchar_t_length.cc: New.
3122 * testsuite/performance/22_locale/wchar_t_out.cc: New.
3123 * testsuite/performance/23_containers/container_benchmark.cc: New.
3124 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
3125 * testsuite/performance/23_containers/map_create_fill.cc: New.
3126 * testsuite/performance/26_numerics/complex_norm.cc: New.
3127 * testsuite/performance/27_io/cout_insert_int.cc: New.
3128 * testsuite/performance/27_io/filebuf_copy.cc: New.
3129 * testsuite/performance/27_io/filebuf_sputc.cc: New.
3130 * testsuite/performance/27_io/fstream_seek_write.cc: New.
3131 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
3132 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
3133 * testsuite/performance/27_io/ifstream_getline.cc: New.
3134 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
3135 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
3137 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3139 * include/bits/basic_string.tcc (_Rep::_S_create):
3140 Never allocate a string bigger than max_size(); always keep
3141 __capacity and __size in sync to avoid memory leaks at
3144 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3146 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3147 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
3148 the double loop, streamline.
3150 * include/bits/basic_string.tcc: Very minor tweaks.
3152 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
3154 * scripts/check_performance: Only compile with $THREAD_FLAG
3155 when test is marked to require it. Allow multiple
3156 compilations/executions of marked tests.
3157 * testsuite/testsuite_performance.h (report_performance):
3158 Report dynamic thread support status.
3159 (report_header): Likewise.
3160 * testsuite/performance/allocator.cc: Stabilize iteration
3161 count. Support more allocators. Mark each allocator test to
3162 run and report independently.
3163 * testsuite/performance/allocator_map_thread.cc: Likewise.
3164 * testsuite/performance/allocator_thread.cc: Likewise.
3166 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
3168 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
3169 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
3170 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
3171 std::get_temporary_buffer() instead of duplicating its code.
3172 Update to C++STYLE conventions.
3173 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
3174 new() instead of std::malloc().
3175 (return_temporary_buffer): Use ::operator delete() instead of
3178 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
3180 * include/bits/allocator.h: Temporary switch to new_allocator as
3181 the default to unjam bootstraps.
3183 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
3185 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
3186 * include/Makefile.in: Regenerate.
3187 * include/bits/allocator_traits.h: Remove.
3188 * include/bits/allocator.h: Remove allocator_traits.h include, and
3190 (allocator): Empty base class, inherit from the underlying allocator.
3191 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
3192 * src/allocator.cc: ...here. New. For the underlying allocators.
3193 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
3194 * config/linker-map.gnu: Remove __pool_alloc bits.
3195 * src/Makefile.am (sources): Add allocator.cc.
3196 * src/Makefile.in: Regenerate.
3197 * testsuite/20_util/allocator/1.cc: Split second test into...
3198 * testsuite/20_util/allocator/8230.cc: ...this.
3199 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
3200 typedef to use std::allocatore. Format.
3201 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
3203 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
3204 __throw_bad_alloc calls. Don't include <memory>.
3205 * include/ext/malloc_allocator.h: Remove <memory> include.
3206 * include/ext/new_allocator.h (new_allocator): Same.
3207 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
3208 declaration. Switch __alloc to _Alloc.
3209 * include/ext/hashtable.h: Remove __alloc.
3210 * include/backward/alloc.h: Only inject allocator, not
3211 implementation details.
3213 * include/ext/mt_allocator.h: Replace free with delete.
3215 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
3217 * src/globals_io.cc: Change to __gnu_internal namespace.
3218 * src/globals_locale.cc: Same.
3219 * src/locale_init.cc: Same.
3220 * src/ios_init.cc: Same.
3222 2004-01-28 Stefan Olsson <stefan@snon.net>
3224 * include/ext/mt_allocator.h: Replaced all malloc() calls with
3225 operator new(). Added support for the env variable
3226 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
3227 one in allocate() as well). Fix typos.
3229 2004-01-28 Paolo Carlini <pcarlini@suse.de>
3231 * include/bits/basic_string.h (_S_create(size_t,
3232 const _Alloc&): Change signature to take two size_type
3234 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3235 _InIterator, const _Alloc&, input_iterator_tag)): Update
3237 (_S_construct(_InIterator, _InIterator, const _Alloc&,
3238 forward_iterator_tag)): Likewise.
3239 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
3240 (_M_mutate(size_type, size_type, size_type)): Don't
3241 implement the exponential growth policy, demand it to
3242 _S_create, update call and simplify.
3243 (_M_clone(const _Alloc&, size_type)): Likewise.
3244 (_S_create(size_type, size_type, const _Alloc&)): Implement
3245 the growth policy, simplify otherwise.
3247 * include/bits/basic_string.h (_Rep::operator[]): Tweak
3248 signature to take a size_type, consistently with the other
3251 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
3253 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
3254 delete declarations, add include and test variable.
3256 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
3258 * include/bits/codecvt.h, include/bits/locale_facets.h,
3259 include/bits/postypes.h, include/bits/stl_bvector.h,
3260 include/bits/stl_multiset.h, include/bits/stl_set.h,
3261 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
3262 include/std/std_complex.h: Document.
3264 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
3267 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
3268 iword/pword selector.
3269 (ios_base::iword, ios_base::pword): Use it.
3270 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
3271 iword or pword member on alloc failure.
3272 * testsuite/27_io/ios_base/storage/11584.cc: New test.
3274 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
3275 PJ Darcy <darcypj@us.ibm.com>
3277 * configure.host: Add support for *-tpf.
3278 * crossconfig.m4: Likewise.
3279 * configure: Regenerate.
3280 * config/os/tpf: New directory.
3281 * config/os/tpf/os_defines.h: New file.
3282 * config/os/tpf/ctype_base.h: Likewise.
3283 * config/os/tpf/ctype_inline.h: Likewise.
3284 * config/os/tpf/ctype_noninline.h: Likewise.
3286 2004-01-27 Paolo Carlini <pcarlini@suse.de>
3289 * include/bits/sstream.tcc: Guard use of extern template.
3291 2004-01-27 Paolo Carlini <pcarlini@suse.de>
3293 * include/bits/basic_string.tcc
3294 (basic_string(const basic_string&, size_type, size_type),
3295 basic_string(const basic_string&, size_type, size_type,
3296 const _Alloc&)): Avoid unnecessarily constructing iterators.
3298 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3300 * config/locale/generic/c_locale.cc: Fix throw messages
3301 to use the __N marker.
3302 * config/locale/gnu/c_locale.cc: Likewise.
3303 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
3305 * docs/html/17_intro/C++STYLE: Likewise.
3306 * include/bits/basic_ios.tcc: Likewise.
3307 * include/bits/fstream.tcc: Likewise.
3308 * include/bits/vector.tcc: Likewise.
3309 * include/ext/ropeimpl.h: Likewise.
3310 * include/std/std_bitset.h: Likewise.
3311 * src/ios.cc: Likewise.
3312 * src/locale.cc: Likewise.
3313 * src/localename.cc: Likewise.
3315 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3317 * include/bits/basic_string.h (_M_replace_aux): Use the
3318 __N marker in throw message.
3319 * include/bits/basic_string.tcc (assign(const _CharT*,
3320 size_type), insert(size_type, const _CharT*, size_type),
3321 replace(size_type, size_type, const _CharT*, size_type),
3322 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
3325 * include/bits/basic_string.h, include/bits/basic_string.tcc:
3326 Fold overlong lines, minor formatting changes.
3328 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3330 * include/bits/basic_string.h (replace(iterator, iterator,
3331 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
3332 (replace(iterator, iterator, const _CharT*)): Ditto.
3333 (replace(iterator, iterator, const _CharT*, size_type)):
3334 Add missing _GLIBCXX_DEBUG_PEDASSERT.
3336 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3338 * include/bits/basic_string.tcc (replace(size_type,
3339 size_type, const _CharT*, size_type)): Implement optimized
3340 in-place algorithm for non-overlapping ranges.
3341 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
3342 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
3344 * include/bits/basic_string.tcc (insert(size_type,
3345 const _CharT*, size_type)): Tweak slightly.
3347 2004-01-26 Andreas Schwab <schwab@suse.de>
3349 * config/locale/gnu/monetary_members.cc: Restore locale before
3350 rethrowing exception.
3352 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3354 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
3356 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
3359 * include/bits/basic_string.tcc: Very minor tweaks.
3361 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3363 * testsuite/performance/string_append.cc: Increase number
3366 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3368 * include/bits/basic_string.h (erase(size_type, size_type),
3369 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
3370 instead, thus avoiding redundant check for length_error.
3372 * include/bits/basic_string.h: Tweak some comments.
3374 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3376 * include/bits/basic_string.tcc (operator+(const _CharT*,
3377 const basic_string&)): No need to go through the append
3378 taking two iterators.
3380 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3382 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
3383 Revert last change to use std::min: machine language is worse.
3384 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
3385 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3386 (find_last_not_of(_CharT, size_type)): Ditto.
3388 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
3389 size_type)): Discard the value returned by _M_check.
3390 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
3391 (append(const basic_string&, size_type, size_type)): Ditto.
3392 (copy(_CharT*, size_type, size_type)): Ditto.
3393 (compare(size_type, size_type, const basic_string&)): Ditto.
3394 (compare(size_type, size_type, const basic_string&,
3395 size_type, size_type)): Ditto.
3396 (compare(size_type, size_type, const _CharT*)): Ditto.
3397 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3399 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3401 * include/bits/basic_string.h (insert(size_type,
3402 const basic_string&, size_type, size_type)): Define inline here.
3403 * include/bits/basic_string.tcc (insert(size_type,
3404 const basic_string&, size_type, size_type)): Move inline.
3406 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3408 * include/bits/basic_string.h (assign(const basic_string&,
3409 size_type, size_type)): Define inline here.
3410 (replace(size_type, size_type, const basic_string&,
3411 size_type, size_type)): Ditto.
3412 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3413 _InputIterator, __false_type)): Only declare.
3414 (_M_replace(iterator, iterator, _InputIterator,
3415 _InputIterator)): Remove.
3416 * include/bits/basic_string.tcc (assign(const basic_string&,
3417 size_type, size_type)): Move inline.
3418 (replace(size_type, size_type, const basic_string&,
3419 size_type, size_type)): Ditto.
3420 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3421 _InputIterator, __false_type)): Define, now does also what
3422 _M_replace did before.
3423 * src/string-inst.cc (_M_replace): Don't instantiate.
3425 * include/bits/basic_string.tcc (find(const _CharT*,
3426 size_type, size_type)): Tidy.
3427 (rfind(_CharT, size_type)): Ditto.
3428 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
3429 (find_first_not_of(_CharT, size_type)): Ditto.
3430 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3431 (find_last_not_of(_CharT, size_type)): Ditto.
3433 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3436 * include/debug/bitset (operator|=): Fix typo.
3437 * testsuite/23_containers/bitset/operations/13838.cc: New.
3439 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3441 * include/bits/basic_string.tcc (insert(size_type,
3442 const _CharT*, size_type __n)): Fix length_error check.
3443 (replace(size_type, size_type, const _CharT*, size_type):
3444 Ditto; call _M_replace_safe.
3445 (_M_replace_aux(size_type, size_type, size_type, _CharT):
3446 Fix length_error check.
3447 (_M_replace(iterator, iterator, _InputIterator,
3448 _InputIterator)): Ditto, tweak.
3449 (_M_replace_safe(size_type, size_type, const _CharT*,
3450 size_type)): Remove length_error check.
3452 * include/bits/basic_string.tcc (append(const basic_string&),
3453 append(const basic_string&, size_type, size_type)): Tweak
3456 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
3457 size_type)): If __n == 0 don't call traits::copy.
3459 2004-01-23 Stefan Olsson <stefan@snon.net>
3461 * include/ext/mt_allocator.h: Reduce lock contention.
3463 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3466 * include/bits/fstream.tcc (underflow): Remove unused
3468 * include/bits/streambuf_iterator.h (equal): Ditto.
3469 * include/bits/locale_facets.h (_M_convert_from_char):
3472 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3475 * config/linker-map.gnu (nan): Delete.
3476 * libmath/mathconf.h (NAN, nan): Delete.
3477 * linkage.m4 (nan): Don't check for it.
3478 * libmath/nan.c: Delete file.
3480 * config.h.in, configure: Regenerate.
3482 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3484 * include/bits/basic_string.h (push_back(_CharT)):
3485 Call _M_replace_aux.
3486 (insert(size_type, const basic_string&)): Trivial tweak.
3487 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
3488 (insert(iterator, _CharT)): Ditto.
3489 (erase(size_type, size_type)): Ditto.
3490 (erase(iterator)): Ditto.
3491 (erase(iterator, iterator)): Ditto.
3492 (replace(size_type, size_type, size_type, _CharT)): Ditto.
3494 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
3497 * testsuite/performance/allocator_map_thread.cc: New test.
3499 2004-01-22 Paolo Carlini <pcarlini@suse.de>
3501 * include/bits/locale_facets.tcc
3502 (money_put::do_put(..., long double)): Use the basic_string
3503 constructor for char arrays, not that for C-strings, to pass
3504 __digits to do_put(..., const string_type&): __ws isn't
3507 2004-01-22 Paolo Carlini <pcarlini@suse.de>
3509 * include/bits/basic_string.h (_M_replace_safe): Change
3510 signatures to take size_types and const _CharT*.
3511 (_M_replace_aux): Likewise, takes size_types instead of
3513 (append(size_type, _CharT)): Update call.
3514 (assign(size_type, _CharT)): Ditto.
3515 (replace(iterator, iterator, size_type, _CharT)): Ditto.
3516 (_M_replace_dispatch(iterator, iterator, _Integer,
3517 _Integer, __true_type)): Ditto.
3518 * include/bits/basic_string.tcc (assign(const _CharT*,
3520 (insert(size_type, const _CharT*, size_type)): Ditto.
3521 (replace(size_type, size_type, const _CharT*,
3523 (_M_replace(iterator, iterator, _InputIterator,
3524 _InputIterator)): Ditto.
3525 (append(const basic_string&)): Ditto.
3526 (append(const basic_string&, size_type, size_type): Ditto.
3527 (append(const _CharT*, size_type): Ditto.
3528 (_M_replace_safe, _M_replace_safe): Change definitions
3529 accordingly, simplify.
3530 * string-inst.cc (_M_replace_safe): Don't instantiate.
3532 2004-01-21 Paolo Carlini <pcarlini@suse.de>
3534 * include/bits/basic_string.tcc (append(const basic_string&)):
3535 Revert previous change.
3536 (append(const basic_string&, size_type, size_type)): Revert
3537 previous change, use _M_check and _M_limit.
3539 2004-01-21 Paolo Carlini <pcarlini@suse.de>
3541 * include/bits/basic_string.h (_M_check): Change to return
3542 a checked __pos and take an additional const char* argument.
3543 (_M_fold): Rename to _M_limit, change to return a size_type,
3544 corresponding to the __off limited to the actual length.
3545 (insert(size_type, size_type, _CharT)): Update call, call
3547 (insert(iterator, _CharT)): Call replace(iterator, iterator,
3548 size_type, _CharT) instead.
3549 (erase(size_type, size_type)): Update calls.
3550 (replace(size_type, size_type, size_type, _CharT)): Ditto.
3551 (substr(size_type, size_type)): Use _M_check.
3552 * include/bits/basic_string.tcc (basic_string(const basic_string&,
3553 size_type, size_type)): Update calls.
3554 (basic_string(const basic_string&, size_type, size_type,
3555 const _Alloc&)): Ditto.
3556 (assign(const basic_string&, size_type, size_type)): Use the
3557 new _M_check and _M_limit.
3558 (insert(size_type, const basic_string&, size_type, size_type):
3560 (insert(size_type, const _CharT*, size_type)): Ditto.
3561 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
3562 (replace(size_type, size_type, const basic_string&,
3563 size_type, size_type)): Ditto.
3564 (append(const basic_string&)): Ditto.
3565 (append(const basic_string&, size_type, size_type)): Ditto.
3566 (copy(_CharT*, size_type, size_type)): Ditto.
3567 (compare(size_type, size_type, const basic_string&)): Ditto.
3568 (compare(size_type, size_type, const basic_string&,size_type,
3570 (compare(size_type, size_type, const _CharT*)): Ditto.
3571 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3573 2004-01-19 Stefan Olsson <stefan@snon.net>
3575 * include/ext/mt_allocator.h: If a thread, when it dies, still has
3576 memory on it's freelist this memory is not returned to global
3577 list. Simplification of deallocate so that memory is always
3578 returned to the calling thread id's freelist instead of to
3579 global. Fix typos. Add volatile where appropriate.
3581 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
3583 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
3584 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
3585 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
3587 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3589 * src/debug.cc: Make sure all the names are prefixed with
3590 double (or single) underscore.
3592 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3594 * src/debug.cc: Trivial formatting change.
3596 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3598 * include/bits/basic_string.tcc (_S_construct(size_type,
3599 _CharT, const _Alloc&)): Remove redundant try/catch.
3600 (_M_mutate(size_type, size_type, size_type)): Ditto.
3601 (_M_clone(const _Alloc&, size_type)): Ditto.
3603 2004-01-18 Paolo Carlini <pcarlini@suse.de>
3605 * include/bits/basic_string.h (c_str()): Simplify, due to
3606 21.3.4 the internal representation is always kept null-terminated.
3607 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
3608 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
3609 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
3612 2004-01-18 Paolo Carlini <pcarlini@suse.de>
3614 * include/bits/basic_string.h (append(size_type, _CharT)):
3615 Moved inline, just call _M_replace_aux, no source iterators at
3616 risk of being clobbered.
3617 (assign(size_type, _CharT)): Call directly _M_replace_aux.
3618 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3619 input_iterator_tag)): Remove fifth unused argument.
3620 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3621 _InputIterator, __false_type)): Update call.
3622 * include/bits/basic_string.tcc (replace(size_type, size_type,
3623 const _CharT*, size_type)): Update call.
3624 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
3625 throw string literal.
3626 (_M_replace_safe(iterator, iterator, _ForwardIterator,
3627 _ForwardIterator)): Likewise.
3628 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3629 input_iterator_tag)): Remove fifth unused argument.
3630 (append(size_type __n, _CharT __c)): Move inline.
3631 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
3632 const C*, const C*, input_iterator_tag)): Remove fifth unused
3635 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
3637 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
3638 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
3640 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
3642 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
3645 2004-01-15 Stefan Olsson <stefan@snon.net>
3647 * include/ext/mt_allocator.h: Reuse thread id's as soon as
3648 possible by changing the behaviour of thread_freelist to do
3649 push_front when threads die instead of push_back.
3651 2004-01-14 Paolo Carlini <pcarlini@suse.de>
3653 * include/bits/locale_facets.h (struct __numpunct_cache):
3654 Add member _M_grouping_size, caching the length of _M_grouping.
3655 (__numpunct_cache<>::_M_cache): Assign the latter.
3656 (__verify_grouping): Move declaration...
3657 * include/bits/locale_facets.tcc (__verify_grouping):
3658 ... here, change signature to take a const char* and a size_t
3659 for the grouping; not a template anymore.
3660 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
3661 Likewise change signature and tweak consistently.
3662 (num_get::_M_extract_float, num_get::_M_extract_int,
3663 num_put::_M_insert_int, num_put::_M_insert_float,
3664 money_get::do_get(string_type&), money_get::do_put(string_type)):
3666 * config/locale/generic/numeric_members.cc
3667 (numpunct<>::_M_initialize_numpunct): Assign the new member.
3668 * config/locale/gnu/numeric_members.cc
3669 (numpunct<>::_M_initialize_numpunct): Likewise.
3670 * src/locale-inst.cc (__add_grouping): Tweak signature.
3671 (__verify_grouping): Don't instantiate, not a template anymore.
3673 * include/bits/locale_facets.h: Rename _M_truename_len ->
3674 _M_truename_size, _M_falsename_len -> _M_falsename_size.
3675 * include/bits/locale_facets.tcc: Likewise.
3676 * config/locale/generic/numeric_members.cc: Likewise.
3677 * config/locale/gnu/numeric_members.cc: Likewise.
3679 2004-01-14 Stefan Olsson <stefan@snon.net>
3681 * include/ext/mt_allocator.h: Fixups.
3682 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
3683 * testsuite/performance/allocator_thread.cc: Same.
3685 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
3687 * testsuite/performance/ifstream_extract_float.cc: Add higher
3689 * testsuite/performance/ofstream_insert_float.cc: Same.
3691 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3693 * src/locale-misc-inst.cc (__convert_from_v(long),
3694 __convert_from_v(unsigned long), __convert_from_v(long long),
3695 __convert_from_v(unsigned long long)): Remove, unused.
3697 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
3699 * testsuite/performance/ifstream_extract_float.cc: New.
3700 * testsuite/performance/ofstream_insert_float.cc: Float generation
3703 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
3704 * 20_util/auto_ptr/1.cc: ...this.
3705 * 20_util/auto_ptr/2.cc: Same.
3706 * 20_util/auto_ptr/3.cc: Same.
3707 * 20_util/auto_ptr/3946.cc: Same.
3708 * 20_util/auto_ptr/4.cc: Same.
3709 * 20_util/auto_ptr/5.cc: Same.
3710 * 20_util/auto_ptr/6.cc: Same.
3711 * 20_util/auto_ptr/7.cc: Same.
3712 * 20_util/auto_ptr/assign_neg.cc
3713 * 20_util/pairs.cc: Break into...
3714 * 20_util/pair/1.cc: ...this.
3715 * 20_util/pair/2.cc: Same.
3716 * 20_util/pair/3.cc: Same.
3717 * 20_util/pair/4.cc: Same.
3719 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3721 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
3722 Set correctly just basefield, the only group that matters.
3724 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3726 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
3727 (_Rope_rep_base): Inherit directly from the rope allocator;
3728 use rebinding instead of _Alloc_traits; pick up data member
3729 from _Rope_rep_alloc_base.
3730 (_Rope_alloc_base): Eliminate.
3731 (_Rope_base): Inherit directly from the rope allocator; use
3732 rebinding instead of _Alloc_traits; pick up data member from
3734 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
3735 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
3737 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3740 * include/bits/basic_string.tcc (compare(size_type, size_type,
3741 const _CharT*, size_type)): Implement correctly the resolution
3742 of DR 5: basically, s is a char array, -not- a C string.
3743 * include/bits/basic_string.h: Tweak some comments.
3744 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
3745 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
3747 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
3749 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
3752 2004-01-12 Paolo Carlini <pcarlini@suse.de>
3754 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
3756 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
3759 2004-01-12 Paolo Carlini <pcarlini@suse.de>
3761 * include/bits/locale_facets.h (struct __numpunct_cache):
3762 Add members _M_truename_len and _M_falsename_len, caching
3763 the lengths of _M_truename and _M_falsename.
3764 (__numpunct_cache<>::_M_cache): Assign the latter.
3765 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
3766 num_put::do_put(bool)): Use the new members, thus avoiding
3767 computing string lengths again and again.
3768 * config/locale/generic/numeric_members.cc
3769 (numpunct<>::_M_initialize_numpunct): Assign the new members.
3770 * config/locale/gnu/numeric_members.cc
3771 (numpunct<>::_M_initialize_numpunct): Likewise.
3773 2004-01-12 Mark Mitchell <mark@codesourcery.com>
3775 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
3776 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
3778 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
3779 and remove Cygwin XFAIL.
3780 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
3781 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
3782 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
3783 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
3785 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3786 * testsuite/27_io/objects/char/7.cc: Likewise.
3787 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
3788 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
3789 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
3791 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
3793 * include/std/std_complex.h (std::complex<>::real): Return a
3794 reference. Add non-const overload.
3795 (std::complex<>::real): Likewise.
3796 (std::real): Likewise.
3797 (std::imag): Likewise.
3798 (std::operator+): Tidy.
3799 (std::operator-): Likewise.
3800 (std::operator*): Likewise.
3801 (std::operator/): Likewise.
3802 (std::operator>>): Likewise.
3804 2004-01-11 Paolo Carlini <pcarlini@suse.de>
3807 * include/bits/fstream.tcc (imbue): Exploit the external
3808 buffer to imbue 'on the fly' a new locale and convert its
3809 remainder with the new codecvt facet.
3810 (underflow): Tweak slightly to deal with this special case.
3811 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
3812 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
3813 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
3814 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
3815 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
3817 2004-01-10 Paolo Carlini <pcarlini@suse.de>
3819 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
3822 2004-01-10 Paolo Carlini <pcarlini@suse.de>
3825 * include/bits/locale_classes.h (class locale): Fix category
3827 * testsuite/22_locale/locale/13630.cc: Add.
3829 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
3831 * include/bits/locale_facets.h: Make a name really dependent. This
3832 will be needed when Core Issue 224 is implemented.
3834 2004-01-09 Paolo Carlini <pcarlini@suse.de>
3836 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
3837 * testsuite/performance/allocator_thread.cc: Likewise.
3839 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
3841 * crossconfig.m4: Add LFS, io bits to linux cross config.
3842 * acconfig.h: Remove obsolete bits, reorder.
3843 * config.h.in: Regenerate.
3847 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
3849 * include/bits/stl_list.h:
3850 * include/bits/list.tc:
3852 Performance enhancements for destructor, push_front(),
3853 push_back(), pop_front(), pop_back(), sort()
3854 Eliminated static_casts where possible.
3855 Moved code out of header files into new src/list.cc
3856 implementation file for library where possible.
3857 Remove inheritance from iterator class and create separate
3858 classes for non-constant and constant iterators.
3859 * include/bits/stl_tree.h (_Rb_tree class):
3861 Only erase contents in destructor.
3862 Eliminate unnecessary initialization in assignment operator.
3863 Optimize for the nominal case by not checking whether
3864 container is empty in clear().
3865 Re-order test in _M_insert() to improve performance.
3866 Move initialization of new node's left & right pointers to
3867 src/tree.cc to where new node's colour is initialized
3868 and to reduce the amount of inline code.
3869 Use _M_leftmost() and _M_end() to improve readability where
3871 Create separate classes for non-constant and constant
3872 iterators to clarify code, avoid extra template parameters and
3873 casting away constness.
3875 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
3877 * src/Makefile.am (sources): Add list.cc, tree.cc.
3878 * src/stl_tree.cc: Move to...
3879 * src/tree.cc: ...here.
3881 * config/linker-map.gnu: Tweaks.
3882 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
3883 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
3885 * bits/stl_vector.h: Column wrap comments.
3887 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
3889 (re-open) PR libstdc++/12658
3890 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
3891 (locale::global): Likewise.
3893 2004-01-07 Paolo Carlini <pcarlini@suse.de>
3895 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
3896 Remove redundant #include.
3897 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
3898 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
3899 re-enable normal testing.
3900 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
3902 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
3903 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
3905 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
3907 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
3909 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
3911 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
3913 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
3915 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
3917 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
3918 More properly, #include <locale>.
3919 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
3920 Remove redundant #include.
3921 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
3922 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
3923 redundant DejaGnu directive.
3924 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
3927 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
3928 Stefan Olsson <stefan@snon.net>
3930 * scripts/check_performance: Use -pthread.
3931 * testsuite/performance/allocator.cc: Tweaks, add list.
3932 * testsuite/performance/allocator_thread.cc: New.
3934 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
3936 * include/bits/locale_facets.h: Document public classes and
3938 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
3941 2004-01-06 Paolo Carlini <pcarlini@suse.de>
3943 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
3944 Remove redundant #includes.
3945 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
3947 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
3949 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
3950 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
3951 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
3952 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
3953 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
3954 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
3955 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
3956 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
3957 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
3958 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
3959 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
3960 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
3961 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
3962 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
3963 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
3965 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
3967 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
3969 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
3971 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
3973 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
3974 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
3975 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
3977 2004-01-04 Paolo Carlini <pcarlini@suse.de>
3979 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
3980 Remove redundant #includes.
3981 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
3983 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
3985 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
3987 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
3989 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
3991 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
3993 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3995 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3997 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3999 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
4001 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
4003 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
4006 2004-01-04 Mark Mitchell <mark@codesourcery.com>
4009 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
4011 * testsuite/27_io/basic_fstream/4.cc: Likewise.
4012 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
4013 * testsuite/27_io/basic_ios/4.cc: Likewise.
4014 * testsuite/27_io/basic_iostream/4.cc: Likewise.
4015 * testsuite/27_io/basic_istream/4.cc: Likewise.
4016 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
4017 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
4018 * testsuite/27_io/basic_ostream/4.cc: Likewise.
4019 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
4020 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
4021 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
4023 2004-01-04 Paolo Carlini <pcarlini@suse.de>
4025 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
4026 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
4027 always use double underscored names.
4028 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
4030 * include/bits/locale_facets.h (struct __numpunct_cache):
4031 Dimension _M_atoms_out and _M_atoms_in one position smaller.
4032 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out