1 2004-08-12 Jan Beulich <jbeulich@novell.com>
3 * config/locale/generic/ctype_members.cc
4 (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
5 initializer for return value, as that is invalid for enumerated types.
6 * config/locale/gnu/ctype_members.cc
7 (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
9 2004-08-11 Paolo Carlini <pcarlini@suse.de>
11 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
13 2004-08-11 Paolo Carlini <pcarlini@suse.de>
15 * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
17 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
18 * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
19 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
20 * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
21 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
22 * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
23 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
24 * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
25 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
26 * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
27 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
28 * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
29 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
30 * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
31 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
32 * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
33 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
34 * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
35 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
36 * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
37 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
39 2004-08-11 Paolo Carlini <pcarlini@suse.de>
40 Petur Runolfsson <peturr02@ru.is>
43 * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
44 standard streams are constructed.
45 * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
47 2004-08-09 Paolo Carlini <pcarlini@suse.de>
49 * include/bits/stl_bvector.h: Trivial formatting fixes.
51 2004-08-09 Paolo Carlini <pcarlini@suse.de>
53 * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
55 2004-08-07 Jonathan Wakely <redi@gcc.gnu.org>
56 Paolo Carlini <pcarlini@suse.de>
58 * src/debug.cc (_Error_formatter::_M_print_string): In order
59 to print individual words from __string, _M_format_word can't
60 be called since may be just sprintf, thus ignoring completely
61 __n: instead, use memmove and append '\0' by hand.
63 2004-08-07 Paolo Carlini <pcarlini@suse.de>
65 * config/locale/generic/c_locale.h (__convert_from_v): Don't
66 use a default for __prec, assume __prec >= 0 and simplify.
67 * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
68 * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
69 Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
71 2004-08-04 Phil Edwards <phil@codesourcery.com>
73 * docs/html/configopts.html: Emphasize that options change.
74 * docs/html/17_intro/configury.html: Update links.
76 2004-08-03 Paolo Carlini <pcarlini@suse.de>
78 * include/bits/list.tcc: Trivial formatting fixes.
80 2004-08-03 Mark Mitchell <mark@codesourcery.com>
82 * libsupc++/new_op.cc: Update comments.
83 * libsupc++/del_op.cc: Likewise.
85 2004-08-02 Mark Mitchell <mark@codesourcery.com>
87 * libsupc++/cxxabi.h: Make all declarations have default
89 * libsupc++/exception: Likewise.
90 * libsupc++/new: Likewise.
91 * libsupc++/typeinfo: Likewise.
92 * libsupc++/unwind-cxx.h: Likewise.
93 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
94 the __cxxabiv1 namespace.
95 (__cxa_free_exception): Likewise.
96 * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
97 (__cxa_bad_typeid): Likewise.
98 * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
99 (__cxa_end_catch): Likewise.
100 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
101 (__cxa_get_globals): Likewise.
102 * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
103 (__cxa_rethrow): Likewise.
104 * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
105 * libsupc++/eh_type.cc: Include <cxxabi.h>.
107 * Makefile.am (hosted_source): Add libmath and testsuite.
108 (SUBDIRS): Remove them.
109 * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
110 on arm*-*-symbianelf*.
111 * crossconfig.m4: Add arm*-*-symbianelf* support.
112 * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
113 when freestanding. Do not bring names into std:: namespace with
114 "using" when freestanding. Declare required functions and macros
116 * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
118 * libsupc++/del_op.cc: Declare "free" only when freestanding.
119 * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
120 (malloc): Declare when freestanding.
123 (__cxa_allocate_exception): Call malloc, not std::malloc. Likewise
125 (__cxa_free_exception): Likewise for free.
126 * libsupc++/new_op.cc: Declare "malloc" when freestanding.
127 * libsupc++/pure.cc (writestr): Define to nothing when
129 * libsupc++/vterminate.cc: Do not define anything when
131 * Makefile.in: Regenerated.
132 * aclocal.m4: Likewise.
133 * configure: Likewise.
134 * include/Makefile.in: Likewise.
135 * libmath/Makefile.in: Likewise.
136 * libsupc++/Makefile.in: Likewise.
137 * po/Makefile.in: Likewise.
138 * src/Makefile.in: Likewise.
139 * testsuite/Makefile.in: Likewise.
141 2004-08-01 Matt Austern <austern@apple.com>
144 * include/bits/stl_list.h (_M_create_node): Remove unused
145 zero-argument version.
146 * include/ext/slist (_M_create_node): Pass two arguments to
147 allocator's construct() member function.
148 * testsuite/23_containers/deque/explicit_instantiation.cc: New.
149 * testsuite/23_containers/list/explicit_instantiation.cc: New.
150 * testsuite/23_containers/vector/explicit_instantiation.cc: New.
151 * testsuite/23_containers/map/explicit_instantiation.cc: New.
152 * testsuite/23_containers/set/explicit_instantiation.cc: New.
153 * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
154 * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
155 * testsuite/ext/hash_set_explicit_instantiation.cc: New.
156 * testsuite/ext/slist_explicit_instantiation.cc: New.
158 2004-07-30 Paolo Carlini <pcarlini@suse.de>
160 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
161 num_get<>::_M_extract_int): In the main parsing loop delay the
162 life of __q to the actual use point.
164 2004-07-29 Paolo Carlini <pcarlini@suse.de>
167 * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
168 Don't clip the precision passed down to __convert_from_v:
169 22.2.2.2.2 nowhere says so.
170 * testsuite/22_locale/num_put/put/char/14220.cc: New.
171 * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
173 2004-07-29 Paolo Carlini <pcarlini@suse.de>
175 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
177 2004-07-29 Paolo Carlini <pcarlini@suse.de>
178 Petur Runolfsson <peturr02@ru.is>
180 PR libstdc++/12658 (continued)
181 * src/locale_init.cc (locale::locale, locale::global): Use
182 a single locale_mutex instead of two separate mutexes.
184 2004-07-29 Paolo Carlini <pcarlini@suse.de>
187 * include/debug/map.h (insert(_InputIterator, _InputIterator)):
189 * testsuite/23_containers/map/insert/16813.cc: New.
191 2004-07-29 Phil Edwards <phil@codesourcery.com>
193 * docs/html/faq/index.html: Update version references. Make
194 clear that code from SGI has diverged greatly. Remove references
195 to library snapshots and what's-new sections.
196 * docs/html/faq/index.txt: Regenerate.
198 2004-07-28 Matt Austern <austern@apple.com>
200 * include/bits/stl_construct.h (_Destroy): New three-argument
201 overload that takes an allocator argument. Another inline
202 three-argument overload that takes std::allocator and dispatches
203 to the two-argument version.
204 * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
205 Change return type to void to match uninitialized_fill_n.
206 (__uninitialized_copy_a_): New function. Like uninitialized_copy
207 except that it takes an allocator and uses it for construct and
208 destroy. If the allocator is std::allocator, dispatches to
210 (__uninitialized_fill_a): Likewise.
211 (__uninitialized_fill_n_a): Likewise.
212 (__uninitialized_copy_copy): Give it an allocator argument.
213 (__uninitialized_fill_copy): Likewise.
214 (__uninitialized_copy_fill): Likewise.
215 * include/bits/deque.tcc: Use new forms defined in stl_construct.h
216 and stl_uninitialized.h. Replace use of single-argument _Construct
217 and _Destroy with use of allocator's construct and destroy methods.
218 * include/bits/list.tcc: Likewise.
219 * include/bits/stl_deque.h: Likewise.
220 * include/bits/stl_list.h: Likewise.
221 * include/bits/stl_tree.h: Likewise.
222 * include/bits/stl_vector.h: Likewise.
223 * include/bits/vector.tcc: Likewise.
224 * include/ext/hashtable.h: Use rebind so that allocator_type
225 has correct type for a container's allocator. Replace use of
226 single-argument _Construct and _Destroy with use of allocator's
227 construct and destroy methods.
228 * include/ext/memory (__uninitialized_copy_n_a): New function.
229 Like uninitialized_copy_n except that it takes an extra parameter,
230 an allocator, and uses it for construct and destroy operations.
231 * include/ext/rope: Use new forms defined in stl_construct.h,
232 stl_uninitialized.h, and ext/memory. Replace use of single-argument
233 _Construct and _Destroy with allocator construct and destroy methods.
234 * include/ext/ropeimpl.h: Likewise.
235 * include/ext/slist.h: Likewise.
236 * testsuite/testsuite_allocator.h (check_construct_destroy): New.
237 * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
238 * testsuite/23_containers/deque/check_construct_destroy.cc: New.
239 * testsuite/23_containers/list/check_construct_destroy.cc: New.
240 * testsuite/23_containers/set/check_construct_destroy.cc: New.
241 * testsuite/23_containers/vector/check_construct_destroy.cc: New.
242 * testsuite/ext/hash_check_construct_destroy.cc: New.
243 * testsuite/ext/slist_check_construct_destroy.cc: New.
245 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
247 2003-10-01 Eric Christopher <echristo@redhat.com>
248 * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
250 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
251 * config/cpu/sh/atomicity.h: New. Use movli and movco on SH4a.
253 2004-07-23 Benjamin Kosnik <bkoz@redhat.com>
256 * include/bits/locale_facets.tcc: Fix for -Werror.
258 2004-07-23 Jonathan Wakely <redi@gcc.gnu.org>
260 * docs/html/debug.html: Say debug mode only available since 3.4.0.
262 2004-07-21 Benjamin Kosnik <bkoz@redhat.com>
264 * docs/doxygen/mainpage.html: Clarify links.
265 * docs/doxygen/stdheader.cc: Add files.
266 * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
267 * docs/doxygen/user.cfg.in: New options, wrap.
269 2004-07-20 Danny Smith <dannysmith@users.sourceforge.net>
271 * include/c_std/std_cwchar.h (wcsstr): Correct signature.
273 2004-07-19 Benjamin Kosnik <bkoz@redhat.com>
276 * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
278 2004-07-17 Richard Sandiford <rsandifo@redhat.com>
281 * scripts/create_testsuite_files: Pass -print to find.
283 2004-07-15 Paolo Carlini <pcarlini@suse.de>
285 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
286 * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
288 2004-07-15 Jakub Jelinek <jakub@redhat.com>
291 * acinclude.m4 (glibcxx_shared_libgcc): Correct
292 glibcxx_shared_libgcc test for multilibs.
293 * configure: Rebuilt.
295 2004-07-14 Paolo Carlini <pcarlini@suse.de>
298 * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
299 the signature to return void, as per 20.4.4.3.
300 * include/bits/stl_vector.h (vector::vector(size_type,
301 const value_type&, const allocator_type&), vector::vector(size_type),
302 vector::_M_initialize_dispatch): Adjust callers.
303 * include/bits/vector.tcc (vector<>::_M_fill_assign,
304 vector<>::_M_fill_insert): Likewise.
305 * testsuite/20_util/memory/16505.cc: New.
307 2004-07-14 Paolo Carlini <pcarlini@suse.de>
309 * testsuite/22_locale/locale/cons/12658_thread-1.cc,
310 12658_thread-2.cc: Use __gnu_test::try_named_locale.
312 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
314 * docs/html/ext/mt_allocator.html: Add docs for _Tune.
315 * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
316 (__mt_alloc::_S_set_options): Same.
319 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
321 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
323 * configure: Regenerated.
325 2004-07-13 Paolo Carlini <pcarlini@suse.de>
327 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
328 to 12658_thread-1.cc and xfail.
329 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
330 simpler version of 12658_thread-1.cc, still failing on 3_3 and
331 not failing on 3_4/mainline - both on single processor and
332 multiprocessor machines.
334 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
336 * docs/html/abi.html: Remove non-public qualification.
338 * include/bits/concurrence.h: Tweak comments.
340 2004-07-11 Paolo Carlini <pcarlini@suse.de>
342 Add wchar_t counterparts of the basic_streambbuf<char> tests.
343 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
344 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
346 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
347 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
349 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
350 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
351 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
352 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
353 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
355 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
357 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
359 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
361 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
362 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
364 2004-07-11 Phil Edwards <phil@codesourcery.com>
366 * acinclude.m4: Cosmetic shell syntax fixes.
367 * configure.ac: Bring comment inline with reality.
368 * configure.host: Both of the above. Move 'arm' case to right
369 place in host_cpu switch.
370 * aclocal.m4, configure: Regenerate.
372 2004-07-09 Paolo Carlini <pcarlini@suse.de>
374 Add wchar_t counterparts of the basic_stringbuf<char> tests.
375 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
376 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
377 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
378 3599.cc, 9988.cc: Likewise.
379 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
381 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
383 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
385 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
387 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
388 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
389 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
390 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
392 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
394 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
396 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
398 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
399 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
401 2004-07-08 Paolo Carlini <pcarlini@suse.de>
403 * include/bits/gslice.h: Trivial formatting fixes.
404 * include/bits/gslice_array.h: Likewise.
405 * include/bits/indirect_array.h: Likewise.
406 * include/bits/mask_array.h: Likewise.
407 * include/bits/slice_array.h: Likewise.
408 * include/bits/valarray_after.h: Likewise.
409 * include/bits/valarray_array.h: Likewise.
410 * include/bits/valarray_before.h: Likewise.
411 * include/std/std_valarray.h: Likewise.
413 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
416 * include/bits/basic_string.h (basic_string::operator=): Revert.
418 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
420 * configure.ac (libtool_VERSION): To 6:2:0.
421 * configure: Regenerated.
423 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
425 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
428 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
430 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
432 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
435 2004-07-07 Paolo Carlini <pcarlini@suse.de>
438 * include/bits/sstream.tcc (overflow): When reallocating _M_string
439 use an exponential grow policy.
440 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
441 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
443 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
446 * crossconfig.m4: Add in bits for djgpp.
447 * configure: Regenerate.
449 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
451 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
452 instantiation of set and multiset (functor param given as int).
454 2004-07-04 Paolo Carlini <pcarlini@suse.de>
456 * include/bits/basic_string.h: Trivial formatting fixes and/or
457 const-ification of some variables.
458 * include/bits/deque.tcc: Likewise.
459 * include/bits/stl_algobase.h: Likewise.
460 * include/bits/stl_bvector.h: Likewise.
461 * include/bits/stl_construct.h: Likewise.
462 * include/bits/stl_deque.h: Likewise.
463 * include/bits/stl_pair.h: Likewise.
464 * include/bits/stl_vector.h: Likewise.
465 * include/bits/vector.tcc: Likewise.
467 2004-07-04 Paolo Carlini <pcarlini@suse.de>
469 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
470 systems with no COMDAT or weak support.
471 * testsuite/25_algorithms/copy/2.cc: Likewise.
472 * testsuite/25_algorithms/copy/3.cc: Likewise.
473 * testsuite/25_algorithms/copy/4.cc: Likewise.
475 2004-07-03 Paul Brook <paul@codesourcery.com>
477 * configure.ac: Set ABI_TWEAKS_SRCDIR.
478 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
479 setting atomicity_dir. Override type_cpu for arm based targets.
480 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
481 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
482 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
483 * libsupc++/vec.cc: Ditto.
484 * config/cpu/arm/cxxabi_tweaks.h: New file.
485 * config/cpu/generic/cxxabi_tweaks.h: New file.
486 * */Makefile.in: Regenerate.
487 * configure: Regenerate.
489 2004-07-02 Paolo Carlini <pcarlini@suse.de>
491 * include/bits/type_traits.h (_Is_normal_iterator): Move...
492 * include/bits/cpp_type_traits.h: ... here, renamed to
493 __is_normal_iterator and consistent with the other traits.
494 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
495 to the struct __copy_normal and three specializations.
496 (__copy_backward_output_normal_iterator,
497 __copy_backward_input_normal_iterator): Likewise, convert to
498 the struct __copy_backward_normal and three specializations.
499 (copy, copy_backward): Use the latter.
500 (__copy_aux, __copy_backward_aux): Very minor tweaks.
502 2004-07-01 Paolo Carlini <pcarlini@suse.de>
504 * include/bits/stl_algobase.h (__copy_trivial): Remove.
505 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
506 __is_trivially_copyable, __are_same and __copy::copy.
507 (__copy): Rewrite as a class template and two specializations.
508 (__copy_ni2): Simplify, just call __copy_aux.
510 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
512 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
513 for destination value type != source value type.
515 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
516 Per Bothner <per@bothner.com>
517 Mohan Embar <gnustuff@thisiscool.com>
520 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
521 (__glibcxx_mutex): Encapsulate mutex init function into type for
522 threaded configurations without __GTHREAD_MUTEX_INIT.
523 (lock::lock): Make device member a reference.
525 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
527 * src/allocator.cc: Same.
529 2004-06-30 Brad Spencer <spencer@infointeractive.com>
531 * include/ext/mt_allocator.h: Handle allocations at static
532 initialization that happen before _S_options is (automatically)
533 constructed; set _S_init even if _M_force_new is true.
535 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
537 * config/linker-map.gnu: Revert new exports.
539 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
540 Stuart Anderson <anderson@netsweng.com>
542 * config/linker-map.gnu: Add destructor exports for abstract base
543 classes to conform to LSB.
545 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
546 Paolo Carlini <pcarlini@suse.de>
548 * include/bits/cpp_type_traits.h: Add __is_pointer and
549 __is_trivially_copyable.
550 * include/bits/stl_algobase.h (fill, fill_n): Slightly
551 tweak to use the latter.
552 (__copy_backward_dispatch): Remove.
553 (__copy_backward_aux): Rewrite to use __is_pointer and
554 __is_trivially_copyable and __copy_backward::copy_b.
555 (__copy_backward): Rewrite as a class template and two
558 2004-06-30 Paolo Carlini <pcarlini@suse.de>
560 * testsuite/25_algorithms/copy.cc: Move to...
561 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
562 * testsuite/25_algorithms/copy/2.cc: New.
563 * testsuite/25_algorithms/copy/3.cc: New.
564 * testsuite/25_algorithms/copy/4.cc: New.
566 2004-06-29 Paul Brook <paul@codesourcery.com>
568 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
569 element size in the cookie.
571 2004-06-28 Paolo Carlini <pcarlini@suse.de>
573 * include/bits/cpp_type_traits.h: Move the additions to
574 namespace __gnu_internal outside of namespace std; trivial
577 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
579 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
580 Revert -Weffc++ changes that defined copy ctory and or assignment
582 * libsupc++/tinfo.cc (__upcast_result): Same.
584 2004-06-28 Paolo Carlini <pcarlini@suse.de>
586 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
587 the algorithm used to name the categories.
589 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
591 * include/Makefile.am: Give a .gch extension to
592 the PCH files, not only to the directory.
593 * include/Makefile.in: Regenerate.
595 2004-06-28 Paolo Carlini <pcarlini@suse.de>
597 * config/locale/gnu/monetary_members.cc
598 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
599 assignments of _M_decimal_point and _M_thousands_sep.
601 2004-06-27 Paolo Carlini <pcarlini@suse.de>
603 * docs/html/17_intro/contribute.html: Update some links.
604 * docs/html/17_intro/porting-howto.html: Likewise.
605 * docs/html/17_intro/porting-howto.xml: Likewise.
606 * docs/html/18_support/howto.html: Likewise.
607 * docs/html/21_strings/howto.html: Likewise.
608 * docs/html/27_io/howto.html: Likewise.
609 * docs/html/configopts.html: Likewise.
610 * docs/html/ext/howto.html: Likewise.
611 * docs/html/faq/index.html: Likewise.
612 * docs/html/install.html: Don't mention 2.x compilers.
614 2004-06-27 Paolo Carlini <pcarlini@suse.de>
616 * include/ext/rope: Trivial formatting fixes.
617 * include/ext/ropeimpl.h: Likewise.
619 2004-06-26 Paolo Carlini <pcarlini@suse.de>
622 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
623 availability of strto(u)ll, not used anymore in the iostreams.
624 * configure: Regenerate.
626 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
629 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
631 * configure: Regenerate.
633 2004-06-25 Paul Brook <paul@codesourcery.com>
635 * libsupc++/cxxabi.h: Define __ARM_EABI__
637 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
639 2004-06-25 Paul Brook <paul@codesourcery.com>
641 * include/bits/concurrence.h: Still create mutex object when
644 2004-06-25 Paolo Carlini <pcarlini@suse.de>
646 * include/bits/stl_algobase.h (fill, fill_n): Revert last
647 change: actually we need to copy construct an object of type
648 _Tp, not of type iterator_traits<>::value_type, therefore the
651 2004-06-25 Paolo Carlini <pcarlini@suse.de>
653 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
654 dispatch: use iterator_traits<>::value_type, not _Tp.
656 2004-06-25 Paolo Carlini <pcarlini@suse.de>
658 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
659 * testsuite/25_algorithms/fill/2.cc: Likewise.
661 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
662 Paolo Carlini <pcarlini@suse.de>
664 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
665 for fill and fill_n, respectively: when copying is cheap, use a
666 temporary to avoid a memory read in each iteration.
668 2004-06-25 Paolo Carlini <pcarlini@suse.de>
670 * testsuite/25_algorithms/fill/1.cc: New.
671 * testsuite/25_algorithms/fill/2.cc: Likewise.
673 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
675 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
676 Remove copy constructor and assignment operator.
678 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
680 * include/bits/concurrence.h (__gnu_cxx::lock): New.
681 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
682 (__pool_base::_M_get_mutex): New.
683 * include/bits/allocator.h: Tweak.
684 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
685 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
686 * include/bits/stl_threads.h: Remove.
687 * include/Makefile.am: Also here.
688 * include/Makefile.in: Regenerate.
690 * src/locale_init.cc: Use __gnu_cxx::lock.
692 * src/allocator.cc: Move all instantiations...
693 * src/allocator-inst.cc: ...here.
695 2004-06-23 Andrew Pinski <apinski@apple.com>
697 * linkage.m4: Remove check for libmx.
698 * configure: Regenerate.
700 2004-06-23 Paolo Carlini <pcarlini@suse.de>
703 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
704 Don't require the _DefaultConstructibleConcept.
705 (struct _ForwardIteratorConcept): Require it here.
707 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
709 * include/bits/istream.tcc (getline): Make sure arguments passed
710 to min/max have the same type.
711 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
712 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
714 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
716 * docs/html/abi.html: Update links.
718 2004-06-22 Paolo Carlini <pcarlini@suse.de>
720 * testsuite/26_numerics/complex_inserters_extractors.cc,
721 complex_value.cc, buggy_complex.cc: Move to...
722 * testsuite/26_numerics/complex/: ... here.
723 * testsuite/26_numerics/c99_classification_macros_c++.cc,
724 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
725 fabs_inline.cc: Move to...
726 * testsuite/26_numerics/cmath/: ... here.
727 * testsuite/26_numerics/binary_closure.cc, slice.cc,
728 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
729 valarray_name_lookup.cc, valarray_operators.cc,
730 valarray_subset_assignment.cc: Move to...
731 * testsuite/26_numerics/valarray/: ... here (new dir).
732 * testsuite/26_numerics/sum_diff.cc: Move to...
733 * testsuite/26_numerics/numeric/: ... here (new dir).
735 2004-06-22 Paolo Carlini <pcarlini@suse.de>
737 * include/std/std_istream.h (ignore(streamsize __n = 1,
738 int_type __delim = traits_type::eof())): Split into...
739 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
740 int_type __delim)): The first two can be much more simpler
741 and efficient than the fully general case; also, the last
742 two can take advantage of the same mechanism already used
744 * include/bits/istream.tcc (ignore(streamsize __n = 1,
745 int_type __delim = traits_type::eof()): Remove.
746 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
747 int_type __delim)): New.
749 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
751 * config/linker-map.gnu: Use wildcards for
752 __basic_file::sys_open(FILE*, _Ios_Openmode).
754 2004-06-20 Paolo Carlini <pcarlini@suse.de>
756 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
758 2004-06-18 Paolo Carlini <pcarlini@suse.de>
760 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
761 the alignment requested.
762 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
763 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
764 (__mt_alloc<>::deallocate): Likewise.
766 2004-06-18 Paolo Carlini <pcarlini@suse.de>
769 * include/debug/safe_base.h
770 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
771 _Safe_sequence_base::operator=): Provide definitions.
772 * testsuite/23_containers/bitset/cons/16020.cc: New.
774 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
776 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
777 (__pool_base): Remove unused template parameter. Add
778 protected. Move lock data into __pool_base::_Lock. Remove static
780 (__pool_base::_M_get_free_list): New.
781 (__pool_alloc): Move _S_force new here.
782 * src/allocator.cc: Move out of line __pool_base definitions here.
783 * config/linker-map.gnu: Export bits from __pool_base.
785 2004-06-18 Paolo Carlini <pcarlini@suse.de>
787 * config/locale/gnu/numeric_members.cc
788 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
789 assignments of _M_decimal_point and _M_thousands_sep.
790 * config/locale/gnu/time_members.cc
791 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
792 and reformat assignments of date and time fields.
794 2004-06-16 Paolo Carlini <pcarlini@suse.de>
796 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
797 to use _Data_allocate.
798 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
799 (rope<>::_S_substring): Likewise.
800 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
801 (rope<>::c_str()): Likewise.
802 (rope<>::replace_with_c_str()): Likewise.
804 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
805 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
807 (_Rope_iterator_base<>::_S_setcache): Likewise.
808 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
809 (rope<>::_S_substring): Likewise.
810 (rope<>::_S_dump): Likewise.
811 (rope<>::_S_fetch_ptr): Likewise.
812 (rope<>::_S_compare): Likewise.
813 (rope<>::replace_with_c_str()): Likewise.
815 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
816 * testsuite/ext/rope/2.cc: New.
818 2004-06-16 Paolo Carlini <pcarlini@suse.de>
819 Matt Austern <austern@apple.com>
821 * testsuite/ext/rope/3.cc: New.
823 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
825 * acinclude.m4: Remove useless multilib configury.
826 * Makefile.am: Remove useless multilib rules.
827 * aclocal.m4: Regenerate.
828 * Makefile.in: Regenerate.
829 * configure: Regenerate.
831 2004-06-15 Paolo Carlini <pcarlini@suse.de>
833 * include/ext/hashtable.h: Trivial formatting fixes.
834 * include/ext/rb_tree: Likewise.
836 2004-06-14 Paolo Carlini <pcarlini@suse.de>
838 * include/ext/hash_map: Trivial formatting fixes.
839 * include/ext/hash_set: Likewise.
840 * include/ext/memory: Likewise.
841 * include/ext/numeric: Likewise.
843 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
845 * Makefile.in: Regenerate with automake 1.8.5.
847 * include/Makefile.in: Same.
848 * libmath/Makefile.in: Same.
849 * libsupc++/Makefile.in: Same.
850 * po/Makefile.in: Same.
851 * src/Makefile.in: Same.
852 * testsuite/Makefile.in: Same.
854 2004-06-14 Paolo Carlini <pcarlini@suse.de>
856 * include/ext/slist: Trivial formatting fixes.
858 2004-06-14 Paolo Carlini <pcarlini@suse.de>
860 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
861 Don't use the 'magic number' 10 in the computation of __minlen;
862 never access __name past __minlen; in the loop over __i3, don't
863 decrease __nmatches and increase __i3 at once, only either of
866 2004-06-13 Paolo Carlini <pcarlini@suse.de>
868 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
869 time_get<>::do_get_date): Use only once _M_extract_via_format,
870 instead of going through "%X"/"%x" and calling it two times
873 2004-06-12 Paolo Carlini <pcarlini@suse.de>
875 * include/ext/algorithm: Trivial formatting fixes.
876 * include/ext/functional: Likewise.
877 * include/ext/hash_fun.h: Likewise.
878 * include/ext/iterator: Likewise.
880 2004-06-12 Paolo Carlini <pcarlini@suse.de>
882 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
883 size_type)): Reimplement using std::search.
884 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
886 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
888 * testsuite/performance/21_strings/string_find.cc: New.
890 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
892 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
894 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
896 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
897 this function return a value.
899 2004-06-09 Paolo Carlini <pcarlini@suse.de>
902 * include/bits/stl_deque.h: Consistently with stl_set.h, define
903 pointer as allocator's pointer, likewise for reference,
904 const_pointer, and const_reference.
905 * include/bits/stl_list.h: Likewise.
906 * include/bits/stl_map.h: Likewise.
907 * include/bits/stl_multimap.h: Likewise.
908 * include/bits/stl_vector.h: Likewise.
910 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
912 * crossconfig.m4: Remove signbit, signbitf, signbitl.
913 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
914 builtin math functions instead of AC_DEFINE_UNQUOTED.
915 * configure: Regenerate.
917 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
919 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
920 * docs/doxygen/mainpage.html: Remove links.
922 2004-06-08 Jason Merrill <jason@redhat.com>
924 * config/linker-map.gnu: Use wildcards for
925 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
927 2004-06-08 Paolo Carlini <pcarlini@suse.de>
929 * include/ext/pool_allocator.h: Convert to a global free-list,
930 as per the original SGI/HP design: move the implementation
931 details to struct __pool_base, from which __pool_alloc derives.
932 * src/allocator.cc: Instantiate __pool_base.
934 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
935 Paolo Carlini <pcarlini@suse.de>
937 * testsuite/testsuite_performance.h
938 (resource_counter::allocated_memory): Make it return the right
939 number of bytes requested by the allocators/application. This is
940 the sbrk+mmaped memory.
942 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
944 * include/std/std_complex.h (log): Tidy.
946 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
948 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
949 * testsuite/testsuite_abi.cc: Same.
950 * configure.ac (libtool_VERSION): Bump to 6:1:0.
951 * configure: Regenerate.
952 * aclocal.m4: Regenerate.
954 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
956 * include/std/std_complex.h (complex<_Tp>): Properly indent
958 (complex<>::__rep): New.
959 (__complex_abs): New. Dispatch to built-ins.
961 (__complex_arg): New. Dispatch to built-ins.
963 (__complex_cos): New. Dispatch to built-ins.
965 (__complex_cosh): New. Dispatch to built-ins.
967 (__complex_exp): New. Dispatch to built-ins.
969 (__complex_log): New. Dispatch to built-ins.
971 (__complex_sin): New. Dispatch to built-ins.
973 (__complex_sinh): New. Dispatch to built-ins.
975 (__complex_sqrt): New. Dispatch to built-ins.
977 (__complex_tan): New. Dispatch to built-ins.
979 (__complex_tanh): New. Dispatch to built-ins.
981 (__complex_pow): New. Dispatch to built-ins.
984 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
985 Benjamin Kosnik <bkoz@redhat.com>
988 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
989 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
990 * config/io/basic_file_stdio.cc (__basic_file::file): New.
991 * config/io/basic_file_stdio.h: Define.
993 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
996 * docs/html/documentation.html: Update doxygen links for 3.4.0.
998 2004-05-27 Jan Beulich <jbeulich@novell.com>
1000 * scripts/create_testsuite_files: Tweak.
1002 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
1005 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
1006 bits to do the same thing.
1008 2004-05-24 Paolo Carlini <pcarlini@suse.de>
1010 * include/bits/istream.tcc (ignore): Correctly deal with
1011 n == numeric_limits<streamsize>::max().
1012 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
1014 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
1015 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
1016 __n == numeric_limits<>::min().
1018 * include/bits/istream.tcc: Minor tweaks.
1020 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
1022 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
1024 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
1026 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
1028 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
1030 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1033 Fixups for -Weffc++.
1034 * include/bits/basic_string.h (basic_string::operator=): Return
1035 pointer to this instead of result of assign. Although redundant,
1036 this doesn't impact resultant codegen.
1038 * include/bits/locale_facets.h (__numpunct_cache): Declare
1039 assignment opxserator and copy constructor private.
1040 (__timepunct_cache): Same.
1041 (__moneypunct_cache): Same.
1042 (collate): Use member initialization list for _M_c_locale_collate.
1043 * config/locale/gnu/messages_members.h: Same.
1044 * config/locale/gnu/time_members.h (__timepunct): Same.
1045 * src/codecvt.cc: Use member initialization list to initialize
1046 _M_c_locale_codecvt.
1047 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
1048 * config/os/gnu-linux/ctype_noninline.h: Same.
1049 * src/locale.cc (_Impl): Same.
1050 * src/locale_init.cc: Same.
1051 * src/localename.cc: Same.
1053 * include/bits/basic_ios.h (basic_ios): Complete member
1054 initialization list.
1055 * include/bits/istream.tcc (basic_istream::sentry): Same.
1056 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
1057 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
1058 _M_pback to member initialization list.
1059 * include/std/std_streambuf.h: Same.
1060 * include/std/std_sstream.h: Same, for _M_mode.
1061 * src/ios.cc (ios_base): Same.
1063 * include/ext/rope: Make derived classes match exception
1065 specifications. Add copy constructors and assignment operators.
1067 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
1068 constructor and assignment operator protected.
1069 (_Safe_iterator_base): Same.
1070 * include/debug/formatter.h (_Error_formatter): Define copy
1071 constructor and assignment operator.
1073 * include/backward/strstream: Declare assignment operator and copy
1074 constructor private.
1076 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1078 * testsuite/testsuite_hooks.h (func_callback): Declare copy
1079 constructor and assignment operator private.
1080 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
1081 exception specifications of base class.
1082 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
1083 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
1084 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
1086 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1088 * libsupc++/cxxabi.h: Remove duplicated and useless public and
1089 private keywords in class declarations. Format. Use
1090 stddef.h. Expose declarations to "C" compilation.
1091 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
1092 assignment operator.
1093 (__dyncast_result): Same.
1094 * libsupc++/vec.cc (uncatch_exception): Same, use member
1095 initialization list.
1097 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1099 * testsuite/abi_check.cc: Add unistd.h.
1101 2004-05-22 Paolo Carlini <pcarlini@suse.de>
1104 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
1105 __int_to_char(unsigned long long)): Showpos is not relevant
1107 * testsuite/22_locale/num_put/put/char/15565.cc: New.
1108 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
1110 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
1112 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
1113 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
1114 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
1115 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
1116 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
1117 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
1119 2004-05-21 Matthias Klose <doko@debian.org>
1121 * docs/doxygen/run_doxygen: Bump required version.
1123 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
1125 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
1126 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
1128 2004-05-21 Paolo Carlini <pcarlini@suse.de>
1130 * include/bits/istream.tcc (ignore): Remove redundant line.
1131 (readsome): Tidy, closely following 27.6.1.3, p30.
1133 2004-05-20 Paolo Carlini <pcarlini@suse.de>
1135 * include/bits/istream.tcc (operator>>(basic_istream<>&,
1136 basic_string<>&)): Use a temporary buffer, thus avoiding
1137 reallocation for common case.
1138 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
1140 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
1143 * include/bits/istream.tcc: Const-ification of a few variables.
1145 * include/bits/ostream.tcc: Trivial formatting fixes and
1146 const-ification of some variables.
1148 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
1152 * docs/doxygen/Intro.3: Remove Allocators.3.
1153 Add new extension headers, extension namespace list.
1154 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
1155 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
1156 __gnu_debug::. Remove __policy_ renames.
1157 * docs/doxygen/guide.html: Add dot note.
1158 * docs/doxygen/stdheader.cc: Edit, add files.
1159 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
1161 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
1163 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
1165 2004-05-18 Jan Beulich <jbeulich@novell.com>
1168 * scripts/create_testsuite_files: Also find source files through
1171 2004-05-18 Jan Beulich <jbeulich@novell.com>
1174 * testsuite/lib/libstdc++.exp: Make test files writable.
1176 2004-05-18 Paolo Carlini <pcarlini@suse.de>
1178 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
1181 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
1183 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
1184 allocation loop which removes blocks from the global free list
1185 from O(N) to O(1) when the required blocks are <= the number
1188 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
1190 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
1192 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
1194 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
1195 * testsuite/23_containers/deque/14340.cc: New.
1196 * testsuite/23_containers/list/14340.cc: New.
1197 * testsuite/23_containers/map/14340.cc: New.
1198 * testsuite/23_containers/multimap/14340.cc: New.
1199 * testsuite/23_containers/multiset/14340.cc: New.
1200 * testsuite/23_containers/set/14340.cc: New.
1201 * testsuite/23_containers/vector/14340.cc: New.
1203 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
1206 * include/debug/safe_iterator.h (_Safe_iterator converting
1207 constructor): Only allow declaration to instantiate when the
1208 incoming _Safe_iterator has exactly the right iterator type.
1210 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
1212 * include/bits/boost_concept_check.h: Fix old attribute syntax.
1213 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
1214 to pass concept-checks.
1215 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1216 * testsuite/23_containers/set/modifiers/swap.cc: Same.
1217 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1219 2004-05-16 Paolo Carlini <pcarlini@suse.de>
1221 * include/std/std_bitset.h: Minor formatting fixes.
1223 2004-05-16 Paolo Carlini <pcarlini@suse.de>
1225 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1226 Consistently update __bin._M_free[0].
1227 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
1228 __bin._M_free[0] to simplify the while loop (i.e., the number
1229 of iterations becomes known at the outset).
1231 2004-05-15 Paolo Carlini <pcarlini@suse.de>
1233 * include/std/std_bitset.h: Trivial formatting fixes.
1235 2004-05-14 Paolo Carlini <pcarlini@suse.de>
1236 Ivan Godard <igodard@pacbell.net>
1239 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
1240 * testsuite/23_containers/bitset/ext/15361.cc: New.
1242 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1245 * crossconfig.m4: Add C99 math bits for linux crosses.
1246 * configure: Regenerate.
1248 2004-05-13 Simon Marshall <simon.marshall@misys.com>
1249 Benjamin Kosnik <bkoz@redhat.com>
1252 * include/bits/locale_facets.h: Fix for -fno-for-scope.
1253 * include/debug/safe_sequence.h: Same.
1254 * include/debug/safe_iterator.tcc: Same.
1255 * src/debug.cc: Same.
1256 * src/locale.cc: Same.
1257 * src/locale_init.cc: Same.
1258 * src/localename.cc: Same.
1259 * config/locale/gnu/ctype_members.cc: Same.
1260 * config/locale/gnu/numeric_members.cc: Same.
1261 * testsuite/testsuite_abi.cc: Same.
1262 * testsuite/testsuite_hooks.cc: Same.
1264 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
1266 * docs/html/abi.html: Document effect of -fabi-version on value
1267 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
1270 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1273 * docs/html/faq/index.html: Update docs for libsupc++ usage.
1275 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1278 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
1280 (_GLIBCXX_mutex_address): Same.
1281 (_GLIBCXX_once): Same.
1282 (_GLIBCXX_mutex_init): Same.
1283 (_GLIBCXX_mutex_address_init): Same.
1285 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1287 * docs/html/abi.html: New.
1288 * docs/html/abi.txt: Remove.
1289 * docs/html/documentation.html: Add link.
1290 * testsuite/Makefile.am: Add files.
1291 * testsuite/Makefile.in: Regenerated.
1292 * testsuite/abi_check.cc: Move and modify code into...
1293 * testsuite/testsuite_abi.cc: Add.
1294 * testsuite/testsuite_abi.h: Add.
1296 * docs/html/17_intro/TODO: Update.
1297 * include/bits/stl_pair.h: Format.
1299 2004-05-06 Matthias Klose <doko@debian.org>
1301 * include/backward/iterator.h: Add GPL copyright info,
1302 with exception clause.
1303 * include/bits/boost_concept_check.h: Likewise.
1305 * libsupc++/tinfo.h: Likewise.
1306 * po/string_literals.cc: Likewise.
1308 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
1310 * acinclude.m4: Replace -W with more speaking -Wextra.
1311 * configure: Rebuilt.
1313 2004-05-03 Paolo Carlini <pcarlini@suse.de>
1315 Optimize locale::_M_impl->_M_names for the most common cases:
1316 !_M_names[0] means unnamed; !_M_names[1] means all the categories
1317 the same name (_M_names[0] && _M_names[1] means that the full set
1318 of _M_names must be processed, the general case).
1319 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
1320 Tweak, saving work when !_M_names[1].
1321 (locale::locale(const locale&, _Facet*): Simplify: now just setting
1322 _M_names[0] = 0 means unnamed.
1323 * src/locale.cc (locale::operator==): Deal first with the common,
1324 easy cases, otherwise fall back to locale::name().
1325 (locale::name()): Tweak, if !_M_names[0] just return "*".
1326 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
1327 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
1328 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
1329 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
1330 Simplify when !std::strchr, just updating _M_names[0]; clean up.
1331 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
1332 for the general case (full set of names), then do the usual work;
1335 * src/locale.cc (locale::name()): Reserve space in __ret.
1336 * src/locale_init.cc (locale::global(const locale&)): Save
1337 the name in a temporary.
1338 * src/localename.cc (locale::locale(const char*)): Reserve space
1341 2004-04-29 Paolo Carlini <pcarlini@suse.de>
1343 * src/locale.cc (locale::operator==): Always avoid constructing
1344 locale::name(), directly compare pairs of _M_names.
1346 2004-04-26 Paolo Carlini <pcarlini@suse.de>
1348 * include/bits/istream.tcc: Fix comment.
1350 2004-04-26 Paolo Carlini <pcarlini@suse.de>
1352 * include/bits/stl_vector.h: Trivial formatting fixes.
1353 * include/bits/vector.tcc: Likewise.
1355 2004-04-25 Paolo Carlini <pcarlini@suse.de>
1357 PR libstdc++/15002 (continued again)
1358 * include/bits/istream.tcc (getline(basic_istream<>&,
1359 basic_string<>&, _CharT)): Use a temporary buffer, thus
1360 avoiding reallocation for common case.
1362 * include/bits/basic_string.tcc (_S_construct(_InIterator,
1363 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
1364 of temporary buffer to a power of two.
1366 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
1368 2004-04-25 Paolo Carlini <pcarlini@suse.de>
1370 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
1372 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
1374 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
1376 2004-04-24 Paolo Carlini <pcarlini@suse.de>
1377 Petur Runolfsson <peturr02@ru.is>
1379 PR libstdc++/15002 (continued)
1380 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
1381 streamsize, char_type)): Use traits::find/copy in a loop to speed
1382 up greatly the function in the common case (I/O buffer size >> 1).
1384 2004-04-24 Paolo Carlini <pcarlini@suse.de>
1386 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
1388 * include/bits/istream.tcc (getline(basic_istream<>&,
1389 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
1390 of sbumpc(), consistently with the other functions, thus also
1391 dealing correctly with the case of exceeded string::max_size().
1393 2004-04-24 Matthias Klose <doko@debian.org>
1395 Jonathan Wakely <cow@compsoc.man.ac.uk>
1396 * docs/html/configopts.html: Fix reference to allocator config option.
1398 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
1400 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
1401 * configure: Regenerate.
1403 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
1405 PR libstdc++/15047, libstdc++/11610
1406 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
1407 (libstdc++_init): Don't pass outdir to v3-copy-files.
1409 2004-04-21 Paolo Carlini <pcarlini@suse.de>
1411 * include/bits/deque.tcc: Trivial formatting fixes.
1412 * include/bits/stl_deque.h: Likewise.
1413 * include/bits/stl_list.h: Likewise.
1414 * include/bits/stl_tree.h: Likewise.
1416 2004-04-21 Paolo Carlini <pcarlini@suse.de>
1417 Andrew Pinski <pinskia@physics.uc.edu>
1419 * include/bits/basic_string.tcc (_M_mutate): Don't compute
1420 __src unnecessarily.
1422 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
1424 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
1425 Clarify assertion, set test variable to false before assert.
1426 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
1427 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
1428 * testsuite/27_io/ios_base/storage/2.cc: Same.
1430 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
1432 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
1433 * testsuite/27_io/fpos/14320-3.cc: Same.
1435 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
1436 * testsuite/27_io/fpos/1.cc: Same.
1437 * testsuite/27_io/basic_stringstream/2.cc: Same.
1438 * testsuite/27_io/basic_stringbuf/4.cc: Same.
1439 * testsuite/27_io/basic_stringbuf/1.cc: Same.
1440 * testsuite/27_io/basic_stringbuf/2.cc: Same.
1441 * testsuite/27_io/basic_streambuf/2.cc: Same.
1442 * testsuite/27_io/basic_ostringstream/2.cc: Same.
1443 * testsuite/27_io/basic_ostream/2.cc: Same.
1444 * testsuite/27_io/basic_ofstream/2.cc: Same.
1445 * testsuite/27_io/basic_istringstream/2.cc: Same.
1446 * testsuite/27_io/basic_istream/2.cc: Same.
1447 * testsuite/27_io/basic_iostream/2.cc: Same.
1448 * testsuite/27_io/basic_ios/2.cc: Same.
1449 * testsuite/27_io/basic_ifstream/2.cc: Same.
1450 * testsuite/27_io/basic_fstream/2.cc: Same.
1451 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
1453 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
1454 unsigned against zero.
1455 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
1456 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
1458 * testsuite/18_support/new_delete_placement.cc: Initialize
1459 variables before first use.
1460 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
1461 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
1462 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
1463 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
1465 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
1466 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
1468 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
1469 * testsuite/27_io/types/2.cc: Same.
1471 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
1473 * testsuite/27_io/fpos/14775.cc: Same.
1475 2004-04-19 Paolo Carlini <pcarlini@suse.de>
1477 PR libstdc++/15002 (partial)
1478 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
1479 Special case __n2 == 1, not calling traits_type::assign/copy.
1481 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
1483 * include/bits/stl_bvector.h: Use _M_impl._M_start.
1485 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
1487 * include/bits/c++config (_GLIBCXX_STD): New.
1488 * src/list.cc: Use it.
1489 * include/std/std_bitset.h: Same.
1490 * include/bits/vector.tcc: Same.
1491 * include/bits/stl_set.h: Same.
1492 * include/bits/stl_multiset.h: Same.
1493 * include/bits/stl_multimap.h: Same.
1494 * include/bits/stl_map.h: Same.
1495 * include/bits/stl_list.h: Same.
1496 * include/bits/stl_vector.h: Same.
1497 * include/bits/stl_bvector.h: Same.
1498 * include/bits/stl_deque.h: Same.
1499 * include/bits/deque.tcc: Same.
1500 * include/bits/list.tcc: Same.
1501 * include/debug/vector: Same.
1502 * include/debug/set.h: Same.
1503 * include/debug/multiset.h: Same.
1504 * include/debug/multimap.h: Same.
1505 * include/debug/map.h: Same.
1506 * include/debug/list: Same.
1507 * include/debug/deque: Same.
1508 * include/debug/bitset: Same.
1509 * include/debug/formatter.h (__gnu_debug): Remove using directive.
1510 Add using declaration for std::type_info.
1511 * include/debug/safe_iterator.h: Add using declaration for
1512 std::iterator_traits and std::pair.
1513 * src/debug_list.cc: New.
1514 * src/Makefile.am: Add debug_list.cc.
1515 * src/Makefile.in: Regenerate.
1516 * config/linker-map.gnu: Add _List_node_base exports for std and
1519 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
1520 idiom that other containers use.
1521 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
1523 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1526 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
1528 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
1529 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
1531 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1533 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
1535 * config.h.in: Regenerate.
1537 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1539 * config/locale/generic/monetary_members.cc
1540 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
1541 btowc unnecessarily, just cast to wchar_t (the concerned chars
1542 all belong to the basic character set).
1543 * config/locale/generic/numeric_members.cc
1544 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1545 * config/locale/gnu/monetary_members.cc
1546 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
1547 * config/locale/gnu/numeric_members.cc
1548 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1550 2004-04-15 Paolo Carlini <pcarlini@suse.de>
1552 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
1553 avoid constructing unnecessarily this->name().
1555 2004-04-14 Zack Weinberg <zack@codesourcery.com>
1557 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
1558 Change definition of CXX to use $(shell) instead of backticks.
1559 * testsuite/Makefile.in: Regenerate.
1561 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
1563 * testsuite/performance/20_util/allocator/list_sort_search.cc:
1564 Minor formatting fixes.
1565 * testsuite/performance/20_util/allocator/map_mt_find.cc:
1568 2004-04-12 Paolo Carlini <pcarlini@suse.de>
1570 * config/locale/gnu/numeric_members.cc
1571 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
1572 in __uselocale, since btowc is called for chars belonging to
1573 the basic character set.
1575 2004-04-09 Paolo Carlini <pcarlini@suse.de>
1577 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
1578 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
1579 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
1580 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
1581 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
1582 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
1583 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
1584 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
1585 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
1586 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
1587 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
1588 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
1589 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
1590 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
1591 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
1592 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
1593 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
1595 2004-04-07 Paolo Carlini <pcarlini@suse.de>
1597 * config/locale/generic/time_members.cc
1598 (__timepunct<char>::_M_initialize_timepunct,
1599 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
1600 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
1601 * config/locale/gnu/time_members.cc
1602 (__timepunct<char>::_M_initialize_timepunct,
1603 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
1604 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
1605 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
1607 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
1608 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
1609 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
1610 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
1611 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
1612 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
1613 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
1614 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
1615 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
1616 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
1617 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
1618 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
1619 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
1620 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
1621 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
1622 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
1623 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
1624 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
1625 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
1626 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
1627 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
1628 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
1629 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
1630 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
1631 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
1632 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
1633 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
1634 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
1635 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
1636 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
1637 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
1638 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
1639 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
1640 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
1641 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
1642 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
1644 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
1646 2004-04-07 Paolo Carlini <pcarlini@suse.de>
1648 * config/locale/gnu/monetary_members.cc
1649 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
1650 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
1651 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
1652 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
1653 * config/locale/gnu/numeric_members.cc
1654 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
1655 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
1657 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
1659 Fixups for EDG front end.
1660 * include/ext/rope: Instead of non-existent function
1661 _Data_allocate, use allocator's allocate. Use this.
1662 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
1663 enumerations from _Rope_RopeRep here.
1664 * include/ext/ropeimpl.h: Same.
1665 * src/ext-inst.cc (_S_min_len): Fix up definition.
1667 * config/locale/gnu/ctype_members.cc: Qualify base class members
1669 * config/locale/generic/ctype_members.cc: Same.
1670 * config/locale/gnu/messages_members.h: Same.
1671 * config/locale/generic/messages_members.h: Same.
1672 * src/ctype.cc: Same.
1673 * include/bits/codecvt.h: Same.
1675 * include/bits/boost_concept_check.h: Declare.
1676 (__error_type_must_be_an_unsigned_integer_type): Remove this.
1677 (__error_type_must_be_an_integer_type): Remove this.
1678 (__error_type_must_be_a_signed_integer_type): Remove this.
1680 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
1682 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
1683 specification to definition.
1684 (__cxa_allocate_exception): Same.
1685 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
1686 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
1687 (__cxa_get_globals): Same.
1689 * libsupc++/del_op.cc: Add comment about freestanding.
1691 2004-04-05 Paolo Carlini <pcarlini@suse.de>
1693 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1694 The critical section is actually very small, only two assignments.
1696 2004-04-04 Paolo Carlini <pcarlini@suse.de>
1697 Petur Runolfsson <peturr02@ru.is>
1699 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
1700 adapted from libstdc++/11378.
1702 2004-04-03 Paolo Carlini <pcarlini@suse.de>
1704 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
1705 some duplicated code.
1706 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
1707 in the single threaded case.
1708 * testsuite/performance/20_util/allocator/list_sort_search.cc:
1709 Reorder and renumber the tests consistently with the other testfiles.
1710 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1711 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1712 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1714 2004-04-02 Paolo Carlini <pcarlini@suse.de>
1716 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1717 Rearrange arithmetic to avoid computing two divisions at
1720 2004-04-01 Paolo Carlini <pcarlini@suse.de>
1722 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
1723 Streamline the second half, wrapping it in a single
1724 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
1725 conditionals inside loops.
1727 2004-04-01 Paolo Carlini <pcarlini@suse.de>
1730 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
1731 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
1732 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
1733 to _GLIBCXX_RES_LIMITS.
1734 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
1736 * testsuite/testsuite_hooks.h: Declare set_file_limit.
1737 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
1738 and setrlimit(RLIMIT_FSIZE).
1739 * testsuite/27_io/fpos/14775.cc: New.
1740 * config.h.in: Regenerate.
1741 * configure: Likewise.
1743 2004-03-31 Paolo Carlini <pcarlini@suse.de>
1745 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
1746 In v3 uses of sscanf, the special floating-point numbers INF,
1747 INFINITY, etc., cannot occur in input, therefore, if the latter
1748 is too large, ERANGE is always stored in errno, no need of finitel.
1750 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
1753 * include/bits/stl_tree.h: Adjust initialization list order.
1755 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
1757 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
1759 2004-03-29 Paolo Carlini <pcarlini@suse.de>
1761 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
1762 on allocator behavior, the memory pointed by data2 may well be not
1765 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
1768 * include/bits/basic_string.tcc
1769 (basic_string::basic_string(const basic_string&)): Pass to
1770 _Rep::_M_grab the actual allocator of the string being constructed
1771 not the default constructed one.
1773 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
1776 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
1777 (__enc_traits::_M_destroy): New.
1778 (__enc_traits::~__enc_traits): Use it.
1779 (__enc_traits::operator=): Use _M_destroy, _M_init.
1780 (__enc_traits::__enc_traits): Same.
1782 2004-03-27 Petur Runolfsson <peturr02@ru.is>
1784 * testsuite/ext/enc_filebuf/char/13598.cc: New.
1786 2004-03-27 Paolo Carlini <pcarlini@suse.de>
1788 * include/ext/mt_allocator.h: Uglify consistently names of
1789 variables, members and classes; tidy.
1791 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
1793 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1794 Deallocation loop rewrote.
1796 2004-03-26 Paolo Carlini <pcarlini@suse.de>
1798 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1799 __mt_alloc<>::deallocate): Protect two instances of
1800 block->thread_id with __GTHREADS.
1802 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
1804 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
1805 default argument in constructors.
1806 (_Rb_tree::_M_empty_initialize): Remove.
1808 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
1810 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
1811 * testsuite/23_containers/set/operators/1_neg.cc: Same.
1813 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1815 * include/bits/cpp_type_traits.h: Changed __is_pod
1816 completely. Now, it does not use any of the previous type_traits
1817 to detect the pod types, and it also detects function pointers as
1820 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
1821 which encapsulates the internal implementation of an rb_tree. Made
1822 the allocator a base class of this class instead of the rb_tree,
1823 which was not conforming. This _Rb_tree_impl class is also
1824 specialized on whether the _Compare parameter is a POD type or
1825 not. If so, then it maintains the comparison function as a data
1826 member, otherwise it makes the _Compare parameter a base class of
1827 itself. Also, _M_key_compare is now a function instead of a data
1828 member, so that the above trick can work properly. Delegated the
1829 initialization of the other data members to this newly created
1830 class. Also, now other member functions of rb_tree must refer to
1831 _M_key_compare as _M_impl._M_key_compare(). The other data members
1832 (*) can be referenced to as _M_impl.(*), where
1833 (*) includes _M_header, and _M_node_count.
1835 2004-03-25 Paolo Carlini <pcarlini@suse.de>
1837 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
1838 Add _M_min_bin, the size in bytes of the smallest bin.
1839 (__mt_alloc<>::tune()): Tweak accordingly.
1840 (__mt_alloc<>::tune(size_t, ...)): Likewise.
1841 (__mt_alloc<>::block_record): Change to a union: members next
1842 and thread_id are never used at the same time.
1843 (__mt_alloc<>::allocate): Update consistently.
1844 (__mt_alloc<>::deallocate): Likewise.
1845 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
1846 _S_bin_size for the configurable _M_min_size.
1848 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1850 * include/bits/stl_list.h: Created a _List_impl class and made it
1851 derive from the allocator, instead of the list deriving from the
1852 allocator class, which was not conformant. Changed all references
1853 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
1854 as above (changed all references to the concerned variables).
1856 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1858 * include/bits/stl_deque.h: Created a _Deque_impl class and made
1859 it derive from the allocator, instead of the deque deriving from
1860 the allocator class, which was not conformant. Changed all
1861 references to the _M_start, _M_finish, _M_map, and _M_map_size to
1863 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
1864 qualification in 2 places where it was missing.
1865 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
1867 * include/bits/deque.tcc: Same as above (changed all references to
1868 the concerned variables).
1870 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1872 * include/bits/stl_vector.h: Created a _Vector_impl class and made
1873 it derive from the allocator, instead of the _Vector_base class,
1874 deriving from the allocator which was not conformant. Changed all
1875 references to the _M_start, _M_finish, and _M_end_of_storage to
1877 * include/bits/vector.tcc: Same as above (changed all references
1878 to the concerned variables).
1880 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1882 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
1883 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
1884 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
1886 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
1888 * include/ext/malloc_allocator.h: Fixed the construct function to
1889 call global placement new instead of assignment. Added a check
1890 after the return from malloc to check whether returned pointer is
1891 NULL, and if so, throw std::bad_alloc().
1892 * include/ext/debug_allocator.h: Added a check in the deallocate
1893 function to check whether the user has passed a NULL pointer or
1896 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
1898 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
1900 2004-03-24 Andreas Schwab <schwab@suse.de>
1902 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
1903 warning from IA64 assembler.
1905 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
1907 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
1908 function call __builtin_ctz instead of the while loop.
1909 (allocate) -> If condition has __builtin_expect.
1910 (deallocate) -> Ditto.
1911 Renamed a few left-over variables and typedefs according to the
1912 C++STYLE mentioned in the documentation.
1913 Protected calls to __gthread* by __gthread_active_p(), whose value
1914 is cached in the local variable __threads_active.
1916 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
1918 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1919 Use linear algorithm for producer.
1921 2004-03-24 Paolo Carlini <pcarlini@suse.de>
1923 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1924 __mt_alloc<>::deallocate): Avoid redundant conditionals.
1926 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
1928 * include/bits/locale_facets.h: Tweaks for 80 column.
1929 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
1930 (__moneypunct_cache::_M_cache): Same.
1931 (num_get): Don't inherit from __num_base.
1933 (money_get): Don't inherit from money_base.
1935 (__timepunct::_M_am_pm_format): New.
1936 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
1937 (time_get::_M_extract_name): Same.
1938 (time_get::_M_extract_via_format): Same.
1939 * include/bits/locale_facets.tcc: Tweaks for 80 column.
1940 Use _M_getloc instead of getloc.
1941 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
1942 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
1943 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
1945 2004-03-22 Paolo Carlini <pcarlini@suse.de>
1947 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
1948 * configure: Regenerate.
1949 * config/allocator/pool_allocator_base.h: New.
1950 * include/ext/pool_allocator.h: Convert to a standard-conforming
1952 * src/allocator.cc: Tweak instantiations.
1953 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
1954 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
1955 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
1956 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1957 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1958 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1960 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
1962 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
1963 inline" and attribute-unused. Qualify parameter __mem with
1965 (__exchange_and_add): Ditto. Add back memory clobber to asm.
1967 2004-03-20 Paolo Carlini <pcarlini@suse.de>
1969 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
1971 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
1973 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
1975 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
1977 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
1979 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
1981 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
1983 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
1985 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
1987 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
1990 2004-03-20 Paolo Carlini <pcarlini@suse.de>
1992 * include/std/std_valarray.h: Document DR389 [Ready].
1993 * docs/html/ext/howto.html: Add an entry for DR389.
1995 2004-03-19 Michael Eager <eager@mvista.com>
1997 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
2000 2004-03-19 Paolo Carlini <pcarlini@suse.de>
2002 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
2004 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
2005 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
2006 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
2007 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
2008 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
2009 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
2010 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
2011 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
2012 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
2014 2004-03-19 Paolo Carlini <pcarlini@suse.de>
2015 Petur Runolfsson <peturr02@ru.is>
2018 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
2019 no way to find out the conversion used by the underlying FILE*.
2020 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
2021 * testsuite/27_io/objects/char/9.cc: Tweak.
2023 2004-03-19 Paolo Carlini <pcarlini@suse.de>
2026 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
2027 memory allocation/deallocation calls.
2028 * testsuite/ext/14648.cc: New.
2030 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
2033 * include/backward/bvector.h (bit_vector): Allocator is in std
2036 2004-03-19 Phil Edwards <phil@codesourcery.com>
2038 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
2039 not libiconv. SUBST this variable as well.
2040 * testsuite/Makefile.am (site.exp): New target, based on that
2041 created by automake. Also set libiconv.
2043 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
2044 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2045 testsuite/Makefile.in: Regenerate.
2047 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
2049 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
2050 new_allocator for all hosts.
2051 * configure: Regenerate.
2053 2004-03-16 Paolo Carlini <pcarlini@suse.de>
2055 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
2056 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2058 2004-03-15 Paolo Carlini <pcarlini@suse.de>
2060 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2061 Adjust the logic underlying the parsing of symbol to deal
2062 correctly with an optional sign component (i.e., when either
2063 negative_sign or positive_sign is empty)
2064 * testsuite/22_locale/money_get/get/char/19.cc: New.
2065 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
2067 2004-03-15 Paolo Carlini <pcarlini@suse.de>
2069 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2070 Do not accept an incomplete currency symbol.
2071 * testsuite/22_locale/money_get/get/char/18.cc: New.
2072 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
2074 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
2076 * config/allocator: New.
2077 * config/allocator/bitmap_allocator_base.h: New.
2078 * config/allocator/malloc_allocator_base.h: New.
2079 * config/allocator/mt_allocator_base.h: New.
2080 * config/allocator/new_allocator_base.h: New.
2081 * include/bits/allocator.h: Include c++allocator.h.
2082 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
2083 * aclocal.m4: Regenerate.
2084 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
2085 * configure: Regenerate.
2086 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
2087 * include/Makefile.in: Regenerate.
2088 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
2090 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
2092 * include/bits/allocator.h: Revert.
2094 2004-03-12 Paolo Carlini <pcarlini@suse.de>
2096 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
2097 * include/bits/gslice_array.h: Add comment about DR 253.
2098 * include/bits/indirect_array.h: Likewise.
2099 * include/bits/mask_array.h: Likewise.
2100 * include/bits/slice_array.h: Likewise.
2102 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
2104 * testsuite/20_util/allocator/14176.cc: New.
2105 * include/ext/mt_allocator.h: Formatting fixes.
2107 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
2109 * include/Makefile.am (ext_headers): Add
2110 ${ext_srcdir}/bitmap_allocator.h .
2111 * include/Makefile.in: Regenerate.
2112 * docs/html/ext/ballocator_doc.txt: New file.
2113 * include/ext/bitmap_allocator.h: New file.
2114 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
2116 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
2117 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
2118 test for the bitmap_allocator<>.
2119 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
2120 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
2121 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
2123 2004-03-11 Paolo Carlini <pcarlini@suse.de>
2125 * include/std/std_complex.h (pow(const complex&, const _Tp&),
2126 pow(const _Tp&, const complex&), pow(const complex&,
2127 const complex&)): Fully qualify with std:: a few calls.
2128 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
2130 2004-03-11 Steven Bosscher <stevenb@suse.de>
2133 * include/c_std/cmath.tcc (__cmath_power): Define inline.
2135 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
2137 * configure.ac: Bump AC_PREREQ to 2.59.
2139 2004-03-10 Paolo Carlini <pcarlini@suse.de>
2141 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
2143 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
2144 Paolo Carlini <pcarlini@suse.de>
2147 * include/std/std_complex.h (pow(const complex&, const _Tp&),
2148 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
2149 * testsuite/26_numerics/complex/13450.cc: New.
2151 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
2152 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
2154 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
2157 * include/bits/gslice_array.h (gslice_array()): Make public.
2158 (operator=(gslice_array)): Make public. Implement.
2159 * include/bits/indirect_array.h (indirect_array()): Make public.
2160 * include/bits/mask_array.h (mask_array()): Make public.
2161 (operator=(mask_array)): Make public. Implement.
2162 * include/bits/valarray_array.tcc (__valarray_copy):
2163 Comment. Add versions for gslice_array and mask_array.
2164 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
2166 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
2168 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
2170 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
2171 * testsuite/23_containers/set/modifiers/swap.cc: Same.
2172 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2173 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2174 * testsuite/23_containers/map/modifiers/swap.cc: Same.
2175 * testsuite/23_containers/list/modifiers/swap.cc: Same.
2177 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
2179 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
2182 * testsuite/23_containers/deque/modifiers/swap.cc: New.
2183 * testsuite/23_containers/list/modifiers/swap.cc: New.
2184 * testsuite/23_containers/map/modifiers/swap.cc: New.
2185 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
2186 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
2187 * testsuite/23_containers/set/modifiers/swap.cc: New.
2188 * testsuite/23_containers/vector/modifiers/swap.cc: New.
2190 2004-03-08 Petur Runolfsson <peturr02@ru.is>
2193 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
2195 2004-03-08 Paolo Carlini <pcarlini@suse.de>
2197 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
2198 * include/bits/stl_multiset.h: Add comment about DR 103.
2199 * include/bits/stl_set.h: Likewise.
2201 2004-03-08 Paolo Carlini <pcarlini@suse.de>
2203 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2204 The value _space_ indicates that at least one space is required
2206 * testsuite/22_locale/money_get/get/char/17.cc: New.
2207 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
2209 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
2210 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
2212 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
2213 Remove redundant conditional on __str.size().
2215 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
2217 * include/bits/allocator.h: Switch defaults to mt_alloc.
2219 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
2221 * include/ext/mt_allocator.h (_S_initialize): If
2222 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
2224 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
2227 * src/locale_init.cc (locale::locale): Lock critical regions with
2229 (locale::global): Same.
2230 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
2231 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
2232 (__glibcxx_mutex_lock): Same.
2234 * config/cpu/generic/atomicity.h: Remove
2235 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
2236 * src/misc-inst.cc: Move all locking bits out of this file.
2238 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
2239 * src/misc-inst.cc: Same.
2240 * config/cpu/hppa/atomicity.h: Same.
2242 * config/linker-map.gnu: Remove types in the signature of atomic
2243 exports, as they may vary.
2245 2004-03-06 Paolo Carlini <pcarlini@suse.de>
2247 * include/bits/locale_facets.tcc: Tweak the comment preceding
2248 has_facet: doesn't throw.
2250 2004-03-06 Paolo Carlini <pcarlini@suse.de>
2252 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
2253 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2254 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2255 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2256 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2257 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2258 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2259 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2261 2004-03-06 Paolo Carlini <pcarlini@suse.de>
2263 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2264 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
2265 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
2266 * testsuite/testsuite_character.h (struct __gnu_test::character):
2268 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
2271 2004-03-05 Paolo Carlini <pcarlini@suse.de>
2273 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
2275 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
2277 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
2279 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
2281 * testsuite/23_containers/deque/invalidation/4.cc: Same.
2282 * testsuite/23_containers/list/invalidation/1.cc: Same.
2283 * testsuite/23_containers/list/invalidation/2.cc: Same.
2284 * testsuite/23_containers/list/invalidation/3.cc: Same.
2285 * testsuite/23_containers/list/invalidation/4.cc: Same.
2286 * testsuite/23_containers/map/invalidation/2.cc: Same.
2287 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
2288 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2289 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
2290 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2291 * testsuite/23_containers/set/invalidation/1.cc: Same.
2292 * testsuite/23_containers/set/invalidation/2.cc: Same.
2293 * testsuite/23_containers/vector/invalidation/1.cc: Same.
2294 * testsuite/23_containers/vector/invalidation/2.cc: Same.
2295 * testsuite/23_containers/vector/invalidation/3.cc: Same.
2296 * testsuite/23_containers/vector/invalidation/4.cc: Same.
2298 2004-03-04 Paolo Carlini <pcarlini@suse.de>
2300 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
2302 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
2304 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
2305 from the dg-options.
2306 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
2307 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
2308 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
2309 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
2310 * testsuite/23_containers/vector/resize/1.cc: Likewise.
2311 * testsuite/26_numerics/complex_value.cc: Likewise.
2312 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
2313 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
2314 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
2315 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
2316 * testsuite/27_io/objects/char/5.cc: Likewise.
2317 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
2318 * testsuite/backward/11460.cc: Likewise.
2319 * testsuite/thread/pthread7-rope.cc: Likewise.
2321 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
2322 missing test variable.
2323 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
2324 missing test variable.
2326 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
2328 * testsuite/20_util/allocator/1.cc: Provide explicit
2329 instantiations for non-weak systems.
2330 * testsuite/20_util/binders.cc: Same.
2331 * testsuite/20_util/allocator/8230.cc: Same.
2332 * testsuite/20_util/allocator/10378.cc: Same.
2333 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
2334 * testsuite/22_locale/ctype/is/char/2.cc: Same.
2335 * testsuite/thread/pthread7-rope.cc: Same.
2336 * testsuite/thread/pthread6.cc: Same.
2337 * testsuite/thread/pthread5.cc: Same.
2338 * testsuite/thread/pthread4.cc: Same.
2339 * testsuite/thread/pthread1.cc: Same.
2340 * testsuite/ext/rope.cc: Same.
2341 * testsuite/ext/hash_set.cc: Same.
2342 * testsuite/ext/hash_map.cc: Same.
2343 * testsuite/ext/concept_checks.cc: Same.
2344 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
2345 * testsuite/25_algorithms/unique/2.cc: Same.
2346 * testsuite/25_algorithms/unique/1.cc: Same.
2347 * testsuite/25_algorithms/rotate.cc: Same.
2348 * testsuite/25_algorithms/min_max.cc: Same.
2349 * testsuite/25_algorithms/equal.cc: Same.
2350 * testsuite/24_iterators/rel_ops.cc: Same.
2351 * testsuite/24_iterators/iterator.cc: Same.
2352 * testsuite/24_iterators/insert_iterator.cc: Same.
2353 * testsuite/24_iterators/front_insert_iterator.cc: Same.
2354 * testsuite/24_iterators/back_insert_iterator.cc: Same.
2355 * testsuite/23_containers/vector/resize/1.cc: Same.
2356 * testsuite/23_containers/vector/modifiers/2.cc: Same.
2357 * testsuite/23_containers/vector/modifiers/1.cc: Same.
2358 * testsuite/23_containers/vector/invalidation/4.cc: Same.
2359 * testsuite/23_containers/vector/invalidation/3.cc: Same.
2360 * testsuite/23_containers/vector/invalidation/2.cc: Same.
2361 * testsuite/23_containers/vector/invalidation/1.cc: Same.
2362 * testsuite/23_containers/vector/element_access/1.cc: Same.
2363 * testsuite/23_containers/vector/cons/6513.cc: Same.
2364 * testsuite/23_containers/vector/cons/3.cc: Same.
2365 * testsuite/23_containers/vector/cons/2.cc: Same.
2366 * testsuite/23_containers/vector/cons/1.cc: Same.
2367 * testsuite/23_containers/vector/capacity/8230.cc: Same.
2368 * testsuite/23_containers/vector/capacity/1.cc: Same.
2369 * testsuite/23_containers/vector/bool/6886.cc: Same.
2370 * testsuite/23_containers/stack/members/7158.cc: Same.
2371 * testsuite/23_containers/set/invalidation/2.cc: Same.
2372 * testsuite/23_containers/set/invalidation/1.cc: Same.
2373 * testsuite/23_containers/queue/members/7157.cc: Same.
2374 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
2375 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2376 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2377 * testsuite/23_containers/multiset/insert/1.cc: Same.
2378 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2379 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2380 * testsuite/23_containers/map/operators/1.cc: Same.
2381 * testsuite/23_containers/map/invalidation/2.cc: Same.
2382 * testsuite/23_containers/map/invalidation/1.cc: Same.
2383 * testsuite/23_containers/map/insert/1.cc: Same.
2384 * testsuite/23_containers/list/operators/4.cc: Same.
2385 * testsuite/23_containers/list/operators/3.cc: Same.
2386 * testsuite/23_containers/list/operators/2.cc: Same.
2387 * testsuite/23_containers/list/operators/1.cc: Same.
2388 * testsuite/23_containers/list/modifiers/3.cc: Same.
2389 * testsuite/23_containers/list/modifiers/2.cc: Same.
2390 * testsuite/23_containers/list/modifiers/1.cc: Same.
2391 * testsuite/23_containers/list/invalidation/4.cc: Same.
2392 * testsuite/23_containers/list/invalidation/3.cc: Same.
2393 * testsuite/23_containers/list/invalidation/2.cc: Same.
2394 * testsuite/23_containers/list/invalidation/1.cc: Same.
2395 * testsuite/23_containers/list/cons/9.cc: Same.
2396 * testsuite/23_containers/list/cons/8.cc: Same.
2397 * testsuite/23_containers/list/cons/7.cc: Same.
2398 * testsuite/23_containers/list/cons/6.cc: Same.
2399 * testsuite/23_containers/list/cons/5.cc: Same.
2400 * testsuite/23_containers/list/cons/4.cc: Same.
2401 * testsuite/23_containers/list/cons/3.cc: Same.
2402 * testsuite/23_containers/list/cons/2.cc: Same.
2403 * testsuite/23_containers/list/cons/1.cc: Same.
2404 * testsuite/23_containers/list/capacity/1.cc: Same.
2405 * testsuite/23_containers/deque/operators/1.cc: Same.
2406 * testsuite/23_containers/deque/invalidation/4.cc: Same.
2407 * testsuite/23_containers/deque/invalidation/3.cc: Same.
2408 * testsuite/23_containers/deque/invalidation/2.cc: Same.
2409 * testsuite/23_containers/deque/invalidation/1.cc: Same.
2410 * testsuite/23_containers/deque/cons/2.cc: Same.
2411 * testsuite/23_containers/deque/cons/1.cc: Same.
2413 * src/allocator.cc: Add char, wchar_t instantiations
2414 to match extern template declarations in memory.h.
2416 2004-03-03 Paolo Carlini <pcarlini@suse.de>
2418 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2419 Fix warning regression.
2421 2004-03-03 Paolo Carlini <pcarlini@suse.de>
2423 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2424 Deal properly with empty __digits and negative frac_digits,
2427 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
2429 * docs/html/documentation.html: Regenerate.
2431 2004-03-02 Paolo Carlini <pcarlini@suse.de>
2434 * include/bits/postypes.h (class streamoff): Remove, now
2435 streamoff is just typedef a 64 bit signed integer type.
2436 (class fpos): Tweak consistently.
2437 * testsuite/27_io/fpos/14320-1.cc: New.
2438 * testsuite/27_io/fpos/14320-2.cc: New.
2439 * testsuite/27_io/fpos/14320-3.cc: New.
2440 * testsuite/27_io/fpos/14320-4.cc: New.
2441 * testsuite/27_io/fpos/14320-5.cc: New.
2442 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
2444 2004-03-02 Paolo Carlini <pcarlini@suse.de>
2446 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2447 Reorganize a bit the main parsing loop, thus early detecting
2448 an empty value component.
2449 * testsuite/22_locale/money_get/get/char/16.cc: New.
2450 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
2452 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
2454 Support automake 1.8.2
2455 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
2456 * po/Makefile.am (EXTRA_DIST): New.
2457 * po/Makefile.in: Regenerate.
2458 * Makefile.in: Same.
2459 * include/Makefile.in: Same.
2460 * libmath/Makefile.in: Same.
2461 * libsupc++/Makefile.in: Same.
2462 * src/Makefile.in: Same.
2463 * testsuite/Makefile.in: Same.
2465 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
2466 __GXX_WEAK__ instead of SUPPORTS_WEAK.
2467 (${host_builddir}/gthr-default.h): Same.
2468 (${host_builddir}/gthr.h): Same.
2469 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
2470 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
2472 * aclocal.m4: Regenerate.
2473 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
2474 * config.h.in: Regenerate.
2477 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
2479 Support autoconf 2.59
2480 * acinclude.m4: Quote correctly.
2481 * aclocal.m4: Regenerate.
2484 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
2486 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
2488 * docs/html/18_support/howto.html: Add bit about writing to
2489 stderr, mostly by Zack.
2491 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2493 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2494 money_get<>::do_get(string_type&)): ... and two more.
2496 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2498 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2499 Fix thinkos in the switch from string_type& to string& as last
2502 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2504 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2505 Also when parsing exponent sign, first look for thousands_sep
2506 and decimal_point; tweak a bit.
2507 * testsuite/22_locale/num_get/get/char/15.cc: New.
2508 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
2510 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2511 num_get<>::_M_extract_int): Reorder some conditionals.
2513 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2515 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2516 Consistently with numpunct, enforce the requirements in
2517 22.2.6.3, p3 for the thousands separators; tweak a bit.
2518 * testsuite/22_locale/money_get/get/char/15.cc: New.
2519 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
2521 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
2523 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
2524 testsuite_files from correct multilib blddir when running
2527 2004-02-29 Phil Edwards <phil@codesourcery.com>
2529 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
2530 the summary file to the logfile.
2531 * testsuite/Makefile.in: Regenerate.
2533 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2535 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
2537 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
2538 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
2540 2004-02-28 Paolo Carlini <pcarlini@suse.de>
2542 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2543 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
2544 no 'decimal-point' in the middle: in this case too we must fix
2545 up __found_grouping; slightly tweak.
2546 * testsuite/22_locale/num_get/get/char/14.cc: New.
2547 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
2549 2004-02-27 Eric Christopher <echristo@redhat.com>
2550 Phil Edwards <phil@codesourcery.com>
2552 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
2553 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
2554 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
2555 testsuite/22_locale/collate/hash/wchar_t/2.cc,
2556 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
2557 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
2558 testsuite/22_locale/collate/transform/wchar_t/2.cc,
2559 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
2560 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2561 Use dg-require-iconv.
2562 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
2564 2004-02-27 Phil Edwards <phil@codesourcery.com>
2565 Eric Christopher <echristo@redhat.com>
2567 * testsuite/config/default.exp: Update with comments.
2568 (${tool}_target_compile): New wrapper routine.
2569 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
2570 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
2572 (load_gcc_lib, v3track): New routines.
2573 (v3-init): Rename to libstdc++_init.
2574 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
2575 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
2577 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
2579 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
2581 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
2583 * config/os/irix/irix5.2/atomicity.h: Merge..
2584 * config/os/irix/irix6.5/atomicity.h: Merge..
2585 * config/os/irix/atomicity.h: ...into this.
2586 * config/os/irix/atomic_word.h: New.
2587 * configure.host: Set atomic_word_dir for irix.
2589 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
2590 * i386/atomicity.h: Same.
2591 * m68k/atomicity.h: Same.
2592 * sparc/atomicity.h: Same.
2594 2004-02-27 David Edelsohn <edelsohn@gnu.org>
2596 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
2597 static, and inline keywords.
2599 2004-02-27 Paolo Carlini <pcarlini@suse.de>
2601 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2602 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
2603 call reserve on the __tmp_gruping string.
2604 (num_get<>::_M_extract_float): Don't append unnecessarily a
2605 char() to the returned string.
2606 * include/bits/locale_facets.tcc: Trivial reformattings.
2608 2004-02-27 Paolo Carlini <pcarlini@suse.de>
2610 * include/bits/locale_facets.h (money_get<>::_M_extract):
2611 Change signature: now takes a plain string&.
2612 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2613 Update consistently the definition; use the moneypunct cache
2614 to parse the value; use swap to change __units.
2615 (money_get<>::do_get(long double&)): Update call of _M_extract,
2616 avoid ctype::narrow, not correct wrt the standard.
2617 (money_get<>::do_get(string_type&)): Likewise, update call
2618 of _M_extract, use ctype::widen.
2619 * src/locale-inst.cc: Tweak instantiations of _M_extract.
2621 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
2623 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
2624 * testsuite/demangle/abi_examples/02.cc: Likewise.
2625 * testsuite/demangle/regression/cw-11.cc: Likewise.
2626 * testsuite/demangle/regression/cw-16.cc: Change two expected
2627 results to match libiberty demangler output.
2629 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
2632 * libsupc++/Makefile.am: Use libiberty demangler.
2633 (c_sources): Add cp-demangle.c.
2634 * libsupc++/Makefile.in: Regenerate.
2635 * src/Makefile.am (sources): Remove demangle.cc.
2636 * src/Makefile.in: Regenerate.
2637 * include/Makefile.am (bits_headers): Move demangle.h.
2638 (ext_headers): ...here.
2639 * include/Makefile.in: Regenerate.
2640 * include/bits/demangle.h: Move...
2641 * include/ext/demangle.h: ...here.
2642 * src/demangle.cc: Remove.
2644 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
2646 * include/bits/demangle.h: Add type template parameter to all
2647 templates with just an Allocator template parameter.
2649 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
2651 * include/bits/atomicity.h: New, forward declarations for __atomic_add
2652 and __exchange_and_add.
2653 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
2654 * config/cpu/cris/atomic_word.h: Same.
2655 * config/cpu/sparc/atomic_word.h: Same.
2656 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
2657 Qualifiy with __gnu_cxx.
2658 (_Callback_list::_M_add_reference): Same.
2659 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
2660 (locale::facet::_M_remove_reference): Same.
2661 (locale::_Impl::_M_add_reference): Add.
2662 (locale::_Impl::_M_remove_reference): Same.
2663 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
2664 (basic_string::_Rep::_M_dispose): Same.
2665 * src/ios.cc (ios_base::xalloc): Same.
2666 * src/ios_init.cc (ios_base::Init::Init): Same.
2667 (ios_base::Init::~Init): Same.
2668 * src/locale.cc (locale::id::_M_id): Same.
2669 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
2670 static, and inline keywords.
2671 * config/cpu/alpha/atomicity.h: Same.
2672 * config/cpu/cris/atomicity.h: Same.
2673 * config/cpu/generic/atomicity.h: Same.
2674 * config/cpu/hppa/atomicity.h: Same.
2675 * config/cpu/i386/atomicity.h: Same.
2676 * config/cpu/ia64/atomicity.h: Same.
2677 * config/cpu/m68k/atomicity.h: Same.
2678 * config/cpu/mips/atomicity.h: Same.
2679 * config/cpu/powerpc/atomicity.h: Same.
2680 * config/cpu/s390/atomicity.h: Same.
2681 * config/cpu/sparc/atomicity.h: Same.
2683 * src/Makefile.am (host_sources): Add atomicity.cc.
2684 (atomicity.cc): New rule.
2685 * src/Makefile.in: Regenerate.
2686 * include/Makefile.am (host_headers): Remove host atomicity.h.
2687 (host_headers): Add atomic_word.h.
2688 (bits_headers): Add bits atomicity.h.
2689 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2690 * include/Makefile.in: Regenerate.
2691 * configure.host (atomic_word_dir): Add.
2692 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
2693 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2694 * configure: Regenerate.
2695 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
2697 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
2698 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2700 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
2702 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
2703 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
2704 Fix markup, more <link> tags.
2706 2004-02-25 Carlo Wood <carlo@alinoe.com>
2709 namespace __gnu_cxx::demangler
2710 (session<Allocator>::qualifier_list_Allocator): Add
2711 (session<Allocator>::M_qualifier_list_alloc): Add
2712 (session<Allocator>::decode_type_with_postfix):
2713 Use M_qualifier_list_alloc instead of calling operator new/delete.
2715 2004-02-24 Paolo Carlini <pcarlini@suse.de>
2718 * include/bits/postypes.h (class streamoff): Add operator++(),
2719 operator++(int), operator--() and operator--(int).
2720 * testsuite/27_io/fpos/14252.cc: New.
2722 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
2724 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
2725 error in handling of hex constants.
2727 2004-02-24 Paolo Carlini <pcarlini@suse.de>
2729 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2730 Prefer basic_string::append to operator+= and a temporary.
2732 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
2734 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
2735 Only use fputs, not write.
2737 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
2739 * include/ext/malloc_allocator.h: Add operators ==, !=.
2740 * include/ext/new_allocator.h: Add operators ==, !=.
2741 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
2742 (__mt_alloc::_S_get_options): New.
2743 (__mt_alloc::_S_set_options): New.
2744 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
2745 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
2746 Move functions out of line, simplify, format.
2747 * src/allocator.cc: Simplify explicit instantiations.
2748 * include/bits/allocator.h: Tweak.
2750 2004-02-22 Paolo Carlini <pcarlini@suse.de>
2752 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2753 Restructure formatting of value component, first dealing with
2754 the non-decimal digits; use reserve.
2756 2004-02-22 Paolo Carlini <pcarlini@suse.de>
2758 * include/bits/locale_facets.h (class money_get): Inherit
2759 from money_base too; tweak declaration of _M_extract, now
2760 parameterized on _Intl too.
2761 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2762 Update definition to use the cache; call reserve on __res to
2763 avoid multiple reallocations; fix parsing of sign component
2764 according to 22.2.6.1.2, p3.
2765 (money_get<>::do_get(long double&),
2766 money_get<>::do_get(string_type&)): Update calls of _M_extract.
2767 * src/locale-inst.cc: Add instantiations of
2768 money_get::_M_extract<false> and money_get::_M_extract<true>.
2769 * testsuite/22_locale/money_get/get/char/14.cc: New.
2770 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
2772 2004-02-21 Mark Mitchell <mark@codesourcery.com>
2774 * libsupc++/vterminate.cc
2775 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
2777 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
2779 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2780 not set RLIMIT_AS on HP-UX.
2782 2004-02-21 Mark Mitchell <mark@codesourcery.com>
2784 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2785 not set RLIMIT_AS on HP-UX.
2787 2004-02-21 Paolo Carlini <pcarlini@suse.de>
2789 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
2790 _S_zero, _S_end } enum, _S_atoms.
2791 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
2792 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
2793 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
2794 (__moneypunct_cache<>::~__moneypunct_cache): Update.
2795 (__moneypunct_cache<>::_M_cache): Fill the cache.
2796 (class moneypunct): Tweak __cache_type typedef.
2797 (class money_put): Inherit from money_base too; tweak declaration
2798 of _M_insert, now parameterized on _Intl.
2799 * include/bits/locale_facets.tcc
2800 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
2801 (money_put<>::_M_insert): Update definition to use the cache;
2802 call reserve on __res to avoid multiple reallocations.
2803 (money_put<>::do_put(long double),
2804 money_put<>::do_put(const string_type&): Update calls of _M_insert.
2805 * config/locale/generic/monetary_members.cc
2806 (moneypunct<char, true>::_M_initialize_moneypunct,
2807 moneypunct<char, false>::_M_initialize_moneypunct,
2808 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
2809 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
2810 * config/locale/gnu/monetary_members.cc: Likewise.
2811 * config/locale/gnu/monetary_members.cc
2812 (moneypunct<wchar_t, true>::~moneypunct(),
2813 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
2814 * src/globals_locale.cc: Tweak fake_money_cache_c.
2815 * src/locale-inst.cc: Add instantiations for
2816 money_put::_M_insert<false> and money_put::_M_insert<true> and
2817 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
2818 * src/locale_facets.cc: Define money_base::_S_atoms.
2819 * src/locale_init.cc: Update placement new of
2820 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
2821 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
2823 * config/locale/generic/numeric_members.cc: Clean up.
2824 * config/locale/gnu/numeric_members.cc: Likewise.
2825 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
2826 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
2827 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
2828 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
2829 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
2830 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
2832 2004-02-20 Mark Mitchell <mark@codesourcery.com>
2834 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
2835 FIFO for writing with ios_base::in|ios_base::out.
2836 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
2837 * testsuite/27_io/objects/char/7.cc: Likewise.
2838 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
2841 2004-02-19 David Edelsohn <edelsohn@gnu.org>
2843 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
2844 from iso-8859-1 to ISO8859-1.
2845 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
2846 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
2847 * 22_locale/collate/hash/wchar_t/2.cc: Same.
2848 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
2849 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
2850 * 22_locale/collate/transform/wchar_t/2.cc: Same.
2851 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
2852 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
2854 2004-02-18 Paolo Carlini <pcarlini@suse.de>
2856 * include/bits/locale_facets.h (money_get<>::_M_extract):
2857 New, helper for do_get.
2858 (money_put<>::_M_insert): Likewise, for do_put.
2859 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2860 money_put<>::_M_insert): Define.
2861 (money_get<>::do_get(long double&), money_get<>::do_get(
2862 string_type&), money_put::do_put(long double),
2863 money_put::do_put(const string_type&)): Use the helpers.
2865 2004-02-18 Paolo Carlini <pcarlini@suse.de>
2867 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2868 Rewrite, avoiding recursion.
2869 (__gnu_internal::xwrite): Minor tweaks.
2871 2004-02-17 Stefan Olsson <stefan@xapa.se>
2873 * include/ext/mt_allocator.h: Removed the last
2874 pointer. Deallocated blocks are now added to the front of
2875 freelists as proposed by Felix Yen. This gives roughly 10%
2876 performance boost and saves some memory.
2877 * docs/html/ext/mt_allocator.html: Change due to that deallocated
2878 blocks now are added to the front of freelists. The reason to this
2879 approach is also explained.
2881 2004-02-17 Paolo Carlini <pcarlini@suse.de>
2883 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2884 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
2885 grouping fidelity conditional.
2887 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2889 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
2890 Qualify exception with std::.
2891 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
2892 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2893 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2894 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2895 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2897 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2899 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
2900 for now that the catch block is not reached.
2901 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
2903 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2905 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2906 Fix parsing of the remaining sign characters.
2907 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
2908 the input is scanned 'til eof.
2909 * 22_locale/money_get/get/char/4.cc: Likewise.
2910 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
2911 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
2912 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
2913 not do_pos_format: the former is the only one that matters during
2915 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
2917 * 22_locale/money_get/get/char/6.cc: Minor tweak.
2918 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
2920 2004-02-15 David Asher <david.asher@cavium.com>
2923 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
2924 access __olds beyond __oldlen.
2926 2004-02-14 Paolo Carlini <pcarlini@suse.de>
2928 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
2929 sure the exception is actually thrown.
2930 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2931 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2932 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2934 2004-02-14 Paolo Carlini <pcarlini@suse.de>
2937 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
2938 In case of conversion errors, throw ios_failure; simplify.
2939 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
2940 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2941 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
2942 previously we didn't throw in case of conversion errors, instead
2943 just returned eof().
2944 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2945 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2946 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2948 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
2949 Trivial simplification of a conditional.
2951 2004-02-12 Paolo Carlini <pcarlini@suse.de>
2953 PR libstdc++/13731 (final part: writev)
2954 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2955 New, a wrapper around writev() handling partial writes.
2956 (__basic_file<char>::xwrite): Move to __gnu_internal and make
2958 (__basic_file<char>::xsputn): Update call.
2959 (__basic_file<char>::xsputn_2): Likewise.
2960 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2961 Don't declare, now static.
2963 2004-02-11 Stefan Olsson <stefan@xapa.se>
2965 * docs/html/ext/mt_allocator.html: New.
2967 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
2969 * docs/html/20_util/allocator.html: New file, consolidate
2970 allocator information here. Revamp.
2971 * docs/html/documentation.html: Change links.
2972 * docs/html/20_util/howto.html: Same.
2973 * docs/html/ext/howto.html: Same.
2975 2004-02-11 Paolo Carlini <pcarlini@suse.de>
2977 PR libstdc++/13731 (first part: write)
2978 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2980 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
2981 Define it: a wrapper around write() handling partial write.
2982 (__basic_file<char>::xsputn): Use it.
2983 (__basic_file<char>::xsputn_2): Likewise.
2985 2004-02-11 Paolo Carlini <pcarlini@suse.de>
2986 Petur Runolfsson <peturr02@ru.is>
2989 * include/std/std_istream.h (operator>>(__istream_type& (*)
2990 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
2991 operator>>(ios_base& (*)(ios_base&))): Declare inline.
2992 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
2993 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
2994 operator<<(ios_base& (*) (ios_base&))): Likewise.
2995 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
2997 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
3000 * config/linker-map.gnu: Add typeinfo and typeinfo name for
3001 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
3004 * config/linker-map.gnu: Add typeinfo and typeinfo name for
3005 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
3007 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
3009 * include/ext/pool_allocator.h: Include c++config.h.
3011 2004-02-09 Stefan Olsson <stefan@xapa.se>
3013 * include/ext/mt_allocator.h: thread_id is unused in non threaded
3014 applications and now has a ifdef to remove it completely on
3015 compilers without thread support. Include stdlib.h due to a
3016 compiler warning on getenv().
3018 2004-02-09 Paul Brook <paul@codesourcery.com>
3020 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
3022 2004-02-09 Paolo Carlini <pcarlini@suse.de>
3025 * src/locale_init.cc (locale::global(const locale&)): Use
3026 locale::name() in order to decide whether calling setlocale.
3027 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
3029 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
3030 Avoid computing &= unnecessarily.
3032 2004-02-09 James E Wilson <wilson@specifixinc.com>
3035 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
3036 __builtin_extend_pointer.
3038 2004-02-09 Paolo Carlini <pcarlini@suse.de>
3041 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
3042 Don't leave dangling pointers.
3043 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
3044 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
3045 facet is needed in the final test.
3047 2004-02-09 Bernardo Innocenti <bernie@develer.com>
3049 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
3050 * configure: Regenerate.
3052 2004-02-08 Richard Henderson <rth@redhat.com>
3055 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
3056 uncaughtExceptions during nested catch rethrow.
3057 * testsuite/18_support/14026.cc: New.
3059 2004-02-08 Paolo Carlini <pcarlini@suse.de>
3061 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
3062 When working in place remember to set the state to sharable
3063 (otherwise, _M_mutate does it).
3065 2004-02-08 Bernardo Innocenti <bernie@develer.com>
3067 * include/bits/allocator.h, include/bits/basic_ios.h,
3068 include/bits/basic_ios.tcc, include/bits/basic_string.h,
3069 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
3070 include/bits/char_traits.h, include/bits/codecvt.h,
3071 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
3072 include/bits/demangle.h, include/bits/deque.tcc,
3073 include/bits/fstream.tcc, include/bits/functexcept.h,
3074 include/bits/gslice.h, include/bits/gslice_array.h,
3075 include/bits/indirect_array.h, include/bits/ios_base.h,
3076 include/bits/istream.tcc, include/bits/list.tcc,
3077 include/bits/locale_classes.h, include/bits/locale_facets.h,
3078 include/bits/locale_facets.tcc, include/bits/localefwd.h,
3079 include/bits/mask_array.h, include/bits/ostream.tcc,
3080 include/bits/postypes.h, include/bits/slice_array.h,
3081 include/bits/sstream.tcc, include/bits/stl_algo.h,
3082 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
3083 include/bits/stl_construct.h, include/bits/stl_deque.h,
3084 include/bits/stl_function.h, include/bits/stl_heap.h,
3085 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
3086 include/bits/stl_list.h, include/bits/stl_map.h,
3087 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
3088 include/bits/stl_numeric.h, include/bits/stl_pair.h,
3089 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
3090 include/bits/stl_relops.h, include/bits/stl_set.h,
3091 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
3092 include/bits/stl_threads.h, include/bits/stl_tree.h,
3093 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
3094 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
3095 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
3096 include/bits/type_traits.h, include/bits/valarray_after.h,
3097 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
3098 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
3099 trailing whitespace.
3101 2004-02-06 Paolo Carlini <pcarlini@suse.de>
3103 * include/bits/basic_string.h: Fix comment.
3105 2004-02-06 Paolo Carlini <pcarlini@suse.de>
3107 * include/bits/stl_construct.h: Wrap overlong lines, reformat
3108 according to the coding standards.
3109 * include/bits/stl_pair.h: Likewise.
3110 * include/bits/stl_raw_storage_iter.h: Likewise.
3111 * include/bits/stl_stack.h: Likewise.
3112 * include/bits/stl_uninitialized.h: Likewise.
3113 * include/bits/stream_iterator.h: Likewise.
3114 * include/bits/streambuf_iterator.h: Likewise.
3115 * include/bits/type_traits.h: Likewise.
3117 2004-02-06 Paolo Carlini <pcarlini@suse.de>
3119 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
3122 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
3124 * scripts/check_performance: Support PCH.
3126 * scripts/check_performance (CXX): Add -DNOTHREAD.
3127 * testsuite/performance/20_util/allocator/insert.cc: Integrate
3128 threaded tests from insert_insert.cc. Tweak iterations,
3129 remove special cases.
3130 * testsuite/performance/20_util/allocator/insert_insert.cc:
3131 Make all tests single-threaded. Tweak iterations.
3132 * testsuite/performance/20_util/allocator/map_thread.cc:
3134 * testsuite/performance/20_util/allocator/producer_consumer.cc:
3137 2004-02-05 Geoffrey Keating <geoffk@apple.com>
3141 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
3142 'gcc-lib'. Add comment about poorly-named variables.
3143 * aclocal.m4: Regenerate.
3144 * configure: Regenerate.
3146 2004-02-05 Paolo Carlini <pcarlini@suse.de>
3148 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
3149 Thousands-sep are always optional; thousands-sep are not allowed
3150 after the decimal_point.
3151 * testsuite/22_locale/money_get/get/char/12.cc: New.
3152 * testsuite/22_locale/money_get/get/char/13.cc: New.
3153 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
3154 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
3156 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
3157 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3158 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3159 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3160 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3161 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3162 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3163 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3165 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
3167 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
3169 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
3171 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
3173 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
3174 it to decide whether FIONREAD should take an off_t or int argument.
3176 2004-02-05 Paolo Carlini <pcarlini@suse.de>
3178 * include/bits/stl_function.h: Minor formatting changes.
3180 2004-02-04 Zack Weinberg <zack@codesourcery.com>
3182 Revert previous change to config/abi/*/baseline_symbols.txt.
3184 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
3185 Zack Weinberg <zack@codesourcery.com>
3187 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
3189 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
3190 (__basic_file<char>::_M_open_mode): Delete.
3191 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
3193 * testsuite/27_io/basic_filebuf/close/char/9964.cc
3194 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
3195 Correct flags to filebuf::open calls.
3197 * config/abi/alpha-freebsd5/baseline_symbols.txt
3198 * config/abi/alpha-linux-gnu/baseline_symbols.txt
3199 * config/abi/hppa-linux-gnu/baseline_symbols.txt
3200 * config/abi/i386-freebsd4/baseline_symbols.txt
3201 * config/abi/i386-freebsd5/baseline_symbols.txt
3202 * config/abi/i486-linux-gnu/baseline_symbols.txt
3203 * config/abi/ia64-linux-gnu/baseline_symbols.txt
3204 * config/abi/mips-linux-gnu/baseline_symbols.txt
3205 * config/abi/sparc-freebsd5/baseline_symbols.txt
3206 * config/abi/sparc-linux-gnu/baseline_symbols.txt
3207 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
3208 Remove entry for __basic_file<char>::_M_open_mode.
3210 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
3212 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
3214 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
3216 * testsuite/performance/20_util/producer_consumer.cc: New.
3217 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
3219 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
3221 * testsuite/performance/20_util/allocator.cc: Move to..
3222 * testsuite/performance/20_util/allocator/insert.cc: ...here.
3223 * testsuite/performance/20_util/allocator_thread.cc: Move to...
3224 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
3225 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
3226 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
3228 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
3230 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
3231 * docs/html/faq/index.txt: Regenerate.
3233 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
3235 * include/ext/debug_allocator.h: _M_extra now stands for the
3236 number of extra objects instead of the number of extra bytes.
3237 (debug_allocator::allocate): Adjust.
3238 (debug_allocator::deallocate): Adjust.
3240 * include/ext/pool_allocator.h: Fix typo.
3242 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
3243 Benjamin Kosnik <bkoz@redhat.com>
3245 * testsuite/performance/20_util/allocator.cc: Add map,
3247 * testsuite/performance/20_util/allocator_thread.cc: Same.
3249 2004-02-03 Paolo Carlini <pcarlini@suse.de>
3251 * include/bits/basic_string.h (insert(iterator)): Remove,
3252 non-standard and already scheduled for removal.
3254 2004-02-03 Paolo Carlini <pcarlini@suse.de>
3256 * include/bits/stl_iterator_base_funcs.h: Minor formatting
3257 and indentation tweaks.
3258 * include/bits/stl_iterator_base_types.h: Likewise.
3259 * include/bits/stl_list.h: Likewise.
3260 * include/bits/stl_map.h: Likewise.
3261 * include/bits/stl_tempbuf.h: Likewise.
3263 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
3265 * include/bits/gslice.h, include/bits/gslice_array.h,
3266 include/bits/indirect_array.h, include/bits/mask_array.h,
3267 include/bits/slice_array.h, include/bits/stl_numeric.h,
3268 include/std/std_valarray.h: Update copyright years.
3270 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
3272 * include/bits/gslice.h (gslice): Document.
3273 * include/bits/gslice_array.h (gslice_array): Document.
3274 * include/bits/indirect_array (indirect_array): Document.
3275 * include/bits/mask_array (mask_array): Document.
3276 * include/bits/slice_array.h (slice,slice_array): Document.
3277 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
3278 adjacent_difference): Document
3279 * include/std/std_valarray.h (valarray): Document.
3281 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
3283 * docs/html/19_diagnostics/howto.html: Move verbose terminate
3285 * docs/html/18_support/howto.html: Here.
3286 * docs/html/documentation.html: Add reference here.
3288 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3290 * config/locale/gnu/c++locale_internal.h: Remove prototypes
3291 of no longer used GLIBC thread locale functions.
3293 2004-02-02 Eric Christopher <echristo@redhat.com>
3294 Zack Weinberg <zack@codesourcery.com>
3296 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
3298 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
3299 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
3300 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
3301 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
3302 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
3303 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
3304 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
3305 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3308 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3310 * include/bits/stl_function.h: Additional minor tweaks.
3311 * include/bits/stl_multiset.h: Likewise.
3313 * include/bits/stl_queue.h: Minor tweaks.
3315 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3317 PR libstdc++/13976 (continued)
3318 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
3319 Make the second parameter unnamed, to void unused parameter
3321 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
3323 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3326 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
3327 Make the second parameter unnamed, to void unused parameter
3329 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
3330 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
3332 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3334 * include/bits/stl_algo.h: Additional minor tweaks.
3335 * include/bits/stl_map.h: Likewise.
3336 * include/bits/stl_multimap.h: Likewise.
3337 * include/bits/stl_multiset.h: Likewise.
3338 * include/bits/stl_set.h: Likewise.
3339 * include/bits/stl_tree.h: Likewise.
3341 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3343 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
3346 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3348 * include/bits/stl_function.h: Additional minor tweaks.
3350 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3352 * include/bits/deque.tcc: Wrap overlong lines, constify
3353 a few variables, reformat according to the coding standards.
3354 * include/bits/list.tcc: Likewise.
3355 * include/bits/stl_deque.h: Likewise.
3356 * include/bits/stl_function.h: Likewise.
3357 * include/bits/stl_iterator.h: Likewise.
3358 * include/bits/stl_iterator_base_funcs.h: Likewise.
3359 * include/bits/stl_iterator_base_types.h: Likewise.
3360 * include/bits/stl_list.h: Likewise.
3361 * include/bits/stl_map.h: Likewise.
3362 * include/bits/stl_multimap.h: Likewise.
3363 * include/bits/stl_multiset.h: Likewise.
3364 * include/bits/stl_relops.h: Likewise.
3365 * include/bits/stl_set.h: Likewise.
3367 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3369 * include/bits/stl_bvector.h: Wrap overlong lines, constify
3370 a few variables, reformat according to the coding standards.
3371 * include/bits/stl_tree.h: Likewise.
3373 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3375 * include/bits/stl_algo.h: Minor additional reformat, add
3377 * include/bits/stl_algobase.h: Add copyright year.
3379 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3381 * include/bits/stl_algo.h: Wrap overlong lines, constify
3382 a few variables, reformat according to the coding standards.
3383 * include/bits/stl_algobase.h: Likewise.
3384 * include/bits/stl_heap.h: Likewise.
3386 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3388 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
3390 * include/bits/basic_string.h: Fix two comments.
3392 2004-01-31 Per Bothner <per@bothner.com>
3394 * include/ext/mt_allocator.h
3395 (__mt_alloc::_S_thread_freelist_mutex): Guard with
3396 __GTHREAD_MUTEX_INIT.
3398 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3400 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
3402 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3404 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
3405 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
3406 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
3408 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
3410 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
3411 Don't use clear, but instead assign. Use insert.
3413 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
3415 * src/demangle.cc: Add instantiations.
3416 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
3417 * src/Makefile.in: Regenerate.
3419 2004-01-30 David Edelsohn <edelsohn@gnu.org>
3421 * src/allocator.cc: Protect _S_get_thread_id() and
3422 _S_thread_key_destr() with #ifdef __GTHREADS.
3424 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3426 Reshuffle performance testsuite.
3427 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
3428 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
3429 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
3430 fstream_seek_write.cc, ifstream_extract_float.cc,
3431 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
3432 list_create_fill_sort.cc, map_create_fill.cc,
3433 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
3434 ofstream_insert_float.cc, ofstream_insert_int.cc,
3435 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
3436 wchar_t_out.cc: Split into...
3437 * testsuite/performance/20_util/allocator.cc: New.
3438 * testsuite/performance/20_util/allocator_map_thread.cc: New.
3439 * testsuite/performance/20_util/allocator_thread.cc: New.
3440 * testsuite/performance/21_strings/string_append: New.
3441 * testsuite/performance/22_locale/is_wchar_t.cc: New.
3442 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
3443 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
3444 * testsuite/performance/22_locale/wchar_t_in.cc: New.
3445 * testsuite/performance/22_locale/wchar_t_length.cc: New.
3446 * testsuite/performance/22_locale/wchar_t_out.cc: New.
3447 * testsuite/performance/23_containers/container_benchmark.cc: New.
3448 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
3449 * testsuite/performance/23_containers/map_create_fill.cc: New.
3450 * testsuite/performance/26_numerics/complex_norm.cc: New.
3451 * testsuite/performance/27_io/cout_insert_int.cc: New.
3452 * testsuite/performance/27_io/filebuf_copy.cc: New.
3453 * testsuite/performance/27_io/filebuf_sputc.cc: New.
3454 * testsuite/performance/27_io/fstream_seek_write.cc: New.
3455 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
3456 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
3457 * testsuite/performance/27_io/ifstream_getline.cc: New.
3458 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
3459 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
3461 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3463 * include/bits/basic_string.tcc (_Rep::_S_create):
3464 Never allocate a string bigger than max_size(); always keep
3465 __capacity and __size in sync to avoid memory leaks at
3468 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3470 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3471 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
3472 the double loop, streamline.
3474 * include/bits/basic_string.tcc: Very minor tweaks.
3476 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
3478 * scripts/check_performance: Only compile with $THREAD_FLAG
3479 when test is marked to require it. Allow multiple
3480 compilations/executions of marked tests.
3481 * testsuite/testsuite_performance.h (report_performance):
3482 Report dynamic thread support status.
3483 (report_header): Likewise.
3484 * testsuite/performance/allocator.cc: Stabilize iteration
3485 count. Support more allocators. Mark each allocator test to
3486 run and report independently.
3487 * testsuite/performance/allocator_map_thread.cc: Likewise.
3488 * testsuite/performance/allocator_thread.cc: Likewise.
3490 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
3492 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
3493 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
3494 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
3495 std::get_temporary_buffer() instead of duplicating its code.
3496 Update to C++STYLE conventions.
3497 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
3498 new() instead of std::malloc().
3499 (return_temporary_buffer): Use ::operator delete() instead of
3502 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
3504 * include/bits/allocator.h: Temporary switch to new_allocator as
3505 the default to unjam bootstraps.
3507 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
3509 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
3510 * include/Makefile.in: Regenerate.
3511 * include/bits/allocator_traits.h: Remove.
3512 * include/bits/allocator.h: Remove allocator_traits.h include, and
3514 (allocator): Empty base class, inherit from the underlying allocator.
3515 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
3516 * src/allocator.cc: ...here. New. For the underlying allocators.
3517 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
3518 * config/linker-map.gnu: Remove __pool_alloc bits.
3519 * src/Makefile.am (sources): Add allocator.cc.
3520 * src/Makefile.in: Regenerate.
3521 * testsuite/20_util/allocator/1.cc: Split second test into...
3522 * testsuite/20_util/allocator/8230.cc: ...this.
3523 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
3524 typedef to use std::allocatore. Format.
3525 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
3527 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
3528 __throw_bad_alloc calls. Don't include <memory>.
3529 * include/ext/malloc_allocator.h: Remove <memory> include.
3530 * include/ext/new_allocator.h (new_allocator): Same.
3531 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
3532 declaration. Switch __alloc to _Alloc.
3533 * include/ext/hashtable.h: Remove __alloc.
3534 * include/backward/alloc.h: Only inject allocator, not
3535 implementation details.
3537 * include/ext/mt_allocator.h: Replace free with delete.
3539 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
3541 * src/globals_io.cc: Change to __gnu_internal namespace.
3542 * src/globals_locale.cc: Same.
3543 * src/locale_init.cc: Same.
3544 * src/ios_init.cc: Same.
3546 2004-01-28 Stefan Olsson <stefan@snon.net>
3548 * include/ext/mt_allocator.h: Replaced all malloc() calls with
3549 operator new(). Added support for the env variable
3550 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
3551 one in allocate() as well). Fix typos.
3553 2004-01-28 Paolo Carlini <pcarlini@suse.de>
3555 * include/bits/basic_string.h (_S_create(size_t,
3556 const _Alloc&): Change signature to take two size_type
3558 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3559 _InIterator, const _Alloc&, input_iterator_tag)): Update
3561 (_S_construct(_InIterator, _InIterator, const _Alloc&,
3562 forward_iterator_tag)): Likewise.
3563 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
3564 (_M_mutate(size_type, size_type, size_type)): Don't
3565 implement the exponential growth policy, demand it to
3566 _S_create, update call and simplify.
3567 (_M_clone(const _Alloc&, size_type)): Likewise.
3568 (_S_create(size_type, size_type, const _Alloc&)): Implement
3569 the growth policy, simplify otherwise.
3571 * include/bits/basic_string.h (_Rep::operator[]): Tweak
3572 signature to take a size_type, consistently with the other
3575 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
3577 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
3578 delete declarations, add include and test variable.
3580 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
3582 * include/bits/codecvt.h, include/bits/locale_facets.h,
3583 include/bits/postypes.h, include/bits/stl_bvector.h,
3584 include/bits/stl_multiset.h, include/bits/stl_set.h,
3585 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
3586 include/std/std_complex.h: Document.
3588 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
3591 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
3592 iword/pword selector.
3593 (ios_base::iword, ios_base::pword): Use it.
3594 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
3595 iword or pword member on alloc failure.
3596 * testsuite/27_io/ios_base/storage/11584.cc: New test.
3598 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
3599 PJ Darcy <darcypj@us.ibm.com>
3601 * configure.host: Add support for *-tpf.
3602 * crossconfig.m4: Likewise.
3603 * configure: Regenerate.
3604 * config/os/tpf: New directory.
3605 * config/os/tpf/os_defines.h: New file.
3606 * config/os/tpf/ctype_base.h: Likewise.
3607 * config/os/tpf/ctype_inline.h: Likewise.
3608 * config/os/tpf/ctype_noninline.h: Likewise.
3610 2004-01-27 Paolo Carlini <pcarlini@suse.de>
3613 * include/bits/sstream.tcc: Guard use of extern template.
3615 2004-01-27 Paolo Carlini <pcarlini@suse.de>
3617 * include/bits/basic_string.tcc
3618 (basic_string(const basic_string&, size_type, size_type),
3619 basic_string(const basic_string&, size_type, size_type,
3620 const _Alloc&)): Avoid unnecessarily constructing iterators.
3622 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3624 * config/locale/generic/c_locale.cc: Fix throw messages
3625 to use the __N marker.
3626 * config/locale/gnu/c_locale.cc: Likewise.
3627 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
3629 * docs/html/17_intro/C++STYLE: Likewise.
3630 * include/bits/basic_ios.tcc: Likewise.
3631 * include/bits/fstream.tcc: Likewise.
3632 * include/bits/vector.tcc: Likewise.
3633 * include/ext/ropeimpl.h: Likewise.
3634 * include/std/std_bitset.h: Likewise.
3635 * src/ios.cc: Likewise.
3636 * src/locale.cc: Likewise.
3637 * src/localename.cc: Likewise.
3639 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3641 * include/bits/basic_string.h (_M_replace_aux): Use the
3642 __N marker in throw message.
3643 * include/bits/basic_string.tcc (assign(const _CharT*,
3644 size_type), insert(size_type, const _CharT*, size_type),
3645 replace(size_type, size_type, const _CharT*, size_type),
3646 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
3649 * include/bits/basic_string.h, include/bits/basic_string.tcc:
3650 Fold overlong lines, minor formatting changes.
3652 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3654 * include/bits/basic_string.h (replace(iterator, iterator,
3655 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
3656 (replace(iterator, iterator, const _CharT*)): Ditto.
3657 (replace(iterator, iterator, const _CharT*, size_type)):
3658 Add missing _GLIBCXX_DEBUG_PEDASSERT.
3660 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3662 * include/bits/basic_string.tcc (replace(size_type,
3663 size_type, const _CharT*, size_type)): Implement optimized
3664 in-place algorithm for non-overlapping ranges.
3665 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
3666 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
3668 * include/bits/basic_string.tcc (insert(size_type,
3669 const _CharT*, size_type)): Tweak slightly.
3671 2004-01-26 Andreas Schwab <schwab@suse.de>
3673 * config/locale/gnu/monetary_members.cc: Restore locale before
3674 rethrowing exception.
3676 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3678 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
3680 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
3683 * include/bits/basic_string.tcc: Very minor tweaks.
3685 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3687 * testsuite/performance/string_append.cc: Increase number
3690 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3692 * include/bits/basic_string.h (erase(size_type, size_type),
3693 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
3694 instead, thus avoiding redundant check for length_error.
3696 * include/bits/basic_string.h: Tweak some comments.
3698 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3700 * include/bits/basic_string.tcc (operator+(const _CharT*,
3701 const basic_string&)): No need to go through the append
3702 taking two iterators.
3704 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3706 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
3707 Revert last change to use std::min: machine language is worse.
3708 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
3709 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3710 (find_last_not_of(_CharT, size_type)): Ditto.
3712 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
3713 size_type)): Discard the value returned by _M_check.
3714 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
3715 (append(const basic_string&, size_type, size_type)): Ditto.
3716 (copy(_CharT*, size_type, size_type)): Ditto.
3717 (compare(size_type, size_type, const basic_string&)): Ditto.
3718 (compare(size_type, size_type, const basic_string&,
3719 size_type, size_type)): Ditto.
3720 (compare(size_type, size_type, const _CharT*)): Ditto.
3721 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3723 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3725 * include/bits/basic_string.h (insert(size_type,
3726 const basic_string&, size_type, size_type)): Define inline here.
3727 * include/bits/basic_string.tcc (insert(size_type,
3728 const basic_string&, size_type, size_type)): Move inline.
3730 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3732 * include/bits/basic_string.h (assign(const basic_string&,
3733 size_type, size_type)): Define inline here.
3734 (replace(size_type, size_type, const basic_string&,
3735 size_type, size_type)): Ditto.
3736 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3737 _InputIterator, __false_type)): Only declare.
3738 (_M_replace(iterator, iterator, _InputIterator,
3739 _InputIterator)): Remove.
3740 * include/bits/basic_string.tcc (assign(const basic_string&,
3741 size_type, size_type)): Move inline.
3742 (replace(size_type, size_type, const basic_string&,
3743 size_type, size_type)): Ditto.
3744 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3745 _InputIterator, __false_type)): Define, now does also what
3746 _M_replace did before.
3747 * src/string-inst.cc (_M_replace): Don't instantiate.
3749 * include/bits/basic_string.tcc (find(const _CharT*,
3750 size_type, size_type)): Tidy.
3751 (rfind(_CharT, size_type)): Ditto.
3752 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
3753 (find_first_not_of(_CharT, size_type)): Ditto.
3754 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3755 (find_last_not_of(_CharT, size_type)): Ditto.
3757 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3760 * include/debug/bitset (operator|=): Fix typo.
3761 * testsuite/23_containers/bitset/operations/13838.cc: New.
3763 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3765 * include/bits/basic_string.tcc (insert(size_type,
3766 const _CharT*, size_type __n)): Fix length_error check.
3767 (replace(size_type, size_type, const _CharT*, size_type):
3768 Ditto; call _M_replace_safe.
3769 (_M_replace_aux(size_type, size_type, size_type, _CharT):
3770 Fix length_error check.
3771 (_M_replace(iterator, iterator, _InputIterator,
3772 _InputIterator)): Ditto, tweak.
3773 (_M_replace_safe(size_type, size_type, const _CharT*,
3774 size_type)): Remove length_error check.
3776 * include/bits/basic_string.tcc (append(const basic_string&),
3777 append(const basic_string&, size_type, size_type)): Tweak
3780 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
3781 size_type)): If __n == 0 don't call traits::copy.
3783 2004-01-23 Stefan Olsson <stefan@snon.net>
3785 * include/ext/mt_allocator.h: Reduce lock contention.
3787 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3790 * include/bits/fstream.tcc (underflow): Remove unused
3792 * include/bits/streambuf_iterator.h (equal): Ditto.
3793 * include/bits/locale_facets.h (_M_convert_from_char):
3796 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3799 * config/linker-map.gnu (nan): Delete.
3800 * libmath/mathconf.h (NAN, nan): Delete.
3801 * linkage.m4 (nan): Don't check for it.
3802 * libmath/nan.c: Delete file.
3804 * config.h.in, configure: Regenerate.
3806 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3808 * include/bits/basic_string.h (push_back(_CharT)):
3809 Call _M_replace_aux.
3810 (insert(size_type, const basic_string&)): Trivial tweak.
3811 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
3812 (insert(iterator, _CharT)): Ditto.
3813 (erase(size_type, size_type)): Ditto.
3814 (erase(iterator)): Ditto.
3815 (erase(iterator, iterator)): Ditto.
3816 (replace(size_type, size_type, size_type, _CharT)): Ditto.
3818 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
3821 * testsuite/performance/allocator_map_thread.cc: New test.
3823 2004-01-22 Paolo Carlini <pcarlini@suse.de>
3825 * include/bits/locale_facets.tcc
3826 (money_put::do_put(..., long double)): Use the basic_string
3827 constructor for char arrays, not that for C-strings, to pass
3828 __digits to do_put(..., const string_type&): __ws isn't
3831 2004-01-22 Paolo Carlini <pcarlini@suse.de>
3833 * include/bits/basic_string.h (_M_replace_safe): Change
3834 signatures to take size_types and const _CharT*.
3835 (_M_replace_aux): Likewise, takes size_types instead of
3837 (append(size_type, _CharT)): Update call.
3838 (assign(size_type, _CharT)): Ditto.
3839 (replace(iterator, iterator, size_type, _CharT)): Ditto.
3840 (_M_replace_dispatch(iterator, iterator, _Integer,
3841 _Integer, __true_type)): Ditto.
3842 * include/bits/basic_string.tcc (assign(const _CharT*,
3844 (insert(size_type, const _CharT*, size_type)): Ditto.
3845 (replace(size_type, size_type, const _CharT*,
3847 (_M_replace(iterator, iterator, _InputIterator,
3848 _InputIterator)): Ditto.
3849 (append(const basic_string&)): Ditto.
3850 (append(const basic_string&, size_type, size_type): Ditto.
3851 (append(const _CharT*, size_type): Ditto.
3852 (_M_replace_safe, _M_replace_safe): Change definitions
3853 accordingly, simplify.
3854 * string-inst.cc (_M_replace_safe): Don't instantiate.
3856 2004-01-21 Paolo Carlini <pcarlini@suse.de>
3858 * include/bits/basic_string.tcc (append(const basic_string&)):
3859 Revert previous change.
3860 (append(const basic_string&, size_type, size_type)): Revert
3861 previous change, use _M_check and _M_limit.
3863 2004-01-21 Paolo Carlini <pcarlini@suse.de>
3865 * include/bits/basic_string.h (_M_check): Change to return
3866 a checked __pos and take an additional const char* argument.
3867 (_M_fold): Rename to _M_limit, change to return a size_type,
3868 corresponding to the __off limited to the actual length.
3869 (insert(size_type, size_type, _CharT)): Update call, call
3871 (insert(iterator, _CharT)): Call replace(iterator, iterator,
3872 size_type, _CharT) instead.
3873 (erase(size_type, size_type)): Update calls.
3874 (replace(size_type, size_type, size_type, _CharT)): Ditto.
3875 (substr(size_type, size_type)): Use _M_check.
3876 * include/bits/basic_string.tcc (basic_string(const basic_string&,
3877 size_type, size_type)): Update calls.
3878 (basic_string(const basic_string&, size_type, size_type,
3879 const _Alloc&)): Ditto.
3880 (assign(const basic_string&, size_type, size_type)): Use the
3881 new _M_check and _M_limit.
3882 (insert(size_type, const basic_string&, size_type, size_type):
3884 (insert(size_type, const _CharT*, size_type)): Ditto.
3885 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
3886 (replace(size_type, size_type, const basic_string&,
3887 size_type, size_type)): Ditto.
3888 (append(const basic_string&)): Ditto.
3889 (append(const basic_string&, size_type, size_type)): Ditto.
3890 (copy(_CharT*, size_type, size_type)): Ditto.
3891 (compare(size_type, size_type, const basic_string&)): Ditto.
3892 (compare(size_type, size_type, const basic_string&,size_type,
3894 (compare(size_type, size_type, const _CharT*)): Ditto.
3895 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3897 2004-01-19 Stefan Olsson <stefan@snon.net>
3899 * include/ext/mt_allocator.h: If a thread, when it dies, still has
3900 memory on it's freelist this memory is not returned to global
3901 list. Simplification of deallocate so that memory is always
3902 returned to the calling thread id's freelist instead of to
3903 global. Fix typos. Add volatile where appropriate.
3905 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
3907 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
3908 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
3909 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
3911 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3913 * src/debug.cc: Make sure all the names are prefixed with
3914 double (or single) underscore.
3916 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3918 * src/debug.cc: Trivial formatting change.
3920 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3922 * include/bits/basic_string.tcc (_S_construct(size_type,
3923 _CharT, const _Alloc&)): Remove redundant try/catch.
3924 (_M_mutate(size_type, size_type, size_type)): Ditto.
3925 (_M_clone(const _Alloc&, size_type)): Ditto.
3927 2004-01-18 Paolo Carlini <pcarlini@suse.de>
3929 * include/bits/basic_string.h (c_str()): Simplify, due to
3930 21.3.4 the internal representation is always kept null-terminated.
3931 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
3932 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
3933 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
3936 2004-01-18 Paolo Carlini <pcarlini@suse.de>
3938 * include/bits/basic_string.h (append(size_type, _CharT)):
3939 Moved inline, just call _M_replace_aux, no source iterators at
3940 risk of being clobbered.
3941 (assign(size_type, _CharT)): Call directly _M_replace_aux.
3942 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3943 input_iterator_tag)): Remove fifth unused argument.
3944 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3945 _InputIterator, __false_type)): Update call.
3946 * include/bits/basic_string.tcc (replace(size_type, size_type,
3947 const _CharT*, size_type)): Update call.
3948 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
3949 throw string literal.
3950 (_M_replace_safe(iterator, iterator, _ForwardIterator,
3951 _ForwardIterator)): Likewise.
3952 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3953 input_iterator_tag)): Remove fifth unused argument.
3954 (append(size_type __n, _CharT __c)): Move inline.
3955 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
3956 const C*, const C*, input_iterator_tag)): Remove fifth unused
3959 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
3961 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
3962 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
3964 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
3966 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
3969 2004-01-15 Stefan Olsson <stefan@snon.net>
3971 * include/ext/mt_allocator.h: Reuse thread id's as soon as
3972 possible by changing the behaviour of thread_freelist to do
3973 push_front when threads die instead of push_back.
3975 2004-01-14 Paolo Carlini <pcarlini@suse.de>
3977 * include/bits/locale_facets.h (struct __numpunct_cache):
3978 Add member _M_grouping_size, caching the length of _M_grouping.
3979 (__numpunct_cache<>::_M_cache): Assign the latter.
3980 (__verify_grouping): Move declaration...
3981 * include/bits/locale_facets.tcc (__verify_grouping):
3982 ... here, change signature to take a const char* and a size_t
3983 for the grouping; not a template anymore.
3984 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
3985 Likewise change signature and tweak consistently.
3986 (num_get::_M_extract_float, num_get::_M_extract_int,
3987 num_put::_M_insert_int, num_put::_M_insert_float,
3988 money_get::do_get(string_type&), money_get::do_put(string_type)):
3990 * config/locale/generic/numeric_members.cc
3991 (numpunct<>::_M_initialize_numpunct): Assign the new member.
3992 * config/locale/gnu/numeric_members.cc
3993 (numpunct<>::_M_initialize_numpunct): Likewise.
3994 * src/locale-inst.cc (__add_grouping): Tweak signature.
3995 (__verify_grouping): Don't instantiate, not a template anymore.
3997 * include/bits/locale_facets.h: Rename _M_truename_len ->
3998 _M_truename_size, _M_falsename_len -> _M_falsename_size.
3999 * include/bits/locale_facets.tcc: Likewise.
4000 * config/locale/generic/numeric_members.cc: Likewise.
4001 * config/locale/gnu/numeric_members.cc: Likewise.
4003 2004-01-14 Stefan Olsson <stefan@snon.net>
4005 * include/ext/mt_allocator.h: Fixups.
4006 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
4007 * testsuite/performance/allocator_thread.cc: Same.
4009 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
4011 * testsuite/performance/ifstream_extract_float.cc: Add higher
4013 * testsuite/performance/ofstream_insert_float.cc: Same.
4015 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4017 * src/locale-misc-inst.cc (__convert_from_v(long),
4018 __convert_from_v(unsigned long), __convert_from_v(long long),
4019 __convert_from_v(unsigned long long)): Remove, unused.
4021 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
4023 * testsuite/performance/ifstream_extract_float.cc: New.
4024 * testsuite/performance/ofstream_insert_float.cc: Float generation
4027 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
4028 * 20_util/auto_ptr/1.cc: ...this.
4029 * 20_util/auto_ptr/2.cc: Same.
4030 * 20_util/auto_ptr/3.cc: Same.
4031 * 20_util/auto_ptr/3946.cc: Same.
4032 * 20_util/auto_ptr/4.cc: Same.
4033 * 20_util/auto_ptr/5.cc: Same.
4034 * 20_util/auto_ptr/6.cc: Same.
4035 * 20_util/auto_ptr/7.cc: Same.
4036 * 20_util/auto_ptr/assign_neg.cc
4037 * 20_util/pairs.cc: Break into...
4038 * 20_util/pair/1.cc: ...this.
4039 * 20_util/pair/2.cc: Same.
4040 * 20_util/pair/3.cc: Same.
4041 * 20_util/pair/4.cc: Same.
4043 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4045 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
4046 Set correctly just basefield, the only group that matters.
4048 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4050 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
4051 (_Rope_rep_base): Inherit directly from the rope allocator;
4052 use rebinding instead of _Alloc_traits; pick up data member
4053 from _Rope_rep_alloc_base.
4054 (_Rope_alloc_base): Eliminate.
4055 (_Rope_base): Inherit directly from the rope allocator; use
4056 rebinding instead of _Alloc_traits; pick up data member from
4058 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
4059 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
4061 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4064 * include/bits/basic_string.tcc (compare(size_type, size_type,
4065 const _CharT*, size_type)): Implement correctly the resolution
4066 of DR 5: basically, s is a char array, -not- a C string.
4067 * include/bits/basic_string.h: Tweak some comments.
4068 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
4069 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
4071 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
4073 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
4076 2004-01-12 Paolo Carlini <pcarlini@suse.de>
4078 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
4080 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
4083 2004-01-12 Paolo Carlini <pcarlini@suse.de>
4085 * include/bits/locale_facets.h (struct __numpunct_cache):
4086 Add members _M_truename_len and _M_falsename_len, caching
4087 the lengths of _M_truename and _M_falsename.
4088 (__numpunct_cache<>::_M_cache): Assign the latter.
4089 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
4090 num_put::do_put(bool)): Use the new members, thus avoiding
4091 computing string lengths again and again.
4092 * config/locale/generic/numeric_members.cc
4093 (numpunct<>::_M_initialize_numpunct): Assign the new members.
4094 * config/locale/gnu/numeric_members.cc
4095 (numpunct<>::_M_initialize_numpunct): Likewise.
4097 2004-01-12 Mark Mitchell <mark@codesourcery.com>
4099 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
4100 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
4102 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
4103 and remove Cygwin XFAIL.
4104 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
4105 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
4106 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
4107 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
4109 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
4110 * testsuite/27_io/objects/char/7.cc: Likewise.
4111 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
4112 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
4113 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
4115 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
4117 * include/std/std_complex.h (std::complex<>::real): Return a
4118 reference. Add non-const overload.
4119 (std::complex<>::real): Likewise.
4120 (std::real): Likewise.
4121 (std::imag): Likewise.
4122 (std::operator+): Tidy.
4123 (std::operator-): Likewise.
4124 (std::operator*): Likewise.
4125 (std::operator/): Likewise.
4126 (std::operator>>): Likewise.
4128 2004-01-11 Paolo Carlini <pcarlini@suse.de>
4131 * include/bits/fstream.tcc (imbue): Exploit the external
4132 buffer to imbue 'on the fly' a new locale and convert its
4133 remainder with the new codecvt facet.
4134 (underflow): Tweak slightly to deal with this special case.
4135 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
4136 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
4137 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
4138 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
4139 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
4141 2004-01-10 Paolo Carlini <pcarlini@suse.de>
4143 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
4146 2004-01-10 Paolo Carlini <pcarlini@suse.de>
4149 * include/bits/locale_classes.h (class locale): Fix category
4151 * testsuite/22_locale/locale/13630.cc: Add.
4153 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
4155 * include/bits/locale_facets.h: Make a name really dependent. This
4156 will be needed when Core Issue 224 is implemented.
4158 2004-01-09 Paolo Carlini <pcarlini@suse.de>
4160 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
4161 * testsuite/performance/allocator_thread.cc: Likewise.
4163 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
4165 * crossconfig.m4: Add LFS, io bits to linux cross config.
4166 * acconfig.h: Remove obsolete bits, reorder.
4167 * config.h.in: Regenerate.
4171 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
4173 * include/bits/stl_list.h:
4174 * include/bits/list.tc:
4176 Performance enhancements for destructor, push_front(),
4177 push_back(), pop_front(), pop_back(), sort()
4178 Eliminated static_casts where possible.
4179 Moved code out of header files into new src/list.cc
4180 implementation file for library where possible.
4181 Remove inheritance from iterator class and create separate
4182 classes for non-constant and constant iterators.
4183 * include/bits/stl_tree.h (_Rb_tree class):
4185 Only erase contents in destructor.
4186 Eliminate unnecessary initialization in assignment operator.
4187 Optimize for the nominal case by not checking whether
4188 container is empty in clear().
4189 Re-order test in _M_insert() to improve performance.
4190 Move initialization of new node's left & right pointers to
4191 src/tree.cc to where new node's colour is initialized
4192 and to reduce the amount of inline code.
4193 Use _M_leftmost() and _M_end() to improve readability where
4195 Create separate classes for non-constant and constant
4196 iterators to clarify code, avoid extra template parameters and
4197 casting away constness.
4199 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
4201 * src/Makefile.am (sources): Add list.cc, tree.cc.
4202 * src/stl_tree.cc: Move to...
4203 * src/tree.cc: ...here.
4205 * config/linker-map.gnu: Tweaks.
4206 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
4207 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
4209 * bits/stl_vector.h: Column wrap comments.
4211 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
4213 (re-open) PR libstdc++/12658
4214 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
4215 (locale::global): Likewise.
4217 2004-01-07 Paolo Carlini <pcarlini@suse.de>
4219 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
4220 Remove redundant #include.
4221 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
4222 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
4223 re-enable normal testing.
4224 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
4226 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
4227 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
4229 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
4231 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
4233 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
4235 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
4237 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
4239 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
4241 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
4242 More properly, #include <locale>.
4243 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
4244 Remove redundant #include.
4245 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
4246 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
4247 redundant DejaGnu directive.
4248 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
4251 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
4252 Stefan Olsson <stefan@snon.net>
4254 * scripts/check_performance: Use -pthread.
4255 * testsuite/performance/allocator.cc: Tweaks, add list.
4256 * testsuite/performance/allocator_thread.cc: New.
4258 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
4260 * include/bits/locale_facets.h: Document public classes and
4262 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
4265 2004-01-06 Paolo Carlini <pcarlini@suse.de>
4267 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
4268 Remove redundant #includes.
4269 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
4271 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
4273 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
4274 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
4275 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
4276 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
4277 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
4278 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
4279 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
4280 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
4281 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
4282 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
4283 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
4284 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
4285 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
4286 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
4287 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
4289 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
4291 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
4293 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
4295 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
4297 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
4298 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
4299 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
4301 2004-01-04 Paolo Carlini <pcarlini@suse.de>
4303 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
4304 Remove redundant #includes.
4305 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
4307 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
4309 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
4311 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
4313 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
4315 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
4317 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
4319 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
4321 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
4323 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
4325 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
4327 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
4330 2004-01-04 Mark Mitchell <mark@codesourcery.com>
4333 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
4335 * testsuite/27_io/basic_fstream/4.cc: Likewise.
4336 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
4337 * testsuite/27_io/basic_ios/4.cc: Likewise.
4338 * testsuite/27_io/basic_iostream/4.cc: Likewise.
4339 * testsuite/27_io/basic_istream/4.cc: Likewise.
4340 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
4341 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
4342 * testsuite/27_io/basic_ostream/4.cc: Likewise.
4343 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
4344 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
4345 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
4347 2004-01-04 Paolo Carlini <pcarlini@suse.de>
4349 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
4350 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
4351 always use double underscored names.
4352 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
4354 * include/bits/locale_facets.h (struct __numpunct_cache):
4355 Dimension _M_atoms_out and _M_atoms_in one position smaller.
4356 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out