1 2004-07-11 Paolo Carlini <pcarlini@suse.de>
3 Add wchar_t counterparts of the basic_streambbuf<char> tests.
4 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
5 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
7 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
8 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
10 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
11 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
12 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
13 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
14 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
16 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
18 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
20 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
22 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
23 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
25 2004-07-11 Phil Edwards <phil@codesourcery.com>
27 * acinclude.m4: Cosmetic shell syntax fixes.
28 * configure.ac: Bring comment inline with reality.
29 * configure.host: Both of the above. Move 'arm' case to right
30 place in host_cpu switch.
31 * aclocal.m4, configure: Regenerate.
33 2004-07-09 Paolo Carlini <pcarlini@suse.de>
35 Add wchar_t counterparts of the basic_stringbuf<char> tests.
36 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
37 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
38 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
39 3599.cc, 9988.cc: Likewise.
40 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
42 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
44 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
46 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
48 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
49 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
50 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
51 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
53 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
55 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
57 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
59 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
60 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
62 2004-07-08 Paolo Carlini <pcarlini@suse.de>
64 * include/bits/gslice.h: Trivial formatting fixes.
65 * include/bits/gslice_array.h: Likewise.
66 * include/bits/indirect_array.h: Likewise.
67 * include/bits/mask_array.h: Likewise.
68 * include/bits/slice_array.h: Likewise.
69 * include/bits/valarray_after.h: Likewise.
70 * include/bits/valarray_array.h: Likewise.
71 * include/bits/valarray_before.h: Likewise.
72 * include/std/std_valarray.h: Likewise.
74 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
77 * include/bits/basic_string.h (basic_string::operator=): Revert.
79 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
81 * configure.ac (libtool_VERSION): To 6:2:0.
82 * configure: Regenerated.
84 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
86 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
89 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
91 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
93 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
96 2004-07-07 Paolo Carlini <pcarlini@suse.de>
99 * include/bits/sstream.tcc (overflow): When reallocating _M_string
100 use an exponential grow policy.
101 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
102 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
104 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
107 * crossconfig.m4: Add in bits for djgpp.
108 * configure: Regenerate.
110 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
112 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
113 instantiation of set and multiset (functor param given as int).
115 2004-07-04 Paolo Carlini <pcarlini@suse.de>
117 * include/bits/basic_string.h: Trivial formatting fixes and/or
118 const-ification of some variables.
119 * include/bits/deque.tcc: Likewise.
120 * include/bits/stl_algobase.h: Likewise.
121 * include/bits/stl_bvector.h: Likewise.
122 * include/bits/stl_construct.h: Likewise.
123 * include/bits/stl_deque.h: Likewise.
124 * include/bits/stl_pair.h: Likewise.
125 * include/bits/stl_vector.h: Likewise.
126 * include/bits/vector.tcc: Likewise.
128 2004-07-04 Paolo Carlini <pcarlini@suse.de>
130 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
131 systems with no COMDAT or weak support.
132 * testsuite/25_algorithms/copy/2.cc: Likewise.
133 * testsuite/25_algorithms/copy/3.cc: Likewise.
134 * testsuite/25_algorithms/copy/4.cc: Likewise.
136 2004-07-03 Paul Brook <paul@codesourcery.com>
138 * configure.ac: Set ABI_TWEAKS_SRCDIR.
139 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
140 setting atomicity_dir. Override type_cpu for arm based targets.
141 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
142 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
143 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
144 * libsupc++/vec.cc: Ditto.
145 * config/cpu/arm/cxxabi_tweaks.h: New file.
146 * config/cpu/generic/cxxabi_tweaks.h: New file.
147 * */Makefile.in: Regenerate.
148 * configure: Regenerate.
150 2004-07-02 Paolo Carlini <pcarlini@suse.de>
152 * include/bits/type_traits.h (_Is_normal_iterator): Move...
153 * include/bits/cpp_type_traits.h: ... here, renamed to
154 __is_normal_iterator and consistent with the other traits.
155 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
156 to the struct __copy_normal and three specializations.
157 (__copy_backward_output_normal_iterator,
158 __copy_backward_input_normal_iterator): Likewise, convert to
159 the struct __copy_backward_normal and three specializations.
160 (copy, copy_backward): Use the latter.
161 (__copy_aux, __copy_backward_aux): Very minor tweaks.
163 2004-07-01 Paolo Carlini <pcarlini@suse.de>
165 * include/bits/stl_algobase.h (__copy_trivial): Remove.
166 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
167 __is_trivially_copyable, __are_same and __copy::copy.
168 (__copy): Rewrite as a class template and two specializations.
169 (__copy_ni2): Simplify, just call __copy_aux.
171 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
173 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
174 for destination value type != source value type.
176 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
177 Per Bothner <per@bothner.com>
178 Mohan Embar <gnustuff@thisiscool.com>
181 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
182 (__glibcxx_mutex): Encapsulate mutex init function into type for
183 threaded configurations without __GTHREAD_MUTEX_INIT.
184 (lock::lock): Make device member a reference.
186 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
188 * src/allocator.cc: Same.
190 2004-06-30 Brad Spencer <spencer@infointeractive.com>
192 * include/ext/mt_allocator.h: Handle allocations at static
193 initialization that happen before _S_options is (automatically)
194 constructed; set _S_init even if _M_force_new is true.
196 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
198 * config/linker-map.gnu: Revert new exports.
200 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
201 Stuart Anderson <anderson@netsweng.com>
203 * config/linker-map.gnu: Add destructor exports for abstract base
204 classes to conform to LSB.
206 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
207 Paolo Carlini <pcarlini@suse.de>
209 * include/bits/cpp_type_traits.h: Add __is_pointer and
210 __is_trivially_copyable.
211 * include/bits/stl_algobase.h (fill, fill_n): Slightly
212 tweak to use the latter.
213 (__copy_backward_dispatch): Remove.
214 (__copy_backward_aux): Rewrite to use __is_pointer and
215 __is_trivially_copyable and __copy_backward::copy_b.
216 (__copy_backward): Rewrite as a class template and two
219 2004-06-30 Paolo Carlini <pcarlini@suse.de>
221 * testsuite/25_algorithms/copy.cc: Move to...
222 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
223 * testsuite/25_algorithms/copy/2.cc: New.
224 * testsuite/25_algorithms/copy/3.cc: New.
225 * testsuite/25_algorithms/copy/4.cc: New.
227 2004-06-29 Paul Brook <paul@codesourcery.com>
229 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
230 element size in the cookie.
232 2004-06-28 Paolo Carlini <pcarlini@suse.de>
234 * include/bits/cpp_type_traits.h: Move the additions to
235 namespace __gnu_internal outside of namespace std; trivial
238 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
240 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
241 Revert -Weffc++ changes that defined copy ctory and or assignment
243 * libsupc++/tinfo.cc (__upcast_result): Same.
245 2004-06-28 Paolo Carlini <pcarlini@suse.de>
247 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
248 the algorithm used to name the categories.
250 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
252 * include/Makefile.am: Give a .gch extension to
253 the PCH files, not only to the directory.
254 * include/Makefile.in: Regenerate.
256 2004-06-28 Paolo Carlini <pcarlini@suse.de>
258 * config/locale/gnu/monetary_members.cc
259 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
260 assignments of _M_decimal_point and _M_thousands_sep.
262 2004-06-27 Paolo Carlini <pcarlini@suse.de>
264 * docs/html/17_intro/contribute.html: Update some links.
265 * docs/html/17_intro/porting-howto.html: Likewise.
266 * docs/html/17_intro/porting-howto.xml: Likewise.
267 * docs/html/18_support/howto.html: Likewise.
268 * docs/html/21_strings/howto.html: Likewise.
269 * docs/html/27_io/howto.html: Likewise.
270 * docs/html/configopts.html: Likewise.
271 * docs/html/ext/howto.html: Likewise.
272 * docs/html/faq/index.html: Likewise.
273 * docs/html/install.html: Don't mention 2.x compilers.
275 2004-06-27 Paolo Carlini <pcarlini@suse.de>
277 * include/ext/rope: Trivial formatting fixes.
278 * include/ext/ropeimpl.h: Likewise.
280 2004-06-26 Paolo Carlini <pcarlini@suse.de>
283 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
284 availability of strto(u)ll, not used anymore in the iostreams.
285 * configure: Regenerate.
287 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
290 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
292 * configure: Regenerate.
294 2004-06-25 Paul Brook <paul@codesourcery.com>
296 * libsupc++/cxxabi.h: Define __ARM_EABI__
298 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
300 2004-06-25 Paul Brook <paul@codesourcery.com>
302 * include/bits/concurrence.h: Still create mutex object when
305 2004-06-25 Paolo Carlini <pcarlini@suse.de>
307 * include/bits/stl_algobase.h (fill, fill_n): Revert last
308 change: actually we need to copy construct an object of type
309 _Tp, not of type iterator_traits<>::value_type, therefore the
312 2004-06-25 Paolo Carlini <pcarlini@suse.de>
314 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
315 dispatch: use iterator_traits<>::value_type, not _Tp.
317 2004-06-25 Paolo Carlini <pcarlini@suse.de>
319 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
320 * testsuite/25_algorithms/fill/2.cc: Likewise.
322 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
323 Paolo Carlini <pcarlini@suse.de>
325 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
326 for fill and fill_n, respectively: when copying is cheap, use a
327 temporary to avoid a memory read in each iteration.
329 2004-06-25 Paolo Carlini <pcarlini@suse.de>
331 * testsuite/25_algorithms/fill/1.cc: New.
332 * testsuite/25_algorithms/fill/2.cc: Likewise.
334 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
336 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
337 Remove copy constructor and assignment operator.
339 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
341 * include/bits/concurrence.h (__gnu_cxx::lock): New.
342 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
343 (__pool_base::_M_get_mutex): New.
344 * include/bits/allocator.h: Tweak.
345 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
346 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
347 * include/bits/stl_threads.h: Remove.
348 * include/Makefile.am: Also here.
349 * include/Makefile.in: Regenerate.
351 * src/locale_init.cc: Use __gnu_cxx::lock.
353 * src/allocator.cc: Move all instantiations...
354 * src/allocator-inst.cc: ...here.
356 2004-06-23 Andrew Pinski <apinski@apple.com>
358 * linkage.m4: Remove check for libmx.
359 * configure: Regenerate.
361 2004-06-23 Paolo Carlini <pcarlini@suse.de>
364 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
365 Don't require the _DefaultConstructibleConcept.
366 (struct _ForwardIteratorConcept): Require it here.
368 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
370 * include/bits/istream.tcc (getline): Make sure arguments passed
371 to min/max have the same type.
372 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
373 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
375 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
377 * docs/html/abi.html: Update links.
379 2004-06-22 Paolo Carlini <pcarlini@suse.de>
381 * testsuite/26_numerics/complex_inserters_extractors.cc,
382 complex_value.cc, buggy_complex.cc: Move to...
383 * testsuite/26_numerics/complex/: ... here.
384 * testsuite/26_numerics/c99_classification_macros_c++.cc,
385 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
386 fabs_inline.cc: Move to...
387 * testsuite/26_numerics/cmath/: ... here.
388 * testsuite/26_numerics/binary_closure.cc, slice.cc,
389 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
390 valarray_name_lookup.cc, valarray_operators.cc,
391 valarray_subset_assignment.cc: Move to...
392 * testsuite/26_numerics/valarray/: ... here (new dir).
393 * testsuite/26_numerics/sum_diff.cc: Move to...
394 * testsuite/26_numerics/numeric/: ... here (new dir).
396 2004-06-22 Paolo Carlini <pcarlini@suse.de>
398 * include/std/std_istream.h (ignore(streamsize __n = 1,
399 int_type __delim = traits_type::eof())): Split into...
400 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
401 int_type __delim)): The first two can be much more simpler
402 and efficient than the fully general case; also, the last
403 two can take advantage of the same mechanism already used
405 * include/bits/istream.tcc (ignore(streamsize __n = 1,
406 int_type __delim = traits_type::eof()): Remove.
407 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
408 int_type __delim)): New.
410 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
412 * config/linker-map.gnu: Use wildcards for
413 __basic_file::sys_open(FILE*, _Ios_Openmode).
415 2004-06-20 Paolo Carlini <pcarlini@suse.de>
417 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
419 2004-06-18 Paolo Carlini <pcarlini@suse.de>
421 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
422 the alignment requested.
423 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
424 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
425 (__mt_alloc<>::deallocate): Likewise.
427 2004-06-18 Paolo Carlini <pcarlini@suse.de>
430 * include/debug/safe_base.h
431 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
432 _Safe_sequence_base::operator=): Provide definitions.
433 * testsuite/23_containers/bitset/cons/16020.cc: New.
435 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
437 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
438 (__pool_base): Remove unused template parameter. Add
439 protected. Move lock data into __pool_base::_Lock. Remove static
441 (__pool_base::_M_get_free_list): New.
442 (__pool_alloc): Move _S_force new here.
443 * src/allocator.cc: Move out of line __pool_base definitions here.
444 * config/linker-map.gnu: Export bits from __pool_base.
446 2004-06-18 Paolo Carlini <pcarlini@suse.de>
448 * config/locale/gnu/numeric_members.cc
449 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
450 assignments of _M_decimal_point and _M_thousands_sep.
451 * config/locale/gnu/time_members.cc
452 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
453 and reformat assignments of date and time fields.
455 2004-06-16 Paolo Carlini <pcarlini@suse.de>
457 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
458 to use _Data_allocate.
459 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
460 (rope<>::_S_substring): Likewise.
461 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
462 (rope<>::c_str()): Likewise.
463 (rope<>::replace_with_c_str()): Likewise.
465 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
466 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
468 (_Rope_iterator_base<>::_S_setcache): Likewise.
469 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
470 (rope<>::_S_substring): Likewise.
471 (rope<>::_S_dump): Likewise.
472 (rope<>::_S_fetch_ptr): Likewise.
473 (rope<>::_S_compare): Likewise.
474 (rope<>::replace_with_c_str()): Likewise.
476 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
477 * testsuite/ext/rope/2.cc: New.
479 2004-06-16 Paolo Carlini <pcarlini@suse.de>
480 Matt Austern <austern@apple.com>
482 * testsuite/ext/rope/3.cc: New.
484 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
486 * acinclude.m4: Remove useless multilib configury.
487 * Makefile.am: Remove useless multilib rules.
488 * aclocal.m4: Regenerate.
489 * Makefile.in: Regenerate.
490 * configure: Regenerate.
492 2004-06-15 Paolo Carlini <pcarlini@suse.de>
494 * include/ext/hashtable.h: Trivial formatting fixes.
495 * include/ext/rb_tree: Likewise.
497 2004-06-14 Paolo Carlini <pcarlini@suse.de>
499 * include/ext/hash_map: Trivial formatting fixes.
500 * include/ext/hash_set: Likewise.
501 * include/ext/memory: Likewise.
502 * include/ext/numeric: Likewise.
504 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
506 * Makefile.in: Regenerate with automake 1.8.5.
508 * include/Makefile.in: Same.
509 * libmath/Makefile.in: Same.
510 * libsupc++/Makefile.in: Same.
511 * po/Makefile.in: Same.
512 * src/Makefile.in: Same.
513 * testsuite/Makefile.in: Same.
515 2004-06-14 Paolo Carlini <pcarlini@suse.de>
517 * include/ext/slist: Trivial formatting fixes.
519 2004-06-14 Paolo Carlini <pcarlini@suse.de>
521 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
522 Don't use the 'magic number' 10 in the computation of __minlen;
523 never access __name past __minlen; in the loop over __i3, don't
524 decrease __nmatches and increase __i3 at once, only either of
527 2004-06-13 Paolo Carlini <pcarlini@suse.de>
529 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
530 time_get<>::do_get_date): Use only once _M_extract_via_format,
531 instead of going through "%X"/"%x" and calling it two times
534 2004-06-12 Paolo Carlini <pcarlini@suse.de>
536 * include/ext/algorithm: Trivial formatting fixes.
537 * include/ext/functional: Likewise.
538 * include/ext/hash_fun.h: Likewise.
539 * include/ext/iterator: Likewise.
541 2004-06-12 Paolo Carlini <pcarlini@suse.de>
543 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
544 size_type)): Reimplement using std::search.
545 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
547 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
549 * testsuite/performance/21_strings/string_find.cc: New.
551 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
553 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
555 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
557 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
558 this function return a value.
560 2004-06-09 Paolo Carlini <pcarlini@suse.de>
563 * include/bits/stl_deque.h: Consistently with stl_set.h, define
564 pointer as allocator's pointer, likewise for reference,
565 const_pointer, and const_reference.
566 * include/bits/stl_list.h: Likewise.
567 * include/bits/stl_map.h: Likewise.
568 * include/bits/stl_multimap.h: Likewise.
569 * include/bits/stl_vector.h: Likewise.
571 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
573 * crossconfig.m4: Remove signbit, signbitf, signbitl.
574 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
575 builtin math functions instead of AC_DEFINE_UNQUOTED.
576 * configure: Regenerate.
578 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
580 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
581 * docs/doxygen/mainpage.html: Remove links.
583 2004-06-08 Jason Merrill <jason@redhat.com>
585 * config/linker-map.gnu: Use wildcards for
586 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
588 2004-06-08 Paolo Carlini <pcarlini@suse.de>
590 * include/ext/pool_allocator.h: Convert to a global free-list,
591 as per the original SGI/HP design: move the implementation
592 details to struct __pool_base, from which __pool_alloc derives.
593 * src/allocator.cc: Instantiate __pool_base.
595 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
596 Paolo Carlini <pcarlini@suse.de>
598 * testsuite/testsuite_performance.h
599 (resource_counter::allocated_memory): Make it return the right
600 number of bytes requested by the allocators/application. This is
601 the sbrk+mmaped memory.
603 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
605 * include/std/std_complex.h (log): Tidy.
607 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
609 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
610 * testsuite/testsuite_abi.cc: Same.
611 * configure.ac (libtool_VERSION): Bump to 6:1:0.
612 * configure: Regenerate.
613 * aclocal.m4: Regenerate.
615 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
617 * include/std/std_complex.h (complex<_Tp>): Properly indent
619 (complex<>::__rep): New.
620 (__complex_abs): New. Dispatch to built-ins.
622 (__complex_arg): New. Dispatch to built-ins.
624 (__complex_cos): New. Dispatch to built-ins.
626 (__complex_cosh): New. Dispatch to built-ins.
628 (__complex_exp): New. Dispatch to built-ins.
630 (__complex_log): New. Dispatch to built-ins.
632 (__complex_sin): New. Dispatch to built-ins.
634 (__complex_sinh): New. Dispatch to built-ins.
636 (__complex_sqrt): New. Dispatch to built-ins.
638 (__complex_tan): New. Dispatch to built-ins.
640 (__complex_tanh): New. Dispatch to built-ins.
642 (__complex_pow): New. Dispatch to built-ins.
645 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
646 Benjamin Kosnik <bkoz@redhat.com>
649 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
650 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
651 * config/io/basic_file_stdio.cc (__basic_file::file): New.
652 * config/io/basic_file_stdio.h: Define.
654 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
657 * docs/html/documentation.html: Update doxygen links for 3.4.0.
659 2004-05-27 Jan Beulich <jbeulich@novell.com>
661 * scripts/create_testsuite_files: Tweak.
663 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
666 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
667 bits to do the same thing.
669 2004-05-24 Paolo Carlini <pcarlini@suse.de>
671 * include/bits/istream.tcc (ignore): Correctly deal with
672 n == numeric_limits<streamsize>::max().
673 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
675 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
676 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
677 __n == numeric_limits<>::min().
679 * include/bits/istream.tcc: Minor tweaks.
681 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
683 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
685 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
687 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
689 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
691 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
695 * include/bits/basic_string.h (basic_string::operator=): Return
696 pointer to this instead of result of assign. Although redundant,
697 this doesn't impact resultant codegen.
699 * include/bits/locale_facets.h (__numpunct_cache): Declare
700 assignment opxserator and copy constructor private.
701 (__timepunct_cache): Same.
702 (__moneypunct_cache): Same.
703 (collate): Use member initialization list for _M_c_locale_collate.
704 * config/locale/gnu/messages_members.h: Same.
705 * config/locale/gnu/time_members.h (__timepunct): Same.
706 * src/codecvt.cc: Use member initialization list to initialize
708 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
709 * config/os/gnu-linux/ctype_noninline.h: Same.
710 * src/locale.cc (_Impl): Same.
711 * src/locale_init.cc: Same.
712 * src/localename.cc: Same.
714 * include/bits/basic_ios.h (basic_ios): Complete member
716 * include/bits/istream.tcc (basic_istream::sentry): Same.
717 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
718 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
719 _M_pback to member initialization list.
720 * include/std/std_streambuf.h: Same.
721 * include/std/std_sstream.h: Same, for _M_mode.
722 * src/ios.cc (ios_base): Same.
724 * include/ext/rope: Make derived classes match exception
726 specifications. Add copy constructors and assignment operators.
728 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
729 constructor and assignment operator protected.
730 (_Safe_iterator_base): Same.
731 * include/debug/formatter.h (_Error_formatter): Define copy
732 constructor and assignment operator.
734 * include/backward/strstream: Declare assignment operator and copy
737 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
739 * testsuite/testsuite_hooks.h (func_callback): Declare copy
740 constructor and assignment operator private.
741 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
742 exception specifications of base class.
743 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
744 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
745 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
747 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
749 * libsupc++/cxxabi.h: Remove duplicated and useless public and
750 private keywords in class declarations. Format. Use
751 stddef.h. Expose declarations to "C" compilation.
752 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
754 (__dyncast_result): Same.
755 * libsupc++/vec.cc (uncatch_exception): Same, use member
758 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
760 * testsuite/abi_check.cc: Add unistd.h.
762 2004-05-22 Paolo Carlini <pcarlini@suse.de>
765 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
766 __int_to_char(unsigned long long)): Showpos is not relevant
768 * testsuite/22_locale/num_put/put/char/15565.cc: New.
769 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
771 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
773 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
774 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
775 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
776 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
777 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
778 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
780 2004-05-21 Matthias Klose <doko@debian.org>
782 * docs/doxygen/run_doxygen: Bump required version.
784 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
786 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
787 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
789 2004-05-21 Paolo Carlini <pcarlini@suse.de>
791 * include/bits/istream.tcc (ignore): Remove redundant line.
792 (readsome): Tidy, closely following 27.6.1.3, p30.
794 2004-05-20 Paolo Carlini <pcarlini@suse.de>
796 * include/bits/istream.tcc (operator>>(basic_istream<>&,
797 basic_string<>&)): Use a temporary buffer, thus avoiding
798 reallocation for common case.
799 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
801 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
804 * include/bits/istream.tcc: Const-ification of a few variables.
806 * include/bits/ostream.tcc: Trivial formatting fixes and
807 const-ification of some variables.
809 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
813 * docs/doxygen/Intro.3: Remove Allocators.3.
814 Add new extension headers, extension namespace list.
815 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
816 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
817 __gnu_debug::. Remove __policy_ renames.
818 * docs/doxygen/guide.html: Add dot note.
819 * docs/doxygen/stdheader.cc: Edit, add files.
820 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
822 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
824 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
826 2004-05-18 Jan Beulich <jbeulich@novell.com>
829 * scripts/create_testsuite_files: Also find source files through
832 2004-05-18 Jan Beulich <jbeulich@novell.com>
835 * testsuite/lib/libstdc++.exp: Make test files writable.
837 2004-05-18 Paolo Carlini <pcarlini@suse.de>
839 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
842 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
844 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
845 allocation loop which removes blocks from the global free list
846 from O(N) to O(1) when the required blocks are <= the number
849 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
851 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
853 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
855 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
856 * testsuite/23_containers/deque/14340.cc: New.
857 * testsuite/23_containers/list/14340.cc: New.
858 * testsuite/23_containers/map/14340.cc: New.
859 * testsuite/23_containers/multimap/14340.cc: New.
860 * testsuite/23_containers/multiset/14340.cc: New.
861 * testsuite/23_containers/set/14340.cc: New.
862 * testsuite/23_containers/vector/14340.cc: New.
864 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
867 * include/debug/safe_iterator.h (_Safe_iterator converting
868 constructor): Only allow declaration to instantiate when the
869 incoming _Safe_iterator has exactly the right iterator type.
871 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
873 * include/bits/boost_concept_check.h: Fix old attribute syntax.
874 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
875 to pass concept-checks.
876 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
877 * testsuite/23_containers/set/modifiers/swap.cc: Same.
878 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
880 2004-05-16 Paolo Carlini <pcarlini@suse.de>
882 * include/std/std_bitset.h: Minor formatting fixes.
884 2004-05-16 Paolo Carlini <pcarlini@suse.de>
886 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
887 Consistently update __bin._M_free[0].
888 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
889 __bin._M_free[0] to simplify the while loop (i.e., the number
890 of iterations becomes known at the outset).
892 2004-05-15 Paolo Carlini <pcarlini@suse.de>
894 * include/std/std_bitset.h: Trivial formatting fixes.
896 2004-05-14 Paolo Carlini <pcarlini@suse.de>
897 Ivan Godard <igodard@pacbell.net>
900 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
901 * testsuite/23_containers/bitset/ext/15361.cc: New.
903 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
906 * crossconfig.m4: Add C99 math bits for linux crosses.
907 * configure: Regenerate.
909 2004-05-13 Simon Marshall <simon.marshall@misys.com>
910 Benjamin Kosnik <bkoz@redhat.com>
913 * include/bits/locale_facets.h: Fix for -fno-for-scope.
914 * include/debug/safe_sequence.h: Same.
915 * include/debug/safe_iterator.tcc: Same.
916 * src/debug.cc: Same.
917 * src/locale.cc: Same.
918 * src/locale_init.cc: Same.
919 * src/localename.cc: Same.
920 * config/locale/gnu/ctype_members.cc: Same.
921 * config/locale/gnu/numeric_members.cc: Same.
922 * testsuite/testsuite_abi.cc: Same.
923 * testsuite/testsuite_hooks.cc: Same.
925 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
927 * docs/html/abi.html: Document effect of -fabi-version on value
928 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
931 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
934 * docs/html/faq/index.html: Update docs for libsupc++ usage.
936 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
939 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
941 (_GLIBCXX_mutex_address): Same.
942 (_GLIBCXX_once): Same.
943 (_GLIBCXX_mutex_init): Same.
944 (_GLIBCXX_mutex_address_init): Same.
946 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
948 * docs/html/abi.html: New.
949 * docs/html/abi.txt: Remove.
950 * docs/html/documentation.html: Add link.
951 * testsuite/Makefile.am: Add files.
952 * testsuite/Makefile.in: Regenerated.
953 * testsuite/abi_check.cc: Move and modify code into...
954 * testsuite/testsuite_abi.cc: Add.
955 * testsuite/testsuite_abi.h: Add.
957 * docs/html/17_intro/TODO: Update.
958 * include/bits/stl_pair.h: Format.
960 2004-05-06 Matthias Klose <doko@debian.org>
962 * include/backward/iterator.h: Add GPL copyright info,
963 with exception clause.
964 * include/bits/boost_concept_check.h: Likewise.
966 * libsupc++/tinfo.h: Likewise.
967 * po/string_literals.cc: Likewise.
969 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
971 * acinclude.m4: Replace -W with more speaking -Wextra.
972 * configure: Rebuilt.
974 2004-05-03 Paolo Carlini <pcarlini@suse.de>
976 Optimize locale::_M_impl->_M_names for the most common cases:
977 !_M_names[0] means unnamed; !_M_names[1] means all the categories
978 the same name (_M_names[0] && _M_names[1] means that the full set
979 of _M_names must be processed, the general case).
980 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
981 Tweak, saving work when !_M_names[1].
982 (locale::locale(const locale&, _Facet*): Simplify: now just setting
983 _M_names[0] = 0 means unnamed.
984 * src/locale.cc (locale::operator==): Deal first with the common,
985 easy cases, otherwise fall back to locale::name().
986 (locale::name()): Tweak, if !_M_names[0] just return "*".
987 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
988 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
989 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
990 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
991 Simplify when !std::strchr, just updating _M_names[0]; clean up.
992 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
993 for the general case (full set of names), then do the usual work;
996 * src/locale.cc (locale::name()): Reserve space in __ret.
997 * src/locale_init.cc (locale::global(const locale&)): Save
998 the name in a temporary.
999 * src/localename.cc (locale::locale(const char*)): Reserve space
1002 2004-04-29 Paolo Carlini <pcarlini@suse.de>
1004 * src/locale.cc (locale::operator==): Always avoid constructing
1005 locale::name(), directly compare pairs of _M_names.
1007 2004-04-26 Paolo Carlini <pcarlini@suse.de>
1009 * include/bits/istream.tcc: Fix comment.
1011 2004-04-26 Paolo Carlini <pcarlini@suse.de>
1013 * include/bits/stl_vector.h: Trivial formatting fixes.
1014 * include/bits/vector.tcc: Likewise.
1016 2004-04-25 Paolo Carlini <pcarlini@suse.de>
1018 PR libstdc++/15002 (continued again)
1019 * include/bits/istream.tcc (getline(basic_istream<>&,
1020 basic_string<>&, _CharT)): Use a temporary buffer, thus
1021 avoiding reallocation for common case.
1023 * include/bits/basic_string.tcc (_S_construct(_InIterator,
1024 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
1025 of temporary buffer to a power of two.
1027 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
1029 2004-04-25 Paolo Carlini <pcarlini@suse.de>
1031 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
1033 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
1035 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
1037 2004-04-24 Paolo Carlini <pcarlini@suse.de>
1038 Petur Runolfsson <peturr02@ru.is>
1040 PR libstdc++/15002 (continued)
1041 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
1042 streamsize, char_type)): Use traits::find/copy in a loop to speed
1043 up greatly the function in the common case (I/O buffer size >> 1).
1045 2004-04-24 Paolo Carlini <pcarlini@suse.de>
1047 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
1049 * include/bits/istream.tcc (getline(basic_istream<>&,
1050 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
1051 of sbumpc(), consistently with the other functions, thus also
1052 dealing correctly with the case of exceeded string::max_size().
1054 2004-04-24 Matthias Klose <doko@debian.org>
1056 Jonathan Wakely <cow@compsoc.man.ac.uk>
1057 * docs/html/configopts.html: Fix reference to allocator config option.
1059 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
1061 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
1062 * configure: Regenerate.
1064 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
1066 PR libstdc++/15047, libstdc++/11610
1067 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
1068 (libstdc++_init): Don't pass outdir to v3-copy-files.
1070 2004-04-21 Paolo Carlini <pcarlini@suse.de>
1072 * include/bits/deque.tcc: Trivial formatting fixes.
1073 * include/bits/stl_deque.h: Likewise.
1074 * include/bits/stl_list.h: Likewise.
1075 * include/bits/stl_tree.h: Likewise.
1077 2004-04-21 Paolo Carlini <pcarlini@suse.de>
1078 Andrew Pinski <pinskia@physics.uc.edu>
1080 * include/bits/basic_string.tcc (_M_mutate): Don't compute
1081 __src unnecessarily.
1083 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
1085 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
1086 Clarify assertion, set test variable to false before assert.
1087 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
1088 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
1089 * testsuite/27_io/ios_base/storage/2.cc: Same.
1091 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
1093 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
1094 * testsuite/27_io/fpos/14320-3.cc: Same.
1096 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
1097 * testsuite/27_io/fpos/1.cc: Same.
1098 * testsuite/27_io/basic_stringstream/2.cc: Same.
1099 * testsuite/27_io/basic_stringbuf/4.cc: Same.
1100 * testsuite/27_io/basic_stringbuf/1.cc: Same.
1101 * testsuite/27_io/basic_stringbuf/2.cc: Same.
1102 * testsuite/27_io/basic_streambuf/2.cc: Same.
1103 * testsuite/27_io/basic_ostringstream/2.cc: Same.
1104 * testsuite/27_io/basic_ostream/2.cc: Same.
1105 * testsuite/27_io/basic_ofstream/2.cc: Same.
1106 * testsuite/27_io/basic_istringstream/2.cc: Same.
1107 * testsuite/27_io/basic_istream/2.cc: Same.
1108 * testsuite/27_io/basic_iostream/2.cc: Same.
1109 * testsuite/27_io/basic_ios/2.cc: Same.
1110 * testsuite/27_io/basic_ifstream/2.cc: Same.
1111 * testsuite/27_io/basic_fstream/2.cc: Same.
1112 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
1114 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
1115 unsigned against zero.
1116 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
1117 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
1119 * testsuite/18_support/new_delete_placement.cc: Initialize
1120 variables before first use.
1121 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
1122 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
1123 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
1124 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
1126 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
1127 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
1129 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
1130 * testsuite/27_io/types/2.cc: Same.
1132 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
1134 * testsuite/27_io/fpos/14775.cc: Same.
1136 2004-04-19 Paolo Carlini <pcarlini@suse.de>
1138 PR libstdc++/15002 (partial)
1139 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
1140 Special case __n2 == 1, not calling traits_type::assign/copy.
1142 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
1144 * include/bits/stl_bvector.h: Use _M_impl._M_start.
1146 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
1148 * include/bits/c++config (_GLIBCXX_STD): New.
1149 * src/list.cc: Use it.
1150 * include/std/std_bitset.h: Same.
1151 * include/bits/vector.tcc: Same.
1152 * include/bits/stl_set.h: Same.
1153 * include/bits/stl_multiset.h: Same.
1154 * include/bits/stl_multimap.h: Same.
1155 * include/bits/stl_map.h: Same.
1156 * include/bits/stl_list.h: Same.
1157 * include/bits/stl_vector.h: Same.
1158 * include/bits/stl_bvector.h: Same.
1159 * include/bits/stl_deque.h: Same.
1160 * include/bits/deque.tcc: Same.
1161 * include/bits/list.tcc: Same.
1162 * include/debug/vector: Same.
1163 * include/debug/set.h: Same.
1164 * include/debug/multiset.h: Same.
1165 * include/debug/multimap.h: Same.
1166 * include/debug/map.h: Same.
1167 * include/debug/list: Same.
1168 * include/debug/deque: Same.
1169 * include/debug/bitset: Same.
1170 * include/debug/formatter.h (__gnu_debug): Remove using directive.
1171 Add using declaration for std::type_info.
1172 * include/debug/safe_iterator.h: Add using declaration for
1173 std::iterator_traits and std::pair.
1174 * src/debug_list.cc: New.
1175 * src/Makefile.am: Add debug_list.cc.
1176 * src/Makefile.in: Regenerate.
1177 * config/linker-map.gnu: Add _List_node_base exports for std and
1180 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
1181 idiom that other containers use.
1182 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
1184 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1187 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
1189 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
1190 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
1192 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1194 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
1196 * config.h.in: Regenerate.
1198 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1200 * config/locale/generic/monetary_members.cc
1201 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
1202 btowc unnecessarily, just cast to wchar_t (the concerned chars
1203 all belong to the basic character set).
1204 * config/locale/generic/numeric_members.cc
1205 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1206 * config/locale/gnu/monetary_members.cc
1207 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
1208 * config/locale/gnu/numeric_members.cc
1209 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1211 2004-04-15 Paolo Carlini <pcarlini@suse.de>
1213 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
1214 avoid constructing unnecessarily this->name().
1216 2004-04-14 Zack Weinberg <zack@codesourcery.com>
1218 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
1219 Change definition of CXX to use $(shell) instead of backticks.
1220 * testsuite/Makefile.in: Regenerate.
1222 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
1224 * testsuite/performance/20_util/allocator/list_sort_search.cc:
1225 Minor formatting fixes.
1226 * testsuite/performance/20_util/allocator/map_mt_find.cc:
1229 2004-04-12 Paolo Carlini <pcarlini@suse.de>
1231 * config/locale/gnu/numeric_members.cc
1232 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
1233 in __uselocale, since btowc is called for chars belonging to
1234 the basic character set.
1236 2004-04-09 Paolo Carlini <pcarlini@suse.de>
1238 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
1239 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
1240 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
1241 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
1242 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
1243 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
1244 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
1245 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
1246 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
1247 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
1248 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
1249 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
1250 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
1251 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
1252 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
1253 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
1254 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
1256 2004-04-07 Paolo Carlini <pcarlini@suse.de>
1258 * config/locale/generic/time_members.cc
1259 (__timepunct<char>::_M_initialize_timepunct,
1260 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
1261 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
1262 * config/locale/gnu/time_members.cc
1263 (__timepunct<char>::_M_initialize_timepunct,
1264 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
1265 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
1266 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
1268 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
1269 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
1270 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
1271 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
1272 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
1273 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
1274 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
1275 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
1276 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
1277 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
1278 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
1279 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
1280 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
1281 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
1282 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
1283 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
1284 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
1285 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
1286 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
1287 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
1288 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
1289 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
1290 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
1291 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
1292 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
1293 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
1294 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
1295 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
1296 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
1297 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
1298 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
1299 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
1300 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
1301 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
1302 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
1303 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
1305 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
1307 2004-04-07 Paolo Carlini <pcarlini@suse.de>
1309 * config/locale/gnu/monetary_members.cc
1310 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
1311 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
1312 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
1313 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
1314 * config/locale/gnu/numeric_members.cc
1315 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
1316 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
1318 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
1320 Fixups for EDG front end.
1321 * include/ext/rope: Instead of non-existent function
1322 _Data_allocate, use allocator's allocate. Use this.
1323 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
1324 enumerations from _Rope_RopeRep here.
1325 * include/ext/ropeimpl.h: Same.
1326 * src/ext-inst.cc (_S_min_len): Fix up definition.
1328 * config/locale/gnu/ctype_members.cc: Qualify base class members
1330 * config/locale/generic/ctype_members.cc: Same.
1331 * config/locale/gnu/messages_members.h: Same.
1332 * config/locale/generic/messages_members.h: Same.
1333 * src/ctype.cc: Same.
1334 * include/bits/codecvt.h: Same.
1336 * include/bits/boost_concept_check.h: Declare.
1337 (__error_type_must_be_an_unsigned_integer_type): Remove this.
1338 (__error_type_must_be_an_integer_type): Remove this.
1339 (__error_type_must_be_a_signed_integer_type): Remove this.
1341 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
1343 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
1344 specification to definition.
1345 (__cxa_allocate_exception): Same.
1346 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
1347 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
1348 (__cxa_get_globals): Same.
1350 * libsupc++/del_op.cc: Add comment about freestanding.
1352 2004-04-05 Paolo Carlini <pcarlini@suse.de>
1354 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1355 The critical section is actually very small, only two assignments.
1357 2004-04-04 Paolo Carlini <pcarlini@suse.de>
1358 Petur Runolfsson <peturr02@ru.is>
1360 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
1361 adapted from libstdc++/11378.
1363 2004-04-03 Paolo Carlini <pcarlini@suse.de>
1365 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
1366 some duplicated code.
1367 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
1368 in the single threaded case.
1369 * testsuite/performance/20_util/allocator/list_sort_search.cc:
1370 Reorder and renumber the tests consistently with the other testfiles.
1371 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1372 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1373 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1375 2004-04-02 Paolo Carlini <pcarlini@suse.de>
1377 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1378 Rearrange arithmetic to avoid computing two divisions at
1381 2004-04-01 Paolo Carlini <pcarlini@suse.de>
1383 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
1384 Streamline the second half, wrapping it in a single
1385 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
1386 conditionals inside loops.
1388 2004-04-01 Paolo Carlini <pcarlini@suse.de>
1391 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
1392 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
1393 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
1394 to _GLIBCXX_RES_LIMITS.
1395 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
1397 * testsuite/testsuite_hooks.h: Declare set_file_limit.
1398 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
1399 and setrlimit(RLIMIT_FSIZE).
1400 * testsuite/27_io/fpos/14775.cc: New.
1401 * config.h.in: Regenerate.
1402 * configure: Likewise.
1404 2004-03-31 Paolo Carlini <pcarlini@suse.de>
1406 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
1407 In v3 uses of sscanf, the special floating-point numbers INF,
1408 INFINITY, etc., cannot occur in input, therefore, if the latter
1409 is too large, ERANGE is always stored in errno, no need of finitel.
1411 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
1414 * include/bits/stl_tree.h: Adjust initialization list order.
1416 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
1418 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
1420 2004-03-29 Paolo Carlini <pcarlini@suse.de>
1422 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
1423 on allocator behavior, the memory pointed by data2 may well be not
1426 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
1429 * include/bits/basic_string.tcc
1430 (basic_string::basic_string(const basic_string&)): Pass to
1431 _Rep::_M_grab the actual allocator of the string being constructed
1432 not the default constructed one.
1434 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
1437 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
1438 (__enc_traits::_M_destroy): New.
1439 (__enc_traits::~__enc_traits): Use it.
1440 (__enc_traits::operator=): Use _M_destroy, _M_init.
1441 (__enc_traits::__enc_traits): Same.
1443 2004-03-27 Petur Runolfsson <peturr02@ru.is>
1445 * testsuite/ext/enc_filebuf/char/13598.cc: New.
1447 2004-03-27 Paolo Carlini <pcarlini@suse.de>
1449 * include/ext/mt_allocator.h: Uglify consistently names of
1450 variables, members and classes; tidy.
1452 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
1454 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1455 Deallocation loop rewrote.
1457 2004-03-26 Paolo Carlini <pcarlini@suse.de>
1459 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1460 __mt_alloc<>::deallocate): Protect two instances of
1461 block->thread_id with __GTHREADS.
1463 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
1465 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
1466 default argument in constructors.
1467 (_Rb_tree::_M_empty_initialize): Remove.
1469 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
1471 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
1472 * testsuite/23_containers/set/operators/1_neg.cc: Same.
1474 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1476 * include/bits/cpp_type_traits.h: Changed __is_pod
1477 completely. Now, it does not use any of the previous type_traits
1478 to detect the pod types, and it also detects function pointers as
1481 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
1482 which encapsulates the internal implementation of an rb_tree. Made
1483 the allocator a base class of this class instead of the rb_tree,
1484 which was not conforming. This _Rb_tree_impl class is also
1485 specialized on whether the _Compare parameter is a POD type or
1486 not. If so, then it maintains the comparison function as a data
1487 member, otherwise it makes the _Compare parameter a base class of
1488 itself. Also, _M_key_compare is now a function instead of a data
1489 member, so that the above trick can work properly. Delegated the
1490 initialization of the other data members to this newly created
1491 class. Also, now other member functions of rb_tree must refer to
1492 _M_key_compare as _M_impl._M_key_compare(). The other data members
1493 (*) can be referenced to as _M_impl.(*), where
1494 (*) includes _M_header, and _M_node_count.
1496 2004-03-25 Paolo Carlini <pcarlini@suse.de>
1498 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
1499 Add _M_min_bin, the size in bytes of the smallest bin.
1500 (__mt_alloc<>::tune()): Tweak accordingly.
1501 (__mt_alloc<>::tune(size_t, ...)): Likewise.
1502 (__mt_alloc<>::block_record): Change to a union: members next
1503 and thread_id are never used at the same time.
1504 (__mt_alloc<>::allocate): Update consistently.
1505 (__mt_alloc<>::deallocate): Likewise.
1506 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
1507 _S_bin_size for the configurable _M_min_size.
1509 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1511 * include/bits/stl_list.h: Created a _List_impl class and made it
1512 derive from the allocator, instead of the list deriving from the
1513 allocator class, which was not conformant. Changed all references
1514 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
1515 as above (changed all references to the concerned variables).
1517 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1519 * include/bits/stl_deque.h: Created a _Deque_impl class and made
1520 it derive from the allocator, instead of the deque deriving from
1521 the allocator class, which was not conformant. Changed all
1522 references to the _M_start, _M_finish, _M_map, and _M_map_size to
1524 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
1525 qualification in 2 places where it was missing.
1526 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
1528 * include/bits/deque.tcc: Same as above (changed all references to
1529 the concerned variables).
1531 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1533 * include/bits/stl_vector.h: Created a _Vector_impl class and made
1534 it derive from the allocator, instead of the _Vector_base class,
1535 deriving from the allocator which was not conformant. Changed all
1536 references to the _M_start, _M_finish, and _M_end_of_storage to
1538 * include/bits/vector.tcc: Same as above (changed all references
1539 to the concerned variables).
1541 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1543 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
1544 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
1545 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
1547 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
1549 * include/ext/malloc_allocator.h: Fixed the construct function to
1550 call global placement new instead of assignment. Added a check
1551 after the return from malloc to check whether returned pointer is
1552 NULL, and if so, throw std::bad_alloc().
1553 * include/ext/debug_allocator.h: Added a check in the deallocate
1554 function to check whether the user has passed a NULL pointer or
1557 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
1559 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
1561 2004-03-24 Andreas Schwab <schwab@suse.de>
1563 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
1564 warning from IA64 assembler.
1566 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
1568 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
1569 function call __builtin_ctz instead of the while loop.
1570 (allocate) -> If condition has __builtin_expect.
1571 (deallocate) -> Ditto.
1572 Renamed a few left-over variables and typedefs according to the
1573 C++STYLE mentioned in the documentation.
1574 Protected calls to __gthread* by __gthread_active_p(), whose value
1575 is cached in the local variable __threads_active.
1577 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
1579 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1580 Use linear algorithm for producer.
1582 2004-03-24 Paolo Carlini <pcarlini@suse.de>
1584 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1585 __mt_alloc<>::deallocate): Avoid redundant conditionals.
1587 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
1589 * include/bits/locale_facets.h: Tweaks for 80 column.
1590 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
1591 (__moneypunct_cache::_M_cache): Same.
1592 (num_get): Don't inherit from __num_base.
1594 (money_get): Don't inherit from money_base.
1596 (__timepunct::_M_am_pm_format): New.
1597 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
1598 (time_get::_M_extract_name): Same.
1599 (time_get::_M_extract_via_format): Same.
1600 * include/bits/locale_facets.tcc: Tweaks for 80 column.
1601 Use _M_getloc instead of getloc.
1602 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
1603 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
1604 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
1606 2004-03-22 Paolo Carlini <pcarlini@suse.de>
1608 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
1609 * configure: Regenerate.
1610 * config/allocator/pool_allocator_base.h: New.
1611 * include/ext/pool_allocator.h: Convert to a standard-conforming
1613 * src/allocator.cc: Tweak instantiations.
1614 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
1615 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
1616 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
1617 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1618 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1619 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1621 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
1623 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
1624 inline" and attribute-unused. Qualify parameter __mem with
1626 (__exchange_and_add): Ditto. Add back memory clobber to asm.
1628 2004-03-20 Paolo Carlini <pcarlini@suse.de>
1630 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
1632 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
1634 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
1636 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
1638 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
1640 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
1642 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
1644 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
1646 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
1648 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
1651 2004-03-20 Paolo Carlini <pcarlini@suse.de>
1653 * include/std/std_valarray.h: Document DR389 [Ready].
1654 * docs/html/ext/howto.html: Add an entry for DR389.
1656 2004-03-19 Michael Eager <eager@mvista.com>
1658 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
1661 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1663 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
1665 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
1666 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
1667 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
1668 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
1669 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
1670 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
1671 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
1672 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
1673 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
1675 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1676 Petur Runolfsson <peturr02@ru.is>
1679 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
1680 no way to find out the conversion used by the underlying FILE*.
1681 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
1682 * testsuite/27_io/objects/char/9.cc: Tweak.
1684 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1687 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
1688 memory allocation/deallocation calls.
1689 * testsuite/ext/14648.cc: New.
1691 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
1694 * include/backward/bvector.h (bit_vector): Allocator is in std
1697 2004-03-19 Phil Edwards <phil@codesourcery.com>
1699 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
1700 not libiconv. SUBST this variable as well.
1701 * testsuite/Makefile.am (site.exp): New target, based on that
1702 created by automake. Also set libiconv.
1704 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
1705 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1706 testsuite/Makefile.in: Regenerate.
1708 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
1710 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
1711 new_allocator for all hosts.
1712 * configure: Regenerate.
1714 2004-03-16 Paolo Carlini <pcarlini@suse.de>
1716 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
1717 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
1719 2004-03-15 Paolo Carlini <pcarlini@suse.de>
1721 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1722 Adjust the logic underlying the parsing of symbol to deal
1723 correctly with an optional sign component (i.e., when either
1724 negative_sign or positive_sign is empty)
1725 * testsuite/22_locale/money_get/get/char/19.cc: New.
1726 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
1728 2004-03-15 Paolo Carlini <pcarlini@suse.de>
1730 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1731 Do not accept an incomplete currency symbol.
1732 * testsuite/22_locale/money_get/get/char/18.cc: New.
1733 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
1735 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
1737 * config/allocator: New.
1738 * config/allocator/bitmap_allocator_base.h: New.
1739 * config/allocator/malloc_allocator_base.h: New.
1740 * config/allocator/mt_allocator_base.h: New.
1741 * config/allocator/new_allocator_base.h: New.
1742 * include/bits/allocator.h: Include c++allocator.h.
1743 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
1744 * aclocal.m4: Regenerate.
1745 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
1746 * configure: Regenerate.
1747 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
1748 * include/Makefile.in: Regenerate.
1749 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
1751 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
1753 * include/bits/allocator.h: Revert.
1755 2004-03-12 Paolo Carlini <pcarlini@suse.de>
1757 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
1758 * include/bits/gslice_array.h: Add comment about DR 253.
1759 * include/bits/indirect_array.h: Likewise.
1760 * include/bits/mask_array.h: Likewise.
1761 * include/bits/slice_array.h: Likewise.
1763 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
1765 * testsuite/20_util/allocator/14176.cc: New.
1766 * include/ext/mt_allocator.h: Formatting fixes.
1768 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
1770 * include/Makefile.am (ext_headers): Add
1771 ${ext_srcdir}/bitmap_allocator.h .
1772 * include/Makefile.in: Regenerate.
1773 * docs/html/ext/ballocator_doc.txt: New file.
1774 * include/ext/bitmap_allocator.h: New file.
1775 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
1777 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1778 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
1779 test for the bitmap_allocator<>.
1780 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
1781 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1782 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1784 2004-03-11 Paolo Carlini <pcarlini@suse.de>
1786 * include/std/std_complex.h (pow(const complex&, const _Tp&),
1787 pow(const _Tp&, const complex&), pow(const complex&,
1788 const complex&)): Fully qualify with std:: a few calls.
1789 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
1791 2004-03-11 Steven Bosscher <stevenb@suse.de>
1794 * include/c_std/cmath.tcc (__cmath_power): Define inline.
1796 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
1798 * configure.ac: Bump AC_PREREQ to 2.59.
1800 2004-03-10 Paolo Carlini <pcarlini@suse.de>
1802 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
1804 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
1805 Paolo Carlini <pcarlini@suse.de>
1808 * include/std/std_complex.h (pow(const complex&, const _Tp&),
1809 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
1810 * testsuite/26_numerics/complex/13450.cc: New.
1812 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
1813 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
1815 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
1818 * include/bits/gslice_array.h (gslice_array()): Make public.
1819 (operator=(gslice_array)): Make public. Implement.
1820 * include/bits/indirect_array.h (indirect_array()): Make public.
1821 * include/bits/mask_array.h (mask_array()): Make public.
1822 (operator=(mask_array)): Make public. Implement.
1823 * include/bits/valarray_array.tcc (__valarray_copy):
1824 Comment. Add versions for gslice_array and mask_array.
1825 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
1827 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
1829 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
1831 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
1832 * testsuite/23_containers/set/modifiers/swap.cc: Same.
1833 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1834 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1835 * testsuite/23_containers/map/modifiers/swap.cc: Same.
1836 * testsuite/23_containers/list/modifiers/swap.cc: Same.
1838 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
1840 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
1843 * testsuite/23_containers/deque/modifiers/swap.cc: New.
1844 * testsuite/23_containers/list/modifiers/swap.cc: New.
1845 * testsuite/23_containers/map/modifiers/swap.cc: New.
1846 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
1847 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
1848 * testsuite/23_containers/set/modifiers/swap.cc: New.
1849 * testsuite/23_containers/vector/modifiers/swap.cc: New.
1851 2004-03-08 Petur Runolfsson <peturr02@ru.is>
1854 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
1856 2004-03-08 Paolo Carlini <pcarlini@suse.de>
1858 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
1859 * include/bits/stl_multiset.h: Add comment about DR 103.
1860 * include/bits/stl_set.h: Likewise.
1862 2004-03-08 Paolo Carlini <pcarlini@suse.de>
1864 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1865 The value _space_ indicates that at least one space is required
1867 * testsuite/22_locale/money_get/get/char/17.cc: New.
1868 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
1870 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
1871 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
1873 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
1874 Remove redundant conditional on __str.size().
1876 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
1878 * include/bits/allocator.h: Switch defaults to mt_alloc.
1880 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
1882 * include/ext/mt_allocator.h (_S_initialize): If
1883 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
1885 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
1888 * src/locale_init.cc (locale::locale): Lock critical regions with
1890 (locale::global): Same.
1891 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
1892 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
1893 (__glibcxx_mutex_lock): Same.
1895 * config/cpu/generic/atomicity.h: Remove
1896 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
1897 * src/misc-inst.cc: Move all locking bits out of this file.
1899 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
1900 * src/misc-inst.cc: Same.
1901 * config/cpu/hppa/atomicity.h: Same.
1903 * config/linker-map.gnu: Remove types in the signature of atomic
1904 exports, as they may vary.
1906 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1908 * include/bits/locale_facets.tcc: Tweak the comment preceding
1909 has_facet: doesn't throw.
1911 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1913 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
1914 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
1915 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
1916 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
1917 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
1918 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
1919 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
1920 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
1922 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1924 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1925 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
1926 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
1927 * testsuite/testsuite_character.h (struct __gnu_test::character):
1929 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
1932 2004-03-05 Paolo Carlini <pcarlini@suse.de>
1934 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
1936 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
1938 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
1940 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
1942 * testsuite/23_containers/deque/invalidation/4.cc: Same.
1943 * testsuite/23_containers/list/invalidation/1.cc: Same.
1944 * testsuite/23_containers/list/invalidation/2.cc: Same.
1945 * testsuite/23_containers/list/invalidation/3.cc: Same.
1946 * testsuite/23_containers/list/invalidation/4.cc: Same.
1947 * testsuite/23_containers/map/invalidation/2.cc: Same.
1948 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
1949 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1950 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
1951 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1952 * testsuite/23_containers/set/invalidation/1.cc: Same.
1953 * testsuite/23_containers/set/invalidation/2.cc: Same.
1954 * testsuite/23_containers/vector/invalidation/1.cc: Same.
1955 * testsuite/23_containers/vector/invalidation/2.cc: Same.
1956 * testsuite/23_containers/vector/invalidation/3.cc: Same.
1957 * testsuite/23_containers/vector/invalidation/4.cc: Same.
1959 2004-03-04 Paolo Carlini <pcarlini@suse.de>
1961 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
1963 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
1965 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
1966 from the dg-options.
1967 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
1968 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
1969 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
1970 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
1971 * testsuite/23_containers/vector/resize/1.cc: Likewise.
1972 * testsuite/26_numerics/complex_value.cc: Likewise.
1973 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
1974 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1975 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
1976 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1977 * testsuite/27_io/objects/char/5.cc: Likewise.
1978 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
1979 * testsuite/backward/11460.cc: Likewise.
1980 * testsuite/thread/pthread7-rope.cc: Likewise.
1982 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
1983 missing test variable.
1984 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
1985 missing test variable.
1987 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
1989 * testsuite/20_util/allocator/1.cc: Provide explicit
1990 instantiations for non-weak systems.
1991 * testsuite/20_util/binders.cc: Same.
1992 * testsuite/20_util/allocator/8230.cc: Same.
1993 * testsuite/20_util/allocator/10378.cc: Same.
1994 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
1995 * testsuite/22_locale/ctype/is/char/2.cc: Same.
1996 * testsuite/thread/pthread7-rope.cc: Same.
1997 * testsuite/thread/pthread6.cc: Same.
1998 * testsuite/thread/pthread5.cc: Same.
1999 * testsuite/thread/pthread4.cc: Same.
2000 * testsuite/thread/pthread1.cc: Same.
2001 * testsuite/ext/rope.cc: Same.
2002 * testsuite/ext/hash_set.cc: Same.
2003 * testsuite/ext/hash_map.cc: Same.
2004 * testsuite/ext/concept_checks.cc: Same.
2005 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
2006 * testsuite/25_algorithms/unique/2.cc: Same.
2007 * testsuite/25_algorithms/unique/1.cc: Same.
2008 * testsuite/25_algorithms/rotate.cc: Same.
2009 * testsuite/25_algorithms/min_max.cc: Same.
2010 * testsuite/25_algorithms/equal.cc: Same.
2011 * testsuite/24_iterators/rel_ops.cc: Same.
2012 * testsuite/24_iterators/iterator.cc: Same.
2013 * testsuite/24_iterators/insert_iterator.cc: Same.
2014 * testsuite/24_iterators/front_insert_iterator.cc: Same.
2015 * testsuite/24_iterators/back_insert_iterator.cc: Same.
2016 * testsuite/23_containers/vector/resize/1.cc: Same.
2017 * testsuite/23_containers/vector/modifiers/2.cc: Same.
2018 * testsuite/23_containers/vector/modifiers/1.cc: Same.
2019 * testsuite/23_containers/vector/invalidation/4.cc: Same.
2020 * testsuite/23_containers/vector/invalidation/3.cc: Same.
2021 * testsuite/23_containers/vector/invalidation/2.cc: Same.
2022 * testsuite/23_containers/vector/invalidation/1.cc: Same.
2023 * testsuite/23_containers/vector/element_access/1.cc: Same.
2024 * testsuite/23_containers/vector/cons/6513.cc: Same.
2025 * testsuite/23_containers/vector/cons/3.cc: Same.
2026 * testsuite/23_containers/vector/cons/2.cc: Same.
2027 * testsuite/23_containers/vector/cons/1.cc: Same.
2028 * testsuite/23_containers/vector/capacity/8230.cc: Same.
2029 * testsuite/23_containers/vector/capacity/1.cc: Same.
2030 * testsuite/23_containers/vector/bool/6886.cc: Same.
2031 * testsuite/23_containers/stack/members/7158.cc: Same.
2032 * testsuite/23_containers/set/invalidation/2.cc: Same.
2033 * testsuite/23_containers/set/invalidation/1.cc: Same.
2034 * testsuite/23_containers/queue/members/7157.cc: Same.
2035 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
2036 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2037 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2038 * testsuite/23_containers/multiset/insert/1.cc: Same.
2039 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2040 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2041 * testsuite/23_containers/map/operators/1.cc: Same.
2042 * testsuite/23_containers/map/invalidation/2.cc: Same.
2043 * testsuite/23_containers/map/invalidation/1.cc: Same.
2044 * testsuite/23_containers/map/insert/1.cc: Same.
2045 * testsuite/23_containers/list/operators/4.cc: Same.
2046 * testsuite/23_containers/list/operators/3.cc: Same.
2047 * testsuite/23_containers/list/operators/2.cc: Same.
2048 * testsuite/23_containers/list/operators/1.cc: Same.
2049 * testsuite/23_containers/list/modifiers/3.cc: Same.
2050 * testsuite/23_containers/list/modifiers/2.cc: Same.
2051 * testsuite/23_containers/list/modifiers/1.cc: Same.
2052 * testsuite/23_containers/list/invalidation/4.cc: Same.
2053 * testsuite/23_containers/list/invalidation/3.cc: Same.
2054 * testsuite/23_containers/list/invalidation/2.cc: Same.
2055 * testsuite/23_containers/list/invalidation/1.cc: Same.
2056 * testsuite/23_containers/list/cons/9.cc: Same.
2057 * testsuite/23_containers/list/cons/8.cc: Same.
2058 * testsuite/23_containers/list/cons/7.cc: Same.
2059 * testsuite/23_containers/list/cons/6.cc: Same.
2060 * testsuite/23_containers/list/cons/5.cc: Same.
2061 * testsuite/23_containers/list/cons/4.cc: Same.
2062 * testsuite/23_containers/list/cons/3.cc: Same.
2063 * testsuite/23_containers/list/cons/2.cc: Same.
2064 * testsuite/23_containers/list/cons/1.cc: Same.
2065 * testsuite/23_containers/list/capacity/1.cc: Same.
2066 * testsuite/23_containers/deque/operators/1.cc: Same.
2067 * testsuite/23_containers/deque/invalidation/4.cc: Same.
2068 * testsuite/23_containers/deque/invalidation/3.cc: Same.
2069 * testsuite/23_containers/deque/invalidation/2.cc: Same.
2070 * testsuite/23_containers/deque/invalidation/1.cc: Same.
2071 * testsuite/23_containers/deque/cons/2.cc: Same.
2072 * testsuite/23_containers/deque/cons/1.cc: Same.
2074 * src/allocator.cc: Add char, wchar_t instantiations
2075 to match extern template declarations in memory.h.
2077 2004-03-03 Paolo Carlini <pcarlini@suse.de>
2079 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2080 Fix warning regression.
2082 2004-03-03 Paolo Carlini <pcarlini@suse.de>
2084 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2085 Deal properly with empty __digits and negative frac_digits,
2088 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
2090 * docs/html/documentation.html: Regenerate.
2092 2004-03-02 Paolo Carlini <pcarlini@suse.de>
2095 * include/bits/postypes.h (class streamoff): Remove, now
2096 streamoff is just typedef a 64 bit signed integer type.
2097 (class fpos): Tweak consistently.
2098 * testsuite/27_io/fpos/14320-1.cc: New.
2099 * testsuite/27_io/fpos/14320-2.cc: New.
2100 * testsuite/27_io/fpos/14320-3.cc: New.
2101 * testsuite/27_io/fpos/14320-4.cc: New.
2102 * testsuite/27_io/fpos/14320-5.cc: New.
2103 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
2105 2004-03-02 Paolo Carlini <pcarlini@suse.de>
2107 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2108 Reorganize a bit the main parsing loop, thus early detecting
2109 an empty value component.
2110 * testsuite/22_locale/money_get/get/char/16.cc: New.
2111 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
2113 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
2115 Support automake 1.8.2
2116 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
2117 * po/Makefile.am (EXTRA_DIST): New.
2118 * po/Makefile.in: Regenerate.
2119 * Makefile.in: Same.
2120 * include/Makefile.in: Same.
2121 * libmath/Makefile.in: Same.
2122 * libsupc++/Makefile.in: Same.
2123 * src/Makefile.in: Same.
2124 * testsuite/Makefile.in: Same.
2126 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
2127 __GXX_WEAK__ instead of SUPPORTS_WEAK.
2128 (${host_builddir}/gthr-default.h): Same.
2129 (${host_builddir}/gthr.h): Same.
2130 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
2131 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
2133 * aclocal.m4: Regenerate.
2134 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
2135 * config.h.in: Regenerate.
2138 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
2140 Support autoconf 2.59
2141 * acinclude.m4: Quote correctly.
2142 * aclocal.m4: Regenerate.
2145 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
2147 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
2149 * docs/html/18_support/howto.html: Add bit about writing to
2150 stderr, mostly by Zack.
2152 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2154 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2155 money_get<>::do_get(string_type&)): ... and two more.
2157 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2159 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2160 Fix thinkos in the switch from string_type& to string& as last
2163 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2165 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2166 Also when parsing exponent sign, first look for thousands_sep
2167 and decimal_point; tweak a bit.
2168 * testsuite/22_locale/num_get/get/char/15.cc: New.
2169 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
2171 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2172 num_get<>::_M_extract_int): Reorder some conditionals.
2174 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2176 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2177 Consistently with numpunct, enforce the requirements in
2178 22.2.6.3, p3 for the thousands separators; tweak a bit.
2179 * testsuite/22_locale/money_get/get/char/15.cc: New.
2180 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
2182 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
2184 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
2185 testsuite_files from correct multilib blddir when running
2188 2004-02-29 Phil Edwards <phil@codesourcery.com>
2190 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
2191 the summary file to the logfile.
2192 * testsuite/Makefile.in: Regenerate.
2194 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2196 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
2198 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
2199 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
2201 2004-02-28 Paolo Carlini <pcarlini@suse.de>
2203 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2204 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
2205 no 'decimal-point' in the middle: in this case too we must fix
2206 up __found_grouping; slightly tweak.
2207 * testsuite/22_locale/num_get/get/char/14.cc: New.
2208 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
2210 2004-02-27 Eric Christopher <echristo@redhat.com>
2211 Phil Edwards <phil@codesourcery.com>
2213 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
2214 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
2215 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
2216 testsuite/22_locale/collate/hash/wchar_t/2.cc,
2217 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
2218 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
2219 testsuite/22_locale/collate/transform/wchar_t/2.cc,
2220 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
2221 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2222 Use dg-require-iconv.
2223 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
2225 2004-02-27 Phil Edwards <phil@codesourcery.com>
2226 Eric Christopher <echristo@redhat.com>
2228 * testsuite/config/default.exp: Update with comments.
2229 (${tool}_target_compile): New wrapper routine.
2230 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
2231 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
2233 (load_gcc_lib, v3track): New routines.
2234 (v3-init): Rename to libstdc++_init.
2235 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
2236 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
2238 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
2240 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
2242 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
2244 * config/os/irix/irix5.2/atomicity.h: Merge..
2245 * config/os/irix/irix6.5/atomicity.h: Merge..
2246 * config/os/irix/atomicity.h: ...into this.
2247 * config/os/irix/atomic_word.h: New.
2248 * configure.host: Set atomic_word_dir for irix.
2250 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
2251 * i386/atomicity.h: Same.
2252 * m68k/atomicity.h: Same.
2253 * sparc/atomicity.h: Same.
2255 2004-02-27 David Edelsohn <edelsohn@gnu.org>
2257 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
2258 static, and inline keywords.
2260 2004-02-27 Paolo Carlini <pcarlini@suse.de>
2262 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2263 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
2264 call reserve on the __tmp_gruping string.
2265 (num_get<>::_M_extract_float): Don't append unnecessarily a
2266 char() to the returned string.
2267 * include/bits/locale_facets.tcc: Trivial reformattings.
2269 2004-02-27 Paolo Carlini <pcarlini@suse.de>
2271 * include/bits/locale_facets.h (money_get<>::_M_extract):
2272 Change signature: now takes a plain string&.
2273 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2274 Update consistently the definition; use the moneypunct cache
2275 to parse the value; use swap to change __units.
2276 (money_get<>::do_get(long double&)): Update call of _M_extract,
2277 avoid ctype::narrow, not correct wrt the standard.
2278 (money_get<>::do_get(string_type&)): Likewise, update call
2279 of _M_extract, use ctype::widen.
2280 * src/locale-inst.cc: Tweak instantiations of _M_extract.
2282 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
2284 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
2285 * testsuite/demangle/abi_examples/02.cc: Likewise.
2286 * testsuite/demangle/regression/cw-11.cc: Likewise.
2287 * testsuite/demangle/regression/cw-16.cc: Change two expected
2288 results to match libiberty demangler output.
2290 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
2293 * libsupc++/Makefile.am: Use libiberty demangler.
2294 (c_sources): Add cp-demangle.c.
2295 * libsupc++/Makefile.in: Regenerate.
2296 * src/Makefile.am (sources): Remove demangle.cc.
2297 * src/Makefile.in: Regenerate.
2298 * include/Makefile.am (bits_headers): Move demangle.h.
2299 (ext_headers): ...here.
2300 * include/Makefile.in: Regenerate.
2301 * include/bits/demangle.h: Move...
2302 * include/ext/demangle.h: ...here.
2303 * src/demangle.cc: Remove.
2305 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
2307 * include/bits/demangle.h: Add type template parameter to all
2308 templates with just an Allocator template parameter.
2310 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
2312 * include/bits/atomicity.h: New, forward declarations for __atomic_add
2313 and __exchange_and_add.
2314 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
2315 * config/cpu/cris/atomic_word.h: Same.
2316 * config/cpu/sparc/atomic_word.h: Same.
2317 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
2318 Qualifiy with __gnu_cxx.
2319 (_Callback_list::_M_add_reference): Same.
2320 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
2321 (locale::facet::_M_remove_reference): Same.
2322 (locale::_Impl::_M_add_reference): Add.
2323 (locale::_Impl::_M_remove_reference): Same.
2324 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
2325 (basic_string::_Rep::_M_dispose): Same.
2326 * src/ios.cc (ios_base::xalloc): Same.
2327 * src/ios_init.cc (ios_base::Init::Init): Same.
2328 (ios_base::Init::~Init): Same.
2329 * src/locale.cc (locale::id::_M_id): Same.
2330 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
2331 static, and inline keywords.
2332 * config/cpu/alpha/atomicity.h: Same.
2333 * config/cpu/cris/atomicity.h: Same.
2334 * config/cpu/generic/atomicity.h: Same.
2335 * config/cpu/hppa/atomicity.h: Same.
2336 * config/cpu/i386/atomicity.h: Same.
2337 * config/cpu/ia64/atomicity.h: Same.
2338 * config/cpu/m68k/atomicity.h: Same.
2339 * config/cpu/mips/atomicity.h: Same.
2340 * config/cpu/powerpc/atomicity.h: Same.
2341 * config/cpu/s390/atomicity.h: Same.
2342 * config/cpu/sparc/atomicity.h: Same.
2344 * src/Makefile.am (host_sources): Add atomicity.cc.
2345 (atomicity.cc): New rule.
2346 * src/Makefile.in: Regenerate.
2347 * include/Makefile.am (host_headers): Remove host atomicity.h.
2348 (host_headers): Add atomic_word.h.
2349 (bits_headers): Add bits atomicity.h.
2350 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2351 * include/Makefile.in: Regenerate.
2352 * configure.host (atomic_word_dir): Add.
2353 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
2354 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2355 * configure: Regenerate.
2356 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
2358 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
2359 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2361 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
2363 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
2364 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
2365 Fix markup, more <link> tags.
2367 2004-02-25 Carlo Wood <carlo@alinoe.com>
2370 namespace __gnu_cxx::demangler
2371 (session<Allocator>::qualifier_list_Allocator): Add
2372 (session<Allocator>::M_qualifier_list_alloc): Add
2373 (session<Allocator>::decode_type_with_postfix):
2374 Use M_qualifier_list_alloc instead of calling operator new/delete.
2376 2004-02-24 Paolo Carlini <pcarlini@suse.de>
2379 * include/bits/postypes.h (class streamoff): Add operator++(),
2380 operator++(int), operator--() and operator--(int).
2381 * testsuite/27_io/fpos/14252.cc: New.
2383 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
2385 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
2386 error in handling of hex constants.
2388 2004-02-24 Paolo Carlini <pcarlini@suse.de>
2390 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2391 Prefer basic_string::append to operator+= and a temporary.
2393 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
2395 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
2396 Only use fputs, not write.
2398 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
2400 * include/ext/malloc_allocator.h: Add operators ==, !=.
2401 * include/ext/new_allocator.h: Add operators ==, !=.
2402 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
2403 (__mt_alloc::_S_get_options): New.
2404 (__mt_alloc::_S_set_options): New.
2405 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
2406 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
2407 Move functions out of line, simplify, format.
2408 * src/allocator.cc: Simplify explicit instantiations.
2409 * include/bits/allocator.h: Tweak.
2411 2004-02-22 Paolo Carlini <pcarlini@suse.de>
2413 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2414 Restructure formatting of value component, first dealing with
2415 the non-decimal digits; use reserve.
2417 2004-02-22 Paolo Carlini <pcarlini@suse.de>
2419 * include/bits/locale_facets.h (class money_get): Inherit
2420 from money_base too; tweak declaration of _M_extract, now
2421 parameterized on _Intl too.
2422 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2423 Update definition to use the cache; call reserve on __res to
2424 avoid multiple reallocations; fix parsing of sign component
2425 according to 22.2.6.1.2, p3.
2426 (money_get<>::do_get(long double&),
2427 money_get<>::do_get(string_type&)): Update calls of _M_extract.
2428 * src/locale-inst.cc: Add instantiations of
2429 money_get::_M_extract<false> and money_get::_M_extract<true>.
2430 * testsuite/22_locale/money_get/get/char/14.cc: New.
2431 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
2433 2004-02-21 Mark Mitchell <mark@codesourcery.com>
2435 * libsupc++/vterminate.cc
2436 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
2438 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
2440 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2441 not set RLIMIT_AS on HP-UX.
2443 2004-02-21 Mark Mitchell <mark@codesourcery.com>
2445 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2446 not set RLIMIT_AS on HP-UX.
2448 2004-02-21 Paolo Carlini <pcarlini@suse.de>
2450 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
2451 _S_zero, _S_end } enum, _S_atoms.
2452 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
2453 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
2454 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
2455 (__moneypunct_cache<>::~__moneypunct_cache): Update.
2456 (__moneypunct_cache<>::_M_cache): Fill the cache.
2457 (class moneypunct): Tweak __cache_type typedef.
2458 (class money_put): Inherit from money_base too; tweak declaration
2459 of _M_insert, now parameterized on _Intl.
2460 * include/bits/locale_facets.tcc
2461 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
2462 (money_put<>::_M_insert): Update definition to use the cache;
2463 call reserve on __res to avoid multiple reallocations.
2464 (money_put<>::do_put(long double),
2465 money_put<>::do_put(const string_type&): Update calls of _M_insert.
2466 * config/locale/generic/monetary_members.cc
2467 (moneypunct<char, true>::_M_initialize_moneypunct,
2468 moneypunct<char, false>::_M_initialize_moneypunct,
2469 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
2470 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
2471 * config/locale/gnu/monetary_members.cc: Likewise.
2472 * config/locale/gnu/monetary_members.cc
2473 (moneypunct<wchar_t, true>::~moneypunct(),
2474 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
2475 * src/globals_locale.cc: Tweak fake_money_cache_c.
2476 * src/locale-inst.cc: Add instantiations for
2477 money_put::_M_insert<false> and money_put::_M_insert<true> and
2478 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
2479 * src/locale_facets.cc: Define money_base::_S_atoms.
2480 * src/locale_init.cc: Update placement new of
2481 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
2482 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
2484 * config/locale/generic/numeric_members.cc: Clean up.
2485 * config/locale/gnu/numeric_members.cc: Likewise.
2486 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
2487 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
2488 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
2489 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
2490 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
2491 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
2493 2004-02-20 Mark Mitchell <mark@codesourcery.com>
2495 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
2496 FIFO for writing with ios_base::in|ios_base::out.
2497 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
2498 * testsuite/27_io/objects/char/7.cc: Likewise.
2499 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
2502 2004-02-19 David Edelsohn <edelsohn@gnu.org>
2504 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
2505 from iso-8859-1 to ISO8859-1.
2506 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
2507 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
2508 * 22_locale/collate/hash/wchar_t/2.cc: Same.
2509 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
2510 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
2511 * 22_locale/collate/transform/wchar_t/2.cc: Same.
2512 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
2513 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
2515 2004-02-18 Paolo Carlini <pcarlini@suse.de>
2517 * include/bits/locale_facets.h (money_get<>::_M_extract):
2518 New, helper for do_get.
2519 (money_put<>::_M_insert): Likewise, for do_put.
2520 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2521 money_put<>::_M_insert): Define.
2522 (money_get<>::do_get(long double&), money_get<>::do_get(
2523 string_type&), money_put::do_put(long double),
2524 money_put::do_put(const string_type&)): Use the helpers.
2526 2004-02-18 Paolo Carlini <pcarlini@suse.de>
2528 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2529 Rewrite, avoiding recursion.
2530 (__gnu_internal::xwrite): Minor tweaks.
2532 2004-02-17 Stefan Olsson <stefan@xapa.se>
2534 * include/ext/mt_allocator.h: Removed the last
2535 pointer. Deallocated blocks are now added to the front of
2536 freelists as proposed by Felix Yen. This gives roughly 10%
2537 performance boost and saves some memory.
2538 * docs/html/ext/mt_allocator.html: Change due to that deallocated
2539 blocks now are added to the front of freelists. The reason to this
2540 approach is also explained.
2542 2004-02-17 Paolo Carlini <pcarlini@suse.de>
2544 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2545 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
2546 grouping fidelity conditional.
2548 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2550 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
2551 Qualify exception with std::.
2552 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
2553 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2554 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2555 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2556 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2558 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2560 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
2561 for now that the catch block is not reached.
2562 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
2564 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2566 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2567 Fix parsing of the remaining sign characters.
2568 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
2569 the input is scanned 'til eof.
2570 * 22_locale/money_get/get/char/4.cc: Likewise.
2571 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
2572 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
2573 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
2574 not do_pos_format: the former is the only one that matters during
2576 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
2578 * 22_locale/money_get/get/char/6.cc: Minor tweak.
2579 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
2581 2004-02-15 David Asher <david.asher@cavium.com>
2584 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
2585 access __olds beyond __oldlen.
2587 2004-02-14 Paolo Carlini <pcarlini@suse.de>
2589 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
2590 sure the exception is actually thrown.
2591 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2592 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2593 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2595 2004-02-14 Paolo Carlini <pcarlini@suse.de>
2598 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
2599 In case of conversion errors, throw ios_failure; simplify.
2600 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
2601 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2602 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
2603 previously we didn't throw in case of conversion errors, instead
2604 just returned eof().
2605 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2606 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2607 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2609 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
2610 Trivial simplification of a conditional.
2612 2004-02-12 Paolo Carlini <pcarlini@suse.de>
2614 PR libstdc++/13731 (final part: writev)
2615 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2616 New, a wrapper around writev() handling partial writes.
2617 (__basic_file<char>::xwrite): Move to __gnu_internal and make
2619 (__basic_file<char>::xsputn): Update call.
2620 (__basic_file<char>::xsputn_2): Likewise.
2621 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2622 Don't declare, now static.
2624 2004-02-11 Stefan Olsson <stefan@xapa.se>
2626 * docs/html/ext/mt_allocator.html: New.
2628 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
2630 * docs/html/20_util/allocator.html: New file, consolidate
2631 allocator information here. Revamp.
2632 * docs/html/documentation.html: Change links.
2633 * docs/html/20_util/howto.html: Same.
2634 * docs/html/ext/howto.html: Same.
2636 2004-02-11 Paolo Carlini <pcarlini@suse.de>
2638 PR libstdc++/13731 (first part: write)
2639 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2641 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
2642 Define it: a wrapper around write() handling partial write.
2643 (__basic_file<char>::xsputn): Use it.
2644 (__basic_file<char>::xsputn_2): Likewise.
2646 2004-02-11 Paolo Carlini <pcarlini@suse.de>
2647 Petur Runolfsson <peturr02@ru.is>
2650 * include/std/std_istream.h (operator>>(__istream_type& (*)
2651 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
2652 operator>>(ios_base& (*)(ios_base&))): Declare inline.
2653 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
2654 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
2655 operator<<(ios_base& (*) (ios_base&))): Likewise.
2656 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
2658 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
2661 * config/linker-map.gnu: Add typeinfo and typeinfo name for
2662 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
2665 * config/linker-map.gnu: Add typeinfo and typeinfo name for
2666 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
2668 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
2670 * include/ext/pool_allocator.h: Include c++config.h.
2672 2004-02-09 Stefan Olsson <stefan@xapa.se>
2674 * include/ext/mt_allocator.h: thread_id is unused in non threaded
2675 applications and now has a ifdef to remove it completely on
2676 compilers without thread support. Include stdlib.h due to a
2677 compiler warning on getenv().
2679 2004-02-09 Paul Brook <paul@codesourcery.com>
2681 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
2683 2004-02-09 Paolo Carlini <pcarlini@suse.de>
2686 * src/locale_init.cc (locale::global(const locale&)): Use
2687 locale::name() in order to decide whether calling setlocale.
2688 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
2690 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
2691 Avoid computing &= unnecessarily.
2693 2004-02-09 James E Wilson <wilson@specifixinc.com>
2696 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
2697 __builtin_extend_pointer.
2699 2004-02-09 Paolo Carlini <pcarlini@suse.de>
2702 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
2703 Don't leave dangling pointers.
2704 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
2705 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
2706 facet is needed in the final test.
2708 2004-02-09 Bernardo Innocenti <bernie@develer.com>
2710 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
2711 * configure: Regenerate.
2713 2004-02-08 Richard Henderson <rth@redhat.com>
2716 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
2717 uncaughtExceptions during nested catch rethrow.
2718 * testsuite/18_support/14026.cc: New.
2720 2004-02-08 Paolo Carlini <pcarlini@suse.de>
2722 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
2723 When working in place remember to set the state to sharable
2724 (otherwise, _M_mutate does it).
2726 2004-02-08 Bernardo Innocenti <bernie@develer.com>
2728 * include/bits/allocator.h, include/bits/basic_ios.h,
2729 include/bits/basic_ios.tcc, include/bits/basic_string.h,
2730 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
2731 include/bits/char_traits.h, include/bits/codecvt.h,
2732 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
2733 include/bits/demangle.h, include/bits/deque.tcc,
2734 include/bits/fstream.tcc, include/bits/functexcept.h,
2735 include/bits/gslice.h, include/bits/gslice_array.h,
2736 include/bits/indirect_array.h, include/bits/ios_base.h,
2737 include/bits/istream.tcc, include/bits/list.tcc,
2738 include/bits/locale_classes.h, include/bits/locale_facets.h,
2739 include/bits/locale_facets.tcc, include/bits/localefwd.h,
2740 include/bits/mask_array.h, include/bits/ostream.tcc,
2741 include/bits/postypes.h, include/bits/slice_array.h,
2742 include/bits/sstream.tcc, include/bits/stl_algo.h,
2743 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
2744 include/bits/stl_construct.h, include/bits/stl_deque.h,
2745 include/bits/stl_function.h, include/bits/stl_heap.h,
2746 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
2747 include/bits/stl_list.h, include/bits/stl_map.h,
2748 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
2749 include/bits/stl_numeric.h, include/bits/stl_pair.h,
2750 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
2751 include/bits/stl_relops.h, include/bits/stl_set.h,
2752 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
2753 include/bits/stl_threads.h, include/bits/stl_tree.h,
2754 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
2755 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
2756 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
2757 include/bits/type_traits.h, include/bits/valarray_after.h,
2758 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
2759 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
2760 trailing whitespace.
2762 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2764 * include/bits/basic_string.h: Fix comment.
2766 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2768 * include/bits/stl_construct.h: Wrap overlong lines, reformat
2769 according to the coding standards.
2770 * include/bits/stl_pair.h: Likewise.
2771 * include/bits/stl_raw_storage_iter.h: Likewise.
2772 * include/bits/stl_stack.h: Likewise.
2773 * include/bits/stl_uninitialized.h: Likewise.
2774 * include/bits/stream_iterator.h: Likewise.
2775 * include/bits/streambuf_iterator.h: Likewise.
2776 * include/bits/type_traits.h: Likewise.
2778 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2780 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2783 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
2785 * scripts/check_performance: Support PCH.
2787 * scripts/check_performance (CXX): Add -DNOTHREAD.
2788 * testsuite/performance/20_util/allocator/insert.cc: Integrate
2789 threaded tests from insert_insert.cc. Tweak iterations,
2790 remove special cases.
2791 * testsuite/performance/20_util/allocator/insert_insert.cc:
2792 Make all tests single-threaded. Tweak iterations.
2793 * testsuite/performance/20_util/allocator/map_thread.cc:
2795 * testsuite/performance/20_util/allocator/producer_consumer.cc:
2798 2004-02-05 Geoffrey Keating <geoffk@apple.com>
2802 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
2803 'gcc-lib'. Add comment about poorly-named variables.
2804 * aclocal.m4: Regenerate.
2805 * configure: Regenerate.
2807 2004-02-05 Paolo Carlini <pcarlini@suse.de>
2809 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2810 Thousands-sep are always optional; thousands-sep are not allowed
2811 after the decimal_point.
2812 * testsuite/22_locale/money_get/get/char/12.cc: New.
2813 * testsuite/22_locale/money_get/get/char/13.cc: New.
2814 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
2815 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
2817 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
2818 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2819 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2820 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2821 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2822 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2823 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2824 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2826 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
2828 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
2830 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
2832 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
2834 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
2835 it to decide whether FIONREAD should take an off_t or int argument.
2837 2004-02-05 Paolo Carlini <pcarlini@suse.de>
2839 * include/bits/stl_function.h: Minor formatting changes.
2841 2004-02-04 Zack Weinberg <zack@codesourcery.com>
2843 Revert previous change to config/abi/*/baseline_symbols.txt.
2845 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
2846 Zack Weinberg <zack@codesourcery.com>
2848 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
2850 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
2851 (__basic_file<char>::_M_open_mode): Delete.
2852 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
2854 * testsuite/27_io/basic_filebuf/close/char/9964.cc
2855 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2856 Correct flags to filebuf::open calls.
2858 * config/abi/alpha-freebsd5/baseline_symbols.txt
2859 * config/abi/alpha-linux-gnu/baseline_symbols.txt
2860 * config/abi/hppa-linux-gnu/baseline_symbols.txt
2861 * config/abi/i386-freebsd4/baseline_symbols.txt
2862 * config/abi/i386-freebsd5/baseline_symbols.txt
2863 * config/abi/i486-linux-gnu/baseline_symbols.txt
2864 * config/abi/ia64-linux-gnu/baseline_symbols.txt
2865 * config/abi/mips-linux-gnu/baseline_symbols.txt
2866 * config/abi/sparc-freebsd5/baseline_symbols.txt
2867 * config/abi/sparc-linux-gnu/baseline_symbols.txt
2868 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
2869 Remove entry for __basic_file<char>::_M_open_mode.
2871 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
2873 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
2875 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
2877 * testsuite/performance/20_util/producer_consumer.cc: New.
2878 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
2880 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
2882 * testsuite/performance/20_util/allocator.cc: Move to..
2883 * testsuite/performance/20_util/allocator/insert.cc: ...here.
2884 * testsuite/performance/20_util/allocator_thread.cc: Move to...
2885 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
2886 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
2887 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
2889 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
2891 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
2892 * docs/html/faq/index.txt: Regenerate.
2894 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
2896 * include/ext/debug_allocator.h: _M_extra now stands for the
2897 number of extra objects instead of the number of extra bytes.
2898 (debug_allocator::allocate): Adjust.
2899 (debug_allocator::deallocate): Adjust.
2901 * include/ext/pool_allocator.h: Fix typo.
2903 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
2904 Benjamin Kosnik <bkoz@redhat.com>
2906 * testsuite/performance/20_util/allocator.cc: Add map,
2908 * testsuite/performance/20_util/allocator_thread.cc: Same.
2910 2004-02-03 Paolo Carlini <pcarlini@suse.de>
2912 * include/bits/basic_string.h (insert(iterator)): Remove,
2913 non-standard and already scheduled for removal.
2915 2004-02-03 Paolo Carlini <pcarlini@suse.de>
2917 * include/bits/stl_iterator_base_funcs.h: Minor formatting
2918 and indentation tweaks.
2919 * include/bits/stl_iterator_base_types.h: Likewise.
2920 * include/bits/stl_list.h: Likewise.
2921 * include/bits/stl_map.h: Likewise.
2922 * include/bits/stl_tempbuf.h: Likewise.
2924 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
2926 * include/bits/gslice.h, include/bits/gslice_array.h,
2927 include/bits/indirect_array.h, include/bits/mask_array.h,
2928 include/bits/slice_array.h, include/bits/stl_numeric.h,
2929 include/std/std_valarray.h: Update copyright years.
2931 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
2933 * include/bits/gslice.h (gslice): Document.
2934 * include/bits/gslice_array.h (gslice_array): Document.
2935 * include/bits/indirect_array (indirect_array): Document.
2936 * include/bits/mask_array (mask_array): Document.
2937 * include/bits/slice_array.h (slice,slice_array): Document.
2938 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
2939 adjacent_difference): Document
2940 * include/std/std_valarray.h (valarray): Document.
2942 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
2944 * docs/html/19_diagnostics/howto.html: Move verbose terminate
2946 * docs/html/18_support/howto.html: Here.
2947 * docs/html/documentation.html: Add reference here.
2949 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2951 * config/locale/gnu/c++locale_internal.h: Remove prototypes
2952 of no longer used GLIBC thread locale functions.
2954 2004-02-02 Eric Christopher <echristo@redhat.com>
2955 Zack Weinberg <zack@codesourcery.com>
2957 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
2959 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
2960 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
2961 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
2962 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
2963 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
2964 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
2965 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
2966 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2969 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2971 * include/bits/stl_function.h: Additional minor tweaks.
2972 * include/bits/stl_multiset.h: Likewise.
2974 * include/bits/stl_queue.h: Minor tweaks.
2976 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2978 PR libstdc++/13976 (continued)
2979 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
2980 Make the second parameter unnamed, to void unused parameter
2982 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
2984 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2987 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
2988 Make the second parameter unnamed, to void unused parameter
2990 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
2991 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
2993 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2995 * include/bits/stl_algo.h: Additional minor tweaks.
2996 * include/bits/stl_map.h: Likewise.
2997 * include/bits/stl_multimap.h: Likewise.
2998 * include/bits/stl_multiset.h: Likewise.
2999 * include/bits/stl_set.h: Likewise.
3000 * include/bits/stl_tree.h: Likewise.
3002 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3004 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
3007 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3009 * include/bits/stl_function.h: Additional minor tweaks.
3011 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3013 * include/bits/deque.tcc: Wrap overlong lines, constify
3014 a few variables, reformat according to the coding standards.
3015 * include/bits/list.tcc: Likewise.
3016 * include/bits/stl_deque.h: Likewise.
3017 * include/bits/stl_function.h: Likewise.
3018 * include/bits/stl_iterator.h: Likewise.
3019 * include/bits/stl_iterator_base_funcs.h: Likewise.
3020 * include/bits/stl_iterator_base_types.h: Likewise.
3021 * include/bits/stl_list.h: Likewise.
3022 * include/bits/stl_map.h: Likewise.
3023 * include/bits/stl_multimap.h: Likewise.
3024 * include/bits/stl_multiset.h: Likewise.
3025 * include/bits/stl_relops.h: Likewise.
3026 * include/bits/stl_set.h: Likewise.
3028 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3030 * include/bits/stl_bvector.h: Wrap overlong lines, constify
3031 a few variables, reformat according to the coding standards.
3032 * include/bits/stl_tree.h: Likewise.
3034 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3036 * include/bits/stl_algo.h: Minor additional reformat, add
3038 * include/bits/stl_algobase.h: Add copyright year.
3040 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3042 * include/bits/stl_algo.h: Wrap overlong lines, constify
3043 a few variables, reformat according to the coding standards.
3044 * include/bits/stl_algobase.h: Likewise.
3045 * include/bits/stl_heap.h: Likewise.
3047 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3049 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
3051 * include/bits/basic_string.h: Fix two comments.
3053 2004-01-31 Per Bothner <per@bothner.com>
3055 * include/ext/mt_allocator.h
3056 (__mt_alloc::_S_thread_freelist_mutex): Guard with
3057 __GTHREAD_MUTEX_INIT.
3059 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3061 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
3063 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3065 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
3066 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
3067 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
3069 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
3071 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
3072 Don't use clear, but instead assign. Use insert.
3074 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
3076 * src/demangle.cc: Add instantiations.
3077 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
3078 * src/Makefile.in: Regenerate.
3080 2004-01-30 David Edelsohn <edelsohn@gnu.org>
3082 * src/allocator.cc: Protect _S_get_thread_id() and
3083 _S_thread_key_destr() with #ifdef __GTHREADS.
3085 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3087 Reshuffle performance testsuite.
3088 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
3089 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
3090 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
3091 fstream_seek_write.cc, ifstream_extract_float.cc,
3092 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
3093 list_create_fill_sort.cc, map_create_fill.cc,
3094 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
3095 ofstream_insert_float.cc, ofstream_insert_int.cc,
3096 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
3097 wchar_t_out.cc: Split into...
3098 * testsuite/performance/20_util/allocator.cc: New.
3099 * testsuite/performance/20_util/allocator_map_thread.cc: New.
3100 * testsuite/performance/20_util/allocator_thread.cc: New.
3101 * testsuite/performance/21_strings/string_append: New.
3102 * testsuite/performance/22_locale/is_wchar_t.cc: New.
3103 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
3104 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
3105 * testsuite/performance/22_locale/wchar_t_in.cc: New.
3106 * testsuite/performance/22_locale/wchar_t_length.cc: New.
3107 * testsuite/performance/22_locale/wchar_t_out.cc: New.
3108 * testsuite/performance/23_containers/container_benchmark.cc: New.
3109 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
3110 * testsuite/performance/23_containers/map_create_fill.cc: New.
3111 * testsuite/performance/26_numerics/complex_norm.cc: New.
3112 * testsuite/performance/27_io/cout_insert_int.cc: New.
3113 * testsuite/performance/27_io/filebuf_copy.cc: New.
3114 * testsuite/performance/27_io/filebuf_sputc.cc: New.
3115 * testsuite/performance/27_io/fstream_seek_write.cc: New.
3116 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
3117 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
3118 * testsuite/performance/27_io/ifstream_getline.cc: New.
3119 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
3120 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
3122 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3124 * include/bits/basic_string.tcc (_Rep::_S_create):
3125 Never allocate a string bigger than max_size(); always keep
3126 __capacity and __size in sync to avoid memory leaks at
3129 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3131 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3132 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
3133 the double loop, streamline.
3135 * include/bits/basic_string.tcc: Very minor tweaks.
3137 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
3139 * scripts/check_performance: Only compile with $THREAD_FLAG
3140 when test is marked to require it. Allow multiple
3141 compilations/executions of marked tests.
3142 * testsuite/testsuite_performance.h (report_performance):
3143 Report dynamic thread support status.
3144 (report_header): Likewise.
3145 * testsuite/performance/allocator.cc: Stabilize iteration
3146 count. Support more allocators. Mark each allocator test to
3147 run and report independently.
3148 * testsuite/performance/allocator_map_thread.cc: Likewise.
3149 * testsuite/performance/allocator_thread.cc: Likewise.
3151 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
3153 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
3154 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
3155 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
3156 std::get_temporary_buffer() instead of duplicating its code.
3157 Update to C++STYLE conventions.
3158 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
3159 new() instead of std::malloc().
3160 (return_temporary_buffer): Use ::operator delete() instead of
3163 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
3165 * include/bits/allocator.h: Temporary switch to new_allocator as
3166 the default to unjam bootstraps.
3168 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
3170 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
3171 * include/Makefile.in: Regenerate.
3172 * include/bits/allocator_traits.h: Remove.
3173 * include/bits/allocator.h: Remove allocator_traits.h include, and
3175 (allocator): Empty base class, inherit from the underlying allocator.
3176 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
3177 * src/allocator.cc: ...here. New. For the underlying allocators.
3178 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
3179 * config/linker-map.gnu: Remove __pool_alloc bits.
3180 * src/Makefile.am (sources): Add allocator.cc.
3181 * src/Makefile.in: Regenerate.
3182 * testsuite/20_util/allocator/1.cc: Split second test into...
3183 * testsuite/20_util/allocator/8230.cc: ...this.
3184 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
3185 typedef to use std::allocatore. Format.
3186 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
3188 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
3189 __throw_bad_alloc calls. Don't include <memory>.
3190 * include/ext/malloc_allocator.h: Remove <memory> include.
3191 * include/ext/new_allocator.h (new_allocator): Same.
3192 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
3193 declaration. Switch __alloc to _Alloc.
3194 * include/ext/hashtable.h: Remove __alloc.
3195 * include/backward/alloc.h: Only inject allocator, not
3196 implementation details.
3198 * include/ext/mt_allocator.h: Replace free with delete.
3200 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
3202 * src/globals_io.cc: Change to __gnu_internal namespace.
3203 * src/globals_locale.cc: Same.
3204 * src/locale_init.cc: Same.
3205 * src/ios_init.cc: Same.
3207 2004-01-28 Stefan Olsson <stefan@snon.net>
3209 * include/ext/mt_allocator.h: Replaced all malloc() calls with
3210 operator new(). Added support for the env variable
3211 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
3212 one in allocate() as well). Fix typos.
3214 2004-01-28 Paolo Carlini <pcarlini@suse.de>
3216 * include/bits/basic_string.h (_S_create(size_t,
3217 const _Alloc&): Change signature to take two size_type
3219 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3220 _InIterator, const _Alloc&, input_iterator_tag)): Update
3222 (_S_construct(_InIterator, _InIterator, const _Alloc&,
3223 forward_iterator_tag)): Likewise.
3224 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
3225 (_M_mutate(size_type, size_type, size_type)): Don't
3226 implement the exponential growth policy, demand it to
3227 _S_create, update call and simplify.
3228 (_M_clone(const _Alloc&, size_type)): Likewise.
3229 (_S_create(size_type, size_type, const _Alloc&)): Implement
3230 the growth policy, simplify otherwise.
3232 * include/bits/basic_string.h (_Rep::operator[]): Tweak
3233 signature to take a size_type, consistently with the other
3236 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
3238 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
3239 delete declarations, add include and test variable.
3241 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
3243 * include/bits/codecvt.h, include/bits/locale_facets.h,
3244 include/bits/postypes.h, include/bits/stl_bvector.h,
3245 include/bits/stl_multiset.h, include/bits/stl_set.h,
3246 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
3247 include/std/std_complex.h: Document.
3249 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
3252 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
3253 iword/pword selector.
3254 (ios_base::iword, ios_base::pword): Use it.
3255 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
3256 iword or pword member on alloc failure.
3257 * testsuite/27_io/ios_base/storage/11584.cc: New test.
3259 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
3260 PJ Darcy <darcypj@us.ibm.com>
3262 * configure.host: Add support for *-tpf.
3263 * crossconfig.m4: Likewise.
3264 * configure: Regenerate.
3265 * config/os/tpf: New directory.
3266 * config/os/tpf/os_defines.h: New file.
3267 * config/os/tpf/ctype_base.h: Likewise.
3268 * config/os/tpf/ctype_inline.h: Likewise.
3269 * config/os/tpf/ctype_noninline.h: Likewise.
3271 2004-01-27 Paolo Carlini <pcarlini@suse.de>
3274 * include/bits/sstream.tcc: Guard use of extern template.
3276 2004-01-27 Paolo Carlini <pcarlini@suse.de>
3278 * include/bits/basic_string.tcc
3279 (basic_string(const basic_string&, size_type, size_type),
3280 basic_string(const basic_string&, size_type, size_type,
3281 const _Alloc&)): Avoid unnecessarily constructing iterators.
3283 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3285 * config/locale/generic/c_locale.cc: Fix throw messages
3286 to use the __N marker.
3287 * config/locale/gnu/c_locale.cc: Likewise.
3288 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
3290 * docs/html/17_intro/C++STYLE: Likewise.
3291 * include/bits/basic_ios.tcc: Likewise.
3292 * include/bits/fstream.tcc: Likewise.
3293 * include/bits/vector.tcc: Likewise.
3294 * include/ext/ropeimpl.h: Likewise.
3295 * include/std/std_bitset.h: Likewise.
3296 * src/ios.cc: Likewise.
3297 * src/locale.cc: Likewise.
3298 * src/localename.cc: Likewise.
3300 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3302 * include/bits/basic_string.h (_M_replace_aux): Use the
3303 __N marker in throw message.
3304 * include/bits/basic_string.tcc (assign(const _CharT*,
3305 size_type), insert(size_type, const _CharT*, size_type),
3306 replace(size_type, size_type, const _CharT*, size_type),
3307 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
3310 * include/bits/basic_string.h, include/bits/basic_string.tcc:
3311 Fold overlong lines, minor formatting changes.
3313 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3315 * include/bits/basic_string.h (replace(iterator, iterator,
3316 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
3317 (replace(iterator, iterator, const _CharT*)): Ditto.
3318 (replace(iterator, iterator, const _CharT*, size_type)):
3319 Add missing _GLIBCXX_DEBUG_PEDASSERT.
3321 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3323 * include/bits/basic_string.tcc (replace(size_type,
3324 size_type, const _CharT*, size_type)): Implement optimized
3325 in-place algorithm for non-overlapping ranges.
3326 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
3327 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
3329 * include/bits/basic_string.tcc (insert(size_type,
3330 const _CharT*, size_type)): Tweak slightly.
3332 2004-01-26 Andreas Schwab <schwab@suse.de>
3334 * config/locale/gnu/monetary_members.cc: Restore locale before
3335 rethrowing exception.
3337 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3339 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
3341 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
3344 * include/bits/basic_string.tcc: Very minor tweaks.
3346 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3348 * testsuite/performance/string_append.cc: Increase number
3351 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3353 * include/bits/basic_string.h (erase(size_type, size_type),
3354 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
3355 instead, thus avoiding redundant check for length_error.
3357 * include/bits/basic_string.h: Tweak some comments.
3359 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3361 * include/bits/basic_string.tcc (operator+(const _CharT*,
3362 const basic_string&)): No need to go through the append
3363 taking two iterators.
3365 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3367 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
3368 Revert last change to use std::min: machine language is worse.
3369 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
3370 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3371 (find_last_not_of(_CharT, size_type)): Ditto.
3373 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
3374 size_type)): Discard the value returned by _M_check.
3375 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
3376 (append(const basic_string&, size_type, size_type)): Ditto.
3377 (copy(_CharT*, size_type, size_type)): Ditto.
3378 (compare(size_type, size_type, const basic_string&)): Ditto.
3379 (compare(size_type, size_type, const basic_string&,
3380 size_type, size_type)): Ditto.
3381 (compare(size_type, size_type, const _CharT*)): Ditto.
3382 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3384 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3386 * include/bits/basic_string.h (insert(size_type,
3387 const basic_string&, size_type, size_type)): Define inline here.
3388 * include/bits/basic_string.tcc (insert(size_type,
3389 const basic_string&, size_type, size_type)): Move inline.
3391 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3393 * include/bits/basic_string.h (assign(const basic_string&,
3394 size_type, size_type)): Define inline here.
3395 (replace(size_type, size_type, const basic_string&,
3396 size_type, size_type)): Ditto.
3397 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3398 _InputIterator, __false_type)): Only declare.
3399 (_M_replace(iterator, iterator, _InputIterator,
3400 _InputIterator)): Remove.
3401 * include/bits/basic_string.tcc (assign(const basic_string&,
3402 size_type, size_type)): Move inline.
3403 (replace(size_type, size_type, const basic_string&,
3404 size_type, size_type)): Ditto.
3405 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3406 _InputIterator, __false_type)): Define, now does also what
3407 _M_replace did before.
3408 * src/string-inst.cc (_M_replace): Don't instantiate.
3410 * include/bits/basic_string.tcc (find(const _CharT*,
3411 size_type, size_type)): Tidy.
3412 (rfind(_CharT, size_type)): Ditto.
3413 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
3414 (find_first_not_of(_CharT, size_type)): Ditto.
3415 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3416 (find_last_not_of(_CharT, size_type)): Ditto.
3418 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3421 * include/debug/bitset (operator|=): Fix typo.
3422 * testsuite/23_containers/bitset/operations/13838.cc: New.
3424 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3426 * include/bits/basic_string.tcc (insert(size_type,
3427 const _CharT*, size_type __n)): Fix length_error check.
3428 (replace(size_type, size_type, const _CharT*, size_type):
3429 Ditto; call _M_replace_safe.
3430 (_M_replace_aux(size_type, size_type, size_type, _CharT):
3431 Fix length_error check.
3432 (_M_replace(iterator, iterator, _InputIterator,
3433 _InputIterator)): Ditto, tweak.
3434 (_M_replace_safe(size_type, size_type, const _CharT*,
3435 size_type)): Remove length_error check.
3437 * include/bits/basic_string.tcc (append(const basic_string&),
3438 append(const basic_string&, size_type, size_type)): Tweak
3441 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
3442 size_type)): If __n == 0 don't call traits::copy.
3444 2004-01-23 Stefan Olsson <stefan@snon.net>
3446 * include/ext/mt_allocator.h: Reduce lock contention.
3448 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3451 * include/bits/fstream.tcc (underflow): Remove unused
3453 * include/bits/streambuf_iterator.h (equal): Ditto.
3454 * include/bits/locale_facets.h (_M_convert_from_char):
3457 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3460 * config/linker-map.gnu (nan): Delete.
3461 * libmath/mathconf.h (NAN, nan): Delete.
3462 * linkage.m4 (nan): Don't check for it.
3463 * libmath/nan.c: Delete file.
3465 * config.h.in, configure: Regenerate.
3467 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3469 * include/bits/basic_string.h (push_back(_CharT)):
3470 Call _M_replace_aux.
3471 (insert(size_type, const basic_string&)): Trivial tweak.
3472 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
3473 (insert(iterator, _CharT)): Ditto.
3474 (erase(size_type, size_type)): Ditto.
3475 (erase(iterator)): Ditto.
3476 (erase(iterator, iterator)): Ditto.
3477 (replace(size_type, size_type, size_type, _CharT)): Ditto.
3479 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
3482 * testsuite/performance/allocator_map_thread.cc: New test.
3484 2004-01-22 Paolo Carlini <pcarlini@suse.de>
3486 * include/bits/locale_facets.tcc
3487 (money_put::do_put(..., long double)): Use the basic_string
3488 constructor for char arrays, not that for C-strings, to pass
3489 __digits to do_put(..., const string_type&): __ws isn't
3492 2004-01-22 Paolo Carlini <pcarlini@suse.de>
3494 * include/bits/basic_string.h (_M_replace_safe): Change
3495 signatures to take size_types and const _CharT*.
3496 (_M_replace_aux): Likewise, takes size_types instead of
3498 (append(size_type, _CharT)): Update call.
3499 (assign(size_type, _CharT)): Ditto.
3500 (replace(iterator, iterator, size_type, _CharT)): Ditto.
3501 (_M_replace_dispatch(iterator, iterator, _Integer,
3502 _Integer, __true_type)): Ditto.
3503 * include/bits/basic_string.tcc (assign(const _CharT*,
3505 (insert(size_type, const _CharT*, size_type)): Ditto.
3506 (replace(size_type, size_type, const _CharT*,
3508 (_M_replace(iterator, iterator, _InputIterator,
3509 _InputIterator)): Ditto.
3510 (append(const basic_string&)): Ditto.
3511 (append(const basic_string&, size_type, size_type): Ditto.
3512 (append(const _CharT*, size_type): Ditto.
3513 (_M_replace_safe, _M_replace_safe): Change definitions
3514 accordingly, simplify.
3515 * string-inst.cc (_M_replace_safe): Don't instantiate.
3517 2004-01-21 Paolo Carlini <pcarlini@suse.de>
3519 * include/bits/basic_string.tcc (append(const basic_string&)):
3520 Revert previous change.
3521 (append(const basic_string&, size_type, size_type)): Revert
3522 previous change, use _M_check and _M_limit.
3524 2004-01-21 Paolo Carlini <pcarlini@suse.de>
3526 * include/bits/basic_string.h (_M_check): Change to return
3527 a checked __pos and take an additional const char* argument.
3528 (_M_fold): Rename to _M_limit, change to return a size_type,
3529 corresponding to the __off limited to the actual length.
3530 (insert(size_type, size_type, _CharT)): Update call, call
3532 (insert(iterator, _CharT)): Call replace(iterator, iterator,
3533 size_type, _CharT) instead.
3534 (erase(size_type, size_type)): Update calls.
3535 (replace(size_type, size_type, size_type, _CharT)): Ditto.
3536 (substr(size_type, size_type)): Use _M_check.
3537 * include/bits/basic_string.tcc (basic_string(const basic_string&,
3538 size_type, size_type)): Update calls.
3539 (basic_string(const basic_string&, size_type, size_type,
3540 const _Alloc&)): Ditto.
3541 (assign(const basic_string&, size_type, size_type)): Use the
3542 new _M_check and _M_limit.
3543 (insert(size_type, const basic_string&, size_type, size_type):
3545 (insert(size_type, const _CharT*, size_type)): Ditto.
3546 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
3547 (replace(size_type, size_type, const basic_string&,
3548 size_type, size_type)): Ditto.
3549 (append(const basic_string&)): Ditto.
3550 (append(const basic_string&, size_type, size_type)): Ditto.
3551 (copy(_CharT*, size_type, size_type)): Ditto.
3552 (compare(size_type, size_type, const basic_string&)): Ditto.
3553 (compare(size_type, size_type, const basic_string&,size_type,
3555 (compare(size_type, size_type, const _CharT*)): Ditto.
3556 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3558 2004-01-19 Stefan Olsson <stefan@snon.net>
3560 * include/ext/mt_allocator.h: If a thread, when it dies, still has
3561 memory on it's freelist this memory is not returned to global
3562 list. Simplification of deallocate so that memory is always
3563 returned to the calling thread id's freelist instead of to
3564 global. Fix typos. Add volatile where appropriate.
3566 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
3568 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
3569 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
3570 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
3572 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3574 * src/debug.cc: Make sure all the names are prefixed with
3575 double (or single) underscore.
3577 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3579 * src/debug.cc: Trivial formatting change.
3581 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3583 * include/bits/basic_string.tcc (_S_construct(size_type,
3584 _CharT, const _Alloc&)): Remove redundant try/catch.
3585 (_M_mutate(size_type, size_type, size_type)): Ditto.
3586 (_M_clone(const _Alloc&, size_type)): Ditto.
3588 2004-01-18 Paolo Carlini <pcarlini@suse.de>
3590 * include/bits/basic_string.h (c_str()): Simplify, due to
3591 21.3.4 the internal representation is always kept null-terminated.
3592 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
3593 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
3594 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
3597 2004-01-18 Paolo Carlini <pcarlini@suse.de>
3599 * include/bits/basic_string.h (append(size_type, _CharT)):
3600 Moved inline, just call _M_replace_aux, no source iterators at
3601 risk of being clobbered.
3602 (assign(size_type, _CharT)): Call directly _M_replace_aux.
3603 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3604 input_iterator_tag)): Remove fifth unused argument.
3605 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3606 _InputIterator, __false_type)): Update call.
3607 * include/bits/basic_string.tcc (replace(size_type, size_type,
3608 const _CharT*, size_type)): Update call.
3609 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
3610 throw string literal.
3611 (_M_replace_safe(iterator, iterator, _ForwardIterator,
3612 _ForwardIterator)): Likewise.
3613 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3614 input_iterator_tag)): Remove fifth unused argument.
3615 (append(size_type __n, _CharT __c)): Move inline.
3616 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
3617 const C*, const C*, input_iterator_tag)): Remove fifth unused
3620 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
3622 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
3623 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
3625 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
3627 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
3630 2004-01-15 Stefan Olsson <stefan@snon.net>
3632 * include/ext/mt_allocator.h: Reuse thread id's as soon as
3633 possible by changing the behaviour of thread_freelist to do
3634 push_front when threads die instead of push_back.
3636 2004-01-14 Paolo Carlini <pcarlini@suse.de>
3638 * include/bits/locale_facets.h (struct __numpunct_cache):
3639 Add member _M_grouping_size, caching the length of _M_grouping.
3640 (__numpunct_cache<>::_M_cache): Assign the latter.
3641 (__verify_grouping): Move declaration...
3642 * include/bits/locale_facets.tcc (__verify_grouping):
3643 ... here, change signature to take a const char* and a size_t
3644 for the grouping; not a template anymore.
3645 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
3646 Likewise change signature and tweak consistently.
3647 (num_get::_M_extract_float, num_get::_M_extract_int,
3648 num_put::_M_insert_int, num_put::_M_insert_float,
3649 money_get::do_get(string_type&), money_get::do_put(string_type)):
3651 * config/locale/generic/numeric_members.cc
3652 (numpunct<>::_M_initialize_numpunct): Assign the new member.
3653 * config/locale/gnu/numeric_members.cc
3654 (numpunct<>::_M_initialize_numpunct): Likewise.
3655 * src/locale-inst.cc (__add_grouping): Tweak signature.
3656 (__verify_grouping): Don't instantiate, not a template anymore.
3658 * include/bits/locale_facets.h: Rename _M_truename_len ->
3659 _M_truename_size, _M_falsename_len -> _M_falsename_size.
3660 * include/bits/locale_facets.tcc: Likewise.
3661 * config/locale/generic/numeric_members.cc: Likewise.
3662 * config/locale/gnu/numeric_members.cc: Likewise.
3664 2004-01-14 Stefan Olsson <stefan@snon.net>
3666 * include/ext/mt_allocator.h: Fixups.
3667 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
3668 * testsuite/performance/allocator_thread.cc: Same.
3670 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
3672 * testsuite/performance/ifstream_extract_float.cc: Add higher
3674 * testsuite/performance/ofstream_insert_float.cc: Same.
3676 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3678 * src/locale-misc-inst.cc (__convert_from_v(long),
3679 __convert_from_v(unsigned long), __convert_from_v(long long),
3680 __convert_from_v(unsigned long long)): Remove, unused.
3682 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
3684 * testsuite/performance/ifstream_extract_float.cc: New.
3685 * testsuite/performance/ofstream_insert_float.cc: Float generation
3688 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
3689 * 20_util/auto_ptr/1.cc: ...this.
3690 * 20_util/auto_ptr/2.cc: Same.
3691 * 20_util/auto_ptr/3.cc: Same.
3692 * 20_util/auto_ptr/3946.cc: Same.
3693 * 20_util/auto_ptr/4.cc: Same.
3694 * 20_util/auto_ptr/5.cc: Same.
3695 * 20_util/auto_ptr/6.cc: Same.
3696 * 20_util/auto_ptr/7.cc: Same.
3697 * 20_util/auto_ptr/assign_neg.cc
3698 * 20_util/pairs.cc: Break into...
3699 * 20_util/pair/1.cc: ...this.
3700 * 20_util/pair/2.cc: Same.
3701 * 20_util/pair/3.cc: Same.
3702 * 20_util/pair/4.cc: Same.
3704 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3706 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
3707 Set correctly just basefield, the only group that matters.
3709 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3711 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
3712 (_Rope_rep_base): Inherit directly from the rope allocator;
3713 use rebinding instead of _Alloc_traits; pick up data member
3714 from _Rope_rep_alloc_base.
3715 (_Rope_alloc_base): Eliminate.
3716 (_Rope_base): Inherit directly from the rope allocator; use
3717 rebinding instead of _Alloc_traits; pick up data member from
3719 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
3720 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
3722 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3725 * include/bits/basic_string.tcc (compare(size_type, size_type,
3726 const _CharT*, size_type)): Implement correctly the resolution
3727 of DR 5: basically, s is a char array, -not- a C string.
3728 * include/bits/basic_string.h: Tweak some comments.
3729 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
3730 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
3732 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
3734 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
3737 2004-01-12 Paolo Carlini <pcarlini@suse.de>
3739 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
3741 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
3744 2004-01-12 Paolo Carlini <pcarlini@suse.de>
3746 * include/bits/locale_facets.h (struct __numpunct_cache):
3747 Add members _M_truename_len and _M_falsename_len, caching
3748 the lengths of _M_truename and _M_falsename.
3749 (__numpunct_cache<>::_M_cache): Assign the latter.
3750 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
3751 num_put::do_put(bool)): Use the new members, thus avoiding
3752 computing string lengths again and again.
3753 * config/locale/generic/numeric_members.cc
3754 (numpunct<>::_M_initialize_numpunct): Assign the new members.
3755 * config/locale/gnu/numeric_members.cc
3756 (numpunct<>::_M_initialize_numpunct): Likewise.
3758 2004-01-12 Mark Mitchell <mark@codesourcery.com>
3760 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
3761 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
3763 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
3764 and remove Cygwin XFAIL.
3765 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
3766 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
3767 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
3768 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
3770 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3771 * testsuite/27_io/objects/char/7.cc: Likewise.
3772 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
3773 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
3774 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
3776 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
3778 * include/std/std_complex.h (std::complex<>::real): Return a
3779 reference. Add non-const overload.
3780 (std::complex<>::real): Likewise.
3781 (std::real): Likewise.
3782 (std::imag): Likewise.
3783 (std::operator+): Tidy.
3784 (std::operator-): Likewise.
3785 (std::operator*): Likewise.
3786 (std::operator/): Likewise.
3787 (std::operator>>): Likewise.
3789 2004-01-11 Paolo Carlini <pcarlini@suse.de>
3792 * include/bits/fstream.tcc (imbue): Exploit the external
3793 buffer to imbue 'on the fly' a new locale and convert its
3794 remainder with the new codecvt facet.
3795 (underflow): Tweak slightly to deal with this special case.
3796 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
3797 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
3798 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
3799 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
3800 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
3802 2004-01-10 Paolo Carlini <pcarlini@suse.de>
3804 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
3807 2004-01-10 Paolo Carlini <pcarlini@suse.de>
3810 * include/bits/locale_classes.h (class locale): Fix category
3812 * testsuite/22_locale/locale/13630.cc: Add.
3814 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
3816 * include/bits/locale_facets.h: Make a name really dependent. This
3817 will be needed when Core Issue 224 is implemented.
3819 2004-01-09 Paolo Carlini <pcarlini@suse.de>
3821 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
3822 * testsuite/performance/allocator_thread.cc: Likewise.
3824 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
3826 * crossconfig.m4: Add LFS, io bits to linux cross config.
3827 * acconfig.h: Remove obsolete bits, reorder.
3828 * config.h.in: Regenerate.
3832 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
3834 * include/bits/stl_list.h:
3835 * include/bits/list.tc:
3837 Performance enhancements for destructor, push_front(),
3838 push_back(), pop_front(), pop_back(), sort()
3839 Eliminated static_casts where possible.
3840 Moved code out of header files into new src/list.cc
3841 implementation file for library where possible.
3842 Remove inheritance from iterator class and create separate
3843 classes for non-constant and constant iterators.
3844 * include/bits/stl_tree.h (_Rb_tree class):
3846 Only erase contents in destructor.
3847 Eliminate unnecessary initialization in assignment operator.
3848 Optimize for the nominal case by not checking whether
3849 container is empty in clear().
3850 Re-order test in _M_insert() to improve performance.
3851 Move initialization of new node's left & right pointers to
3852 src/tree.cc to where new node's colour is initialized
3853 and to reduce the amount of inline code.
3854 Use _M_leftmost() and _M_end() to improve readability where
3856 Create separate classes for non-constant and constant
3857 iterators to clarify code, avoid extra template parameters and
3858 casting away constness.
3860 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
3862 * src/Makefile.am (sources): Add list.cc, tree.cc.
3863 * src/stl_tree.cc: Move to...
3864 * src/tree.cc: ...here.
3866 * config/linker-map.gnu: Tweaks.
3867 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
3868 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
3870 * bits/stl_vector.h: Column wrap comments.
3872 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
3874 (re-open) PR libstdc++/12658
3875 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
3876 (locale::global): Likewise.
3878 2004-01-07 Paolo Carlini <pcarlini@suse.de>
3880 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
3881 Remove redundant #include.
3882 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
3883 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
3884 re-enable normal testing.
3885 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
3887 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
3888 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
3890 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
3892 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
3894 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
3896 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
3898 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
3900 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
3902 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
3903 More properly, #include <locale>.
3904 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
3905 Remove redundant #include.
3906 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
3907 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
3908 redundant DejaGnu directive.
3909 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
3912 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
3913 Stefan Olsson <stefan@snon.net>
3915 * scripts/check_performance: Use -pthread.
3916 * testsuite/performance/allocator.cc: Tweaks, add list.
3917 * testsuite/performance/allocator_thread.cc: New.
3919 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
3921 * include/bits/locale_facets.h: Document public classes and
3923 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
3926 2004-01-06 Paolo Carlini <pcarlini@suse.de>
3928 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
3929 Remove redundant #includes.
3930 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
3932 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
3934 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
3935 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
3936 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
3937 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
3938 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
3939 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
3940 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
3941 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
3942 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
3943 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
3944 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
3945 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
3946 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
3947 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
3948 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
3950 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
3952 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
3954 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
3956 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
3958 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
3959 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
3960 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
3962 2004-01-04 Paolo Carlini <pcarlini@suse.de>
3964 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
3965 Remove redundant #includes.
3966 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
3968 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
3970 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
3972 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
3974 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
3976 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
3978 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3980 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3982 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3984 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
3986 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
3988 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
3991 2004-01-04 Mark Mitchell <mark@codesourcery.com>
3994 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
3996 * testsuite/27_io/basic_fstream/4.cc: Likewise.
3997 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
3998 * testsuite/27_io/basic_ios/4.cc: Likewise.
3999 * testsuite/27_io/basic_iostream/4.cc: Likewise.
4000 * testsuite/27_io/basic_istream/4.cc: Likewise.
4001 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
4002 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
4003 * testsuite/27_io/basic_ostream/4.cc: Likewise.
4004 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
4005 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
4006 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
4008 2004-01-04 Paolo Carlini <pcarlini@suse.de>
4010 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
4011 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
4012 always use double underscored names.
4013 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
4015 * include/bits/locale_facets.h (struct __numpunct_cache):
4016 Dimension _M_atoms_out and _M_atoms_in one position smaller.
4017 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out