1 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
3 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
4 Remove copy constructor and assignment operator.
6 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
8 * include/bits/concurrence.h (__gnu_cxx::lock): New.
9 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
10 (__pool_base::_M_get_mutex): New.
11 * include/bits/allocator.h: Tweak.
12 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
13 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
14 * include/bits/stl_threads.h: Remove.
15 * include/Makefile.am: Also here.
16 * include/Makefile.in: Regenerate.
18 * src/locale_init.cc: Use __gnu_cxx::lock.
20 * src/allocator.cc: Move all instantiations...
21 * src/allocator-inst.cc: ...here.
23 2004-06-23 Andrew Pinski <apinski@apple.com>
25 * linkage.m4: Remove check for libmx.
26 * configure: Regenerate.
28 2004-06-23 Paolo Carlini <pcarlini@suse.de>
31 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
32 Don't require the _DefaultConstructibleConcept.
33 (struct _ForwardIteratorConcept): Require it here.
35 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
37 * include/bits/istream.tcc (getline): Make sure arguments passed
38 to min/max have the same type.
39 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
40 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
42 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
44 * docs/html/abi.html: Update links.
46 2004-06-22 Paolo Carlini <pcarlini@suse.de>
48 * testsuite/26_numerics/complex_inserters_extractors.cc,
49 complex_value.cc, buggy_complex.cc: Move to...
50 * testsuite/26_numerics/complex/: ... here.
51 * testsuite/26_numerics/c99_classification_macros_c++.cc,
52 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
53 fabs_inline.cc: Move to...
54 * testsuite/26_numerics/cmath/: ... here.
55 * testsuite/26_numerics/binary_closure.cc, slice.cc,
56 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
57 valarray_name_lookup.cc, valarray_operators.cc,
58 valarray_subset_assignment.cc: Move to...
59 * testsuite/26_numerics/valarray/: ... here (new dir).
60 * testsuite/26_numerics/sum_diff.cc: Move to...
61 * testsuite/26_numerics/numeric/: ... here (new dir).
63 2004-06-22 Paolo Carlini <pcarlini@suse.de>
65 * include/std/std_istream.h (ignore(streamsize __n = 1,
66 int_type __delim = traits_type::eof())): Split into...
67 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
68 int_type __delim)): The first two can be much more simpler
69 and efficient than the fully general case; also, the last
70 two can take advantage of the same mechanism already used
72 * include/bits/istream.tcc (ignore(streamsize __n = 1,
73 int_type __delim = traits_type::eof()): Remove.
74 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
75 int_type __delim)): New.
77 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
79 * config/linker-map.gnu: Use wildcards for
80 __basic_file::sys_open(FILE*, _Ios_Openmode).
82 2004-06-20 Paolo Carlini <pcarlini@suse.de>
84 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
86 2004-06-18 Paolo Carlini <pcarlini@suse.de>
88 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
89 the alignment requested.
90 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
91 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
92 (__mt_alloc<>::deallocate): Likewise.
94 2004-06-18 Paolo Carlini <pcarlini@suse.de>
97 * include/debug/safe_base.h
98 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
99 _Safe_sequence_base::operator=): Provide definitions.
100 * testsuite/23_containers/bitset/cons/16020.cc: New.
102 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
104 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
105 (__pool_base): Remove unused template parameter. Add
106 protected. Move lock data into __pool_base::_Lock. Remove static
108 (__pool_base::_M_get_free_list): New.
109 (__pool_alloc): Move _S_force new here.
110 * src/allocator.cc: Move out of line __pool_base definitions here.
111 * config/linker-map.gnu: Export bits from __pool_base.
113 2004-06-18 Paolo Carlini <pcarlini@suse.de>
115 * config/locale/gnu/numeric_members.cc
116 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
117 assignments of _M_decimal_point and _M_thousands_sep.
118 * config/locale/gnu/time_members.cc
119 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
120 and reformat assignments of date and time fields.
122 2004-06-16 Paolo Carlini <pcarlini@suse.de>
124 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
125 to use _Data_allocate.
126 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
127 (rope<>::_S_substring): Likewise.
128 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
129 (rope<>::c_str()): Likewise.
130 (rope<>::replace_with_c_str()): Likewise.
132 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
133 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
135 (_Rope_iterator_base<>::_S_setcache): Likewise.
136 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
137 (rope<>::_S_substring): Likewise.
138 (rope<>::_S_dump): Likewise.
139 (rope<>::_S_fetch_ptr): Likewise.
140 (rope<>::_S_compare): Likewise.
141 (rope<>::replace_with_c_str()): Likewise.
143 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
144 * testsuite/ext/rope/2.cc: New.
146 2004-06-16 Paolo Carlini <pcarlini@suse.de>
147 Matt Austern <austern@apple.com>
149 * testsuite/ext/rope/3.cc: New.
151 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
153 * acinclude.m4: Remove useless multilib configury.
154 * Makefile.am: Remove useless multilib rules.
155 * aclocal.m4: Regenerate.
156 * Makefile.in: Regenerate.
157 * configure: Regenerate.
159 2004-06-15 Paolo Carlini <pcarlini@suse.de>
161 * include/ext/hashtable.h: Trivial formatting fixes.
162 * include/ext/rb_tree: Likewise.
164 2004-06-14 Paolo Carlini <pcarlini@suse.de>
166 * include/ext/hash_map: Trivial formatting fixes.
167 * include/ext/hash_set: Likewise.
168 * include/ext/memory: Likewise.
169 * include/ext/numeric: Likewise.
171 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
173 * Makefile.in: Regenerate with automake 1.8.5.
175 * include/Makefile.in: Same.
176 * libmath/Makefile.in: Same.
177 * libsupc++/Makefile.in: Same.
178 * po/Makefile.in: Same.
179 * src/Makefile.in: Same.
180 * testsuite/Makefile.in: Same.
182 2004-06-14 Paolo Carlini <pcarlini@suse.de>
184 * include/ext/slist: Trivial formatting fixes.
186 2004-06-14 Paolo Carlini <pcarlini@suse.de>
188 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
189 Don't use the 'magic number' 10 in the computation of __minlen;
190 never access __name past __minlen; in the loop over __i3, don't
191 decrease __nmatches and increase __i3 at once, only either of
194 2004-06-13 Paolo Carlini <pcarlini@suse.de>
196 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
197 time_get<>::do_get_date): Use only once _M_extract_via_format,
198 instead of going through "%X"/"%x" and calling it two times
201 2004-06-12 Paolo Carlini <pcarlini@suse.de>
203 * include/ext/algorithm: Trivial formatting fixes.
204 * include/ext/functional: Likewise.
205 * include/ext/hash_fun.h: Likewise.
206 * include/ext/iterator: Likewise.
208 2004-06-12 Paolo Carlini <pcarlini@suse.de>
210 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
211 size_type)): Reimplement using std::search.
212 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
214 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
216 * testsuite/performance/21_strings/string_find.cc: New.
218 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
220 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
222 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
224 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
225 this function return a value.
227 2004-06-09 Paolo Carlini <pcarlini@suse.de>
230 * include/bits/stl_deque.h: Consistently with stl_set.h, define
231 pointer as allocator's pointer, likewise for reference,
232 const_pointer, and const_reference.
233 * include/bits/stl_list.h: Likewise.
234 * include/bits/stl_map.h: Likewise.
235 * include/bits/stl_multimap.h: Likewise.
236 * include/bits/stl_vector.h: Likewise.
238 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
240 * crossconfig.m4: Remove signbit, signbitf, signbitl.
241 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
242 builtin math functions instead of AC_DEFINE_UNQUOTED.
243 * configure: Regenerate.
245 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
247 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
248 * docs/doxygen/mainpage.html: Remove links.
250 2004-06-08 Jason Merrill <jason@redhat.com>
252 * config/linker-map.gnu: Use wildcards for
253 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
255 2004-06-08 Paolo Carlini <pcarlini@suse.de>
257 * include/ext/pool_allocator.h: Convert to a global free-list,
258 as per the original SGI/HP design: move the implementation
259 details to struct __pool_base, from which __pool_alloc derives.
260 * src/allocator.cc: Instantiate __pool_base.
262 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
263 Paolo Carlini <pcarlini@suse.de>
265 * testsuite/testsuite_performance.h
266 (resource_counter::allocated_memory): Make it return the right
267 number of bytes requested by the allocators/application. This is
268 the sbrk+mmaped memory.
270 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
272 * include/std/std_complex.h (log): Tidy.
274 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
276 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
277 * testsuite/testsuite_abi.cc: Same.
278 * configure.ac (libtool_VERSION): Bump to 6:1:0.
279 * configure: Regenerate.
280 * aclocal.m4: Regenerate.
282 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
284 * include/std/std_complex.h (complex<_Tp>): Properly indent
286 (complex<>::__rep): New.
287 (__complex_abs): New. Dispatch to built-ins.
289 (__complex_arg): New. Dispatch to built-ins.
291 (__complex_cos): New. Dispatch to built-ins.
293 (__complex_cosh): New. Dispatch to built-ins.
295 (__complex_exp): New. Dispatch to built-ins.
297 (__complex_log): New. Dispatch to built-ins.
299 (__complex_sin): New. Dispatch to built-ins.
301 (__complex_sinh): New. Dispatch to built-ins.
303 (__complex_sqrt): New. Dispatch to built-ins.
305 (__complex_tan): New. Dispatch to built-ins.
307 (__complex_tanh): New. Dispatch to built-ins.
309 (__complex_pow): New. Dispatch to built-ins.
312 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
313 Benjamin Kosnik <bkoz@redhat.com>
316 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
317 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
318 * config/io/basic_file_stdio.cc (__basic_file::file): New.
319 * config/io/basic_file_stdio.h: Define.
321 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
324 * docs/html/documentation.html: Update doxygen links for 3.4.0.
326 2004-05-27 Jan Beulich <jbeulich@novell.com>
328 * scripts/create_testsuite_files: Tweak.
330 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
333 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
334 bits to do the same thing.
336 2004-05-24 Paolo Carlini <pcarlini@suse.de>
338 * include/bits/istream.tcc (ignore): Correctly deal with
339 n == numeric_limits<streamsize>::max().
340 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
342 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
343 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
344 __n == numeric_limits<>::min().
346 * include/bits/istream.tcc: Minor tweaks.
348 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
350 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
352 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
354 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
356 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
358 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
362 * include/bits/basic_string.h (basic_string::operator=): Return
363 pointer to this instead of result of assign. Although redundant,
364 this doesn't impact resultant codegen.
366 * include/bits/locale_facets.h (__numpunct_cache): Declare
367 assignment opxserator and copy constructor private.
368 (__timepunct_cache): Same.
369 (__moneypunct_cache): Same.
370 (collate): Use member initialization list for _M_c_locale_collate.
371 * config/locale/gnu/messages_members.h: Same.
372 * config/locale/gnu/time_members.h (__timepunct): Same.
373 * src/codecvt.cc: Use member initialization list to initialize
375 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
376 * config/os/gnu-linux/ctype_noninline.h: Same.
377 * src/locale.cc (_Impl): Same.
378 * src/locale_init.cc: Same.
379 * src/localename.cc: Same.
381 * include/bits/basic_ios.h (basic_ios): Complete member
383 * include/bits/istream.tcc (basic_istream::sentry): Same.
384 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
385 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
386 _M_pback to member initialization list.
387 * include/std/std_streambuf.h: Same.
388 * include/std/std_sstream.h: Same, for _M_mode.
389 * src/ios.cc (ios_base): Same.
391 * include/ext/rope: Make derived classes match exception
393 specifications. Add copy constructors and assignment operators.
395 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
396 constructor and assignment operator protected.
397 (_Safe_iterator_base): Same.
398 * include/debug/formatter.h (_Error_formatter): Define copy
399 constructor and assignment operator.
401 * include/backward/strstream: Declare assignment operator and copy
404 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
406 * testsuite/testsuite_hooks.h (func_callback): Declare copy
407 constructor and assignment operator private.
408 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
409 exception specifications of base class.
410 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
411 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
412 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
414 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
416 * libsupc++/cxxabi.h: Remove duplicated and useless public and
417 private keywords in class declarations. Format. Use
418 stddef.h. Expose declarations to "C" compilation.
419 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
421 (__dyncast_result): Same.
422 * libsupc++/vec.cc (uncatch_exception): Same, use member
425 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
427 * testsuite/abi_check.cc: Add unistd.h.
429 2004-05-22 Paolo Carlini <pcarlini@suse.de>
432 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
433 __int_to_char(unsigned long long)): Showpos is not relevant
435 * testsuite/22_locale/num_put/put/char/15565.cc: New.
436 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
438 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
440 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
441 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
442 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
443 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
444 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
445 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
447 2004-05-21 Matthias Klose <doko@debian.org>
449 * docs/doxygen/run_doxygen: Bump required version.
451 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
453 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
454 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
456 2004-05-21 Paolo Carlini <pcarlini@suse.de>
458 * include/bits/istream.tcc (ignore): Remove redundant line.
459 (readsome): Tidy, closely following 27.6.1.3, p30.
461 2004-05-20 Paolo Carlini <pcarlini@suse.de>
463 * include/bits/istream.tcc (operator>>(basic_istream<>&,
464 basic_string<>&)): Use a temporary buffer, thus avoiding
465 reallocation for common case.
466 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
468 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
471 * include/bits/istream.tcc: Const-ification of a few variables.
473 * include/bits/ostream.tcc: Trivial formatting fixes and
474 const-ification of some variables.
476 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
480 * docs/doxygen/Intro.3: Remove Allocators.3.
481 Add new extension headers, extension namespace list.
482 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
483 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
484 __gnu_debug::. Remove __policy_ renames.
485 * docs/doxygen/guide.html: Add dot note.
486 * docs/doxygen/stdheader.cc: Edit, add files.
487 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
489 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
491 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
493 2004-05-18 Jan Beulich <jbeulich@novell.com>
496 * scripts/create_testsuite_files: Also find source files through
499 2004-05-18 Jan Beulich <jbeulich@novell.com>
502 * testsuite/lib/libstdc++.exp: Make test files writable.
504 2004-05-18 Paolo Carlini <pcarlini@suse.de>
506 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
509 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
511 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
512 allocation loop which removes blocks from the global free list
513 from O(N) to O(1) when the required blocks are <= the number
516 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
518 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
520 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
522 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
523 * testsuite/23_containers/deque/14340.cc: New.
524 * testsuite/23_containers/list/14340.cc: New.
525 * testsuite/23_containers/map/14340.cc: New.
526 * testsuite/23_containers/multimap/14340.cc: New.
527 * testsuite/23_containers/multiset/14340.cc: New.
528 * testsuite/23_containers/set/14340.cc: New.
529 * testsuite/23_containers/vector/14340.cc: New.
531 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
534 * include/debug/safe_iterator.h (_Safe_iterator converting
535 constructor): Only allow declaration to instantiate when the
536 incoming _Safe_iterator has exactly the right iterator type.
538 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
540 * include/bits/boost_concept_check.h: Fix old attribute syntax.
541 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
542 to pass concept-checks.
543 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
544 * testsuite/23_containers/set/modifiers/swap.cc: Same.
545 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
547 2004-05-16 Paolo Carlini <pcarlini@suse.de>
549 * include/std/std_bitset.h: Minor formatting fixes.
551 2004-05-16 Paolo Carlini <pcarlini@suse.de>
553 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
554 Consistently update __bin._M_free[0].
555 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
556 __bin._M_free[0] to simplify the while loop (i.e., the number
557 of iterations becomes known at the outset).
559 2004-05-15 Paolo Carlini <pcarlini@suse.de>
561 * include/std/std_bitset.h: Trivial formatting fixes.
563 2004-05-14 Paolo Carlini <pcarlini@suse.de>
564 Ivan Godard <igodard@pacbell.net>
567 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
568 * testsuite/23_containers/bitset/ext/15361.cc: New.
570 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
573 * crossconfig.m4: Add C99 math bits for linux crosses.
574 * configure: Regenerate.
576 2004-05-13 Simon Marshall <simon.marshall@misys.com>
577 Benjamin Kosnik <bkoz@redhat.com>
580 * include/bits/locale_facets.h: Fix for -fno-for-scope.
581 * include/debug/safe_sequence.h: Same.
582 * include/debug/safe_iterator.tcc: Same.
583 * src/debug.cc: Same.
584 * src/locale.cc: Same.
585 * src/locale_init.cc: Same.
586 * src/localename.cc: Same.
587 * config/locale/gnu/ctype_members.cc: Same.
588 * config/locale/gnu/numeric_members.cc: Same.
589 * testsuite/testsuite_abi.cc: Same.
590 * testsuite/testsuite_hooks.cc: Same.
592 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
594 * docs/html/abi.html: Document effect of -fabi-version on value
595 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
598 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
601 * docs/html/faq/index.html: Update docs for libsupc++ usage.
603 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
606 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
608 (_GLIBCXX_mutex_address): Same.
609 (_GLIBCXX_once): Same.
610 (_GLIBCXX_mutex_init): Same.
611 (_GLIBCXX_mutex_address_init): Same.
613 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
615 * docs/html/abi.html: New.
616 * docs/html/abi.txt: Remove.
617 * docs/html/documentation.html: Add link.
618 * testsuite/Makefile.am: Add files.
619 * testsuite/Makefile.in: Regenerated.
620 * testsuite/abi_check.cc: Move and modify code into...
621 * testsuite/testsuite_abi.cc: Add.
622 * testsuite/testsuite_abi.h: Add.
624 * docs/html/17_intro/TODO: Update.
625 * include/bits/stl_pair.h: Format.
627 2004-05-06 Matthias Klose <doko@debian.org>
629 * include/backward/iterator.h: Add GPL copyright info,
630 with exception clause.
631 * include/bits/boost_concept_check.h: Likewise.
633 * libsupc++/tinfo.h: Likewise.
634 * po/string_literals.cc: Likewise.
636 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
638 * acinclude.m4: Replace -W with more speaking -Wextra.
639 * configure: Rebuilt.
641 2004-05-03 Paolo Carlini <pcarlini@suse.de>
643 Optimize locale::_M_impl->_M_names for the most common cases:
644 !_M_names[0] means unnamed; !_M_names[1] means all the categories
645 the same name (_M_names[0] && _M_names[1] means that the full set
646 of _M_names must be processed, the general case).
647 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
648 Tweak, saving work when !_M_names[1].
649 (locale::locale(const locale&, _Facet*): Simplify: now just setting
650 _M_names[0] = 0 means unnamed.
651 * src/locale.cc (locale::operator==): Deal first with the common,
652 easy cases, otherwise fall back to locale::name().
653 (locale::name()): Tweak, if !_M_names[0] just return "*".
654 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
655 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
656 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
657 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
658 Simplify when !std::strchr, just updating _M_names[0]; clean up.
659 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
660 for the general case (full set of names), then do the usual work;
663 * src/locale.cc (locale::name()): Reserve space in __ret.
664 * src/locale_init.cc (locale::global(const locale&)): Save
665 the name in a temporary.
666 * src/localename.cc (locale::locale(const char*)): Reserve space
669 2004-04-29 Paolo Carlini <pcarlini@suse.de>
671 * src/locale.cc (locale::operator==): Always avoid constructing
672 locale::name(), directly compare pairs of _M_names.
674 2004-04-26 Paolo Carlini <pcarlini@suse.de>
676 * include/bits/istream.tcc: Fix comment.
678 2004-04-26 Paolo Carlini <pcarlini@suse.de>
680 * include/bits/stl_vector.h: Trivial formatting fixes.
681 * include/bits/vector.tcc: Likewise.
683 2004-04-25 Paolo Carlini <pcarlini@suse.de>
685 PR libstdc++/15002 (continued again)
686 * include/bits/istream.tcc (getline(basic_istream<>&,
687 basic_string<>&, _CharT)): Use a temporary buffer, thus
688 avoiding reallocation for common case.
690 * include/bits/basic_string.tcc (_S_construct(_InIterator,
691 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
692 of temporary buffer to a power of two.
694 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
696 2004-04-25 Paolo Carlini <pcarlini@suse.de>
698 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
700 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
702 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
704 2004-04-24 Paolo Carlini <pcarlini@suse.de>
705 Petur Runolfsson <peturr02@ru.is>
707 PR libstdc++/15002 (continued)
708 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
709 streamsize, char_type)): Use traits::find/copy in a loop to speed
710 up greatly the function in the common case (I/O buffer size >> 1).
712 2004-04-24 Paolo Carlini <pcarlini@suse.de>
714 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
716 * include/bits/istream.tcc (getline(basic_istream<>&,
717 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
718 of sbumpc(), consistently with the other functions, thus also
719 dealing correctly with the case of exceeded string::max_size().
721 2004-04-24 Matthias Klose <doko@debian.org>
723 Jonathan Wakely <cow@compsoc.man.ac.uk>
724 * docs/html/configopts.html: Fix reference to allocator config option.
726 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
728 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
729 * configure: Regenerate.
731 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
733 PR libstdc++/15047, libstdc++/11610
734 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
735 (libstdc++_init): Don't pass outdir to v3-copy-files.
737 2004-04-21 Paolo Carlini <pcarlini@suse.de>
739 * include/bits/deque.tcc: Trivial formatting fixes.
740 * include/bits/stl_deque.h: Likewise.
741 * include/bits/stl_list.h: Likewise.
742 * include/bits/stl_tree.h: Likewise.
744 2004-04-21 Paolo Carlini <pcarlini@suse.de>
745 Andrew Pinski <pinskia@physics.uc.edu>
747 * include/bits/basic_string.tcc (_M_mutate): Don't compute
750 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
752 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
753 Clarify assertion, set test variable to false before assert.
754 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
755 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
756 * testsuite/27_io/ios_base/storage/2.cc: Same.
758 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
760 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
761 * testsuite/27_io/fpos/14320-3.cc: Same.
763 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
764 * testsuite/27_io/fpos/1.cc: Same.
765 * testsuite/27_io/basic_stringstream/2.cc: Same.
766 * testsuite/27_io/basic_stringbuf/4.cc: Same.
767 * testsuite/27_io/basic_stringbuf/1.cc: Same.
768 * testsuite/27_io/basic_stringbuf/2.cc: Same.
769 * testsuite/27_io/basic_streambuf/2.cc: Same.
770 * testsuite/27_io/basic_ostringstream/2.cc: Same.
771 * testsuite/27_io/basic_ostream/2.cc: Same.
772 * testsuite/27_io/basic_ofstream/2.cc: Same.
773 * testsuite/27_io/basic_istringstream/2.cc: Same.
774 * testsuite/27_io/basic_istream/2.cc: Same.
775 * testsuite/27_io/basic_iostream/2.cc: Same.
776 * testsuite/27_io/basic_ios/2.cc: Same.
777 * testsuite/27_io/basic_ifstream/2.cc: Same.
778 * testsuite/27_io/basic_fstream/2.cc: Same.
779 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
781 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
782 unsigned against zero.
783 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
784 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
786 * testsuite/18_support/new_delete_placement.cc: Initialize
787 variables before first use.
788 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
789 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
790 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
791 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
793 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
794 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
796 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
797 * testsuite/27_io/types/2.cc: Same.
799 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
801 * testsuite/27_io/fpos/14775.cc: Same.
803 2004-04-19 Paolo Carlini <pcarlini@suse.de>
805 PR libstdc++/15002 (partial)
806 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
807 Special case __n2 == 1, not calling traits_type::assign/copy.
809 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
811 * include/bits/stl_bvector.h: Use _M_impl._M_start.
813 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
815 * include/bits/c++config (_GLIBCXX_STD): New.
816 * src/list.cc: Use it.
817 * include/std/std_bitset.h: Same.
818 * include/bits/vector.tcc: Same.
819 * include/bits/stl_set.h: Same.
820 * include/bits/stl_multiset.h: Same.
821 * include/bits/stl_multimap.h: Same.
822 * include/bits/stl_map.h: Same.
823 * include/bits/stl_list.h: Same.
824 * include/bits/stl_vector.h: Same.
825 * include/bits/stl_bvector.h: Same.
826 * include/bits/stl_deque.h: Same.
827 * include/bits/deque.tcc: Same.
828 * include/bits/list.tcc: Same.
829 * include/debug/vector: Same.
830 * include/debug/set.h: Same.
831 * include/debug/multiset.h: Same.
832 * include/debug/multimap.h: Same.
833 * include/debug/map.h: Same.
834 * include/debug/list: Same.
835 * include/debug/deque: Same.
836 * include/debug/bitset: Same.
837 * include/debug/formatter.h (__gnu_debug): Remove using directive.
838 Add using declaration for std::type_info.
839 * include/debug/safe_iterator.h: Add using declaration for
840 std::iterator_traits and std::pair.
841 * src/debug_list.cc: New.
842 * src/Makefile.am: Add debug_list.cc.
843 * src/Makefile.in: Regenerate.
844 * config/linker-map.gnu: Add _List_node_base exports for std and
847 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
848 idiom that other containers use.
849 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
851 2004-04-16 Paolo Carlini <pcarlini@suse.de>
854 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
856 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
857 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
859 2004-04-16 Paolo Carlini <pcarlini@suse.de>
861 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
863 * config.h.in: Regenerate.
865 2004-04-16 Paolo Carlini <pcarlini@suse.de>
867 * config/locale/generic/monetary_members.cc
868 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
869 btowc unnecessarily, just cast to wchar_t (the concerned chars
870 all belong to the basic character set).
871 * config/locale/generic/numeric_members.cc
872 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
873 * config/locale/gnu/monetary_members.cc
874 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
875 * config/locale/gnu/numeric_members.cc
876 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
878 2004-04-15 Paolo Carlini <pcarlini@suse.de>
880 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
881 avoid constructing unnecessarily this->name().
883 2004-04-14 Zack Weinberg <zack@codesourcery.com>
885 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
886 Change definition of CXX to use $(shell) instead of backticks.
887 * testsuite/Makefile.in: Regenerate.
889 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
891 * testsuite/performance/20_util/allocator/list_sort_search.cc:
892 Minor formatting fixes.
893 * testsuite/performance/20_util/allocator/map_mt_find.cc:
896 2004-04-12 Paolo Carlini <pcarlini@suse.de>
898 * config/locale/gnu/numeric_members.cc
899 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
900 in __uselocale, since btowc is called for chars belonging to
901 the basic character set.
903 2004-04-09 Paolo Carlini <pcarlini@suse.de>
905 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
906 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
907 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
908 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
909 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
910 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
911 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
912 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
913 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
914 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
915 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
916 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
917 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
918 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
919 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
920 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
921 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
923 2004-04-07 Paolo Carlini <pcarlini@suse.de>
925 * config/locale/generic/time_members.cc
926 (__timepunct<char>::_M_initialize_timepunct,
927 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
928 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
929 * config/locale/gnu/time_members.cc
930 (__timepunct<char>::_M_initialize_timepunct,
931 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
932 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
933 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
935 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
936 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
937 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
938 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
939 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
940 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
941 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
942 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
943 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
944 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
945 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
946 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
947 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
948 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
949 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
950 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
951 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
952 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
953 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
954 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
955 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
956 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
957 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
958 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
959 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
960 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
961 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
962 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
963 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
964 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
965 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
966 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
967 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
968 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
969 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
970 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
972 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
974 2004-04-07 Paolo Carlini <pcarlini@suse.de>
976 * config/locale/gnu/monetary_members.cc
977 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
978 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
979 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
980 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
981 * config/locale/gnu/numeric_members.cc
982 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
983 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
985 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
987 Fixups for EDG front end.
988 * include/ext/rope: Instead of non-existent function
989 _Data_allocate, use allocator's allocate. Use this.
990 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
991 enumerations from _Rope_RopeRep here.
992 * include/ext/ropeimpl.h: Same.
993 * src/ext-inst.cc (_S_min_len): Fix up definition.
995 * config/locale/gnu/ctype_members.cc: Qualify base class members
997 * config/locale/generic/ctype_members.cc: Same.
998 * config/locale/gnu/messages_members.h: Same.
999 * config/locale/generic/messages_members.h: Same.
1000 * src/ctype.cc: Same.
1001 * include/bits/codecvt.h: Same.
1003 * include/bits/boost_concept_check.h: Declare.
1004 (__error_type_must_be_an_unsigned_integer_type): Remove this.
1005 (__error_type_must_be_an_integer_type): Remove this.
1006 (__error_type_must_be_a_signed_integer_type): Remove this.
1008 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
1010 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
1011 specification to definition.
1012 (__cxa_allocate_exception): Same.
1013 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
1014 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
1015 (__cxa_get_globals): Same.
1017 * libsupc++/del_op.cc: Add comment about freestanding.
1019 2004-04-05 Paolo Carlini <pcarlini@suse.de>
1021 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1022 The critical section is actually very small, only two assignments.
1024 2004-04-04 Paolo Carlini <pcarlini@suse.de>
1025 Petur Runolfsson <peturr02@ru.is>
1027 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
1028 adapted from libstdc++/11378.
1030 2004-04-03 Paolo Carlini <pcarlini@suse.de>
1032 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
1033 some duplicated code.
1034 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
1035 in the single threaded case.
1036 * testsuite/performance/20_util/allocator/list_sort_search.cc:
1037 Reorder and renumber the tests consistently with the other testfiles.
1038 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1039 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1040 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1042 2004-04-02 Paolo Carlini <pcarlini@suse.de>
1044 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1045 Rearrange arithmetic to avoid computing two divisions at
1048 2004-04-01 Paolo Carlini <pcarlini@suse.de>
1050 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
1051 Streamline the second half, wrapping it in a single
1052 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
1053 conditionals inside loops.
1055 2004-04-01 Paolo Carlini <pcarlini@suse.de>
1058 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
1059 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
1060 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
1061 to _GLIBCXX_RES_LIMITS.
1062 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
1064 * testsuite/testsuite_hooks.h: Declare set_file_limit.
1065 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
1066 and setrlimit(RLIMIT_FSIZE).
1067 * testsuite/27_io/fpos/14775.cc: New.
1068 * config.h.in: Regenerate.
1069 * configure: Likewise.
1071 2004-03-31 Paolo Carlini <pcarlini@suse.de>
1073 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
1074 In v3 uses of sscanf, the special floating-point numbers INF,
1075 INFINITY, etc., cannot occur in input, therefore, if the latter
1076 is too large, ERANGE is always stored in errno, no need of finitel.
1078 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
1081 * include/bits/stl_tree.h: Adjust initialization list order.
1083 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
1085 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
1087 2004-03-29 Paolo Carlini <pcarlini@suse.de>
1089 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
1090 on allocator behavior, the memory pointed by data2 may well be not
1093 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
1096 * include/bits/basic_string.tcc
1097 (basic_string::basic_string(const basic_string&)): Pass to
1098 _Rep::_M_grab the actual allocator of the string being constructed
1099 not the default constructed one.
1101 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
1104 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
1105 (__enc_traits::_M_destroy): New.
1106 (__enc_traits::~__enc_traits): Use it.
1107 (__enc_traits::operator=): Use _M_destroy, _M_init.
1108 (__enc_traits::__enc_traits): Same.
1110 2004-03-27 Petur Runolfsson <peturr02@ru.is>
1112 * testsuite/ext/enc_filebuf/char/13598.cc: New.
1114 2004-03-27 Paolo Carlini <pcarlini@suse.de>
1116 * include/ext/mt_allocator.h: Uglify consistently names of
1117 variables, members and classes; tidy.
1119 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
1121 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1122 Deallocation loop rewrote.
1124 2004-03-26 Paolo Carlini <pcarlini@suse.de>
1126 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1127 __mt_alloc<>::deallocate): Protect two instances of
1128 block->thread_id with __GTHREADS.
1130 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
1132 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
1133 default argument in constructors.
1134 (_Rb_tree::_M_empty_initialize): Remove.
1136 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
1138 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
1139 * testsuite/23_containers/set/operators/1_neg.cc: Same.
1141 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1143 * include/bits/cpp_type_traits.h: Changed __is_pod
1144 completely. Now, it does not use any of the previous type_traits
1145 to detect the pod types, and it also detects function pointers as
1148 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
1149 which encapsulates the internal implementation of an rb_tree. Made
1150 the allocator a base class of this class instead of the rb_tree,
1151 which was not conforming. This _Rb_tree_impl class is also
1152 specialized on whether the _Compare parameter is a POD type or
1153 not. If so, then it maintains the comparison function as a data
1154 member, otherwise it makes the _Compare parameter a base class of
1155 itself. Also, _M_key_compare is now a function instead of a data
1156 member, so that the above trick can work properly. Delegated the
1157 initialization of the other data members to this newly created
1158 class. Also, now other member functions of rb_tree must refer to
1159 _M_key_compare as _M_impl._M_key_compare(). The other data members
1160 (*) can be referenced to as _M_impl.(*), where
1161 (*) includes _M_header, and _M_node_count.
1163 2004-03-25 Paolo Carlini <pcarlini@suse.de>
1165 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
1166 Add _M_min_bin, the size in bytes of the smallest bin.
1167 (__mt_alloc<>::tune()): Tweak accordingly.
1168 (__mt_alloc<>::tune(size_t, ...)): Likewise.
1169 (__mt_alloc<>::block_record): Change to a union: members next
1170 and thread_id are never used at the same time.
1171 (__mt_alloc<>::allocate): Update consistently.
1172 (__mt_alloc<>::deallocate): Likewise.
1173 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
1174 _S_bin_size for the configurable _M_min_size.
1176 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1178 * include/bits/stl_list.h: Created a _List_impl class and made it
1179 derive from the allocator, instead of the list deriving from the
1180 allocator class, which was not conformant. Changed all references
1181 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
1182 as above (changed all references to the concerned variables).
1184 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1186 * include/bits/stl_deque.h: Created a _Deque_impl class and made
1187 it derive from the allocator, instead of the deque deriving from
1188 the allocator class, which was not conformant. Changed all
1189 references to the _M_start, _M_finish, _M_map, and _M_map_size to
1191 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
1192 qualification in 2 places where it was missing.
1193 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
1195 * include/bits/deque.tcc: Same as above (changed all references to
1196 the concerned variables).
1198 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1200 * include/bits/stl_vector.h: Created a _Vector_impl class and made
1201 it derive from the allocator, instead of the _Vector_base class,
1202 deriving from the allocator which was not conformant. Changed all
1203 references to the _M_start, _M_finish, and _M_end_of_storage to
1205 * include/bits/vector.tcc: Same as above (changed all references
1206 to the concerned variables).
1208 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1210 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
1211 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
1212 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
1214 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
1216 * include/ext/malloc_allocator.h: Fixed the construct function to
1217 call global placement new instead of assignment. Added a check
1218 after the return from malloc to check whether returned pointer is
1219 NULL, and if so, throw std::bad_alloc().
1220 * include/ext/debug_allocator.h: Added a check in the deallocate
1221 function to check whether the user has passed a NULL pointer or
1224 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
1226 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
1228 2004-03-24 Andreas Schwab <schwab@suse.de>
1230 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
1231 warning from IA64 assembler.
1233 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
1235 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
1236 function call __builtin_ctz instead of the while loop.
1237 (allocate) -> If condition has __builtin_expect.
1238 (deallocate) -> Ditto.
1239 Renamed a few left-over variables and typedefs according to the
1240 C++STYLE mentioned in the documentation.
1241 Protected calls to __gthread* by __gthread_active_p(), whose value
1242 is cached in the local variable __threads_active.
1244 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
1246 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1247 Use linear algorithm for producer.
1249 2004-03-24 Paolo Carlini <pcarlini@suse.de>
1251 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1252 __mt_alloc<>::deallocate): Avoid redundant conditionals.
1254 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
1256 * include/bits/locale_facets.h: Tweaks for 80 column.
1257 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
1258 (__moneypunct_cache::_M_cache): Same.
1259 (num_get): Don't inherit from __num_base.
1261 (money_get): Don't inherit from money_base.
1263 (__timepunct::_M_am_pm_format): New.
1264 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
1265 (time_get::_M_extract_name): Same.
1266 (time_get::_M_extract_via_format): Same.
1267 * include/bits/locale_facets.tcc: Tweaks for 80 column.
1268 Use _M_getloc instead of getloc.
1269 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
1270 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
1271 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
1273 2004-03-22 Paolo Carlini <pcarlini@suse.de>
1275 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
1276 * configure: Regenerate.
1277 * config/allocator/pool_allocator_base.h: New.
1278 * include/ext/pool_allocator.h: Convert to a standard-conforming
1280 * src/allocator.cc: Tweak instantiations.
1281 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
1282 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
1283 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
1284 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1285 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1286 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1288 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
1290 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
1291 inline" and attribute-unused. Qualify parameter __mem with
1293 (__exchange_and_add): Ditto. Add back memory clobber to asm.
1295 2004-03-20 Paolo Carlini <pcarlini@suse.de>
1297 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
1299 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
1301 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
1303 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
1305 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
1307 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
1309 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
1311 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
1313 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
1315 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
1318 2004-03-20 Paolo Carlini <pcarlini@suse.de>
1320 * include/std/std_valarray.h: Document DR389 [Ready].
1321 * docs/html/ext/howto.html: Add an entry for DR389.
1323 2004-03-19 Michael Eager <eager@mvista.com>
1325 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
1328 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1330 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
1332 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
1333 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
1334 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
1335 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
1336 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
1337 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
1338 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
1339 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
1340 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
1342 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1343 Petur Runolfsson <peturr02@ru.is>
1346 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
1347 no way to find out the conversion used by the underlying FILE*.
1348 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
1349 * testsuite/27_io/objects/char/9.cc: Tweak.
1351 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1354 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
1355 memory allocation/deallocation calls.
1356 * testsuite/ext/14648.cc: New.
1358 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
1361 * include/backward/bvector.h (bit_vector): Allocator is in std
1364 2004-03-19 Phil Edwards <phil@codesourcery.com>
1366 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
1367 not libiconv. SUBST this variable as well.
1368 * testsuite/Makefile.am (site.exp): New target, based on that
1369 created by automake. Also set libiconv.
1371 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
1372 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1373 testsuite/Makefile.in: Regenerate.
1375 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
1377 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
1378 new_allocator for all hosts.
1379 * configure: Regenerate.
1381 2004-03-16 Paolo Carlini <pcarlini@suse.de>
1383 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
1384 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
1386 2004-03-15 Paolo Carlini <pcarlini@suse.de>
1388 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1389 Adjust the logic underlying the parsing of symbol to deal
1390 correctly with an optional sign component (i.e., when either
1391 negative_sign or positive_sign is empty)
1392 * testsuite/22_locale/money_get/get/char/19.cc: New.
1393 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
1395 2004-03-15 Paolo Carlini <pcarlini@suse.de>
1397 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1398 Do not accept an incomplete currency symbol.
1399 * testsuite/22_locale/money_get/get/char/18.cc: New.
1400 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
1402 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
1404 * config/allocator: New.
1405 * config/allocator/bitmap_allocator_base.h: New.
1406 * config/allocator/malloc_allocator_base.h: New.
1407 * config/allocator/mt_allocator_base.h: New.
1408 * config/allocator/new_allocator_base.h: New.
1409 * include/bits/allocator.h: Include c++allocator.h.
1410 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
1411 * aclocal.m4: Regenerate.
1412 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
1413 * configure: Regenerate.
1414 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
1415 * include/Makefile.in: Regenerate.
1416 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
1418 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
1420 * include/bits/allocator.h: Revert.
1422 2004-03-12 Paolo Carlini <pcarlini@suse.de>
1424 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
1425 * include/bits/gslice_array.h: Add comment about DR 253.
1426 * include/bits/indirect_array.h: Likewise.
1427 * include/bits/mask_array.h: Likewise.
1428 * include/bits/slice_array.h: Likewise.
1430 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
1432 * testsuite/20_util/allocator/14176.cc: New.
1433 * include/ext/mt_allocator.h: Formatting fixes.
1435 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
1437 * include/Makefile.am (ext_headers): Add
1438 ${ext_srcdir}/bitmap_allocator.h .
1439 * include/Makefile.in: Regenerate.
1440 * docs/html/ext/ballocator_doc.txt: New file.
1441 * include/ext/bitmap_allocator.h: New file.
1442 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
1444 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1445 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
1446 test for the bitmap_allocator<>.
1447 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
1448 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1449 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1451 2004-03-11 Paolo Carlini <pcarlini@suse.de>
1453 * include/std/std_complex.h (pow(const complex&, const _Tp&),
1454 pow(const _Tp&, const complex&), pow(const complex&,
1455 const complex&)): Fully qualify with std:: a few calls.
1456 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
1458 2004-03-11 Steven Bosscher <stevenb@suse.de>
1461 * include/c_std/cmath.tcc (__cmath_power): Define inline.
1463 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
1465 * configure.ac: Bump AC_PREREQ to 2.59.
1467 2004-03-10 Paolo Carlini <pcarlini@suse.de>
1469 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
1471 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
1472 Paolo Carlini <pcarlini@suse.de>
1475 * include/std/std_complex.h (pow(const complex&, const _Tp&),
1476 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
1477 * testsuite/26_numerics/complex/13450.cc: New.
1479 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
1480 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
1482 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
1485 * include/bits/gslice_array.h (gslice_array()): Make public.
1486 (operator=(gslice_array)): Make public. Implement.
1487 * include/bits/indirect_array.h (indirect_array()): Make public.
1488 * include/bits/mask_array.h (mask_array()): Make public.
1489 (operator=(mask_array)): Make public. Implement.
1490 * include/bits/valarray_array.tcc (__valarray_copy):
1491 Comment. Add versions for gslice_array and mask_array.
1492 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
1494 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
1496 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
1498 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
1499 * testsuite/23_containers/set/modifiers/swap.cc: Same.
1500 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1501 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1502 * testsuite/23_containers/map/modifiers/swap.cc: Same.
1503 * testsuite/23_containers/list/modifiers/swap.cc: Same.
1505 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
1507 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
1510 * testsuite/23_containers/deque/modifiers/swap.cc: New.
1511 * testsuite/23_containers/list/modifiers/swap.cc: New.
1512 * testsuite/23_containers/map/modifiers/swap.cc: New.
1513 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
1514 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
1515 * testsuite/23_containers/set/modifiers/swap.cc: New.
1516 * testsuite/23_containers/vector/modifiers/swap.cc: New.
1518 2004-03-08 Petur Runolfsson <peturr02@ru.is>
1521 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
1523 2004-03-08 Paolo Carlini <pcarlini@suse.de>
1525 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
1526 * include/bits/stl_multiset.h: Add comment about DR 103.
1527 * include/bits/stl_set.h: Likewise.
1529 2004-03-08 Paolo Carlini <pcarlini@suse.de>
1531 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1532 The value _space_ indicates that at least one space is required
1534 * testsuite/22_locale/money_get/get/char/17.cc: New.
1535 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
1537 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
1538 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
1540 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
1541 Remove redundant conditional on __str.size().
1543 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
1545 * include/bits/allocator.h: Switch defaults to mt_alloc.
1547 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
1549 * include/ext/mt_allocator.h (_S_initialize): If
1550 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
1552 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
1555 * src/locale_init.cc (locale::locale): Lock critical regions with
1557 (locale::global): Same.
1558 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
1559 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
1560 (__glibcxx_mutex_lock): Same.
1562 * config/cpu/generic/atomicity.h: Remove
1563 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
1564 * src/misc-inst.cc: Move all locking bits out of this file.
1566 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
1567 * src/misc-inst.cc: Same.
1568 * config/cpu/hppa/atomicity.h: Same.
1570 * config/linker-map.gnu: Remove types in the signature of atomic
1571 exports, as they may vary.
1573 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1575 * include/bits/locale_facets.tcc: Tweak the comment preceding
1576 has_facet: doesn't throw.
1578 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1580 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
1581 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
1582 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
1583 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
1584 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
1585 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
1586 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
1587 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
1589 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1591 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1592 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
1593 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
1594 * testsuite/testsuite_character.h (struct __gnu_test::character):
1596 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
1599 2004-03-05 Paolo Carlini <pcarlini@suse.de>
1601 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
1603 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
1605 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
1607 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
1609 * testsuite/23_containers/deque/invalidation/4.cc: Same.
1610 * testsuite/23_containers/list/invalidation/1.cc: Same.
1611 * testsuite/23_containers/list/invalidation/2.cc: Same.
1612 * testsuite/23_containers/list/invalidation/3.cc: Same.
1613 * testsuite/23_containers/list/invalidation/4.cc: Same.
1614 * testsuite/23_containers/map/invalidation/2.cc: Same.
1615 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
1616 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1617 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
1618 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1619 * testsuite/23_containers/set/invalidation/1.cc: Same.
1620 * testsuite/23_containers/set/invalidation/2.cc: Same.
1621 * testsuite/23_containers/vector/invalidation/1.cc: Same.
1622 * testsuite/23_containers/vector/invalidation/2.cc: Same.
1623 * testsuite/23_containers/vector/invalidation/3.cc: Same.
1624 * testsuite/23_containers/vector/invalidation/4.cc: Same.
1626 2004-03-04 Paolo Carlini <pcarlini@suse.de>
1628 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
1630 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
1632 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
1633 from the dg-options.
1634 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
1635 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
1636 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
1637 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
1638 * testsuite/23_containers/vector/resize/1.cc: Likewise.
1639 * testsuite/26_numerics/complex_value.cc: Likewise.
1640 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
1641 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1642 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
1643 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1644 * testsuite/27_io/objects/char/5.cc: Likewise.
1645 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
1646 * testsuite/backward/11460.cc: Likewise.
1647 * testsuite/thread/pthread7-rope.cc: Likewise.
1649 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
1650 missing test variable.
1651 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
1652 missing test variable.
1654 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
1656 * testsuite/20_util/allocator/1.cc: Provide explicit
1657 instantiations for non-weak systems.
1658 * testsuite/20_util/binders.cc: Same.
1659 * testsuite/20_util/allocator/8230.cc: Same.
1660 * testsuite/20_util/allocator/10378.cc: Same.
1661 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
1662 * testsuite/22_locale/ctype/is/char/2.cc: Same.
1663 * testsuite/thread/pthread7-rope.cc: Same.
1664 * testsuite/thread/pthread6.cc: Same.
1665 * testsuite/thread/pthread5.cc: Same.
1666 * testsuite/thread/pthread4.cc: Same.
1667 * testsuite/thread/pthread1.cc: Same.
1668 * testsuite/ext/rope.cc: Same.
1669 * testsuite/ext/hash_set.cc: Same.
1670 * testsuite/ext/hash_map.cc: Same.
1671 * testsuite/ext/concept_checks.cc: Same.
1672 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
1673 * testsuite/25_algorithms/unique/2.cc: Same.
1674 * testsuite/25_algorithms/unique/1.cc: Same.
1675 * testsuite/25_algorithms/rotate.cc: Same.
1676 * testsuite/25_algorithms/min_max.cc: Same.
1677 * testsuite/25_algorithms/equal.cc: Same.
1678 * testsuite/24_iterators/rel_ops.cc: Same.
1679 * testsuite/24_iterators/iterator.cc: Same.
1680 * testsuite/24_iterators/insert_iterator.cc: Same.
1681 * testsuite/24_iterators/front_insert_iterator.cc: Same.
1682 * testsuite/24_iterators/back_insert_iterator.cc: Same.
1683 * testsuite/23_containers/vector/resize/1.cc: Same.
1684 * testsuite/23_containers/vector/modifiers/2.cc: Same.
1685 * testsuite/23_containers/vector/modifiers/1.cc: Same.
1686 * testsuite/23_containers/vector/invalidation/4.cc: Same.
1687 * testsuite/23_containers/vector/invalidation/3.cc: Same.
1688 * testsuite/23_containers/vector/invalidation/2.cc: Same.
1689 * testsuite/23_containers/vector/invalidation/1.cc: Same.
1690 * testsuite/23_containers/vector/element_access/1.cc: Same.
1691 * testsuite/23_containers/vector/cons/6513.cc: Same.
1692 * testsuite/23_containers/vector/cons/3.cc: Same.
1693 * testsuite/23_containers/vector/cons/2.cc: Same.
1694 * testsuite/23_containers/vector/cons/1.cc: Same.
1695 * testsuite/23_containers/vector/capacity/8230.cc: Same.
1696 * testsuite/23_containers/vector/capacity/1.cc: Same.
1697 * testsuite/23_containers/vector/bool/6886.cc: Same.
1698 * testsuite/23_containers/stack/members/7158.cc: Same.
1699 * testsuite/23_containers/set/invalidation/2.cc: Same.
1700 * testsuite/23_containers/set/invalidation/1.cc: Same.
1701 * testsuite/23_containers/queue/members/7157.cc: Same.
1702 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
1703 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1704 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1705 * testsuite/23_containers/multiset/insert/1.cc: Same.
1706 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1707 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1708 * testsuite/23_containers/map/operators/1.cc: Same.
1709 * testsuite/23_containers/map/invalidation/2.cc: Same.
1710 * testsuite/23_containers/map/invalidation/1.cc: Same.
1711 * testsuite/23_containers/map/insert/1.cc: Same.
1712 * testsuite/23_containers/list/operators/4.cc: Same.
1713 * testsuite/23_containers/list/operators/3.cc: Same.
1714 * testsuite/23_containers/list/operators/2.cc: Same.
1715 * testsuite/23_containers/list/operators/1.cc: Same.
1716 * testsuite/23_containers/list/modifiers/3.cc: Same.
1717 * testsuite/23_containers/list/modifiers/2.cc: Same.
1718 * testsuite/23_containers/list/modifiers/1.cc: Same.
1719 * testsuite/23_containers/list/invalidation/4.cc: Same.
1720 * testsuite/23_containers/list/invalidation/3.cc: Same.
1721 * testsuite/23_containers/list/invalidation/2.cc: Same.
1722 * testsuite/23_containers/list/invalidation/1.cc: Same.
1723 * testsuite/23_containers/list/cons/9.cc: Same.
1724 * testsuite/23_containers/list/cons/8.cc: Same.
1725 * testsuite/23_containers/list/cons/7.cc: Same.
1726 * testsuite/23_containers/list/cons/6.cc: Same.
1727 * testsuite/23_containers/list/cons/5.cc: Same.
1728 * testsuite/23_containers/list/cons/4.cc: Same.
1729 * testsuite/23_containers/list/cons/3.cc: Same.
1730 * testsuite/23_containers/list/cons/2.cc: Same.
1731 * testsuite/23_containers/list/cons/1.cc: Same.
1732 * testsuite/23_containers/list/capacity/1.cc: Same.
1733 * testsuite/23_containers/deque/operators/1.cc: Same.
1734 * testsuite/23_containers/deque/invalidation/4.cc: Same.
1735 * testsuite/23_containers/deque/invalidation/3.cc: Same.
1736 * testsuite/23_containers/deque/invalidation/2.cc: Same.
1737 * testsuite/23_containers/deque/invalidation/1.cc: Same.
1738 * testsuite/23_containers/deque/cons/2.cc: Same.
1739 * testsuite/23_containers/deque/cons/1.cc: Same.
1741 * src/allocator.cc: Add char, wchar_t instantiations
1742 to match extern template declarations in memory.h.
1744 2004-03-03 Paolo Carlini <pcarlini@suse.de>
1746 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1747 Fix warning regression.
1749 2004-03-03 Paolo Carlini <pcarlini@suse.de>
1751 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1752 Deal properly with empty __digits and negative frac_digits,
1755 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
1757 * docs/html/documentation.html: Regenerate.
1759 2004-03-02 Paolo Carlini <pcarlini@suse.de>
1762 * include/bits/postypes.h (class streamoff): Remove, now
1763 streamoff is just typedef a 64 bit signed integer type.
1764 (class fpos): Tweak consistently.
1765 * testsuite/27_io/fpos/14320-1.cc: New.
1766 * testsuite/27_io/fpos/14320-2.cc: New.
1767 * testsuite/27_io/fpos/14320-3.cc: New.
1768 * testsuite/27_io/fpos/14320-4.cc: New.
1769 * testsuite/27_io/fpos/14320-5.cc: New.
1770 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
1772 2004-03-02 Paolo Carlini <pcarlini@suse.de>
1774 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1775 Reorganize a bit the main parsing loop, thus early detecting
1776 an empty value component.
1777 * testsuite/22_locale/money_get/get/char/16.cc: New.
1778 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
1780 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
1782 Support automake 1.8.2
1783 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
1784 * po/Makefile.am (EXTRA_DIST): New.
1785 * po/Makefile.in: Regenerate.
1786 * Makefile.in: Same.
1787 * include/Makefile.in: Same.
1788 * libmath/Makefile.in: Same.
1789 * libsupc++/Makefile.in: Same.
1790 * src/Makefile.in: Same.
1791 * testsuite/Makefile.in: Same.
1793 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
1794 __GXX_WEAK__ instead of SUPPORTS_WEAK.
1795 (${host_builddir}/gthr-default.h): Same.
1796 (${host_builddir}/gthr.h): Same.
1797 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
1798 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
1800 * aclocal.m4: Regenerate.
1801 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
1802 * config.h.in: Regenerate.
1805 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
1807 Support autoconf 2.59
1808 * acinclude.m4: Quote correctly.
1809 * aclocal.m4: Regenerate.
1812 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
1814 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
1816 * docs/html/18_support/howto.html: Add bit about writing to
1817 stderr, mostly by Zack.
1819 2004-03-01 Paolo Carlini <pcarlini@suse.de>
1821 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
1822 money_get<>::do_get(string_type&)): ... and two more.
1824 2004-03-01 Paolo Carlini <pcarlini@suse.de>
1826 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1827 Fix thinkos in the switch from string_type& to string& as last
1830 2004-03-01 Paolo Carlini <pcarlini@suse.de>
1832 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
1833 Also when parsing exponent sign, first look for thousands_sep
1834 and decimal_point; tweak a bit.
1835 * testsuite/22_locale/num_get/get/char/15.cc: New.
1836 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
1838 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1839 num_get<>::_M_extract_int): Reorder some conditionals.
1841 2004-03-01 Paolo Carlini <pcarlini@suse.de>
1843 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1844 Consistently with numpunct, enforce the requirements in
1845 22.2.6.3, p3 for the thousands separators; tweak a bit.
1846 * testsuite/22_locale/money_get/get/char/15.cc: New.
1847 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
1849 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
1851 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
1852 testsuite_files from correct multilib blddir when running
1855 2004-02-29 Phil Edwards <phil@codesourcery.com>
1857 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
1858 the summary file to the logfile.
1859 * testsuite/Makefile.in: Regenerate.
1861 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1863 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
1865 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
1866 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
1868 2004-02-28 Paolo Carlini <pcarlini@suse.de>
1870 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
1871 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
1872 no 'decimal-point' in the middle: in this case too we must fix
1873 up __found_grouping; slightly tweak.
1874 * testsuite/22_locale/num_get/get/char/14.cc: New.
1875 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
1877 2004-02-27 Eric Christopher <echristo@redhat.com>
1878 Phil Edwards <phil@codesourcery.com>
1880 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
1881 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
1882 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
1883 testsuite/22_locale/collate/hash/wchar_t/2.cc,
1884 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
1885 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
1886 testsuite/22_locale/collate/transform/wchar_t/2.cc,
1887 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
1888 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
1889 Use dg-require-iconv.
1890 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
1892 2004-02-27 Phil Edwards <phil@codesourcery.com>
1893 Eric Christopher <echristo@redhat.com>
1895 * testsuite/config/default.exp: Update with comments.
1896 (${tool}_target_compile): New wrapper routine.
1897 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
1898 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
1900 (load_gcc_lib, v3track): New routines.
1901 (v3-init): Rename to libstdc++_init.
1902 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
1903 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
1905 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
1907 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
1909 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
1911 * config/os/irix/irix5.2/atomicity.h: Merge..
1912 * config/os/irix/irix6.5/atomicity.h: Merge..
1913 * config/os/irix/atomicity.h: ...into this.
1914 * config/os/irix/atomic_word.h: New.
1915 * configure.host: Set atomic_word_dir for irix.
1917 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
1918 * i386/atomicity.h: Same.
1919 * m68k/atomicity.h: Same.
1920 * sparc/atomicity.h: Same.
1922 2004-02-27 David Edelsohn <edelsohn@gnu.org>
1924 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
1925 static, and inline keywords.
1927 2004-02-27 Paolo Carlini <pcarlini@suse.de>
1929 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1930 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
1931 call reserve on the __tmp_gruping string.
1932 (num_get<>::_M_extract_float): Don't append unnecessarily a
1933 char() to the returned string.
1934 * include/bits/locale_facets.tcc: Trivial reformattings.
1936 2004-02-27 Paolo Carlini <pcarlini@suse.de>
1938 * include/bits/locale_facets.h (money_get<>::_M_extract):
1939 Change signature: now takes a plain string&.
1940 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1941 Update consistently the definition; use the moneypunct cache
1942 to parse the value; use swap to change __units.
1943 (money_get<>::do_get(long double&)): Update call of _M_extract,
1944 avoid ctype::narrow, not correct wrt the standard.
1945 (money_get<>::do_get(string_type&)): Likewise, update call
1946 of _M_extract, use ctype::widen.
1947 * src/locale-inst.cc: Tweak instantiations of _M_extract.
1949 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
1951 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
1952 * testsuite/demangle/abi_examples/02.cc: Likewise.
1953 * testsuite/demangle/regression/cw-11.cc: Likewise.
1954 * testsuite/demangle/regression/cw-16.cc: Change two expected
1955 results to match libiberty demangler output.
1957 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
1960 * libsupc++/Makefile.am: Use libiberty demangler.
1961 (c_sources): Add cp-demangle.c.
1962 * libsupc++/Makefile.in: Regenerate.
1963 * src/Makefile.am (sources): Remove demangle.cc.
1964 * src/Makefile.in: Regenerate.
1965 * include/Makefile.am (bits_headers): Move demangle.h.
1966 (ext_headers): ...here.
1967 * include/Makefile.in: Regenerate.
1968 * include/bits/demangle.h: Move...
1969 * include/ext/demangle.h: ...here.
1970 * src/demangle.cc: Remove.
1972 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
1974 * include/bits/demangle.h: Add type template parameter to all
1975 templates with just an Allocator template parameter.
1977 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
1979 * include/bits/atomicity.h: New, forward declarations for __atomic_add
1980 and __exchange_and_add.
1981 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
1982 * config/cpu/cris/atomic_word.h: Same.
1983 * config/cpu/sparc/atomic_word.h: Same.
1984 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
1985 Qualifiy with __gnu_cxx.
1986 (_Callback_list::_M_add_reference): Same.
1987 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
1988 (locale::facet::_M_remove_reference): Same.
1989 (locale::_Impl::_M_add_reference): Add.
1990 (locale::_Impl::_M_remove_reference): Same.
1991 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
1992 (basic_string::_Rep::_M_dispose): Same.
1993 * src/ios.cc (ios_base::xalloc): Same.
1994 * src/ios_init.cc (ios_base::Init::Init): Same.
1995 (ios_base::Init::~Init): Same.
1996 * src/locale.cc (locale::id::_M_id): Same.
1997 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
1998 static, and inline keywords.
1999 * config/cpu/alpha/atomicity.h: Same.
2000 * config/cpu/cris/atomicity.h: Same.
2001 * config/cpu/generic/atomicity.h: Same.
2002 * config/cpu/hppa/atomicity.h: Same.
2003 * config/cpu/i386/atomicity.h: Same.
2004 * config/cpu/ia64/atomicity.h: Same.
2005 * config/cpu/m68k/atomicity.h: Same.
2006 * config/cpu/mips/atomicity.h: Same.
2007 * config/cpu/powerpc/atomicity.h: Same.
2008 * config/cpu/s390/atomicity.h: Same.
2009 * config/cpu/sparc/atomicity.h: Same.
2011 * src/Makefile.am (host_sources): Add atomicity.cc.
2012 (atomicity.cc): New rule.
2013 * src/Makefile.in: Regenerate.
2014 * include/Makefile.am (host_headers): Remove host atomicity.h.
2015 (host_headers): Add atomic_word.h.
2016 (bits_headers): Add bits atomicity.h.
2017 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2018 * include/Makefile.in: Regenerate.
2019 * configure.host (atomic_word_dir): Add.
2020 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
2021 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2022 * configure: Regenerate.
2023 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
2025 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
2026 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2028 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
2030 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
2031 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
2032 Fix markup, more <link> tags.
2034 2004-02-25 Carlo Wood <carlo@alinoe.com>
2037 namespace __gnu_cxx::demangler
2038 (session<Allocator>::qualifier_list_Allocator): Add
2039 (session<Allocator>::M_qualifier_list_alloc): Add
2040 (session<Allocator>::decode_type_with_postfix):
2041 Use M_qualifier_list_alloc instead of calling operator new/delete.
2043 2004-02-24 Paolo Carlini <pcarlini@suse.de>
2046 * include/bits/postypes.h (class streamoff): Add operator++(),
2047 operator++(int), operator--() and operator--(int).
2048 * testsuite/27_io/fpos/14252.cc: New.
2050 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
2052 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
2053 error in handling of hex constants.
2055 2004-02-24 Paolo Carlini <pcarlini@suse.de>
2057 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2058 Prefer basic_string::append to operator+= and a temporary.
2060 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
2062 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
2063 Only use fputs, not write.
2065 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
2067 * include/ext/malloc_allocator.h: Add operators ==, !=.
2068 * include/ext/new_allocator.h: Add operators ==, !=.
2069 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
2070 (__mt_alloc::_S_get_options): New.
2071 (__mt_alloc::_S_set_options): New.
2072 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
2073 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
2074 Move functions out of line, simplify, format.
2075 * src/allocator.cc: Simplify explicit instantiations.
2076 * include/bits/allocator.h: Tweak.
2078 2004-02-22 Paolo Carlini <pcarlini@suse.de>
2080 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2081 Restructure formatting of value component, first dealing with
2082 the non-decimal digits; use reserve.
2084 2004-02-22 Paolo Carlini <pcarlini@suse.de>
2086 * include/bits/locale_facets.h (class money_get): Inherit
2087 from money_base too; tweak declaration of _M_extract, now
2088 parameterized on _Intl too.
2089 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2090 Update definition to use the cache; call reserve on __res to
2091 avoid multiple reallocations; fix parsing of sign component
2092 according to 22.2.6.1.2, p3.
2093 (money_get<>::do_get(long double&),
2094 money_get<>::do_get(string_type&)): Update calls of _M_extract.
2095 * src/locale-inst.cc: Add instantiations of
2096 money_get::_M_extract<false> and money_get::_M_extract<true>.
2097 * testsuite/22_locale/money_get/get/char/14.cc: New.
2098 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
2100 2004-02-21 Mark Mitchell <mark@codesourcery.com>
2102 * libsupc++/vterminate.cc
2103 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
2105 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
2107 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2108 not set RLIMIT_AS on HP-UX.
2110 2004-02-21 Mark Mitchell <mark@codesourcery.com>
2112 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2113 not set RLIMIT_AS on HP-UX.
2115 2004-02-21 Paolo Carlini <pcarlini@suse.de>
2117 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
2118 _S_zero, _S_end } enum, _S_atoms.
2119 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
2120 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
2121 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
2122 (__moneypunct_cache<>::~__moneypunct_cache): Update.
2123 (__moneypunct_cache<>::_M_cache): Fill the cache.
2124 (class moneypunct): Tweak __cache_type typedef.
2125 (class money_put): Inherit from money_base too; tweak declaration
2126 of _M_insert, now parameterized on _Intl.
2127 * include/bits/locale_facets.tcc
2128 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
2129 (money_put<>::_M_insert): Update definition to use the cache;
2130 call reserve on __res to avoid multiple reallocations.
2131 (money_put<>::do_put(long double),
2132 money_put<>::do_put(const string_type&): Update calls of _M_insert.
2133 * config/locale/generic/monetary_members.cc
2134 (moneypunct<char, true>::_M_initialize_moneypunct,
2135 moneypunct<char, false>::_M_initialize_moneypunct,
2136 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
2137 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
2138 * config/locale/gnu/monetary_members.cc: Likewise.
2139 * config/locale/gnu/monetary_members.cc
2140 (moneypunct<wchar_t, true>::~moneypunct(),
2141 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
2142 * src/globals_locale.cc: Tweak fake_money_cache_c.
2143 * src/locale-inst.cc: Add instantiations for
2144 money_put::_M_insert<false> and money_put::_M_insert<true> and
2145 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
2146 * src/locale_facets.cc: Define money_base::_S_atoms.
2147 * src/locale_init.cc: Update placement new of
2148 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
2149 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
2151 * config/locale/generic/numeric_members.cc: Clean up.
2152 * config/locale/gnu/numeric_members.cc: Likewise.
2153 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
2154 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
2155 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
2156 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
2157 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
2158 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
2160 2004-02-20 Mark Mitchell <mark@codesourcery.com>
2162 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
2163 FIFO for writing with ios_base::in|ios_base::out.
2164 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
2165 * testsuite/27_io/objects/char/7.cc: Likewise.
2166 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
2169 2004-02-19 David Edelsohn <edelsohn@gnu.org>
2171 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
2172 from iso-8859-1 to ISO8859-1.
2173 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
2174 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
2175 * 22_locale/collate/hash/wchar_t/2.cc: Same.
2176 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
2177 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
2178 * 22_locale/collate/transform/wchar_t/2.cc: Same.
2179 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
2180 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
2182 2004-02-18 Paolo Carlini <pcarlini@suse.de>
2184 * include/bits/locale_facets.h (money_get<>::_M_extract):
2185 New, helper for do_get.
2186 (money_put<>::_M_insert): Likewise, for do_put.
2187 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2188 money_put<>::_M_insert): Define.
2189 (money_get<>::do_get(long double&), money_get<>::do_get(
2190 string_type&), money_put::do_put(long double),
2191 money_put::do_put(const string_type&)): Use the helpers.
2193 2004-02-18 Paolo Carlini <pcarlini@suse.de>
2195 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2196 Rewrite, avoiding recursion.
2197 (__gnu_internal::xwrite): Minor tweaks.
2199 2004-02-17 Stefan Olsson <stefan@xapa.se>
2201 * include/ext/mt_allocator.h: Removed the last
2202 pointer. Deallocated blocks are now added to the front of
2203 freelists as proposed by Felix Yen. This gives roughly 10%
2204 performance boost and saves some memory.
2205 * docs/html/ext/mt_allocator.html: Change due to that deallocated
2206 blocks now are added to the front of freelists. The reason to this
2207 approach is also explained.
2209 2004-02-17 Paolo Carlini <pcarlini@suse.de>
2211 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2212 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
2213 grouping fidelity conditional.
2215 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2217 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
2218 Qualify exception with std::.
2219 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
2220 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2221 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2222 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2223 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2225 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2227 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
2228 for now that the catch block is not reached.
2229 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
2231 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2233 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2234 Fix parsing of the remaining sign characters.
2235 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
2236 the input is scanned 'til eof.
2237 * 22_locale/money_get/get/char/4.cc: Likewise.
2238 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
2239 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
2240 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
2241 not do_pos_format: the former is the only one that matters during
2243 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
2245 * 22_locale/money_get/get/char/6.cc: Minor tweak.
2246 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
2248 2004-02-15 David Asher <david.asher@cavium.com>
2251 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
2252 access __olds beyond __oldlen.
2254 2004-02-14 Paolo Carlini <pcarlini@suse.de>
2256 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
2257 sure the exception is actually thrown.
2258 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2259 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2260 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2262 2004-02-14 Paolo Carlini <pcarlini@suse.de>
2265 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
2266 In case of conversion errors, throw ios_failure; simplify.
2267 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
2268 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2269 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
2270 previously we didn't throw in case of conversion errors, instead
2271 just returned eof().
2272 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2273 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2274 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2276 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
2277 Trivial simplification of a conditional.
2279 2004-02-12 Paolo Carlini <pcarlini@suse.de>
2281 PR libstdc++/13731 (final part: writev)
2282 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2283 New, a wrapper around writev() handling partial writes.
2284 (__basic_file<char>::xwrite): Move to __gnu_internal and make
2286 (__basic_file<char>::xsputn): Update call.
2287 (__basic_file<char>::xsputn_2): Likewise.
2288 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2289 Don't declare, now static.
2291 2004-02-11 Stefan Olsson <stefan@xapa.se>
2293 * docs/html/ext/mt_allocator.html: New.
2295 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
2297 * docs/html/20_util/allocator.html: New file, consolidate
2298 allocator information here. Revamp.
2299 * docs/html/documentation.html: Change links.
2300 * docs/html/20_util/howto.html: Same.
2301 * docs/html/ext/howto.html: Same.
2303 2004-02-11 Paolo Carlini <pcarlini@suse.de>
2305 PR libstdc++/13731 (first part: write)
2306 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2308 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
2309 Define it: a wrapper around write() handling partial write.
2310 (__basic_file<char>::xsputn): Use it.
2311 (__basic_file<char>::xsputn_2): Likewise.
2313 2004-02-11 Paolo Carlini <pcarlini@suse.de>
2314 Petur Runolfsson <peturr02@ru.is>
2317 * include/std/std_istream.h (operator>>(__istream_type& (*)
2318 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
2319 operator>>(ios_base& (*)(ios_base&))): Declare inline.
2320 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
2321 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
2322 operator<<(ios_base& (*) (ios_base&))): Likewise.
2323 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
2325 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
2328 * config/linker-map.gnu: Add typeinfo and typeinfo name for
2329 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
2332 * config/linker-map.gnu: Add typeinfo and typeinfo name for
2333 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
2335 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
2337 * include/ext/pool_allocator.h: Include c++config.h.
2339 2004-02-09 Stefan Olsson <stefan@xapa.se>
2341 * include/ext/mt_allocator.h: thread_id is unused in non threaded
2342 applications and now has a ifdef to remove it completely on
2343 compilers without thread support. Include stdlib.h due to a
2344 compiler warning on getenv().
2346 2004-02-09 Paul Brook <paul@codesourcery.com>
2348 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
2350 2004-02-09 Paolo Carlini <pcarlini@suse.de>
2353 * src/locale_init.cc (locale::global(const locale&)): Use
2354 locale::name() in order to decide whether calling setlocale.
2355 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
2357 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
2358 Avoid computing &= unnecessarily.
2360 2004-02-09 James E Wilson <wilson@specifixinc.com>
2363 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
2364 __builtin_extend_pointer.
2366 2004-02-09 Paolo Carlini <pcarlini@suse.de>
2369 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
2370 Don't leave dangling pointers.
2371 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
2372 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
2373 facet is needed in the final test.
2375 2004-02-09 Bernardo Innocenti <bernie@develer.com>
2377 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
2378 * configure: Regenerate.
2380 2004-02-08 Richard Henderson <rth@redhat.com>
2383 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
2384 uncaughtExceptions during nested catch rethrow.
2385 * testsuite/18_support/14026.cc: New.
2387 2004-02-08 Paolo Carlini <pcarlini@suse.de>
2389 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
2390 When working in place remember to set the state to sharable
2391 (otherwise, _M_mutate does it).
2393 2004-02-08 Bernardo Innocenti <bernie@develer.com>
2395 * include/bits/allocator.h, include/bits/basic_ios.h,
2396 include/bits/basic_ios.tcc, include/bits/basic_string.h,
2397 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
2398 include/bits/char_traits.h, include/bits/codecvt.h,
2399 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
2400 include/bits/demangle.h, include/bits/deque.tcc,
2401 include/bits/fstream.tcc, include/bits/functexcept.h,
2402 include/bits/gslice.h, include/bits/gslice_array.h,
2403 include/bits/indirect_array.h, include/bits/ios_base.h,
2404 include/bits/istream.tcc, include/bits/list.tcc,
2405 include/bits/locale_classes.h, include/bits/locale_facets.h,
2406 include/bits/locale_facets.tcc, include/bits/localefwd.h,
2407 include/bits/mask_array.h, include/bits/ostream.tcc,
2408 include/bits/postypes.h, include/bits/slice_array.h,
2409 include/bits/sstream.tcc, include/bits/stl_algo.h,
2410 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
2411 include/bits/stl_construct.h, include/bits/stl_deque.h,
2412 include/bits/stl_function.h, include/bits/stl_heap.h,
2413 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
2414 include/bits/stl_list.h, include/bits/stl_map.h,
2415 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
2416 include/bits/stl_numeric.h, include/bits/stl_pair.h,
2417 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
2418 include/bits/stl_relops.h, include/bits/stl_set.h,
2419 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
2420 include/bits/stl_threads.h, include/bits/stl_tree.h,
2421 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
2422 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
2423 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
2424 include/bits/type_traits.h, include/bits/valarray_after.h,
2425 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
2426 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
2427 trailing whitespace.
2429 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2431 * include/bits/basic_string.h: Fix comment.
2433 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2435 * include/bits/stl_construct.h: Wrap overlong lines, reformat
2436 according to the coding standards.
2437 * include/bits/stl_pair.h: Likewise.
2438 * include/bits/stl_raw_storage_iter.h: Likewise.
2439 * include/bits/stl_stack.h: Likewise.
2440 * include/bits/stl_uninitialized.h: Likewise.
2441 * include/bits/stream_iterator.h: Likewise.
2442 * include/bits/streambuf_iterator.h: Likewise.
2443 * include/bits/type_traits.h: Likewise.
2445 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2447 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2450 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
2452 * scripts/check_performance: Support PCH.
2454 * scripts/check_performance (CXX): Add -DNOTHREAD.
2455 * testsuite/performance/20_util/allocator/insert.cc: Integrate
2456 threaded tests from insert_insert.cc. Tweak iterations,
2457 remove special cases.
2458 * testsuite/performance/20_util/allocator/insert_insert.cc:
2459 Make all tests single-threaded. Tweak iterations.
2460 * testsuite/performance/20_util/allocator/map_thread.cc:
2462 * testsuite/performance/20_util/allocator/producer_consumer.cc:
2465 2004-02-05 Geoffrey Keating <geoffk@apple.com>
2469 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
2470 'gcc-lib'. Add comment about poorly-named variables.
2471 * aclocal.m4: Regenerate.
2472 * configure: Regenerate.
2474 2004-02-05 Paolo Carlini <pcarlini@suse.de>
2476 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2477 Thousands-sep are always optional; thousands-sep are not allowed
2478 after the decimal_point.
2479 * testsuite/22_locale/money_get/get/char/12.cc: New.
2480 * testsuite/22_locale/money_get/get/char/13.cc: New.
2481 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
2482 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
2484 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
2485 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2486 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2487 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2488 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2489 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2490 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2491 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2493 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
2495 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
2497 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
2499 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
2501 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
2502 it to decide whether FIONREAD should take an off_t or int argument.
2504 2004-02-05 Paolo Carlini <pcarlini@suse.de>
2506 * include/bits/stl_function.h: Minor formatting changes.
2508 2004-02-04 Zack Weinberg <zack@codesourcery.com>
2510 Revert previous change to config/abi/*/baseline_symbols.txt.
2512 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
2513 Zack Weinberg <zack@codesourcery.com>
2515 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
2517 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
2518 (__basic_file<char>::_M_open_mode): Delete.
2519 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
2521 * testsuite/27_io/basic_filebuf/close/char/9964.cc
2522 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2523 Correct flags to filebuf::open calls.
2525 * config/abi/alpha-freebsd5/baseline_symbols.txt
2526 * config/abi/alpha-linux-gnu/baseline_symbols.txt
2527 * config/abi/hppa-linux-gnu/baseline_symbols.txt
2528 * config/abi/i386-freebsd4/baseline_symbols.txt
2529 * config/abi/i386-freebsd5/baseline_symbols.txt
2530 * config/abi/i486-linux-gnu/baseline_symbols.txt
2531 * config/abi/ia64-linux-gnu/baseline_symbols.txt
2532 * config/abi/mips-linux-gnu/baseline_symbols.txt
2533 * config/abi/sparc-freebsd5/baseline_symbols.txt
2534 * config/abi/sparc-linux-gnu/baseline_symbols.txt
2535 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
2536 Remove entry for __basic_file<char>::_M_open_mode.
2538 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
2540 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
2542 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
2544 * testsuite/performance/20_util/producer_consumer.cc: New.
2545 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
2547 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
2549 * testsuite/performance/20_util/allocator.cc: Move to..
2550 * testsuite/performance/20_util/allocator/insert.cc: ...here.
2551 * testsuite/performance/20_util/allocator_thread.cc: Move to...
2552 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
2553 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
2554 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
2556 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
2558 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
2559 * docs/html/faq/index.txt: Regenerate.
2561 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
2563 * include/ext/debug_allocator.h: _M_extra now stands for the
2564 number of extra objects instead of the number of extra bytes.
2565 (debug_allocator::allocate): Adjust.
2566 (debug_allocator::deallocate): Adjust.
2568 * include/ext/pool_allocator.h: Fix typo.
2570 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
2571 Benjamin Kosnik <bkoz@redhat.com>
2573 * testsuite/performance/20_util/allocator.cc: Add map,
2575 * testsuite/performance/20_util/allocator_thread.cc: Same.
2577 2004-02-03 Paolo Carlini <pcarlini@suse.de>
2579 * include/bits/basic_string.h (insert(iterator)): Remove,
2580 non-standard and already scheduled for removal.
2582 2004-02-03 Paolo Carlini <pcarlini@suse.de>
2584 * include/bits/stl_iterator_base_funcs.h: Minor formatting
2585 and indentation tweaks.
2586 * include/bits/stl_iterator_base_types.h: Likewise.
2587 * include/bits/stl_list.h: Likewise.
2588 * include/bits/stl_map.h: Likewise.
2589 * include/bits/stl_tempbuf.h: Likewise.
2591 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
2593 * include/bits/gslice.h, include/bits/gslice_array.h,
2594 include/bits/indirect_array.h, include/bits/mask_array.h,
2595 include/bits/slice_array.h, include/bits/stl_numeric.h,
2596 include/std/std_valarray.h: Update copyright years.
2598 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
2600 * include/bits/gslice.h (gslice): Document.
2601 * include/bits/gslice_array.h (gslice_array): Document.
2602 * include/bits/indirect_array (indirect_array): Document.
2603 * include/bits/mask_array (mask_array): Document.
2604 * include/bits/slice_array.h (slice,slice_array): Document.
2605 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
2606 adjacent_difference): Document
2607 * include/std/std_valarray.h (valarray): Document.
2609 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
2611 * docs/html/19_diagnostics/howto.html: Move verbose terminate
2613 * docs/html/18_support/howto.html: Here.
2614 * docs/html/documentation.html: Add reference here.
2616 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2618 * config/locale/gnu/c++locale_internal.h: Remove prototypes
2619 of no longer used GLIBC thread locale functions.
2621 2004-02-02 Eric Christopher <echristo@redhat.com>
2622 Zack Weinberg <zack@codesourcery.com>
2624 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
2626 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
2627 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
2628 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
2629 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
2630 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
2631 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
2632 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
2633 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2636 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2638 * include/bits/stl_function.h: Additional minor tweaks.
2639 * include/bits/stl_multiset.h: Likewise.
2641 * include/bits/stl_queue.h: Minor tweaks.
2643 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2645 PR libstdc++/13976 (continued)
2646 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
2647 Make the second parameter unnamed, to void unused parameter
2649 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
2651 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2654 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
2655 Make the second parameter unnamed, to void unused parameter
2657 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
2658 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
2660 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2662 * include/bits/stl_algo.h: Additional minor tweaks.
2663 * include/bits/stl_map.h: Likewise.
2664 * include/bits/stl_multimap.h: Likewise.
2665 * include/bits/stl_multiset.h: Likewise.
2666 * include/bits/stl_set.h: Likewise.
2667 * include/bits/stl_tree.h: Likewise.
2669 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2671 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
2674 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2676 * include/bits/stl_function.h: Additional minor tweaks.
2678 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2680 * include/bits/deque.tcc: Wrap overlong lines, constify
2681 a few variables, reformat according to the coding standards.
2682 * include/bits/list.tcc: Likewise.
2683 * include/bits/stl_deque.h: Likewise.
2684 * include/bits/stl_function.h: Likewise.
2685 * include/bits/stl_iterator.h: Likewise.
2686 * include/bits/stl_iterator_base_funcs.h: Likewise.
2687 * include/bits/stl_iterator_base_types.h: Likewise.
2688 * include/bits/stl_list.h: Likewise.
2689 * include/bits/stl_map.h: Likewise.
2690 * include/bits/stl_multimap.h: Likewise.
2691 * include/bits/stl_multiset.h: Likewise.
2692 * include/bits/stl_relops.h: Likewise.
2693 * include/bits/stl_set.h: Likewise.
2695 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2697 * include/bits/stl_bvector.h: Wrap overlong lines, constify
2698 a few variables, reformat according to the coding standards.
2699 * include/bits/stl_tree.h: Likewise.
2701 2004-01-31 Paolo Carlini <pcarlini@suse.de>
2703 * include/bits/stl_algo.h: Minor additional reformat, add
2705 * include/bits/stl_algobase.h: Add copyright year.
2707 2004-01-31 Paolo Carlini <pcarlini@suse.de>
2709 * include/bits/stl_algo.h: Wrap overlong lines, constify
2710 a few variables, reformat according to the coding standards.
2711 * include/bits/stl_algobase.h: Likewise.
2712 * include/bits/stl_heap.h: Likewise.
2714 2004-01-31 Paolo Carlini <pcarlini@suse.de>
2716 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
2718 * include/bits/basic_string.h: Fix two comments.
2720 2004-01-31 Per Bothner <per@bothner.com>
2722 * include/ext/mt_allocator.h
2723 (__mt_alloc::_S_thread_freelist_mutex): Guard with
2724 __GTHREAD_MUTEX_INIT.
2726 2004-01-31 Paolo Carlini <pcarlini@suse.de>
2728 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
2730 2004-01-30 Paolo Carlini <pcarlini@suse.de>
2732 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
2733 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
2734 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
2736 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
2738 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
2739 Don't use clear, but instead assign. Use insert.
2741 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
2743 * src/demangle.cc: Add instantiations.
2744 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
2745 * src/Makefile.in: Regenerate.
2747 2004-01-30 David Edelsohn <edelsohn@gnu.org>
2749 * src/allocator.cc: Protect _S_get_thread_id() and
2750 _S_thread_key_destr() with #ifdef __GTHREADS.
2752 2004-01-30 Paolo Carlini <pcarlini@suse.de>
2754 Reshuffle performance testsuite.
2755 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
2756 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
2757 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
2758 fstream_seek_write.cc, ifstream_extract_float.cc,
2759 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
2760 list_create_fill_sort.cc, map_create_fill.cc,
2761 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
2762 ofstream_insert_float.cc, ofstream_insert_int.cc,
2763 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
2764 wchar_t_out.cc: Split into...
2765 * testsuite/performance/20_util/allocator.cc: New.
2766 * testsuite/performance/20_util/allocator_map_thread.cc: New.
2767 * testsuite/performance/20_util/allocator_thread.cc: New.
2768 * testsuite/performance/21_strings/string_append: New.
2769 * testsuite/performance/22_locale/is_wchar_t.cc: New.
2770 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
2771 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
2772 * testsuite/performance/22_locale/wchar_t_in.cc: New.
2773 * testsuite/performance/22_locale/wchar_t_length.cc: New.
2774 * testsuite/performance/22_locale/wchar_t_out.cc: New.
2775 * testsuite/performance/23_containers/container_benchmark.cc: New.
2776 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
2777 * testsuite/performance/23_containers/map_create_fill.cc: New.
2778 * testsuite/performance/26_numerics/complex_norm.cc: New.
2779 * testsuite/performance/27_io/cout_insert_int.cc: New.
2780 * testsuite/performance/27_io/filebuf_copy.cc: New.
2781 * testsuite/performance/27_io/filebuf_sputc.cc: New.
2782 * testsuite/performance/27_io/fstream_seek_write.cc: New.
2783 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
2784 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
2785 * testsuite/performance/27_io/ifstream_getline.cc: New.
2786 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
2787 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
2789 2004-01-30 Paolo Carlini <pcarlini@suse.de>
2791 * include/bits/basic_string.tcc (_Rep::_S_create):
2792 Never allocate a string bigger than max_size(); always keep
2793 __capacity and __size in sync to avoid memory leaks at
2796 2004-01-30 Paolo Carlini <pcarlini@suse.de>
2798 * include/bits/basic_string.tcc (_S_construct(_InIterator,
2799 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
2800 the double loop, streamline.
2802 * include/bits/basic_string.tcc: Very minor tweaks.
2804 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
2806 * scripts/check_performance: Only compile with $THREAD_FLAG
2807 when test is marked to require it. Allow multiple
2808 compilations/executions of marked tests.
2809 * testsuite/testsuite_performance.h (report_performance):
2810 Report dynamic thread support status.
2811 (report_header): Likewise.
2812 * testsuite/performance/allocator.cc: Stabilize iteration
2813 count. Support more allocators. Mark each allocator test to
2814 run and report independently.
2815 * testsuite/performance/allocator_map_thread.cc: Likewise.
2816 * testsuite/performance/allocator_thread.cc: Likewise.
2818 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
2820 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
2821 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
2822 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
2823 std::get_temporary_buffer() instead of duplicating its code.
2824 Update to C++STYLE conventions.
2825 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
2826 new() instead of std::malloc().
2827 (return_temporary_buffer): Use ::operator delete() instead of
2830 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
2832 * include/bits/allocator.h: Temporary switch to new_allocator as
2833 the default to unjam bootstraps.
2835 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
2837 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
2838 * include/Makefile.in: Regenerate.
2839 * include/bits/allocator_traits.h: Remove.
2840 * include/bits/allocator.h: Remove allocator_traits.h include, and
2842 (allocator): Empty base class, inherit from the underlying allocator.
2843 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
2844 * src/allocator.cc: ...here. New. For the underlying allocators.
2845 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
2846 * config/linker-map.gnu: Remove __pool_alloc bits.
2847 * src/Makefile.am (sources): Add allocator.cc.
2848 * src/Makefile.in: Regenerate.
2849 * testsuite/20_util/allocator/1.cc: Split second test into...
2850 * testsuite/20_util/allocator/8230.cc: ...this.
2851 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
2852 typedef to use std::allocatore. Format.
2853 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
2855 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
2856 __throw_bad_alloc calls. Don't include <memory>.
2857 * include/ext/malloc_allocator.h: Remove <memory> include.
2858 * include/ext/new_allocator.h (new_allocator): Same.
2859 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
2860 declaration. Switch __alloc to _Alloc.
2861 * include/ext/hashtable.h: Remove __alloc.
2862 * include/backward/alloc.h: Only inject allocator, not
2863 implementation details.
2865 * include/ext/mt_allocator.h: Replace free with delete.
2867 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
2869 * src/globals_io.cc: Change to __gnu_internal namespace.
2870 * src/globals_locale.cc: Same.
2871 * src/locale_init.cc: Same.
2872 * src/ios_init.cc: Same.
2874 2004-01-28 Stefan Olsson <stefan@snon.net>
2876 * include/ext/mt_allocator.h: Replaced all malloc() calls with
2877 operator new(). Added support for the env variable
2878 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
2879 one in allocate() as well). Fix typos.
2881 2004-01-28 Paolo Carlini <pcarlini@suse.de>
2883 * include/bits/basic_string.h (_S_create(size_t,
2884 const _Alloc&): Change signature to take two size_type
2886 * include/bits/basic_string.tcc (_S_construct(_InIterator,
2887 _InIterator, const _Alloc&, input_iterator_tag)): Update
2889 (_S_construct(_InIterator, _InIterator, const _Alloc&,
2890 forward_iterator_tag)): Likewise.
2891 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
2892 (_M_mutate(size_type, size_type, size_type)): Don't
2893 implement the exponential growth policy, demand it to
2894 _S_create, update call and simplify.
2895 (_M_clone(const _Alloc&, size_type)): Likewise.
2896 (_S_create(size_type, size_type, const _Alloc&)): Implement
2897 the growth policy, simplify otherwise.
2899 * include/bits/basic_string.h (_Rep::operator[]): Tweak
2900 signature to take a size_type, consistently with the other
2903 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
2905 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
2906 delete declarations, add include and test variable.
2908 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
2910 * include/bits/codecvt.h, include/bits/locale_facets.h,
2911 include/bits/postypes.h, include/bits/stl_bvector.h,
2912 include/bits/stl_multiset.h, include/bits/stl_set.h,
2913 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
2914 include/std/std_complex.h: Document.
2916 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
2919 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
2920 iword/pword selector.
2921 (ios_base::iword, ios_base::pword): Use it.
2922 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
2923 iword or pword member on alloc failure.
2924 * testsuite/27_io/ios_base/storage/11584.cc: New test.
2926 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
2927 PJ Darcy <darcypj@us.ibm.com>
2929 * configure.host: Add support for *-tpf.
2930 * crossconfig.m4: Likewise.
2931 * configure: Regenerate.
2932 * config/os/tpf: New directory.
2933 * config/os/tpf/os_defines.h: New file.
2934 * config/os/tpf/ctype_base.h: Likewise.
2935 * config/os/tpf/ctype_inline.h: Likewise.
2936 * config/os/tpf/ctype_noninline.h: Likewise.
2938 2004-01-27 Paolo Carlini <pcarlini@suse.de>
2941 * include/bits/sstream.tcc: Guard use of extern template.
2943 2004-01-27 Paolo Carlini <pcarlini@suse.de>
2945 * include/bits/basic_string.tcc
2946 (basic_string(const basic_string&, size_type, size_type),
2947 basic_string(const basic_string&, size_type, size_type,
2948 const _Alloc&)): Avoid unnecessarily constructing iterators.
2950 2004-01-26 Paolo Carlini <pcarlini@suse.de>
2952 * config/locale/generic/c_locale.cc: Fix throw messages
2953 to use the __N marker.
2954 * config/locale/gnu/c_locale.cc: Likewise.
2955 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
2957 * docs/html/17_intro/C++STYLE: Likewise.
2958 * include/bits/basic_ios.tcc: Likewise.
2959 * include/bits/fstream.tcc: Likewise.
2960 * include/bits/vector.tcc: Likewise.
2961 * include/ext/ropeimpl.h: Likewise.
2962 * include/std/std_bitset.h: Likewise.
2963 * src/ios.cc: Likewise.
2964 * src/locale.cc: Likewise.
2965 * src/localename.cc: Likewise.
2967 2004-01-26 Paolo Carlini <pcarlini@suse.de>
2969 * include/bits/basic_string.h (_M_replace_aux): Use the
2970 __N marker in throw message.
2971 * include/bits/basic_string.tcc (assign(const _CharT*,
2972 size_type), insert(size_type, const _CharT*, size_type),
2973 replace(size_type, size_type, const _CharT*, size_type),
2974 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
2977 * include/bits/basic_string.h, include/bits/basic_string.tcc:
2978 Fold overlong lines, minor formatting changes.
2980 2004-01-26 Paolo Carlini <pcarlini@suse.de>
2982 * include/bits/basic_string.h (replace(iterator, iterator,
2983 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
2984 (replace(iterator, iterator, const _CharT*)): Ditto.
2985 (replace(iterator, iterator, const _CharT*, size_type)):
2986 Add missing _GLIBCXX_DEBUG_PEDASSERT.
2988 2004-01-26 Paolo Carlini <pcarlini@suse.de>
2990 * include/bits/basic_string.tcc (replace(size_type,
2991 size_type, const _CharT*, size_type)): Implement optimized
2992 in-place algorithm for non-overlapping ranges.
2993 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
2994 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
2996 * include/bits/basic_string.tcc (insert(size_type,
2997 const _CharT*, size_type)): Tweak slightly.
2999 2004-01-26 Andreas Schwab <schwab@suse.de>
3001 * config/locale/gnu/monetary_members.cc: Restore locale before
3002 rethrowing exception.
3004 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3006 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
3008 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
3011 * include/bits/basic_string.tcc: Very minor tweaks.
3013 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3015 * testsuite/performance/string_append.cc: Increase number
3018 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3020 * include/bits/basic_string.h (erase(size_type, size_type),
3021 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
3022 instead, thus avoiding redundant check for length_error.
3024 * include/bits/basic_string.h: Tweak some comments.
3026 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3028 * include/bits/basic_string.tcc (operator+(const _CharT*,
3029 const basic_string&)): No need to go through the append
3030 taking two iterators.
3032 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3034 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
3035 Revert last change to use std::min: machine language is worse.
3036 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
3037 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3038 (find_last_not_of(_CharT, size_type)): Ditto.
3040 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
3041 size_type)): Discard the value returned by _M_check.
3042 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
3043 (append(const basic_string&, size_type, size_type)): Ditto.
3044 (copy(_CharT*, size_type, size_type)): Ditto.
3045 (compare(size_type, size_type, const basic_string&)): Ditto.
3046 (compare(size_type, size_type, const basic_string&,
3047 size_type, size_type)): Ditto.
3048 (compare(size_type, size_type, const _CharT*)): Ditto.
3049 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3051 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3053 * include/bits/basic_string.h (insert(size_type,
3054 const basic_string&, size_type, size_type)): Define inline here.
3055 * include/bits/basic_string.tcc (insert(size_type,
3056 const basic_string&, size_type, size_type)): Move inline.
3058 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3060 * include/bits/basic_string.h (assign(const basic_string&,
3061 size_type, size_type)): Define inline here.
3062 (replace(size_type, size_type, const basic_string&,
3063 size_type, size_type)): Ditto.
3064 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3065 _InputIterator, __false_type)): Only declare.
3066 (_M_replace(iterator, iterator, _InputIterator,
3067 _InputIterator)): Remove.
3068 * include/bits/basic_string.tcc (assign(const basic_string&,
3069 size_type, size_type)): Move inline.
3070 (replace(size_type, size_type, const basic_string&,
3071 size_type, size_type)): Ditto.
3072 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3073 _InputIterator, __false_type)): Define, now does also what
3074 _M_replace did before.
3075 * src/string-inst.cc (_M_replace): Don't instantiate.
3077 * include/bits/basic_string.tcc (find(const _CharT*,
3078 size_type, size_type)): Tidy.
3079 (rfind(_CharT, size_type)): Ditto.
3080 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
3081 (find_first_not_of(_CharT, size_type)): Ditto.
3082 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3083 (find_last_not_of(_CharT, size_type)): Ditto.
3085 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3088 * include/debug/bitset (operator|=): Fix typo.
3089 * testsuite/23_containers/bitset/operations/13838.cc: New.
3091 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3093 * include/bits/basic_string.tcc (insert(size_type,
3094 const _CharT*, size_type __n)): Fix length_error check.
3095 (replace(size_type, size_type, const _CharT*, size_type):
3096 Ditto; call _M_replace_safe.
3097 (_M_replace_aux(size_type, size_type, size_type, _CharT):
3098 Fix length_error check.
3099 (_M_replace(iterator, iterator, _InputIterator,
3100 _InputIterator)): Ditto, tweak.
3101 (_M_replace_safe(size_type, size_type, const _CharT*,
3102 size_type)): Remove length_error check.
3104 * include/bits/basic_string.tcc (append(const basic_string&),
3105 append(const basic_string&, size_type, size_type)): Tweak
3108 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
3109 size_type)): If __n == 0 don't call traits::copy.
3111 2004-01-23 Stefan Olsson <stefan@snon.net>
3113 * include/ext/mt_allocator.h: Reduce lock contention.
3115 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3118 * include/bits/fstream.tcc (underflow): Remove unused
3120 * include/bits/streambuf_iterator.h (equal): Ditto.
3121 * include/bits/locale_facets.h (_M_convert_from_char):
3124 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3127 * config/linker-map.gnu (nan): Delete.
3128 * libmath/mathconf.h (NAN, nan): Delete.
3129 * linkage.m4 (nan): Don't check for it.
3130 * libmath/nan.c: Delete file.
3132 * config.h.in, configure: Regenerate.
3134 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3136 * include/bits/basic_string.h (push_back(_CharT)):
3137 Call _M_replace_aux.
3138 (insert(size_type, const basic_string&)): Trivial tweak.
3139 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
3140 (insert(iterator, _CharT)): Ditto.
3141 (erase(size_type, size_type)): Ditto.
3142 (erase(iterator)): Ditto.
3143 (erase(iterator, iterator)): Ditto.
3144 (replace(size_type, size_type, size_type, _CharT)): Ditto.
3146 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
3149 * testsuite/performance/allocator_map_thread.cc: New test.
3151 2004-01-22 Paolo Carlini <pcarlini@suse.de>
3153 * include/bits/locale_facets.tcc
3154 (money_put::do_put(..., long double)): Use the basic_string
3155 constructor for char arrays, not that for C-strings, to pass
3156 __digits to do_put(..., const string_type&): __ws isn't
3159 2004-01-22 Paolo Carlini <pcarlini@suse.de>
3161 * include/bits/basic_string.h (_M_replace_safe): Change
3162 signatures to take size_types and const _CharT*.
3163 (_M_replace_aux): Likewise, takes size_types instead of
3165 (append(size_type, _CharT)): Update call.
3166 (assign(size_type, _CharT)): Ditto.
3167 (replace(iterator, iterator, size_type, _CharT)): Ditto.
3168 (_M_replace_dispatch(iterator, iterator, _Integer,
3169 _Integer, __true_type)): Ditto.
3170 * include/bits/basic_string.tcc (assign(const _CharT*,
3172 (insert(size_type, const _CharT*, size_type)): Ditto.
3173 (replace(size_type, size_type, const _CharT*,
3175 (_M_replace(iterator, iterator, _InputIterator,
3176 _InputIterator)): Ditto.
3177 (append(const basic_string&)): Ditto.
3178 (append(const basic_string&, size_type, size_type): Ditto.
3179 (append(const _CharT*, size_type): Ditto.
3180 (_M_replace_safe, _M_replace_safe): Change definitions
3181 accordingly, simplify.
3182 * string-inst.cc (_M_replace_safe): Don't instantiate.
3184 2004-01-21 Paolo Carlini <pcarlini@suse.de>
3186 * include/bits/basic_string.tcc (append(const basic_string&)):
3187 Revert previous change.
3188 (append(const basic_string&, size_type, size_type)): Revert
3189 previous change, use _M_check and _M_limit.
3191 2004-01-21 Paolo Carlini <pcarlini@suse.de>
3193 * include/bits/basic_string.h (_M_check): Change to return
3194 a checked __pos and take an additional const char* argument.
3195 (_M_fold): Rename to _M_limit, change to return a size_type,
3196 corresponding to the __off limited to the actual length.
3197 (insert(size_type, size_type, _CharT)): Update call, call
3199 (insert(iterator, _CharT)): Call replace(iterator, iterator,
3200 size_type, _CharT) instead.
3201 (erase(size_type, size_type)): Update calls.
3202 (replace(size_type, size_type, size_type, _CharT)): Ditto.
3203 (substr(size_type, size_type)): Use _M_check.
3204 * include/bits/basic_string.tcc (basic_string(const basic_string&,
3205 size_type, size_type)): Update calls.
3206 (basic_string(const basic_string&, size_type, size_type,
3207 const _Alloc&)): Ditto.
3208 (assign(const basic_string&, size_type, size_type)): Use the
3209 new _M_check and _M_limit.
3210 (insert(size_type, const basic_string&, size_type, size_type):
3212 (insert(size_type, const _CharT*, size_type)): Ditto.
3213 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
3214 (replace(size_type, size_type, const basic_string&,
3215 size_type, size_type)): Ditto.
3216 (append(const basic_string&)): Ditto.
3217 (append(const basic_string&, size_type, size_type)): Ditto.
3218 (copy(_CharT*, size_type, size_type)): Ditto.
3219 (compare(size_type, size_type, const basic_string&)): Ditto.
3220 (compare(size_type, size_type, const basic_string&,size_type,
3222 (compare(size_type, size_type, const _CharT*)): Ditto.
3223 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3225 2004-01-19 Stefan Olsson <stefan@snon.net>
3227 * include/ext/mt_allocator.h: If a thread, when it dies, still has
3228 memory on it's freelist this memory is not returned to global
3229 list. Simplification of deallocate so that memory is always
3230 returned to the calling thread id's freelist instead of to
3231 global. Fix typos. Add volatile where appropriate.
3233 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
3235 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
3236 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
3237 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
3239 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3241 * src/debug.cc: Make sure all the names are prefixed with
3242 double (or single) underscore.
3244 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3246 * src/debug.cc: Trivial formatting change.
3248 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3250 * include/bits/basic_string.tcc (_S_construct(size_type,
3251 _CharT, const _Alloc&)): Remove redundant try/catch.
3252 (_M_mutate(size_type, size_type, size_type)): Ditto.
3253 (_M_clone(const _Alloc&, size_type)): Ditto.
3255 2004-01-18 Paolo Carlini <pcarlini@suse.de>
3257 * include/bits/basic_string.h (c_str()): Simplify, due to
3258 21.3.4 the internal representation is always kept null-terminated.
3259 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
3260 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
3261 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
3264 2004-01-18 Paolo Carlini <pcarlini@suse.de>
3266 * include/bits/basic_string.h (append(size_type, _CharT)):
3267 Moved inline, just call _M_replace_aux, no source iterators at
3268 risk of being clobbered.
3269 (assign(size_type, _CharT)): Call directly _M_replace_aux.
3270 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3271 input_iterator_tag)): Remove fifth unused argument.
3272 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3273 _InputIterator, __false_type)): Update call.
3274 * include/bits/basic_string.tcc (replace(size_type, size_type,
3275 const _CharT*, size_type)): Update call.
3276 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
3277 throw string literal.
3278 (_M_replace_safe(iterator, iterator, _ForwardIterator,
3279 _ForwardIterator)): Likewise.
3280 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3281 input_iterator_tag)): Remove fifth unused argument.
3282 (append(size_type __n, _CharT __c)): Move inline.
3283 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
3284 const C*, const C*, input_iterator_tag)): Remove fifth unused
3287 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
3289 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
3290 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
3292 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
3294 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
3297 2004-01-15 Stefan Olsson <stefan@snon.net>
3299 * include/ext/mt_allocator.h: Reuse thread id's as soon as
3300 possible by changing the behaviour of thread_freelist to do
3301 push_front when threads die instead of push_back.
3303 2004-01-14 Paolo Carlini <pcarlini@suse.de>
3305 * include/bits/locale_facets.h (struct __numpunct_cache):
3306 Add member _M_grouping_size, caching the length of _M_grouping.
3307 (__numpunct_cache<>::_M_cache): Assign the latter.
3308 (__verify_grouping): Move declaration...
3309 * include/bits/locale_facets.tcc (__verify_grouping):
3310 ... here, change signature to take a const char* and a size_t
3311 for the grouping; not a template anymore.
3312 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
3313 Likewise change signature and tweak consistently.
3314 (num_get::_M_extract_float, num_get::_M_extract_int,
3315 num_put::_M_insert_int, num_put::_M_insert_float,
3316 money_get::do_get(string_type&), money_get::do_put(string_type)):
3318 * config/locale/generic/numeric_members.cc
3319 (numpunct<>::_M_initialize_numpunct): Assign the new member.
3320 * config/locale/gnu/numeric_members.cc
3321 (numpunct<>::_M_initialize_numpunct): Likewise.
3322 * src/locale-inst.cc (__add_grouping): Tweak signature.
3323 (__verify_grouping): Don't instantiate, not a template anymore.
3325 * include/bits/locale_facets.h: Rename _M_truename_len ->
3326 _M_truename_size, _M_falsename_len -> _M_falsename_size.
3327 * include/bits/locale_facets.tcc: Likewise.
3328 * config/locale/generic/numeric_members.cc: Likewise.
3329 * config/locale/gnu/numeric_members.cc: Likewise.
3331 2004-01-14 Stefan Olsson <stefan@snon.net>
3333 * include/ext/mt_allocator.h: Fixups.
3334 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
3335 * testsuite/performance/allocator_thread.cc: Same.
3337 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
3339 * testsuite/performance/ifstream_extract_float.cc: Add higher
3341 * testsuite/performance/ofstream_insert_float.cc: Same.
3343 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3345 * src/locale-misc-inst.cc (__convert_from_v(long),
3346 __convert_from_v(unsigned long), __convert_from_v(long long),
3347 __convert_from_v(unsigned long long)): Remove, unused.
3349 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
3351 * testsuite/performance/ifstream_extract_float.cc: New.
3352 * testsuite/performance/ofstream_insert_float.cc: Float generation
3355 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
3356 * 20_util/auto_ptr/1.cc: ...this.
3357 * 20_util/auto_ptr/2.cc: Same.
3358 * 20_util/auto_ptr/3.cc: Same.
3359 * 20_util/auto_ptr/3946.cc: Same.
3360 * 20_util/auto_ptr/4.cc: Same.
3361 * 20_util/auto_ptr/5.cc: Same.
3362 * 20_util/auto_ptr/6.cc: Same.
3363 * 20_util/auto_ptr/7.cc: Same.
3364 * 20_util/auto_ptr/assign_neg.cc
3365 * 20_util/pairs.cc: Break into...
3366 * 20_util/pair/1.cc: ...this.
3367 * 20_util/pair/2.cc: Same.
3368 * 20_util/pair/3.cc: Same.
3369 * 20_util/pair/4.cc: Same.
3371 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3373 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
3374 Set correctly just basefield, the only group that matters.
3376 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3378 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
3379 (_Rope_rep_base): Inherit directly from the rope allocator;
3380 use rebinding instead of _Alloc_traits; pick up data member
3381 from _Rope_rep_alloc_base.
3382 (_Rope_alloc_base): Eliminate.
3383 (_Rope_base): Inherit directly from the rope allocator; use
3384 rebinding instead of _Alloc_traits; pick up data member from
3386 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
3387 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
3389 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3392 * include/bits/basic_string.tcc (compare(size_type, size_type,
3393 const _CharT*, size_type)): Implement correctly the resolution
3394 of DR 5: basically, s is a char array, -not- a C string.
3395 * include/bits/basic_string.h: Tweak some comments.
3396 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
3397 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
3399 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
3401 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
3404 2004-01-12 Paolo Carlini <pcarlini@suse.de>
3406 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
3408 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
3411 2004-01-12 Paolo Carlini <pcarlini@suse.de>
3413 * include/bits/locale_facets.h (struct __numpunct_cache):
3414 Add members _M_truename_len and _M_falsename_len, caching
3415 the lengths of _M_truename and _M_falsename.
3416 (__numpunct_cache<>::_M_cache): Assign the latter.
3417 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
3418 num_put::do_put(bool)): Use the new members, thus avoiding
3419 computing string lengths again and again.
3420 * config/locale/generic/numeric_members.cc
3421 (numpunct<>::_M_initialize_numpunct): Assign the new members.
3422 * config/locale/gnu/numeric_members.cc
3423 (numpunct<>::_M_initialize_numpunct): Likewise.
3425 2004-01-12 Mark Mitchell <mark@codesourcery.com>
3427 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
3428 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
3430 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
3431 and remove Cygwin XFAIL.
3432 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
3433 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
3434 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
3435 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
3437 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3438 * testsuite/27_io/objects/char/7.cc: Likewise.
3439 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
3440 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
3441 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
3443 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
3445 * include/std/std_complex.h (std::complex<>::real): Return a
3446 reference. Add non-const overload.
3447 (std::complex<>::real): Likewise.
3448 (std::real): Likewise.
3449 (std::imag): Likewise.
3450 (std::operator+): Tidy.
3451 (std::operator-): Likewise.
3452 (std::operator*): Likewise.
3453 (std::operator/): Likewise.
3454 (std::operator>>): Likewise.
3456 2004-01-11 Paolo Carlini <pcarlini@suse.de>
3459 * include/bits/fstream.tcc (imbue): Exploit the external
3460 buffer to imbue 'on the fly' a new locale and convert its
3461 remainder with the new codecvt facet.
3462 (underflow): Tweak slightly to deal with this special case.
3463 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
3464 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
3465 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
3466 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
3467 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
3469 2004-01-10 Paolo Carlini <pcarlini@suse.de>
3471 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
3474 2004-01-10 Paolo Carlini <pcarlini@suse.de>
3477 * include/bits/locale_classes.h (class locale): Fix category
3479 * testsuite/22_locale/locale/13630.cc: Add.
3481 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
3483 * include/bits/locale_facets.h: Make a name really dependent. This
3484 will be needed when Core Issue 224 is implemented.
3486 2004-01-09 Paolo Carlini <pcarlini@suse.de>
3488 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
3489 * testsuite/performance/allocator_thread.cc: Likewise.
3491 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
3493 * crossconfig.m4: Add LFS, io bits to linux cross config.
3494 * acconfig.h: Remove obsolete bits, reorder.
3495 * config.h.in: Regenerate.
3499 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
3501 * include/bits/stl_list.h:
3502 * include/bits/list.tc:
3504 Performance enhancements for destructor, push_front(),
3505 push_back(), pop_front(), pop_back(), sort()
3506 Eliminated static_casts where possible.
3507 Moved code out of header files into new src/list.cc
3508 implementation file for library where possible.
3509 Remove inheritance from iterator class and create separate
3510 classes for non-constant and constant iterators.
3511 * include/bits/stl_tree.h (_Rb_tree class):
3513 Only erase contents in destructor.
3514 Eliminate unnecessary initialization in assignment operator.
3515 Optimize for the nominal case by not checking whether
3516 container is empty in clear().
3517 Re-order test in _M_insert() to improve performance.
3518 Move initialization of new node's left & right pointers to
3519 src/tree.cc to where new node's colour is initialized
3520 and to reduce the amount of inline code.
3521 Use _M_leftmost() and _M_end() to improve readability where
3523 Create separate classes for non-constant and constant
3524 iterators to clarify code, avoid extra template parameters and
3525 casting away constness.
3527 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
3529 * src/Makefile.am (sources): Add list.cc, tree.cc.
3530 * src/stl_tree.cc: Move to...
3531 * src/tree.cc: ...here.
3533 * config/linker-map.gnu: Tweaks.
3534 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
3535 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
3537 * bits/stl_vector.h: Column wrap comments.
3539 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
3541 (re-open) PR libstdc++/12658
3542 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
3543 (locale::global): Likewise.
3545 2004-01-07 Paolo Carlini <pcarlini@suse.de>
3547 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
3548 Remove redundant #include.
3549 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
3550 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
3551 re-enable normal testing.
3552 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
3554 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
3555 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
3557 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
3559 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
3561 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
3563 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
3565 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
3567 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
3569 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
3570 More properly, #include <locale>.
3571 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
3572 Remove redundant #include.
3573 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
3574 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
3575 redundant DejaGnu directive.
3576 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
3579 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
3580 Stefan Olsson <stefan@snon.net>
3582 * scripts/check_performance: Use -pthread.
3583 * testsuite/performance/allocator.cc: Tweaks, add list.
3584 * testsuite/performance/allocator_thread.cc: New.
3586 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
3588 * include/bits/locale_facets.h: Document public classes and
3590 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
3593 2004-01-06 Paolo Carlini <pcarlini@suse.de>
3595 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
3596 Remove redundant #includes.
3597 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
3599 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
3601 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
3602 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
3603 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
3604 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
3605 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
3606 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
3607 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
3608 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
3609 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
3610 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
3611 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
3612 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
3613 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
3614 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
3615 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
3617 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
3619 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
3621 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
3623 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
3625 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
3626 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
3627 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
3629 2004-01-04 Paolo Carlini <pcarlini@suse.de>
3631 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
3632 Remove redundant #includes.
3633 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
3635 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
3637 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
3639 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
3641 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
3643 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
3645 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3647 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3649 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3651 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
3653 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
3655 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
3658 2004-01-04 Mark Mitchell <mark@codesourcery.com>
3661 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
3663 * testsuite/27_io/basic_fstream/4.cc: Likewise.
3664 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
3665 * testsuite/27_io/basic_ios/4.cc: Likewise.
3666 * testsuite/27_io/basic_iostream/4.cc: Likewise.
3667 * testsuite/27_io/basic_istream/4.cc: Likewise.
3668 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
3669 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
3670 * testsuite/27_io/basic_ostream/4.cc: Likewise.
3671 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
3672 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
3673 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
3675 2004-01-04 Paolo Carlini <pcarlini@suse.de>
3677 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
3678 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
3679 always use double underscored names.
3680 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
3682 * include/bits/locale_facets.h (struct __numpunct_cache):
3683 Dimension _M_atoms_out and _M_atoms_in one position smaller.
3684 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out