1 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2 Paolo Carlini <pcarlini@suse.de>
4 * include/bits/cpp_type_traits.h: Add __is_pointer and
5 __is_trivially_copyable.
6 * include/bits/stl_algobase.h (fill, fill_n): Slightly
7 tweak to use the latter.
8 (__copy_backward_dispatch): Remove.
9 (__copy_backward_aux): Rewrite to use __is_pointer and
10 __is_trivially_copyable and __copy_backward::copy_b.
11 (__copy_backward): Rewrite as a class template and two
14 2004-06-30 Paolo Carlini <pcarlini@suse.de>
16 * testsuite/25_algorithms/copy.cc: Move to...
17 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
18 * testsuite/25_algorithms/copy/2.cc: New.
19 * testsuite/25_algorithms/copy/3.cc: New.
20 * testsuite/25_algorithms/copy/4.cc: New.
22 2004-06-29 Paul Brook <paul@codesourcery.com>
24 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
25 element size in the cookie.
27 2004-06-28 Paolo Carlini <pcarlini@suse.de>
29 * include/bits/cpp_type_traits.h: Move the additions to
30 namespace __gnu_internal outside of namespace std; trivial
33 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
35 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
36 Revert -Weffc++ changes that defined copy ctory and or assignment
38 * libsupc++/tinfo.cc (__upcast_result): Same.
40 2004-06-28 Paolo Carlini <pcarlini@suse.de>
42 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
43 the algorithm used to name the categories.
45 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
47 * include/Makefile.am: Give a .gch extension to
48 the PCH files, not only to the directory.
49 * include/Makefile.in: Regenerate.
51 2004-06-28 Paolo Carlini <pcarlini@suse.de>
53 * config/locale/gnu/monetary_members.cc
54 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
55 assignments of _M_decimal_point and _M_thousands_sep.
57 2004-06-27 Paolo Carlini <pcarlini@suse.de>
59 * docs/html/17_intro/contribute.html: Update some links.
60 * docs/html/17_intro/porting-howto.html: Likewise.
61 * docs/html/17_intro/porting-howto.xml: Likewise.
62 * docs/html/18_support/howto.html: Likewise.
63 * docs/html/21_strings/howto.html: Likewise.
64 * docs/html/27_io/howto.html: Likewise.
65 * docs/html/configopts.html: Likewise.
66 * docs/html/ext/howto.html: Likewise.
67 * docs/html/faq/index.html: Likewise.
68 * docs/html/install.html: Don't mention 2.x compilers.
70 2004-06-27 Paolo Carlini <pcarlini@suse.de>
72 * include/ext/rope: Trivial formatting fixes.
73 * include/ext/ropeimpl.h: Likewise.
75 2004-06-26 Paolo Carlini <pcarlini@suse.de>
78 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
79 availability of strto(u)ll, not used anymore in the iostreams.
80 * configure: Regenerate.
82 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
85 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
87 * configure: Regenerate.
89 2004-06-25 Paul Brook <paul@codesourcery.com>
91 * libsupc++/cxxabi.h: Define __ARM_EABI__
93 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
95 2004-06-25 Paul Brook <paul@codesourcery.com>
97 * include/bits/concurrence.h: Still create mutex object when
100 2004-06-25 Paolo Carlini <pcarlini@suse.de>
102 * include/bits/stl_algobase.h (fill, fill_n): Revert last
103 change: actually we need to copy construct an object of type
104 _Tp, not of type iterator_traits<>::value_type, therefore the
107 2004-06-25 Paolo Carlini <pcarlini@suse.de>
109 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
110 dispatch: use iterator_traits<>::value_type, not _Tp.
112 2004-06-25 Paolo Carlini <pcarlini@suse.de>
114 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
115 * testsuite/25_algorithms/fill/2.cc: Likewise.
117 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
118 Paolo Carlini <pcarlini@suse.de>
120 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
121 for fill and fill_n, respectively: when copying is cheap, use a
122 temporary to avoid a memory read in each iteration.
124 2004-06-25 Paolo Carlini <pcarlini@suse.de>
126 * testsuite/25_algorithms/fill/1.cc: New.
127 * testsuite/25_algorithms/fill/2.cc: Likewise.
129 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
131 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
132 Remove copy constructor and assignment operator.
134 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
136 * include/bits/concurrence.h (__gnu_cxx::lock): New.
137 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
138 (__pool_base::_M_get_mutex): New.
139 * include/bits/allocator.h: Tweak.
140 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
141 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
142 * include/bits/stl_threads.h: Remove.
143 * include/Makefile.am: Also here.
144 * include/Makefile.in: Regenerate.
146 * src/locale_init.cc: Use __gnu_cxx::lock.
148 * src/allocator.cc: Move all instantiations...
149 * src/allocator-inst.cc: ...here.
151 2004-06-23 Andrew Pinski <apinski@apple.com>
153 * linkage.m4: Remove check for libmx.
154 * configure: Regenerate.
156 2004-06-23 Paolo Carlini <pcarlini@suse.de>
159 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
160 Don't require the _DefaultConstructibleConcept.
161 (struct _ForwardIteratorConcept): Require it here.
163 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
165 * include/bits/istream.tcc (getline): Make sure arguments passed
166 to min/max have the same type.
167 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
168 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
170 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
172 * docs/html/abi.html: Update links.
174 2004-06-22 Paolo Carlini <pcarlini@suse.de>
176 * testsuite/26_numerics/complex_inserters_extractors.cc,
177 complex_value.cc, buggy_complex.cc: Move to...
178 * testsuite/26_numerics/complex/: ... here.
179 * testsuite/26_numerics/c99_classification_macros_c++.cc,
180 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
181 fabs_inline.cc: Move to...
182 * testsuite/26_numerics/cmath/: ... here.
183 * testsuite/26_numerics/binary_closure.cc, slice.cc,
184 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
185 valarray_name_lookup.cc, valarray_operators.cc,
186 valarray_subset_assignment.cc: Move to...
187 * testsuite/26_numerics/valarray/: ... here (new dir).
188 * testsuite/26_numerics/sum_diff.cc: Move to...
189 * testsuite/26_numerics/numeric/: ... here (new dir).
191 2004-06-22 Paolo Carlini <pcarlini@suse.de>
193 * include/std/std_istream.h (ignore(streamsize __n = 1,
194 int_type __delim = traits_type::eof())): Split into...
195 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
196 int_type __delim)): The first two can be much more simpler
197 and efficient than the fully general case; also, the last
198 two can take advantage of the same mechanism already used
200 * include/bits/istream.tcc (ignore(streamsize __n = 1,
201 int_type __delim = traits_type::eof()): Remove.
202 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
203 int_type __delim)): New.
205 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
207 * config/linker-map.gnu: Use wildcards for
208 __basic_file::sys_open(FILE*, _Ios_Openmode).
210 2004-06-20 Paolo Carlini <pcarlini@suse.de>
212 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
214 2004-06-18 Paolo Carlini <pcarlini@suse.de>
216 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
217 the alignment requested.
218 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
219 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
220 (__mt_alloc<>::deallocate): Likewise.
222 2004-06-18 Paolo Carlini <pcarlini@suse.de>
225 * include/debug/safe_base.h
226 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
227 _Safe_sequence_base::operator=): Provide definitions.
228 * testsuite/23_containers/bitset/cons/16020.cc: New.
230 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
232 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
233 (__pool_base): Remove unused template parameter. Add
234 protected. Move lock data into __pool_base::_Lock. Remove static
236 (__pool_base::_M_get_free_list): New.
237 (__pool_alloc): Move _S_force new here.
238 * src/allocator.cc: Move out of line __pool_base definitions here.
239 * config/linker-map.gnu: Export bits from __pool_base.
241 2004-06-18 Paolo Carlini <pcarlini@suse.de>
243 * config/locale/gnu/numeric_members.cc
244 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
245 assignments of _M_decimal_point and _M_thousands_sep.
246 * config/locale/gnu/time_members.cc
247 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
248 and reformat assignments of date and time fields.
250 2004-06-16 Paolo Carlini <pcarlini@suse.de>
252 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
253 to use _Data_allocate.
254 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
255 (rope<>::_S_substring): Likewise.
256 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
257 (rope<>::c_str()): Likewise.
258 (rope<>::replace_with_c_str()): Likewise.
260 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
261 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
263 (_Rope_iterator_base<>::_S_setcache): Likewise.
264 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
265 (rope<>::_S_substring): Likewise.
266 (rope<>::_S_dump): Likewise.
267 (rope<>::_S_fetch_ptr): Likewise.
268 (rope<>::_S_compare): Likewise.
269 (rope<>::replace_with_c_str()): Likewise.
271 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
272 * testsuite/ext/rope/2.cc: New.
274 2004-06-16 Paolo Carlini <pcarlini@suse.de>
275 Matt Austern <austern@apple.com>
277 * testsuite/ext/rope/3.cc: New.
279 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
281 * acinclude.m4: Remove useless multilib configury.
282 * Makefile.am: Remove useless multilib rules.
283 * aclocal.m4: Regenerate.
284 * Makefile.in: Regenerate.
285 * configure: Regenerate.
287 2004-06-15 Paolo Carlini <pcarlini@suse.de>
289 * include/ext/hashtable.h: Trivial formatting fixes.
290 * include/ext/rb_tree: Likewise.
292 2004-06-14 Paolo Carlini <pcarlini@suse.de>
294 * include/ext/hash_map: Trivial formatting fixes.
295 * include/ext/hash_set: Likewise.
296 * include/ext/memory: Likewise.
297 * include/ext/numeric: Likewise.
299 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
301 * Makefile.in: Regenerate with automake 1.8.5.
303 * include/Makefile.in: Same.
304 * libmath/Makefile.in: Same.
305 * libsupc++/Makefile.in: Same.
306 * po/Makefile.in: Same.
307 * src/Makefile.in: Same.
308 * testsuite/Makefile.in: Same.
310 2004-06-14 Paolo Carlini <pcarlini@suse.de>
312 * include/ext/slist: Trivial formatting fixes.
314 2004-06-14 Paolo Carlini <pcarlini@suse.de>
316 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
317 Don't use the 'magic number' 10 in the computation of __minlen;
318 never access __name past __minlen; in the loop over __i3, don't
319 decrease __nmatches and increase __i3 at once, only either of
322 2004-06-13 Paolo Carlini <pcarlini@suse.de>
324 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
325 time_get<>::do_get_date): Use only once _M_extract_via_format,
326 instead of going through "%X"/"%x" and calling it two times
329 2004-06-12 Paolo Carlini <pcarlini@suse.de>
331 * include/ext/algorithm: Trivial formatting fixes.
332 * include/ext/functional: Likewise.
333 * include/ext/hash_fun.h: Likewise.
334 * include/ext/iterator: Likewise.
336 2004-06-12 Paolo Carlini <pcarlini@suse.de>
338 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
339 size_type)): Reimplement using std::search.
340 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
342 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
344 * testsuite/performance/21_strings/string_find.cc: New.
346 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
348 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
350 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
352 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
353 this function return a value.
355 2004-06-09 Paolo Carlini <pcarlini@suse.de>
358 * include/bits/stl_deque.h: Consistently with stl_set.h, define
359 pointer as allocator's pointer, likewise for reference,
360 const_pointer, and const_reference.
361 * include/bits/stl_list.h: Likewise.
362 * include/bits/stl_map.h: Likewise.
363 * include/bits/stl_multimap.h: Likewise.
364 * include/bits/stl_vector.h: Likewise.
366 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
368 * crossconfig.m4: Remove signbit, signbitf, signbitl.
369 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
370 builtin math functions instead of AC_DEFINE_UNQUOTED.
371 * configure: Regenerate.
373 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
375 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
376 * docs/doxygen/mainpage.html: Remove links.
378 2004-06-08 Jason Merrill <jason@redhat.com>
380 * config/linker-map.gnu: Use wildcards for
381 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
383 2004-06-08 Paolo Carlini <pcarlini@suse.de>
385 * include/ext/pool_allocator.h: Convert to a global free-list,
386 as per the original SGI/HP design: move the implementation
387 details to struct __pool_base, from which __pool_alloc derives.
388 * src/allocator.cc: Instantiate __pool_base.
390 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
391 Paolo Carlini <pcarlini@suse.de>
393 * testsuite/testsuite_performance.h
394 (resource_counter::allocated_memory): Make it return the right
395 number of bytes requested by the allocators/application. This is
396 the sbrk+mmaped memory.
398 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
400 * include/std/std_complex.h (log): Tidy.
402 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
404 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
405 * testsuite/testsuite_abi.cc: Same.
406 * configure.ac (libtool_VERSION): Bump to 6:1:0.
407 * configure: Regenerate.
408 * aclocal.m4: Regenerate.
410 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
412 * include/std/std_complex.h (complex<_Tp>): Properly indent
414 (complex<>::__rep): New.
415 (__complex_abs): New. Dispatch to built-ins.
417 (__complex_arg): New. Dispatch to built-ins.
419 (__complex_cos): New. Dispatch to built-ins.
421 (__complex_cosh): New. Dispatch to built-ins.
423 (__complex_exp): New. Dispatch to built-ins.
425 (__complex_log): New. Dispatch to built-ins.
427 (__complex_sin): New. Dispatch to built-ins.
429 (__complex_sinh): New. Dispatch to built-ins.
431 (__complex_sqrt): New. Dispatch to built-ins.
433 (__complex_tan): New. Dispatch to built-ins.
435 (__complex_tanh): New. Dispatch to built-ins.
437 (__complex_pow): New. Dispatch to built-ins.
440 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
441 Benjamin Kosnik <bkoz@redhat.com>
444 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
445 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
446 * config/io/basic_file_stdio.cc (__basic_file::file): New.
447 * config/io/basic_file_stdio.h: Define.
449 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
452 * docs/html/documentation.html: Update doxygen links for 3.4.0.
454 2004-05-27 Jan Beulich <jbeulich@novell.com>
456 * scripts/create_testsuite_files: Tweak.
458 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
461 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
462 bits to do the same thing.
464 2004-05-24 Paolo Carlini <pcarlini@suse.de>
466 * include/bits/istream.tcc (ignore): Correctly deal with
467 n == numeric_limits<streamsize>::max().
468 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
470 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
471 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
472 __n == numeric_limits<>::min().
474 * include/bits/istream.tcc: Minor tweaks.
476 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
478 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
480 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
482 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
484 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
486 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
490 * include/bits/basic_string.h (basic_string::operator=): Return
491 pointer to this instead of result of assign. Although redundant,
492 this doesn't impact resultant codegen.
494 * include/bits/locale_facets.h (__numpunct_cache): Declare
495 assignment opxserator and copy constructor private.
496 (__timepunct_cache): Same.
497 (__moneypunct_cache): Same.
498 (collate): Use member initialization list for _M_c_locale_collate.
499 * config/locale/gnu/messages_members.h: Same.
500 * config/locale/gnu/time_members.h (__timepunct): Same.
501 * src/codecvt.cc: Use member initialization list to initialize
503 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
504 * config/os/gnu-linux/ctype_noninline.h: Same.
505 * src/locale.cc (_Impl): Same.
506 * src/locale_init.cc: Same.
507 * src/localename.cc: Same.
509 * include/bits/basic_ios.h (basic_ios): Complete member
511 * include/bits/istream.tcc (basic_istream::sentry): Same.
512 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
513 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
514 _M_pback to member initialization list.
515 * include/std/std_streambuf.h: Same.
516 * include/std/std_sstream.h: Same, for _M_mode.
517 * src/ios.cc (ios_base): Same.
519 * include/ext/rope: Make derived classes match exception
521 specifications. Add copy constructors and assignment operators.
523 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
524 constructor and assignment operator protected.
525 (_Safe_iterator_base): Same.
526 * include/debug/formatter.h (_Error_formatter): Define copy
527 constructor and assignment operator.
529 * include/backward/strstream: Declare assignment operator and copy
532 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
534 * testsuite/testsuite_hooks.h (func_callback): Declare copy
535 constructor and assignment operator private.
536 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
537 exception specifications of base class.
538 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
539 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
540 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
542 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
544 * libsupc++/cxxabi.h: Remove duplicated and useless public and
545 private keywords in class declarations. Format. Use
546 stddef.h. Expose declarations to "C" compilation.
547 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
549 (__dyncast_result): Same.
550 * libsupc++/vec.cc (uncatch_exception): Same, use member
553 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
555 * testsuite/abi_check.cc: Add unistd.h.
557 2004-05-22 Paolo Carlini <pcarlini@suse.de>
560 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
561 __int_to_char(unsigned long long)): Showpos is not relevant
563 * testsuite/22_locale/num_put/put/char/15565.cc: New.
564 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
566 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
568 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
569 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
570 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
571 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
572 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
573 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
575 2004-05-21 Matthias Klose <doko@debian.org>
577 * docs/doxygen/run_doxygen: Bump required version.
579 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
581 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
582 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
584 2004-05-21 Paolo Carlini <pcarlini@suse.de>
586 * include/bits/istream.tcc (ignore): Remove redundant line.
587 (readsome): Tidy, closely following 27.6.1.3, p30.
589 2004-05-20 Paolo Carlini <pcarlini@suse.de>
591 * include/bits/istream.tcc (operator>>(basic_istream<>&,
592 basic_string<>&)): Use a temporary buffer, thus avoiding
593 reallocation for common case.
594 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
596 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
599 * include/bits/istream.tcc: Const-ification of a few variables.
601 * include/bits/ostream.tcc: Trivial formatting fixes and
602 const-ification of some variables.
604 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
608 * docs/doxygen/Intro.3: Remove Allocators.3.
609 Add new extension headers, extension namespace list.
610 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
611 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
612 __gnu_debug::. Remove __policy_ renames.
613 * docs/doxygen/guide.html: Add dot note.
614 * docs/doxygen/stdheader.cc: Edit, add files.
615 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
617 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
619 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
621 2004-05-18 Jan Beulich <jbeulich@novell.com>
624 * scripts/create_testsuite_files: Also find source files through
627 2004-05-18 Jan Beulich <jbeulich@novell.com>
630 * testsuite/lib/libstdc++.exp: Make test files writable.
632 2004-05-18 Paolo Carlini <pcarlini@suse.de>
634 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
637 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
639 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
640 allocation loop which removes blocks from the global free list
641 from O(N) to O(1) when the required blocks are <= the number
644 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
646 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
648 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
650 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
651 * testsuite/23_containers/deque/14340.cc: New.
652 * testsuite/23_containers/list/14340.cc: New.
653 * testsuite/23_containers/map/14340.cc: New.
654 * testsuite/23_containers/multimap/14340.cc: New.
655 * testsuite/23_containers/multiset/14340.cc: New.
656 * testsuite/23_containers/set/14340.cc: New.
657 * testsuite/23_containers/vector/14340.cc: New.
659 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
662 * include/debug/safe_iterator.h (_Safe_iterator converting
663 constructor): Only allow declaration to instantiate when the
664 incoming _Safe_iterator has exactly the right iterator type.
666 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
668 * include/bits/boost_concept_check.h: Fix old attribute syntax.
669 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
670 to pass concept-checks.
671 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
672 * testsuite/23_containers/set/modifiers/swap.cc: Same.
673 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
675 2004-05-16 Paolo Carlini <pcarlini@suse.de>
677 * include/std/std_bitset.h: Minor formatting fixes.
679 2004-05-16 Paolo Carlini <pcarlini@suse.de>
681 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
682 Consistently update __bin._M_free[0].
683 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
684 __bin._M_free[0] to simplify the while loop (i.e., the number
685 of iterations becomes known at the outset).
687 2004-05-15 Paolo Carlini <pcarlini@suse.de>
689 * include/std/std_bitset.h: Trivial formatting fixes.
691 2004-05-14 Paolo Carlini <pcarlini@suse.de>
692 Ivan Godard <igodard@pacbell.net>
695 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
696 * testsuite/23_containers/bitset/ext/15361.cc: New.
698 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
701 * crossconfig.m4: Add C99 math bits for linux crosses.
702 * configure: Regenerate.
704 2004-05-13 Simon Marshall <simon.marshall@misys.com>
705 Benjamin Kosnik <bkoz@redhat.com>
708 * include/bits/locale_facets.h: Fix for -fno-for-scope.
709 * include/debug/safe_sequence.h: Same.
710 * include/debug/safe_iterator.tcc: Same.
711 * src/debug.cc: Same.
712 * src/locale.cc: Same.
713 * src/locale_init.cc: Same.
714 * src/localename.cc: Same.
715 * config/locale/gnu/ctype_members.cc: Same.
716 * config/locale/gnu/numeric_members.cc: Same.
717 * testsuite/testsuite_abi.cc: Same.
718 * testsuite/testsuite_hooks.cc: Same.
720 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
722 * docs/html/abi.html: Document effect of -fabi-version on value
723 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
726 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
729 * docs/html/faq/index.html: Update docs for libsupc++ usage.
731 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
734 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
736 (_GLIBCXX_mutex_address): Same.
737 (_GLIBCXX_once): Same.
738 (_GLIBCXX_mutex_init): Same.
739 (_GLIBCXX_mutex_address_init): Same.
741 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
743 * docs/html/abi.html: New.
744 * docs/html/abi.txt: Remove.
745 * docs/html/documentation.html: Add link.
746 * testsuite/Makefile.am: Add files.
747 * testsuite/Makefile.in: Regenerated.
748 * testsuite/abi_check.cc: Move and modify code into...
749 * testsuite/testsuite_abi.cc: Add.
750 * testsuite/testsuite_abi.h: Add.
752 * docs/html/17_intro/TODO: Update.
753 * include/bits/stl_pair.h: Format.
755 2004-05-06 Matthias Klose <doko@debian.org>
757 * include/backward/iterator.h: Add GPL copyright info,
758 with exception clause.
759 * include/bits/boost_concept_check.h: Likewise.
761 * libsupc++/tinfo.h: Likewise.
762 * po/string_literals.cc: Likewise.
764 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
766 * acinclude.m4: Replace -W with more speaking -Wextra.
767 * configure: Rebuilt.
769 2004-05-03 Paolo Carlini <pcarlini@suse.de>
771 Optimize locale::_M_impl->_M_names for the most common cases:
772 !_M_names[0] means unnamed; !_M_names[1] means all the categories
773 the same name (_M_names[0] && _M_names[1] means that the full set
774 of _M_names must be processed, the general case).
775 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
776 Tweak, saving work when !_M_names[1].
777 (locale::locale(const locale&, _Facet*): Simplify: now just setting
778 _M_names[0] = 0 means unnamed.
779 * src/locale.cc (locale::operator==): Deal first with the common,
780 easy cases, otherwise fall back to locale::name().
781 (locale::name()): Tweak, if !_M_names[0] just return "*".
782 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
783 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
784 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
785 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
786 Simplify when !std::strchr, just updating _M_names[0]; clean up.
787 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
788 for the general case (full set of names), then do the usual work;
791 * src/locale.cc (locale::name()): Reserve space in __ret.
792 * src/locale_init.cc (locale::global(const locale&)): Save
793 the name in a temporary.
794 * src/localename.cc (locale::locale(const char*)): Reserve space
797 2004-04-29 Paolo Carlini <pcarlini@suse.de>
799 * src/locale.cc (locale::operator==): Always avoid constructing
800 locale::name(), directly compare pairs of _M_names.
802 2004-04-26 Paolo Carlini <pcarlini@suse.de>
804 * include/bits/istream.tcc: Fix comment.
806 2004-04-26 Paolo Carlini <pcarlini@suse.de>
808 * include/bits/stl_vector.h: Trivial formatting fixes.
809 * include/bits/vector.tcc: Likewise.
811 2004-04-25 Paolo Carlini <pcarlini@suse.de>
813 PR libstdc++/15002 (continued again)
814 * include/bits/istream.tcc (getline(basic_istream<>&,
815 basic_string<>&, _CharT)): Use a temporary buffer, thus
816 avoiding reallocation for common case.
818 * include/bits/basic_string.tcc (_S_construct(_InIterator,
819 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
820 of temporary buffer to a power of two.
822 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
824 2004-04-25 Paolo Carlini <pcarlini@suse.de>
826 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
828 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
830 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
832 2004-04-24 Paolo Carlini <pcarlini@suse.de>
833 Petur Runolfsson <peturr02@ru.is>
835 PR libstdc++/15002 (continued)
836 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
837 streamsize, char_type)): Use traits::find/copy in a loop to speed
838 up greatly the function in the common case (I/O buffer size >> 1).
840 2004-04-24 Paolo Carlini <pcarlini@suse.de>
842 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
844 * include/bits/istream.tcc (getline(basic_istream<>&,
845 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
846 of sbumpc(), consistently with the other functions, thus also
847 dealing correctly with the case of exceeded string::max_size().
849 2004-04-24 Matthias Klose <doko@debian.org>
851 Jonathan Wakely <cow@compsoc.man.ac.uk>
852 * docs/html/configopts.html: Fix reference to allocator config option.
854 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
856 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
857 * configure: Regenerate.
859 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
861 PR libstdc++/15047, libstdc++/11610
862 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
863 (libstdc++_init): Don't pass outdir to v3-copy-files.
865 2004-04-21 Paolo Carlini <pcarlini@suse.de>
867 * include/bits/deque.tcc: Trivial formatting fixes.
868 * include/bits/stl_deque.h: Likewise.
869 * include/bits/stl_list.h: Likewise.
870 * include/bits/stl_tree.h: Likewise.
872 2004-04-21 Paolo Carlini <pcarlini@suse.de>
873 Andrew Pinski <pinskia@physics.uc.edu>
875 * include/bits/basic_string.tcc (_M_mutate): Don't compute
878 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
880 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
881 Clarify assertion, set test variable to false before assert.
882 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
883 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
884 * testsuite/27_io/ios_base/storage/2.cc: Same.
886 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
888 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
889 * testsuite/27_io/fpos/14320-3.cc: Same.
891 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
892 * testsuite/27_io/fpos/1.cc: Same.
893 * testsuite/27_io/basic_stringstream/2.cc: Same.
894 * testsuite/27_io/basic_stringbuf/4.cc: Same.
895 * testsuite/27_io/basic_stringbuf/1.cc: Same.
896 * testsuite/27_io/basic_stringbuf/2.cc: Same.
897 * testsuite/27_io/basic_streambuf/2.cc: Same.
898 * testsuite/27_io/basic_ostringstream/2.cc: Same.
899 * testsuite/27_io/basic_ostream/2.cc: Same.
900 * testsuite/27_io/basic_ofstream/2.cc: Same.
901 * testsuite/27_io/basic_istringstream/2.cc: Same.
902 * testsuite/27_io/basic_istream/2.cc: Same.
903 * testsuite/27_io/basic_iostream/2.cc: Same.
904 * testsuite/27_io/basic_ios/2.cc: Same.
905 * testsuite/27_io/basic_ifstream/2.cc: Same.
906 * testsuite/27_io/basic_fstream/2.cc: Same.
907 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
909 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
910 unsigned against zero.
911 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
912 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
914 * testsuite/18_support/new_delete_placement.cc: Initialize
915 variables before first use.
916 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
917 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
918 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
919 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
921 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
922 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
924 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
925 * testsuite/27_io/types/2.cc: Same.
927 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
929 * testsuite/27_io/fpos/14775.cc: Same.
931 2004-04-19 Paolo Carlini <pcarlini@suse.de>
933 PR libstdc++/15002 (partial)
934 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
935 Special case __n2 == 1, not calling traits_type::assign/copy.
937 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
939 * include/bits/stl_bvector.h: Use _M_impl._M_start.
941 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
943 * include/bits/c++config (_GLIBCXX_STD): New.
944 * src/list.cc: Use it.
945 * include/std/std_bitset.h: Same.
946 * include/bits/vector.tcc: Same.
947 * include/bits/stl_set.h: Same.
948 * include/bits/stl_multiset.h: Same.
949 * include/bits/stl_multimap.h: Same.
950 * include/bits/stl_map.h: Same.
951 * include/bits/stl_list.h: Same.
952 * include/bits/stl_vector.h: Same.
953 * include/bits/stl_bvector.h: Same.
954 * include/bits/stl_deque.h: Same.
955 * include/bits/deque.tcc: Same.
956 * include/bits/list.tcc: Same.
957 * include/debug/vector: Same.
958 * include/debug/set.h: Same.
959 * include/debug/multiset.h: Same.
960 * include/debug/multimap.h: Same.
961 * include/debug/map.h: Same.
962 * include/debug/list: Same.
963 * include/debug/deque: Same.
964 * include/debug/bitset: Same.
965 * include/debug/formatter.h (__gnu_debug): Remove using directive.
966 Add using declaration for std::type_info.
967 * include/debug/safe_iterator.h: Add using declaration for
968 std::iterator_traits and std::pair.
969 * src/debug_list.cc: New.
970 * src/Makefile.am: Add debug_list.cc.
971 * src/Makefile.in: Regenerate.
972 * config/linker-map.gnu: Add _List_node_base exports for std and
975 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
976 idiom that other containers use.
977 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
979 2004-04-16 Paolo Carlini <pcarlini@suse.de>
982 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
984 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
985 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
987 2004-04-16 Paolo Carlini <pcarlini@suse.de>
989 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
991 * config.h.in: Regenerate.
993 2004-04-16 Paolo Carlini <pcarlini@suse.de>
995 * config/locale/generic/monetary_members.cc
996 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
997 btowc unnecessarily, just cast to wchar_t (the concerned chars
998 all belong to the basic character set).
999 * config/locale/generic/numeric_members.cc
1000 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1001 * config/locale/gnu/monetary_members.cc
1002 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
1003 * config/locale/gnu/numeric_members.cc
1004 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1006 2004-04-15 Paolo Carlini <pcarlini@suse.de>
1008 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
1009 avoid constructing unnecessarily this->name().
1011 2004-04-14 Zack Weinberg <zack@codesourcery.com>
1013 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
1014 Change definition of CXX to use $(shell) instead of backticks.
1015 * testsuite/Makefile.in: Regenerate.
1017 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
1019 * testsuite/performance/20_util/allocator/list_sort_search.cc:
1020 Minor formatting fixes.
1021 * testsuite/performance/20_util/allocator/map_mt_find.cc:
1024 2004-04-12 Paolo Carlini <pcarlini@suse.de>
1026 * config/locale/gnu/numeric_members.cc
1027 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
1028 in __uselocale, since btowc is called for chars belonging to
1029 the basic character set.
1031 2004-04-09 Paolo Carlini <pcarlini@suse.de>
1033 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
1034 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
1035 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
1036 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
1037 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
1038 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
1039 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
1040 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
1041 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
1042 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
1043 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
1044 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
1045 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
1046 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
1047 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
1048 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
1049 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
1051 2004-04-07 Paolo Carlini <pcarlini@suse.de>
1053 * config/locale/generic/time_members.cc
1054 (__timepunct<char>::_M_initialize_timepunct,
1055 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
1056 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
1057 * config/locale/gnu/time_members.cc
1058 (__timepunct<char>::_M_initialize_timepunct,
1059 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
1060 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
1061 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
1063 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
1064 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
1065 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
1066 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
1067 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
1068 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
1069 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
1070 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
1071 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
1072 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
1073 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
1074 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
1075 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
1076 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
1077 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
1078 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
1079 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
1080 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
1081 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
1082 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
1083 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
1084 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
1085 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
1086 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
1087 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
1088 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
1089 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
1090 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
1091 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
1092 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
1093 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
1094 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
1095 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
1096 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
1097 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
1098 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
1100 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
1102 2004-04-07 Paolo Carlini <pcarlini@suse.de>
1104 * config/locale/gnu/monetary_members.cc
1105 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
1106 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
1107 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
1108 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
1109 * config/locale/gnu/numeric_members.cc
1110 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
1111 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
1113 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
1115 Fixups for EDG front end.
1116 * include/ext/rope: Instead of non-existent function
1117 _Data_allocate, use allocator's allocate. Use this.
1118 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
1119 enumerations from _Rope_RopeRep here.
1120 * include/ext/ropeimpl.h: Same.
1121 * src/ext-inst.cc (_S_min_len): Fix up definition.
1123 * config/locale/gnu/ctype_members.cc: Qualify base class members
1125 * config/locale/generic/ctype_members.cc: Same.
1126 * config/locale/gnu/messages_members.h: Same.
1127 * config/locale/generic/messages_members.h: Same.
1128 * src/ctype.cc: Same.
1129 * include/bits/codecvt.h: Same.
1131 * include/bits/boost_concept_check.h: Declare.
1132 (__error_type_must_be_an_unsigned_integer_type): Remove this.
1133 (__error_type_must_be_an_integer_type): Remove this.
1134 (__error_type_must_be_a_signed_integer_type): Remove this.
1136 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
1138 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
1139 specification to definition.
1140 (__cxa_allocate_exception): Same.
1141 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
1142 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
1143 (__cxa_get_globals): Same.
1145 * libsupc++/del_op.cc: Add comment about freestanding.
1147 2004-04-05 Paolo Carlini <pcarlini@suse.de>
1149 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1150 The critical section is actually very small, only two assignments.
1152 2004-04-04 Paolo Carlini <pcarlini@suse.de>
1153 Petur Runolfsson <peturr02@ru.is>
1155 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
1156 adapted from libstdc++/11378.
1158 2004-04-03 Paolo Carlini <pcarlini@suse.de>
1160 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
1161 some duplicated code.
1162 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
1163 in the single threaded case.
1164 * testsuite/performance/20_util/allocator/list_sort_search.cc:
1165 Reorder and renumber the tests consistently with the other testfiles.
1166 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1167 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1168 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1170 2004-04-02 Paolo Carlini <pcarlini@suse.de>
1172 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1173 Rearrange arithmetic to avoid computing two divisions at
1176 2004-04-01 Paolo Carlini <pcarlini@suse.de>
1178 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
1179 Streamline the second half, wrapping it in a single
1180 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
1181 conditionals inside loops.
1183 2004-04-01 Paolo Carlini <pcarlini@suse.de>
1186 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
1187 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
1188 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
1189 to _GLIBCXX_RES_LIMITS.
1190 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
1192 * testsuite/testsuite_hooks.h: Declare set_file_limit.
1193 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
1194 and setrlimit(RLIMIT_FSIZE).
1195 * testsuite/27_io/fpos/14775.cc: New.
1196 * config.h.in: Regenerate.
1197 * configure: Likewise.
1199 2004-03-31 Paolo Carlini <pcarlini@suse.de>
1201 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
1202 In v3 uses of sscanf, the special floating-point numbers INF,
1203 INFINITY, etc., cannot occur in input, therefore, if the latter
1204 is too large, ERANGE is always stored in errno, no need of finitel.
1206 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
1209 * include/bits/stl_tree.h: Adjust initialization list order.
1211 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
1213 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
1215 2004-03-29 Paolo Carlini <pcarlini@suse.de>
1217 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
1218 on allocator behavior, the memory pointed by data2 may well be not
1221 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
1224 * include/bits/basic_string.tcc
1225 (basic_string::basic_string(const basic_string&)): Pass to
1226 _Rep::_M_grab the actual allocator of the string being constructed
1227 not the default constructed one.
1229 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
1232 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
1233 (__enc_traits::_M_destroy): New.
1234 (__enc_traits::~__enc_traits): Use it.
1235 (__enc_traits::operator=): Use _M_destroy, _M_init.
1236 (__enc_traits::__enc_traits): Same.
1238 2004-03-27 Petur Runolfsson <peturr02@ru.is>
1240 * testsuite/ext/enc_filebuf/char/13598.cc: New.
1242 2004-03-27 Paolo Carlini <pcarlini@suse.de>
1244 * include/ext/mt_allocator.h: Uglify consistently names of
1245 variables, members and classes; tidy.
1247 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
1249 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1250 Deallocation loop rewrote.
1252 2004-03-26 Paolo Carlini <pcarlini@suse.de>
1254 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1255 __mt_alloc<>::deallocate): Protect two instances of
1256 block->thread_id with __GTHREADS.
1258 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
1260 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
1261 default argument in constructors.
1262 (_Rb_tree::_M_empty_initialize): Remove.
1264 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
1266 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
1267 * testsuite/23_containers/set/operators/1_neg.cc: Same.
1269 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1271 * include/bits/cpp_type_traits.h: Changed __is_pod
1272 completely. Now, it does not use any of the previous type_traits
1273 to detect the pod types, and it also detects function pointers as
1276 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
1277 which encapsulates the internal implementation of an rb_tree. Made
1278 the allocator a base class of this class instead of the rb_tree,
1279 which was not conforming. This _Rb_tree_impl class is also
1280 specialized on whether the _Compare parameter is a POD type or
1281 not. If so, then it maintains the comparison function as a data
1282 member, otherwise it makes the _Compare parameter a base class of
1283 itself. Also, _M_key_compare is now a function instead of a data
1284 member, so that the above trick can work properly. Delegated the
1285 initialization of the other data members to this newly created
1286 class. Also, now other member functions of rb_tree must refer to
1287 _M_key_compare as _M_impl._M_key_compare(). The other data members
1288 (*) can be referenced to as _M_impl.(*), where
1289 (*) includes _M_header, and _M_node_count.
1291 2004-03-25 Paolo Carlini <pcarlini@suse.de>
1293 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
1294 Add _M_min_bin, the size in bytes of the smallest bin.
1295 (__mt_alloc<>::tune()): Tweak accordingly.
1296 (__mt_alloc<>::tune(size_t, ...)): Likewise.
1297 (__mt_alloc<>::block_record): Change to a union: members next
1298 and thread_id are never used at the same time.
1299 (__mt_alloc<>::allocate): Update consistently.
1300 (__mt_alloc<>::deallocate): Likewise.
1301 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
1302 _S_bin_size for the configurable _M_min_size.
1304 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1306 * include/bits/stl_list.h: Created a _List_impl class and made it
1307 derive from the allocator, instead of the list deriving from the
1308 allocator class, which was not conformant. Changed all references
1309 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
1310 as above (changed all references to the concerned variables).
1312 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1314 * include/bits/stl_deque.h: Created a _Deque_impl class and made
1315 it derive from the allocator, instead of the deque deriving from
1316 the allocator class, which was not conformant. Changed all
1317 references to the _M_start, _M_finish, _M_map, and _M_map_size to
1319 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
1320 qualification in 2 places where it was missing.
1321 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
1323 * include/bits/deque.tcc: Same as above (changed all references to
1324 the concerned variables).
1326 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1328 * include/bits/stl_vector.h: Created a _Vector_impl class and made
1329 it derive from the allocator, instead of the _Vector_base class,
1330 deriving from the allocator which was not conformant. Changed all
1331 references to the _M_start, _M_finish, and _M_end_of_storage to
1333 * include/bits/vector.tcc: Same as above (changed all references
1334 to the concerned variables).
1336 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1338 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
1339 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
1340 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
1342 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
1344 * include/ext/malloc_allocator.h: Fixed the construct function to
1345 call global placement new instead of assignment. Added a check
1346 after the return from malloc to check whether returned pointer is
1347 NULL, and if so, throw std::bad_alloc().
1348 * include/ext/debug_allocator.h: Added a check in the deallocate
1349 function to check whether the user has passed a NULL pointer or
1352 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
1354 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
1356 2004-03-24 Andreas Schwab <schwab@suse.de>
1358 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
1359 warning from IA64 assembler.
1361 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
1363 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
1364 function call __builtin_ctz instead of the while loop.
1365 (allocate) -> If condition has __builtin_expect.
1366 (deallocate) -> Ditto.
1367 Renamed a few left-over variables and typedefs according to the
1368 C++STYLE mentioned in the documentation.
1369 Protected calls to __gthread* by __gthread_active_p(), whose value
1370 is cached in the local variable __threads_active.
1372 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
1374 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1375 Use linear algorithm for producer.
1377 2004-03-24 Paolo Carlini <pcarlini@suse.de>
1379 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1380 __mt_alloc<>::deallocate): Avoid redundant conditionals.
1382 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
1384 * include/bits/locale_facets.h: Tweaks for 80 column.
1385 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
1386 (__moneypunct_cache::_M_cache): Same.
1387 (num_get): Don't inherit from __num_base.
1389 (money_get): Don't inherit from money_base.
1391 (__timepunct::_M_am_pm_format): New.
1392 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
1393 (time_get::_M_extract_name): Same.
1394 (time_get::_M_extract_via_format): Same.
1395 * include/bits/locale_facets.tcc: Tweaks for 80 column.
1396 Use _M_getloc instead of getloc.
1397 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
1398 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
1399 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
1401 2004-03-22 Paolo Carlini <pcarlini@suse.de>
1403 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
1404 * configure: Regenerate.
1405 * config/allocator/pool_allocator_base.h: New.
1406 * include/ext/pool_allocator.h: Convert to a standard-conforming
1408 * src/allocator.cc: Tweak instantiations.
1409 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
1410 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
1411 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
1412 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1413 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1414 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1416 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
1418 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
1419 inline" and attribute-unused. Qualify parameter __mem with
1421 (__exchange_and_add): Ditto. Add back memory clobber to asm.
1423 2004-03-20 Paolo Carlini <pcarlini@suse.de>
1425 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
1427 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
1429 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
1431 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
1433 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
1435 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
1437 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
1439 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
1441 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
1443 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
1446 2004-03-20 Paolo Carlini <pcarlini@suse.de>
1448 * include/std/std_valarray.h: Document DR389 [Ready].
1449 * docs/html/ext/howto.html: Add an entry for DR389.
1451 2004-03-19 Michael Eager <eager@mvista.com>
1453 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
1456 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1458 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
1460 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
1461 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
1462 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
1463 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
1464 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
1465 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
1466 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
1467 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
1468 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
1470 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1471 Petur Runolfsson <peturr02@ru.is>
1474 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
1475 no way to find out the conversion used by the underlying FILE*.
1476 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
1477 * testsuite/27_io/objects/char/9.cc: Tweak.
1479 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1482 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
1483 memory allocation/deallocation calls.
1484 * testsuite/ext/14648.cc: New.
1486 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
1489 * include/backward/bvector.h (bit_vector): Allocator is in std
1492 2004-03-19 Phil Edwards <phil@codesourcery.com>
1494 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
1495 not libiconv. SUBST this variable as well.
1496 * testsuite/Makefile.am (site.exp): New target, based on that
1497 created by automake. Also set libiconv.
1499 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
1500 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1501 testsuite/Makefile.in: Regenerate.
1503 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
1505 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
1506 new_allocator for all hosts.
1507 * configure: Regenerate.
1509 2004-03-16 Paolo Carlini <pcarlini@suse.de>
1511 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
1512 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
1514 2004-03-15 Paolo Carlini <pcarlini@suse.de>
1516 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1517 Adjust the logic underlying the parsing of symbol to deal
1518 correctly with an optional sign component (i.e., when either
1519 negative_sign or positive_sign is empty)
1520 * testsuite/22_locale/money_get/get/char/19.cc: New.
1521 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
1523 2004-03-15 Paolo Carlini <pcarlini@suse.de>
1525 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1526 Do not accept an incomplete currency symbol.
1527 * testsuite/22_locale/money_get/get/char/18.cc: New.
1528 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
1530 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
1532 * config/allocator: New.
1533 * config/allocator/bitmap_allocator_base.h: New.
1534 * config/allocator/malloc_allocator_base.h: New.
1535 * config/allocator/mt_allocator_base.h: New.
1536 * config/allocator/new_allocator_base.h: New.
1537 * include/bits/allocator.h: Include c++allocator.h.
1538 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
1539 * aclocal.m4: Regenerate.
1540 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
1541 * configure: Regenerate.
1542 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
1543 * include/Makefile.in: Regenerate.
1544 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
1546 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
1548 * include/bits/allocator.h: Revert.
1550 2004-03-12 Paolo Carlini <pcarlini@suse.de>
1552 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
1553 * include/bits/gslice_array.h: Add comment about DR 253.
1554 * include/bits/indirect_array.h: Likewise.
1555 * include/bits/mask_array.h: Likewise.
1556 * include/bits/slice_array.h: Likewise.
1558 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
1560 * testsuite/20_util/allocator/14176.cc: New.
1561 * include/ext/mt_allocator.h: Formatting fixes.
1563 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
1565 * include/Makefile.am (ext_headers): Add
1566 ${ext_srcdir}/bitmap_allocator.h .
1567 * include/Makefile.in: Regenerate.
1568 * docs/html/ext/ballocator_doc.txt: New file.
1569 * include/ext/bitmap_allocator.h: New file.
1570 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
1572 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1573 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
1574 test for the bitmap_allocator<>.
1575 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
1576 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1577 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1579 2004-03-11 Paolo Carlini <pcarlini@suse.de>
1581 * include/std/std_complex.h (pow(const complex&, const _Tp&),
1582 pow(const _Tp&, const complex&), pow(const complex&,
1583 const complex&)): Fully qualify with std:: a few calls.
1584 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
1586 2004-03-11 Steven Bosscher <stevenb@suse.de>
1589 * include/c_std/cmath.tcc (__cmath_power): Define inline.
1591 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
1593 * configure.ac: Bump AC_PREREQ to 2.59.
1595 2004-03-10 Paolo Carlini <pcarlini@suse.de>
1597 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
1599 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
1600 Paolo Carlini <pcarlini@suse.de>
1603 * include/std/std_complex.h (pow(const complex&, const _Tp&),
1604 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
1605 * testsuite/26_numerics/complex/13450.cc: New.
1607 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
1608 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
1610 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
1613 * include/bits/gslice_array.h (gslice_array()): Make public.
1614 (operator=(gslice_array)): Make public. Implement.
1615 * include/bits/indirect_array.h (indirect_array()): Make public.
1616 * include/bits/mask_array.h (mask_array()): Make public.
1617 (operator=(mask_array)): Make public. Implement.
1618 * include/bits/valarray_array.tcc (__valarray_copy):
1619 Comment. Add versions for gslice_array and mask_array.
1620 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
1622 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
1624 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
1626 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
1627 * testsuite/23_containers/set/modifiers/swap.cc: Same.
1628 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1629 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1630 * testsuite/23_containers/map/modifiers/swap.cc: Same.
1631 * testsuite/23_containers/list/modifiers/swap.cc: Same.
1633 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
1635 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
1638 * testsuite/23_containers/deque/modifiers/swap.cc: New.
1639 * testsuite/23_containers/list/modifiers/swap.cc: New.
1640 * testsuite/23_containers/map/modifiers/swap.cc: New.
1641 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
1642 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
1643 * testsuite/23_containers/set/modifiers/swap.cc: New.
1644 * testsuite/23_containers/vector/modifiers/swap.cc: New.
1646 2004-03-08 Petur Runolfsson <peturr02@ru.is>
1649 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
1651 2004-03-08 Paolo Carlini <pcarlini@suse.de>
1653 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
1654 * include/bits/stl_multiset.h: Add comment about DR 103.
1655 * include/bits/stl_set.h: Likewise.
1657 2004-03-08 Paolo Carlini <pcarlini@suse.de>
1659 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1660 The value _space_ indicates that at least one space is required
1662 * testsuite/22_locale/money_get/get/char/17.cc: New.
1663 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
1665 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
1666 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
1668 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
1669 Remove redundant conditional on __str.size().
1671 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
1673 * include/bits/allocator.h: Switch defaults to mt_alloc.
1675 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
1677 * include/ext/mt_allocator.h (_S_initialize): If
1678 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
1680 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
1683 * src/locale_init.cc (locale::locale): Lock critical regions with
1685 (locale::global): Same.
1686 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
1687 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
1688 (__glibcxx_mutex_lock): Same.
1690 * config/cpu/generic/atomicity.h: Remove
1691 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
1692 * src/misc-inst.cc: Move all locking bits out of this file.
1694 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
1695 * src/misc-inst.cc: Same.
1696 * config/cpu/hppa/atomicity.h: Same.
1698 * config/linker-map.gnu: Remove types in the signature of atomic
1699 exports, as they may vary.
1701 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1703 * include/bits/locale_facets.tcc: Tweak the comment preceding
1704 has_facet: doesn't throw.
1706 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1708 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
1709 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
1710 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
1711 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
1712 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
1713 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
1714 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
1715 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
1717 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1719 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1720 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
1721 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
1722 * testsuite/testsuite_character.h (struct __gnu_test::character):
1724 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
1727 2004-03-05 Paolo Carlini <pcarlini@suse.de>
1729 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
1731 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
1733 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
1735 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
1737 * testsuite/23_containers/deque/invalidation/4.cc: Same.
1738 * testsuite/23_containers/list/invalidation/1.cc: Same.
1739 * testsuite/23_containers/list/invalidation/2.cc: Same.
1740 * testsuite/23_containers/list/invalidation/3.cc: Same.
1741 * testsuite/23_containers/list/invalidation/4.cc: Same.
1742 * testsuite/23_containers/map/invalidation/2.cc: Same.
1743 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
1744 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1745 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
1746 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1747 * testsuite/23_containers/set/invalidation/1.cc: Same.
1748 * testsuite/23_containers/set/invalidation/2.cc: Same.
1749 * testsuite/23_containers/vector/invalidation/1.cc: Same.
1750 * testsuite/23_containers/vector/invalidation/2.cc: Same.
1751 * testsuite/23_containers/vector/invalidation/3.cc: Same.
1752 * testsuite/23_containers/vector/invalidation/4.cc: Same.
1754 2004-03-04 Paolo Carlini <pcarlini@suse.de>
1756 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
1758 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
1760 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
1761 from the dg-options.
1762 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
1763 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
1764 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
1765 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
1766 * testsuite/23_containers/vector/resize/1.cc: Likewise.
1767 * testsuite/26_numerics/complex_value.cc: Likewise.
1768 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
1769 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1770 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
1771 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1772 * testsuite/27_io/objects/char/5.cc: Likewise.
1773 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
1774 * testsuite/backward/11460.cc: Likewise.
1775 * testsuite/thread/pthread7-rope.cc: Likewise.
1777 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
1778 missing test variable.
1779 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
1780 missing test variable.
1782 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
1784 * testsuite/20_util/allocator/1.cc: Provide explicit
1785 instantiations for non-weak systems.
1786 * testsuite/20_util/binders.cc: Same.
1787 * testsuite/20_util/allocator/8230.cc: Same.
1788 * testsuite/20_util/allocator/10378.cc: Same.
1789 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
1790 * testsuite/22_locale/ctype/is/char/2.cc: Same.
1791 * testsuite/thread/pthread7-rope.cc: Same.
1792 * testsuite/thread/pthread6.cc: Same.
1793 * testsuite/thread/pthread5.cc: Same.
1794 * testsuite/thread/pthread4.cc: Same.
1795 * testsuite/thread/pthread1.cc: Same.
1796 * testsuite/ext/rope.cc: Same.
1797 * testsuite/ext/hash_set.cc: Same.
1798 * testsuite/ext/hash_map.cc: Same.
1799 * testsuite/ext/concept_checks.cc: Same.
1800 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
1801 * testsuite/25_algorithms/unique/2.cc: Same.
1802 * testsuite/25_algorithms/unique/1.cc: Same.
1803 * testsuite/25_algorithms/rotate.cc: Same.
1804 * testsuite/25_algorithms/min_max.cc: Same.
1805 * testsuite/25_algorithms/equal.cc: Same.
1806 * testsuite/24_iterators/rel_ops.cc: Same.
1807 * testsuite/24_iterators/iterator.cc: Same.
1808 * testsuite/24_iterators/insert_iterator.cc: Same.
1809 * testsuite/24_iterators/front_insert_iterator.cc: Same.
1810 * testsuite/24_iterators/back_insert_iterator.cc: Same.
1811 * testsuite/23_containers/vector/resize/1.cc: Same.
1812 * testsuite/23_containers/vector/modifiers/2.cc: Same.
1813 * testsuite/23_containers/vector/modifiers/1.cc: Same.
1814 * testsuite/23_containers/vector/invalidation/4.cc: Same.
1815 * testsuite/23_containers/vector/invalidation/3.cc: Same.
1816 * testsuite/23_containers/vector/invalidation/2.cc: Same.
1817 * testsuite/23_containers/vector/invalidation/1.cc: Same.
1818 * testsuite/23_containers/vector/element_access/1.cc: Same.
1819 * testsuite/23_containers/vector/cons/6513.cc: Same.
1820 * testsuite/23_containers/vector/cons/3.cc: Same.
1821 * testsuite/23_containers/vector/cons/2.cc: Same.
1822 * testsuite/23_containers/vector/cons/1.cc: Same.
1823 * testsuite/23_containers/vector/capacity/8230.cc: Same.
1824 * testsuite/23_containers/vector/capacity/1.cc: Same.
1825 * testsuite/23_containers/vector/bool/6886.cc: Same.
1826 * testsuite/23_containers/stack/members/7158.cc: Same.
1827 * testsuite/23_containers/set/invalidation/2.cc: Same.
1828 * testsuite/23_containers/set/invalidation/1.cc: Same.
1829 * testsuite/23_containers/queue/members/7157.cc: Same.
1830 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
1831 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1832 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1833 * testsuite/23_containers/multiset/insert/1.cc: Same.
1834 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1835 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1836 * testsuite/23_containers/map/operators/1.cc: Same.
1837 * testsuite/23_containers/map/invalidation/2.cc: Same.
1838 * testsuite/23_containers/map/invalidation/1.cc: Same.
1839 * testsuite/23_containers/map/insert/1.cc: Same.
1840 * testsuite/23_containers/list/operators/4.cc: Same.
1841 * testsuite/23_containers/list/operators/3.cc: Same.
1842 * testsuite/23_containers/list/operators/2.cc: Same.
1843 * testsuite/23_containers/list/operators/1.cc: Same.
1844 * testsuite/23_containers/list/modifiers/3.cc: Same.
1845 * testsuite/23_containers/list/modifiers/2.cc: Same.
1846 * testsuite/23_containers/list/modifiers/1.cc: Same.
1847 * testsuite/23_containers/list/invalidation/4.cc: Same.
1848 * testsuite/23_containers/list/invalidation/3.cc: Same.
1849 * testsuite/23_containers/list/invalidation/2.cc: Same.
1850 * testsuite/23_containers/list/invalidation/1.cc: Same.
1851 * testsuite/23_containers/list/cons/9.cc: Same.
1852 * testsuite/23_containers/list/cons/8.cc: Same.
1853 * testsuite/23_containers/list/cons/7.cc: Same.
1854 * testsuite/23_containers/list/cons/6.cc: Same.
1855 * testsuite/23_containers/list/cons/5.cc: Same.
1856 * testsuite/23_containers/list/cons/4.cc: Same.
1857 * testsuite/23_containers/list/cons/3.cc: Same.
1858 * testsuite/23_containers/list/cons/2.cc: Same.
1859 * testsuite/23_containers/list/cons/1.cc: Same.
1860 * testsuite/23_containers/list/capacity/1.cc: Same.
1861 * testsuite/23_containers/deque/operators/1.cc: Same.
1862 * testsuite/23_containers/deque/invalidation/4.cc: Same.
1863 * testsuite/23_containers/deque/invalidation/3.cc: Same.
1864 * testsuite/23_containers/deque/invalidation/2.cc: Same.
1865 * testsuite/23_containers/deque/invalidation/1.cc: Same.
1866 * testsuite/23_containers/deque/cons/2.cc: Same.
1867 * testsuite/23_containers/deque/cons/1.cc: Same.
1869 * src/allocator.cc: Add char, wchar_t instantiations
1870 to match extern template declarations in memory.h.
1872 2004-03-03 Paolo Carlini <pcarlini@suse.de>
1874 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1875 Fix warning regression.
1877 2004-03-03 Paolo Carlini <pcarlini@suse.de>
1879 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1880 Deal properly with empty __digits and negative frac_digits,
1883 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
1885 * docs/html/documentation.html: Regenerate.
1887 2004-03-02 Paolo Carlini <pcarlini@suse.de>
1890 * include/bits/postypes.h (class streamoff): Remove, now
1891 streamoff is just typedef a 64 bit signed integer type.
1892 (class fpos): Tweak consistently.
1893 * testsuite/27_io/fpos/14320-1.cc: New.
1894 * testsuite/27_io/fpos/14320-2.cc: New.
1895 * testsuite/27_io/fpos/14320-3.cc: New.
1896 * testsuite/27_io/fpos/14320-4.cc: New.
1897 * testsuite/27_io/fpos/14320-5.cc: New.
1898 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
1900 2004-03-02 Paolo Carlini <pcarlini@suse.de>
1902 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1903 Reorganize a bit the main parsing loop, thus early detecting
1904 an empty value component.
1905 * testsuite/22_locale/money_get/get/char/16.cc: New.
1906 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
1908 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
1910 Support automake 1.8.2
1911 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
1912 * po/Makefile.am (EXTRA_DIST): New.
1913 * po/Makefile.in: Regenerate.
1914 * Makefile.in: Same.
1915 * include/Makefile.in: Same.
1916 * libmath/Makefile.in: Same.
1917 * libsupc++/Makefile.in: Same.
1918 * src/Makefile.in: Same.
1919 * testsuite/Makefile.in: Same.
1921 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
1922 __GXX_WEAK__ instead of SUPPORTS_WEAK.
1923 (${host_builddir}/gthr-default.h): Same.
1924 (${host_builddir}/gthr.h): Same.
1925 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
1926 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
1928 * aclocal.m4: Regenerate.
1929 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
1930 * config.h.in: Regenerate.
1933 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
1935 Support autoconf 2.59
1936 * acinclude.m4: Quote correctly.
1937 * aclocal.m4: Regenerate.
1940 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
1942 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
1944 * docs/html/18_support/howto.html: Add bit about writing to
1945 stderr, mostly by Zack.
1947 2004-03-01 Paolo Carlini <pcarlini@suse.de>
1949 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
1950 money_get<>::do_get(string_type&)): ... and two more.
1952 2004-03-01 Paolo Carlini <pcarlini@suse.de>
1954 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1955 Fix thinkos in the switch from string_type& to string& as last
1958 2004-03-01 Paolo Carlini <pcarlini@suse.de>
1960 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
1961 Also when parsing exponent sign, first look for thousands_sep
1962 and decimal_point; tweak a bit.
1963 * testsuite/22_locale/num_get/get/char/15.cc: New.
1964 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
1966 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1967 num_get<>::_M_extract_int): Reorder some conditionals.
1969 2004-03-01 Paolo Carlini <pcarlini@suse.de>
1971 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1972 Consistently with numpunct, enforce the requirements in
1973 22.2.6.3, p3 for the thousands separators; tweak a bit.
1974 * testsuite/22_locale/money_get/get/char/15.cc: New.
1975 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
1977 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
1979 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
1980 testsuite_files from correct multilib blddir when running
1983 2004-02-29 Phil Edwards <phil@codesourcery.com>
1985 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
1986 the summary file to the logfile.
1987 * testsuite/Makefile.in: Regenerate.
1989 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1991 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
1993 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
1994 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
1996 2004-02-28 Paolo Carlini <pcarlini@suse.de>
1998 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
1999 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
2000 no 'decimal-point' in the middle: in this case too we must fix
2001 up __found_grouping; slightly tweak.
2002 * testsuite/22_locale/num_get/get/char/14.cc: New.
2003 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
2005 2004-02-27 Eric Christopher <echristo@redhat.com>
2006 Phil Edwards <phil@codesourcery.com>
2008 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
2009 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
2010 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
2011 testsuite/22_locale/collate/hash/wchar_t/2.cc,
2012 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
2013 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
2014 testsuite/22_locale/collate/transform/wchar_t/2.cc,
2015 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
2016 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2017 Use dg-require-iconv.
2018 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
2020 2004-02-27 Phil Edwards <phil@codesourcery.com>
2021 Eric Christopher <echristo@redhat.com>
2023 * testsuite/config/default.exp: Update with comments.
2024 (${tool}_target_compile): New wrapper routine.
2025 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
2026 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
2028 (load_gcc_lib, v3track): New routines.
2029 (v3-init): Rename to libstdc++_init.
2030 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
2031 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
2033 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
2035 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
2037 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
2039 * config/os/irix/irix5.2/atomicity.h: Merge..
2040 * config/os/irix/irix6.5/atomicity.h: Merge..
2041 * config/os/irix/atomicity.h: ...into this.
2042 * config/os/irix/atomic_word.h: New.
2043 * configure.host: Set atomic_word_dir for irix.
2045 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
2046 * i386/atomicity.h: Same.
2047 * m68k/atomicity.h: Same.
2048 * sparc/atomicity.h: Same.
2050 2004-02-27 David Edelsohn <edelsohn@gnu.org>
2052 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
2053 static, and inline keywords.
2055 2004-02-27 Paolo Carlini <pcarlini@suse.de>
2057 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2058 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
2059 call reserve on the __tmp_gruping string.
2060 (num_get<>::_M_extract_float): Don't append unnecessarily a
2061 char() to the returned string.
2062 * include/bits/locale_facets.tcc: Trivial reformattings.
2064 2004-02-27 Paolo Carlini <pcarlini@suse.de>
2066 * include/bits/locale_facets.h (money_get<>::_M_extract):
2067 Change signature: now takes a plain string&.
2068 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2069 Update consistently the definition; use the moneypunct cache
2070 to parse the value; use swap to change __units.
2071 (money_get<>::do_get(long double&)): Update call of _M_extract,
2072 avoid ctype::narrow, not correct wrt the standard.
2073 (money_get<>::do_get(string_type&)): Likewise, update call
2074 of _M_extract, use ctype::widen.
2075 * src/locale-inst.cc: Tweak instantiations of _M_extract.
2077 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
2079 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
2080 * testsuite/demangle/abi_examples/02.cc: Likewise.
2081 * testsuite/demangle/regression/cw-11.cc: Likewise.
2082 * testsuite/demangle/regression/cw-16.cc: Change two expected
2083 results to match libiberty demangler output.
2085 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
2088 * libsupc++/Makefile.am: Use libiberty demangler.
2089 (c_sources): Add cp-demangle.c.
2090 * libsupc++/Makefile.in: Regenerate.
2091 * src/Makefile.am (sources): Remove demangle.cc.
2092 * src/Makefile.in: Regenerate.
2093 * include/Makefile.am (bits_headers): Move demangle.h.
2094 (ext_headers): ...here.
2095 * include/Makefile.in: Regenerate.
2096 * include/bits/demangle.h: Move...
2097 * include/ext/demangle.h: ...here.
2098 * src/demangle.cc: Remove.
2100 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
2102 * include/bits/demangle.h: Add type template parameter to all
2103 templates with just an Allocator template parameter.
2105 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
2107 * include/bits/atomicity.h: New, forward declarations for __atomic_add
2108 and __exchange_and_add.
2109 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
2110 * config/cpu/cris/atomic_word.h: Same.
2111 * config/cpu/sparc/atomic_word.h: Same.
2112 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
2113 Qualifiy with __gnu_cxx.
2114 (_Callback_list::_M_add_reference): Same.
2115 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
2116 (locale::facet::_M_remove_reference): Same.
2117 (locale::_Impl::_M_add_reference): Add.
2118 (locale::_Impl::_M_remove_reference): Same.
2119 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
2120 (basic_string::_Rep::_M_dispose): Same.
2121 * src/ios.cc (ios_base::xalloc): Same.
2122 * src/ios_init.cc (ios_base::Init::Init): Same.
2123 (ios_base::Init::~Init): Same.
2124 * src/locale.cc (locale::id::_M_id): Same.
2125 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
2126 static, and inline keywords.
2127 * config/cpu/alpha/atomicity.h: Same.
2128 * config/cpu/cris/atomicity.h: Same.
2129 * config/cpu/generic/atomicity.h: Same.
2130 * config/cpu/hppa/atomicity.h: Same.
2131 * config/cpu/i386/atomicity.h: Same.
2132 * config/cpu/ia64/atomicity.h: Same.
2133 * config/cpu/m68k/atomicity.h: Same.
2134 * config/cpu/mips/atomicity.h: Same.
2135 * config/cpu/powerpc/atomicity.h: Same.
2136 * config/cpu/s390/atomicity.h: Same.
2137 * config/cpu/sparc/atomicity.h: Same.
2139 * src/Makefile.am (host_sources): Add atomicity.cc.
2140 (atomicity.cc): New rule.
2141 * src/Makefile.in: Regenerate.
2142 * include/Makefile.am (host_headers): Remove host atomicity.h.
2143 (host_headers): Add atomic_word.h.
2144 (bits_headers): Add bits atomicity.h.
2145 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2146 * include/Makefile.in: Regenerate.
2147 * configure.host (atomic_word_dir): Add.
2148 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
2149 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2150 * configure: Regenerate.
2151 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
2153 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
2154 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2156 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
2158 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
2159 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
2160 Fix markup, more <link> tags.
2162 2004-02-25 Carlo Wood <carlo@alinoe.com>
2165 namespace __gnu_cxx::demangler
2166 (session<Allocator>::qualifier_list_Allocator): Add
2167 (session<Allocator>::M_qualifier_list_alloc): Add
2168 (session<Allocator>::decode_type_with_postfix):
2169 Use M_qualifier_list_alloc instead of calling operator new/delete.
2171 2004-02-24 Paolo Carlini <pcarlini@suse.de>
2174 * include/bits/postypes.h (class streamoff): Add operator++(),
2175 operator++(int), operator--() and operator--(int).
2176 * testsuite/27_io/fpos/14252.cc: New.
2178 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
2180 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
2181 error in handling of hex constants.
2183 2004-02-24 Paolo Carlini <pcarlini@suse.de>
2185 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2186 Prefer basic_string::append to operator+= and a temporary.
2188 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
2190 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
2191 Only use fputs, not write.
2193 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
2195 * include/ext/malloc_allocator.h: Add operators ==, !=.
2196 * include/ext/new_allocator.h: Add operators ==, !=.
2197 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
2198 (__mt_alloc::_S_get_options): New.
2199 (__mt_alloc::_S_set_options): New.
2200 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
2201 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
2202 Move functions out of line, simplify, format.
2203 * src/allocator.cc: Simplify explicit instantiations.
2204 * include/bits/allocator.h: Tweak.
2206 2004-02-22 Paolo Carlini <pcarlini@suse.de>
2208 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2209 Restructure formatting of value component, first dealing with
2210 the non-decimal digits; use reserve.
2212 2004-02-22 Paolo Carlini <pcarlini@suse.de>
2214 * include/bits/locale_facets.h (class money_get): Inherit
2215 from money_base too; tweak declaration of _M_extract, now
2216 parameterized on _Intl too.
2217 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2218 Update definition to use the cache; call reserve on __res to
2219 avoid multiple reallocations; fix parsing of sign component
2220 according to 22.2.6.1.2, p3.
2221 (money_get<>::do_get(long double&),
2222 money_get<>::do_get(string_type&)): Update calls of _M_extract.
2223 * src/locale-inst.cc: Add instantiations of
2224 money_get::_M_extract<false> and money_get::_M_extract<true>.
2225 * testsuite/22_locale/money_get/get/char/14.cc: New.
2226 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
2228 2004-02-21 Mark Mitchell <mark@codesourcery.com>
2230 * libsupc++/vterminate.cc
2231 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
2233 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
2235 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2236 not set RLIMIT_AS on HP-UX.
2238 2004-02-21 Mark Mitchell <mark@codesourcery.com>
2240 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2241 not set RLIMIT_AS on HP-UX.
2243 2004-02-21 Paolo Carlini <pcarlini@suse.de>
2245 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
2246 _S_zero, _S_end } enum, _S_atoms.
2247 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
2248 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
2249 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
2250 (__moneypunct_cache<>::~__moneypunct_cache): Update.
2251 (__moneypunct_cache<>::_M_cache): Fill the cache.
2252 (class moneypunct): Tweak __cache_type typedef.
2253 (class money_put): Inherit from money_base too; tweak declaration
2254 of _M_insert, now parameterized on _Intl.
2255 * include/bits/locale_facets.tcc
2256 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
2257 (money_put<>::_M_insert): Update definition to use the cache;
2258 call reserve on __res to avoid multiple reallocations.
2259 (money_put<>::do_put(long double),
2260 money_put<>::do_put(const string_type&): Update calls of _M_insert.
2261 * config/locale/generic/monetary_members.cc
2262 (moneypunct<char, true>::_M_initialize_moneypunct,
2263 moneypunct<char, false>::_M_initialize_moneypunct,
2264 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
2265 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
2266 * config/locale/gnu/monetary_members.cc: Likewise.
2267 * config/locale/gnu/monetary_members.cc
2268 (moneypunct<wchar_t, true>::~moneypunct(),
2269 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
2270 * src/globals_locale.cc: Tweak fake_money_cache_c.
2271 * src/locale-inst.cc: Add instantiations for
2272 money_put::_M_insert<false> and money_put::_M_insert<true> and
2273 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
2274 * src/locale_facets.cc: Define money_base::_S_atoms.
2275 * src/locale_init.cc: Update placement new of
2276 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
2277 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
2279 * config/locale/generic/numeric_members.cc: Clean up.
2280 * config/locale/gnu/numeric_members.cc: Likewise.
2281 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
2282 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
2283 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
2284 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
2285 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
2286 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
2288 2004-02-20 Mark Mitchell <mark@codesourcery.com>
2290 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
2291 FIFO for writing with ios_base::in|ios_base::out.
2292 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
2293 * testsuite/27_io/objects/char/7.cc: Likewise.
2294 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
2297 2004-02-19 David Edelsohn <edelsohn@gnu.org>
2299 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
2300 from iso-8859-1 to ISO8859-1.
2301 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
2302 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
2303 * 22_locale/collate/hash/wchar_t/2.cc: Same.
2304 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
2305 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
2306 * 22_locale/collate/transform/wchar_t/2.cc: Same.
2307 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
2308 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
2310 2004-02-18 Paolo Carlini <pcarlini@suse.de>
2312 * include/bits/locale_facets.h (money_get<>::_M_extract):
2313 New, helper for do_get.
2314 (money_put<>::_M_insert): Likewise, for do_put.
2315 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2316 money_put<>::_M_insert): Define.
2317 (money_get<>::do_get(long double&), money_get<>::do_get(
2318 string_type&), money_put::do_put(long double),
2319 money_put::do_put(const string_type&)): Use the helpers.
2321 2004-02-18 Paolo Carlini <pcarlini@suse.de>
2323 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2324 Rewrite, avoiding recursion.
2325 (__gnu_internal::xwrite): Minor tweaks.
2327 2004-02-17 Stefan Olsson <stefan@xapa.se>
2329 * include/ext/mt_allocator.h: Removed the last
2330 pointer. Deallocated blocks are now added to the front of
2331 freelists as proposed by Felix Yen. This gives roughly 10%
2332 performance boost and saves some memory.
2333 * docs/html/ext/mt_allocator.html: Change due to that deallocated
2334 blocks now are added to the front of freelists. The reason to this
2335 approach is also explained.
2337 2004-02-17 Paolo Carlini <pcarlini@suse.de>
2339 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2340 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
2341 grouping fidelity conditional.
2343 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2345 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
2346 Qualify exception with std::.
2347 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
2348 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2349 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2350 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2351 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2353 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2355 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
2356 for now that the catch block is not reached.
2357 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
2359 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2361 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2362 Fix parsing of the remaining sign characters.
2363 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
2364 the input is scanned 'til eof.
2365 * 22_locale/money_get/get/char/4.cc: Likewise.
2366 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
2367 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
2368 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
2369 not do_pos_format: the former is the only one that matters during
2371 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
2373 * 22_locale/money_get/get/char/6.cc: Minor tweak.
2374 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
2376 2004-02-15 David Asher <david.asher@cavium.com>
2379 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
2380 access __olds beyond __oldlen.
2382 2004-02-14 Paolo Carlini <pcarlini@suse.de>
2384 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
2385 sure the exception is actually thrown.
2386 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2387 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2388 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2390 2004-02-14 Paolo Carlini <pcarlini@suse.de>
2393 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
2394 In case of conversion errors, throw ios_failure; simplify.
2395 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
2396 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2397 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
2398 previously we didn't throw in case of conversion errors, instead
2399 just returned eof().
2400 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2401 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2402 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2404 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
2405 Trivial simplification of a conditional.
2407 2004-02-12 Paolo Carlini <pcarlini@suse.de>
2409 PR libstdc++/13731 (final part: writev)
2410 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2411 New, a wrapper around writev() handling partial writes.
2412 (__basic_file<char>::xwrite): Move to __gnu_internal and make
2414 (__basic_file<char>::xsputn): Update call.
2415 (__basic_file<char>::xsputn_2): Likewise.
2416 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2417 Don't declare, now static.
2419 2004-02-11 Stefan Olsson <stefan@xapa.se>
2421 * docs/html/ext/mt_allocator.html: New.
2423 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
2425 * docs/html/20_util/allocator.html: New file, consolidate
2426 allocator information here. Revamp.
2427 * docs/html/documentation.html: Change links.
2428 * docs/html/20_util/howto.html: Same.
2429 * docs/html/ext/howto.html: Same.
2431 2004-02-11 Paolo Carlini <pcarlini@suse.de>
2433 PR libstdc++/13731 (first part: write)
2434 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2436 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
2437 Define it: a wrapper around write() handling partial write.
2438 (__basic_file<char>::xsputn): Use it.
2439 (__basic_file<char>::xsputn_2): Likewise.
2441 2004-02-11 Paolo Carlini <pcarlini@suse.de>
2442 Petur Runolfsson <peturr02@ru.is>
2445 * include/std/std_istream.h (operator>>(__istream_type& (*)
2446 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
2447 operator>>(ios_base& (*)(ios_base&))): Declare inline.
2448 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
2449 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
2450 operator<<(ios_base& (*) (ios_base&))): Likewise.
2451 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
2453 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
2456 * config/linker-map.gnu: Add typeinfo and typeinfo name for
2457 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
2460 * config/linker-map.gnu: Add typeinfo and typeinfo name for
2461 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
2463 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
2465 * include/ext/pool_allocator.h: Include c++config.h.
2467 2004-02-09 Stefan Olsson <stefan@xapa.se>
2469 * include/ext/mt_allocator.h: thread_id is unused in non threaded
2470 applications and now has a ifdef to remove it completely on
2471 compilers without thread support. Include stdlib.h due to a
2472 compiler warning on getenv().
2474 2004-02-09 Paul Brook <paul@codesourcery.com>
2476 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
2478 2004-02-09 Paolo Carlini <pcarlini@suse.de>
2481 * src/locale_init.cc (locale::global(const locale&)): Use
2482 locale::name() in order to decide whether calling setlocale.
2483 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
2485 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
2486 Avoid computing &= unnecessarily.
2488 2004-02-09 James E Wilson <wilson@specifixinc.com>
2491 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
2492 __builtin_extend_pointer.
2494 2004-02-09 Paolo Carlini <pcarlini@suse.de>
2497 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
2498 Don't leave dangling pointers.
2499 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
2500 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
2501 facet is needed in the final test.
2503 2004-02-09 Bernardo Innocenti <bernie@develer.com>
2505 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
2506 * configure: Regenerate.
2508 2004-02-08 Richard Henderson <rth@redhat.com>
2511 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
2512 uncaughtExceptions during nested catch rethrow.
2513 * testsuite/18_support/14026.cc: New.
2515 2004-02-08 Paolo Carlini <pcarlini@suse.de>
2517 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
2518 When working in place remember to set the state to sharable
2519 (otherwise, _M_mutate does it).
2521 2004-02-08 Bernardo Innocenti <bernie@develer.com>
2523 * include/bits/allocator.h, include/bits/basic_ios.h,
2524 include/bits/basic_ios.tcc, include/bits/basic_string.h,
2525 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
2526 include/bits/char_traits.h, include/bits/codecvt.h,
2527 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
2528 include/bits/demangle.h, include/bits/deque.tcc,
2529 include/bits/fstream.tcc, include/bits/functexcept.h,
2530 include/bits/gslice.h, include/bits/gslice_array.h,
2531 include/bits/indirect_array.h, include/bits/ios_base.h,
2532 include/bits/istream.tcc, include/bits/list.tcc,
2533 include/bits/locale_classes.h, include/bits/locale_facets.h,
2534 include/bits/locale_facets.tcc, include/bits/localefwd.h,
2535 include/bits/mask_array.h, include/bits/ostream.tcc,
2536 include/bits/postypes.h, include/bits/slice_array.h,
2537 include/bits/sstream.tcc, include/bits/stl_algo.h,
2538 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
2539 include/bits/stl_construct.h, include/bits/stl_deque.h,
2540 include/bits/stl_function.h, include/bits/stl_heap.h,
2541 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
2542 include/bits/stl_list.h, include/bits/stl_map.h,
2543 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
2544 include/bits/stl_numeric.h, include/bits/stl_pair.h,
2545 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
2546 include/bits/stl_relops.h, include/bits/stl_set.h,
2547 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
2548 include/bits/stl_threads.h, include/bits/stl_tree.h,
2549 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
2550 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
2551 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
2552 include/bits/type_traits.h, include/bits/valarray_after.h,
2553 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
2554 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
2555 trailing whitespace.
2557 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2559 * include/bits/basic_string.h: Fix comment.
2561 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2563 * include/bits/stl_construct.h: Wrap overlong lines, reformat
2564 according to the coding standards.
2565 * include/bits/stl_pair.h: Likewise.
2566 * include/bits/stl_raw_storage_iter.h: Likewise.
2567 * include/bits/stl_stack.h: Likewise.
2568 * include/bits/stl_uninitialized.h: Likewise.
2569 * include/bits/stream_iterator.h: Likewise.
2570 * include/bits/streambuf_iterator.h: Likewise.
2571 * include/bits/type_traits.h: Likewise.
2573 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2575 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2578 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
2580 * scripts/check_performance: Support PCH.
2582 * scripts/check_performance (CXX): Add -DNOTHREAD.
2583 * testsuite/performance/20_util/allocator/insert.cc: Integrate
2584 threaded tests from insert_insert.cc. Tweak iterations,
2585 remove special cases.
2586 * testsuite/performance/20_util/allocator/insert_insert.cc:
2587 Make all tests single-threaded. Tweak iterations.
2588 * testsuite/performance/20_util/allocator/map_thread.cc:
2590 * testsuite/performance/20_util/allocator/producer_consumer.cc:
2593 2004-02-05 Geoffrey Keating <geoffk@apple.com>
2597 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
2598 'gcc-lib'. Add comment about poorly-named variables.
2599 * aclocal.m4: Regenerate.
2600 * configure: Regenerate.
2602 2004-02-05 Paolo Carlini <pcarlini@suse.de>
2604 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2605 Thousands-sep are always optional; thousands-sep are not allowed
2606 after the decimal_point.
2607 * testsuite/22_locale/money_get/get/char/12.cc: New.
2608 * testsuite/22_locale/money_get/get/char/13.cc: New.
2609 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
2610 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
2612 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
2613 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2614 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2615 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2616 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2617 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2618 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2619 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2621 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
2623 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
2625 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
2627 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
2629 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
2630 it to decide whether FIONREAD should take an off_t or int argument.
2632 2004-02-05 Paolo Carlini <pcarlini@suse.de>
2634 * include/bits/stl_function.h: Minor formatting changes.
2636 2004-02-04 Zack Weinberg <zack@codesourcery.com>
2638 Revert previous change to config/abi/*/baseline_symbols.txt.
2640 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
2641 Zack Weinberg <zack@codesourcery.com>
2643 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
2645 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
2646 (__basic_file<char>::_M_open_mode): Delete.
2647 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
2649 * testsuite/27_io/basic_filebuf/close/char/9964.cc
2650 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2651 Correct flags to filebuf::open calls.
2653 * config/abi/alpha-freebsd5/baseline_symbols.txt
2654 * config/abi/alpha-linux-gnu/baseline_symbols.txt
2655 * config/abi/hppa-linux-gnu/baseline_symbols.txt
2656 * config/abi/i386-freebsd4/baseline_symbols.txt
2657 * config/abi/i386-freebsd5/baseline_symbols.txt
2658 * config/abi/i486-linux-gnu/baseline_symbols.txt
2659 * config/abi/ia64-linux-gnu/baseline_symbols.txt
2660 * config/abi/mips-linux-gnu/baseline_symbols.txt
2661 * config/abi/sparc-freebsd5/baseline_symbols.txt
2662 * config/abi/sparc-linux-gnu/baseline_symbols.txt
2663 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
2664 Remove entry for __basic_file<char>::_M_open_mode.
2666 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
2668 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
2670 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
2672 * testsuite/performance/20_util/producer_consumer.cc: New.
2673 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
2675 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
2677 * testsuite/performance/20_util/allocator.cc: Move to..
2678 * testsuite/performance/20_util/allocator/insert.cc: ...here.
2679 * testsuite/performance/20_util/allocator_thread.cc: Move to...
2680 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
2681 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
2682 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
2684 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
2686 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
2687 * docs/html/faq/index.txt: Regenerate.
2689 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
2691 * include/ext/debug_allocator.h: _M_extra now stands for the
2692 number of extra objects instead of the number of extra bytes.
2693 (debug_allocator::allocate): Adjust.
2694 (debug_allocator::deallocate): Adjust.
2696 * include/ext/pool_allocator.h: Fix typo.
2698 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
2699 Benjamin Kosnik <bkoz@redhat.com>
2701 * testsuite/performance/20_util/allocator.cc: Add map,
2703 * testsuite/performance/20_util/allocator_thread.cc: Same.
2705 2004-02-03 Paolo Carlini <pcarlini@suse.de>
2707 * include/bits/basic_string.h (insert(iterator)): Remove,
2708 non-standard and already scheduled for removal.
2710 2004-02-03 Paolo Carlini <pcarlini@suse.de>
2712 * include/bits/stl_iterator_base_funcs.h: Minor formatting
2713 and indentation tweaks.
2714 * include/bits/stl_iterator_base_types.h: Likewise.
2715 * include/bits/stl_list.h: Likewise.
2716 * include/bits/stl_map.h: Likewise.
2717 * include/bits/stl_tempbuf.h: Likewise.
2719 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
2721 * include/bits/gslice.h, include/bits/gslice_array.h,
2722 include/bits/indirect_array.h, include/bits/mask_array.h,
2723 include/bits/slice_array.h, include/bits/stl_numeric.h,
2724 include/std/std_valarray.h: Update copyright years.
2726 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
2728 * include/bits/gslice.h (gslice): Document.
2729 * include/bits/gslice_array.h (gslice_array): Document.
2730 * include/bits/indirect_array (indirect_array): Document.
2731 * include/bits/mask_array (mask_array): Document.
2732 * include/bits/slice_array.h (slice,slice_array): Document.
2733 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
2734 adjacent_difference): Document
2735 * include/std/std_valarray.h (valarray): Document.
2737 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
2739 * docs/html/19_diagnostics/howto.html: Move verbose terminate
2741 * docs/html/18_support/howto.html: Here.
2742 * docs/html/documentation.html: Add reference here.
2744 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2746 * config/locale/gnu/c++locale_internal.h: Remove prototypes
2747 of no longer used GLIBC thread locale functions.
2749 2004-02-02 Eric Christopher <echristo@redhat.com>
2750 Zack Weinberg <zack@codesourcery.com>
2752 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
2754 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
2755 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
2756 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
2757 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
2758 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
2759 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
2760 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
2761 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2764 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2766 * include/bits/stl_function.h: Additional minor tweaks.
2767 * include/bits/stl_multiset.h: Likewise.
2769 * include/bits/stl_queue.h: Minor tweaks.
2771 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2773 PR libstdc++/13976 (continued)
2774 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
2775 Make the second parameter unnamed, to void unused parameter
2777 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
2779 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2782 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
2783 Make the second parameter unnamed, to void unused parameter
2785 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
2786 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
2788 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2790 * include/bits/stl_algo.h: Additional minor tweaks.
2791 * include/bits/stl_map.h: Likewise.
2792 * include/bits/stl_multimap.h: Likewise.
2793 * include/bits/stl_multiset.h: Likewise.
2794 * include/bits/stl_set.h: Likewise.
2795 * include/bits/stl_tree.h: Likewise.
2797 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2799 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
2802 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2804 * include/bits/stl_function.h: Additional minor tweaks.
2806 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2808 * include/bits/deque.tcc: Wrap overlong lines, constify
2809 a few variables, reformat according to the coding standards.
2810 * include/bits/list.tcc: Likewise.
2811 * include/bits/stl_deque.h: Likewise.
2812 * include/bits/stl_function.h: Likewise.
2813 * include/bits/stl_iterator.h: Likewise.
2814 * include/bits/stl_iterator_base_funcs.h: Likewise.
2815 * include/bits/stl_iterator_base_types.h: Likewise.
2816 * include/bits/stl_list.h: Likewise.
2817 * include/bits/stl_map.h: Likewise.
2818 * include/bits/stl_multimap.h: Likewise.
2819 * include/bits/stl_multiset.h: Likewise.
2820 * include/bits/stl_relops.h: Likewise.
2821 * include/bits/stl_set.h: Likewise.
2823 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2825 * include/bits/stl_bvector.h: Wrap overlong lines, constify
2826 a few variables, reformat according to the coding standards.
2827 * include/bits/stl_tree.h: Likewise.
2829 2004-01-31 Paolo Carlini <pcarlini@suse.de>
2831 * include/bits/stl_algo.h: Minor additional reformat, add
2833 * include/bits/stl_algobase.h: Add copyright year.
2835 2004-01-31 Paolo Carlini <pcarlini@suse.de>
2837 * include/bits/stl_algo.h: Wrap overlong lines, constify
2838 a few variables, reformat according to the coding standards.
2839 * include/bits/stl_algobase.h: Likewise.
2840 * include/bits/stl_heap.h: Likewise.
2842 2004-01-31 Paolo Carlini <pcarlini@suse.de>
2844 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
2846 * include/bits/basic_string.h: Fix two comments.
2848 2004-01-31 Per Bothner <per@bothner.com>
2850 * include/ext/mt_allocator.h
2851 (__mt_alloc::_S_thread_freelist_mutex): Guard with
2852 __GTHREAD_MUTEX_INIT.
2854 2004-01-31 Paolo Carlini <pcarlini@suse.de>
2856 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
2858 2004-01-30 Paolo Carlini <pcarlini@suse.de>
2860 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
2861 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
2862 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
2864 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
2866 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
2867 Don't use clear, but instead assign. Use insert.
2869 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
2871 * src/demangle.cc: Add instantiations.
2872 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
2873 * src/Makefile.in: Regenerate.
2875 2004-01-30 David Edelsohn <edelsohn@gnu.org>
2877 * src/allocator.cc: Protect _S_get_thread_id() and
2878 _S_thread_key_destr() with #ifdef __GTHREADS.
2880 2004-01-30 Paolo Carlini <pcarlini@suse.de>
2882 Reshuffle performance testsuite.
2883 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
2884 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
2885 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
2886 fstream_seek_write.cc, ifstream_extract_float.cc,
2887 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
2888 list_create_fill_sort.cc, map_create_fill.cc,
2889 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
2890 ofstream_insert_float.cc, ofstream_insert_int.cc,
2891 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
2892 wchar_t_out.cc: Split into...
2893 * testsuite/performance/20_util/allocator.cc: New.
2894 * testsuite/performance/20_util/allocator_map_thread.cc: New.
2895 * testsuite/performance/20_util/allocator_thread.cc: New.
2896 * testsuite/performance/21_strings/string_append: New.
2897 * testsuite/performance/22_locale/is_wchar_t.cc: New.
2898 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
2899 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
2900 * testsuite/performance/22_locale/wchar_t_in.cc: New.
2901 * testsuite/performance/22_locale/wchar_t_length.cc: New.
2902 * testsuite/performance/22_locale/wchar_t_out.cc: New.
2903 * testsuite/performance/23_containers/container_benchmark.cc: New.
2904 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
2905 * testsuite/performance/23_containers/map_create_fill.cc: New.
2906 * testsuite/performance/26_numerics/complex_norm.cc: New.
2907 * testsuite/performance/27_io/cout_insert_int.cc: New.
2908 * testsuite/performance/27_io/filebuf_copy.cc: New.
2909 * testsuite/performance/27_io/filebuf_sputc.cc: New.
2910 * testsuite/performance/27_io/fstream_seek_write.cc: New.
2911 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
2912 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
2913 * testsuite/performance/27_io/ifstream_getline.cc: New.
2914 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
2915 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
2917 2004-01-30 Paolo Carlini <pcarlini@suse.de>
2919 * include/bits/basic_string.tcc (_Rep::_S_create):
2920 Never allocate a string bigger than max_size(); always keep
2921 __capacity and __size in sync to avoid memory leaks at
2924 2004-01-30 Paolo Carlini <pcarlini@suse.de>
2926 * include/bits/basic_string.tcc (_S_construct(_InIterator,
2927 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
2928 the double loop, streamline.
2930 * include/bits/basic_string.tcc: Very minor tweaks.
2932 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
2934 * scripts/check_performance: Only compile with $THREAD_FLAG
2935 when test is marked to require it. Allow multiple
2936 compilations/executions of marked tests.
2937 * testsuite/testsuite_performance.h (report_performance):
2938 Report dynamic thread support status.
2939 (report_header): Likewise.
2940 * testsuite/performance/allocator.cc: Stabilize iteration
2941 count. Support more allocators. Mark each allocator test to
2942 run and report independently.
2943 * testsuite/performance/allocator_map_thread.cc: Likewise.
2944 * testsuite/performance/allocator_thread.cc: Likewise.
2946 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
2948 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
2949 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
2950 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
2951 std::get_temporary_buffer() instead of duplicating its code.
2952 Update to C++STYLE conventions.
2953 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
2954 new() instead of std::malloc().
2955 (return_temporary_buffer): Use ::operator delete() instead of
2958 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
2960 * include/bits/allocator.h: Temporary switch to new_allocator as
2961 the default to unjam bootstraps.
2963 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
2965 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
2966 * include/Makefile.in: Regenerate.
2967 * include/bits/allocator_traits.h: Remove.
2968 * include/bits/allocator.h: Remove allocator_traits.h include, and
2970 (allocator): Empty base class, inherit from the underlying allocator.
2971 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
2972 * src/allocator.cc: ...here. New. For the underlying allocators.
2973 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
2974 * config/linker-map.gnu: Remove __pool_alloc bits.
2975 * src/Makefile.am (sources): Add allocator.cc.
2976 * src/Makefile.in: Regenerate.
2977 * testsuite/20_util/allocator/1.cc: Split second test into...
2978 * testsuite/20_util/allocator/8230.cc: ...this.
2979 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
2980 typedef to use std::allocatore. Format.
2981 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
2983 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
2984 __throw_bad_alloc calls. Don't include <memory>.
2985 * include/ext/malloc_allocator.h: Remove <memory> include.
2986 * include/ext/new_allocator.h (new_allocator): Same.
2987 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
2988 declaration. Switch __alloc to _Alloc.
2989 * include/ext/hashtable.h: Remove __alloc.
2990 * include/backward/alloc.h: Only inject allocator, not
2991 implementation details.
2993 * include/ext/mt_allocator.h: Replace free with delete.
2995 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
2997 * src/globals_io.cc: Change to __gnu_internal namespace.
2998 * src/globals_locale.cc: Same.
2999 * src/locale_init.cc: Same.
3000 * src/ios_init.cc: Same.
3002 2004-01-28 Stefan Olsson <stefan@snon.net>
3004 * include/ext/mt_allocator.h: Replaced all malloc() calls with
3005 operator new(). Added support for the env variable
3006 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
3007 one in allocate() as well). Fix typos.
3009 2004-01-28 Paolo Carlini <pcarlini@suse.de>
3011 * include/bits/basic_string.h (_S_create(size_t,
3012 const _Alloc&): Change signature to take two size_type
3014 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3015 _InIterator, const _Alloc&, input_iterator_tag)): Update
3017 (_S_construct(_InIterator, _InIterator, const _Alloc&,
3018 forward_iterator_tag)): Likewise.
3019 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
3020 (_M_mutate(size_type, size_type, size_type)): Don't
3021 implement the exponential growth policy, demand it to
3022 _S_create, update call and simplify.
3023 (_M_clone(const _Alloc&, size_type)): Likewise.
3024 (_S_create(size_type, size_type, const _Alloc&)): Implement
3025 the growth policy, simplify otherwise.
3027 * include/bits/basic_string.h (_Rep::operator[]): Tweak
3028 signature to take a size_type, consistently with the other
3031 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
3033 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
3034 delete declarations, add include and test variable.
3036 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
3038 * include/bits/codecvt.h, include/bits/locale_facets.h,
3039 include/bits/postypes.h, include/bits/stl_bvector.h,
3040 include/bits/stl_multiset.h, include/bits/stl_set.h,
3041 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
3042 include/std/std_complex.h: Document.
3044 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
3047 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
3048 iword/pword selector.
3049 (ios_base::iword, ios_base::pword): Use it.
3050 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
3051 iword or pword member on alloc failure.
3052 * testsuite/27_io/ios_base/storage/11584.cc: New test.
3054 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
3055 PJ Darcy <darcypj@us.ibm.com>
3057 * configure.host: Add support for *-tpf.
3058 * crossconfig.m4: Likewise.
3059 * configure: Regenerate.
3060 * config/os/tpf: New directory.
3061 * config/os/tpf/os_defines.h: New file.
3062 * config/os/tpf/ctype_base.h: Likewise.
3063 * config/os/tpf/ctype_inline.h: Likewise.
3064 * config/os/tpf/ctype_noninline.h: Likewise.
3066 2004-01-27 Paolo Carlini <pcarlini@suse.de>
3069 * include/bits/sstream.tcc: Guard use of extern template.
3071 2004-01-27 Paolo Carlini <pcarlini@suse.de>
3073 * include/bits/basic_string.tcc
3074 (basic_string(const basic_string&, size_type, size_type),
3075 basic_string(const basic_string&, size_type, size_type,
3076 const _Alloc&)): Avoid unnecessarily constructing iterators.
3078 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3080 * config/locale/generic/c_locale.cc: Fix throw messages
3081 to use the __N marker.
3082 * config/locale/gnu/c_locale.cc: Likewise.
3083 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
3085 * docs/html/17_intro/C++STYLE: Likewise.
3086 * include/bits/basic_ios.tcc: Likewise.
3087 * include/bits/fstream.tcc: Likewise.
3088 * include/bits/vector.tcc: Likewise.
3089 * include/ext/ropeimpl.h: Likewise.
3090 * include/std/std_bitset.h: Likewise.
3091 * src/ios.cc: Likewise.
3092 * src/locale.cc: Likewise.
3093 * src/localename.cc: Likewise.
3095 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3097 * include/bits/basic_string.h (_M_replace_aux): Use the
3098 __N marker in throw message.
3099 * include/bits/basic_string.tcc (assign(const _CharT*,
3100 size_type), insert(size_type, const _CharT*, size_type),
3101 replace(size_type, size_type, const _CharT*, size_type),
3102 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
3105 * include/bits/basic_string.h, include/bits/basic_string.tcc:
3106 Fold overlong lines, minor formatting changes.
3108 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3110 * include/bits/basic_string.h (replace(iterator, iterator,
3111 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
3112 (replace(iterator, iterator, const _CharT*)): Ditto.
3113 (replace(iterator, iterator, const _CharT*, size_type)):
3114 Add missing _GLIBCXX_DEBUG_PEDASSERT.
3116 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3118 * include/bits/basic_string.tcc (replace(size_type,
3119 size_type, const _CharT*, size_type)): Implement optimized
3120 in-place algorithm for non-overlapping ranges.
3121 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
3122 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
3124 * include/bits/basic_string.tcc (insert(size_type,
3125 const _CharT*, size_type)): Tweak slightly.
3127 2004-01-26 Andreas Schwab <schwab@suse.de>
3129 * config/locale/gnu/monetary_members.cc: Restore locale before
3130 rethrowing exception.
3132 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3134 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
3136 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
3139 * include/bits/basic_string.tcc: Very minor tweaks.
3141 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3143 * testsuite/performance/string_append.cc: Increase number
3146 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3148 * include/bits/basic_string.h (erase(size_type, size_type),
3149 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
3150 instead, thus avoiding redundant check for length_error.
3152 * include/bits/basic_string.h: Tweak some comments.
3154 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3156 * include/bits/basic_string.tcc (operator+(const _CharT*,
3157 const basic_string&)): No need to go through the append
3158 taking two iterators.
3160 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3162 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
3163 Revert last change to use std::min: machine language is worse.
3164 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
3165 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3166 (find_last_not_of(_CharT, size_type)): Ditto.
3168 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
3169 size_type)): Discard the value returned by _M_check.
3170 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
3171 (append(const basic_string&, size_type, size_type)): Ditto.
3172 (copy(_CharT*, size_type, size_type)): Ditto.
3173 (compare(size_type, size_type, const basic_string&)): Ditto.
3174 (compare(size_type, size_type, const basic_string&,
3175 size_type, size_type)): Ditto.
3176 (compare(size_type, size_type, const _CharT*)): Ditto.
3177 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3179 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3181 * include/bits/basic_string.h (insert(size_type,
3182 const basic_string&, size_type, size_type)): Define inline here.
3183 * include/bits/basic_string.tcc (insert(size_type,
3184 const basic_string&, size_type, size_type)): Move inline.
3186 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3188 * include/bits/basic_string.h (assign(const basic_string&,
3189 size_type, size_type)): Define inline here.
3190 (replace(size_type, size_type, const basic_string&,
3191 size_type, size_type)): Ditto.
3192 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3193 _InputIterator, __false_type)): Only declare.
3194 (_M_replace(iterator, iterator, _InputIterator,
3195 _InputIterator)): Remove.
3196 * include/bits/basic_string.tcc (assign(const basic_string&,
3197 size_type, size_type)): Move inline.
3198 (replace(size_type, size_type, const basic_string&,
3199 size_type, size_type)): Ditto.
3200 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3201 _InputIterator, __false_type)): Define, now does also what
3202 _M_replace did before.
3203 * src/string-inst.cc (_M_replace): Don't instantiate.
3205 * include/bits/basic_string.tcc (find(const _CharT*,
3206 size_type, size_type)): Tidy.
3207 (rfind(_CharT, size_type)): Ditto.
3208 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
3209 (find_first_not_of(_CharT, size_type)): Ditto.
3210 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3211 (find_last_not_of(_CharT, size_type)): Ditto.
3213 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3216 * include/debug/bitset (operator|=): Fix typo.
3217 * testsuite/23_containers/bitset/operations/13838.cc: New.
3219 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3221 * include/bits/basic_string.tcc (insert(size_type,
3222 const _CharT*, size_type __n)): Fix length_error check.
3223 (replace(size_type, size_type, const _CharT*, size_type):
3224 Ditto; call _M_replace_safe.
3225 (_M_replace_aux(size_type, size_type, size_type, _CharT):
3226 Fix length_error check.
3227 (_M_replace(iterator, iterator, _InputIterator,
3228 _InputIterator)): Ditto, tweak.
3229 (_M_replace_safe(size_type, size_type, const _CharT*,
3230 size_type)): Remove length_error check.
3232 * include/bits/basic_string.tcc (append(const basic_string&),
3233 append(const basic_string&, size_type, size_type)): Tweak
3236 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
3237 size_type)): If __n == 0 don't call traits::copy.
3239 2004-01-23 Stefan Olsson <stefan@snon.net>
3241 * include/ext/mt_allocator.h: Reduce lock contention.
3243 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3246 * include/bits/fstream.tcc (underflow): Remove unused
3248 * include/bits/streambuf_iterator.h (equal): Ditto.
3249 * include/bits/locale_facets.h (_M_convert_from_char):
3252 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3255 * config/linker-map.gnu (nan): Delete.
3256 * libmath/mathconf.h (NAN, nan): Delete.
3257 * linkage.m4 (nan): Don't check for it.
3258 * libmath/nan.c: Delete file.
3260 * config.h.in, configure: Regenerate.
3262 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3264 * include/bits/basic_string.h (push_back(_CharT)):
3265 Call _M_replace_aux.
3266 (insert(size_type, const basic_string&)): Trivial tweak.
3267 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
3268 (insert(iterator, _CharT)): Ditto.
3269 (erase(size_type, size_type)): Ditto.
3270 (erase(iterator)): Ditto.
3271 (erase(iterator, iterator)): Ditto.
3272 (replace(size_type, size_type, size_type, _CharT)): Ditto.
3274 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
3277 * testsuite/performance/allocator_map_thread.cc: New test.
3279 2004-01-22 Paolo Carlini <pcarlini@suse.de>
3281 * include/bits/locale_facets.tcc
3282 (money_put::do_put(..., long double)): Use the basic_string
3283 constructor for char arrays, not that for C-strings, to pass
3284 __digits to do_put(..., const string_type&): __ws isn't
3287 2004-01-22 Paolo Carlini <pcarlini@suse.de>
3289 * include/bits/basic_string.h (_M_replace_safe): Change
3290 signatures to take size_types and const _CharT*.
3291 (_M_replace_aux): Likewise, takes size_types instead of
3293 (append(size_type, _CharT)): Update call.
3294 (assign(size_type, _CharT)): Ditto.
3295 (replace(iterator, iterator, size_type, _CharT)): Ditto.
3296 (_M_replace_dispatch(iterator, iterator, _Integer,
3297 _Integer, __true_type)): Ditto.
3298 * include/bits/basic_string.tcc (assign(const _CharT*,
3300 (insert(size_type, const _CharT*, size_type)): Ditto.
3301 (replace(size_type, size_type, const _CharT*,
3303 (_M_replace(iterator, iterator, _InputIterator,
3304 _InputIterator)): Ditto.
3305 (append(const basic_string&)): Ditto.
3306 (append(const basic_string&, size_type, size_type): Ditto.
3307 (append(const _CharT*, size_type): Ditto.
3308 (_M_replace_safe, _M_replace_safe): Change definitions
3309 accordingly, simplify.
3310 * string-inst.cc (_M_replace_safe): Don't instantiate.
3312 2004-01-21 Paolo Carlini <pcarlini@suse.de>
3314 * include/bits/basic_string.tcc (append(const basic_string&)):
3315 Revert previous change.
3316 (append(const basic_string&, size_type, size_type)): Revert
3317 previous change, use _M_check and _M_limit.
3319 2004-01-21 Paolo Carlini <pcarlini@suse.de>
3321 * include/bits/basic_string.h (_M_check): Change to return
3322 a checked __pos and take an additional const char* argument.
3323 (_M_fold): Rename to _M_limit, change to return a size_type,
3324 corresponding to the __off limited to the actual length.
3325 (insert(size_type, size_type, _CharT)): Update call, call
3327 (insert(iterator, _CharT)): Call replace(iterator, iterator,
3328 size_type, _CharT) instead.
3329 (erase(size_type, size_type)): Update calls.
3330 (replace(size_type, size_type, size_type, _CharT)): Ditto.
3331 (substr(size_type, size_type)): Use _M_check.
3332 * include/bits/basic_string.tcc (basic_string(const basic_string&,
3333 size_type, size_type)): Update calls.
3334 (basic_string(const basic_string&, size_type, size_type,
3335 const _Alloc&)): Ditto.
3336 (assign(const basic_string&, size_type, size_type)): Use the
3337 new _M_check and _M_limit.
3338 (insert(size_type, const basic_string&, size_type, size_type):
3340 (insert(size_type, const _CharT*, size_type)): Ditto.
3341 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
3342 (replace(size_type, size_type, const basic_string&,
3343 size_type, size_type)): Ditto.
3344 (append(const basic_string&)): Ditto.
3345 (append(const basic_string&, size_type, size_type)): Ditto.
3346 (copy(_CharT*, size_type, size_type)): Ditto.
3347 (compare(size_type, size_type, const basic_string&)): Ditto.
3348 (compare(size_type, size_type, const basic_string&,size_type,
3350 (compare(size_type, size_type, const _CharT*)): Ditto.
3351 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3353 2004-01-19 Stefan Olsson <stefan@snon.net>
3355 * include/ext/mt_allocator.h: If a thread, when it dies, still has
3356 memory on it's freelist this memory is not returned to global
3357 list. Simplification of deallocate so that memory is always
3358 returned to the calling thread id's freelist instead of to
3359 global. Fix typos. Add volatile where appropriate.
3361 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
3363 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
3364 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
3365 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
3367 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3369 * src/debug.cc: Make sure all the names are prefixed with
3370 double (or single) underscore.
3372 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3374 * src/debug.cc: Trivial formatting change.
3376 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3378 * include/bits/basic_string.tcc (_S_construct(size_type,
3379 _CharT, const _Alloc&)): Remove redundant try/catch.
3380 (_M_mutate(size_type, size_type, size_type)): Ditto.
3381 (_M_clone(const _Alloc&, size_type)): Ditto.
3383 2004-01-18 Paolo Carlini <pcarlini@suse.de>
3385 * include/bits/basic_string.h (c_str()): Simplify, due to
3386 21.3.4 the internal representation is always kept null-terminated.
3387 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
3388 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
3389 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
3392 2004-01-18 Paolo Carlini <pcarlini@suse.de>
3394 * include/bits/basic_string.h (append(size_type, _CharT)):
3395 Moved inline, just call _M_replace_aux, no source iterators at
3396 risk of being clobbered.
3397 (assign(size_type, _CharT)): Call directly _M_replace_aux.
3398 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3399 input_iterator_tag)): Remove fifth unused argument.
3400 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3401 _InputIterator, __false_type)): Update call.
3402 * include/bits/basic_string.tcc (replace(size_type, size_type,
3403 const _CharT*, size_type)): Update call.
3404 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
3405 throw string literal.
3406 (_M_replace_safe(iterator, iterator, _ForwardIterator,
3407 _ForwardIterator)): Likewise.
3408 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3409 input_iterator_tag)): Remove fifth unused argument.
3410 (append(size_type __n, _CharT __c)): Move inline.
3411 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
3412 const C*, const C*, input_iterator_tag)): Remove fifth unused
3415 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
3417 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
3418 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
3420 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
3422 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
3425 2004-01-15 Stefan Olsson <stefan@snon.net>
3427 * include/ext/mt_allocator.h: Reuse thread id's as soon as
3428 possible by changing the behaviour of thread_freelist to do
3429 push_front when threads die instead of push_back.
3431 2004-01-14 Paolo Carlini <pcarlini@suse.de>
3433 * include/bits/locale_facets.h (struct __numpunct_cache):
3434 Add member _M_grouping_size, caching the length of _M_grouping.
3435 (__numpunct_cache<>::_M_cache): Assign the latter.
3436 (__verify_grouping): Move declaration...
3437 * include/bits/locale_facets.tcc (__verify_grouping):
3438 ... here, change signature to take a const char* and a size_t
3439 for the grouping; not a template anymore.
3440 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
3441 Likewise change signature and tweak consistently.
3442 (num_get::_M_extract_float, num_get::_M_extract_int,
3443 num_put::_M_insert_int, num_put::_M_insert_float,
3444 money_get::do_get(string_type&), money_get::do_put(string_type)):
3446 * config/locale/generic/numeric_members.cc
3447 (numpunct<>::_M_initialize_numpunct): Assign the new member.
3448 * config/locale/gnu/numeric_members.cc
3449 (numpunct<>::_M_initialize_numpunct): Likewise.
3450 * src/locale-inst.cc (__add_grouping): Tweak signature.
3451 (__verify_grouping): Don't instantiate, not a template anymore.
3453 * include/bits/locale_facets.h: Rename _M_truename_len ->
3454 _M_truename_size, _M_falsename_len -> _M_falsename_size.
3455 * include/bits/locale_facets.tcc: Likewise.
3456 * config/locale/generic/numeric_members.cc: Likewise.
3457 * config/locale/gnu/numeric_members.cc: Likewise.
3459 2004-01-14 Stefan Olsson <stefan@snon.net>
3461 * include/ext/mt_allocator.h: Fixups.
3462 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
3463 * testsuite/performance/allocator_thread.cc: Same.
3465 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
3467 * testsuite/performance/ifstream_extract_float.cc: Add higher
3469 * testsuite/performance/ofstream_insert_float.cc: Same.
3471 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3473 * src/locale-misc-inst.cc (__convert_from_v(long),
3474 __convert_from_v(unsigned long), __convert_from_v(long long),
3475 __convert_from_v(unsigned long long)): Remove, unused.
3477 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
3479 * testsuite/performance/ifstream_extract_float.cc: New.
3480 * testsuite/performance/ofstream_insert_float.cc: Float generation
3483 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
3484 * 20_util/auto_ptr/1.cc: ...this.
3485 * 20_util/auto_ptr/2.cc: Same.
3486 * 20_util/auto_ptr/3.cc: Same.
3487 * 20_util/auto_ptr/3946.cc: Same.
3488 * 20_util/auto_ptr/4.cc: Same.
3489 * 20_util/auto_ptr/5.cc: Same.
3490 * 20_util/auto_ptr/6.cc: Same.
3491 * 20_util/auto_ptr/7.cc: Same.
3492 * 20_util/auto_ptr/assign_neg.cc
3493 * 20_util/pairs.cc: Break into...
3494 * 20_util/pair/1.cc: ...this.
3495 * 20_util/pair/2.cc: Same.
3496 * 20_util/pair/3.cc: Same.
3497 * 20_util/pair/4.cc: Same.
3499 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3501 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
3502 Set correctly just basefield, the only group that matters.
3504 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3506 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
3507 (_Rope_rep_base): Inherit directly from the rope allocator;
3508 use rebinding instead of _Alloc_traits; pick up data member
3509 from _Rope_rep_alloc_base.
3510 (_Rope_alloc_base): Eliminate.
3511 (_Rope_base): Inherit directly from the rope allocator; use
3512 rebinding instead of _Alloc_traits; pick up data member from
3514 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
3515 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
3517 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3520 * include/bits/basic_string.tcc (compare(size_type, size_type,
3521 const _CharT*, size_type)): Implement correctly the resolution
3522 of DR 5: basically, s is a char array, -not- a C string.
3523 * include/bits/basic_string.h: Tweak some comments.
3524 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
3525 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
3527 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
3529 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
3532 2004-01-12 Paolo Carlini <pcarlini@suse.de>
3534 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
3536 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
3539 2004-01-12 Paolo Carlini <pcarlini@suse.de>
3541 * include/bits/locale_facets.h (struct __numpunct_cache):
3542 Add members _M_truename_len and _M_falsename_len, caching
3543 the lengths of _M_truename and _M_falsename.
3544 (__numpunct_cache<>::_M_cache): Assign the latter.
3545 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
3546 num_put::do_put(bool)): Use the new members, thus avoiding
3547 computing string lengths again and again.
3548 * config/locale/generic/numeric_members.cc
3549 (numpunct<>::_M_initialize_numpunct): Assign the new members.
3550 * config/locale/gnu/numeric_members.cc
3551 (numpunct<>::_M_initialize_numpunct): Likewise.
3553 2004-01-12 Mark Mitchell <mark@codesourcery.com>
3555 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
3556 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
3558 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
3559 and remove Cygwin XFAIL.
3560 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
3561 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
3562 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
3563 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
3565 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3566 * testsuite/27_io/objects/char/7.cc: Likewise.
3567 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
3568 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
3569 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
3571 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
3573 * include/std/std_complex.h (std::complex<>::real): Return a
3574 reference. Add non-const overload.
3575 (std::complex<>::real): Likewise.
3576 (std::real): Likewise.
3577 (std::imag): Likewise.
3578 (std::operator+): Tidy.
3579 (std::operator-): Likewise.
3580 (std::operator*): Likewise.
3581 (std::operator/): Likewise.
3582 (std::operator>>): Likewise.
3584 2004-01-11 Paolo Carlini <pcarlini@suse.de>
3587 * include/bits/fstream.tcc (imbue): Exploit the external
3588 buffer to imbue 'on the fly' a new locale and convert its
3589 remainder with the new codecvt facet.
3590 (underflow): Tweak slightly to deal with this special case.
3591 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
3592 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
3593 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
3594 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
3595 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
3597 2004-01-10 Paolo Carlini <pcarlini@suse.de>
3599 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
3602 2004-01-10 Paolo Carlini <pcarlini@suse.de>
3605 * include/bits/locale_classes.h (class locale): Fix category
3607 * testsuite/22_locale/locale/13630.cc: Add.
3609 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
3611 * include/bits/locale_facets.h: Make a name really dependent. This
3612 will be needed when Core Issue 224 is implemented.
3614 2004-01-09 Paolo Carlini <pcarlini@suse.de>
3616 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
3617 * testsuite/performance/allocator_thread.cc: Likewise.
3619 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
3621 * crossconfig.m4: Add LFS, io bits to linux cross config.
3622 * acconfig.h: Remove obsolete bits, reorder.
3623 * config.h.in: Regenerate.
3627 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
3629 * include/bits/stl_list.h:
3630 * include/bits/list.tc:
3632 Performance enhancements for destructor, push_front(),
3633 push_back(), pop_front(), pop_back(), sort()
3634 Eliminated static_casts where possible.
3635 Moved code out of header files into new src/list.cc
3636 implementation file for library where possible.
3637 Remove inheritance from iterator class and create separate
3638 classes for non-constant and constant iterators.
3639 * include/bits/stl_tree.h (_Rb_tree class):
3641 Only erase contents in destructor.
3642 Eliminate unnecessary initialization in assignment operator.
3643 Optimize for the nominal case by not checking whether
3644 container is empty in clear().
3645 Re-order test in _M_insert() to improve performance.
3646 Move initialization of new node's left & right pointers to
3647 src/tree.cc to where new node's colour is initialized
3648 and to reduce the amount of inline code.
3649 Use _M_leftmost() and _M_end() to improve readability where
3651 Create separate classes for non-constant and constant
3652 iterators to clarify code, avoid extra template parameters and
3653 casting away constness.
3655 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
3657 * src/Makefile.am (sources): Add list.cc, tree.cc.
3658 * src/stl_tree.cc: Move to...
3659 * src/tree.cc: ...here.
3661 * config/linker-map.gnu: Tweaks.
3662 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
3663 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
3665 * bits/stl_vector.h: Column wrap comments.
3667 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
3669 (re-open) PR libstdc++/12658
3670 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
3671 (locale::global): Likewise.
3673 2004-01-07 Paolo Carlini <pcarlini@suse.de>
3675 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
3676 Remove redundant #include.
3677 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
3678 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
3679 re-enable normal testing.
3680 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
3682 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
3683 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
3685 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
3687 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
3689 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
3691 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
3693 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
3695 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
3697 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
3698 More properly, #include <locale>.
3699 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
3700 Remove redundant #include.
3701 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
3702 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
3703 redundant DejaGnu directive.
3704 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
3707 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
3708 Stefan Olsson <stefan@snon.net>
3710 * scripts/check_performance: Use -pthread.
3711 * testsuite/performance/allocator.cc: Tweaks, add list.
3712 * testsuite/performance/allocator_thread.cc: New.
3714 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
3716 * include/bits/locale_facets.h: Document public classes and
3718 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
3721 2004-01-06 Paolo Carlini <pcarlini@suse.de>
3723 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
3724 Remove redundant #includes.
3725 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
3727 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
3729 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
3730 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
3731 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
3732 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
3733 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
3734 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
3735 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
3736 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
3737 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
3738 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
3739 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
3740 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
3741 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
3742 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
3743 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
3745 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
3747 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
3749 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
3751 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
3753 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
3754 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
3755 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
3757 2004-01-04 Paolo Carlini <pcarlini@suse.de>
3759 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
3760 Remove redundant #includes.
3761 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
3763 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
3765 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
3767 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
3769 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
3771 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
3773 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3775 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3777 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3779 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
3781 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
3783 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
3786 2004-01-04 Mark Mitchell <mark@codesourcery.com>
3789 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
3791 * testsuite/27_io/basic_fstream/4.cc: Likewise.
3792 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
3793 * testsuite/27_io/basic_ios/4.cc: Likewise.
3794 * testsuite/27_io/basic_iostream/4.cc: Likewise.
3795 * testsuite/27_io/basic_istream/4.cc: Likewise.
3796 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
3797 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
3798 * testsuite/27_io/basic_ostream/4.cc: Likewise.
3799 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
3800 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
3801 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
3803 2004-01-04 Paolo Carlini <pcarlini@suse.de>
3805 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
3806 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
3807 always use double underscored names.
3808 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
3810 * include/bits/locale_facets.h (struct __numpunct_cache):
3811 Dimension _M_atoms_out and _M_atoms_in one position smaller.
3812 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out