1 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
3 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
6 2004-07-07 Paolo Carlini <pcarlini@suse.de>
9 * include/bits/sstream.tcc (overflow): When reallocating _M_string
10 use an exponential grow policy.
11 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
12 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
14 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
17 * crossconfig.m4: Add in bits for djgpp.
18 * configure: Regenerate.
20 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
22 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
23 instantiation of set and multiset (functor param given as int).
25 2004-07-04 Paolo Carlini <pcarlini@suse.de>
27 * include/bits/basic_string.h: Trivial formatting fixes and/or
28 const-ification of some variables.
29 * include/bits/deque.tcc: Likewise.
30 * include/bits/stl_algobase.h: Likewise.
31 * include/bits/stl_bvector.h: Likewise.
32 * include/bits/stl_construct.h: Likewise.
33 * include/bits/stl_deque.h: Likewise.
34 * include/bits/stl_pair.h: Likewise.
35 * include/bits/stl_vector.h: Likewise.
36 * include/bits/vector.tcc: Likewise.
38 2004-07-04 Paolo Carlini <pcarlini@suse.de>
40 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
41 systems with no COMDAT or weak support.
42 * testsuite/25_algorithms/copy/2.cc: Likewise.
43 * testsuite/25_algorithms/copy/3.cc: Likewise.
44 * testsuite/25_algorithms/copy/4.cc: Likewise.
46 2004-07-03 Paul Brook <paul@codesourcery.com>
48 * configure.ac: Set ABI_TWEAKS_SRCDIR.
49 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
50 setting atomicity_dir. Override type_cpu for arm based targets.
51 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
52 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
53 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
54 * libsupc++/vec.cc: Ditto.
55 * config/cpu/arm/cxxabi_tweaks.h: New file.
56 * config/cpu/generic/cxxabi_tweaks.h: New file.
57 * */Makefile.in: Regenerate.
58 * configure: Regenerate.
60 2004-07-02 Paolo Carlini <pcarlini@suse.de>
62 * include/bits/type_traits.h (_Is_normal_iterator): Move...
63 * include/bits/cpp_type_traits.h: ... here, renamed to
64 __is_normal_iterator and consistent with the other traits.
65 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
66 to the struct __copy_normal and three specializations.
67 (__copy_backward_output_normal_iterator,
68 __copy_backward_input_normal_iterator): Likewise, convert to
69 the struct __copy_backward_normal and three specializations.
70 (copy, copy_backward): Use the latter.
71 (__copy_aux, __copy_backward_aux): Very minor tweaks.
73 2004-07-01 Paolo Carlini <pcarlini@suse.de>
75 * include/bits/stl_algobase.h (__copy_trivial): Remove.
76 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
77 __is_trivially_copyable, __are_same and __copy::copy.
78 (__copy): Rewrite as a class template and two specializations.
79 (__copy_ni2): Simplify, just call __copy_aux.
81 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
83 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
84 for destination value type != source value type.
86 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
87 Per Bothner <per@bothner.com>
88 Mohan Embar <gnustuff@thisiscool.com>
91 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
92 (__glibcxx_mutex): Encapsulate mutex init function into type for
93 threaded configurations without __GTHREAD_MUTEX_INIT.
94 (lock::lock): Make device member a reference.
96 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
98 * src/allocator.cc: Same.
100 2004-06-30 Brad Spencer <spencer@infointeractive.com>
102 * include/ext/mt_allocator.h: Handle allocations at static
103 initialization that happen before _S_options is (automatically)
104 constructed; set _S_init even if _M_force_new is true.
106 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
108 * config/linker-map.gnu: Revert new exports.
110 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
111 Stuart Anderson <anderson@netsweng.com>
113 * config/linker-map.gnu: Add destructor exports for abstract base
114 classes to conform to LSB.
116 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
117 Paolo Carlini <pcarlini@suse.de>
119 * include/bits/cpp_type_traits.h: Add __is_pointer and
120 __is_trivially_copyable.
121 * include/bits/stl_algobase.h (fill, fill_n): Slightly
122 tweak to use the latter.
123 (__copy_backward_dispatch): Remove.
124 (__copy_backward_aux): Rewrite to use __is_pointer and
125 __is_trivially_copyable and __copy_backward::copy_b.
126 (__copy_backward): Rewrite as a class template and two
129 2004-06-30 Paolo Carlini <pcarlini@suse.de>
131 * testsuite/25_algorithms/copy.cc: Move to...
132 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
133 * testsuite/25_algorithms/copy/2.cc: New.
134 * testsuite/25_algorithms/copy/3.cc: New.
135 * testsuite/25_algorithms/copy/4.cc: New.
137 2004-06-29 Paul Brook <paul@codesourcery.com>
139 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
140 element size in the cookie.
142 2004-06-28 Paolo Carlini <pcarlini@suse.de>
144 * include/bits/cpp_type_traits.h: Move the additions to
145 namespace __gnu_internal outside of namespace std; trivial
148 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
150 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
151 Revert -Weffc++ changes that defined copy ctory and or assignment
153 * libsupc++/tinfo.cc (__upcast_result): Same.
155 2004-06-28 Paolo Carlini <pcarlini@suse.de>
157 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
158 the algorithm used to name the categories.
160 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
162 * include/Makefile.am: Give a .gch extension to
163 the PCH files, not only to the directory.
164 * include/Makefile.in: Regenerate.
166 2004-06-28 Paolo Carlini <pcarlini@suse.de>
168 * config/locale/gnu/monetary_members.cc
169 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
170 assignments of _M_decimal_point and _M_thousands_sep.
172 2004-06-27 Paolo Carlini <pcarlini@suse.de>
174 * docs/html/17_intro/contribute.html: Update some links.
175 * docs/html/17_intro/porting-howto.html: Likewise.
176 * docs/html/17_intro/porting-howto.xml: Likewise.
177 * docs/html/18_support/howto.html: Likewise.
178 * docs/html/21_strings/howto.html: Likewise.
179 * docs/html/27_io/howto.html: Likewise.
180 * docs/html/configopts.html: Likewise.
181 * docs/html/ext/howto.html: Likewise.
182 * docs/html/faq/index.html: Likewise.
183 * docs/html/install.html: Don't mention 2.x compilers.
185 2004-06-27 Paolo Carlini <pcarlini@suse.de>
187 * include/ext/rope: Trivial formatting fixes.
188 * include/ext/ropeimpl.h: Likewise.
190 2004-06-26 Paolo Carlini <pcarlini@suse.de>
193 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
194 availability of strto(u)ll, not used anymore in the iostreams.
195 * configure: Regenerate.
197 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
200 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
202 * configure: Regenerate.
204 2004-06-25 Paul Brook <paul@codesourcery.com>
206 * libsupc++/cxxabi.h: Define __ARM_EABI__
208 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
210 2004-06-25 Paul Brook <paul@codesourcery.com>
212 * include/bits/concurrence.h: Still create mutex object when
215 2004-06-25 Paolo Carlini <pcarlini@suse.de>
217 * include/bits/stl_algobase.h (fill, fill_n): Revert last
218 change: actually we need to copy construct an object of type
219 _Tp, not of type iterator_traits<>::value_type, therefore the
222 2004-06-25 Paolo Carlini <pcarlini@suse.de>
224 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
225 dispatch: use iterator_traits<>::value_type, not _Tp.
227 2004-06-25 Paolo Carlini <pcarlini@suse.de>
229 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
230 * testsuite/25_algorithms/fill/2.cc: Likewise.
232 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
233 Paolo Carlini <pcarlini@suse.de>
235 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
236 for fill and fill_n, respectively: when copying is cheap, use a
237 temporary to avoid a memory read in each iteration.
239 2004-06-25 Paolo Carlini <pcarlini@suse.de>
241 * testsuite/25_algorithms/fill/1.cc: New.
242 * testsuite/25_algorithms/fill/2.cc: Likewise.
244 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
246 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
247 Remove copy constructor and assignment operator.
249 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
251 * include/bits/concurrence.h (__gnu_cxx::lock): New.
252 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
253 (__pool_base::_M_get_mutex): New.
254 * include/bits/allocator.h: Tweak.
255 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
256 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
257 * include/bits/stl_threads.h: Remove.
258 * include/Makefile.am: Also here.
259 * include/Makefile.in: Regenerate.
261 * src/locale_init.cc: Use __gnu_cxx::lock.
263 * src/allocator.cc: Move all instantiations...
264 * src/allocator-inst.cc: ...here.
266 2004-06-23 Andrew Pinski <apinski@apple.com>
268 * linkage.m4: Remove check for libmx.
269 * configure: Regenerate.
271 2004-06-23 Paolo Carlini <pcarlini@suse.de>
274 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
275 Don't require the _DefaultConstructibleConcept.
276 (struct _ForwardIteratorConcept): Require it here.
278 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
280 * include/bits/istream.tcc (getline): Make sure arguments passed
281 to min/max have the same type.
282 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
283 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
285 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
287 * docs/html/abi.html: Update links.
289 2004-06-22 Paolo Carlini <pcarlini@suse.de>
291 * testsuite/26_numerics/complex_inserters_extractors.cc,
292 complex_value.cc, buggy_complex.cc: Move to...
293 * testsuite/26_numerics/complex/: ... here.
294 * testsuite/26_numerics/c99_classification_macros_c++.cc,
295 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
296 fabs_inline.cc: Move to...
297 * testsuite/26_numerics/cmath/: ... here.
298 * testsuite/26_numerics/binary_closure.cc, slice.cc,
299 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
300 valarray_name_lookup.cc, valarray_operators.cc,
301 valarray_subset_assignment.cc: Move to...
302 * testsuite/26_numerics/valarray/: ... here (new dir).
303 * testsuite/26_numerics/sum_diff.cc: Move to...
304 * testsuite/26_numerics/numeric/: ... here (new dir).
306 2004-06-22 Paolo Carlini <pcarlini@suse.de>
308 * include/std/std_istream.h (ignore(streamsize __n = 1,
309 int_type __delim = traits_type::eof())): Split into...
310 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
311 int_type __delim)): The first two can be much more simpler
312 and efficient than the fully general case; also, the last
313 two can take advantage of the same mechanism already used
315 * include/bits/istream.tcc (ignore(streamsize __n = 1,
316 int_type __delim = traits_type::eof()): Remove.
317 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
318 int_type __delim)): New.
320 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
322 * config/linker-map.gnu: Use wildcards for
323 __basic_file::sys_open(FILE*, _Ios_Openmode).
325 2004-06-20 Paolo Carlini <pcarlini@suse.de>
327 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
329 2004-06-18 Paolo Carlini <pcarlini@suse.de>
331 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
332 the alignment requested.
333 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
334 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
335 (__mt_alloc<>::deallocate): Likewise.
337 2004-06-18 Paolo Carlini <pcarlini@suse.de>
340 * include/debug/safe_base.h
341 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
342 _Safe_sequence_base::operator=): Provide definitions.
343 * testsuite/23_containers/bitset/cons/16020.cc: New.
345 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
347 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
348 (__pool_base): Remove unused template parameter. Add
349 protected. Move lock data into __pool_base::_Lock. Remove static
351 (__pool_base::_M_get_free_list): New.
352 (__pool_alloc): Move _S_force new here.
353 * src/allocator.cc: Move out of line __pool_base definitions here.
354 * config/linker-map.gnu: Export bits from __pool_base.
356 2004-06-18 Paolo Carlini <pcarlini@suse.de>
358 * config/locale/gnu/numeric_members.cc
359 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
360 assignments of _M_decimal_point and _M_thousands_sep.
361 * config/locale/gnu/time_members.cc
362 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
363 and reformat assignments of date and time fields.
365 2004-06-16 Paolo Carlini <pcarlini@suse.de>
367 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
368 to use _Data_allocate.
369 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
370 (rope<>::_S_substring): Likewise.
371 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
372 (rope<>::c_str()): Likewise.
373 (rope<>::replace_with_c_str()): Likewise.
375 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
376 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
378 (_Rope_iterator_base<>::_S_setcache): Likewise.
379 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
380 (rope<>::_S_substring): Likewise.
381 (rope<>::_S_dump): Likewise.
382 (rope<>::_S_fetch_ptr): Likewise.
383 (rope<>::_S_compare): Likewise.
384 (rope<>::replace_with_c_str()): Likewise.
386 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
387 * testsuite/ext/rope/2.cc: New.
389 2004-06-16 Paolo Carlini <pcarlini@suse.de>
390 Matt Austern <austern@apple.com>
392 * testsuite/ext/rope/3.cc: New.
394 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
396 * acinclude.m4: Remove useless multilib configury.
397 * Makefile.am: Remove useless multilib rules.
398 * aclocal.m4: Regenerate.
399 * Makefile.in: Regenerate.
400 * configure: Regenerate.
402 2004-06-15 Paolo Carlini <pcarlini@suse.de>
404 * include/ext/hashtable.h: Trivial formatting fixes.
405 * include/ext/rb_tree: Likewise.
407 2004-06-14 Paolo Carlini <pcarlini@suse.de>
409 * include/ext/hash_map: Trivial formatting fixes.
410 * include/ext/hash_set: Likewise.
411 * include/ext/memory: Likewise.
412 * include/ext/numeric: Likewise.
414 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
416 * Makefile.in: Regenerate with automake 1.8.5.
418 * include/Makefile.in: Same.
419 * libmath/Makefile.in: Same.
420 * libsupc++/Makefile.in: Same.
421 * po/Makefile.in: Same.
422 * src/Makefile.in: Same.
423 * testsuite/Makefile.in: Same.
425 2004-06-14 Paolo Carlini <pcarlini@suse.de>
427 * include/ext/slist: Trivial formatting fixes.
429 2004-06-14 Paolo Carlini <pcarlini@suse.de>
431 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
432 Don't use the 'magic number' 10 in the computation of __minlen;
433 never access __name past __minlen; in the loop over __i3, don't
434 decrease __nmatches and increase __i3 at once, only either of
437 2004-06-13 Paolo Carlini <pcarlini@suse.de>
439 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
440 time_get<>::do_get_date): Use only once _M_extract_via_format,
441 instead of going through "%X"/"%x" and calling it two times
444 2004-06-12 Paolo Carlini <pcarlini@suse.de>
446 * include/ext/algorithm: Trivial formatting fixes.
447 * include/ext/functional: Likewise.
448 * include/ext/hash_fun.h: Likewise.
449 * include/ext/iterator: Likewise.
451 2004-06-12 Paolo Carlini <pcarlini@suse.de>
453 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
454 size_type)): Reimplement using std::search.
455 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
457 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
459 * testsuite/performance/21_strings/string_find.cc: New.
461 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
463 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
465 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
467 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
468 this function return a value.
470 2004-06-09 Paolo Carlini <pcarlini@suse.de>
473 * include/bits/stl_deque.h: Consistently with stl_set.h, define
474 pointer as allocator's pointer, likewise for reference,
475 const_pointer, and const_reference.
476 * include/bits/stl_list.h: Likewise.
477 * include/bits/stl_map.h: Likewise.
478 * include/bits/stl_multimap.h: Likewise.
479 * include/bits/stl_vector.h: Likewise.
481 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
483 * crossconfig.m4: Remove signbit, signbitf, signbitl.
484 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
485 builtin math functions instead of AC_DEFINE_UNQUOTED.
486 * configure: Regenerate.
488 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
490 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
491 * docs/doxygen/mainpage.html: Remove links.
493 2004-06-08 Jason Merrill <jason@redhat.com>
495 * config/linker-map.gnu: Use wildcards for
496 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
498 2004-06-08 Paolo Carlini <pcarlini@suse.de>
500 * include/ext/pool_allocator.h: Convert to a global free-list,
501 as per the original SGI/HP design: move the implementation
502 details to struct __pool_base, from which __pool_alloc derives.
503 * src/allocator.cc: Instantiate __pool_base.
505 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
506 Paolo Carlini <pcarlini@suse.de>
508 * testsuite/testsuite_performance.h
509 (resource_counter::allocated_memory): Make it return the right
510 number of bytes requested by the allocators/application. This is
511 the sbrk+mmaped memory.
513 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
515 * include/std/std_complex.h (log): Tidy.
517 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
519 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
520 * testsuite/testsuite_abi.cc: Same.
521 * configure.ac (libtool_VERSION): Bump to 6:1:0.
522 * configure: Regenerate.
523 * aclocal.m4: Regenerate.
525 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
527 * include/std/std_complex.h (complex<_Tp>): Properly indent
529 (complex<>::__rep): New.
530 (__complex_abs): New. Dispatch to built-ins.
532 (__complex_arg): New. Dispatch to built-ins.
534 (__complex_cos): New. Dispatch to built-ins.
536 (__complex_cosh): New. Dispatch to built-ins.
538 (__complex_exp): New. Dispatch to built-ins.
540 (__complex_log): New. Dispatch to built-ins.
542 (__complex_sin): New. Dispatch to built-ins.
544 (__complex_sinh): New. Dispatch to built-ins.
546 (__complex_sqrt): New. Dispatch to built-ins.
548 (__complex_tan): New. Dispatch to built-ins.
550 (__complex_tanh): New. Dispatch to built-ins.
552 (__complex_pow): New. Dispatch to built-ins.
555 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
556 Benjamin Kosnik <bkoz@redhat.com>
559 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
560 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
561 * config/io/basic_file_stdio.cc (__basic_file::file): New.
562 * config/io/basic_file_stdio.h: Define.
564 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
567 * docs/html/documentation.html: Update doxygen links for 3.4.0.
569 2004-05-27 Jan Beulich <jbeulich@novell.com>
571 * scripts/create_testsuite_files: Tweak.
573 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
576 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
577 bits to do the same thing.
579 2004-05-24 Paolo Carlini <pcarlini@suse.de>
581 * include/bits/istream.tcc (ignore): Correctly deal with
582 n == numeric_limits<streamsize>::max().
583 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
585 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
586 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
587 __n == numeric_limits<>::min().
589 * include/bits/istream.tcc: Minor tweaks.
591 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
593 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
595 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
597 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
599 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
601 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
605 * include/bits/basic_string.h (basic_string::operator=): Return
606 pointer to this instead of result of assign. Although redundant,
607 this doesn't impact resultant codegen.
609 * include/bits/locale_facets.h (__numpunct_cache): Declare
610 assignment opxserator and copy constructor private.
611 (__timepunct_cache): Same.
612 (__moneypunct_cache): Same.
613 (collate): Use member initialization list for _M_c_locale_collate.
614 * config/locale/gnu/messages_members.h: Same.
615 * config/locale/gnu/time_members.h (__timepunct): Same.
616 * src/codecvt.cc: Use member initialization list to initialize
618 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
619 * config/os/gnu-linux/ctype_noninline.h: Same.
620 * src/locale.cc (_Impl): Same.
621 * src/locale_init.cc: Same.
622 * src/localename.cc: Same.
624 * include/bits/basic_ios.h (basic_ios): Complete member
626 * include/bits/istream.tcc (basic_istream::sentry): Same.
627 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
628 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
629 _M_pback to member initialization list.
630 * include/std/std_streambuf.h: Same.
631 * include/std/std_sstream.h: Same, for _M_mode.
632 * src/ios.cc (ios_base): Same.
634 * include/ext/rope: Make derived classes match exception
636 specifications. Add copy constructors and assignment operators.
638 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
639 constructor and assignment operator protected.
640 (_Safe_iterator_base): Same.
641 * include/debug/formatter.h (_Error_formatter): Define copy
642 constructor and assignment operator.
644 * include/backward/strstream: Declare assignment operator and copy
647 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
649 * testsuite/testsuite_hooks.h (func_callback): Declare copy
650 constructor and assignment operator private.
651 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
652 exception specifications of base class.
653 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
654 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
655 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
657 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
659 * libsupc++/cxxabi.h: Remove duplicated and useless public and
660 private keywords in class declarations. Format. Use
661 stddef.h. Expose declarations to "C" compilation.
662 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
664 (__dyncast_result): Same.
665 * libsupc++/vec.cc (uncatch_exception): Same, use member
668 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
670 * testsuite/abi_check.cc: Add unistd.h.
672 2004-05-22 Paolo Carlini <pcarlini@suse.de>
675 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
676 __int_to_char(unsigned long long)): Showpos is not relevant
678 * testsuite/22_locale/num_put/put/char/15565.cc: New.
679 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
681 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
683 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
684 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
685 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
686 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
687 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
688 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
690 2004-05-21 Matthias Klose <doko@debian.org>
692 * docs/doxygen/run_doxygen: Bump required version.
694 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
696 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
697 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
699 2004-05-21 Paolo Carlini <pcarlini@suse.de>
701 * include/bits/istream.tcc (ignore): Remove redundant line.
702 (readsome): Tidy, closely following 27.6.1.3, p30.
704 2004-05-20 Paolo Carlini <pcarlini@suse.de>
706 * include/bits/istream.tcc (operator>>(basic_istream<>&,
707 basic_string<>&)): Use a temporary buffer, thus avoiding
708 reallocation for common case.
709 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
711 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
714 * include/bits/istream.tcc: Const-ification of a few variables.
716 * include/bits/ostream.tcc: Trivial formatting fixes and
717 const-ification of some variables.
719 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
723 * docs/doxygen/Intro.3: Remove Allocators.3.
724 Add new extension headers, extension namespace list.
725 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
726 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
727 __gnu_debug::. Remove __policy_ renames.
728 * docs/doxygen/guide.html: Add dot note.
729 * docs/doxygen/stdheader.cc: Edit, add files.
730 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
732 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
734 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
736 2004-05-18 Jan Beulich <jbeulich@novell.com>
739 * scripts/create_testsuite_files: Also find source files through
742 2004-05-18 Jan Beulich <jbeulich@novell.com>
745 * testsuite/lib/libstdc++.exp: Make test files writable.
747 2004-05-18 Paolo Carlini <pcarlini@suse.de>
749 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
752 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
754 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
755 allocation loop which removes blocks from the global free list
756 from O(N) to O(1) when the required blocks are <= the number
759 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
761 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
763 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
765 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
766 * testsuite/23_containers/deque/14340.cc: New.
767 * testsuite/23_containers/list/14340.cc: New.
768 * testsuite/23_containers/map/14340.cc: New.
769 * testsuite/23_containers/multimap/14340.cc: New.
770 * testsuite/23_containers/multiset/14340.cc: New.
771 * testsuite/23_containers/set/14340.cc: New.
772 * testsuite/23_containers/vector/14340.cc: New.
774 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
777 * include/debug/safe_iterator.h (_Safe_iterator converting
778 constructor): Only allow declaration to instantiate when the
779 incoming _Safe_iterator has exactly the right iterator type.
781 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
783 * include/bits/boost_concept_check.h: Fix old attribute syntax.
784 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
785 to pass concept-checks.
786 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
787 * testsuite/23_containers/set/modifiers/swap.cc: Same.
788 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
790 2004-05-16 Paolo Carlini <pcarlini@suse.de>
792 * include/std/std_bitset.h: Minor formatting fixes.
794 2004-05-16 Paolo Carlini <pcarlini@suse.de>
796 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
797 Consistently update __bin._M_free[0].
798 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
799 __bin._M_free[0] to simplify the while loop (i.e., the number
800 of iterations becomes known at the outset).
802 2004-05-15 Paolo Carlini <pcarlini@suse.de>
804 * include/std/std_bitset.h: Trivial formatting fixes.
806 2004-05-14 Paolo Carlini <pcarlini@suse.de>
807 Ivan Godard <igodard@pacbell.net>
810 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
811 * testsuite/23_containers/bitset/ext/15361.cc: New.
813 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
816 * crossconfig.m4: Add C99 math bits for linux crosses.
817 * configure: Regenerate.
819 2004-05-13 Simon Marshall <simon.marshall@misys.com>
820 Benjamin Kosnik <bkoz@redhat.com>
823 * include/bits/locale_facets.h: Fix for -fno-for-scope.
824 * include/debug/safe_sequence.h: Same.
825 * include/debug/safe_iterator.tcc: Same.
826 * src/debug.cc: Same.
827 * src/locale.cc: Same.
828 * src/locale_init.cc: Same.
829 * src/localename.cc: Same.
830 * config/locale/gnu/ctype_members.cc: Same.
831 * config/locale/gnu/numeric_members.cc: Same.
832 * testsuite/testsuite_abi.cc: Same.
833 * testsuite/testsuite_hooks.cc: Same.
835 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
837 * docs/html/abi.html: Document effect of -fabi-version on value
838 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
841 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
844 * docs/html/faq/index.html: Update docs for libsupc++ usage.
846 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
849 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
851 (_GLIBCXX_mutex_address): Same.
852 (_GLIBCXX_once): Same.
853 (_GLIBCXX_mutex_init): Same.
854 (_GLIBCXX_mutex_address_init): Same.
856 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
858 * docs/html/abi.html: New.
859 * docs/html/abi.txt: Remove.
860 * docs/html/documentation.html: Add link.
861 * testsuite/Makefile.am: Add files.
862 * testsuite/Makefile.in: Regenerated.
863 * testsuite/abi_check.cc: Move and modify code into...
864 * testsuite/testsuite_abi.cc: Add.
865 * testsuite/testsuite_abi.h: Add.
867 * docs/html/17_intro/TODO: Update.
868 * include/bits/stl_pair.h: Format.
870 2004-05-06 Matthias Klose <doko@debian.org>
872 * include/backward/iterator.h: Add GPL copyright info,
873 with exception clause.
874 * include/bits/boost_concept_check.h: Likewise.
876 * libsupc++/tinfo.h: Likewise.
877 * po/string_literals.cc: Likewise.
879 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
881 * acinclude.m4: Replace -W with more speaking -Wextra.
882 * configure: Rebuilt.
884 2004-05-03 Paolo Carlini <pcarlini@suse.de>
886 Optimize locale::_M_impl->_M_names for the most common cases:
887 !_M_names[0] means unnamed; !_M_names[1] means all the categories
888 the same name (_M_names[0] && _M_names[1] means that the full set
889 of _M_names must be processed, the general case).
890 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
891 Tweak, saving work when !_M_names[1].
892 (locale::locale(const locale&, _Facet*): Simplify: now just setting
893 _M_names[0] = 0 means unnamed.
894 * src/locale.cc (locale::operator==): Deal first with the common,
895 easy cases, otherwise fall back to locale::name().
896 (locale::name()): Tweak, if !_M_names[0] just return "*".
897 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
898 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
899 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
900 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
901 Simplify when !std::strchr, just updating _M_names[0]; clean up.
902 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
903 for the general case (full set of names), then do the usual work;
906 * src/locale.cc (locale::name()): Reserve space in __ret.
907 * src/locale_init.cc (locale::global(const locale&)): Save
908 the name in a temporary.
909 * src/localename.cc (locale::locale(const char*)): Reserve space
912 2004-04-29 Paolo Carlini <pcarlini@suse.de>
914 * src/locale.cc (locale::operator==): Always avoid constructing
915 locale::name(), directly compare pairs of _M_names.
917 2004-04-26 Paolo Carlini <pcarlini@suse.de>
919 * include/bits/istream.tcc: Fix comment.
921 2004-04-26 Paolo Carlini <pcarlini@suse.de>
923 * include/bits/stl_vector.h: Trivial formatting fixes.
924 * include/bits/vector.tcc: Likewise.
926 2004-04-25 Paolo Carlini <pcarlini@suse.de>
928 PR libstdc++/15002 (continued again)
929 * include/bits/istream.tcc (getline(basic_istream<>&,
930 basic_string<>&, _CharT)): Use a temporary buffer, thus
931 avoiding reallocation for common case.
933 * include/bits/basic_string.tcc (_S_construct(_InIterator,
934 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
935 of temporary buffer to a power of two.
937 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
939 2004-04-25 Paolo Carlini <pcarlini@suse.de>
941 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
943 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
945 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
947 2004-04-24 Paolo Carlini <pcarlini@suse.de>
948 Petur Runolfsson <peturr02@ru.is>
950 PR libstdc++/15002 (continued)
951 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
952 streamsize, char_type)): Use traits::find/copy in a loop to speed
953 up greatly the function in the common case (I/O buffer size >> 1).
955 2004-04-24 Paolo Carlini <pcarlini@suse.de>
957 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
959 * include/bits/istream.tcc (getline(basic_istream<>&,
960 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
961 of sbumpc(), consistently with the other functions, thus also
962 dealing correctly with the case of exceeded string::max_size().
964 2004-04-24 Matthias Klose <doko@debian.org>
966 Jonathan Wakely <cow@compsoc.man.ac.uk>
967 * docs/html/configopts.html: Fix reference to allocator config option.
969 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
971 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
972 * configure: Regenerate.
974 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
976 PR libstdc++/15047, libstdc++/11610
977 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
978 (libstdc++_init): Don't pass outdir to v3-copy-files.
980 2004-04-21 Paolo Carlini <pcarlini@suse.de>
982 * include/bits/deque.tcc: Trivial formatting fixes.
983 * include/bits/stl_deque.h: Likewise.
984 * include/bits/stl_list.h: Likewise.
985 * include/bits/stl_tree.h: Likewise.
987 2004-04-21 Paolo Carlini <pcarlini@suse.de>
988 Andrew Pinski <pinskia@physics.uc.edu>
990 * include/bits/basic_string.tcc (_M_mutate): Don't compute
993 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
995 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
996 Clarify assertion, set test variable to false before assert.
997 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
998 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
999 * testsuite/27_io/ios_base/storage/2.cc: Same.
1001 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
1003 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
1004 * testsuite/27_io/fpos/14320-3.cc: Same.
1006 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
1007 * testsuite/27_io/fpos/1.cc: Same.
1008 * testsuite/27_io/basic_stringstream/2.cc: Same.
1009 * testsuite/27_io/basic_stringbuf/4.cc: Same.
1010 * testsuite/27_io/basic_stringbuf/1.cc: Same.
1011 * testsuite/27_io/basic_stringbuf/2.cc: Same.
1012 * testsuite/27_io/basic_streambuf/2.cc: Same.
1013 * testsuite/27_io/basic_ostringstream/2.cc: Same.
1014 * testsuite/27_io/basic_ostream/2.cc: Same.
1015 * testsuite/27_io/basic_ofstream/2.cc: Same.
1016 * testsuite/27_io/basic_istringstream/2.cc: Same.
1017 * testsuite/27_io/basic_istream/2.cc: Same.
1018 * testsuite/27_io/basic_iostream/2.cc: Same.
1019 * testsuite/27_io/basic_ios/2.cc: Same.
1020 * testsuite/27_io/basic_ifstream/2.cc: Same.
1021 * testsuite/27_io/basic_fstream/2.cc: Same.
1022 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
1024 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
1025 unsigned against zero.
1026 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
1027 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
1029 * testsuite/18_support/new_delete_placement.cc: Initialize
1030 variables before first use.
1031 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
1032 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
1033 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
1034 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
1036 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
1037 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
1039 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
1040 * testsuite/27_io/types/2.cc: Same.
1042 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
1044 * testsuite/27_io/fpos/14775.cc: Same.
1046 2004-04-19 Paolo Carlini <pcarlini@suse.de>
1048 PR libstdc++/15002 (partial)
1049 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
1050 Special case __n2 == 1, not calling traits_type::assign/copy.
1052 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
1054 * include/bits/stl_bvector.h: Use _M_impl._M_start.
1056 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
1058 * include/bits/c++config (_GLIBCXX_STD): New.
1059 * src/list.cc: Use it.
1060 * include/std/std_bitset.h: Same.
1061 * include/bits/vector.tcc: Same.
1062 * include/bits/stl_set.h: Same.
1063 * include/bits/stl_multiset.h: Same.
1064 * include/bits/stl_multimap.h: Same.
1065 * include/bits/stl_map.h: Same.
1066 * include/bits/stl_list.h: Same.
1067 * include/bits/stl_vector.h: Same.
1068 * include/bits/stl_bvector.h: Same.
1069 * include/bits/stl_deque.h: Same.
1070 * include/bits/deque.tcc: Same.
1071 * include/bits/list.tcc: Same.
1072 * include/debug/vector: Same.
1073 * include/debug/set.h: Same.
1074 * include/debug/multiset.h: Same.
1075 * include/debug/multimap.h: Same.
1076 * include/debug/map.h: Same.
1077 * include/debug/list: Same.
1078 * include/debug/deque: Same.
1079 * include/debug/bitset: Same.
1080 * include/debug/formatter.h (__gnu_debug): Remove using directive.
1081 Add using declaration for std::type_info.
1082 * include/debug/safe_iterator.h: Add using declaration for
1083 std::iterator_traits and std::pair.
1084 * src/debug_list.cc: New.
1085 * src/Makefile.am: Add debug_list.cc.
1086 * src/Makefile.in: Regenerate.
1087 * config/linker-map.gnu: Add _List_node_base exports for std and
1090 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
1091 idiom that other containers use.
1092 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
1094 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1097 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
1099 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
1100 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
1102 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1104 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
1106 * config.h.in: Regenerate.
1108 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1110 * config/locale/generic/monetary_members.cc
1111 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
1112 btowc unnecessarily, just cast to wchar_t (the concerned chars
1113 all belong to the basic character set).
1114 * config/locale/generic/numeric_members.cc
1115 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1116 * config/locale/gnu/monetary_members.cc
1117 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
1118 * config/locale/gnu/numeric_members.cc
1119 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1121 2004-04-15 Paolo Carlini <pcarlini@suse.de>
1123 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
1124 avoid constructing unnecessarily this->name().
1126 2004-04-14 Zack Weinberg <zack@codesourcery.com>
1128 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
1129 Change definition of CXX to use $(shell) instead of backticks.
1130 * testsuite/Makefile.in: Regenerate.
1132 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
1134 * testsuite/performance/20_util/allocator/list_sort_search.cc:
1135 Minor formatting fixes.
1136 * testsuite/performance/20_util/allocator/map_mt_find.cc:
1139 2004-04-12 Paolo Carlini <pcarlini@suse.de>
1141 * config/locale/gnu/numeric_members.cc
1142 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
1143 in __uselocale, since btowc is called for chars belonging to
1144 the basic character set.
1146 2004-04-09 Paolo Carlini <pcarlini@suse.de>
1148 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
1149 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
1150 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
1151 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
1152 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
1153 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
1154 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
1155 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
1156 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
1157 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
1158 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
1159 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
1160 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
1161 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
1162 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
1163 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
1164 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
1166 2004-04-07 Paolo Carlini <pcarlini@suse.de>
1168 * config/locale/generic/time_members.cc
1169 (__timepunct<char>::_M_initialize_timepunct,
1170 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
1171 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
1172 * config/locale/gnu/time_members.cc
1173 (__timepunct<char>::_M_initialize_timepunct,
1174 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
1175 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
1176 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
1178 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
1179 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
1180 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
1181 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
1182 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
1183 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
1184 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
1185 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
1186 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
1187 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
1188 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
1189 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
1190 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
1191 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
1192 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
1193 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
1194 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
1195 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
1196 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
1197 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
1198 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
1199 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
1200 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
1201 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
1202 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
1203 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
1204 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
1205 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
1206 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
1207 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
1208 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
1209 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
1210 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
1211 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
1212 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
1213 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
1215 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
1217 2004-04-07 Paolo Carlini <pcarlini@suse.de>
1219 * config/locale/gnu/monetary_members.cc
1220 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
1221 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
1222 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
1223 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
1224 * config/locale/gnu/numeric_members.cc
1225 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
1226 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
1228 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
1230 Fixups for EDG front end.
1231 * include/ext/rope: Instead of non-existent function
1232 _Data_allocate, use allocator's allocate. Use this.
1233 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
1234 enumerations from _Rope_RopeRep here.
1235 * include/ext/ropeimpl.h: Same.
1236 * src/ext-inst.cc (_S_min_len): Fix up definition.
1238 * config/locale/gnu/ctype_members.cc: Qualify base class members
1240 * config/locale/generic/ctype_members.cc: Same.
1241 * config/locale/gnu/messages_members.h: Same.
1242 * config/locale/generic/messages_members.h: Same.
1243 * src/ctype.cc: Same.
1244 * include/bits/codecvt.h: Same.
1246 * include/bits/boost_concept_check.h: Declare.
1247 (__error_type_must_be_an_unsigned_integer_type): Remove this.
1248 (__error_type_must_be_an_integer_type): Remove this.
1249 (__error_type_must_be_a_signed_integer_type): Remove this.
1251 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
1253 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
1254 specification to definition.
1255 (__cxa_allocate_exception): Same.
1256 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
1257 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
1258 (__cxa_get_globals): Same.
1260 * libsupc++/del_op.cc: Add comment about freestanding.
1262 2004-04-05 Paolo Carlini <pcarlini@suse.de>
1264 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1265 The critical section is actually very small, only two assignments.
1267 2004-04-04 Paolo Carlini <pcarlini@suse.de>
1268 Petur Runolfsson <peturr02@ru.is>
1270 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
1271 adapted from libstdc++/11378.
1273 2004-04-03 Paolo Carlini <pcarlini@suse.de>
1275 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
1276 some duplicated code.
1277 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
1278 in the single threaded case.
1279 * testsuite/performance/20_util/allocator/list_sort_search.cc:
1280 Reorder and renumber the tests consistently with the other testfiles.
1281 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1282 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1283 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1285 2004-04-02 Paolo Carlini <pcarlini@suse.de>
1287 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1288 Rearrange arithmetic to avoid computing two divisions at
1291 2004-04-01 Paolo Carlini <pcarlini@suse.de>
1293 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
1294 Streamline the second half, wrapping it in a single
1295 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
1296 conditionals inside loops.
1298 2004-04-01 Paolo Carlini <pcarlini@suse.de>
1301 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
1302 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
1303 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
1304 to _GLIBCXX_RES_LIMITS.
1305 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
1307 * testsuite/testsuite_hooks.h: Declare set_file_limit.
1308 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
1309 and setrlimit(RLIMIT_FSIZE).
1310 * testsuite/27_io/fpos/14775.cc: New.
1311 * config.h.in: Regenerate.
1312 * configure: Likewise.
1314 2004-03-31 Paolo Carlini <pcarlini@suse.de>
1316 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
1317 In v3 uses of sscanf, the special floating-point numbers INF,
1318 INFINITY, etc., cannot occur in input, therefore, if the latter
1319 is too large, ERANGE is always stored in errno, no need of finitel.
1321 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
1324 * include/bits/stl_tree.h: Adjust initialization list order.
1326 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
1328 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
1330 2004-03-29 Paolo Carlini <pcarlini@suse.de>
1332 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
1333 on allocator behavior, the memory pointed by data2 may well be not
1336 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
1339 * include/bits/basic_string.tcc
1340 (basic_string::basic_string(const basic_string&)): Pass to
1341 _Rep::_M_grab the actual allocator of the string being constructed
1342 not the default constructed one.
1344 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
1347 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
1348 (__enc_traits::_M_destroy): New.
1349 (__enc_traits::~__enc_traits): Use it.
1350 (__enc_traits::operator=): Use _M_destroy, _M_init.
1351 (__enc_traits::__enc_traits): Same.
1353 2004-03-27 Petur Runolfsson <peturr02@ru.is>
1355 * testsuite/ext/enc_filebuf/char/13598.cc: New.
1357 2004-03-27 Paolo Carlini <pcarlini@suse.de>
1359 * include/ext/mt_allocator.h: Uglify consistently names of
1360 variables, members and classes; tidy.
1362 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
1364 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1365 Deallocation loop rewrote.
1367 2004-03-26 Paolo Carlini <pcarlini@suse.de>
1369 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1370 __mt_alloc<>::deallocate): Protect two instances of
1371 block->thread_id with __GTHREADS.
1373 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
1375 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
1376 default argument in constructors.
1377 (_Rb_tree::_M_empty_initialize): Remove.
1379 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
1381 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
1382 * testsuite/23_containers/set/operators/1_neg.cc: Same.
1384 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1386 * include/bits/cpp_type_traits.h: Changed __is_pod
1387 completely. Now, it does not use any of the previous type_traits
1388 to detect the pod types, and it also detects function pointers as
1391 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
1392 which encapsulates the internal implementation of an rb_tree. Made
1393 the allocator a base class of this class instead of the rb_tree,
1394 which was not conforming. This _Rb_tree_impl class is also
1395 specialized on whether the _Compare parameter is a POD type or
1396 not. If so, then it maintains the comparison function as a data
1397 member, otherwise it makes the _Compare parameter a base class of
1398 itself. Also, _M_key_compare is now a function instead of a data
1399 member, so that the above trick can work properly. Delegated the
1400 initialization of the other data members to this newly created
1401 class. Also, now other member functions of rb_tree must refer to
1402 _M_key_compare as _M_impl._M_key_compare(). The other data members
1403 (*) can be referenced to as _M_impl.(*), where
1404 (*) includes _M_header, and _M_node_count.
1406 2004-03-25 Paolo Carlini <pcarlini@suse.de>
1408 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
1409 Add _M_min_bin, the size in bytes of the smallest bin.
1410 (__mt_alloc<>::tune()): Tweak accordingly.
1411 (__mt_alloc<>::tune(size_t, ...)): Likewise.
1412 (__mt_alloc<>::block_record): Change to a union: members next
1413 and thread_id are never used at the same time.
1414 (__mt_alloc<>::allocate): Update consistently.
1415 (__mt_alloc<>::deallocate): Likewise.
1416 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
1417 _S_bin_size for the configurable _M_min_size.
1419 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1421 * include/bits/stl_list.h: Created a _List_impl class and made it
1422 derive from the allocator, instead of the list deriving from the
1423 allocator class, which was not conformant. Changed all references
1424 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
1425 as above (changed all references to the concerned variables).
1427 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1429 * include/bits/stl_deque.h: Created a _Deque_impl class and made
1430 it derive from the allocator, instead of the deque deriving from
1431 the allocator class, which was not conformant. Changed all
1432 references to the _M_start, _M_finish, _M_map, and _M_map_size to
1434 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
1435 qualification in 2 places where it was missing.
1436 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
1438 * include/bits/deque.tcc: Same as above (changed all references to
1439 the concerned variables).
1441 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1443 * include/bits/stl_vector.h: Created a _Vector_impl class and made
1444 it derive from the allocator, instead of the _Vector_base class,
1445 deriving from the allocator which was not conformant. Changed all
1446 references to the _M_start, _M_finish, and _M_end_of_storage to
1448 * include/bits/vector.tcc: Same as above (changed all references
1449 to the concerned variables).
1451 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1453 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
1454 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
1455 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
1457 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
1459 * include/ext/malloc_allocator.h: Fixed the construct function to
1460 call global placement new instead of assignment. Added a check
1461 after the return from malloc to check whether returned pointer is
1462 NULL, and if so, throw std::bad_alloc().
1463 * include/ext/debug_allocator.h: Added a check in the deallocate
1464 function to check whether the user has passed a NULL pointer or
1467 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
1469 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
1471 2004-03-24 Andreas Schwab <schwab@suse.de>
1473 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
1474 warning from IA64 assembler.
1476 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
1478 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
1479 function call __builtin_ctz instead of the while loop.
1480 (allocate) -> If condition has __builtin_expect.
1481 (deallocate) -> Ditto.
1482 Renamed a few left-over variables and typedefs according to the
1483 C++STYLE mentioned in the documentation.
1484 Protected calls to __gthread* by __gthread_active_p(), whose value
1485 is cached in the local variable __threads_active.
1487 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
1489 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1490 Use linear algorithm for producer.
1492 2004-03-24 Paolo Carlini <pcarlini@suse.de>
1494 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1495 __mt_alloc<>::deallocate): Avoid redundant conditionals.
1497 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
1499 * include/bits/locale_facets.h: Tweaks for 80 column.
1500 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
1501 (__moneypunct_cache::_M_cache): Same.
1502 (num_get): Don't inherit from __num_base.
1504 (money_get): Don't inherit from money_base.
1506 (__timepunct::_M_am_pm_format): New.
1507 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
1508 (time_get::_M_extract_name): Same.
1509 (time_get::_M_extract_via_format): Same.
1510 * include/bits/locale_facets.tcc: Tweaks for 80 column.
1511 Use _M_getloc instead of getloc.
1512 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
1513 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
1514 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
1516 2004-03-22 Paolo Carlini <pcarlini@suse.de>
1518 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
1519 * configure: Regenerate.
1520 * config/allocator/pool_allocator_base.h: New.
1521 * include/ext/pool_allocator.h: Convert to a standard-conforming
1523 * src/allocator.cc: Tweak instantiations.
1524 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
1525 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
1526 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
1527 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1528 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1529 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1531 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
1533 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
1534 inline" and attribute-unused. Qualify parameter __mem with
1536 (__exchange_and_add): Ditto. Add back memory clobber to asm.
1538 2004-03-20 Paolo Carlini <pcarlini@suse.de>
1540 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
1542 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
1544 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
1546 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
1548 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
1550 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
1552 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
1554 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
1556 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
1558 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
1561 2004-03-20 Paolo Carlini <pcarlini@suse.de>
1563 * include/std/std_valarray.h: Document DR389 [Ready].
1564 * docs/html/ext/howto.html: Add an entry for DR389.
1566 2004-03-19 Michael Eager <eager@mvista.com>
1568 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
1571 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1573 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
1575 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
1576 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
1577 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
1578 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
1579 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
1580 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
1581 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
1582 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
1583 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
1585 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1586 Petur Runolfsson <peturr02@ru.is>
1589 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
1590 no way to find out the conversion used by the underlying FILE*.
1591 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
1592 * testsuite/27_io/objects/char/9.cc: Tweak.
1594 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1597 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
1598 memory allocation/deallocation calls.
1599 * testsuite/ext/14648.cc: New.
1601 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
1604 * include/backward/bvector.h (bit_vector): Allocator is in std
1607 2004-03-19 Phil Edwards <phil@codesourcery.com>
1609 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
1610 not libiconv. SUBST this variable as well.
1611 * testsuite/Makefile.am (site.exp): New target, based on that
1612 created by automake. Also set libiconv.
1614 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
1615 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1616 testsuite/Makefile.in: Regenerate.
1618 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
1620 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
1621 new_allocator for all hosts.
1622 * configure: Regenerate.
1624 2004-03-16 Paolo Carlini <pcarlini@suse.de>
1626 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
1627 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
1629 2004-03-15 Paolo Carlini <pcarlini@suse.de>
1631 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1632 Adjust the logic underlying the parsing of symbol to deal
1633 correctly with an optional sign component (i.e., when either
1634 negative_sign or positive_sign is empty)
1635 * testsuite/22_locale/money_get/get/char/19.cc: New.
1636 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
1638 2004-03-15 Paolo Carlini <pcarlini@suse.de>
1640 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1641 Do not accept an incomplete currency symbol.
1642 * testsuite/22_locale/money_get/get/char/18.cc: New.
1643 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
1645 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
1647 * config/allocator: New.
1648 * config/allocator/bitmap_allocator_base.h: New.
1649 * config/allocator/malloc_allocator_base.h: New.
1650 * config/allocator/mt_allocator_base.h: New.
1651 * config/allocator/new_allocator_base.h: New.
1652 * include/bits/allocator.h: Include c++allocator.h.
1653 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
1654 * aclocal.m4: Regenerate.
1655 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
1656 * configure: Regenerate.
1657 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
1658 * include/Makefile.in: Regenerate.
1659 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
1661 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
1663 * include/bits/allocator.h: Revert.
1665 2004-03-12 Paolo Carlini <pcarlini@suse.de>
1667 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
1668 * include/bits/gslice_array.h: Add comment about DR 253.
1669 * include/bits/indirect_array.h: Likewise.
1670 * include/bits/mask_array.h: Likewise.
1671 * include/bits/slice_array.h: Likewise.
1673 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
1675 * testsuite/20_util/allocator/14176.cc: New.
1676 * include/ext/mt_allocator.h: Formatting fixes.
1678 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
1680 * include/Makefile.am (ext_headers): Add
1681 ${ext_srcdir}/bitmap_allocator.h .
1682 * include/Makefile.in: Regenerate.
1683 * docs/html/ext/ballocator_doc.txt: New file.
1684 * include/ext/bitmap_allocator.h: New file.
1685 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
1687 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1688 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
1689 test for the bitmap_allocator<>.
1690 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
1691 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1692 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1694 2004-03-11 Paolo Carlini <pcarlini@suse.de>
1696 * include/std/std_complex.h (pow(const complex&, const _Tp&),
1697 pow(const _Tp&, const complex&), pow(const complex&,
1698 const complex&)): Fully qualify with std:: a few calls.
1699 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
1701 2004-03-11 Steven Bosscher <stevenb@suse.de>
1704 * include/c_std/cmath.tcc (__cmath_power): Define inline.
1706 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
1708 * configure.ac: Bump AC_PREREQ to 2.59.
1710 2004-03-10 Paolo Carlini <pcarlini@suse.de>
1712 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
1714 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
1715 Paolo Carlini <pcarlini@suse.de>
1718 * include/std/std_complex.h (pow(const complex&, const _Tp&),
1719 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
1720 * testsuite/26_numerics/complex/13450.cc: New.
1722 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
1723 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
1725 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
1728 * include/bits/gslice_array.h (gslice_array()): Make public.
1729 (operator=(gslice_array)): Make public. Implement.
1730 * include/bits/indirect_array.h (indirect_array()): Make public.
1731 * include/bits/mask_array.h (mask_array()): Make public.
1732 (operator=(mask_array)): Make public. Implement.
1733 * include/bits/valarray_array.tcc (__valarray_copy):
1734 Comment. Add versions for gslice_array and mask_array.
1735 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
1737 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
1739 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
1741 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
1742 * testsuite/23_containers/set/modifiers/swap.cc: Same.
1743 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1744 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1745 * testsuite/23_containers/map/modifiers/swap.cc: Same.
1746 * testsuite/23_containers/list/modifiers/swap.cc: Same.
1748 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
1750 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
1753 * testsuite/23_containers/deque/modifiers/swap.cc: New.
1754 * testsuite/23_containers/list/modifiers/swap.cc: New.
1755 * testsuite/23_containers/map/modifiers/swap.cc: New.
1756 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
1757 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
1758 * testsuite/23_containers/set/modifiers/swap.cc: New.
1759 * testsuite/23_containers/vector/modifiers/swap.cc: New.
1761 2004-03-08 Petur Runolfsson <peturr02@ru.is>
1764 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
1766 2004-03-08 Paolo Carlini <pcarlini@suse.de>
1768 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
1769 * include/bits/stl_multiset.h: Add comment about DR 103.
1770 * include/bits/stl_set.h: Likewise.
1772 2004-03-08 Paolo Carlini <pcarlini@suse.de>
1774 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1775 The value _space_ indicates that at least one space is required
1777 * testsuite/22_locale/money_get/get/char/17.cc: New.
1778 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
1780 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
1781 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
1783 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
1784 Remove redundant conditional on __str.size().
1786 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
1788 * include/bits/allocator.h: Switch defaults to mt_alloc.
1790 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
1792 * include/ext/mt_allocator.h (_S_initialize): If
1793 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
1795 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
1798 * src/locale_init.cc (locale::locale): Lock critical regions with
1800 (locale::global): Same.
1801 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
1802 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
1803 (__glibcxx_mutex_lock): Same.
1805 * config/cpu/generic/atomicity.h: Remove
1806 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
1807 * src/misc-inst.cc: Move all locking bits out of this file.
1809 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
1810 * src/misc-inst.cc: Same.
1811 * config/cpu/hppa/atomicity.h: Same.
1813 * config/linker-map.gnu: Remove types in the signature of atomic
1814 exports, as they may vary.
1816 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1818 * include/bits/locale_facets.tcc: Tweak the comment preceding
1819 has_facet: doesn't throw.
1821 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1823 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
1824 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
1825 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
1826 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
1827 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
1828 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
1829 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
1830 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
1832 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1834 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1835 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
1836 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
1837 * testsuite/testsuite_character.h (struct __gnu_test::character):
1839 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
1842 2004-03-05 Paolo Carlini <pcarlini@suse.de>
1844 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
1846 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
1848 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
1850 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
1852 * testsuite/23_containers/deque/invalidation/4.cc: Same.
1853 * testsuite/23_containers/list/invalidation/1.cc: Same.
1854 * testsuite/23_containers/list/invalidation/2.cc: Same.
1855 * testsuite/23_containers/list/invalidation/3.cc: Same.
1856 * testsuite/23_containers/list/invalidation/4.cc: Same.
1857 * testsuite/23_containers/map/invalidation/2.cc: Same.
1858 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
1859 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1860 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
1861 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1862 * testsuite/23_containers/set/invalidation/1.cc: Same.
1863 * testsuite/23_containers/set/invalidation/2.cc: Same.
1864 * testsuite/23_containers/vector/invalidation/1.cc: Same.
1865 * testsuite/23_containers/vector/invalidation/2.cc: Same.
1866 * testsuite/23_containers/vector/invalidation/3.cc: Same.
1867 * testsuite/23_containers/vector/invalidation/4.cc: Same.
1869 2004-03-04 Paolo Carlini <pcarlini@suse.de>
1871 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
1873 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
1875 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
1876 from the dg-options.
1877 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
1878 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
1879 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
1880 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
1881 * testsuite/23_containers/vector/resize/1.cc: Likewise.
1882 * testsuite/26_numerics/complex_value.cc: Likewise.
1883 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
1884 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1885 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
1886 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1887 * testsuite/27_io/objects/char/5.cc: Likewise.
1888 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
1889 * testsuite/backward/11460.cc: Likewise.
1890 * testsuite/thread/pthread7-rope.cc: Likewise.
1892 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
1893 missing test variable.
1894 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
1895 missing test variable.
1897 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
1899 * testsuite/20_util/allocator/1.cc: Provide explicit
1900 instantiations for non-weak systems.
1901 * testsuite/20_util/binders.cc: Same.
1902 * testsuite/20_util/allocator/8230.cc: Same.
1903 * testsuite/20_util/allocator/10378.cc: Same.
1904 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
1905 * testsuite/22_locale/ctype/is/char/2.cc: Same.
1906 * testsuite/thread/pthread7-rope.cc: Same.
1907 * testsuite/thread/pthread6.cc: Same.
1908 * testsuite/thread/pthread5.cc: Same.
1909 * testsuite/thread/pthread4.cc: Same.
1910 * testsuite/thread/pthread1.cc: Same.
1911 * testsuite/ext/rope.cc: Same.
1912 * testsuite/ext/hash_set.cc: Same.
1913 * testsuite/ext/hash_map.cc: Same.
1914 * testsuite/ext/concept_checks.cc: Same.
1915 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
1916 * testsuite/25_algorithms/unique/2.cc: Same.
1917 * testsuite/25_algorithms/unique/1.cc: Same.
1918 * testsuite/25_algorithms/rotate.cc: Same.
1919 * testsuite/25_algorithms/min_max.cc: Same.
1920 * testsuite/25_algorithms/equal.cc: Same.
1921 * testsuite/24_iterators/rel_ops.cc: Same.
1922 * testsuite/24_iterators/iterator.cc: Same.
1923 * testsuite/24_iterators/insert_iterator.cc: Same.
1924 * testsuite/24_iterators/front_insert_iterator.cc: Same.
1925 * testsuite/24_iterators/back_insert_iterator.cc: Same.
1926 * testsuite/23_containers/vector/resize/1.cc: Same.
1927 * testsuite/23_containers/vector/modifiers/2.cc: Same.
1928 * testsuite/23_containers/vector/modifiers/1.cc: Same.
1929 * testsuite/23_containers/vector/invalidation/4.cc: Same.
1930 * testsuite/23_containers/vector/invalidation/3.cc: Same.
1931 * testsuite/23_containers/vector/invalidation/2.cc: Same.
1932 * testsuite/23_containers/vector/invalidation/1.cc: Same.
1933 * testsuite/23_containers/vector/element_access/1.cc: Same.
1934 * testsuite/23_containers/vector/cons/6513.cc: Same.
1935 * testsuite/23_containers/vector/cons/3.cc: Same.
1936 * testsuite/23_containers/vector/cons/2.cc: Same.
1937 * testsuite/23_containers/vector/cons/1.cc: Same.
1938 * testsuite/23_containers/vector/capacity/8230.cc: Same.
1939 * testsuite/23_containers/vector/capacity/1.cc: Same.
1940 * testsuite/23_containers/vector/bool/6886.cc: Same.
1941 * testsuite/23_containers/stack/members/7158.cc: Same.
1942 * testsuite/23_containers/set/invalidation/2.cc: Same.
1943 * testsuite/23_containers/set/invalidation/1.cc: Same.
1944 * testsuite/23_containers/queue/members/7157.cc: Same.
1945 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
1946 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1947 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1948 * testsuite/23_containers/multiset/insert/1.cc: Same.
1949 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1950 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1951 * testsuite/23_containers/map/operators/1.cc: Same.
1952 * testsuite/23_containers/map/invalidation/2.cc: Same.
1953 * testsuite/23_containers/map/invalidation/1.cc: Same.
1954 * testsuite/23_containers/map/insert/1.cc: Same.
1955 * testsuite/23_containers/list/operators/4.cc: Same.
1956 * testsuite/23_containers/list/operators/3.cc: Same.
1957 * testsuite/23_containers/list/operators/2.cc: Same.
1958 * testsuite/23_containers/list/operators/1.cc: Same.
1959 * testsuite/23_containers/list/modifiers/3.cc: Same.
1960 * testsuite/23_containers/list/modifiers/2.cc: Same.
1961 * testsuite/23_containers/list/modifiers/1.cc: Same.
1962 * testsuite/23_containers/list/invalidation/4.cc: Same.
1963 * testsuite/23_containers/list/invalidation/3.cc: Same.
1964 * testsuite/23_containers/list/invalidation/2.cc: Same.
1965 * testsuite/23_containers/list/invalidation/1.cc: Same.
1966 * testsuite/23_containers/list/cons/9.cc: Same.
1967 * testsuite/23_containers/list/cons/8.cc: Same.
1968 * testsuite/23_containers/list/cons/7.cc: Same.
1969 * testsuite/23_containers/list/cons/6.cc: Same.
1970 * testsuite/23_containers/list/cons/5.cc: Same.
1971 * testsuite/23_containers/list/cons/4.cc: Same.
1972 * testsuite/23_containers/list/cons/3.cc: Same.
1973 * testsuite/23_containers/list/cons/2.cc: Same.
1974 * testsuite/23_containers/list/cons/1.cc: Same.
1975 * testsuite/23_containers/list/capacity/1.cc: Same.
1976 * testsuite/23_containers/deque/operators/1.cc: Same.
1977 * testsuite/23_containers/deque/invalidation/4.cc: Same.
1978 * testsuite/23_containers/deque/invalidation/3.cc: Same.
1979 * testsuite/23_containers/deque/invalidation/2.cc: Same.
1980 * testsuite/23_containers/deque/invalidation/1.cc: Same.
1981 * testsuite/23_containers/deque/cons/2.cc: Same.
1982 * testsuite/23_containers/deque/cons/1.cc: Same.
1984 * src/allocator.cc: Add char, wchar_t instantiations
1985 to match extern template declarations in memory.h.
1987 2004-03-03 Paolo Carlini <pcarlini@suse.de>
1989 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1990 Fix warning regression.
1992 2004-03-03 Paolo Carlini <pcarlini@suse.de>
1994 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1995 Deal properly with empty __digits and negative frac_digits,
1998 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
2000 * docs/html/documentation.html: Regenerate.
2002 2004-03-02 Paolo Carlini <pcarlini@suse.de>
2005 * include/bits/postypes.h (class streamoff): Remove, now
2006 streamoff is just typedef a 64 bit signed integer type.
2007 (class fpos): Tweak consistently.
2008 * testsuite/27_io/fpos/14320-1.cc: New.
2009 * testsuite/27_io/fpos/14320-2.cc: New.
2010 * testsuite/27_io/fpos/14320-3.cc: New.
2011 * testsuite/27_io/fpos/14320-4.cc: New.
2012 * testsuite/27_io/fpos/14320-5.cc: New.
2013 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
2015 2004-03-02 Paolo Carlini <pcarlini@suse.de>
2017 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2018 Reorganize a bit the main parsing loop, thus early detecting
2019 an empty value component.
2020 * testsuite/22_locale/money_get/get/char/16.cc: New.
2021 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
2023 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
2025 Support automake 1.8.2
2026 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
2027 * po/Makefile.am (EXTRA_DIST): New.
2028 * po/Makefile.in: Regenerate.
2029 * Makefile.in: Same.
2030 * include/Makefile.in: Same.
2031 * libmath/Makefile.in: Same.
2032 * libsupc++/Makefile.in: Same.
2033 * src/Makefile.in: Same.
2034 * testsuite/Makefile.in: Same.
2036 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
2037 __GXX_WEAK__ instead of SUPPORTS_WEAK.
2038 (${host_builddir}/gthr-default.h): Same.
2039 (${host_builddir}/gthr.h): Same.
2040 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
2041 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
2043 * aclocal.m4: Regenerate.
2044 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
2045 * config.h.in: Regenerate.
2048 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
2050 Support autoconf 2.59
2051 * acinclude.m4: Quote correctly.
2052 * aclocal.m4: Regenerate.
2055 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
2057 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
2059 * docs/html/18_support/howto.html: Add bit about writing to
2060 stderr, mostly by Zack.
2062 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2064 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2065 money_get<>::do_get(string_type&)): ... and two more.
2067 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2069 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2070 Fix thinkos in the switch from string_type& to string& as last
2073 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2075 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2076 Also when parsing exponent sign, first look for thousands_sep
2077 and decimal_point; tweak a bit.
2078 * testsuite/22_locale/num_get/get/char/15.cc: New.
2079 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
2081 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2082 num_get<>::_M_extract_int): Reorder some conditionals.
2084 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2086 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2087 Consistently with numpunct, enforce the requirements in
2088 22.2.6.3, p3 for the thousands separators; tweak a bit.
2089 * testsuite/22_locale/money_get/get/char/15.cc: New.
2090 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
2092 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
2094 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
2095 testsuite_files from correct multilib blddir when running
2098 2004-02-29 Phil Edwards <phil@codesourcery.com>
2100 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
2101 the summary file to the logfile.
2102 * testsuite/Makefile.in: Regenerate.
2104 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2106 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
2108 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
2109 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
2111 2004-02-28 Paolo Carlini <pcarlini@suse.de>
2113 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2114 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
2115 no 'decimal-point' in the middle: in this case too we must fix
2116 up __found_grouping; slightly tweak.
2117 * testsuite/22_locale/num_get/get/char/14.cc: New.
2118 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
2120 2004-02-27 Eric Christopher <echristo@redhat.com>
2121 Phil Edwards <phil@codesourcery.com>
2123 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
2124 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
2125 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
2126 testsuite/22_locale/collate/hash/wchar_t/2.cc,
2127 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
2128 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
2129 testsuite/22_locale/collate/transform/wchar_t/2.cc,
2130 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
2131 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2132 Use dg-require-iconv.
2133 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
2135 2004-02-27 Phil Edwards <phil@codesourcery.com>
2136 Eric Christopher <echristo@redhat.com>
2138 * testsuite/config/default.exp: Update with comments.
2139 (${tool}_target_compile): New wrapper routine.
2140 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
2141 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
2143 (load_gcc_lib, v3track): New routines.
2144 (v3-init): Rename to libstdc++_init.
2145 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
2146 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
2148 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
2150 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
2152 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
2154 * config/os/irix/irix5.2/atomicity.h: Merge..
2155 * config/os/irix/irix6.5/atomicity.h: Merge..
2156 * config/os/irix/atomicity.h: ...into this.
2157 * config/os/irix/atomic_word.h: New.
2158 * configure.host: Set atomic_word_dir for irix.
2160 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
2161 * i386/atomicity.h: Same.
2162 * m68k/atomicity.h: Same.
2163 * sparc/atomicity.h: Same.
2165 2004-02-27 David Edelsohn <edelsohn@gnu.org>
2167 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
2168 static, and inline keywords.
2170 2004-02-27 Paolo Carlini <pcarlini@suse.de>
2172 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2173 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
2174 call reserve on the __tmp_gruping string.
2175 (num_get<>::_M_extract_float): Don't append unnecessarily a
2176 char() to the returned string.
2177 * include/bits/locale_facets.tcc: Trivial reformattings.
2179 2004-02-27 Paolo Carlini <pcarlini@suse.de>
2181 * include/bits/locale_facets.h (money_get<>::_M_extract):
2182 Change signature: now takes a plain string&.
2183 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2184 Update consistently the definition; use the moneypunct cache
2185 to parse the value; use swap to change __units.
2186 (money_get<>::do_get(long double&)): Update call of _M_extract,
2187 avoid ctype::narrow, not correct wrt the standard.
2188 (money_get<>::do_get(string_type&)): Likewise, update call
2189 of _M_extract, use ctype::widen.
2190 * src/locale-inst.cc: Tweak instantiations of _M_extract.
2192 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
2194 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
2195 * testsuite/demangle/abi_examples/02.cc: Likewise.
2196 * testsuite/demangle/regression/cw-11.cc: Likewise.
2197 * testsuite/demangle/regression/cw-16.cc: Change two expected
2198 results to match libiberty demangler output.
2200 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
2203 * libsupc++/Makefile.am: Use libiberty demangler.
2204 (c_sources): Add cp-demangle.c.
2205 * libsupc++/Makefile.in: Regenerate.
2206 * src/Makefile.am (sources): Remove demangle.cc.
2207 * src/Makefile.in: Regenerate.
2208 * include/Makefile.am (bits_headers): Move demangle.h.
2209 (ext_headers): ...here.
2210 * include/Makefile.in: Regenerate.
2211 * include/bits/demangle.h: Move...
2212 * include/ext/demangle.h: ...here.
2213 * src/demangle.cc: Remove.
2215 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
2217 * include/bits/demangle.h: Add type template parameter to all
2218 templates with just an Allocator template parameter.
2220 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
2222 * include/bits/atomicity.h: New, forward declarations for __atomic_add
2223 and __exchange_and_add.
2224 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
2225 * config/cpu/cris/atomic_word.h: Same.
2226 * config/cpu/sparc/atomic_word.h: Same.
2227 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
2228 Qualifiy with __gnu_cxx.
2229 (_Callback_list::_M_add_reference): Same.
2230 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
2231 (locale::facet::_M_remove_reference): Same.
2232 (locale::_Impl::_M_add_reference): Add.
2233 (locale::_Impl::_M_remove_reference): Same.
2234 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
2235 (basic_string::_Rep::_M_dispose): Same.
2236 * src/ios.cc (ios_base::xalloc): Same.
2237 * src/ios_init.cc (ios_base::Init::Init): Same.
2238 (ios_base::Init::~Init): Same.
2239 * src/locale.cc (locale::id::_M_id): Same.
2240 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
2241 static, and inline keywords.
2242 * config/cpu/alpha/atomicity.h: Same.
2243 * config/cpu/cris/atomicity.h: Same.
2244 * config/cpu/generic/atomicity.h: Same.
2245 * config/cpu/hppa/atomicity.h: Same.
2246 * config/cpu/i386/atomicity.h: Same.
2247 * config/cpu/ia64/atomicity.h: Same.
2248 * config/cpu/m68k/atomicity.h: Same.
2249 * config/cpu/mips/atomicity.h: Same.
2250 * config/cpu/powerpc/atomicity.h: Same.
2251 * config/cpu/s390/atomicity.h: Same.
2252 * config/cpu/sparc/atomicity.h: Same.
2254 * src/Makefile.am (host_sources): Add atomicity.cc.
2255 (atomicity.cc): New rule.
2256 * src/Makefile.in: Regenerate.
2257 * include/Makefile.am (host_headers): Remove host atomicity.h.
2258 (host_headers): Add atomic_word.h.
2259 (bits_headers): Add bits atomicity.h.
2260 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2261 * include/Makefile.in: Regenerate.
2262 * configure.host (atomic_word_dir): Add.
2263 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
2264 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2265 * configure: Regenerate.
2266 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
2268 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
2269 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2271 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
2273 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
2274 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
2275 Fix markup, more <link> tags.
2277 2004-02-25 Carlo Wood <carlo@alinoe.com>
2280 namespace __gnu_cxx::demangler
2281 (session<Allocator>::qualifier_list_Allocator): Add
2282 (session<Allocator>::M_qualifier_list_alloc): Add
2283 (session<Allocator>::decode_type_with_postfix):
2284 Use M_qualifier_list_alloc instead of calling operator new/delete.
2286 2004-02-24 Paolo Carlini <pcarlini@suse.de>
2289 * include/bits/postypes.h (class streamoff): Add operator++(),
2290 operator++(int), operator--() and operator--(int).
2291 * testsuite/27_io/fpos/14252.cc: New.
2293 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
2295 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
2296 error in handling of hex constants.
2298 2004-02-24 Paolo Carlini <pcarlini@suse.de>
2300 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2301 Prefer basic_string::append to operator+= and a temporary.
2303 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
2305 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
2306 Only use fputs, not write.
2308 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
2310 * include/ext/malloc_allocator.h: Add operators ==, !=.
2311 * include/ext/new_allocator.h: Add operators ==, !=.
2312 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
2313 (__mt_alloc::_S_get_options): New.
2314 (__mt_alloc::_S_set_options): New.
2315 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
2316 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
2317 Move functions out of line, simplify, format.
2318 * src/allocator.cc: Simplify explicit instantiations.
2319 * include/bits/allocator.h: Tweak.
2321 2004-02-22 Paolo Carlini <pcarlini@suse.de>
2323 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2324 Restructure formatting of value component, first dealing with
2325 the non-decimal digits; use reserve.
2327 2004-02-22 Paolo Carlini <pcarlini@suse.de>
2329 * include/bits/locale_facets.h (class money_get): Inherit
2330 from money_base too; tweak declaration of _M_extract, now
2331 parameterized on _Intl too.
2332 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2333 Update definition to use the cache; call reserve on __res to
2334 avoid multiple reallocations; fix parsing of sign component
2335 according to 22.2.6.1.2, p3.
2336 (money_get<>::do_get(long double&),
2337 money_get<>::do_get(string_type&)): Update calls of _M_extract.
2338 * src/locale-inst.cc: Add instantiations of
2339 money_get::_M_extract<false> and money_get::_M_extract<true>.
2340 * testsuite/22_locale/money_get/get/char/14.cc: New.
2341 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
2343 2004-02-21 Mark Mitchell <mark@codesourcery.com>
2345 * libsupc++/vterminate.cc
2346 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
2348 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
2350 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2351 not set RLIMIT_AS on HP-UX.
2353 2004-02-21 Mark Mitchell <mark@codesourcery.com>
2355 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2356 not set RLIMIT_AS on HP-UX.
2358 2004-02-21 Paolo Carlini <pcarlini@suse.de>
2360 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
2361 _S_zero, _S_end } enum, _S_atoms.
2362 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
2363 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
2364 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
2365 (__moneypunct_cache<>::~__moneypunct_cache): Update.
2366 (__moneypunct_cache<>::_M_cache): Fill the cache.
2367 (class moneypunct): Tweak __cache_type typedef.
2368 (class money_put): Inherit from money_base too; tweak declaration
2369 of _M_insert, now parameterized on _Intl.
2370 * include/bits/locale_facets.tcc
2371 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
2372 (money_put<>::_M_insert): Update definition to use the cache;
2373 call reserve on __res to avoid multiple reallocations.
2374 (money_put<>::do_put(long double),
2375 money_put<>::do_put(const string_type&): Update calls of _M_insert.
2376 * config/locale/generic/monetary_members.cc
2377 (moneypunct<char, true>::_M_initialize_moneypunct,
2378 moneypunct<char, false>::_M_initialize_moneypunct,
2379 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
2380 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
2381 * config/locale/gnu/monetary_members.cc: Likewise.
2382 * config/locale/gnu/monetary_members.cc
2383 (moneypunct<wchar_t, true>::~moneypunct(),
2384 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
2385 * src/globals_locale.cc: Tweak fake_money_cache_c.
2386 * src/locale-inst.cc: Add instantiations for
2387 money_put::_M_insert<false> and money_put::_M_insert<true> and
2388 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
2389 * src/locale_facets.cc: Define money_base::_S_atoms.
2390 * src/locale_init.cc: Update placement new of
2391 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
2392 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
2394 * config/locale/generic/numeric_members.cc: Clean up.
2395 * config/locale/gnu/numeric_members.cc: Likewise.
2396 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
2397 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
2398 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
2399 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
2400 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
2401 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
2403 2004-02-20 Mark Mitchell <mark@codesourcery.com>
2405 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
2406 FIFO for writing with ios_base::in|ios_base::out.
2407 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
2408 * testsuite/27_io/objects/char/7.cc: Likewise.
2409 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
2412 2004-02-19 David Edelsohn <edelsohn@gnu.org>
2414 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
2415 from iso-8859-1 to ISO8859-1.
2416 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
2417 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
2418 * 22_locale/collate/hash/wchar_t/2.cc: Same.
2419 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
2420 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
2421 * 22_locale/collate/transform/wchar_t/2.cc: Same.
2422 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
2423 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
2425 2004-02-18 Paolo Carlini <pcarlini@suse.de>
2427 * include/bits/locale_facets.h (money_get<>::_M_extract):
2428 New, helper for do_get.
2429 (money_put<>::_M_insert): Likewise, for do_put.
2430 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2431 money_put<>::_M_insert): Define.
2432 (money_get<>::do_get(long double&), money_get<>::do_get(
2433 string_type&), money_put::do_put(long double),
2434 money_put::do_put(const string_type&)): Use the helpers.
2436 2004-02-18 Paolo Carlini <pcarlini@suse.de>
2438 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2439 Rewrite, avoiding recursion.
2440 (__gnu_internal::xwrite): Minor tweaks.
2442 2004-02-17 Stefan Olsson <stefan@xapa.se>
2444 * include/ext/mt_allocator.h: Removed the last
2445 pointer. Deallocated blocks are now added to the front of
2446 freelists as proposed by Felix Yen. This gives roughly 10%
2447 performance boost and saves some memory.
2448 * docs/html/ext/mt_allocator.html: Change due to that deallocated
2449 blocks now are added to the front of freelists. The reason to this
2450 approach is also explained.
2452 2004-02-17 Paolo Carlini <pcarlini@suse.de>
2454 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2455 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
2456 grouping fidelity conditional.
2458 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2460 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
2461 Qualify exception with std::.
2462 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
2463 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2464 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2465 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2466 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2468 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2470 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
2471 for now that the catch block is not reached.
2472 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
2474 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2476 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2477 Fix parsing of the remaining sign characters.
2478 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
2479 the input is scanned 'til eof.
2480 * 22_locale/money_get/get/char/4.cc: Likewise.
2481 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
2482 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
2483 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
2484 not do_pos_format: the former is the only one that matters during
2486 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
2488 * 22_locale/money_get/get/char/6.cc: Minor tweak.
2489 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
2491 2004-02-15 David Asher <david.asher@cavium.com>
2494 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
2495 access __olds beyond __oldlen.
2497 2004-02-14 Paolo Carlini <pcarlini@suse.de>
2499 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
2500 sure the exception is actually thrown.
2501 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2502 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2503 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2505 2004-02-14 Paolo Carlini <pcarlini@suse.de>
2508 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
2509 In case of conversion errors, throw ios_failure; simplify.
2510 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
2511 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2512 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
2513 previously we didn't throw in case of conversion errors, instead
2514 just returned eof().
2515 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2516 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2517 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2519 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
2520 Trivial simplification of a conditional.
2522 2004-02-12 Paolo Carlini <pcarlini@suse.de>
2524 PR libstdc++/13731 (final part: writev)
2525 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2526 New, a wrapper around writev() handling partial writes.
2527 (__basic_file<char>::xwrite): Move to __gnu_internal and make
2529 (__basic_file<char>::xsputn): Update call.
2530 (__basic_file<char>::xsputn_2): Likewise.
2531 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2532 Don't declare, now static.
2534 2004-02-11 Stefan Olsson <stefan@xapa.se>
2536 * docs/html/ext/mt_allocator.html: New.
2538 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
2540 * docs/html/20_util/allocator.html: New file, consolidate
2541 allocator information here. Revamp.
2542 * docs/html/documentation.html: Change links.
2543 * docs/html/20_util/howto.html: Same.
2544 * docs/html/ext/howto.html: Same.
2546 2004-02-11 Paolo Carlini <pcarlini@suse.de>
2548 PR libstdc++/13731 (first part: write)
2549 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2551 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
2552 Define it: a wrapper around write() handling partial write.
2553 (__basic_file<char>::xsputn): Use it.
2554 (__basic_file<char>::xsputn_2): Likewise.
2556 2004-02-11 Paolo Carlini <pcarlini@suse.de>
2557 Petur Runolfsson <peturr02@ru.is>
2560 * include/std/std_istream.h (operator>>(__istream_type& (*)
2561 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
2562 operator>>(ios_base& (*)(ios_base&))): Declare inline.
2563 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
2564 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
2565 operator<<(ios_base& (*) (ios_base&))): Likewise.
2566 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
2568 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
2571 * config/linker-map.gnu: Add typeinfo and typeinfo name for
2572 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
2575 * config/linker-map.gnu: Add typeinfo and typeinfo name for
2576 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
2578 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
2580 * include/ext/pool_allocator.h: Include c++config.h.
2582 2004-02-09 Stefan Olsson <stefan@xapa.se>
2584 * include/ext/mt_allocator.h: thread_id is unused in non threaded
2585 applications and now has a ifdef to remove it completely on
2586 compilers without thread support. Include stdlib.h due to a
2587 compiler warning on getenv().
2589 2004-02-09 Paul Brook <paul@codesourcery.com>
2591 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
2593 2004-02-09 Paolo Carlini <pcarlini@suse.de>
2596 * src/locale_init.cc (locale::global(const locale&)): Use
2597 locale::name() in order to decide whether calling setlocale.
2598 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
2600 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
2601 Avoid computing &= unnecessarily.
2603 2004-02-09 James E Wilson <wilson@specifixinc.com>
2606 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
2607 __builtin_extend_pointer.
2609 2004-02-09 Paolo Carlini <pcarlini@suse.de>
2612 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
2613 Don't leave dangling pointers.
2614 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
2615 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
2616 facet is needed in the final test.
2618 2004-02-09 Bernardo Innocenti <bernie@develer.com>
2620 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
2621 * configure: Regenerate.
2623 2004-02-08 Richard Henderson <rth@redhat.com>
2626 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
2627 uncaughtExceptions during nested catch rethrow.
2628 * testsuite/18_support/14026.cc: New.
2630 2004-02-08 Paolo Carlini <pcarlini@suse.de>
2632 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
2633 When working in place remember to set the state to sharable
2634 (otherwise, _M_mutate does it).
2636 2004-02-08 Bernardo Innocenti <bernie@develer.com>
2638 * include/bits/allocator.h, include/bits/basic_ios.h,
2639 include/bits/basic_ios.tcc, include/bits/basic_string.h,
2640 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
2641 include/bits/char_traits.h, include/bits/codecvt.h,
2642 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
2643 include/bits/demangle.h, include/bits/deque.tcc,
2644 include/bits/fstream.tcc, include/bits/functexcept.h,
2645 include/bits/gslice.h, include/bits/gslice_array.h,
2646 include/bits/indirect_array.h, include/bits/ios_base.h,
2647 include/bits/istream.tcc, include/bits/list.tcc,
2648 include/bits/locale_classes.h, include/bits/locale_facets.h,
2649 include/bits/locale_facets.tcc, include/bits/localefwd.h,
2650 include/bits/mask_array.h, include/bits/ostream.tcc,
2651 include/bits/postypes.h, include/bits/slice_array.h,
2652 include/bits/sstream.tcc, include/bits/stl_algo.h,
2653 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
2654 include/bits/stl_construct.h, include/bits/stl_deque.h,
2655 include/bits/stl_function.h, include/bits/stl_heap.h,
2656 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
2657 include/bits/stl_list.h, include/bits/stl_map.h,
2658 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
2659 include/bits/stl_numeric.h, include/bits/stl_pair.h,
2660 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
2661 include/bits/stl_relops.h, include/bits/stl_set.h,
2662 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
2663 include/bits/stl_threads.h, include/bits/stl_tree.h,
2664 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
2665 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
2666 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
2667 include/bits/type_traits.h, include/bits/valarray_after.h,
2668 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
2669 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
2670 trailing whitespace.
2672 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2674 * include/bits/basic_string.h: Fix comment.
2676 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2678 * include/bits/stl_construct.h: Wrap overlong lines, reformat
2679 according to the coding standards.
2680 * include/bits/stl_pair.h: Likewise.
2681 * include/bits/stl_raw_storage_iter.h: Likewise.
2682 * include/bits/stl_stack.h: Likewise.
2683 * include/bits/stl_uninitialized.h: Likewise.
2684 * include/bits/stream_iterator.h: Likewise.
2685 * include/bits/streambuf_iterator.h: Likewise.
2686 * include/bits/type_traits.h: Likewise.
2688 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2690 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2693 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
2695 * scripts/check_performance: Support PCH.
2697 * scripts/check_performance (CXX): Add -DNOTHREAD.
2698 * testsuite/performance/20_util/allocator/insert.cc: Integrate
2699 threaded tests from insert_insert.cc. Tweak iterations,
2700 remove special cases.
2701 * testsuite/performance/20_util/allocator/insert_insert.cc:
2702 Make all tests single-threaded. Tweak iterations.
2703 * testsuite/performance/20_util/allocator/map_thread.cc:
2705 * testsuite/performance/20_util/allocator/producer_consumer.cc:
2708 2004-02-05 Geoffrey Keating <geoffk@apple.com>
2712 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
2713 'gcc-lib'. Add comment about poorly-named variables.
2714 * aclocal.m4: Regenerate.
2715 * configure: Regenerate.
2717 2004-02-05 Paolo Carlini <pcarlini@suse.de>
2719 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2720 Thousands-sep are always optional; thousands-sep are not allowed
2721 after the decimal_point.
2722 * testsuite/22_locale/money_get/get/char/12.cc: New.
2723 * testsuite/22_locale/money_get/get/char/13.cc: New.
2724 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
2725 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
2727 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
2728 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2729 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2730 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2731 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2732 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2733 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2734 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2736 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
2738 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
2740 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
2742 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
2744 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
2745 it to decide whether FIONREAD should take an off_t or int argument.
2747 2004-02-05 Paolo Carlini <pcarlini@suse.de>
2749 * include/bits/stl_function.h: Minor formatting changes.
2751 2004-02-04 Zack Weinberg <zack@codesourcery.com>
2753 Revert previous change to config/abi/*/baseline_symbols.txt.
2755 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
2756 Zack Weinberg <zack@codesourcery.com>
2758 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
2760 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
2761 (__basic_file<char>::_M_open_mode): Delete.
2762 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
2764 * testsuite/27_io/basic_filebuf/close/char/9964.cc
2765 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2766 Correct flags to filebuf::open calls.
2768 * config/abi/alpha-freebsd5/baseline_symbols.txt
2769 * config/abi/alpha-linux-gnu/baseline_symbols.txt
2770 * config/abi/hppa-linux-gnu/baseline_symbols.txt
2771 * config/abi/i386-freebsd4/baseline_symbols.txt
2772 * config/abi/i386-freebsd5/baseline_symbols.txt
2773 * config/abi/i486-linux-gnu/baseline_symbols.txt
2774 * config/abi/ia64-linux-gnu/baseline_symbols.txt
2775 * config/abi/mips-linux-gnu/baseline_symbols.txt
2776 * config/abi/sparc-freebsd5/baseline_symbols.txt
2777 * config/abi/sparc-linux-gnu/baseline_symbols.txt
2778 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
2779 Remove entry for __basic_file<char>::_M_open_mode.
2781 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
2783 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
2785 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
2787 * testsuite/performance/20_util/producer_consumer.cc: New.
2788 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
2790 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
2792 * testsuite/performance/20_util/allocator.cc: Move to..
2793 * testsuite/performance/20_util/allocator/insert.cc: ...here.
2794 * testsuite/performance/20_util/allocator_thread.cc: Move to...
2795 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
2796 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
2797 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
2799 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
2801 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
2802 * docs/html/faq/index.txt: Regenerate.
2804 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
2806 * include/ext/debug_allocator.h: _M_extra now stands for the
2807 number of extra objects instead of the number of extra bytes.
2808 (debug_allocator::allocate): Adjust.
2809 (debug_allocator::deallocate): Adjust.
2811 * include/ext/pool_allocator.h: Fix typo.
2813 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
2814 Benjamin Kosnik <bkoz@redhat.com>
2816 * testsuite/performance/20_util/allocator.cc: Add map,
2818 * testsuite/performance/20_util/allocator_thread.cc: Same.
2820 2004-02-03 Paolo Carlini <pcarlini@suse.de>
2822 * include/bits/basic_string.h (insert(iterator)): Remove,
2823 non-standard and already scheduled for removal.
2825 2004-02-03 Paolo Carlini <pcarlini@suse.de>
2827 * include/bits/stl_iterator_base_funcs.h: Minor formatting
2828 and indentation tweaks.
2829 * include/bits/stl_iterator_base_types.h: Likewise.
2830 * include/bits/stl_list.h: Likewise.
2831 * include/bits/stl_map.h: Likewise.
2832 * include/bits/stl_tempbuf.h: Likewise.
2834 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
2836 * include/bits/gslice.h, include/bits/gslice_array.h,
2837 include/bits/indirect_array.h, include/bits/mask_array.h,
2838 include/bits/slice_array.h, include/bits/stl_numeric.h,
2839 include/std/std_valarray.h: Update copyright years.
2841 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
2843 * include/bits/gslice.h (gslice): Document.
2844 * include/bits/gslice_array.h (gslice_array): Document.
2845 * include/bits/indirect_array (indirect_array): Document.
2846 * include/bits/mask_array (mask_array): Document.
2847 * include/bits/slice_array.h (slice,slice_array): Document.
2848 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
2849 adjacent_difference): Document
2850 * include/std/std_valarray.h (valarray): Document.
2852 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
2854 * docs/html/19_diagnostics/howto.html: Move verbose terminate
2856 * docs/html/18_support/howto.html: Here.
2857 * docs/html/documentation.html: Add reference here.
2859 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2861 * config/locale/gnu/c++locale_internal.h: Remove prototypes
2862 of no longer used GLIBC thread locale functions.
2864 2004-02-02 Eric Christopher <echristo@redhat.com>
2865 Zack Weinberg <zack@codesourcery.com>
2867 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
2869 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
2870 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
2871 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
2872 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
2873 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
2874 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
2875 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
2876 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2879 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2881 * include/bits/stl_function.h: Additional minor tweaks.
2882 * include/bits/stl_multiset.h: Likewise.
2884 * include/bits/stl_queue.h: Minor tweaks.
2886 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2888 PR libstdc++/13976 (continued)
2889 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
2890 Make the second parameter unnamed, to void unused parameter
2892 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
2894 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2897 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
2898 Make the second parameter unnamed, to void unused parameter
2900 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
2901 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
2903 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2905 * include/bits/stl_algo.h: Additional minor tweaks.
2906 * include/bits/stl_map.h: Likewise.
2907 * include/bits/stl_multimap.h: Likewise.
2908 * include/bits/stl_multiset.h: Likewise.
2909 * include/bits/stl_set.h: Likewise.
2910 * include/bits/stl_tree.h: Likewise.
2912 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2914 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
2917 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2919 * include/bits/stl_function.h: Additional minor tweaks.
2921 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2923 * include/bits/deque.tcc: Wrap overlong lines, constify
2924 a few variables, reformat according to the coding standards.
2925 * include/bits/list.tcc: Likewise.
2926 * include/bits/stl_deque.h: Likewise.
2927 * include/bits/stl_function.h: Likewise.
2928 * include/bits/stl_iterator.h: Likewise.
2929 * include/bits/stl_iterator_base_funcs.h: Likewise.
2930 * include/bits/stl_iterator_base_types.h: Likewise.
2931 * include/bits/stl_list.h: Likewise.
2932 * include/bits/stl_map.h: Likewise.
2933 * include/bits/stl_multimap.h: Likewise.
2934 * include/bits/stl_multiset.h: Likewise.
2935 * include/bits/stl_relops.h: Likewise.
2936 * include/bits/stl_set.h: Likewise.
2938 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2940 * include/bits/stl_bvector.h: Wrap overlong lines, constify
2941 a few variables, reformat according to the coding standards.
2942 * include/bits/stl_tree.h: Likewise.
2944 2004-01-31 Paolo Carlini <pcarlini@suse.de>
2946 * include/bits/stl_algo.h: Minor additional reformat, add
2948 * include/bits/stl_algobase.h: Add copyright year.
2950 2004-01-31 Paolo Carlini <pcarlini@suse.de>
2952 * include/bits/stl_algo.h: Wrap overlong lines, constify
2953 a few variables, reformat according to the coding standards.
2954 * include/bits/stl_algobase.h: Likewise.
2955 * include/bits/stl_heap.h: Likewise.
2957 2004-01-31 Paolo Carlini <pcarlini@suse.de>
2959 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
2961 * include/bits/basic_string.h: Fix two comments.
2963 2004-01-31 Per Bothner <per@bothner.com>
2965 * include/ext/mt_allocator.h
2966 (__mt_alloc::_S_thread_freelist_mutex): Guard with
2967 __GTHREAD_MUTEX_INIT.
2969 2004-01-31 Paolo Carlini <pcarlini@suse.de>
2971 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
2973 2004-01-30 Paolo Carlini <pcarlini@suse.de>
2975 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
2976 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
2977 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
2979 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
2981 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
2982 Don't use clear, but instead assign. Use insert.
2984 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
2986 * src/demangle.cc: Add instantiations.
2987 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
2988 * src/Makefile.in: Regenerate.
2990 2004-01-30 David Edelsohn <edelsohn@gnu.org>
2992 * src/allocator.cc: Protect _S_get_thread_id() and
2993 _S_thread_key_destr() with #ifdef __GTHREADS.
2995 2004-01-30 Paolo Carlini <pcarlini@suse.de>
2997 Reshuffle performance testsuite.
2998 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
2999 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
3000 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
3001 fstream_seek_write.cc, ifstream_extract_float.cc,
3002 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
3003 list_create_fill_sort.cc, map_create_fill.cc,
3004 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
3005 ofstream_insert_float.cc, ofstream_insert_int.cc,
3006 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
3007 wchar_t_out.cc: Split into...
3008 * testsuite/performance/20_util/allocator.cc: New.
3009 * testsuite/performance/20_util/allocator_map_thread.cc: New.
3010 * testsuite/performance/20_util/allocator_thread.cc: New.
3011 * testsuite/performance/21_strings/string_append: New.
3012 * testsuite/performance/22_locale/is_wchar_t.cc: New.
3013 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
3014 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
3015 * testsuite/performance/22_locale/wchar_t_in.cc: New.
3016 * testsuite/performance/22_locale/wchar_t_length.cc: New.
3017 * testsuite/performance/22_locale/wchar_t_out.cc: New.
3018 * testsuite/performance/23_containers/container_benchmark.cc: New.
3019 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
3020 * testsuite/performance/23_containers/map_create_fill.cc: New.
3021 * testsuite/performance/26_numerics/complex_norm.cc: New.
3022 * testsuite/performance/27_io/cout_insert_int.cc: New.
3023 * testsuite/performance/27_io/filebuf_copy.cc: New.
3024 * testsuite/performance/27_io/filebuf_sputc.cc: New.
3025 * testsuite/performance/27_io/fstream_seek_write.cc: New.
3026 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
3027 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
3028 * testsuite/performance/27_io/ifstream_getline.cc: New.
3029 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
3030 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
3032 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3034 * include/bits/basic_string.tcc (_Rep::_S_create):
3035 Never allocate a string bigger than max_size(); always keep
3036 __capacity and __size in sync to avoid memory leaks at
3039 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3041 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3042 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
3043 the double loop, streamline.
3045 * include/bits/basic_string.tcc: Very minor tweaks.
3047 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
3049 * scripts/check_performance: Only compile with $THREAD_FLAG
3050 when test is marked to require it. Allow multiple
3051 compilations/executions of marked tests.
3052 * testsuite/testsuite_performance.h (report_performance):
3053 Report dynamic thread support status.
3054 (report_header): Likewise.
3055 * testsuite/performance/allocator.cc: Stabilize iteration
3056 count. Support more allocators. Mark each allocator test to
3057 run and report independently.
3058 * testsuite/performance/allocator_map_thread.cc: Likewise.
3059 * testsuite/performance/allocator_thread.cc: Likewise.
3061 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
3063 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
3064 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
3065 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
3066 std::get_temporary_buffer() instead of duplicating its code.
3067 Update to C++STYLE conventions.
3068 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
3069 new() instead of std::malloc().
3070 (return_temporary_buffer): Use ::operator delete() instead of
3073 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
3075 * include/bits/allocator.h: Temporary switch to new_allocator as
3076 the default to unjam bootstraps.
3078 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
3080 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
3081 * include/Makefile.in: Regenerate.
3082 * include/bits/allocator_traits.h: Remove.
3083 * include/bits/allocator.h: Remove allocator_traits.h include, and
3085 (allocator): Empty base class, inherit from the underlying allocator.
3086 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
3087 * src/allocator.cc: ...here. New. For the underlying allocators.
3088 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
3089 * config/linker-map.gnu: Remove __pool_alloc bits.
3090 * src/Makefile.am (sources): Add allocator.cc.
3091 * src/Makefile.in: Regenerate.
3092 * testsuite/20_util/allocator/1.cc: Split second test into...
3093 * testsuite/20_util/allocator/8230.cc: ...this.
3094 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
3095 typedef to use std::allocatore. Format.
3096 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
3098 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
3099 __throw_bad_alloc calls. Don't include <memory>.
3100 * include/ext/malloc_allocator.h: Remove <memory> include.
3101 * include/ext/new_allocator.h (new_allocator): Same.
3102 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
3103 declaration. Switch __alloc to _Alloc.
3104 * include/ext/hashtable.h: Remove __alloc.
3105 * include/backward/alloc.h: Only inject allocator, not
3106 implementation details.
3108 * include/ext/mt_allocator.h: Replace free with delete.
3110 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
3112 * src/globals_io.cc: Change to __gnu_internal namespace.
3113 * src/globals_locale.cc: Same.
3114 * src/locale_init.cc: Same.
3115 * src/ios_init.cc: Same.
3117 2004-01-28 Stefan Olsson <stefan@snon.net>
3119 * include/ext/mt_allocator.h: Replaced all malloc() calls with
3120 operator new(). Added support for the env variable
3121 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
3122 one in allocate() as well). Fix typos.
3124 2004-01-28 Paolo Carlini <pcarlini@suse.de>
3126 * include/bits/basic_string.h (_S_create(size_t,
3127 const _Alloc&): Change signature to take two size_type
3129 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3130 _InIterator, const _Alloc&, input_iterator_tag)): Update
3132 (_S_construct(_InIterator, _InIterator, const _Alloc&,
3133 forward_iterator_tag)): Likewise.
3134 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
3135 (_M_mutate(size_type, size_type, size_type)): Don't
3136 implement the exponential growth policy, demand it to
3137 _S_create, update call and simplify.
3138 (_M_clone(const _Alloc&, size_type)): Likewise.
3139 (_S_create(size_type, size_type, const _Alloc&)): Implement
3140 the growth policy, simplify otherwise.
3142 * include/bits/basic_string.h (_Rep::operator[]): Tweak
3143 signature to take a size_type, consistently with the other
3146 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
3148 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
3149 delete declarations, add include and test variable.
3151 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
3153 * include/bits/codecvt.h, include/bits/locale_facets.h,
3154 include/bits/postypes.h, include/bits/stl_bvector.h,
3155 include/bits/stl_multiset.h, include/bits/stl_set.h,
3156 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
3157 include/std/std_complex.h: Document.
3159 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
3162 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
3163 iword/pword selector.
3164 (ios_base::iword, ios_base::pword): Use it.
3165 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
3166 iword or pword member on alloc failure.
3167 * testsuite/27_io/ios_base/storage/11584.cc: New test.
3169 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
3170 PJ Darcy <darcypj@us.ibm.com>
3172 * configure.host: Add support for *-tpf.
3173 * crossconfig.m4: Likewise.
3174 * configure: Regenerate.
3175 * config/os/tpf: New directory.
3176 * config/os/tpf/os_defines.h: New file.
3177 * config/os/tpf/ctype_base.h: Likewise.
3178 * config/os/tpf/ctype_inline.h: Likewise.
3179 * config/os/tpf/ctype_noninline.h: Likewise.
3181 2004-01-27 Paolo Carlini <pcarlini@suse.de>
3184 * include/bits/sstream.tcc: Guard use of extern template.
3186 2004-01-27 Paolo Carlini <pcarlini@suse.de>
3188 * include/bits/basic_string.tcc
3189 (basic_string(const basic_string&, size_type, size_type),
3190 basic_string(const basic_string&, size_type, size_type,
3191 const _Alloc&)): Avoid unnecessarily constructing iterators.
3193 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3195 * config/locale/generic/c_locale.cc: Fix throw messages
3196 to use the __N marker.
3197 * config/locale/gnu/c_locale.cc: Likewise.
3198 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
3200 * docs/html/17_intro/C++STYLE: Likewise.
3201 * include/bits/basic_ios.tcc: Likewise.
3202 * include/bits/fstream.tcc: Likewise.
3203 * include/bits/vector.tcc: Likewise.
3204 * include/ext/ropeimpl.h: Likewise.
3205 * include/std/std_bitset.h: Likewise.
3206 * src/ios.cc: Likewise.
3207 * src/locale.cc: Likewise.
3208 * src/localename.cc: Likewise.
3210 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3212 * include/bits/basic_string.h (_M_replace_aux): Use the
3213 __N marker in throw message.
3214 * include/bits/basic_string.tcc (assign(const _CharT*,
3215 size_type), insert(size_type, const _CharT*, size_type),
3216 replace(size_type, size_type, const _CharT*, size_type),
3217 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
3220 * include/bits/basic_string.h, include/bits/basic_string.tcc:
3221 Fold overlong lines, minor formatting changes.
3223 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3225 * include/bits/basic_string.h (replace(iterator, iterator,
3226 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
3227 (replace(iterator, iterator, const _CharT*)): Ditto.
3228 (replace(iterator, iterator, const _CharT*, size_type)):
3229 Add missing _GLIBCXX_DEBUG_PEDASSERT.
3231 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3233 * include/bits/basic_string.tcc (replace(size_type,
3234 size_type, const _CharT*, size_type)): Implement optimized
3235 in-place algorithm for non-overlapping ranges.
3236 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
3237 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
3239 * include/bits/basic_string.tcc (insert(size_type,
3240 const _CharT*, size_type)): Tweak slightly.
3242 2004-01-26 Andreas Schwab <schwab@suse.de>
3244 * config/locale/gnu/monetary_members.cc: Restore locale before
3245 rethrowing exception.
3247 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3249 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
3251 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
3254 * include/bits/basic_string.tcc: Very minor tweaks.
3256 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3258 * testsuite/performance/string_append.cc: Increase number
3261 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3263 * include/bits/basic_string.h (erase(size_type, size_type),
3264 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
3265 instead, thus avoiding redundant check for length_error.
3267 * include/bits/basic_string.h: Tweak some comments.
3269 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3271 * include/bits/basic_string.tcc (operator+(const _CharT*,
3272 const basic_string&)): No need to go through the append
3273 taking two iterators.
3275 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3277 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
3278 Revert last change to use std::min: machine language is worse.
3279 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
3280 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3281 (find_last_not_of(_CharT, size_type)): Ditto.
3283 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
3284 size_type)): Discard the value returned by _M_check.
3285 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
3286 (append(const basic_string&, size_type, size_type)): Ditto.
3287 (copy(_CharT*, size_type, size_type)): Ditto.
3288 (compare(size_type, size_type, const basic_string&)): Ditto.
3289 (compare(size_type, size_type, const basic_string&,
3290 size_type, size_type)): Ditto.
3291 (compare(size_type, size_type, const _CharT*)): Ditto.
3292 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3294 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3296 * include/bits/basic_string.h (insert(size_type,
3297 const basic_string&, size_type, size_type)): Define inline here.
3298 * include/bits/basic_string.tcc (insert(size_type,
3299 const basic_string&, size_type, size_type)): Move inline.
3301 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3303 * include/bits/basic_string.h (assign(const basic_string&,
3304 size_type, size_type)): Define inline here.
3305 (replace(size_type, size_type, const basic_string&,
3306 size_type, size_type)): Ditto.
3307 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3308 _InputIterator, __false_type)): Only declare.
3309 (_M_replace(iterator, iterator, _InputIterator,
3310 _InputIterator)): Remove.
3311 * include/bits/basic_string.tcc (assign(const basic_string&,
3312 size_type, size_type)): Move inline.
3313 (replace(size_type, size_type, const basic_string&,
3314 size_type, size_type)): Ditto.
3315 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3316 _InputIterator, __false_type)): Define, now does also what
3317 _M_replace did before.
3318 * src/string-inst.cc (_M_replace): Don't instantiate.
3320 * include/bits/basic_string.tcc (find(const _CharT*,
3321 size_type, size_type)): Tidy.
3322 (rfind(_CharT, size_type)): Ditto.
3323 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
3324 (find_first_not_of(_CharT, size_type)): Ditto.
3325 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3326 (find_last_not_of(_CharT, size_type)): Ditto.
3328 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3331 * include/debug/bitset (operator|=): Fix typo.
3332 * testsuite/23_containers/bitset/operations/13838.cc: New.
3334 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3336 * include/bits/basic_string.tcc (insert(size_type,
3337 const _CharT*, size_type __n)): Fix length_error check.
3338 (replace(size_type, size_type, const _CharT*, size_type):
3339 Ditto; call _M_replace_safe.
3340 (_M_replace_aux(size_type, size_type, size_type, _CharT):
3341 Fix length_error check.
3342 (_M_replace(iterator, iterator, _InputIterator,
3343 _InputIterator)): Ditto, tweak.
3344 (_M_replace_safe(size_type, size_type, const _CharT*,
3345 size_type)): Remove length_error check.
3347 * include/bits/basic_string.tcc (append(const basic_string&),
3348 append(const basic_string&, size_type, size_type)): Tweak
3351 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
3352 size_type)): If __n == 0 don't call traits::copy.
3354 2004-01-23 Stefan Olsson <stefan@snon.net>
3356 * include/ext/mt_allocator.h: Reduce lock contention.
3358 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3361 * include/bits/fstream.tcc (underflow): Remove unused
3363 * include/bits/streambuf_iterator.h (equal): Ditto.
3364 * include/bits/locale_facets.h (_M_convert_from_char):
3367 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3370 * config/linker-map.gnu (nan): Delete.
3371 * libmath/mathconf.h (NAN, nan): Delete.
3372 * linkage.m4 (nan): Don't check for it.
3373 * libmath/nan.c: Delete file.
3375 * config.h.in, configure: Regenerate.
3377 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3379 * include/bits/basic_string.h (push_back(_CharT)):
3380 Call _M_replace_aux.
3381 (insert(size_type, const basic_string&)): Trivial tweak.
3382 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
3383 (insert(iterator, _CharT)): Ditto.
3384 (erase(size_type, size_type)): Ditto.
3385 (erase(iterator)): Ditto.
3386 (erase(iterator, iterator)): Ditto.
3387 (replace(size_type, size_type, size_type, _CharT)): Ditto.
3389 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
3392 * testsuite/performance/allocator_map_thread.cc: New test.
3394 2004-01-22 Paolo Carlini <pcarlini@suse.de>
3396 * include/bits/locale_facets.tcc
3397 (money_put::do_put(..., long double)): Use the basic_string
3398 constructor for char arrays, not that for C-strings, to pass
3399 __digits to do_put(..., const string_type&): __ws isn't
3402 2004-01-22 Paolo Carlini <pcarlini@suse.de>
3404 * include/bits/basic_string.h (_M_replace_safe): Change
3405 signatures to take size_types and const _CharT*.
3406 (_M_replace_aux): Likewise, takes size_types instead of
3408 (append(size_type, _CharT)): Update call.
3409 (assign(size_type, _CharT)): Ditto.
3410 (replace(iterator, iterator, size_type, _CharT)): Ditto.
3411 (_M_replace_dispatch(iterator, iterator, _Integer,
3412 _Integer, __true_type)): Ditto.
3413 * include/bits/basic_string.tcc (assign(const _CharT*,
3415 (insert(size_type, const _CharT*, size_type)): Ditto.
3416 (replace(size_type, size_type, const _CharT*,
3418 (_M_replace(iterator, iterator, _InputIterator,
3419 _InputIterator)): Ditto.
3420 (append(const basic_string&)): Ditto.
3421 (append(const basic_string&, size_type, size_type): Ditto.
3422 (append(const _CharT*, size_type): Ditto.
3423 (_M_replace_safe, _M_replace_safe): Change definitions
3424 accordingly, simplify.
3425 * string-inst.cc (_M_replace_safe): Don't instantiate.
3427 2004-01-21 Paolo Carlini <pcarlini@suse.de>
3429 * include/bits/basic_string.tcc (append(const basic_string&)):
3430 Revert previous change.
3431 (append(const basic_string&, size_type, size_type)): Revert
3432 previous change, use _M_check and _M_limit.
3434 2004-01-21 Paolo Carlini <pcarlini@suse.de>
3436 * include/bits/basic_string.h (_M_check): Change to return
3437 a checked __pos and take an additional const char* argument.
3438 (_M_fold): Rename to _M_limit, change to return a size_type,
3439 corresponding to the __off limited to the actual length.
3440 (insert(size_type, size_type, _CharT)): Update call, call
3442 (insert(iterator, _CharT)): Call replace(iterator, iterator,
3443 size_type, _CharT) instead.
3444 (erase(size_type, size_type)): Update calls.
3445 (replace(size_type, size_type, size_type, _CharT)): Ditto.
3446 (substr(size_type, size_type)): Use _M_check.
3447 * include/bits/basic_string.tcc (basic_string(const basic_string&,
3448 size_type, size_type)): Update calls.
3449 (basic_string(const basic_string&, size_type, size_type,
3450 const _Alloc&)): Ditto.
3451 (assign(const basic_string&, size_type, size_type)): Use the
3452 new _M_check and _M_limit.
3453 (insert(size_type, const basic_string&, size_type, size_type):
3455 (insert(size_type, const _CharT*, size_type)): Ditto.
3456 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
3457 (replace(size_type, size_type, const basic_string&,
3458 size_type, size_type)): Ditto.
3459 (append(const basic_string&)): Ditto.
3460 (append(const basic_string&, size_type, size_type)): Ditto.
3461 (copy(_CharT*, size_type, size_type)): Ditto.
3462 (compare(size_type, size_type, const basic_string&)): Ditto.
3463 (compare(size_type, size_type, const basic_string&,size_type,
3465 (compare(size_type, size_type, const _CharT*)): Ditto.
3466 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3468 2004-01-19 Stefan Olsson <stefan@snon.net>
3470 * include/ext/mt_allocator.h: If a thread, when it dies, still has
3471 memory on it's freelist this memory is not returned to global
3472 list. Simplification of deallocate so that memory is always
3473 returned to the calling thread id's freelist instead of to
3474 global. Fix typos. Add volatile where appropriate.
3476 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
3478 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
3479 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
3480 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
3482 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3484 * src/debug.cc: Make sure all the names are prefixed with
3485 double (or single) underscore.
3487 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3489 * src/debug.cc: Trivial formatting change.
3491 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3493 * include/bits/basic_string.tcc (_S_construct(size_type,
3494 _CharT, const _Alloc&)): Remove redundant try/catch.
3495 (_M_mutate(size_type, size_type, size_type)): Ditto.
3496 (_M_clone(const _Alloc&, size_type)): Ditto.
3498 2004-01-18 Paolo Carlini <pcarlini@suse.de>
3500 * include/bits/basic_string.h (c_str()): Simplify, due to
3501 21.3.4 the internal representation is always kept null-terminated.
3502 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
3503 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
3504 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
3507 2004-01-18 Paolo Carlini <pcarlini@suse.de>
3509 * include/bits/basic_string.h (append(size_type, _CharT)):
3510 Moved inline, just call _M_replace_aux, no source iterators at
3511 risk of being clobbered.
3512 (assign(size_type, _CharT)): Call directly _M_replace_aux.
3513 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3514 input_iterator_tag)): Remove fifth unused argument.
3515 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3516 _InputIterator, __false_type)): Update call.
3517 * include/bits/basic_string.tcc (replace(size_type, size_type,
3518 const _CharT*, size_type)): Update call.
3519 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
3520 throw string literal.
3521 (_M_replace_safe(iterator, iterator, _ForwardIterator,
3522 _ForwardIterator)): Likewise.
3523 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3524 input_iterator_tag)): Remove fifth unused argument.
3525 (append(size_type __n, _CharT __c)): Move inline.
3526 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
3527 const C*, const C*, input_iterator_tag)): Remove fifth unused
3530 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
3532 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
3533 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
3535 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
3537 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
3540 2004-01-15 Stefan Olsson <stefan@snon.net>
3542 * include/ext/mt_allocator.h: Reuse thread id's as soon as
3543 possible by changing the behaviour of thread_freelist to do
3544 push_front when threads die instead of push_back.
3546 2004-01-14 Paolo Carlini <pcarlini@suse.de>
3548 * include/bits/locale_facets.h (struct __numpunct_cache):
3549 Add member _M_grouping_size, caching the length of _M_grouping.
3550 (__numpunct_cache<>::_M_cache): Assign the latter.
3551 (__verify_grouping): Move declaration...
3552 * include/bits/locale_facets.tcc (__verify_grouping):
3553 ... here, change signature to take a const char* and a size_t
3554 for the grouping; not a template anymore.
3555 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
3556 Likewise change signature and tweak consistently.
3557 (num_get::_M_extract_float, num_get::_M_extract_int,
3558 num_put::_M_insert_int, num_put::_M_insert_float,
3559 money_get::do_get(string_type&), money_get::do_put(string_type)):
3561 * config/locale/generic/numeric_members.cc
3562 (numpunct<>::_M_initialize_numpunct): Assign the new member.
3563 * config/locale/gnu/numeric_members.cc
3564 (numpunct<>::_M_initialize_numpunct): Likewise.
3565 * src/locale-inst.cc (__add_grouping): Tweak signature.
3566 (__verify_grouping): Don't instantiate, not a template anymore.
3568 * include/bits/locale_facets.h: Rename _M_truename_len ->
3569 _M_truename_size, _M_falsename_len -> _M_falsename_size.
3570 * include/bits/locale_facets.tcc: Likewise.
3571 * config/locale/generic/numeric_members.cc: Likewise.
3572 * config/locale/gnu/numeric_members.cc: Likewise.
3574 2004-01-14 Stefan Olsson <stefan@snon.net>
3576 * include/ext/mt_allocator.h: Fixups.
3577 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
3578 * testsuite/performance/allocator_thread.cc: Same.
3580 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
3582 * testsuite/performance/ifstream_extract_float.cc: Add higher
3584 * testsuite/performance/ofstream_insert_float.cc: Same.
3586 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3588 * src/locale-misc-inst.cc (__convert_from_v(long),
3589 __convert_from_v(unsigned long), __convert_from_v(long long),
3590 __convert_from_v(unsigned long long)): Remove, unused.
3592 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
3594 * testsuite/performance/ifstream_extract_float.cc: New.
3595 * testsuite/performance/ofstream_insert_float.cc: Float generation
3598 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
3599 * 20_util/auto_ptr/1.cc: ...this.
3600 * 20_util/auto_ptr/2.cc: Same.
3601 * 20_util/auto_ptr/3.cc: Same.
3602 * 20_util/auto_ptr/3946.cc: Same.
3603 * 20_util/auto_ptr/4.cc: Same.
3604 * 20_util/auto_ptr/5.cc: Same.
3605 * 20_util/auto_ptr/6.cc: Same.
3606 * 20_util/auto_ptr/7.cc: Same.
3607 * 20_util/auto_ptr/assign_neg.cc
3608 * 20_util/pairs.cc: Break into...
3609 * 20_util/pair/1.cc: ...this.
3610 * 20_util/pair/2.cc: Same.
3611 * 20_util/pair/3.cc: Same.
3612 * 20_util/pair/4.cc: Same.
3614 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3616 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
3617 Set correctly just basefield, the only group that matters.
3619 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3621 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
3622 (_Rope_rep_base): Inherit directly from the rope allocator;
3623 use rebinding instead of _Alloc_traits; pick up data member
3624 from _Rope_rep_alloc_base.
3625 (_Rope_alloc_base): Eliminate.
3626 (_Rope_base): Inherit directly from the rope allocator; use
3627 rebinding instead of _Alloc_traits; pick up data member from
3629 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
3630 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
3632 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3635 * include/bits/basic_string.tcc (compare(size_type, size_type,
3636 const _CharT*, size_type)): Implement correctly the resolution
3637 of DR 5: basically, s is a char array, -not- a C string.
3638 * include/bits/basic_string.h: Tweak some comments.
3639 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
3640 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
3642 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
3644 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
3647 2004-01-12 Paolo Carlini <pcarlini@suse.de>
3649 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
3651 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
3654 2004-01-12 Paolo Carlini <pcarlini@suse.de>
3656 * include/bits/locale_facets.h (struct __numpunct_cache):
3657 Add members _M_truename_len and _M_falsename_len, caching
3658 the lengths of _M_truename and _M_falsename.
3659 (__numpunct_cache<>::_M_cache): Assign the latter.
3660 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
3661 num_put::do_put(bool)): Use the new members, thus avoiding
3662 computing string lengths again and again.
3663 * config/locale/generic/numeric_members.cc
3664 (numpunct<>::_M_initialize_numpunct): Assign the new members.
3665 * config/locale/gnu/numeric_members.cc
3666 (numpunct<>::_M_initialize_numpunct): Likewise.
3668 2004-01-12 Mark Mitchell <mark@codesourcery.com>
3670 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
3671 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
3673 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
3674 and remove Cygwin XFAIL.
3675 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
3676 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
3677 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
3678 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
3680 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3681 * testsuite/27_io/objects/char/7.cc: Likewise.
3682 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
3683 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
3684 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
3686 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
3688 * include/std/std_complex.h (std::complex<>::real): Return a
3689 reference. Add non-const overload.
3690 (std::complex<>::real): Likewise.
3691 (std::real): Likewise.
3692 (std::imag): Likewise.
3693 (std::operator+): Tidy.
3694 (std::operator-): Likewise.
3695 (std::operator*): Likewise.
3696 (std::operator/): Likewise.
3697 (std::operator>>): Likewise.
3699 2004-01-11 Paolo Carlini <pcarlini@suse.de>
3702 * include/bits/fstream.tcc (imbue): Exploit the external
3703 buffer to imbue 'on the fly' a new locale and convert its
3704 remainder with the new codecvt facet.
3705 (underflow): Tweak slightly to deal with this special case.
3706 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
3707 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
3708 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
3709 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
3710 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
3712 2004-01-10 Paolo Carlini <pcarlini@suse.de>
3714 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
3717 2004-01-10 Paolo Carlini <pcarlini@suse.de>
3720 * include/bits/locale_classes.h (class locale): Fix category
3722 * testsuite/22_locale/locale/13630.cc: Add.
3724 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
3726 * include/bits/locale_facets.h: Make a name really dependent. This
3727 will be needed when Core Issue 224 is implemented.
3729 2004-01-09 Paolo Carlini <pcarlini@suse.de>
3731 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
3732 * testsuite/performance/allocator_thread.cc: Likewise.
3734 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
3736 * crossconfig.m4: Add LFS, io bits to linux cross config.
3737 * acconfig.h: Remove obsolete bits, reorder.
3738 * config.h.in: Regenerate.
3742 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
3744 * include/bits/stl_list.h:
3745 * include/bits/list.tc:
3747 Performance enhancements for destructor, push_front(),
3748 push_back(), pop_front(), pop_back(), sort()
3749 Eliminated static_casts where possible.
3750 Moved code out of header files into new src/list.cc
3751 implementation file for library where possible.
3752 Remove inheritance from iterator class and create separate
3753 classes for non-constant and constant iterators.
3754 * include/bits/stl_tree.h (_Rb_tree class):
3756 Only erase contents in destructor.
3757 Eliminate unnecessary initialization in assignment operator.
3758 Optimize for the nominal case by not checking whether
3759 container is empty in clear().
3760 Re-order test in _M_insert() to improve performance.
3761 Move initialization of new node's left & right pointers to
3762 src/tree.cc to where new node's colour is initialized
3763 and to reduce the amount of inline code.
3764 Use _M_leftmost() and _M_end() to improve readability where
3766 Create separate classes for non-constant and constant
3767 iterators to clarify code, avoid extra template parameters and
3768 casting away constness.
3770 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
3772 * src/Makefile.am (sources): Add list.cc, tree.cc.
3773 * src/stl_tree.cc: Move to...
3774 * src/tree.cc: ...here.
3776 * config/linker-map.gnu: Tweaks.
3777 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
3778 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
3780 * bits/stl_vector.h: Column wrap comments.
3782 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
3784 (re-open) PR libstdc++/12658
3785 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
3786 (locale::global): Likewise.
3788 2004-01-07 Paolo Carlini <pcarlini@suse.de>
3790 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
3791 Remove redundant #include.
3792 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
3793 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
3794 re-enable normal testing.
3795 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
3797 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
3798 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
3800 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
3802 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
3804 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
3806 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
3808 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
3810 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
3812 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
3813 More properly, #include <locale>.
3814 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
3815 Remove redundant #include.
3816 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
3817 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
3818 redundant DejaGnu directive.
3819 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
3822 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
3823 Stefan Olsson <stefan@snon.net>
3825 * scripts/check_performance: Use -pthread.
3826 * testsuite/performance/allocator.cc: Tweaks, add list.
3827 * testsuite/performance/allocator_thread.cc: New.
3829 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
3831 * include/bits/locale_facets.h: Document public classes and
3833 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
3836 2004-01-06 Paolo Carlini <pcarlini@suse.de>
3838 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
3839 Remove redundant #includes.
3840 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
3842 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
3844 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
3845 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
3846 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
3847 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
3848 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
3849 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
3850 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
3851 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
3852 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
3853 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
3854 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
3855 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
3856 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
3857 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
3858 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
3860 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
3862 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
3864 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
3866 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
3868 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
3869 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
3870 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
3872 2004-01-04 Paolo Carlini <pcarlini@suse.de>
3874 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
3875 Remove redundant #includes.
3876 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
3878 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
3880 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
3882 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
3884 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
3886 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
3888 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3890 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3892 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3894 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
3896 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
3898 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
3901 2004-01-04 Mark Mitchell <mark@codesourcery.com>
3904 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
3906 * testsuite/27_io/basic_fstream/4.cc: Likewise.
3907 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
3908 * testsuite/27_io/basic_ios/4.cc: Likewise.
3909 * testsuite/27_io/basic_iostream/4.cc: Likewise.
3910 * testsuite/27_io/basic_istream/4.cc: Likewise.
3911 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
3912 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
3913 * testsuite/27_io/basic_ostream/4.cc: Likewise.
3914 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
3915 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
3916 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
3918 2004-01-04 Paolo Carlini <pcarlini@suse.de>
3920 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
3921 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
3922 always use double underscored names.
3923 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
3925 * include/bits/locale_facets.h (struct __numpunct_cache):
3926 Dimension _M_atoms_out and _M_atoms_in one position smaller.
3927 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out