1 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
3 * configure.ac (libtool_VERSION): To 6:2:0.
4 * configure: Regenerated.
6 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
8 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
11 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
13 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
15 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
18 2004-07-07 Paolo Carlini <pcarlini@suse.de>
21 * include/bits/sstream.tcc (overflow): When reallocating _M_string
22 use an exponential grow policy.
23 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
24 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
26 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
29 * crossconfig.m4: Add in bits for djgpp.
30 * configure: Regenerate.
32 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
34 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
35 instantiation of set and multiset (functor param given as int).
37 2004-07-04 Paolo Carlini <pcarlini@suse.de>
39 * include/bits/basic_string.h: Trivial formatting fixes and/or
40 const-ification of some variables.
41 * include/bits/deque.tcc: Likewise.
42 * include/bits/stl_algobase.h: Likewise.
43 * include/bits/stl_bvector.h: Likewise.
44 * include/bits/stl_construct.h: Likewise.
45 * include/bits/stl_deque.h: Likewise.
46 * include/bits/stl_pair.h: Likewise.
47 * include/bits/stl_vector.h: Likewise.
48 * include/bits/vector.tcc: Likewise.
50 2004-07-04 Paolo Carlini <pcarlini@suse.de>
52 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
53 systems with no COMDAT or weak support.
54 * testsuite/25_algorithms/copy/2.cc: Likewise.
55 * testsuite/25_algorithms/copy/3.cc: Likewise.
56 * testsuite/25_algorithms/copy/4.cc: Likewise.
58 2004-07-03 Paul Brook <paul@codesourcery.com>
60 * configure.ac: Set ABI_TWEAKS_SRCDIR.
61 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
62 setting atomicity_dir. Override type_cpu for arm based targets.
63 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
64 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
65 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
66 * libsupc++/vec.cc: Ditto.
67 * config/cpu/arm/cxxabi_tweaks.h: New file.
68 * config/cpu/generic/cxxabi_tweaks.h: New file.
69 * */Makefile.in: Regenerate.
70 * configure: Regenerate.
72 2004-07-02 Paolo Carlini <pcarlini@suse.de>
74 * include/bits/type_traits.h (_Is_normal_iterator): Move...
75 * include/bits/cpp_type_traits.h: ... here, renamed to
76 __is_normal_iterator and consistent with the other traits.
77 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
78 to the struct __copy_normal and three specializations.
79 (__copy_backward_output_normal_iterator,
80 __copy_backward_input_normal_iterator): Likewise, convert to
81 the struct __copy_backward_normal and three specializations.
82 (copy, copy_backward): Use the latter.
83 (__copy_aux, __copy_backward_aux): Very minor tweaks.
85 2004-07-01 Paolo Carlini <pcarlini@suse.de>
87 * include/bits/stl_algobase.h (__copy_trivial): Remove.
88 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
89 __is_trivially_copyable, __are_same and __copy::copy.
90 (__copy): Rewrite as a class template and two specializations.
91 (__copy_ni2): Simplify, just call __copy_aux.
93 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
95 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
96 for destination value type != source value type.
98 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
99 Per Bothner <per@bothner.com>
100 Mohan Embar <gnustuff@thisiscool.com>
103 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
104 (__glibcxx_mutex): Encapsulate mutex init function into type for
105 threaded configurations without __GTHREAD_MUTEX_INIT.
106 (lock::lock): Make device member a reference.
108 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
110 * src/allocator.cc: Same.
112 2004-06-30 Brad Spencer <spencer@infointeractive.com>
114 * include/ext/mt_allocator.h: Handle allocations at static
115 initialization that happen before _S_options is (automatically)
116 constructed; set _S_init even if _M_force_new is true.
118 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
120 * config/linker-map.gnu: Revert new exports.
122 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
123 Stuart Anderson <anderson@netsweng.com>
125 * config/linker-map.gnu: Add destructor exports for abstract base
126 classes to conform to LSB.
128 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
129 Paolo Carlini <pcarlini@suse.de>
131 * include/bits/cpp_type_traits.h: Add __is_pointer and
132 __is_trivially_copyable.
133 * include/bits/stl_algobase.h (fill, fill_n): Slightly
134 tweak to use the latter.
135 (__copy_backward_dispatch): Remove.
136 (__copy_backward_aux): Rewrite to use __is_pointer and
137 __is_trivially_copyable and __copy_backward::copy_b.
138 (__copy_backward): Rewrite as a class template and two
141 2004-06-30 Paolo Carlini <pcarlini@suse.de>
143 * testsuite/25_algorithms/copy.cc: Move to...
144 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
145 * testsuite/25_algorithms/copy/2.cc: New.
146 * testsuite/25_algorithms/copy/3.cc: New.
147 * testsuite/25_algorithms/copy/4.cc: New.
149 2004-06-29 Paul Brook <paul@codesourcery.com>
151 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
152 element size in the cookie.
154 2004-06-28 Paolo Carlini <pcarlini@suse.de>
156 * include/bits/cpp_type_traits.h: Move the additions to
157 namespace __gnu_internal outside of namespace std; trivial
160 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
162 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
163 Revert -Weffc++ changes that defined copy ctory and or assignment
165 * libsupc++/tinfo.cc (__upcast_result): Same.
167 2004-06-28 Paolo Carlini <pcarlini@suse.de>
169 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
170 the algorithm used to name the categories.
172 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
174 * include/Makefile.am: Give a .gch extension to
175 the PCH files, not only to the directory.
176 * include/Makefile.in: Regenerate.
178 2004-06-28 Paolo Carlini <pcarlini@suse.de>
180 * config/locale/gnu/monetary_members.cc
181 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
182 assignments of _M_decimal_point and _M_thousands_sep.
184 2004-06-27 Paolo Carlini <pcarlini@suse.de>
186 * docs/html/17_intro/contribute.html: Update some links.
187 * docs/html/17_intro/porting-howto.html: Likewise.
188 * docs/html/17_intro/porting-howto.xml: Likewise.
189 * docs/html/18_support/howto.html: Likewise.
190 * docs/html/21_strings/howto.html: Likewise.
191 * docs/html/27_io/howto.html: Likewise.
192 * docs/html/configopts.html: Likewise.
193 * docs/html/ext/howto.html: Likewise.
194 * docs/html/faq/index.html: Likewise.
195 * docs/html/install.html: Don't mention 2.x compilers.
197 2004-06-27 Paolo Carlini <pcarlini@suse.de>
199 * include/ext/rope: Trivial formatting fixes.
200 * include/ext/ropeimpl.h: Likewise.
202 2004-06-26 Paolo Carlini <pcarlini@suse.de>
205 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
206 availability of strto(u)ll, not used anymore in the iostreams.
207 * configure: Regenerate.
209 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
212 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
214 * configure: Regenerate.
216 2004-06-25 Paul Brook <paul@codesourcery.com>
218 * libsupc++/cxxabi.h: Define __ARM_EABI__
220 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
222 2004-06-25 Paul Brook <paul@codesourcery.com>
224 * include/bits/concurrence.h: Still create mutex object when
227 2004-06-25 Paolo Carlini <pcarlini@suse.de>
229 * include/bits/stl_algobase.h (fill, fill_n): Revert last
230 change: actually we need to copy construct an object of type
231 _Tp, not of type iterator_traits<>::value_type, therefore the
234 2004-06-25 Paolo Carlini <pcarlini@suse.de>
236 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
237 dispatch: use iterator_traits<>::value_type, not _Tp.
239 2004-06-25 Paolo Carlini <pcarlini@suse.de>
241 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
242 * testsuite/25_algorithms/fill/2.cc: Likewise.
244 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
245 Paolo Carlini <pcarlini@suse.de>
247 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
248 for fill and fill_n, respectively: when copying is cheap, use a
249 temporary to avoid a memory read in each iteration.
251 2004-06-25 Paolo Carlini <pcarlini@suse.de>
253 * testsuite/25_algorithms/fill/1.cc: New.
254 * testsuite/25_algorithms/fill/2.cc: Likewise.
256 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
258 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
259 Remove copy constructor and assignment operator.
261 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
263 * include/bits/concurrence.h (__gnu_cxx::lock): New.
264 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
265 (__pool_base::_M_get_mutex): New.
266 * include/bits/allocator.h: Tweak.
267 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
268 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
269 * include/bits/stl_threads.h: Remove.
270 * include/Makefile.am: Also here.
271 * include/Makefile.in: Regenerate.
273 * src/locale_init.cc: Use __gnu_cxx::lock.
275 * src/allocator.cc: Move all instantiations...
276 * src/allocator-inst.cc: ...here.
278 2004-06-23 Andrew Pinski <apinski@apple.com>
280 * linkage.m4: Remove check for libmx.
281 * configure: Regenerate.
283 2004-06-23 Paolo Carlini <pcarlini@suse.de>
286 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
287 Don't require the _DefaultConstructibleConcept.
288 (struct _ForwardIteratorConcept): Require it here.
290 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
292 * include/bits/istream.tcc (getline): Make sure arguments passed
293 to min/max have the same type.
294 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
295 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
297 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
299 * docs/html/abi.html: Update links.
301 2004-06-22 Paolo Carlini <pcarlini@suse.de>
303 * testsuite/26_numerics/complex_inserters_extractors.cc,
304 complex_value.cc, buggy_complex.cc: Move to...
305 * testsuite/26_numerics/complex/: ... here.
306 * testsuite/26_numerics/c99_classification_macros_c++.cc,
307 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
308 fabs_inline.cc: Move to...
309 * testsuite/26_numerics/cmath/: ... here.
310 * testsuite/26_numerics/binary_closure.cc, slice.cc,
311 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
312 valarray_name_lookup.cc, valarray_operators.cc,
313 valarray_subset_assignment.cc: Move to...
314 * testsuite/26_numerics/valarray/: ... here (new dir).
315 * testsuite/26_numerics/sum_diff.cc: Move to...
316 * testsuite/26_numerics/numeric/: ... here (new dir).
318 2004-06-22 Paolo Carlini <pcarlini@suse.de>
320 * include/std/std_istream.h (ignore(streamsize __n = 1,
321 int_type __delim = traits_type::eof())): Split into...
322 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
323 int_type __delim)): The first two can be much more simpler
324 and efficient than the fully general case; also, the last
325 two can take advantage of the same mechanism already used
327 * include/bits/istream.tcc (ignore(streamsize __n = 1,
328 int_type __delim = traits_type::eof()): Remove.
329 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
330 int_type __delim)): New.
332 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
334 * config/linker-map.gnu: Use wildcards for
335 __basic_file::sys_open(FILE*, _Ios_Openmode).
337 2004-06-20 Paolo Carlini <pcarlini@suse.de>
339 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
341 2004-06-18 Paolo Carlini <pcarlini@suse.de>
343 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
344 the alignment requested.
345 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
346 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
347 (__mt_alloc<>::deallocate): Likewise.
349 2004-06-18 Paolo Carlini <pcarlini@suse.de>
352 * include/debug/safe_base.h
353 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
354 _Safe_sequence_base::operator=): Provide definitions.
355 * testsuite/23_containers/bitset/cons/16020.cc: New.
357 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
359 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
360 (__pool_base): Remove unused template parameter. Add
361 protected. Move lock data into __pool_base::_Lock. Remove static
363 (__pool_base::_M_get_free_list): New.
364 (__pool_alloc): Move _S_force new here.
365 * src/allocator.cc: Move out of line __pool_base definitions here.
366 * config/linker-map.gnu: Export bits from __pool_base.
368 2004-06-18 Paolo Carlini <pcarlini@suse.de>
370 * config/locale/gnu/numeric_members.cc
371 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
372 assignments of _M_decimal_point and _M_thousands_sep.
373 * config/locale/gnu/time_members.cc
374 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
375 and reformat assignments of date and time fields.
377 2004-06-16 Paolo Carlini <pcarlini@suse.de>
379 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
380 to use _Data_allocate.
381 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
382 (rope<>::_S_substring): Likewise.
383 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
384 (rope<>::c_str()): Likewise.
385 (rope<>::replace_with_c_str()): Likewise.
387 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
388 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
390 (_Rope_iterator_base<>::_S_setcache): Likewise.
391 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
392 (rope<>::_S_substring): Likewise.
393 (rope<>::_S_dump): Likewise.
394 (rope<>::_S_fetch_ptr): Likewise.
395 (rope<>::_S_compare): Likewise.
396 (rope<>::replace_with_c_str()): Likewise.
398 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
399 * testsuite/ext/rope/2.cc: New.
401 2004-06-16 Paolo Carlini <pcarlini@suse.de>
402 Matt Austern <austern@apple.com>
404 * testsuite/ext/rope/3.cc: New.
406 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
408 * acinclude.m4: Remove useless multilib configury.
409 * Makefile.am: Remove useless multilib rules.
410 * aclocal.m4: Regenerate.
411 * Makefile.in: Regenerate.
412 * configure: Regenerate.
414 2004-06-15 Paolo Carlini <pcarlini@suse.de>
416 * include/ext/hashtable.h: Trivial formatting fixes.
417 * include/ext/rb_tree: Likewise.
419 2004-06-14 Paolo Carlini <pcarlini@suse.de>
421 * include/ext/hash_map: Trivial formatting fixes.
422 * include/ext/hash_set: Likewise.
423 * include/ext/memory: Likewise.
424 * include/ext/numeric: Likewise.
426 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
428 * Makefile.in: Regenerate with automake 1.8.5.
430 * include/Makefile.in: Same.
431 * libmath/Makefile.in: Same.
432 * libsupc++/Makefile.in: Same.
433 * po/Makefile.in: Same.
434 * src/Makefile.in: Same.
435 * testsuite/Makefile.in: Same.
437 2004-06-14 Paolo Carlini <pcarlini@suse.de>
439 * include/ext/slist: Trivial formatting fixes.
441 2004-06-14 Paolo Carlini <pcarlini@suse.de>
443 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
444 Don't use the 'magic number' 10 in the computation of __minlen;
445 never access __name past __minlen; in the loop over __i3, don't
446 decrease __nmatches and increase __i3 at once, only either of
449 2004-06-13 Paolo Carlini <pcarlini@suse.de>
451 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
452 time_get<>::do_get_date): Use only once _M_extract_via_format,
453 instead of going through "%X"/"%x" and calling it two times
456 2004-06-12 Paolo Carlini <pcarlini@suse.de>
458 * include/ext/algorithm: Trivial formatting fixes.
459 * include/ext/functional: Likewise.
460 * include/ext/hash_fun.h: Likewise.
461 * include/ext/iterator: Likewise.
463 2004-06-12 Paolo Carlini <pcarlini@suse.de>
465 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
466 size_type)): Reimplement using std::search.
467 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
469 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
471 * testsuite/performance/21_strings/string_find.cc: New.
473 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
475 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
477 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
479 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
480 this function return a value.
482 2004-06-09 Paolo Carlini <pcarlini@suse.de>
485 * include/bits/stl_deque.h: Consistently with stl_set.h, define
486 pointer as allocator's pointer, likewise for reference,
487 const_pointer, and const_reference.
488 * include/bits/stl_list.h: Likewise.
489 * include/bits/stl_map.h: Likewise.
490 * include/bits/stl_multimap.h: Likewise.
491 * include/bits/stl_vector.h: Likewise.
493 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
495 * crossconfig.m4: Remove signbit, signbitf, signbitl.
496 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
497 builtin math functions instead of AC_DEFINE_UNQUOTED.
498 * configure: Regenerate.
500 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
502 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
503 * docs/doxygen/mainpage.html: Remove links.
505 2004-06-08 Jason Merrill <jason@redhat.com>
507 * config/linker-map.gnu: Use wildcards for
508 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
510 2004-06-08 Paolo Carlini <pcarlini@suse.de>
512 * include/ext/pool_allocator.h: Convert to a global free-list,
513 as per the original SGI/HP design: move the implementation
514 details to struct __pool_base, from which __pool_alloc derives.
515 * src/allocator.cc: Instantiate __pool_base.
517 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
518 Paolo Carlini <pcarlini@suse.de>
520 * testsuite/testsuite_performance.h
521 (resource_counter::allocated_memory): Make it return the right
522 number of bytes requested by the allocators/application. This is
523 the sbrk+mmaped memory.
525 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
527 * include/std/std_complex.h (log): Tidy.
529 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
531 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
532 * testsuite/testsuite_abi.cc: Same.
533 * configure.ac (libtool_VERSION): Bump to 6:1:0.
534 * configure: Regenerate.
535 * aclocal.m4: Regenerate.
537 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
539 * include/std/std_complex.h (complex<_Tp>): Properly indent
541 (complex<>::__rep): New.
542 (__complex_abs): New. Dispatch to built-ins.
544 (__complex_arg): New. Dispatch to built-ins.
546 (__complex_cos): New. Dispatch to built-ins.
548 (__complex_cosh): New. Dispatch to built-ins.
550 (__complex_exp): New. Dispatch to built-ins.
552 (__complex_log): New. Dispatch to built-ins.
554 (__complex_sin): New. Dispatch to built-ins.
556 (__complex_sinh): New. Dispatch to built-ins.
558 (__complex_sqrt): New. Dispatch to built-ins.
560 (__complex_tan): New. Dispatch to built-ins.
562 (__complex_tanh): New. Dispatch to built-ins.
564 (__complex_pow): New. Dispatch to built-ins.
567 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
568 Benjamin Kosnik <bkoz@redhat.com>
571 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
572 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
573 * config/io/basic_file_stdio.cc (__basic_file::file): New.
574 * config/io/basic_file_stdio.h: Define.
576 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
579 * docs/html/documentation.html: Update doxygen links for 3.4.0.
581 2004-05-27 Jan Beulich <jbeulich@novell.com>
583 * scripts/create_testsuite_files: Tweak.
585 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
588 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
589 bits to do the same thing.
591 2004-05-24 Paolo Carlini <pcarlini@suse.de>
593 * include/bits/istream.tcc (ignore): Correctly deal with
594 n == numeric_limits<streamsize>::max().
595 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
597 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
598 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
599 __n == numeric_limits<>::min().
601 * include/bits/istream.tcc: Minor tweaks.
603 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
605 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
607 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
609 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
611 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
613 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
617 * include/bits/basic_string.h (basic_string::operator=): Return
618 pointer to this instead of result of assign. Although redundant,
619 this doesn't impact resultant codegen.
621 * include/bits/locale_facets.h (__numpunct_cache): Declare
622 assignment opxserator and copy constructor private.
623 (__timepunct_cache): Same.
624 (__moneypunct_cache): Same.
625 (collate): Use member initialization list for _M_c_locale_collate.
626 * config/locale/gnu/messages_members.h: Same.
627 * config/locale/gnu/time_members.h (__timepunct): Same.
628 * src/codecvt.cc: Use member initialization list to initialize
630 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
631 * config/os/gnu-linux/ctype_noninline.h: Same.
632 * src/locale.cc (_Impl): Same.
633 * src/locale_init.cc: Same.
634 * src/localename.cc: Same.
636 * include/bits/basic_ios.h (basic_ios): Complete member
638 * include/bits/istream.tcc (basic_istream::sentry): Same.
639 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
640 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
641 _M_pback to member initialization list.
642 * include/std/std_streambuf.h: Same.
643 * include/std/std_sstream.h: Same, for _M_mode.
644 * src/ios.cc (ios_base): Same.
646 * include/ext/rope: Make derived classes match exception
648 specifications. Add copy constructors and assignment operators.
650 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
651 constructor and assignment operator protected.
652 (_Safe_iterator_base): Same.
653 * include/debug/formatter.h (_Error_formatter): Define copy
654 constructor and assignment operator.
656 * include/backward/strstream: Declare assignment operator and copy
659 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
661 * testsuite/testsuite_hooks.h (func_callback): Declare copy
662 constructor and assignment operator private.
663 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
664 exception specifications of base class.
665 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
666 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
667 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
669 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
671 * libsupc++/cxxabi.h: Remove duplicated and useless public and
672 private keywords in class declarations. Format. Use
673 stddef.h. Expose declarations to "C" compilation.
674 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
676 (__dyncast_result): Same.
677 * libsupc++/vec.cc (uncatch_exception): Same, use member
680 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
682 * testsuite/abi_check.cc: Add unistd.h.
684 2004-05-22 Paolo Carlini <pcarlini@suse.de>
687 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
688 __int_to_char(unsigned long long)): Showpos is not relevant
690 * testsuite/22_locale/num_put/put/char/15565.cc: New.
691 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
693 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
695 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
696 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
697 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
698 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
699 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
700 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
702 2004-05-21 Matthias Klose <doko@debian.org>
704 * docs/doxygen/run_doxygen: Bump required version.
706 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
708 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
709 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
711 2004-05-21 Paolo Carlini <pcarlini@suse.de>
713 * include/bits/istream.tcc (ignore): Remove redundant line.
714 (readsome): Tidy, closely following 27.6.1.3, p30.
716 2004-05-20 Paolo Carlini <pcarlini@suse.de>
718 * include/bits/istream.tcc (operator>>(basic_istream<>&,
719 basic_string<>&)): Use a temporary buffer, thus avoiding
720 reallocation for common case.
721 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
723 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
726 * include/bits/istream.tcc: Const-ification of a few variables.
728 * include/bits/ostream.tcc: Trivial formatting fixes and
729 const-ification of some variables.
731 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
735 * docs/doxygen/Intro.3: Remove Allocators.3.
736 Add new extension headers, extension namespace list.
737 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
738 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
739 __gnu_debug::. Remove __policy_ renames.
740 * docs/doxygen/guide.html: Add dot note.
741 * docs/doxygen/stdheader.cc: Edit, add files.
742 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
744 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
746 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
748 2004-05-18 Jan Beulich <jbeulich@novell.com>
751 * scripts/create_testsuite_files: Also find source files through
754 2004-05-18 Jan Beulich <jbeulich@novell.com>
757 * testsuite/lib/libstdc++.exp: Make test files writable.
759 2004-05-18 Paolo Carlini <pcarlini@suse.de>
761 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
764 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
766 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
767 allocation loop which removes blocks from the global free list
768 from O(N) to O(1) when the required blocks are <= the number
771 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
773 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
775 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
777 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
778 * testsuite/23_containers/deque/14340.cc: New.
779 * testsuite/23_containers/list/14340.cc: New.
780 * testsuite/23_containers/map/14340.cc: New.
781 * testsuite/23_containers/multimap/14340.cc: New.
782 * testsuite/23_containers/multiset/14340.cc: New.
783 * testsuite/23_containers/set/14340.cc: New.
784 * testsuite/23_containers/vector/14340.cc: New.
786 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
789 * include/debug/safe_iterator.h (_Safe_iterator converting
790 constructor): Only allow declaration to instantiate when the
791 incoming _Safe_iterator has exactly the right iterator type.
793 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
795 * include/bits/boost_concept_check.h: Fix old attribute syntax.
796 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
797 to pass concept-checks.
798 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
799 * testsuite/23_containers/set/modifiers/swap.cc: Same.
800 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
802 2004-05-16 Paolo Carlini <pcarlini@suse.de>
804 * include/std/std_bitset.h: Minor formatting fixes.
806 2004-05-16 Paolo Carlini <pcarlini@suse.de>
808 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
809 Consistently update __bin._M_free[0].
810 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
811 __bin._M_free[0] to simplify the while loop (i.e., the number
812 of iterations becomes known at the outset).
814 2004-05-15 Paolo Carlini <pcarlini@suse.de>
816 * include/std/std_bitset.h: Trivial formatting fixes.
818 2004-05-14 Paolo Carlini <pcarlini@suse.de>
819 Ivan Godard <igodard@pacbell.net>
822 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
823 * testsuite/23_containers/bitset/ext/15361.cc: New.
825 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
828 * crossconfig.m4: Add C99 math bits for linux crosses.
829 * configure: Regenerate.
831 2004-05-13 Simon Marshall <simon.marshall@misys.com>
832 Benjamin Kosnik <bkoz@redhat.com>
835 * include/bits/locale_facets.h: Fix for -fno-for-scope.
836 * include/debug/safe_sequence.h: Same.
837 * include/debug/safe_iterator.tcc: Same.
838 * src/debug.cc: Same.
839 * src/locale.cc: Same.
840 * src/locale_init.cc: Same.
841 * src/localename.cc: Same.
842 * config/locale/gnu/ctype_members.cc: Same.
843 * config/locale/gnu/numeric_members.cc: Same.
844 * testsuite/testsuite_abi.cc: Same.
845 * testsuite/testsuite_hooks.cc: Same.
847 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
849 * docs/html/abi.html: Document effect of -fabi-version on value
850 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
853 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
856 * docs/html/faq/index.html: Update docs for libsupc++ usage.
858 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
861 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
863 (_GLIBCXX_mutex_address): Same.
864 (_GLIBCXX_once): Same.
865 (_GLIBCXX_mutex_init): Same.
866 (_GLIBCXX_mutex_address_init): Same.
868 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
870 * docs/html/abi.html: New.
871 * docs/html/abi.txt: Remove.
872 * docs/html/documentation.html: Add link.
873 * testsuite/Makefile.am: Add files.
874 * testsuite/Makefile.in: Regenerated.
875 * testsuite/abi_check.cc: Move and modify code into...
876 * testsuite/testsuite_abi.cc: Add.
877 * testsuite/testsuite_abi.h: Add.
879 * docs/html/17_intro/TODO: Update.
880 * include/bits/stl_pair.h: Format.
882 2004-05-06 Matthias Klose <doko@debian.org>
884 * include/backward/iterator.h: Add GPL copyright info,
885 with exception clause.
886 * include/bits/boost_concept_check.h: Likewise.
888 * libsupc++/tinfo.h: Likewise.
889 * po/string_literals.cc: Likewise.
891 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
893 * acinclude.m4: Replace -W with more speaking -Wextra.
894 * configure: Rebuilt.
896 2004-05-03 Paolo Carlini <pcarlini@suse.de>
898 Optimize locale::_M_impl->_M_names for the most common cases:
899 !_M_names[0] means unnamed; !_M_names[1] means all the categories
900 the same name (_M_names[0] && _M_names[1] means that the full set
901 of _M_names must be processed, the general case).
902 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
903 Tweak, saving work when !_M_names[1].
904 (locale::locale(const locale&, _Facet*): Simplify: now just setting
905 _M_names[0] = 0 means unnamed.
906 * src/locale.cc (locale::operator==): Deal first with the common,
907 easy cases, otherwise fall back to locale::name().
908 (locale::name()): Tweak, if !_M_names[0] just return "*".
909 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
910 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
911 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
912 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
913 Simplify when !std::strchr, just updating _M_names[0]; clean up.
914 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
915 for the general case (full set of names), then do the usual work;
918 * src/locale.cc (locale::name()): Reserve space in __ret.
919 * src/locale_init.cc (locale::global(const locale&)): Save
920 the name in a temporary.
921 * src/localename.cc (locale::locale(const char*)): Reserve space
924 2004-04-29 Paolo Carlini <pcarlini@suse.de>
926 * src/locale.cc (locale::operator==): Always avoid constructing
927 locale::name(), directly compare pairs of _M_names.
929 2004-04-26 Paolo Carlini <pcarlini@suse.de>
931 * include/bits/istream.tcc: Fix comment.
933 2004-04-26 Paolo Carlini <pcarlini@suse.de>
935 * include/bits/stl_vector.h: Trivial formatting fixes.
936 * include/bits/vector.tcc: Likewise.
938 2004-04-25 Paolo Carlini <pcarlini@suse.de>
940 PR libstdc++/15002 (continued again)
941 * include/bits/istream.tcc (getline(basic_istream<>&,
942 basic_string<>&, _CharT)): Use a temporary buffer, thus
943 avoiding reallocation for common case.
945 * include/bits/basic_string.tcc (_S_construct(_InIterator,
946 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
947 of temporary buffer to a power of two.
949 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
951 2004-04-25 Paolo Carlini <pcarlini@suse.de>
953 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
955 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
957 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
959 2004-04-24 Paolo Carlini <pcarlini@suse.de>
960 Petur Runolfsson <peturr02@ru.is>
962 PR libstdc++/15002 (continued)
963 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
964 streamsize, char_type)): Use traits::find/copy in a loop to speed
965 up greatly the function in the common case (I/O buffer size >> 1).
967 2004-04-24 Paolo Carlini <pcarlini@suse.de>
969 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
971 * include/bits/istream.tcc (getline(basic_istream<>&,
972 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
973 of sbumpc(), consistently with the other functions, thus also
974 dealing correctly with the case of exceeded string::max_size().
976 2004-04-24 Matthias Klose <doko@debian.org>
978 Jonathan Wakely <cow@compsoc.man.ac.uk>
979 * docs/html/configopts.html: Fix reference to allocator config option.
981 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
983 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
984 * configure: Regenerate.
986 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
988 PR libstdc++/15047, libstdc++/11610
989 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
990 (libstdc++_init): Don't pass outdir to v3-copy-files.
992 2004-04-21 Paolo Carlini <pcarlini@suse.de>
994 * include/bits/deque.tcc: Trivial formatting fixes.
995 * include/bits/stl_deque.h: Likewise.
996 * include/bits/stl_list.h: Likewise.
997 * include/bits/stl_tree.h: Likewise.
999 2004-04-21 Paolo Carlini <pcarlini@suse.de>
1000 Andrew Pinski <pinskia@physics.uc.edu>
1002 * include/bits/basic_string.tcc (_M_mutate): Don't compute
1003 __src unnecessarily.
1005 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
1007 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
1008 Clarify assertion, set test variable to false before assert.
1009 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
1010 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
1011 * testsuite/27_io/ios_base/storage/2.cc: Same.
1013 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
1015 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
1016 * testsuite/27_io/fpos/14320-3.cc: Same.
1018 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
1019 * testsuite/27_io/fpos/1.cc: Same.
1020 * testsuite/27_io/basic_stringstream/2.cc: Same.
1021 * testsuite/27_io/basic_stringbuf/4.cc: Same.
1022 * testsuite/27_io/basic_stringbuf/1.cc: Same.
1023 * testsuite/27_io/basic_stringbuf/2.cc: Same.
1024 * testsuite/27_io/basic_streambuf/2.cc: Same.
1025 * testsuite/27_io/basic_ostringstream/2.cc: Same.
1026 * testsuite/27_io/basic_ostream/2.cc: Same.
1027 * testsuite/27_io/basic_ofstream/2.cc: Same.
1028 * testsuite/27_io/basic_istringstream/2.cc: Same.
1029 * testsuite/27_io/basic_istream/2.cc: Same.
1030 * testsuite/27_io/basic_iostream/2.cc: Same.
1031 * testsuite/27_io/basic_ios/2.cc: Same.
1032 * testsuite/27_io/basic_ifstream/2.cc: Same.
1033 * testsuite/27_io/basic_fstream/2.cc: Same.
1034 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
1036 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
1037 unsigned against zero.
1038 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
1039 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
1041 * testsuite/18_support/new_delete_placement.cc: Initialize
1042 variables before first use.
1043 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
1044 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
1045 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
1046 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
1048 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
1049 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
1051 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
1052 * testsuite/27_io/types/2.cc: Same.
1054 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
1056 * testsuite/27_io/fpos/14775.cc: Same.
1058 2004-04-19 Paolo Carlini <pcarlini@suse.de>
1060 PR libstdc++/15002 (partial)
1061 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
1062 Special case __n2 == 1, not calling traits_type::assign/copy.
1064 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
1066 * include/bits/stl_bvector.h: Use _M_impl._M_start.
1068 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
1070 * include/bits/c++config (_GLIBCXX_STD): New.
1071 * src/list.cc: Use it.
1072 * include/std/std_bitset.h: Same.
1073 * include/bits/vector.tcc: Same.
1074 * include/bits/stl_set.h: Same.
1075 * include/bits/stl_multiset.h: Same.
1076 * include/bits/stl_multimap.h: Same.
1077 * include/bits/stl_map.h: Same.
1078 * include/bits/stl_list.h: Same.
1079 * include/bits/stl_vector.h: Same.
1080 * include/bits/stl_bvector.h: Same.
1081 * include/bits/stl_deque.h: Same.
1082 * include/bits/deque.tcc: Same.
1083 * include/bits/list.tcc: Same.
1084 * include/debug/vector: Same.
1085 * include/debug/set.h: Same.
1086 * include/debug/multiset.h: Same.
1087 * include/debug/multimap.h: Same.
1088 * include/debug/map.h: Same.
1089 * include/debug/list: Same.
1090 * include/debug/deque: Same.
1091 * include/debug/bitset: Same.
1092 * include/debug/formatter.h (__gnu_debug): Remove using directive.
1093 Add using declaration for std::type_info.
1094 * include/debug/safe_iterator.h: Add using declaration for
1095 std::iterator_traits and std::pair.
1096 * src/debug_list.cc: New.
1097 * src/Makefile.am: Add debug_list.cc.
1098 * src/Makefile.in: Regenerate.
1099 * config/linker-map.gnu: Add _List_node_base exports for std and
1102 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
1103 idiom that other containers use.
1104 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
1106 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1109 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
1111 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
1112 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
1114 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1116 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
1118 * config.h.in: Regenerate.
1120 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1122 * config/locale/generic/monetary_members.cc
1123 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
1124 btowc unnecessarily, just cast to wchar_t (the concerned chars
1125 all belong to the basic character set).
1126 * config/locale/generic/numeric_members.cc
1127 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1128 * config/locale/gnu/monetary_members.cc
1129 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
1130 * config/locale/gnu/numeric_members.cc
1131 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1133 2004-04-15 Paolo Carlini <pcarlini@suse.de>
1135 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
1136 avoid constructing unnecessarily this->name().
1138 2004-04-14 Zack Weinberg <zack@codesourcery.com>
1140 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
1141 Change definition of CXX to use $(shell) instead of backticks.
1142 * testsuite/Makefile.in: Regenerate.
1144 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
1146 * testsuite/performance/20_util/allocator/list_sort_search.cc:
1147 Minor formatting fixes.
1148 * testsuite/performance/20_util/allocator/map_mt_find.cc:
1151 2004-04-12 Paolo Carlini <pcarlini@suse.de>
1153 * config/locale/gnu/numeric_members.cc
1154 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
1155 in __uselocale, since btowc is called for chars belonging to
1156 the basic character set.
1158 2004-04-09 Paolo Carlini <pcarlini@suse.de>
1160 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
1161 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
1162 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
1163 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
1164 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
1165 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
1166 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
1167 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
1168 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
1169 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
1170 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
1171 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
1172 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
1173 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
1174 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
1175 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
1176 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
1178 2004-04-07 Paolo Carlini <pcarlini@suse.de>
1180 * config/locale/generic/time_members.cc
1181 (__timepunct<char>::_M_initialize_timepunct,
1182 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
1183 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
1184 * config/locale/gnu/time_members.cc
1185 (__timepunct<char>::_M_initialize_timepunct,
1186 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
1187 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
1188 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
1190 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
1191 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
1192 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
1193 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
1194 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
1195 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
1196 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
1197 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
1198 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
1199 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
1200 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
1201 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
1202 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
1203 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
1204 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
1205 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
1206 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
1207 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
1208 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
1209 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
1210 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
1211 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
1212 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
1213 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
1214 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
1215 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
1216 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
1217 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
1218 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
1219 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
1220 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
1221 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
1222 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
1223 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
1224 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
1225 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
1227 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
1229 2004-04-07 Paolo Carlini <pcarlini@suse.de>
1231 * config/locale/gnu/monetary_members.cc
1232 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
1233 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
1234 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
1235 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
1236 * config/locale/gnu/numeric_members.cc
1237 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
1238 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
1240 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
1242 Fixups for EDG front end.
1243 * include/ext/rope: Instead of non-existent function
1244 _Data_allocate, use allocator's allocate. Use this.
1245 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
1246 enumerations from _Rope_RopeRep here.
1247 * include/ext/ropeimpl.h: Same.
1248 * src/ext-inst.cc (_S_min_len): Fix up definition.
1250 * config/locale/gnu/ctype_members.cc: Qualify base class members
1252 * config/locale/generic/ctype_members.cc: Same.
1253 * config/locale/gnu/messages_members.h: Same.
1254 * config/locale/generic/messages_members.h: Same.
1255 * src/ctype.cc: Same.
1256 * include/bits/codecvt.h: Same.
1258 * include/bits/boost_concept_check.h: Declare.
1259 (__error_type_must_be_an_unsigned_integer_type): Remove this.
1260 (__error_type_must_be_an_integer_type): Remove this.
1261 (__error_type_must_be_a_signed_integer_type): Remove this.
1263 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
1265 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
1266 specification to definition.
1267 (__cxa_allocate_exception): Same.
1268 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
1269 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
1270 (__cxa_get_globals): Same.
1272 * libsupc++/del_op.cc: Add comment about freestanding.
1274 2004-04-05 Paolo Carlini <pcarlini@suse.de>
1276 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1277 The critical section is actually very small, only two assignments.
1279 2004-04-04 Paolo Carlini <pcarlini@suse.de>
1280 Petur Runolfsson <peturr02@ru.is>
1282 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
1283 adapted from libstdc++/11378.
1285 2004-04-03 Paolo Carlini <pcarlini@suse.de>
1287 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
1288 some duplicated code.
1289 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
1290 in the single threaded case.
1291 * testsuite/performance/20_util/allocator/list_sort_search.cc:
1292 Reorder and renumber the tests consistently with the other testfiles.
1293 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1294 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1295 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1297 2004-04-02 Paolo Carlini <pcarlini@suse.de>
1299 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1300 Rearrange arithmetic to avoid computing two divisions at
1303 2004-04-01 Paolo Carlini <pcarlini@suse.de>
1305 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
1306 Streamline the second half, wrapping it in a single
1307 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
1308 conditionals inside loops.
1310 2004-04-01 Paolo Carlini <pcarlini@suse.de>
1313 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
1314 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
1315 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
1316 to _GLIBCXX_RES_LIMITS.
1317 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
1319 * testsuite/testsuite_hooks.h: Declare set_file_limit.
1320 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
1321 and setrlimit(RLIMIT_FSIZE).
1322 * testsuite/27_io/fpos/14775.cc: New.
1323 * config.h.in: Regenerate.
1324 * configure: Likewise.
1326 2004-03-31 Paolo Carlini <pcarlini@suse.de>
1328 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
1329 In v3 uses of sscanf, the special floating-point numbers INF,
1330 INFINITY, etc., cannot occur in input, therefore, if the latter
1331 is too large, ERANGE is always stored in errno, no need of finitel.
1333 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
1336 * include/bits/stl_tree.h: Adjust initialization list order.
1338 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
1340 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
1342 2004-03-29 Paolo Carlini <pcarlini@suse.de>
1344 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
1345 on allocator behavior, the memory pointed by data2 may well be not
1348 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
1351 * include/bits/basic_string.tcc
1352 (basic_string::basic_string(const basic_string&)): Pass to
1353 _Rep::_M_grab the actual allocator of the string being constructed
1354 not the default constructed one.
1356 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
1359 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
1360 (__enc_traits::_M_destroy): New.
1361 (__enc_traits::~__enc_traits): Use it.
1362 (__enc_traits::operator=): Use _M_destroy, _M_init.
1363 (__enc_traits::__enc_traits): Same.
1365 2004-03-27 Petur Runolfsson <peturr02@ru.is>
1367 * testsuite/ext/enc_filebuf/char/13598.cc: New.
1369 2004-03-27 Paolo Carlini <pcarlini@suse.de>
1371 * include/ext/mt_allocator.h: Uglify consistently names of
1372 variables, members and classes; tidy.
1374 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
1376 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1377 Deallocation loop rewrote.
1379 2004-03-26 Paolo Carlini <pcarlini@suse.de>
1381 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1382 __mt_alloc<>::deallocate): Protect two instances of
1383 block->thread_id with __GTHREADS.
1385 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
1387 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
1388 default argument in constructors.
1389 (_Rb_tree::_M_empty_initialize): Remove.
1391 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
1393 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
1394 * testsuite/23_containers/set/operators/1_neg.cc: Same.
1396 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1398 * include/bits/cpp_type_traits.h: Changed __is_pod
1399 completely. Now, it does not use any of the previous type_traits
1400 to detect the pod types, and it also detects function pointers as
1403 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
1404 which encapsulates the internal implementation of an rb_tree. Made
1405 the allocator a base class of this class instead of the rb_tree,
1406 which was not conforming. This _Rb_tree_impl class is also
1407 specialized on whether the _Compare parameter is a POD type or
1408 not. If so, then it maintains the comparison function as a data
1409 member, otherwise it makes the _Compare parameter a base class of
1410 itself. Also, _M_key_compare is now a function instead of a data
1411 member, so that the above trick can work properly. Delegated the
1412 initialization of the other data members to this newly created
1413 class. Also, now other member functions of rb_tree must refer to
1414 _M_key_compare as _M_impl._M_key_compare(). The other data members
1415 (*) can be referenced to as _M_impl.(*), where
1416 (*) includes _M_header, and _M_node_count.
1418 2004-03-25 Paolo Carlini <pcarlini@suse.de>
1420 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
1421 Add _M_min_bin, the size in bytes of the smallest bin.
1422 (__mt_alloc<>::tune()): Tweak accordingly.
1423 (__mt_alloc<>::tune(size_t, ...)): Likewise.
1424 (__mt_alloc<>::block_record): Change to a union: members next
1425 and thread_id are never used at the same time.
1426 (__mt_alloc<>::allocate): Update consistently.
1427 (__mt_alloc<>::deallocate): Likewise.
1428 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
1429 _S_bin_size for the configurable _M_min_size.
1431 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1433 * include/bits/stl_list.h: Created a _List_impl class and made it
1434 derive from the allocator, instead of the list deriving from the
1435 allocator class, which was not conformant. Changed all references
1436 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
1437 as above (changed all references to the concerned variables).
1439 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1441 * include/bits/stl_deque.h: Created a _Deque_impl class and made
1442 it derive from the allocator, instead of the deque deriving from
1443 the allocator class, which was not conformant. Changed all
1444 references to the _M_start, _M_finish, _M_map, and _M_map_size to
1446 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
1447 qualification in 2 places where it was missing.
1448 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
1450 * include/bits/deque.tcc: Same as above (changed all references to
1451 the concerned variables).
1453 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1455 * include/bits/stl_vector.h: Created a _Vector_impl class and made
1456 it derive from the allocator, instead of the _Vector_base class,
1457 deriving from the allocator which was not conformant. Changed all
1458 references to the _M_start, _M_finish, and _M_end_of_storage to
1460 * include/bits/vector.tcc: Same as above (changed all references
1461 to the concerned variables).
1463 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1465 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
1466 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
1467 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
1469 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
1471 * include/ext/malloc_allocator.h: Fixed the construct function to
1472 call global placement new instead of assignment. Added a check
1473 after the return from malloc to check whether returned pointer is
1474 NULL, and if so, throw std::bad_alloc().
1475 * include/ext/debug_allocator.h: Added a check in the deallocate
1476 function to check whether the user has passed a NULL pointer or
1479 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
1481 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
1483 2004-03-24 Andreas Schwab <schwab@suse.de>
1485 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
1486 warning from IA64 assembler.
1488 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
1490 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
1491 function call __builtin_ctz instead of the while loop.
1492 (allocate) -> If condition has __builtin_expect.
1493 (deallocate) -> Ditto.
1494 Renamed a few left-over variables and typedefs according to the
1495 C++STYLE mentioned in the documentation.
1496 Protected calls to __gthread* by __gthread_active_p(), whose value
1497 is cached in the local variable __threads_active.
1499 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
1501 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1502 Use linear algorithm for producer.
1504 2004-03-24 Paolo Carlini <pcarlini@suse.de>
1506 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1507 __mt_alloc<>::deallocate): Avoid redundant conditionals.
1509 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
1511 * include/bits/locale_facets.h: Tweaks for 80 column.
1512 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
1513 (__moneypunct_cache::_M_cache): Same.
1514 (num_get): Don't inherit from __num_base.
1516 (money_get): Don't inherit from money_base.
1518 (__timepunct::_M_am_pm_format): New.
1519 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
1520 (time_get::_M_extract_name): Same.
1521 (time_get::_M_extract_via_format): Same.
1522 * include/bits/locale_facets.tcc: Tweaks for 80 column.
1523 Use _M_getloc instead of getloc.
1524 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
1525 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
1526 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
1528 2004-03-22 Paolo Carlini <pcarlini@suse.de>
1530 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
1531 * configure: Regenerate.
1532 * config/allocator/pool_allocator_base.h: New.
1533 * include/ext/pool_allocator.h: Convert to a standard-conforming
1535 * src/allocator.cc: Tweak instantiations.
1536 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
1537 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
1538 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
1539 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1540 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1541 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1543 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
1545 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
1546 inline" and attribute-unused. Qualify parameter __mem with
1548 (__exchange_and_add): Ditto. Add back memory clobber to asm.
1550 2004-03-20 Paolo Carlini <pcarlini@suse.de>
1552 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
1554 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
1556 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
1558 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
1560 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
1562 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
1564 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
1566 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
1568 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
1570 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
1573 2004-03-20 Paolo Carlini <pcarlini@suse.de>
1575 * include/std/std_valarray.h: Document DR389 [Ready].
1576 * docs/html/ext/howto.html: Add an entry for DR389.
1578 2004-03-19 Michael Eager <eager@mvista.com>
1580 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
1583 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1585 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
1587 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
1588 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
1589 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
1590 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
1591 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
1592 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
1593 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
1594 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
1595 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
1597 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1598 Petur Runolfsson <peturr02@ru.is>
1601 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
1602 no way to find out the conversion used by the underlying FILE*.
1603 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
1604 * testsuite/27_io/objects/char/9.cc: Tweak.
1606 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1609 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
1610 memory allocation/deallocation calls.
1611 * testsuite/ext/14648.cc: New.
1613 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
1616 * include/backward/bvector.h (bit_vector): Allocator is in std
1619 2004-03-19 Phil Edwards <phil@codesourcery.com>
1621 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
1622 not libiconv. SUBST this variable as well.
1623 * testsuite/Makefile.am (site.exp): New target, based on that
1624 created by automake. Also set libiconv.
1626 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
1627 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1628 testsuite/Makefile.in: Regenerate.
1630 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
1632 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
1633 new_allocator for all hosts.
1634 * configure: Regenerate.
1636 2004-03-16 Paolo Carlini <pcarlini@suse.de>
1638 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
1639 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
1641 2004-03-15 Paolo Carlini <pcarlini@suse.de>
1643 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1644 Adjust the logic underlying the parsing of symbol to deal
1645 correctly with an optional sign component (i.e., when either
1646 negative_sign or positive_sign is empty)
1647 * testsuite/22_locale/money_get/get/char/19.cc: New.
1648 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
1650 2004-03-15 Paolo Carlini <pcarlini@suse.de>
1652 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1653 Do not accept an incomplete currency symbol.
1654 * testsuite/22_locale/money_get/get/char/18.cc: New.
1655 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
1657 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
1659 * config/allocator: New.
1660 * config/allocator/bitmap_allocator_base.h: New.
1661 * config/allocator/malloc_allocator_base.h: New.
1662 * config/allocator/mt_allocator_base.h: New.
1663 * config/allocator/new_allocator_base.h: New.
1664 * include/bits/allocator.h: Include c++allocator.h.
1665 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
1666 * aclocal.m4: Regenerate.
1667 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
1668 * configure: Regenerate.
1669 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
1670 * include/Makefile.in: Regenerate.
1671 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
1673 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
1675 * include/bits/allocator.h: Revert.
1677 2004-03-12 Paolo Carlini <pcarlini@suse.de>
1679 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
1680 * include/bits/gslice_array.h: Add comment about DR 253.
1681 * include/bits/indirect_array.h: Likewise.
1682 * include/bits/mask_array.h: Likewise.
1683 * include/bits/slice_array.h: Likewise.
1685 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
1687 * testsuite/20_util/allocator/14176.cc: New.
1688 * include/ext/mt_allocator.h: Formatting fixes.
1690 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
1692 * include/Makefile.am (ext_headers): Add
1693 ${ext_srcdir}/bitmap_allocator.h .
1694 * include/Makefile.in: Regenerate.
1695 * docs/html/ext/ballocator_doc.txt: New file.
1696 * include/ext/bitmap_allocator.h: New file.
1697 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
1699 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1700 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
1701 test for the bitmap_allocator<>.
1702 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
1703 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1704 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1706 2004-03-11 Paolo Carlini <pcarlini@suse.de>
1708 * include/std/std_complex.h (pow(const complex&, const _Tp&),
1709 pow(const _Tp&, const complex&), pow(const complex&,
1710 const complex&)): Fully qualify with std:: a few calls.
1711 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
1713 2004-03-11 Steven Bosscher <stevenb@suse.de>
1716 * include/c_std/cmath.tcc (__cmath_power): Define inline.
1718 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
1720 * configure.ac: Bump AC_PREREQ to 2.59.
1722 2004-03-10 Paolo Carlini <pcarlini@suse.de>
1724 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
1726 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
1727 Paolo Carlini <pcarlini@suse.de>
1730 * include/std/std_complex.h (pow(const complex&, const _Tp&),
1731 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
1732 * testsuite/26_numerics/complex/13450.cc: New.
1734 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
1735 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
1737 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
1740 * include/bits/gslice_array.h (gslice_array()): Make public.
1741 (operator=(gslice_array)): Make public. Implement.
1742 * include/bits/indirect_array.h (indirect_array()): Make public.
1743 * include/bits/mask_array.h (mask_array()): Make public.
1744 (operator=(mask_array)): Make public. Implement.
1745 * include/bits/valarray_array.tcc (__valarray_copy):
1746 Comment. Add versions for gslice_array and mask_array.
1747 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
1749 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
1751 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
1753 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
1754 * testsuite/23_containers/set/modifiers/swap.cc: Same.
1755 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1756 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1757 * testsuite/23_containers/map/modifiers/swap.cc: Same.
1758 * testsuite/23_containers/list/modifiers/swap.cc: Same.
1760 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
1762 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
1765 * testsuite/23_containers/deque/modifiers/swap.cc: New.
1766 * testsuite/23_containers/list/modifiers/swap.cc: New.
1767 * testsuite/23_containers/map/modifiers/swap.cc: New.
1768 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
1769 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
1770 * testsuite/23_containers/set/modifiers/swap.cc: New.
1771 * testsuite/23_containers/vector/modifiers/swap.cc: New.
1773 2004-03-08 Petur Runolfsson <peturr02@ru.is>
1776 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
1778 2004-03-08 Paolo Carlini <pcarlini@suse.de>
1780 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
1781 * include/bits/stl_multiset.h: Add comment about DR 103.
1782 * include/bits/stl_set.h: Likewise.
1784 2004-03-08 Paolo Carlini <pcarlini@suse.de>
1786 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1787 The value _space_ indicates that at least one space is required
1789 * testsuite/22_locale/money_get/get/char/17.cc: New.
1790 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
1792 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
1793 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
1795 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
1796 Remove redundant conditional on __str.size().
1798 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
1800 * include/bits/allocator.h: Switch defaults to mt_alloc.
1802 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
1804 * include/ext/mt_allocator.h (_S_initialize): If
1805 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
1807 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
1810 * src/locale_init.cc (locale::locale): Lock critical regions with
1812 (locale::global): Same.
1813 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
1814 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
1815 (__glibcxx_mutex_lock): Same.
1817 * config/cpu/generic/atomicity.h: Remove
1818 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
1819 * src/misc-inst.cc: Move all locking bits out of this file.
1821 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
1822 * src/misc-inst.cc: Same.
1823 * config/cpu/hppa/atomicity.h: Same.
1825 * config/linker-map.gnu: Remove types in the signature of atomic
1826 exports, as they may vary.
1828 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1830 * include/bits/locale_facets.tcc: Tweak the comment preceding
1831 has_facet: doesn't throw.
1833 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1835 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
1836 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
1837 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
1838 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
1839 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
1840 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
1841 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
1842 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
1844 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1846 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1847 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
1848 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
1849 * testsuite/testsuite_character.h (struct __gnu_test::character):
1851 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
1854 2004-03-05 Paolo Carlini <pcarlini@suse.de>
1856 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
1858 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
1860 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
1862 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
1864 * testsuite/23_containers/deque/invalidation/4.cc: Same.
1865 * testsuite/23_containers/list/invalidation/1.cc: Same.
1866 * testsuite/23_containers/list/invalidation/2.cc: Same.
1867 * testsuite/23_containers/list/invalidation/3.cc: Same.
1868 * testsuite/23_containers/list/invalidation/4.cc: Same.
1869 * testsuite/23_containers/map/invalidation/2.cc: Same.
1870 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
1871 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1872 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
1873 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1874 * testsuite/23_containers/set/invalidation/1.cc: Same.
1875 * testsuite/23_containers/set/invalidation/2.cc: Same.
1876 * testsuite/23_containers/vector/invalidation/1.cc: Same.
1877 * testsuite/23_containers/vector/invalidation/2.cc: Same.
1878 * testsuite/23_containers/vector/invalidation/3.cc: Same.
1879 * testsuite/23_containers/vector/invalidation/4.cc: Same.
1881 2004-03-04 Paolo Carlini <pcarlini@suse.de>
1883 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
1885 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
1887 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
1888 from the dg-options.
1889 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
1890 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
1891 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
1892 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
1893 * testsuite/23_containers/vector/resize/1.cc: Likewise.
1894 * testsuite/26_numerics/complex_value.cc: Likewise.
1895 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
1896 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1897 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
1898 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1899 * testsuite/27_io/objects/char/5.cc: Likewise.
1900 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
1901 * testsuite/backward/11460.cc: Likewise.
1902 * testsuite/thread/pthread7-rope.cc: Likewise.
1904 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
1905 missing test variable.
1906 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
1907 missing test variable.
1909 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
1911 * testsuite/20_util/allocator/1.cc: Provide explicit
1912 instantiations for non-weak systems.
1913 * testsuite/20_util/binders.cc: Same.
1914 * testsuite/20_util/allocator/8230.cc: Same.
1915 * testsuite/20_util/allocator/10378.cc: Same.
1916 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
1917 * testsuite/22_locale/ctype/is/char/2.cc: Same.
1918 * testsuite/thread/pthread7-rope.cc: Same.
1919 * testsuite/thread/pthread6.cc: Same.
1920 * testsuite/thread/pthread5.cc: Same.
1921 * testsuite/thread/pthread4.cc: Same.
1922 * testsuite/thread/pthread1.cc: Same.
1923 * testsuite/ext/rope.cc: Same.
1924 * testsuite/ext/hash_set.cc: Same.
1925 * testsuite/ext/hash_map.cc: Same.
1926 * testsuite/ext/concept_checks.cc: Same.
1927 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
1928 * testsuite/25_algorithms/unique/2.cc: Same.
1929 * testsuite/25_algorithms/unique/1.cc: Same.
1930 * testsuite/25_algorithms/rotate.cc: Same.
1931 * testsuite/25_algorithms/min_max.cc: Same.
1932 * testsuite/25_algorithms/equal.cc: Same.
1933 * testsuite/24_iterators/rel_ops.cc: Same.
1934 * testsuite/24_iterators/iterator.cc: Same.
1935 * testsuite/24_iterators/insert_iterator.cc: Same.
1936 * testsuite/24_iterators/front_insert_iterator.cc: Same.
1937 * testsuite/24_iterators/back_insert_iterator.cc: Same.
1938 * testsuite/23_containers/vector/resize/1.cc: Same.
1939 * testsuite/23_containers/vector/modifiers/2.cc: Same.
1940 * testsuite/23_containers/vector/modifiers/1.cc: Same.
1941 * testsuite/23_containers/vector/invalidation/4.cc: Same.
1942 * testsuite/23_containers/vector/invalidation/3.cc: Same.
1943 * testsuite/23_containers/vector/invalidation/2.cc: Same.
1944 * testsuite/23_containers/vector/invalidation/1.cc: Same.
1945 * testsuite/23_containers/vector/element_access/1.cc: Same.
1946 * testsuite/23_containers/vector/cons/6513.cc: Same.
1947 * testsuite/23_containers/vector/cons/3.cc: Same.
1948 * testsuite/23_containers/vector/cons/2.cc: Same.
1949 * testsuite/23_containers/vector/cons/1.cc: Same.
1950 * testsuite/23_containers/vector/capacity/8230.cc: Same.
1951 * testsuite/23_containers/vector/capacity/1.cc: Same.
1952 * testsuite/23_containers/vector/bool/6886.cc: Same.
1953 * testsuite/23_containers/stack/members/7158.cc: Same.
1954 * testsuite/23_containers/set/invalidation/2.cc: Same.
1955 * testsuite/23_containers/set/invalidation/1.cc: Same.
1956 * testsuite/23_containers/queue/members/7157.cc: Same.
1957 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
1958 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1959 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1960 * testsuite/23_containers/multiset/insert/1.cc: Same.
1961 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1962 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1963 * testsuite/23_containers/map/operators/1.cc: Same.
1964 * testsuite/23_containers/map/invalidation/2.cc: Same.
1965 * testsuite/23_containers/map/invalidation/1.cc: Same.
1966 * testsuite/23_containers/map/insert/1.cc: Same.
1967 * testsuite/23_containers/list/operators/4.cc: Same.
1968 * testsuite/23_containers/list/operators/3.cc: Same.
1969 * testsuite/23_containers/list/operators/2.cc: Same.
1970 * testsuite/23_containers/list/operators/1.cc: Same.
1971 * testsuite/23_containers/list/modifiers/3.cc: Same.
1972 * testsuite/23_containers/list/modifiers/2.cc: Same.
1973 * testsuite/23_containers/list/modifiers/1.cc: Same.
1974 * testsuite/23_containers/list/invalidation/4.cc: Same.
1975 * testsuite/23_containers/list/invalidation/3.cc: Same.
1976 * testsuite/23_containers/list/invalidation/2.cc: Same.
1977 * testsuite/23_containers/list/invalidation/1.cc: Same.
1978 * testsuite/23_containers/list/cons/9.cc: Same.
1979 * testsuite/23_containers/list/cons/8.cc: Same.
1980 * testsuite/23_containers/list/cons/7.cc: Same.
1981 * testsuite/23_containers/list/cons/6.cc: Same.
1982 * testsuite/23_containers/list/cons/5.cc: Same.
1983 * testsuite/23_containers/list/cons/4.cc: Same.
1984 * testsuite/23_containers/list/cons/3.cc: Same.
1985 * testsuite/23_containers/list/cons/2.cc: Same.
1986 * testsuite/23_containers/list/cons/1.cc: Same.
1987 * testsuite/23_containers/list/capacity/1.cc: Same.
1988 * testsuite/23_containers/deque/operators/1.cc: Same.
1989 * testsuite/23_containers/deque/invalidation/4.cc: Same.
1990 * testsuite/23_containers/deque/invalidation/3.cc: Same.
1991 * testsuite/23_containers/deque/invalidation/2.cc: Same.
1992 * testsuite/23_containers/deque/invalidation/1.cc: Same.
1993 * testsuite/23_containers/deque/cons/2.cc: Same.
1994 * testsuite/23_containers/deque/cons/1.cc: Same.
1996 * src/allocator.cc: Add char, wchar_t instantiations
1997 to match extern template declarations in memory.h.
1999 2004-03-03 Paolo Carlini <pcarlini@suse.de>
2001 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2002 Fix warning regression.
2004 2004-03-03 Paolo Carlini <pcarlini@suse.de>
2006 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2007 Deal properly with empty __digits and negative frac_digits,
2010 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
2012 * docs/html/documentation.html: Regenerate.
2014 2004-03-02 Paolo Carlini <pcarlini@suse.de>
2017 * include/bits/postypes.h (class streamoff): Remove, now
2018 streamoff is just typedef a 64 bit signed integer type.
2019 (class fpos): Tweak consistently.
2020 * testsuite/27_io/fpos/14320-1.cc: New.
2021 * testsuite/27_io/fpos/14320-2.cc: New.
2022 * testsuite/27_io/fpos/14320-3.cc: New.
2023 * testsuite/27_io/fpos/14320-4.cc: New.
2024 * testsuite/27_io/fpos/14320-5.cc: New.
2025 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
2027 2004-03-02 Paolo Carlini <pcarlini@suse.de>
2029 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2030 Reorganize a bit the main parsing loop, thus early detecting
2031 an empty value component.
2032 * testsuite/22_locale/money_get/get/char/16.cc: New.
2033 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
2035 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
2037 Support automake 1.8.2
2038 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
2039 * po/Makefile.am (EXTRA_DIST): New.
2040 * po/Makefile.in: Regenerate.
2041 * Makefile.in: Same.
2042 * include/Makefile.in: Same.
2043 * libmath/Makefile.in: Same.
2044 * libsupc++/Makefile.in: Same.
2045 * src/Makefile.in: Same.
2046 * testsuite/Makefile.in: Same.
2048 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
2049 __GXX_WEAK__ instead of SUPPORTS_WEAK.
2050 (${host_builddir}/gthr-default.h): Same.
2051 (${host_builddir}/gthr.h): Same.
2052 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
2053 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
2055 * aclocal.m4: Regenerate.
2056 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
2057 * config.h.in: Regenerate.
2060 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
2062 Support autoconf 2.59
2063 * acinclude.m4: Quote correctly.
2064 * aclocal.m4: Regenerate.
2067 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
2069 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
2071 * docs/html/18_support/howto.html: Add bit about writing to
2072 stderr, mostly by Zack.
2074 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2076 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2077 money_get<>::do_get(string_type&)): ... and two more.
2079 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2081 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2082 Fix thinkos in the switch from string_type& to string& as last
2085 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2087 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2088 Also when parsing exponent sign, first look for thousands_sep
2089 and decimal_point; tweak a bit.
2090 * testsuite/22_locale/num_get/get/char/15.cc: New.
2091 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
2093 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2094 num_get<>::_M_extract_int): Reorder some conditionals.
2096 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2098 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2099 Consistently with numpunct, enforce the requirements in
2100 22.2.6.3, p3 for the thousands separators; tweak a bit.
2101 * testsuite/22_locale/money_get/get/char/15.cc: New.
2102 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
2104 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
2106 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
2107 testsuite_files from correct multilib blddir when running
2110 2004-02-29 Phil Edwards <phil@codesourcery.com>
2112 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
2113 the summary file to the logfile.
2114 * testsuite/Makefile.in: Regenerate.
2116 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2118 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
2120 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
2121 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
2123 2004-02-28 Paolo Carlini <pcarlini@suse.de>
2125 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2126 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
2127 no 'decimal-point' in the middle: in this case too we must fix
2128 up __found_grouping; slightly tweak.
2129 * testsuite/22_locale/num_get/get/char/14.cc: New.
2130 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
2132 2004-02-27 Eric Christopher <echristo@redhat.com>
2133 Phil Edwards <phil@codesourcery.com>
2135 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
2136 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
2137 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
2138 testsuite/22_locale/collate/hash/wchar_t/2.cc,
2139 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
2140 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
2141 testsuite/22_locale/collate/transform/wchar_t/2.cc,
2142 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
2143 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2144 Use dg-require-iconv.
2145 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
2147 2004-02-27 Phil Edwards <phil@codesourcery.com>
2148 Eric Christopher <echristo@redhat.com>
2150 * testsuite/config/default.exp: Update with comments.
2151 (${tool}_target_compile): New wrapper routine.
2152 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
2153 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
2155 (load_gcc_lib, v3track): New routines.
2156 (v3-init): Rename to libstdc++_init.
2157 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
2158 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
2160 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
2162 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
2164 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
2166 * config/os/irix/irix5.2/atomicity.h: Merge..
2167 * config/os/irix/irix6.5/atomicity.h: Merge..
2168 * config/os/irix/atomicity.h: ...into this.
2169 * config/os/irix/atomic_word.h: New.
2170 * configure.host: Set atomic_word_dir for irix.
2172 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
2173 * i386/atomicity.h: Same.
2174 * m68k/atomicity.h: Same.
2175 * sparc/atomicity.h: Same.
2177 2004-02-27 David Edelsohn <edelsohn@gnu.org>
2179 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
2180 static, and inline keywords.
2182 2004-02-27 Paolo Carlini <pcarlini@suse.de>
2184 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2185 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
2186 call reserve on the __tmp_gruping string.
2187 (num_get<>::_M_extract_float): Don't append unnecessarily a
2188 char() to the returned string.
2189 * include/bits/locale_facets.tcc: Trivial reformattings.
2191 2004-02-27 Paolo Carlini <pcarlini@suse.de>
2193 * include/bits/locale_facets.h (money_get<>::_M_extract):
2194 Change signature: now takes a plain string&.
2195 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2196 Update consistently the definition; use the moneypunct cache
2197 to parse the value; use swap to change __units.
2198 (money_get<>::do_get(long double&)): Update call of _M_extract,
2199 avoid ctype::narrow, not correct wrt the standard.
2200 (money_get<>::do_get(string_type&)): Likewise, update call
2201 of _M_extract, use ctype::widen.
2202 * src/locale-inst.cc: Tweak instantiations of _M_extract.
2204 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
2206 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
2207 * testsuite/demangle/abi_examples/02.cc: Likewise.
2208 * testsuite/demangle/regression/cw-11.cc: Likewise.
2209 * testsuite/demangle/regression/cw-16.cc: Change two expected
2210 results to match libiberty demangler output.
2212 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
2215 * libsupc++/Makefile.am: Use libiberty demangler.
2216 (c_sources): Add cp-demangle.c.
2217 * libsupc++/Makefile.in: Regenerate.
2218 * src/Makefile.am (sources): Remove demangle.cc.
2219 * src/Makefile.in: Regenerate.
2220 * include/Makefile.am (bits_headers): Move demangle.h.
2221 (ext_headers): ...here.
2222 * include/Makefile.in: Regenerate.
2223 * include/bits/demangle.h: Move...
2224 * include/ext/demangle.h: ...here.
2225 * src/demangle.cc: Remove.
2227 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
2229 * include/bits/demangle.h: Add type template parameter to all
2230 templates with just an Allocator template parameter.
2232 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
2234 * include/bits/atomicity.h: New, forward declarations for __atomic_add
2235 and __exchange_and_add.
2236 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
2237 * config/cpu/cris/atomic_word.h: Same.
2238 * config/cpu/sparc/atomic_word.h: Same.
2239 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
2240 Qualifiy with __gnu_cxx.
2241 (_Callback_list::_M_add_reference): Same.
2242 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
2243 (locale::facet::_M_remove_reference): Same.
2244 (locale::_Impl::_M_add_reference): Add.
2245 (locale::_Impl::_M_remove_reference): Same.
2246 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
2247 (basic_string::_Rep::_M_dispose): Same.
2248 * src/ios.cc (ios_base::xalloc): Same.
2249 * src/ios_init.cc (ios_base::Init::Init): Same.
2250 (ios_base::Init::~Init): Same.
2251 * src/locale.cc (locale::id::_M_id): Same.
2252 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
2253 static, and inline keywords.
2254 * config/cpu/alpha/atomicity.h: Same.
2255 * config/cpu/cris/atomicity.h: Same.
2256 * config/cpu/generic/atomicity.h: Same.
2257 * config/cpu/hppa/atomicity.h: Same.
2258 * config/cpu/i386/atomicity.h: Same.
2259 * config/cpu/ia64/atomicity.h: Same.
2260 * config/cpu/m68k/atomicity.h: Same.
2261 * config/cpu/mips/atomicity.h: Same.
2262 * config/cpu/powerpc/atomicity.h: Same.
2263 * config/cpu/s390/atomicity.h: Same.
2264 * config/cpu/sparc/atomicity.h: Same.
2266 * src/Makefile.am (host_sources): Add atomicity.cc.
2267 (atomicity.cc): New rule.
2268 * src/Makefile.in: Regenerate.
2269 * include/Makefile.am (host_headers): Remove host atomicity.h.
2270 (host_headers): Add atomic_word.h.
2271 (bits_headers): Add bits atomicity.h.
2272 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2273 * include/Makefile.in: Regenerate.
2274 * configure.host (atomic_word_dir): Add.
2275 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
2276 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2277 * configure: Regenerate.
2278 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
2280 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
2281 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2283 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
2285 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
2286 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
2287 Fix markup, more <link> tags.
2289 2004-02-25 Carlo Wood <carlo@alinoe.com>
2292 namespace __gnu_cxx::demangler
2293 (session<Allocator>::qualifier_list_Allocator): Add
2294 (session<Allocator>::M_qualifier_list_alloc): Add
2295 (session<Allocator>::decode_type_with_postfix):
2296 Use M_qualifier_list_alloc instead of calling operator new/delete.
2298 2004-02-24 Paolo Carlini <pcarlini@suse.de>
2301 * include/bits/postypes.h (class streamoff): Add operator++(),
2302 operator++(int), operator--() and operator--(int).
2303 * testsuite/27_io/fpos/14252.cc: New.
2305 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
2307 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
2308 error in handling of hex constants.
2310 2004-02-24 Paolo Carlini <pcarlini@suse.de>
2312 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2313 Prefer basic_string::append to operator+= and a temporary.
2315 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
2317 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
2318 Only use fputs, not write.
2320 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
2322 * include/ext/malloc_allocator.h: Add operators ==, !=.
2323 * include/ext/new_allocator.h: Add operators ==, !=.
2324 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
2325 (__mt_alloc::_S_get_options): New.
2326 (__mt_alloc::_S_set_options): New.
2327 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
2328 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
2329 Move functions out of line, simplify, format.
2330 * src/allocator.cc: Simplify explicit instantiations.
2331 * include/bits/allocator.h: Tweak.
2333 2004-02-22 Paolo Carlini <pcarlini@suse.de>
2335 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2336 Restructure formatting of value component, first dealing with
2337 the non-decimal digits; use reserve.
2339 2004-02-22 Paolo Carlini <pcarlini@suse.de>
2341 * include/bits/locale_facets.h (class money_get): Inherit
2342 from money_base too; tweak declaration of _M_extract, now
2343 parameterized on _Intl too.
2344 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2345 Update definition to use the cache; call reserve on __res to
2346 avoid multiple reallocations; fix parsing of sign component
2347 according to 22.2.6.1.2, p3.
2348 (money_get<>::do_get(long double&),
2349 money_get<>::do_get(string_type&)): Update calls of _M_extract.
2350 * src/locale-inst.cc: Add instantiations of
2351 money_get::_M_extract<false> and money_get::_M_extract<true>.
2352 * testsuite/22_locale/money_get/get/char/14.cc: New.
2353 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
2355 2004-02-21 Mark Mitchell <mark@codesourcery.com>
2357 * libsupc++/vterminate.cc
2358 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
2360 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
2362 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2363 not set RLIMIT_AS on HP-UX.
2365 2004-02-21 Mark Mitchell <mark@codesourcery.com>
2367 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2368 not set RLIMIT_AS on HP-UX.
2370 2004-02-21 Paolo Carlini <pcarlini@suse.de>
2372 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
2373 _S_zero, _S_end } enum, _S_atoms.
2374 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
2375 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
2376 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
2377 (__moneypunct_cache<>::~__moneypunct_cache): Update.
2378 (__moneypunct_cache<>::_M_cache): Fill the cache.
2379 (class moneypunct): Tweak __cache_type typedef.
2380 (class money_put): Inherit from money_base too; tweak declaration
2381 of _M_insert, now parameterized on _Intl.
2382 * include/bits/locale_facets.tcc
2383 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
2384 (money_put<>::_M_insert): Update definition to use the cache;
2385 call reserve on __res to avoid multiple reallocations.
2386 (money_put<>::do_put(long double),
2387 money_put<>::do_put(const string_type&): Update calls of _M_insert.
2388 * config/locale/generic/monetary_members.cc
2389 (moneypunct<char, true>::_M_initialize_moneypunct,
2390 moneypunct<char, false>::_M_initialize_moneypunct,
2391 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
2392 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
2393 * config/locale/gnu/monetary_members.cc: Likewise.
2394 * config/locale/gnu/monetary_members.cc
2395 (moneypunct<wchar_t, true>::~moneypunct(),
2396 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
2397 * src/globals_locale.cc: Tweak fake_money_cache_c.
2398 * src/locale-inst.cc: Add instantiations for
2399 money_put::_M_insert<false> and money_put::_M_insert<true> and
2400 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
2401 * src/locale_facets.cc: Define money_base::_S_atoms.
2402 * src/locale_init.cc: Update placement new of
2403 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
2404 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
2406 * config/locale/generic/numeric_members.cc: Clean up.
2407 * config/locale/gnu/numeric_members.cc: Likewise.
2408 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
2409 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
2410 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
2411 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
2412 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
2413 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
2415 2004-02-20 Mark Mitchell <mark@codesourcery.com>
2417 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
2418 FIFO for writing with ios_base::in|ios_base::out.
2419 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
2420 * testsuite/27_io/objects/char/7.cc: Likewise.
2421 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
2424 2004-02-19 David Edelsohn <edelsohn@gnu.org>
2426 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
2427 from iso-8859-1 to ISO8859-1.
2428 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
2429 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
2430 * 22_locale/collate/hash/wchar_t/2.cc: Same.
2431 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
2432 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
2433 * 22_locale/collate/transform/wchar_t/2.cc: Same.
2434 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
2435 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
2437 2004-02-18 Paolo Carlini <pcarlini@suse.de>
2439 * include/bits/locale_facets.h (money_get<>::_M_extract):
2440 New, helper for do_get.
2441 (money_put<>::_M_insert): Likewise, for do_put.
2442 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2443 money_put<>::_M_insert): Define.
2444 (money_get<>::do_get(long double&), money_get<>::do_get(
2445 string_type&), money_put::do_put(long double),
2446 money_put::do_put(const string_type&)): Use the helpers.
2448 2004-02-18 Paolo Carlini <pcarlini@suse.de>
2450 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2451 Rewrite, avoiding recursion.
2452 (__gnu_internal::xwrite): Minor tweaks.
2454 2004-02-17 Stefan Olsson <stefan@xapa.se>
2456 * include/ext/mt_allocator.h: Removed the last
2457 pointer. Deallocated blocks are now added to the front of
2458 freelists as proposed by Felix Yen. This gives roughly 10%
2459 performance boost and saves some memory.
2460 * docs/html/ext/mt_allocator.html: Change due to that deallocated
2461 blocks now are added to the front of freelists. The reason to this
2462 approach is also explained.
2464 2004-02-17 Paolo Carlini <pcarlini@suse.de>
2466 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2467 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
2468 grouping fidelity conditional.
2470 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2472 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
2473 Qualify exception with std::.
2474 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
2475 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2476 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2477 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2478 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2480 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2482 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
2483 for now that the catch block is not reached.
2484 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
2486 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2488 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2489 Fix parsing of the remaining sign characters.
2490 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
2491 the input is scanned 'til eof.
2492 * 22_locale/money_get/get/char/4.cc: Likewise.
2493 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
2494 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
2495 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
2496 not do_pos_format: the former is the only one that matters during
2498 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
2500 * 22_locale/money_get/get/char/6.cc: Minor tweak.
2501 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
2503 2004-02-15 David Asher <david.asher@cavium.com>
2506 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
2507 access __olds beyond __oldlen.
2509 2004-02-14 Paolo Carlini <pcarlini@suse.de>
2511 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
2512 sure the exception is actually thrown.
2513 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2514 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2515 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2517 2004-02-14 Paolo Carlini <pcarlini@suse.de>
2520 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
2521 In case of conversion errors, throw ios_failure; simplify.
2522 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
2523 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2524 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
2525 previously we didn't throw in case of conversion errors, instead
2526 just returned eof().
2527 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2528 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2529 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2531 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
2532 Trivial simplification of a conditional.
2534 2004-02-12 Paolo Carlini <pcarlini@suse.de>
2536 PR libstdc++/13731 (final part: writev)
2537 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2538 New, a wrapper around writev() handling partial writes.
2539 (__basic_file<char>::xwrite): Move to __gnu_internal and make
2541 (__basic_file<char>::xsputn): Update call.
2542 (__basic_file<char>::xsputn_2): Likewise.
2543 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2544 Don't declare, now static.
2546 2004-02-11 Stefan Olsson <stefan@xapa.se>
2548 * docs/html/ext/mt_allocator.html: New.
2550 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
2552 * docs/html/20_util/allocator.html: New file, consolidate
2553 allocator information here. Revamp.
2554 * docs/html/documentation.html: Change links.
2555 * docs/html/20_util/howto.html: Same.
2556 * docs/html/ext/howto.html: Same.
2558 2004-02-11 Paolo Carlini <pcarlini@suse.de>
2560 PR libstdc++/13731 (first part: write)
2561 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2563 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
2564 Define it: a wrapper around write() handling partial write.
2565 (__basic_file<char>::xsputn): Use it.
2566 (__basic_file<char>::xsputn_2): Likewise.
2568 2004-02-11 Paolo Carlini <pcarlini@suse.de>
2569 Petur Runolfsson <peturr02@ru.is>
2572 * include/std/std_istream.h (operator>>(__istream_type& (*)
2573 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
2574 operator>>(ios_base& (*)(ios_base&))): Declare inline.
2575 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
2576 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
2577 operator<<(ios_base& (*) (ios_base&))): Likewise.
2578 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
2580 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
2583 * config/linker-map.gnu: Add typeinfo and typeinfo name for
2584 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
2587 * config/linker-map.gnu: Add typeinfo and typeinfo name for
2588 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
2590 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
2592 * include/ext/pool_allocator.h: Include c++config.h.
2594 2004-02-09 Stefan Olsson <stefan@xapa.se>
2596 * include/ext/mt_allocator.h: thread_id is unused in non threaded
2597 applications and now has a ifdef to remove it completely on
2598 compilers without thread support. Include stdlib.h due to a
2599 compiler warning on getenv().
2601 2004-02-09 Paul Brook <paul@codesourcery.com>
2603 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
2605 2004-02-09 Paolo Carlini <pcarlini@suse.de>
2608 * src/locale_init.cc (locale::global(const locale&)): Use
2609 locale::name() in order to decide whether calling setlocale.
2610 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
2612 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
2613 Avoid computing &= unnecessarily.
2615 2004-02-09 James E Wilson <wilson@specifixinc.com>
2618 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
2619 __builtin_extend_pointer.
2621 2004-02-09 Paolo Carlini <pcarlini@suse.de>
2624 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
2625 Don't leave dangling pointers.
2626 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
2627 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
2628 facet is needed in the final test.
2630 2004-02-09 Bernardo Innocenti <bernie@develer.com>
2632 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
2633 * configure: Regenerate.
2635 2004-02-08 Richard Henderson <rth@redhat.com>
2638 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
2639 uncaughtExceptions during nested catch rethrow.
2640 * testsuite/18_support/14026.cc: New.
2642 2004-02-08 Paolo Carlini <pcarlini@suse.de>
2644 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
2645 When working in place remember to set the state to sharable
2646 (otherwise, _M_mutate does it).
2648 2004-02-08 Bernardo Innocenti <bernie@develer.com>
2650 * include/bits/allocator.h, include/bits/basic_ios.h,
2651 include/bits/basic_ios.tcc, include/bits/basic_string.h,
2652 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
2653 include/bits/char_traits.h, include/bits/codecvt.h,
2654 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
2655 include/bits/demangle.h, include/bits/deque.tcc,
2656 include/bits/fstream.tcc, include/bits/functexcept.h,
2657 include/bits/gslice.h, include/bits/gslice_array.h,
2658 include/bits/indirect_array.h, include/bits/ios_base.h,
2659 include/bits/istream.tcc, include/bits/list.tcc,
2660 include/bits/locale_classes.h, include/bits/locale_facets.h,
2661 include/bits/locale_facets.tcc, include/bits/localefwd.h,
2662 include/bits/mask_array.h, include/bits/ostream.tcc,
2663 include/bits/postypes.h, include/bits/slice_array.h,
2664 include/bits/sstream.tcc, include/bits/stl_algo.h,
2665 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
2666 include/bits/stl_construct.h, include/bits/stl_deque.h,
2667 include/bits/stl_function.h, include/bits/stl_heap.h,
2668 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
2669 include/bits/stl_list.h, include/bits/stl_map.h,
2670 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
2671 include/bits/stl_numeric.h, include/bits/stl_pair.h,
2672 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
2673 include/bits/stl_relops.h, include/bits/stl_set.h,
2674 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
2675 include/bits/stl_threads.h, include/bits/stl_tree.h,
2676 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
2677 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
2678 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
2679 include/bits/type_traits.h, include/bits/valarray_after.h,
2680 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
2681 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
2682 trailing whitespace.
2684 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2686 * include/bits/basic_string.h: Fix comment.
2688 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2690 * include/bits/stl_construct.h: Wrap overlong lines, reformat
2691 according to the coding standards.
2692 * include/bits/stl_pair.h: Likewise.
2693 * include/bits/stl_raw_storage_iter.h: Likewise.
2694 * include/bits/stl_stack.h: Likewise.
2695 * include/bits/stl_uninitialized.h: Likewise.
2696 * include/bits/stream_iterator.h: Likewise.
2697 * include/bits/streambuf_iterator.h: Likewise.
2698 * include/bits/type_traits.h: Likewise.
2700 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2702 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2705 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
2707 * scripts/check_performance: Support PCH.
2709 * scripts/check_performance (CXX): Add -DNOTHREAD.
2710 * testsuite/performance/20_util/allocator/insert.cc: Integrate
2711 threaded tests from insert_insert.cc. Tweak iterations,
2712 remove special cases.
2713 * testsuite/performance/20_util/allocator/insert_insert.cc:
2714 Make all tests single-threaded. Tweak iterations.
2715 * testsuite/performance/20_util/allocator/map_thread.cc:
2717 * testsuite/performance/20_util/allocator/producer_consumer.cc:
2720 2004-02-05 Geoffrey Keating <geoffk@apple.com>
2724 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
2725 'gcc-lib'. Add comment about poorly-named variables.
2726 * aclocal.m4: Regenerate.
2727 * configure: Regenerate.
2729 2004-02-05 Paolo Carlini <pcarlini@suse.de>
2731 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2732 Thousands-sep are always optional; thousands-sep are not allowed
2733 after the decimal_point.
2734 * testsuite/22_locale/money_get/get/char/12.cc: New.
2735 * testsuite/22_locale/money_get/get/char/13.cc: New.
2736 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
2737 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
2739 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
2740 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2741 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2742 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2743 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2744 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2745 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2746 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2748 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
2750 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
2752 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
2754 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
2756 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
2757 it to decide whether FIONREAD should take an off_t or int argument.
2759 2004-02-05 Paolo Carlini <pcarlini@suse.de>
2761 * include/bits/stl_function.h: Minor formatting changes.
2763 2004-02-04 Zack Weinberg <zack@codesourcery.com>
2765 Revert previous change to config/abi/*/baseline_symbols.txt.
2767 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
2768 Zack Weinberg <zack@codesourcery.com>
2770 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
2772 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
2773 (__basic_file<char>::_M_open_mode): Delete.
2774 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
2776 * testsuite/27_io/basic_filebuf/close/char/9964.cc
2777 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2778 Correct flags to filebuf::open calls.
2780 * config/abi/alpha-freebsd5/baseline_symbols.txt
2781 * config/abi/alpha-linux-gnu/baseline_symbols.txt
2782 * config/abi/hppa-linux-gnu/baseline_symbols.txt
2783 * config/abi/i386-freebsd4/baseline_symbols.txt
2784 * config/abi/i386-freebsd5/baseline_symbols.txt
2785 * config/abi/i486-linux-gnu/baseline_symbols.txt
2786 * config/abi/ia64-linux-gnu/baseline_symbols.txt
2787 * config/abi/mips-linux-gnu/baseline_symbols.txt
2788 * config/abi/sparc-freebsd5/baseline_symbols.txt
2789 * config/abi/sparc-linux-gnu/baseline_symbols.txt
2790 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
2791 Remove entry for __basic_file<char>::_M_open_mode.
2793 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
2795 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
2797 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
2799 * testsuite/performance/20_util/producer_consumer.cc: New.
2800 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
2802 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
2804 * testsuite/performance/20_util/allocator.cc: Move to..
2805 * testsuite/performance/20_util/allocator/insert.cc: ...here.
2806 * testsuite/performance/20_util/allocator_thread.cc: Move to...
2807 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
2808 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
2809 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
2811 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
2813 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
2814 * docs/html/faq/index.txt: Regenerate.
2816 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
2818 * include/ext/debug_allocator.h: _M_extra now stands for the
2819 number of extra objects instead of the number of extra bytes.
2820 (debug_allocator::allocate): Adjust.
2821 (debug_allocator::deallocate): Adjust.
2823 * include/ext/pool_allocator.h: Fix typo.
2825 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
2826 Benjamin Kosnik <bkoz@redhat.com>
2828 * testsuite/performance/20_util/allocator.cc: Add map,
2830 * testsuite/performance/20_util/allocator_thread.cc: Same.
2832 2004-02-03 Paolo Carlini <pcarlini@suse.de>
2834 * include/bits/basic_string.h (insert(iterator)): Remove,
2835 non-standard and already scheduled for removal.
2837 2004-02-03 Paolo Carlini <pcarlini@suse.de>
2839 * include/bits/stl_iterator_base_funcs.h: Minor formatting
2840 and indentation tweaks.
2841 * include/bits/stl_iterator_base_types.h: Likewise.
2842 * include/bits/stl_list.h: Likewise.
2843 * include/bits/stl_map.h: Likewise.
2844 * include/bits/stl_tempbuf.h: Likewise.
2846 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
2848 * include/bits/gslice.h, include/bits/gslice_array.h,
2849 include/bits/indirect_array.h, include/bits/mask_array.h,
2850 include/bits/slice_array.h, include/bits/stl_numeric.h,
2851 include/std/std_valarray.h: Update copyright years.
2853 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
2855 * include/bits/gslice.h (gslice): Document.
2856 * include/bits/gslice_array.h (gslice_array): Document.
2857 * include/bits/indirect_array (indirect_array): Document.
2858 * include/bits/mask_array (mask_array): Document.
2859 * include/bits/slice_array.h (slice,slice_array): Document.
2860 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
2861 adjacent_difference): Document
2862 * include/std/std_valarray.h (valarray): Document.
2864 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
2866 * docs/html/19_diagnostics/howto.html: Move verbose terminate
2868 * docs/html/18_support/howto.html: Here.
2869 * docs/html/documentation.html: Add reference here.
2871 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2873 * config/locale/gnu/c++locale_internal.h: Remove prototypes
2874 of no longer used GLIBC thread locale functions.
2876 2004-02-02 Eric Christopher <echristo@redhat.com>
2877 Zack Weinberg <zack@codesourcery.com>
2879 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
2881 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
2882 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
2883 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
2884 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
2885 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
2886 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
2887 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
2888 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2891 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2893 * include/bits/stl_function.h: Additional minor tweaks.
2894 * include/bits/stl_multiset.h: Likewise.
2896 * include/bits/stl_queue.h: Minor tweaks.
2898 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2900 PR libstdc++/13976 (continued)
2901 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
2902 Make the second parameter unnamed, to void unused parameter
2904 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
2906 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2909 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
2910 Make the second parameter unnamed, to void unused parameter
2912 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
2913 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
2915 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2917 * include/bits/stl_algo.h: Additional minor tweaks.
2918 * include/bits/stl_map.h: Likewise.
2919 * include/bits/stl_multimap.h: Likewise.
2920 * include/bits/stl_multiset.h: Likewise.
2921 * include/bits/stl_set.h: Likewise.
2922 * include/bits/stl_tree.h: Likewise.
2924 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2926 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
2929 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2931 * include/bits/stl_function.h: Additional minor tweaks.
2933 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2935 * include/bits/deque.tcc: Wrap overlong lines, constify
2936 a few variables, reformat according to the coding standards.
2937 * include/bits/list.tcc: Likewise.
2938 * include/bits/stl_deque.h: Likewise.
2939 * include/bits/stl_function.h: Likewise.
2940 * include/bits/stl_iterator.h: Likewise.
2941 * include/bits/stl_iterator_base_funcs.h: Likewise.
2942 * include/bits/stl_iterator_base_types.h: Likewise.
2943 * include/bits/stl_list.h: Likewise.
2944 * include/bits/stl_map.h: Likewise.
2945 * include/bits/stl_multimap.h: Likewise.
2946 * include/bits/stl_multiset.h: Likewise.
2947 * include/bits/stl_relops.h: Likewise.
2948 * include/bits/stl_set.h: Likewise.
2950 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2952 * include/bits/stl_bvector.h: Wrap overlong lines, constify
2953 a few variables, reformat according to the coding standards.
2954 * include/bits/stl_tree.h: Likewise.
2956 2004-01-31 Paolo Carlini <pcarlini@suse.de>
2958 * include/bits/stl_algo.h: Minor additional reformat, add
2960 * include/bits/stl_algobase.h: Add copyright year.
2962 2004-01-31 Paolo Carlini <pcarlini@suse.de>
2964 * include/bits/stl_algo.h: Wrap overlong lines, constify
2965 a few variables, reformat according to the coding standards.
2966 * include/bits/stl_algobase.h: Likewise.
2967 * include/bits/stl_heap.h: Likewise.
2969 2004-01-31 Paolo Carlini <pcarlini@suse.de>
2971 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
2973 * include/bits/basic_string.h: Fix two comments.
2975 2004-01-31 Per Bothner <per@bothner.com>
2977 * include/ext/mt_allocator.h
2978 (__mt_alloc::_S_thread_freelist_mutex): Guard with
2979 __GTHREAD_MUTEX_INIT.
2981 2004-01-31 Paolo Carlini <pcarlini@suse.de>
2983 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
2985 2004-01-30 Paolo Carlini <pcarlini@suse.de>
2987 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
2988 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
2989 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
2991 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
2993 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
2994 Don't use clear, but instead assign. Use insert.
2996 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
2998 * src/demangle.cc: Add instantiations.
2999 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
3000 * src/Makefile.in: Regenerate.
3002 2004-01-30 David Edelsohn <edelsohn@gnu.org>
3004 * src/allocator.cc: Protect _S_get_thread_id() and
3005 _S_thread_key_destr() with #ifdef __GTHREADS.
3007 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3009 Reshuffle performance testsuite.
3010 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
3011 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
3012 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
3013 fstream_seek_write.cc, ifstream_extract_float.cc,
3014 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
3015 list_create_fill_sort.cc, map_create_fill.cc,
3016 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
3017 ofstream_insert_float.cc, ofstream_insert_int.cc,
3018 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
3019 wchar_t_out.cc: Split into...
3020 * testsuite/performance/20_util/allocator.cc: New.
3021 * testsuite/performance/20_util/allocator_map_thread.cc: New.
3022 * testsuite/performance/20_util/allocator_thread.cc: New.
3023 * testsuite/performance/21_strings/string_append: New.
3024 * testsuite/performance/22_locale/is_wchar_t.cc: New.
3025 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
3026 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
3027 * testsuite/performance/22_locale/wchar_t_in.cc: New.
3028 * testsuite/performance/22_locale/wchar_t_length.cc: New.
3029 * testsuite/performance/22_locale/wchar_t_out.cc: New.
3030 * testsuite/performance/23_containers/container_benchmark.cc: New.
3031 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
3032 * testsuite/performance/23_containers/map_create_fill.cc: New.
3033 * testsuite/performance/26_numerics/complex_norm.cc: New.
3034 * testsuite/performance/27_io/cout_insert_int.cc: New.
3035 * testsuite/performance/27_io/filebuf_copy.cc: New.
3036 * testsuite/performance/27_io/filebuf_sputc.cc: New.
3037 * testsuite/performance/27_io/fstream_seek_write.cc: New.
3038 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
3039 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
3040 * testsuite/performance/27_io/ifstream_getline.cc: New.
3041 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
3042 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
3044 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3046 * include/bits/basic_string.tcc (_Rep::_S_create):
3047 Never allocate a string bigger than max_size(); always keep
3048 __capacity and __size in sync to avoid memory leaks at
3051 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3053 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3054 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
3055 the double loop, streamline.
3057 * include/bits/basic_string.tcc: Very minor tweaks.
3059 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
3061 * scripts/check_performance: Only compile with $THREAD_FLAG
3062 when test is marked to require it. Allow multiple
3063 compilations/executions of marked tests.
3064 * testsuite/testsuite_performance.h (report_performance):
3065 Report dynamic thread support status.
3066 (report_header): Likewise.
3067 * testsuite/performance/allocator.cc: Stabilize iteration
3068 count. Support more allocators. Mark each allocator test to
3069 run and report independently.
3070 * testsuite/performance/allocator_map_thread.cc: Likewise.
3071 * testsuite/performance/allocator_thread.cc: Likewise.
3073 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
3075 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
3076 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
3077 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
3078 std::get_temporary_buffer() instead of duplicating its code.
3079 Update to C++STYLE conventions.
3080 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
3081 new() instead of std::malloc().
3082 (return_temporary_buffer): Use ::operator delete() instead of
3085 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
3087 * include/bits/allocator.h: Temporary switch to new_allocator as
3088 the default to unjam bootstraps.
3090 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
3092 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
3093 * include/Makefile.in: Regenerate.
3094 * include/bits/allocator_traits.h: Remove.
3095 * include/bits/allocator.h: Remove allocator_traits.h include, and
3097 (allocator): Empty base class, inherit from the underlying allocator.
3098 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
3099 * src/allocator.cc: ...here. New. For the underlying allocators.
3100 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
3101 * config/linker-map.gnu: Remove __pool_alloc bits.
3102 * src/Makefile.am (sources): Add allocator.cc.
3103 * src/Makefile.in: Regenerate.
3104 * testsuite/20_util/allocator/1.cc: Split second test into...
3105 * testsuite/20_util/allocator/8230.cc: ...this.
3106 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
3107 typedef to use std::allocatore. Format.
3108 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
3110 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
3111 __throw_bad_alloc calls. Don't include <memory>.
3112 * include/ext/malloc_allocator.h: Remove <memory> include.
3113 * include/ext/new_allocator.h (new_allocator): Same.
3114 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
3115 declaration. Switch __alloc to _Alloc.
3116 * include/ext/hashtable.h: Remove __alloc.
3117 * include/backward/alloc.h: Only inject allocator, not
3118 implementation details.
3120 * include/ext/mt_allocator.h: Replace free with delete.
3122 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
3124 * src/globals_io.cc: Change to __gnu_internal namespace.
3125 * src/globals_locale.cc: Same.
3126 * src/locale_init.cc: Same.
3127 * src/ios_init.cc: Same.
3129 2004-01-28 Stefan Olsson <stefan@snon.net>
3131 * include/ext/mt_allocator.h: Replaced all malloc() calls with
3132 operator new(). Added support for the env variable
3133 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
3134 one in allocate() as well). Fix typos.
3136 2004-01-28 Paolo Carlini <pcarlini@suse.de>
3138 * include/bits/basic_string.h (_S_create(size_t,
3139 const _Alloc&): Change signature to take two size_type
3141 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3142 _InIterator, const _Alloc&, input_iterator_tag)): Update
3144 (_S_construct(_InIterator, _InIterator, const _Alloc&,
3145 forward_iterator_tag)): Likewise.
3146 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
3147 (_M_mutate(size_type, size_type, size_type)): Don't
3148 implement the exponential growth policy, demand it to
3149 _S_create, update call and simplify.
3150 (_M_clone(const _Alloc&, size_type)): Likewise.
3151 (_S_create(size_type, size_type, const _Alloc&)): Implement
3152 the growth policy, simplify otherwise.
3154 * include/bits/basic_string.h (_Rep::operator[]): Tweak
3155 signature to take a size_type, consistently with the other
3158 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
3160 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
3161 delete declarations, add include and test variable.
3163 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
3165 * include/bits/codecvt.h, include/bits/locale_facets.h,
3166 include/bits/postypes.h, include/bits/stl_bvector.h,
3167 include/bits/stl_multiset.h, include/bits/stl_set.h,
3168 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
3169 include/std/std_complex.h: Document.
3171 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
3174 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
3175 iword/pword selector.
3176 (ios_base::iword, ios_base::pword): Use it.
3177 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
3178 iword or pword member on alloc failure.
3179 * testsuite/27_io/ios_base/storage/11584.cc: New test.
3181 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
3182 PJ Darcy <darcypj@us.ibm.com>
3184 * configure.host: Add support for *-tpf.
3185 * crossconfig.m4: Likewise.
3186 * configure: Regenerate.
3187 * config/os/tpf: New directory.
3188 * config/os/tpf/os_defines.h: New file.
3189 * config/os/tpf/ctype_base.h: Likewise.
3190 * config/os/tpf/ctype_inline.h: Likewise.
3191 * config/os/tpf/ctype_noninline.h: Likewise.
3193 2004-01-27 Paolo Carlini <pcarlini@suse.de>
3196 * include/bits/sstream.tcc: Guard use of extern template.
3198 2004-01-27 Paolo Carlini <pcarlini@suse.de>
3200 * include/bits/basic_string.tcc
3201 (basic_string(const basic_string&, size_type, size_type),
3202 basic_string(const basic_string&, size_type, size_type,
3203 const _Alloc&)): Avoid unnecessarily constructing iterators.
3205 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3207 * config/locale/generic/c_locale.cc: Fix throw messages
3208 to use the __N marker.
3209 * config/locale/gnu/c_locale.cc: Likewise.
3210 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
3212 * docs/html/17_intro/C++STYLE: Likewise.
3213 * include/bits/basic_ios.tcc: Likewise.
3214 * include/bits/fstream.tcc: Likewise.
3215 * include/bits/vector.tcc: Likewise.
3216 * include/ext/ropeimpl.h: Likewise.
3217 * include/std/std_bitset.h: Likewise.
3218 * src/ios.cc: Likewise.
3219 * src/locale.cc: Likewise.
3220 * src/localename.cc: Likewise.
3222 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3224 * include/bits/basic_string.h (_M_replace_aux): Use the
3225 __N marker in throw message.
3226 * include/bits/basic_string.tcc (assign(const _CharT*,
3227 size_type), insert(size_type, const _CharT*, size_type),
3228 replace(size_type, size_type, const _CharT*, size_type),
3229 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
3232 * include/bits/basic_string.h, include/bits/basic_string.tcc:
3233 Fold overlong lines, minor formatting changes.
3235 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3237 * include/bits/basic_string.h (replace(iterator, iterator,
3238 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
3239 (replace(iterator, iterator, const _CharT*)): Ditto.
3240 (replace(iterator, iterator, const _CharT*, size_type)):
3241 Add missing _GLIBCXX_DEBUG_PEDASSERT.
3243 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3245 * include/bits/basic_string.tcc (replace(size_type,
3246 size_type, const _CharT*, size_type)): Implement optimized
3247 in-place algorithm for non-overlapping ranges.
3248 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
3249 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
3251 * include/bits/basic_string.tcc (insert(size_type,
3252 const _CharT*, size_type)): Tweak slightly.
3254 2004-01-26 Andreas Schwab <schwab@suse.de>
3256 * config/locale/gnu/monetary_members.cc: Restore locale before
3257 rethrowing exception.
3259 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3261 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
3263 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
3266 * include/bits/basic_string.tcc: Very minor tweaks.
3268 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3270 * testsuite/performance/string_append.cc: Increase number
3273 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3275 * include/bits/basic_string.h (erase(size_type, size_type),
3276 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
3277 instead, thus avoiding redundant check for length_error.
3279 * include/bits/basic_string.h: Tweak some comments.
3281 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3283 * include/bits/basic_string.tcc (operator+(const _CharT*,
3284 const basic_string&)): No need to go through the append
3285 taking two iterators.
3287 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3289 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
3290 Revert last change to use std::min: machine language is worse.
3291 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
3292 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3293 (find_last_not_of(_CharT, size_type)): Ditto.
3295 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
3296 size_type)): Discard the value returned by _M_check.
3297 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
3298 (append(const basic_string&, size_type, size_type)): Ditto.
3299 (copy(_CharT*, size_type, size_type)): Ditto.
3300 (compare(size_type, size_type, const basic_string&)): Ditto.
3301 (compare(size_type, size_type, const basic_string&,
3302 size_type, size_type)): Ditto.
3303 (compare(size_type, size_type, const _CharT*)): Ditto.
3304 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3306 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3308 * include/bits/basic_string.h (insert(size_type,
3309 const basic_string&, size_type, size_type)): Define inline here.
3310 * include/bits/basic_string.tcc (insert(size_type,
3311 const basic_string&, size_type, size_type)): Move inline.
3313 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3315 * include/bits/basic_string.h (assign(const basic_string&,
3316 size_type, size_type)): Define inline here.
3317 (replace(size_type, size_type, const basic_string&,
3318 size_type, size_type)): Ditto.
3319 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3320 _InputIterator, __false_type)): Only declare.
3321 (_M_replace(iterator, iterator, _InputIterator,
3322 _InputIterator)): Remove.
3323 * include/bits/basic_string.tcc (assign(const basic_string&,
3324 size_type, size_type)): Move inline.
3325 (replace(size_type, size_type, const basic_string&,
3326 size_type, size_type)): Ditto.
3327 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3328 _InputIterator, __false_type)): Define, now does also what
3329 _M_replace did before.
3330 * src/string-inst.cc (_M_replace): Don't instantiate.
3332 * include/bits/basic_string.tcc (find(const _CharT*,
3333 size_type, size_type)): Tidy.
3334 (rfind(_CharT, size_type)): Ditto.
3335 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
3336 (find_first_not_of(_CharT, size_type)): Ditto.
3337 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3338 (find_last_not_of(_CharT, size_type)): Ditto.
3340 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3343 * include/debug/bitset (operator|=): Fix typo.
3344 * testsuite/23_containers/bitset/operations/13838.cc: New.
3346 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3348 * include/bits/basic_string.tcc (insert(size_type,
3349 const _CharT*, size_type __n)): Fix length_error check.
3350 (replace(size_type, size_type, const _CharT*, size_type):
3351 Ditto; call _M_replace_safe.
3352 (_M_replace_aux(size_type, size_type, size_type, _CharT):
3353 Fix length_error check.
3354 (_M_replace(iterator, iterator, _InputIterator,
3355 _InputIterator)): Ditto, tweak.
3356 (_M_replace_safe(size_type, size_type, const _CharT*,
3357 size_type)): Remove length_error check.
3359 * include/bits/basic_string.tcc (append(const basic_string&),
3360 append(const basic_string&, size_type, size_type)): Tweak
3363 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
3364 size_type)): If __n == 0 don't call traits::copy.
3366 2004-01-23 Stefan Olsson <stefan@snon.net>
3368 * include/ext/mt_allocator.h: Reduce lock contention.
3370 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3373 * include/bits/fstream.tcc (underflow): Remove unused
3375 * include/bits/streambuf_iterator.h (equal): Ditto.
3376 * include/bits/locale_facets.h (_M_convert_from_char):
3379 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3382 * config/linker-map.gnu (nan): Delete.
3383 * libmath/mathconf.h (NAN, nan): Delete.
3384 * linkage.m4 (nan): Don't check for it.
3385 * libmath/nan.c: Delete file.
3387 * config.h.in, configure: Regenerate.
3389 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3391 * include/bits/basic_string.h (push_back(_CharT)):
3392 Call _M_replace_aux.
3393 (insert(size_type, const basic_string&)): Trivial tweak.
3394 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
3395 (insert(iterator, _CharT)): Ditto.
3396 (erase(size_type, size_type)): Ditto.
3397 (erase(iterator)): Ditto.
3398 (erase(iterator, iterator)): Ditto.
3399 (replace(size_type, size_type, size_type, _CharT)): Ditto.
3401 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
3404 * testsuite/performance/allocator_map_thread.cc: New test.
3406 2004-01-22 Paolo Carlini <pcarlini@suse.de>
3408 * include/bits/locale_facets.tcc
3409 (money_put::do_put(..., long double)): Use the basic_string
3410 constructor for char arrays, not that for C-strings, to pass
3411 __digits to do_put(..., const string_type&): __ws isn't
3414 2004-01-22 Paolo Carlini <pcarlini@suse.de>
3416 * include/bits/basic_string.h (_M_replace_safe): Change
3417 signatures to take size_types and const _CharT*.
3418 (_M_replace_aux): Likewise, takes size_types instead of
3420 (append(size_type, _CharT)): Update call.
3421 (assign(size_type, _CharT)): Ditto.
3422 (replace(iterator, iterator, size_type, _CharT)): Ditto.
3423 (_M_replace_dispatch(iterator, iterator, _Integer,
3424 _Integer, __true_type)): Ditto.
3425 * include/bits/basic_string.tcc (assign(const _CharT*,
3427 (insert(size_type, const _CharT*, size_type)): Ditto.
3428 (replace(size_type, size_type, const _CharT*,
3430 (_M_replace(iterator, iterator, _InputIterator,
3431 _InputIterator)): Ditto.
3432 (append(const basic_string&)): Ditto.
3433 (append(const basic_string&, size_type, size_type): Ditto.
3434 (append(const _CharT*, size_type): Ditto.
3435 (_M_replace_safe, _M_replace_safe): Change definitions
3436 accordingly, simplify.
3437 * string-inst.cc (_M_replace_safe): Don't instantiate.
3439 2004-01-21 Paolo Carlini <pcarlini@suse.de>
3441 * include/bits/basic_string.tcc (append(const basic_string&)):
3442 Revert previous change.
3443 (append(const basic_string&, size_type, size_type)): Revert
3444 previous change, use _M_check and _M_limit.
3446 2004-01-21 Paolo Carlini <pcarlini@suse.de>
3448 * include/bits/basic_string.h (_M_check): Change to return
3449 a checked __pos and take an additional const char* argument.
3450 (_M_fold): Rename to _M_limit, change to return a size_type,
3451 corresponding to the __off limited to the actual length.
3452 (insert(size_type, size_type, _CharT)): Update call, call
3454 (insert(iterator, _CharT)): Call replace(iterator, iterator,
3455 size_type, _CharT) instead.
3456 (erase(size_type, size_type)): Update calls.
3457 (replace(size_type, size_type, size_type, _CharT)): Ditto.
3458 (substr(size_type, size_type)): Use _M_check.
3459 * include/bits/basic_string.tcc (basic_string(const basic_string&,
3460 size_type, size_type)): Update calls.
3461 (basic_string(const basic_string&, size_type, size_type,
3462 const _Alloc&)): Ditto.
3463 (assign(const basic_string&, size_type, size_type)): Use the
3464 new _M_check and _M_limit.
3465 (insert(size_type, const basic_string&, size_type, size_type):
3467 (insert(size_type, const _CharT*, size_type)): Ditto.
3468 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
3469 (replace(size_type, size_type, const basic_string&,
3470 size_type, size_type)): Ditto.
3471 (append(const basic_string&)): Ditto.
3472 (append(const basic_string&, size_type, size_type)): Ditto.
3473 (copy(_CharT*, size_type, size_type)): Ditto.
3474 (compare(size_type, size_type, const basic_string&)): Ditto.
3475 (compare(size_type, size_type, const basic_string&,size_type,
3477 (compare(size_type, size_type, const _CharT*)): Ditto.
3478 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3480 2004-01-19 Stefan Olsson <stefan@snon.net>
3482 * include/ext/mt_allocator.h: If a thread, when it dies, still has
3483 memory on it's freelist this memory is not returned to global
3484 list. Simplification of deallocate so that memory is always
3485 returned to the calling thread id's freelist instead of to
3486 global. Fix typos. Add volatile where appropriate.
3488 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
3490 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
3491 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
3492 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
3494 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3496 * src/debug.cc: Make sure all the names are prefixed with
3497 double (or single) underscore.
3499 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3501 * src/debug.cc: Trivial formatting change.
3503 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3505 * include/bits/basic_string.tcc (_S_construct(size_type,
3506 _CharT, const _Alloc&)): Remove redundant try/catch.
3507 (_M_mutate(size_type, size_type, size_type)): Ditto.
3508 (_M_clone(const _Alloc&, size_type)): Ditto.
3510 2004-01-18 Paolo Carlini <pcarlini@suse.de>
3512 * include/bits/basic_string.h (c_str()): Simplify, due to
3513 21.3.4 the internal representation is always kept null-terminated.
3514 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
3515 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
3516 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
3519 2004-01-18 Paolo Carlini <pcarlini@suse.de>
3521 * include/bits/basic_string.h (append(size_type, _CharT)):
3522 Moved inline, just call _M_replace_aux, no source iterators at
3523 risk of being clobbered.
3524 (assign(size_type, _CharT)): Call directly _M_replace_aux.
3525 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3526 input_iterator_tag)): Remove fifth unused argument.
3527 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3528 _InputIterator, __false_type)): Update call.
3529 * include/bits/basic_string.tcc (replace(size_type, size_type,
3530 const _CharT*, size_type)): Update call.
3531 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
3532 throw string literal.
3533 (_M_replace_safe(iterator, iterator, _ForwardIterator,
3534 _ForwardIterator)): Likewise.
3535 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3536 input_iterator_tag)): Remove fifth unused argument.
3537 (append(size_type __n, _CharT __c)): Move inline.
3538 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
3539 const C*, const C*, input_iterator_tag)): Remove fifth unused
3542 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
3544 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
3545 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
3547 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
3549 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
3552 2004-01-15 Stefan Olsson <stefan@snon.net>
3554 * include/ext/mt_allocator.h: Reuse thread id's as soon as
3555 possible by changing the behaviour of thread_freelist to do
3556 push_front when threads die instead of push_back.
3558 2004-01-14 Paolo Carlini <pcarlini@suse.de>
3560 * include/bits/locale_facets.h (struct __numpunct_cache):
3561 Add member _M_grouping_size, caching the length of _M_grouping.
3562 (__numpunct_cache<>::_M_cache): Assign the latter.
3563 (__verify_grouping): Move declaration...
3564 * include/bits/locale_facets.tcc (__verify_grouping):
3565 ... here, change signature to take a const char* and a size_t
3566 for the grouping; not a template anymore.
3567 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
3568 Likewise change signature and tweak consistently.
3569 (num_get::_M_extract_float, num_get::_M_extract_int,
3570 num_put::_M_insert_int, num_put::_M_insert_float,
3571 money_get::do_get(string_type&), money_get::do_put(string_type)):
3573 * config/locale/generic/numeric_members.cc
3574 (numpunct<>::_M_initialize_numpunct): Assign the new member.
3575 * config/locale/gnu/numeric_members.cc
3576 (numpunct<>::_M_initialize_numpunct): Likewise.
3577 * src/locale-inst.cc (__add_grouping): Tweak signature.
3578 (__verify_grouping): Don't instantiate, not a template anymore.
3580 * include/bits/locale_facets.h: Rename _M_truename_len ->
3581 _M_truename_size, _M_falsename_len -> _M_falsename_size.
3582 * include/bits/locale_facets.tcc: Likewise.
3583 * config/locale/generic/numeric_members.cc: Likewise.
3584 * config/locale/gnu/numeric_members.cc: Likewise.
3586 2004-01-14 Stefan Olsson <stefan@snon.net>
3588 * include/ext/mt_allocator.h: Fixups.
3589 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
3590 * testsuite/performance/allocator_thread.cc: Same.
3592 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
3594 * testsuite/performance/ifstream_extract_float.cc: Add higher
3596 * testsuite/performance/ofstream_insert_float.cc: Same.
3598 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3600 * src/locale-misc-inst.cc (__convert_from_v(long),
3601 __convert_from_v(unsigned long), __convert_from_v(long long),
3602 __convert_from_v(unsigned long long)): Remove, unused.
3604 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
3606 * testsuite/performance/ifstream_extract_float.cc: New.
3607 * testsuite/performance/ofstream_insert_float.cc: Float generation
3610 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
3611 * 20_util/auto_ptr/1.cc: ...this.
3612 * 20_util/auto_ptr/2.cc: Same.
3613 * 20_util/auto_ptr/3.cc: Same.
3614 * 20_util/auto_ptr/3946.cc: Same.
3615 * 20_util/auto_ptr/4.cc: Same.
3616 * 20_util/auto_ptr/5.cc: Same.
3617 * 20_util/auto_ptr/6.cc: Same.
3618 * 20_util/auto_ptr/7.cc: Same.
3619 * 20_util/auto_ptr/assign_neg.cc
3620 * 20_util/pairs.cc: Break into...
3621 * 20_util/pair/1.cc: ...this.
3622 * 20_util/pair/2.cc: Same.
3623 * 20_util/pair/3.cc: Same.
3624 * 20_util/pair/4.cc: Same.
3626 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3628 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
3629 Set correctly just basefield, the only group that matters.
3631 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3633 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
3634 (_Rope_rep_base): Inherit directly from the rope allocator;
3635 use rebinding instead of _Alloc_traits; pick up data member
3636 from _Rope_rep_alloc_base.
3637 (_Rope_alloc_base): Eliminate.
3638 (_Rope_base): Inherit directly from the rope allocator; use
3639 rebinding instead of _Alloc_traits; pick up data member from
3641 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
3642 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
3644 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3647 * include/bits/basic_string.tcc (compare(size_type, size_type,
3648 const _CharT*, size_type)): Implement correctly the resolution
3649 of DR 5: basically, s is a char array, -not- a C string.
3650 * include/bits/basic_string.h: Tweak some comments.
3651 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
3652 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
3654 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
3656 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
3659 2004-01-12 Paolo Carlini <pcarlini@suse.de>
3661 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
3663 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
3666 2004-01-12 Paolo Carlini <pcarlini@suse.de>
3668 * include/bits/locale_facets.h (struct __numpunct_cache):
3669 Add members _M_truename_len and _M_falsename_len, caching
3670 the lengths of _M_truename and _M_falsename.
3671 (__numpunct_cache<>::_M_cache): Assign the latter.
3672 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
3673 num_put::do_put(bool)): Use the new members, thus avoiding
3674 computing string lengths again and again.
3675 * config/locale/generic/numeric_members.cc
3676 (numpunct<>::_M_initialize_numpunct): Assign the new members.
3677 * config/locale/gnu/numeric_members.cc
3678 (numpunct<>::_M_initialize_numpunct): Likewise.
3680 2004-01-12 Mark Mitchell <mark@codesourcery.com>
3682 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
3683 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
3685 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
3686 and remove Cygwin XFAIL.
3687 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
3688 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
3689 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
3690 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
3692 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3693 * testsuite/27_io/objects/char/7.cc: Likewise.
3694 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
3695 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
3696 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
3698 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
3700 * include/std/std_complex.h (std::complex<>::real): Return a
3701 reference. Add non-const overload.
3702 (std::complex<>::real): Likewise.
3703 (std::real): Likewise.
3704 (std::imag): Likewise.
3705 (std::operator+): Tidy.
3706 (std::operator-): Likewise.
3707 (std::operator*): Likewise.
3708 (std::operator/): Likewise.
3709 (std::operator>>): Likewise.
3711 2004-01-11 Paolo Carlini <pcarlini@suse.de>
3714 * include/bits/fstream.tcc (imbue): Exploit the external
3715 buffer to imbue 'on the fly' a new locale and convert its
3716 remainder with the new codecvt facet.
3717 (underflow): Tweak slightly to deal with this special case.
3718 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
3719 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
3720 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
3721 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
3722 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
3724 2004-01-10 Paolo Carlini <pcarlini@suse.de>
3726 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
3729 2004-01-10 Paolo Carlini <pcarlini@suse.de>
3732 * include/bits/locale_classes.h (class locale): Fix category
3734 * testsuite/22_locale/locale/13630.cc: Add.
3736 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
3738 * include/bits/locale_facets.h: Make a name really dependent. This
3739 will be needed when Core Issue 224 is implemented.
3741 2004-01-09 Paolo Carlini <pcarlini@suse.de>
3743 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
3744 * testsuite/performance/allocator_thread.cc: Likewise.
3746 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
3748 * crossconfig.m4: Add LFS, io bits to linux cross config.
3749 * acconfig.h: Remove obsolete bits, reorder.
3750 * config.h.in: Regenerate.
3754 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
3756 * include/bits/stl_list.h:
3757 * include/bits/list.tc:
3759 Performance enhancements for destructor, push_front(),
3760 push_back(), pop_front(), pop_back(), sort()
3761 Eliminated static_casts where possible.
3762 Moved code out of header files into new src/list.cc
3763 implementation file for library where possible.
3764 Remove inheritance from iterator class and create separate
3765 classes for non-constant and constant iterators.
3766 * include/bits/stl_tree.h (_Rb_tree class):
3768 Only erase contents in destructor.
3769 Eliminate unnecessary initialization in assignment operator.
3770 Optimize for the nominal case by not checking whether
3771 container is empty in clear().
3772 Re-order test in _M_insert() to improve performance.
3773 Move initialization of new node's left & right pointers to
3774 src/tree.cc to where new node's colour is initialized
3775 and to reduce the amount of inline code.
3776 Use _M_leftmost() and _M_end() to improve readability where
3778 Create separate classes for non-constant and constant
3779 iterators to clarify code, avoid extra template parameters and
3780 casting away constness.
3782 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
3784 * src/Makefile.am (sources): Add list.cc, tree.cc.
3785 * src/stl_tree.cc: Move to...
3786 * src/tree.cc: ...here.
3788 * config/linker-map.gnu: Tweaks.
3789 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
3790 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
3792 * bits/stl_vector.h: Column wrap comments.
3794 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
3796 (re-open) PR libstdc++/12658
3797 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
3798 (locale::global): Likewise.
3800 2004-01-07 Paolo Carlini <pcarlini@suse.de>
3802 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
3803 Remove redundant #include.
3804 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
3805 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
3806 re-enable normal testing.
3807 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
3809 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
3810 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
3812 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
3814 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
3816 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
3818 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
3820 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
3822 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
3824 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
3825 More properly, #include <locale>.
3826 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
3827 Remove redundant #include.
3828 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
3829 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
3830 redundant DejaGnu directive.
3831 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
3834 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
3835 Stefan Olsson <stefan@snon.net>
3837 * scripts/check_performance: Use -pthread.
3838 * testsuite/performance/allocator.cc: Tweaks, add list.
3839 * testsuite/performance/allocator_thread.cc: New.
3841 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
3843 * include/bits/locale_facets.h: Document public classes and
3845 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
3848 2004-01-06 Paolo Carlini <pcarlini@suse.de>
3850 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
3851 Remove redundant #includes.
3852 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
3854 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
3856 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
3857 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
3858 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
3859 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
3860 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
3861 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
3862 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
3863 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
3864 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
3865 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
3866 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
3867 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
3868 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
3869 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
3870 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
3872 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
3874 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
3876 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
3878 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
3880 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
3881 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
3882 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
3884 2004-01-04 Paolo Carlini <pcarlini@suse.de>
3886 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
3887 Remove redundant #includes.
3888 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
3890 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
3892 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
3894 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
3896 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
3898 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
3900 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3902 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3904 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3906 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
3908 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
3910 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
3913 2004-01-04 Mark Mitchell <mark@codesourcery.com>
3916 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
3918 * testsuite/27_io/basic_fstream/4.cc: Likewise.
3919 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
3920 * testsuite/27_io/basic_ios/4.cc: Likewise.
3921 * testsuite/27_io/basic_iostream/4.cc: Likewise.
3922 * testsuite/27_io/basic_istream/4.cc: Likewise.
3923 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
3924 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
3925 * testsuite/27_io/basic_ostream/4.cc: Likewise.
3926 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
3927 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
3928 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
3930 2004-01-04 Paolo Carlini <pcarlini@suse.de>
3932 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
3933 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
3934 always use double underscored names.
3935 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
3937 * include/bits/locale_facets.h (struct __numpunct_cache):
3938 Dimension _M_atoms_out and _M_atoms_in one position smaller.
3939 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out