1 2004-08-11 Paolo Carlini <pcarlini@suse.de>
3 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
5 2004-08-11 Paolo Carlini <pcarlini@suse.de>
7 * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
9 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
10 * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
11 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
12 * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
13 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
14 * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
15 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
16 * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
17 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
18 * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
19 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
20 * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
21 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
22 * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
23 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
24 * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
25 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
26 * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
27 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
28 * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
29 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
31 2004-08-11 Paolo Carlini <pcarlini@suse.de>
32 Petur Runolfsson <peturr02@ru.is>
35 * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
36 standard streams are constructed.
37 * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
39 2004-08-09 Paolo Carlini <pcarlini@suse.de>
41 * include/bits/stl_bvector.h: Trivial formatting fixes.
43 2004-08-09 Paolo Carlini <pcarlini@suse.de>
45 * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
47 2004-08-07 Jonathan Wakely <redi@gcc.gnu.org>
48 Paolo Carlini <pcarlini@suse.de>
50 * src/debug.cc (_Error_formatter::_M_print_string): In order
51 to print individual words from __string, _M_format_word can't
52 be called since may be just sprintf, thus ignoring completely
53 __n: instead, use memmove and append '\0' by hand.
55 2004-08-07 Paolo Carlini <pcarlini@suse.de>
57 * config/locale/generic/c_locale.h (__convert_from_v): Don't
58 use a default for __prec, assume __prec >= 0 and simplify.
59 * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
60 * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
61 Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
63 2004-08-04 Phil Edwards <phil@codesourcery.com>
65 * docs/html/configopts.html: Emphasize that options change.
66 * docs/html/17_intro/configury.html: Update links.
68 2004-08-03 Paolo Carlini <pcarlini@suse.de>
70 * include/bits/list.tcc: Trivial formatting fixes.
72 2004-08-03 Mark Mitchell <mark@codesourcery.com>
74 * libsupc++/new_op.cc: Update comments.
75 * libsupc++/del_op.cc: Likewise.
77 2004-08-02 Mark Mitchell <mark@codesourcery.com>
79 * libsupc++/cxxabi.h: Make all declarations have default
81 * libsupc++/exception: Likewise.
82 * libsupc++/new: Likewise.
83 * libsupc++/typeinfo: Likewise.
84 * libsupc++/unwind-cxx.h: Likewise.
85 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
86 the __cxxabiv1 namespace.
87 (__cxa_free_exception): Likewise.
88 * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
89 (__cxa_bad_typeid): Likewise.
90 * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
91 (__cxa_end_catch): Likewise.
92 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
93 (__cxa_get_globals): Likewise.
94 * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
95 (__cxa_rethrow): Likewise.
96 * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
97 * libsupc++/eh_type.cc: Include <cxxabi.h>.
99 * Makefile.am (hosted_source): Add libmath and testsuite.
100 (SUBDIRS): Remove them.
101 * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
102 on arm*-*-symbianelf*.
103 * crossconfig.m4: Add arm*-*-symbianelf* support.
104 * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
105 when freestanding. Do not bring names into std:: namespace with
106 "using" when freestanding. Declare required functions and macros
108 * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
110 * libsupc++/del_op.cc: Declare "free" only when freestanding.
111 * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
112 (malloc): Declare when freestanding.
115 (__cxa_allocate_exception): Call malloc, not std::malloc. Likewise
117 (__cxa_free_exception): Likewise for free.
118 * libsupc++/new_op.cc: Declare "malloc" when freestanding.
119 * libsupc++/pure.cc (writestr): Define to nothing when
121 * libsupc++/vterminate.cc: Do not define anything when
123 * Makefile.in: Regenerated.
124 * aclocal.m4: Likewise.
125 * configure: Likewise.
126 * include/Makefile.in: Likewise.
127 * libmath/Makefile.in: Likewise.
128 * libsupc++/Makefile.in: Likewise.
129 * po/Makefile.in: Likewise.
130 * src/Makefile.in: Likewise.
131 * testsuite/Makefile.in: Likewise.
133 2004-08-01 Matt Austern <austern@apple.com>
136 * include/bits/stl_list.h (_M_create_node): Remove unused
137 zero-argument version.
138 * include/ext/slist (_M_create_node): Pass two arguments to
139 allocator's construct() member function.
140 * testsuite/23_containers/deque/explicit_instantiation.cc: New.
141 * testsuite/23_containers/list/explicit_instantiation.cc: New.
142 * testsuite/23_containers/vector/explicit_instantiation.cc: New.
143 * testsuite/23_containers/map/explicit_instantiation.cc: New.
144 * testsuite/23_containers/set/explicit_instantiation.cc: New.
145 * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
146 * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
147 * testsuite/ext/hash_set_explicit_instantiation.cc: New.
148 * testsuite/ext/slist_explicit_instantiation.cc: New.
150 2004-07-30 Paolo Carlini <pcarlini@suse.de>
152 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
153 num_get<>::_M_extract_int): In the main parsing loop delay the
154 life of __q to the actual use point.
156 2004-07-29 Paolo Carlini <pcarlini@suse.de>
159 * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
160 Don't clip the precision passed down to __convert_from_v:
161 22.2.2.2.2 nowhere says so.
162 * testsuite/22_locale/num_put/put/char/14220.cc: New.
163 * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
165 2004-07-29 Paolo Carlini <pcarlini@suse.de>
167 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
169 2004-07-29 Paolo Carlini <pcarlini@suse.de>
170 Petur Runolfsson <peturr02@ru.is>
172 PR libstdc++/12658 (continued)
173 * src/locale_init.cc (locale::locale, locale::global): Use
174 a single locale_mutex instead of two separate mutexes.
176 2004-07-29 Paolo Carlini <pcarlini@suse.de>
179 * include/debug/map.h (insert(_InputIterator, _InputIterator)):
181 * testsuite/23_containers/map/insert/16813.cc: New.
183 2004-07-29 Phil Edwards <phil@codesourcery.com>
185 * docs/html/faq/index.html: Update version references. Make
186 clear that code from SGI has diverged greatly. Remove references
187 to library snapshots and what's-new sections.
188 * docs/html/faq/index.txt: Regenerate.
190 2004-07-28 Matt Austern <austern@apple.com>
192 * include/bits/stl_construct.h (_Destroy): New three-argument
193 overload that takes an allocator argument. Another inline
194 three-argument overload that takes std::allocator and dispatches
195 to the two-argument version.
196 * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
197 Change return type to void to match uninitialized_fill_n.
198 (__uninitialized_copy_a_): New function. Like uninitialized_copy
199 except that it takes an allocator and uses it for construct and
200 destroy. If the allocator is std::allocator, dispatches to
202 (__uninitialized_fill_a): Likewise.
203 (__uninitialized_fill_n_a): Likewise.
204 (__uninitialized_copy_copy): Give it an allocator argument.
205 (__uninitialized_fill_copy): Likewise.
206 (__uninitialized_copy_fill): Likewise.
207 * include/bits/deque.tcc: Use new forms defined in stl_construct.h
208 and stl_uninitialized.h. Replace use of single-argument _Construct
209 and _Destroy with use of allocator's construct and destroy methods.
210 * include/bits/list.tcc: Likewise.
211 * include/bits/stl_deque.h: Likewise.
212 * include/bits/stl_list.h: Likewise.
213 * include/bits/stl_tree.h: Likewise.
214 * include/bits/stl_vector.h: Likewise.
215 * include/bits/vector.tcc: Likewise.
216 * include/ext/hashtable.h: Use rebind so that allocator_type
217 has correct type for a container's allocator. Replace use of
218 single-argument _Construct and _Destroy with use of allocator's
219 construct and destroy methods.
220 * include/ext/memory (__uninitialized_copy_n_a): New function.
221 Like uninitialized_copy_n except that it takes an extra parameter,
222 an allocator, and uses it for construct and destroy operations.
223 * include/ext/rope: Use new forms defined in stl_construct.h,
224 stl_uninitialized.h, and ext/memory. Replace use of single-argument
225 _Construct and _Destroy with allocator construct and destroy methods.
226 * include/ext/ropeimpl.h: Likewise.
227 * include/ext/slist.h: Likewise.
228 * testsuite/testsuite_allocator.h (check_construct_destroy): New.
229 * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
230 * testsuite/23_containers/deque/check_construct_destroy.cc: New.
231 * testsuite/23_containers/list/check_construct_destroy.cc: New.
232 * testsuite/23_containers/set/check_construct_destroy.cc: New.
233 * testsuite/23_containers/vector/check_construct_destroy.cc: New.
234 * testsuite/ext/hash_check_construct_destroy.cc: New.
235 * testsuite/ext/slist_check_construct_destroy.cc: New.
237 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
239 2003-10-01 Eric Christopher <echristo@redhat.com>
240 * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
242 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
243 * config/cpu/sh/atomicity.h: New. Use movli and movco on SH4a.
245 2004-07-23 Benjamin Kosnik <bkoz@redhat.com>
248 * include/bits/locale_facets.tcc: Fix for -Werror.
250 2004-07-23 Jonathan Wakely <redi@gcc.gnu.org>
252 * docs/html/debug.html: Say debug mode only available since 3.4.0.
254 2004-07-21 Benjamin Kosnik <bkoz@redhat.com>
256 * docs/doxygen/mainpage.html: Clarify links.
257 * docs/doxygen/stdheader.cc: Add files.
258 * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
259 * docs/doxygen/user.cfg.in: New options, wrap.
261 2004-07-20 Danny Smith <dannysmith@users.sourceforge.net>
263 * include/c_std/std_cwchar.h (wcsstr): Correct signature.
265 2004-07-19 Benjamin Kosnik <bkoz@redhat.com>
268 * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
270 2004-07-17 Richard Sandiford <rsandifo@redhat.com>
273 * scripts/create_testsuite_files: Pass -print to find.
275 2004-07-15 Paolo Carlini <pcarlini@suse.de>
277 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
278 * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
280 2004-07-15 Jakub Jelinek <jakub@redhat.com>
283 * acinclude.m4 (glibcxx_shared_libgcc): Correct
284 glibcxx_shared_libgcc test for multilibs.
285 * configure: Rebuilt.
287 2004-07-14 Paolo Carlini <pcarlini@suse.de>
290 * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
291 the signature to return void, as per 20.4.4.3.
292 * include/bits/stl_vector.h (vector::vector(size_type,
293 const value_type&, const allocator_type&), vector::vector(size_type),
294 vector::_M_initialize_dispatch): Adjust callers.
295 * include/bits/vector.tcc (vector<>::_M_fill_assign,
296 vector<>::_M_fill_insert): Likewise.
297 * testsuite/20_util/memory/16505.cc: New.
299 2004-07-14 Paolo Carlini <pcarlini@suse.de>
301 * testsuite/22_locale/locale/cons/12658_thread-1.cc,
302 12658_thread-2.cc: Use __gnu_test::try_named_locale.
304 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
306 * docs/html/ext/mt_allocator.html: Add docs for _Tune.
307 * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
308 (__mt_alloc::_S_set_options): Same.
311 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
313 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
315 * configure: Regenerated.
317 2004-07-13 Paolo Carlini <pcarlini@suse.de>
319 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
320 to 12658_thread-1.cc and xfail.
321 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
322 simpler version of 12658_thread-1.cc, still failing on 3_3 and
323 not failing on 3_4/mainline - both on single processor and
324 multiprocessor machines.
326 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
328 * docs/html/abi.html: Remove non-public qualification.
330 * include/bits/concurrence.h: Tweak comments.
332 2004-07-11 Paolo Carlini <pcarlini@suse.de>
334 Add wchar_t counterparts of the basic_streambbuf<char> tests.
335 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
336 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
338 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
339 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
341 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
342 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
343 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
344 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
345 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
347 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
349 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
351 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
353 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
354 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
356 2004-07-11 Phil Edwards <phil@codesourcery.com>
358 * acinclude.m4: Cosmetic shell syntax fixes.
359 * configure.ac: Bring comment inline with reality.
360 * configure.host: Both of the above. Move 'arm' case to right
361 place in host_cpu switch.
362 * aclocal.m4, configure: Regenerate.
364 2004-07-09 Paolo Carlini <pcarlini@suse.de>
366 Add wchar_t counterparts of the basic_stringbuf<char> tests.
367 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
368 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
369 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
370 3599.cc, 9988.cc: Likewise.
371 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
373 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
375 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
377 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
379 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
380 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
381 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
382 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
384 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
386 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
388 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
390 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
391 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
393 2004-07-08 Paolo Carlini <pcarlini@suse.de>
395 * include/bits/gslice.h: Trivial formatting fixes.
396 * include/bits/gslice_array.h: Likewise.
397 * include/bits/indirect_array.h: Likewise.
398 * include/bits/mask_array.h: Likewise.
399 * include/bits/slice_array.h: Likewise.
400 * include/bits/valarray_after.h: Likewise.
401 * include/bits/valarray_array.h: Likewise.
402 * include/bits/valarray_before.h: Likewise.
403 * include/std/std_valarray.h: Likewise.
405 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
408 * include/bits/basic_string.h (basic_string::operator=): Revert.
410 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
412 * configure.ac (libtool_VERSION): To 6:2:0.
413 * configure: Regenerated.
415 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
417 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
420 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
422 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
424 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
427 2004-07-07 Paolo Carlini <pcarlini@suse.de>
430 * include/bits/sstream.tcc (overflow): When reallocating _M_string
431 use an exponential grow policy.
432 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
433 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
435 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
438 * crossconfig.m4: Add in bits for djgpp.
439 * configure: Regenerate.
441 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
443 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
444 instantiation of set and multiset (functor param given as int).
446 2004-07-04 Paolo Carlini <pcarlini@suse.de>
448 * include/bits/basic_string.h: Trivial formatting fixes and/or
449 const-ification of some variables.
450 * include/bits/deque.tcc: Likewise.
451 * include/bits/stl_algobase.h: Likewise.
452 * include/bits/stl_bvector.h: Likewise.
453 * include/bits/stl_construct.h: Likewise.
454 * include/bits/stl_deque.h: Likewise.
455 * include/bits/stl_pair.h: Likewise.
456 * include/bits/stl_vector.h: Likewise.
457 * include/bits/vector.tcc: Likewise.
459 2004-07-04 Paolo Carlini <pcarlini@suse.de>
461 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
462 systems with no COMDAT or weak support.
463 * testsuite/25_algorithms/copy/2.cc: Likewise.
464 * testsuite/25_algorithms/copy/3.cc: Likewise.
465 * testsuite/25_algorithms/copy/4.cc: Likewise.
467 2004-07-03 Paul Brook <paul@codesourcery.com>
469 * configure.ac: Set ABI_TWEAKS_SRCDIR.
470 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
471 setting atomicity_dir. Override type_cpu for arm based targets.
472 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
473 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
474 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
475 * libsupc++/vec.cc: Ditto.
476 * config/cpu/arm/cxxabi_tweaks.h: New file.
477 * config/cpu/generic/cxxabi_tweaks.h: New file.
478 * */Makefile.in: Regenerate.
479 * configure: Regenerate.
481 2004-07-02 Paolo Carlini <pcarlini@suse.de>
483 * include/bits/type_traits.h (_Is_normal_iterator): Move...
484 * include/bits/cpp_type_traits.h: ... here, renamed to
485 __is_normal_iterator and consistent with the other traits.
486 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
487 to the struct __copy_normal and three specializations.
488 (__copy_backward_output_normal_iterator,
489 __copy_backward_input_normal_iterator): Likewise, convert to
490 the struct __copy_backward_normal and three specializations.
491 (copy, copy_backward): Use the latter.
492 (__copy_aux, __copy_backward_aux): Very minor tweaks.
494 2004-07-01 Paolo Carlini <pcarlini@suse.de>
496 * include/bits/stl_algobase.h (__copy_trivial): Remove.
497 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
498 __is_trivially_copyable, __are_same and __copy::copy.
499 (__copy): Rewrite as a class template and two specializations.
500 (__copy_ni2): Simplify, just call __copy_aux.
502 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
504 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
505 for destination value type != source value type.
507 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
508 Per Bothner <per@bothner.com>
509 Mohan Embar <gnustuff@thisiscool.com>
512 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
513 (__glibcxx_mutex): Encapsulate mutex init function into type for
514 threaded configurations without __GTHREAD_MUTEX_INIT.
515 (lock::lock): Make device member a reference.
517 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
519 * src/allocator.cc: Same.
521 2004-06-30 Brad Spencer <spencer@infointeractive.com>
523 * include/ext/mt_allocator.h: Handle allocations at static
524 initialization that happen before _S_options is (automatically)
525 constructed; set _S_init even if _M_force_new is true.
527 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
529 * config/linker-map.gnu: Revert new exports.
531 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
532 Stuart Anderson <anderson@netsweng.com>
534 * config/linker-map.gnu: Add destructor exports for abstract base
535 classes to conform to LSB.
537 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
538 Paolo Carlini <pcarlini@suse.de>
540 * include/bits/cpp_type_traits.h: Add __is_pointer and
541 __is_trivially_copyable.
542 * include/bits/stl_algobase.h (fill, fill_n): Slightly
543 tweak to use the latter.
544 (__copy_backward_dispatch): Remove.
545 (__copy_backward_aux): Rewrite to use __is_pointer and
546 __is_trivially_copyable and __copy_backward::copy_b.
547 (__copy_backward): Rewrite as a class template and two
550 2004-06-30 Paolo Carlini <pcarlini@suse.de>
552 * testsuite/25_algorithms/copy.cc: Move to...
553 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
554 * testsuite/25_algorithms/copy/2.cc: New.
555 * testsuite/25_algorithms/copy/3.cc: New.
556 * testsuite/25_algorithms/copy/4.cc: New.
558 2004-06-29 Paul Brook <paul@codesourcery.com>
560 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
561 element size in the cookie.
563 2004-06-28 Paolo Carlini <pcarlini@suse.de>
565 * include/bits/cpp_type_traits.h: Move the additions to
566 namespace __gnu_internal outside of namespace std; trivial
569 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
571 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
572 Revert -Weffc++ changes that defined copy ctory and or assignment
574 * libsupc++/tinfo.cc (__upcast_result): Same.
576 2004-06-28 Paolo Carlini <pcarlini@suse.de>
578 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
579 the algorithm used to name the categories.
581 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
583 * include/Makefile.am: Give a .gch extension to
584 the PCH files, not only to the directory.
585 * include/Makefile.in: Regenerate.
587 2004-06-28 Paolo Carlini <pcarlini@suse.de>
589 * config/locale/gnu/monetary_members.cc
590 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
591 assignments of _M_decimal_point and _M_thousands_sep.
593 2004-06-27 Paolo Carlini <pcarlini@suse.de>
595 * docs/html/17_intro/contribute.html: Update some links.
596 * docs/html/17_intro/porting-howto.html: Likewise.
597 * docs/html/17_intro/porting-howto.xml: Likewise.
598 * docs/html/18_support/howto.html: Likewise.
599 * docs/html/21_strings/howto.html: Likewise.
600 * docs/html/27_io/howto.html: Likewise.
601 * docs/html/configopts.html: Likewise.
602 * docs/html/ext/howto.html: Likewise.
603 * docs/html/faq/index.html: Likewise.
604 * docs/html/install.html: Don't mention 2.x compilers.
606 2004-06-27 Paolo Carlini <pcarlini@suse.de>
608 * include/ext/rope: Trivial formatting fixes.
609 * include/ext/ropeimpl.h: Likewise.
611 2004-06-26 Paolo Carlini <pcarlini@suse.de>
614 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
615 availability of strto(u)ll, not used anymore in the iostreams.
616 * configure: Regenerate.
618 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
621 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
623 * configure: Regenerate.
625 2004-06-25 Paul Brook <paul@codesourcery.com>
627 * libsupc++/cxxabi.h: Define __ARM_EABI__
629 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
631 2004-06-25 Paul Brook <paul@codesourcery.com>
633 * include/bits/concurrence.h: Still create mutex object when
636 2004-06-25 Paolo Carlini <pcarlini@suse.de>
638 * include/bits/stl_algobase.h (fill, fill_n): Revert last
639 change: actually we need to copy construct an object of type
640 _Tp, not of type iterator_traits<>::value_type, therefore the
643 2004-06-25 Paolo Carlini <pcarlini@suse.de>
645 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
646 dispatch: use iterator_traits<>::value_type, not _Tp.
648 2004-06-25 Paolo Carlini <pcarlini@suse.de>
650 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
651 * testsuite/25_algorithms/fill/2.cc: Likewise.
653 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
654 Paolo Carlini <pcarlini@suse.de>
656 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
657 for fill and fill_n, respectively: when copying is cheap, use a
658 temporary to avoid a memory read in each iteration.
660 2004-06-25 Paolo Carlini <pcarlini@suse.de>
662 * testsuite/25_algorithms/fill/1.cc: New.
663 * testsuite/25_algorithms/fill/2.cc: Likewise.
665 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
667 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
668 Remove copy constructor and assignment operator.
670 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
672 * include/bits/concurrence.h (__gnu_cxx::lock): New.
673 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
674 (__pool_base::_M_get_mutex): New.
675 * include/bits/allocator.h: Tweak.
676 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
677 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
678 * include/bits/stl_threads.h: Remove.
679 * include/Makefile.am: Also here.
680 * include/Makefile.in: Regenerate.
682 * src/locale_init.cc: Use __gnu_cxx::lock.
684 * src/allocator.cc: Move all instantiations...
685 * src/allocator-inst.cc: ...here.
687 2004-06-23 Andrew Pinski <apinski@apple.com>
689 * linkage.m4: Remove check for libmx.
690 * configure: Regenerate.
692 2004-06-23 Paolo Carlini <pcarlini@suse.de>
695 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
696 Don't require the _DefaultConstructibleConcept.
697 (struct _ForwardIteratorConcept): Require it here.
699 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
701 * include/bits/istream.tcc (getline): Make sure arguments passed
702 to min/max have the same type.
703 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
704 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
706 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
708 * docs/html/abi.html: Update links.
710 2004-06-22 Paolo Carlini <pcarlini@suse.de>
712 * testsuite/26_numerics/complex_inserters_extractors.cc,
713 complex_value.cc, buggy_complex.cc: Move to...
714 * testsuite/26_numerics/complex/: ... here.
715 * testsuite/26_numerics/c99_classification_macros_c++.cc,
716 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
717 fabs_inline.cc: Move to...
718 * testsuite/26_numerics/cmath/: ... here.
719 * testsuite/26_numerics/binary_closure.cc, slice.cc,
720 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
721 valarray_name_lookup.cc, valarray_operators.cc,
722 valarray_subset_assignment.cc: Move to...
723 * testsuite/26_numerics/valarray/: ... here (new dir).
724 * testsuite/26_numerics/sum_diff.cc: Move to...
725 * testsuite/26_numerics/numeric/: ... here (new dir).
727 2004-06-22 Paolo Carlini <pcarlini@suse.de>
729 * include/std/std_istream.h (ignore(streamsize __n = 1,
730 int_type __delim = traits_type::eof())): Split into...
731 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
732 int_type __delim)): The first two can be much more simpler
733 and efficient than the fully general case; also, the last
734 two can take advantage of the same mechanism already used
736 * include/bits/istream.tcc (ignore(streamsize __n = 1,
737 int_type __delim = traits_type::eof()): Remove.
738 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
739 int_type __delim)): New.
741 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
743 * config/linker-map.gnu: Use wildcards for
744 __basic_file::sys_open(FILE*, _Ios_Openmode).
746 2004-06-20 Paolo Carlini <pcarlini@suse.de>
748 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
750 2004-06-18 Paolo Carlini <pcarlini@suse.de>
752 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
753 the alignment requested.
754 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
755 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
756 (__mt_alloc<>::deallocate): Likewise.
758 2004-06-18 Paolo Carlini <pcarlini@suse.de>
761 * include/debug/safe_base.h
762 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
763 _Safe_sequence_base::operator=): Provide definitions.
764 * testsuite/23_containers/bitset/cons/16020.cc: New.
766 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
768 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
769 (__pool_base): Remove unused template parameter. Add
770 protected. Move lock data into __pool_base::_Lock. Remove static
772 (__pool_base::_M_get_free_list): New.
773 (__pool_alloc): Move _S_force new here.
774 * src/allocator.cc: Move out of line __pool_base definitions here.
775 * config/linker-map.gnu: Export bits from __pool_base.
777 2004-06-18 Paolo Carlini <pcarlini@suse.de>
779 * config/locale/gnu/numeric_members.cc
780 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
781 assignments of _M_decimal_point and _M_thousands_sep.
782 * config/locale/gnu/time_members.cc
783 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
784 and reformat assignments of date and time fields.
786 2004-06-16 Paolo Carlini <pcarlini@suse.de>
788 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
789 to use _Data_allocate.
790 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
791 (rope<>::_S_substring): Likewise.
792 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
793 (rope<>::c_str()): Likewise.
794 (rope<>::replace_with_c_str()): Likewise.
796 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
797 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
799 (_Rope_iterator_base<>::_S_setcache): Likewise.
800 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
801 (rope<>::_S_substring): Likewise.
802 (rope<>::_S_dump): Likewise.
803 (rope<>::_S_fetch_ptr): Likewise.
804 (rope<>::_S_compare): Likewise.
805 (rope<>::replace_with_c_str()): Likewise.
807 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
808 * testsuite/ext/rope/2.cc: New.
810 2004-06-16 Paolo Carlini <pcarlini@suse.de>
811 Matt Austern <austern@apple.com>
813 * testsuite/ext/rope/3.cc: New.
815 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
817 * acinclude.m4: Remove useless multilib configury.
818 * Makefile.am: Remove useless multilib rules.
819 * aclocal.m4: Regenerate.
820 * Makefile.in: Regenerate.
821 * configure: Regenerate.
823 2004-06-15 Paolo Carlini <pcarlini@suse.de>
825 * include/ext/hashtable.h: Trivial formatting fixes.
826 * include/ext/rb_tree: Likewise.
828 2004-06-14 Paolo Carlini <pcarlini@suse.de>
830 * include/ext/hash_map: Trivial formatting fixes.
831 * include/ext/hash_set: Likewise.
832 * include/ext/memory: Likewise.
833 * include/ext/numeric: Likewise.
835 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
837 * Makefile.in: Regenerate with automake 1.8.5.
839 * include/Makefile.in: Same.
840 * libmath/Makefile.in: Same.
841 * libsupc++/Makefile.in: Same.
842 * po/Makefile.in: Same.
843 * src/Makefile.in: Same.
844 * testsuite/Makefile.in: Same.
846 2004-06-14 Paolo Carlini <pcarlini@suse.de>
848 * include/ext/slist: Trivial formatting fixes.
850 2004-06-14 Paolo Carlini <pcarlini@suse.de>
852 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
853 Don't use the 'magic number' 10 in the computation of __minlen;
854 never access __name past __minlen; in the loop over __i3, don't
855 decrease __nmatches and increase __i3 at once, only either of
858 2004-06-13 Paolo Carlini <pcarlini@suse.de>
860 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
861 time_get<>::do_get_date): Use only once _M_extract_via_format,
862 instead of going through "%X"/"%x" and calling it two times
865 2004-06-12 Paolo Carlini <pcarlini@suse.de>
867 * include/ext/algorithm: Trivial formatting fixes.
868 * include/ext/functional: Likewise.
869 * include/ext/hash_fun.h: Likewise.
870 * include/ext/iterator: Likewise.
872 2004-06-12 Paolo Carlini <pcarlini@suse.de>
874 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
875 size_type)): Reimplement using std::search.
876 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
878 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
880 * testsuite/performance/21_strings/string_find.cc: New.
882 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
884 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
886 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
888 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
889 this function return a value.
891 2004-06-09 Paolo Carlini <pcarlini@suse.de>
894 * include/bits/stl_deque.h: Consistently with stl_set.h, define
895 pointer as allocator's pointer, likewise for reference,
896 const_pointer, and const_reference.
897 * include/bits/stl_list.h: Likewise.
898 * include/bits/stl_map.h: Likewise.
899 * include/bits/stl_multimap.h: Likewise.
900 * include/bits/stl_vector.h: Likewise.
902 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
904 * crossconfig.m4: Remove signbit, signbitf, signbitl.
905 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
906 builtin math functions instead of AC_DEFINE_UNQUOTED.
907 * configure: Regenerate.
909 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
911 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
912 * docs/doxygen/mainpage.html: Remove links.
914 2004-06-08 Jason Merrill <jason@redhat.com>
916 * config/linker-map.gnu: Use wildcards for
917 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
919 2004-06-08 Paolo Carlini <pcarlini@suse.de>
921 * include/ext/pool_allocator.h: Convert to a global free-list,
922 as per the original SGI/HP design: move the implementation
923 details to struct __pool_base, from which __pool_alloc derives.
924 * src/allocator.cc: Instantiate __pool_base.
926 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
927 Paolo Carlini <pcarlini@suse.de>
929 * testsuite/testsuite_performance.h
930 (resource_counter::allocated_memory): Make it return the right
931 number of bytes requested by the allocators/application. This is
932 the sbrk+mmaped memory.
934 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
936 * include/std/std_complex.h (log): Tidy.
938 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
940 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
941 * testsuite/testsuite_abi.cc: Same.
942 * configure.ac (libtool_VERSION): Bump to 6:1:0.
943 * configure: Regenerate.
944 * aclocal.m4: Regenerate.
946 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
948 * include/std/std_complex.h (complex<_Tp>): Properly indent
950 (complex<>::__rep): New.
951 (__complex_abs): New. Dispatch to built-ins.
953 (__complex_arg): New. Dispatch to built-ins.
955 (__complex_cos): New. Dispatch to built-ins.
957 (__complex_cosh): New. Dispatch to built-ins.
959 (__complex_exp): New. Dispatch to built-ins.
961 (__complex_log): New. Dispatch to built-ins.
963 (__complex_sin): New. Dispatch to built-ins.
965 (__complex_sinh): New. Dispatch to built-ins.
967 (__complex_sqrt): New. Dispatch to built-ins.
969 (__complex_tan): New. Dispatch to built-ins.
971 (__complex_tanh): New. Dispatch to built-ins.
973 (__complex_pow): New. Dispatch to built-ins.
976 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
977 Benjamin Kosnik <bkoz@redhat.com>
980 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
981 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
982 * config/io/basic_file_stdio.cc (__basic_file::file): New.
983 * config/io/basic_file_stdio.h: Define.
985 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
988 * docs/html/documentation.html: Update doxygen links for 3.4.0.
990 2004-05-27 Jan Beulich <jbeulich@novell.com>
992 * scripts/create_testsuite_files: Tweak.
994 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
997 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
998 bits to do the same thing.
1000 2004-05-24 Paolo Carlini <pcarlini@suse.de>
1002 * include/bits/istream.tcc (ignore): Correctly deal with
1003 n == numeric_limits<streamsize>::max().
1004 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
1006 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
1007 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
1008 __n == numeric_limits<>::min().
1010 * include/bits/istream.tcc: Minor tweaks.
1012 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
1014 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
1016 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
1018 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
1020 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
1022 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1025 Fixups for -Weffc++.
1026 * include/bits/basic_string.h (basic_string::operator=): Return
1027 pointer to this instead of result of assign. Although redundant,
1028 this doesn't impact resultant codegen.
1030 * include/bits/locale_facets.h (__numpunct_cache): Declare
1031 assignment opxserator and copy constructor private.
1032 (__timepunct_cache): Same.
1033 (__moneypunct_cache): Same.
1034 (collate): Use member initialization list for _M_c_locale_collate.
1035 * config/locale/gnu/messages_members.h: Same.
1036 * config/locale/gnu/time_members.h (__timepunct): Same.
1037 * src/codecvt.cc: Use member initialization list to initialize
1038 _M_c_locale_codecvt.
1039 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
1040 * config/os/gnu-linux/ctype_noninline.h: Same.
1041 * src/locale.cc (_Impl): Same.
1042 * src/locale_init.cc: Same.
1043 * src/localename.cc: Same.
1045 * include/bits/basic_ios.h (basic_ios): Complete member
1046 initialization list.
1047 * include/bits/istream.tcc (basic_istream::sentry): Same.
1048 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
1049 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
1050 _M_pback to member initialization list.
1051 * include/std/std_streambuf.h: Same.
1052 * include/std/std_sstream.h: Same, for _M_mode.
1053 * src/ios.cc (ios_base): Same.
1055 * include/ext/rope: Make derived classes match exception
1057 specifications. Add copy constructors and assignment operators.
1059 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
1060 constructor and assignment operator protected.
1061 (_Safe_iterator_base): Same.
1062 * include/debug/formatter.h (_Error_formatter): Define copy
1063 constructor and assignment operator.
1065 * include/backward/strstream: Declare assignment operator and copy
1066 constructor private.
1068 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1070 * testsuite/testsuite_hooks.h (func_callback): Declare copy
1071 constructor and assignment operator private.
1072 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
1073 exception specifications of base class.
1074 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
1075 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
1076 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
1078 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1080 * libsupc++/cxxabi.h: Remove duplicated and useless public and
1081 private keywords in class declarations. Format. Use
1082 stddef.h. Expose declarations to "C" compilation.
1083 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
1084 assignment operator.
1085 (__dyncast_result): Same.
1086 * libsupc++/vec.cc (uncatch_exception): Same, use member
1087 initialization list.
1089 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1091 * testsuite/abi_check.cc: Add unistd.h.
1093 2004-05-22 Paolo Carlini <pcarlini@suse.de>
1096 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
1097 __int_to_char(unsigned long long)): Showpos is not relevant
1099 * testsuite/22_locale/num_put/put/char/15565.cc: New.
1100 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
1102 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
1104 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
1105 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
1106 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
1107 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
1108 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
1109 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
1111 2004-05-21 Matthias Klose <doko@debian.org>
1113 * docs/doxygen/run_doxygen: Bump required version.
1115 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
1117 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
1118 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
1120 2004-05-21 Paolo Carlini <pcarlini@suse.de>
1122 * include/bits/istream.tcc (ignore): Remove redundant line.
1123 (readsome): Tidy, closely following 27.6.1.3, p30.
1125 2004-05-20 Paolo Carlini <pcarlini@suse.de>
1127 * include/bits/istream.tcc (operator>>(basic_istream<>&,
1128 basic_string<>&)): Use a temporary buffer, thus avoiding
1129 reallocation for common case.
1130 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
1132 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
1135 * include/bits/istream.tcc: Const-ification of a few variables.
1137 * include/bits/ostream.tcc: Trivial formatting fixes and
1138 const-ification of some variables.
1140 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
1144 * docs/doxygen/Intro.3: Remove Allocators.3.
1145 Add new extension headers, extension namespace list.
1146 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
1147 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
1148 __gnu_debug::. Remove __policy_ renames.
1149 * docs/doxygen/guide.html: Add dot note.
1150 * docs/doxygen/stdheader.cc: Edit, add files.
1151 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
1153 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
1155 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
1157 2004-05-18 Jan Beulich <jbeulich@novell.com>
1160 * scripts/create_testsuite_files: Also find source files through
1163 2004-05-18 Jan Beulich <jbeulich@novell.com>
1166 * testsuite/lib/libstdc++.exp: Make test files writable.
1168 2004-05-18 Paolo Carlini <pcarlini@suse.de>
1170 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
1173 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
1175 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
1176 allocation loop which removes blocks from the global free list
1177 from O(N) to O(1) when the required blocks are <= the number
1180 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
1182 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
1184 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
1186 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
1187 * testsuite/23_containers/deque/14340.cc: New.
1188 * testsuite/23_containers/list/14340.cc: New.
1189 * testsuite/23_containers/map/14340.cc: New.
1190 * testsuite/23_containers/multimap/14340.cc: New.
1191 * testsuite/23_containers/multiset/14340.cc: New.
1192 * testsuite/23_containers/set/14340.cc: New.
1193 * testsuite/23_containers/vector/14340.cc: New.
1195 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
1198 * include/debug/safe_iterator.h (_Safe_iterator converting
1199 constructor): Only allow declaration to instantiate when the
1200 incoming _Safe_iterator has exactly the right iterator type.
1202 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
1204 * include/bits/boost_concept_check.h: Fix old attribute syntax.
1205 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
1206 to pass concept-checks.
1207 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1208 * testsuite/23_containers/set/modifiers/swap.cc: Same.
1209 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1211 2004-05-16 Paolo Carlini <pcarlini@suse.de>
1213 * include/std/std_bitset.h: Minor formatting fixes.
1215 2004-05-16 Paolo Carlini <pcarlini@suse.de>
1217 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1218 Consistently update __bin._M_free[0].
1219 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
1220 __bin._M_free[0] to simplify the while loop (i.e., the number
1221 of iterations becomes known at the outset).
1223 2004-05-15 Paolo Carlini <pcarlini@suse.de>
1225 * include/std/std_bitset.h: Trivial formatting fixes.
1227 2004-05-14 Paolo Carlini <pcarlini@suse.de>
1228 Ivan Godard <igodard@pacbell.net>
1231 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
1232 * testsuite/23_containers/bitset/ext/15361.cc: New.
1234 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1237 * crossconfig.m4: Add C99 math bits for linux crosses.
1238 * configure: Regenerate.
1240 2004-05-13 Simon Marshall <simon.marshall@misys.com>
1241 Benjamin Kosnik <bkoz@redhat.com>
1244 * include/bits/locale_facets.h: Fix for -fno-for-scope.
1245 * include/debug/safe_sequence.h: Same.
1246 * include/debug/safe_iterator.tcc: Same.
1247 * src/debug.cc: Same.
1248 * src/locale.cc: Same.
1249 * src/locale_init.cc: Same.
1250 * src/localename.cc: Same.
1251 * config/locale/gnu/ctype_members.cc: Same.
1252 * config/locale/gnu/numeric_members.cc: Same.
1253 * testsuite/testsuite_abi.cc: Same.
1254 * testsuite/testsuite_hooks.cc: Same.
1256 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
1258 * docs/html/abi.html: Document effect of -fabi-version on value
1259 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
1262 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1265 * docs/html/faq/index.html: Update docs for libsupc++ usage.
1267 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1270 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
1272 (_GLIBCXX_mutex_address): Same.
1273 (_GLIBCXX_once): Same.
1274 (_GLIBCXX_mutex_init): Same.
1275 (_GLIBCXX_mutex_address_init): Same.
1277 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1279 * docs/html/abi.html: New.
1280 * docs/html/abi.txt: Remove.
1281 * docs/html/documentation.html: Add link.
1282 * testsuite/Makefile.am: Add files.
1283 * testsuite/Makefile.in: Regenerated.
1284 * testsuite/abi_check.cc: Move and modify code into...
1285 * testsuite/testsuite_abi.cc: Add.
1286 * testsuite/testsuite_abi.h: Add.
1288 * docs/html/17_intro/TODO: Update.
1289 * include/bits/stl_pair.h: Format.
1291 2004-05-06 Matthias Klose <doko@debian.org>
1293 * include/backward/iterator.h: Add GPL copyright info,
1294 with exception clause.
1295 * include/bits/boost_concept_check.h: Likewise.
1297 * libsupc++/tinfo.h: Likewise.
1298 * po/string_literals.cc: Likewise.
1300 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
1302 * acinclude.m4: Replace -W with more speaking -Wextra.
1303 * configure: Rebuilt.
1305 2004-05-03 Paolo Carlini <pcarlini@suse.de>
1307 Optimize locale::_M_impl->_M_names for the most common cases:
1308 !_M_names[0] means unnamed; !_M_names[1] means all the categories
1309 the same name (_M_names[0] && _M_names[1] means that the full set
1310 of _M_names must be processed, the general case).
1311 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
1312 Tweak, saving work when !_M_names[1].
1313 (locale::locale(const locale&, _Facet*): Simplify: now just setting
1314 _M_names[0] = 0 means unnamed.
1315 * src/locale.cc (locale::operator==): Deal first with the common,
1316 easy cases, otherwise fall back to locale::name().
1317 (locale::name()): Tweak, if !_M_names[0] just return "*".
1318 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
1319 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
1320 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
1321 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
1322 Simplify when !std::strchr, just updating _M_names[0]; clean up.
1323 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
1324 for the general case (full set of names), then do the usual work;
1327 * src/locale.cc (locale::name()): Reserve space in __ret.
1328 * src/locale_init.cc (locale::global(const locale&)): Save
1329 the name in a temporary.
1330 * src/localename.cc (locale::locale(const char*)): Reserve space
1333 2004-04-29 Paolo Carlini <pcarlini@suse.de>
1335 * src/locale.cc (locale::operator==): Always avoid constructing
1336 locale::name(), directly compare pairs of _M_names.
1338 2004-04-26 Paolo Carlini <pcarlini@suse.de>
1340 * include/bits/istream.tcc: Fix comment.
1342 2004-04-26 Paolo Carlini <pcarlini@suse.de>
1344 * include/bits/stl_vector.h: Trivial formatting fixes.
1345 * include/bits/vector.tcc: Likewise.
1347 2004-04-25 Paolo Carlini <pcarlini@suse.de>
1349 PR libstdc++/15002 (continued again)
1350 * include/bits/istream.tcc (getline(basic_istream<>&,
1351 basic_string<>&, _CharT)): Use a temporary buffer, thus
1352 avoiding reallocation for common case.
1354 * include/bits/basic_string.tcc (_S_construct(_InIterator,
1355 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
1356 of temporary buffer to a power of two.
1358 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
1360 2004-04-25 Paolo Carlini <pcarlini@suse.de>
1362 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
1364 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
1366 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
1368 2004-04-24 Paolo Carlini <pcarlini@suse.de>
1369 Petur Runolfsson <peturr02@ru.is>
1371 PR libstdc++/15002 (continued)
1372 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
1373 streamsize, char_type)): Use traits::find/copy in a loop to speed
1374 up greatly the function in the common case (I/O buffer size >> 1).
1376 2004-04-24 Paolo Carlini <pcarlini@suse.de>
1378 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
1380 * include/bits/istream.tcc (getline(basic_istream<>&,
1381 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
1382 of sbumpc(), consistently with the other functions, thus also
1383 dealing correctly with the case of exceeded string::max_size().
1385 2004-04-24 Matthias Klose <doko@debian.org>
1387 Jonathan Wakely <cow@compsoc.man.ac.uk>
1388 * docs/html/configopts.html: Fix reference to allocator config option.
1390 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
1392 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
1393 * configure: Regenerate.
1395 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
1397 PR libstdc++/15047, libstdc++/11610
1398 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
1399 (libstdc++_init): Don't pass outdir to v3-copy-files.
1401 2004-04-21 Paolo Carlini <pcarlini@suse.de>
1403 * include/bits/deque.tcc: Trivial formatting fixes.
1404 * include/bits/stl_deque.h: Likewise.
1405 * include/bits/stl_list.h: Likewise.
1406 * include/bits/stl_tree.h: Likewise.
1408 2004-04-21 Paolo Carlini <pcarlini@suse.de>
1409 Andrew Pinski <pinskia@physics.uc.edu>
1411 * include/bits/basic_string.tcc (_M_mutate): Don't compute
1412 __src unnecessarily.
1414 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
1416 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
1417 Clarify assertion, set test variable to false before assert.
1418 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
1419 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
1420 * testsuite/27_io/ios_base/storage/2.cc: Same.
1422 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
1424 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
1425 * testsuite/27_io/fpos/14320-3.cc: Same.
1427 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
1428 * testsuite/27_io/fpos/1.cc: Same.
1429 * testsuite/27_io/basic_stringstream/2.cc: Same.
1430 * testsuite/27_io/basic_stringbuf/4.cc: Same.
1431 * testsuite/27_io/basic_stringbuf/1.cc: Same.
1432 * testsuite/27_io/basic_stringbuf/2.cc: Same.
1433 * testsuite/27_io/basic_streambuf/2.cc: Same.
1434 * testsuite/27_io/basic_ostringstream/2.cc: Same.
1435 * testsuite/27_io/basic_ostream/2.cc: Same.
1436 * testsuite/27_io/basic_ofstream/2.cc: Same.
1437 * testsuite/27_io/basic_istringstream/2.cc: Same.
1438 * testsuite/27_io/basic_istream/2.cc: Same.
1439 * testsuite/27_io/basic_iostream/2.cc: Same.
1440 * testsuite/27_io/basic_ios/2.cc: Same.
1441 * testsuite/27_io/basic_ifstream/2.cc: Same.
1442 * testsuite/27_io/basic_fstream/2.cc: Same.
1443 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
1445 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
1446 unsigned against zero.
1447 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
1448 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
1450 * testsuite/18_support/new_delete_placement.cc: Initialize
1451 variables before first use.
1452 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
1453 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
1454 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
1455 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
1457 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
1458 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
1460 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
1461 * testsuite/27_io/types/2.cc: Same.
1463 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
1465 * testsuite/27_io/fpos/14775.cc: Same.
1467 2004-04-19 Paolo Carlini <pcarlini@suse.de>
1469 PR libstdc++/15002 (partial)
1470 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
1471 Special case __n2 == 1, not calling traits_type::assign/copy.
1473 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
1475 * include/bits/stl_bvector.h: Use _M_impl._M_start.
1477 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
1479 * include/bits/c++config (_GLIBCXX_STD): New.
1480 * src/list.cc: Use it.
1481 * include/std/std_bitset.h: Same.
1482 * include/bits/vector.tcc: Same.
1483 * include/bits/stl_set.h: Same.
1484 * include/bits/stl_multiset.h: Same.
1485 * include/bits/stl_multimap.h: Same.
1486 * include/bits/stl_map.h: Same.
1487 * include/bits/stl_list.h: Same.
1488 * include/bits/stl_vector.h: Same.
1489 * include/bits/stl_bvector.h: Same.
1490 * include/bits/stl_deque.h: Same.
1491 * include/bits/deque.tcc: Same.
1492 * include/bits/list.tcc: Same.
1493 * include/debug/vector: Same.
1494 * include/debug/set.h: Same.
1495 * include/debug/multiset.h: Same.
1496 * include/debug/multimap.h: Same.
1497 * include/debug/map.h: Same.
1498 * include/debug/list: Same.
1499 * include/debug/deque: Same.
1500 * include/debug/bitset: Same.
1501 * include/debug/formatter.h (__gnu_debug): Remove using directive.
1502 Add using declaration for std::type_info.
1503 * include/debug/safe_iterator.h: Add using declaration for
1504 std::iterator_traits and std::pair.
1505 * src/debug_list.cc: New.
1506 * src/Makefile.am: Add debug_list.cc.
1507 * src/Makefile.in: Regenerate.
1508 * config/linker-map.gnu: Add _List_node_base exports for std and
1511 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
1512 idiom that other containers use.
1513 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
1515 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1518 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
1520 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
1521 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
1523 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1525 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
1527 * config.h.in: Regenerate.
1529 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1531 * config/locale/generic/monetary_members.cc
1532 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
1533 btowc unnecessarily, just cast to wchar_t (the concerned chars
1534 all belong to the basic character set).
1535 * config/locale/generic/numeric_members.cc
1536 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1537 * config/locale/gnu/monetary_members.cc
1538 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
1539 * config/locale/gnu/numeric_members.cc
1540 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1542 2004-04-15 Paolo Carlini <pcarlini@suse.de>
1544 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
1545 avoid constructing unnecessarily this->name().
1547 2004-04-14 Zack Weinberg <zack@codesourcery.com>
1549 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
1550 Change definition of CXX to use $(shell) instead of backticks.
1551 * testsuite/Makefile.in: Regenerate.
1553 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
1555 * testsuite/performance/20_util/allocator/list_sort_search.cc:
1556 Minor formatting fixes.
1557 * testsuite/performance/20_util/allocator/map_mt_find.cc:
1560 2004-04-12 Paolo Carlini <pcarlini@suse.de>
1562 * config/locale/gnu/numeric_members.cc
1563 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
1564 in __uselocale, since btowc is called for chars belonging to
1565 the basic character set.
1567 2004-04-09 Paolo Carlini <pcarlini@suse.de>
1569 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
1570 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
1571 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
1572 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
1573 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
1574 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
1575 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
1576 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
1577 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
1578 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
1579 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
1580 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
1581 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
1582 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
1583 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
1584 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
1585 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
1587 2004-04-07 Paolo Carlini <pcarlini@suse.de>
1589 * config/locale/generic/time_members.cc
1590 (__timepunct<char>::_M_initialize_timepunct,
1591 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
1592 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
1593 * config/locale/gnu/time_members.cc
1594 (__timepunct<char>::_M_initialize_timepunct,
1595 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
1596 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
1597 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
1599 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
1600 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
1601 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
1602 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
1603 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
1604 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
1605 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
1606 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
1607 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
1608 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
1609 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
1610 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
1611 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
1612 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
1613 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
1614 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
1615 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
1616 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
1617 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
1618 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
1619 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
1620 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
1621 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
1622 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
1623 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
1624 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
1625 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
1626 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
1627 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
1628 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
1629 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
1630 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
1631 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
1632 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
1633 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
1634 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
1636 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
1638 2004-04-07 Paolo Carlini <pcarlini@suse.de>
1640 * config/locale/gnu/monetary_members.cc
1641 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
1642 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
1643 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
1644 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
1645 * config/locale/gnu/numeric_members.cc
1646 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
1647 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
1649 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
1651 Fixups for EDG front end.
1652 * include/ext/rope: Instead of non-existent function
1653 _Data_allocate, use allocator's allocate. Use this.
1654 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
1655 enumerations from _Rope_RopeRep here.
1656 * include/ext/ropeimpl.h: Same.
1657 * src/ext-inst.cc (_S_min_len): Fix up definition.
1659 * config/locale/gnu/ctype_members.cc: Qualify base class members
1661 * config/locale/generic/ctype_members.cc: Same.
1662 * config/locale/gnu/messages_members.h: Same.
1663 * config/locale/generic/messages_members.h: Same.
1664 * src/ctype.cc: Same.
1665 * include/bits/codecvt.h: Same.
1667 * include/bits/boost_concept_check.h: Declare.
1668 (__error_type_must_be_an_unsigned_integer_type): Remove this.
1669 (__error_type_must_be_an_integer_type): Remove this.
1670 (__error_type_must_be_a_signed_integer_type): Remove this.
1672 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
1674 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
1675 specification to definition.
1676 (__cxa_allocate_exception): Same.
1677 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
1678 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
1679 (__cxa_get_globals): Same.
1681 * libsupc++/del_op.cc: Add comment about freestanding.
1683 2004-04-05 Paolo Carlini <pcarlini@suse.de>
1685 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1686 The critical section is actually very small, only two assignments.
1688 2004-04-04 Paolo Carlini <pcarlini@suse.de>
1689 Petur Runolfsson <peturr02@ru.is>
1691 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
1692 adapted from libstdc++/11378.
1694 2004-04-03 Paolo Carlini <pcarlini@suse.de>
1696 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
1697 some duplicated code.
1698 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
1699 in the single threaded case.
1700 * testsuite/performance/20_util/allocator/list_sort_search.cc:
1701 Reorder and renumber the tests consistently with the other testfiles.
1702 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1703 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1704 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1706 2004-04-02 Paolo Carlini <pcarlini@suse.de>
1708 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1709 Rearrange arithmetic to avoid computing two divisions at
1712 2004-04-01 Paolo Carlini <pcarlini@suse.de>
1714 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
1715 Streamline the second half, wrapping it in a single
1716 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
1717 conditionals inside loops.
1719 2004-04-01 Paolo Carlini <pcarlini@suse.de>
1722 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
1723 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
1724 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
1725 to _GLIBCXX_RES_LIMITS.
1726 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
1728 * testsuite/testsuite_hooks.h: Declare set_file_limit.
1729 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
1730 and setrlimit(RLIMIT_FSIZE).
1731 * testsuite/27_io/fpos/14775.cc: New.
1732 * config.h.in: Regenerate.
1733 * configure: Likewise.
1735 2004-03-31 Paolo Carlini <pcarlini@suse.de>
1737 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
1738 In v3 uses of sscanf, the special floating-point numbers INF,
1739 INFINITY, etc., cannot occur in input, therefore, if the latter
1740 is too large, ERANGE is always stored in errno, no need of finitel.
1742 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
1745 * include/bits/stl_tree.h: Adjust initialization list order.
1747 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
1749 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
1751 2004-03-29 Paolo Carlini <pcarlini@suse.de>
1753 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
1754 on allocator behavior, the memory pointed by data2 may well be not
1757 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
1760 * include/bits/basic_string.tcc
1761 (basic_string::basic_string(const basic_string&)): Pass to
1762 _Rep::_M_grab the actual allocator of the string being constructed
1763 not the default constructed one.
1765 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
1768 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
1769 (__enc_traits::_M_destroy): New.
1770 (__enc_traits::~__enc_traits): Use it.
1771 (__enc_traits::operator=): Use _M_destroy, _M_init.
1772 (__enc_traits::__enc_traits): Same.
1774 2004-03-27 Petur Runolfsson <peturr02@ru.is>
1776 * testsuite/ext/enc_filebuf/char/13598.cc: New.
1778 2004-03-27 Paolo Carlini <pcarlini@suse.de>
1780 * include/ext/mt_allocator.h: Uglify consistently names of
1781 variables, members and classes; tidy.
1783 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
1785 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1786 Deallocation loop rewrote.
1788 2004-03-26 Paolo Carlini <pcarlini@suse.de>
1790 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1791 __mt_alloc<>::deallocate): Protect two instances of
1792 block->thread_id with __GTHREADS.
1794 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
1796 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
1797 default argument in constructors.
1798 (_Rb_tree::_M_empty_initialize): Remove.
1800 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
1802 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
1803 * testsuite/23_containers/set/operators/1_neg.cc: Same.
1805 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1807 * include/bits/cpp_type_traits.h: Changed __is_pod
1808 completely. Now, it does not use any of the previous type_traits
1809 to detect the pod types, and it also detects function pointers as
1812 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
1813 which encapsulates the internal implementation of an rb_tree. Made
1814 the allocator a base class of this class instead of the rb_tree,
1815 which was not conforming. This _Rb_tree_impl class is also
1816 specialized on whether the _Compare parameter is a POD type or
1817 not. If so, then it maintains the comparison function as a data
1818 member, otherwise it makes the _Compare parameter a base class of
1819 itself. Also, _M_key_compare is now a function instead of a data
1820 member, so that the above trick can work properly. Delegated the
1821 initialization of the other data members to this newly created
1822 class. Also, now other member functions of rb_tree must refer to
1823 _M_key_compare as _M_impl._M_key_compare(). The other data members
1824 (*) can be referenced to as _M_impl.(*), where
1825 (*) includes _M_header, and _M_node_count.
1827 2004-03-25 Paolo Carlini <pcarlini@suse.de>
1829 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
1830 Add _M_min_bin, the size in bytes of the smallest bin.
1831 (__mt_alloc<>::tune()): Tweak accordingly.
1832 (__mt_alloc<>::tune(size_t, ...)): Likewise.
1833 (__mt_alloc<>::block_record): Change to a union: members next
1834 and thread_id are never used at the same time.
1835 (__mt_alloc<>::allocate): Update consistently.
1836 (__mt_alloc<>::deallocate): Likewise.
1837 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
1838 _S_bin_size for the configurable _M_min_size.
1840 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1842 * include/bits/stl_list.h: Created a _List_impl class and made it
1843 derive from the allocator, instead of the list deriving from the
1844 allocator class, which was not conformant. Changed all references
1845 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
1846 as above (changed all references to the concerned variables).
1848 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1850 * include/bits/stl_deque.h: Created a _Deque_impl class and made
1851 it derive from the allocator, instead of the deque deriving from
1852 the allocator class, which was not conformant. Changed all
1853 references to the _M_start, _M_finish, _M_map, and _M_map_size to
1855 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
1856 qualification in 2 places where it was missing.
1857 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
1859 * include/bits/deque.tcc: Same as above (changed all references to
1860 the concerned variables).
1862 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1864 * include/bits/stl_vector.h: Created a _Vector_impl class and made
1865 it derive from the allocator, instead of the _Vector_base class,
1866 deriving from the allocator which was not conformant. Changed all
1867 references to the _M_start, _M_finish, and _M_end_of_storage to
1869 * include/bits/vector.tcc: Same as above (changed all references
1870 to the concerned variables).
1872 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1874 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
1875 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
1876 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
1878 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
1880 * include/ext/malloc_allocator.h: Fixed the construct function to
1881 call global placement new instead of assignment. Added a check
1882 after the return from malloc to check whether returned pointer is
1883 NULL, and if so, throw std::bad_alloc().
1884 * include/ext/debug_allocator.h: Added a check in the deallocate
1885 function to check whether the user has passed a NULL pointer or
1888 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
1890 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
1892 2004-03-24 Andreas Schwab <schwab@suse.de>
1894 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
1895 warning from IA64 assembler.
1897 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
1899 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
1900 function call __builtin_ctz instead of the while loop.
1901 (allocate) -> If condition has __builtin_expect.
1902 (deallocate) -> Ditto.
1903 Renamed a few left-over variables and typedefs according to the
1904 C++STYLE mentioned in the documentation.
1905 Protected calls to __gthread* by __gthread_active_p(), whose value
1906 is cached in the local variable __threads_active.
1908 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
1910 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1911 Use linear algorithm for producer.
1913 2004-03-24 Paolo Carlini <pcarlini@suse.de>
1915 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1916 __mt_alloc<>::deallocate): Avoid redundant conditionals.
1918 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
1920 * include/bits/locale_facets.h: Tweaks for 80 column.
1921 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
1922 (__moneypunct_cache::_M_cache): Same.
1923 (num_get): Don't inherit from __num_base.
1925 (money_get): Don't inherit from money_base.
1927 (__timepunct::_M_am_pm_format): New.
1928 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
1929 (time_get::_M_extract_name): Same.
1930 (time_get::_M_extract_via_format): Same.
1931 * include/bits/locale_facets.tcc: Tweaks for 80 column.
1932 Use _M_getloc instead of getloc.
1933 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
1934 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
1935 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
1937 2004-03-22 Paolo Carlini <pcarlini@suse.de>
1939 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
1940 * configure: Regenerate.
1941 * config/allocator/pool_allocator_base.h: New.
1942 * include/ext/pool_allocator.h: Convert to a standard-conforming
1944 * src/allocator.cc: Tweak instantiations.
1945 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
1946 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
1947 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
1948 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1949 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1950 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1952 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
1954 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
1955 inline" and attribute-unused. Qualify parameter __mem with
1957 (__exchange_and_add): Ditto. Add back memory clobber to asm.
1959 2004-03-20 Paolo Carlini <pcarlini@suse.de>
1961 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
1963 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
1965 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
1967 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
1969 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
1971 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
1973 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
1975 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
1977 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
1979 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
1982 2004-03-20 Paolo Carlini <pcarlini@suse.de>
1984 * include/std/std_valarray.h: Document DR389 [Ready].
1985 * docs/html/ext/howto.html: Add an entry for DR389.
1987 2004-03-19 Michael Eager <eager@mvista.com>
1989 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
1992 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1994 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
1996 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
1997 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
1998 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
1999 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
2000 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
2001 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
2002 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
2003 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
2004 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
2006 2004-03-19 Paolo Carlini <pcarlini@suse.de>
2007 Petur Runolfsson <peturr02@ru.is>
2010 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
2011 no way to find out the conversion used by the underlying FILE*.
2012 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
2013 * testsuite/27_io/objects/char/9.cc: Tweak.
2015 2004-03-19 Paolo Carlini <pcarlini@suse.de>
2018 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
2019 memory allocation/deallocation calls.
2020 * testsuite/ext/14648.cc: New.
2022 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
2025 * include/backward/bvector.h (bit_vector): Allocator is in std
2028 2004-03-19 Phil Edwards <phil@codesourcery.com>
2030 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
2031 not libiconv. SUBST this variable as well.
2032 * testsuite/Makefile.am (site.exp): New target, based on that
2033 created by automake. Also set libiconv.
2035 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
2036 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2037 testsuite/Makefile.in: Regenerate.
2039 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
2041 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
2042 new_allocator for all hosts.
2043 * configure: Regenerate.
2045 2004-03-16 Paolo Carlini <pcarlini@suse.de>
2047 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
2048 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2050 2004-03-15 Paolo Carlini <pcarlini@suse.de>
2052 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2053 Adjust the logic underlying the parsing of symbol to deal
2054 correctly with an optional sign component (i.e., when either
2055 negative_sign or positive_sign is empty)
2056 * testsuite/22_locale/money_get/get/char/19.cc: New.
2057 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
2059 2004-03-15 Paolo Carlini <pcarlini@suse.de>
2061 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2062 Do not accept an incomplete currency symbol.
2063 * testsuite/22_locale/money_get/get/char/18.cc: New.
2064 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
2066 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
2068 * config/allocator: New.
2069 * config/allocator/bitmap_allocator_base.h: New.
2070 * config/allocator/malloc_allocator_base.h: New.
2071 * config/allocator/mt_allocator_base.h: New.
2072 * config/allocator/new_allocator_base.h: New.
2073 * include/bits/allocator.h: Include c++allocator.h.
2074 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
2075 * aclocal.m4: Regenerate.
2076 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
2077 * configure: Regenerate.
2078 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
2079 * include/Makefile.in: Regenerate.
2080 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
2082 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
2084 * include/bits/allocator.h: Revert.
2086 2004-03-12 Paolo Carlini <pcarlini@suse.de>
2088 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
2089 * include/bits/gslice_array.h: Add comment about DR 253.
2090 * include/bits/indirect_array.h: Likewise.
2091 * include/bits/mask_array.h: Likewise.
2092 * include/bits/slice_array.h: Likewise.
2094 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
2096 * testsuite/20_util/allocator/14176.cc: New.
2097 * include/ext/mt_allocator.h: Formatting fixes.
2099 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
2101 * include/Makefile.am (ext_headers): Add
2102 ${ext_srcdir}/bitmap_allocator.h .
2103 * include/Makefile.in: Regenerate.
2104 * docs/html/ext/ballocator_doc.txt: New file.
2105 * include/ext/bitmap_allocator.h: New file.
2106 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
2108 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
2109 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
2110 test for the bitmap_allocator<>.
2111 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
2112 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
2113 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
2115 2004-03-11 Paolo Carlini <pcarlini@suse.de>
2117 * include/std/std_complex.h (pow(const complex&, const _Tp&),
2118 pow(const _Tp&, const complex&), pow(const complex&,
2119 const complex&)): Fully qualify with std:: a few calls.
2120 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
2122 2004-03-11 Steven Bosscher <stevenb@suse.de>
2125 * include/c_std/cmath.tcc (__cmath_power): Define inline.
2127 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
2129 * configure.ac: Bump AC_PREREQ to 2.59.
2131 2004-03-10 Paolo Carlini <pcarlini@suse.de>
2133 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
2135 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
2136 Paolo Carlini <pcarlini@suse.de>
2139 * include/std/std_complex.h (pow(const complex&, const _Tp&),
2140 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
2141 * testsuite/26_numerics/complex/13450.cc: New.
2143 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
2144 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
2146 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
2149 * include/bits/gslice_array.h (gslice_array()): Make public.
2150 (operator=(gslice_array)): Make public. Implement.
2151 * include/bits/indirect_array.h (indirect_array()): Make public.
2152 * include/bits/mask_array.h (mask_array()): Make public.
2153 (operator=(mask_array)): Make public. Implement.
2154 * include/bits/valarray_array.tcc (__valarray_copy):
2155 Comment. Add versions for gslice_array and mask_array.
2156 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
2158 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
2160 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
2162 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
2163 * testsuite/23_containers/set/modifiers/swap.cc: Same.
2164 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2165 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2166 * testsuite/23_containers/map/modifiers/swap.cc: Same.
2167 * testsuite/23_containers/list/modifiers/swap.cc: Same.
2169 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
2171 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
2174 * testsuite/23_containers/deque/modifiers/swap.cc: New.
2175 * testsuite/23_containers/list/modifiers/swap.cc: New.
2176 * testsuite/23_containers/map/modifiers/swap.cc: New.
2177 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
2178 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
2179 * testsuite/23_containers/set/modifiers/swap.cc: New.
2180 * testsuite/23_containers/vector/modifiers/swap.cc: New.
2182 2004-03-08 Petur Runolfsson <peturr02@ru.is>
2185 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
2187 2004-03-08 Paolo Carlini <pcarlini@suse.de>
2189 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
2190 * include/bits/stl_multiset.h: Add comment about DR 103.
2191 * include/bits/stl_set.h: Likewise.
2193 2004-03-08 Paolo Carlini <pcarlini@suse.de>
2195 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2196 The value _space_ indicates that at least one space is required
2198 * testsuite/22_locale/money_get/get/char/17.cc: New.
2199 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
2201 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
2202 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
2204 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
2205 Remove redundant conditional on __str.size().
2207 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
2209 * include/bits/allocator.h: Switch defaults to mt_alloc.
2211 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
2213 * include/ext/mt_allocator.h (_S_initialize): If
2214 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
2216 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
2219 * src/locale_init.cc (locale::locale): Lock critical regions with
2221 (locale::global): Same.
2222 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
2223 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
2224 (__glibcxx_mutex_lock): Same.
2226 * config/cpu/generic/atomicity.h: Remove
2227 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
2228 * src/misc-inst.cc: Move all locking bits out of this file.
2230 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
2231 * src/misc-inst.cc: Same.
2232 * config/cpu/hppa/atomicity.h: Same.
2234 * config/linker-map.gnu: Remove types in the signature of atomic
2235 exports, as they may vary.
2237 2004-03-06 Paolo Carlini <pcarlini@suse.de>
2239 * include/bits/locale_facets.tcc: Tweak the comment preceding
2240 has_facet: doesn't throw.
2242 2004-03-06 Paolo Carlini <pcarlini@suse.de>
2244 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
2245 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2246 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2247 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2248 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2249 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2250 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2251 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2253 2004-03-06 Paolo Carlini <pcarlini@suse.de>
2255 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2256 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
2257 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
2258 * testsuite/testsuite_character.h (struct __gnu_test::character):
2260 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
2263 2004-03-05 Paolo Carlini <pcarlini@suse.de>
2265 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
2267 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
2269 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
2271 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
2273 * testsuite/23_containers/deque/invalidation/4.cc: Same.
2274 * testsuite/23_containers/list/invalidation/1.cc: Same.
2275 * testsuite/23_containers/list/invalidation/2.cc: Same.
2276 * testsuite/23_containers/list/invalidation/3.cc: Same.
2277 * testsuite/23_containers/list/invalidation/4.cc: Same.
2278 * testsuite/23_containers/map/invalidation/2.cc: Same.
2279 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
2280 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2281 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
2282 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2283 * testsuite/23_containers/set/invalidation/1.cc: Same.
2284 * testsuite/23_containers/set/invalidation/2.cc: Same.
2285 * testsuite/23_containers/vector/invalidation/1.cc: Same.
2286 * testsuite/23_containers/vector/invalidation/2.cc: Same.
2287 * testsuite/23_containers/vector/invalidation/3.cc: Same.
2288 * testsuite/23_containers/vector/invalidation/4.cc: Same.
2290 2004-03-04 Paolo Carlini <pcarlini@suse.de>
2292 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
2294 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
2296 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
2297 from the dg-options.
2298 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
2299 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
2300 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
2301 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
2302 * testsuite/23_containers/vector/resize/1.cc: Likewise.
2303 * testsuite/26_numerics/complex_value.cc: Likewise.
2304 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
2305 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
2306 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
2307 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
2308 * testsuite/27_io/objects/char/5.cc: Likewise.
2309 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
2310 * testsuite/backward/11460.cc: Likewise.
2311 * testsuite/thread/pthread7-rope.cc: Likewise.
2313 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
2314 missing test variable.
2315 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
2316 missing test variable.
2318 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
2320 * testsuite/20_util/allocator/1.cc: Provide explicit
2321 instantiations for non-weak systems.
2322 * testsuite/20_util/binders.cc: Same.
2323 * testsuite/20_util/allocator/8230.cc: Same.
2324 * testsuite/20_util/allocator/10378.cc: Same.
2325 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
2326 * testsuite/22_locale/ctype/is/char/2.cc: Same.
2327 * testsuite/thread/pthread7-rope.cc: Same.
2328 * testsuite/thread/pthread6.cc: Same.
2329 * testsuite/thread/pthread5.cc: Same.
2330 * testsuite/thread/pthread4.cc: Same.
2331 * testsuite/thread/pthread1.cc: Same.
2332 * testsuite/ext/rope.cc: Same.
2333 * testsuite/ext/hash_set.cc: Same.
2334 * testsuite/ext/hash_map.cc: Same.
2335 * testsuite/ext/concept_checks.cc: Same.
2336 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
2337 * testsuite/25_algorithms/unique/2.cc: Same.
2338 * testsuite/25_algorithms/unique/1.cc: Same.
2339 * testsuite/25_algorithms/rotate.cc: Same.
2340 * testsuite/25_algorithms/min_max.cc: Same.
2341 * testsuite/25_algorithms/equal.cc: Same.
2342 * testsuite/24_iterators/rel_ops.cc: Same.
2343 * testsuite/24_iterators/iterator.cc: Same.
2344 * testsuite/24_iterators/insert_iterator.cc: Same.
2345 * testsuite/24_iterators/front_insert_iterator.cc: Same.
2346 * testsuite/24_iterators/back_insert_iterator.cc: Same.
2347 * testsuite/23_containers/vector/resize/1.cc: Same.
2348 * testsuite/23_containers/vector/modifiers/2.cc: Same.
2349 * testsuite/23_containers/vector/modifiers/1.cc: Same.
2350 * testsuite/23_containers/vector/invalidation/4.cc: Same.
2351 * testsuite/23_containers/vector/invalidation/3.cc: Same.
2352 * testsuite/23_containers/vector/invalidation/2.cc: Same.
2353 * testsuite/23_containers/vector/invalidation/1.cc: Same.
2354 * testsuite/23_containers/vector/element_access/1.cc: Same.
2355 * testsuite/23_containers/vector/cons/6513.cc: Same.
2356 * testsuite/23_containers/vector/cons/3.cc: Same.
2357 * testsuite/23_containers/vector/cons/2.cc: Same.
2358 * testsuite/23_containers/vector/cons/1.cc: Same.
2359 * testsuite/23_containers/vector/capacity/8230.cc: Same.
2360 * testsuite/23_containers/vector/capacity/1.cc: Same.
2361 * testsuite/23_containers/vector/bool/6886.cc: Same.
2362 * testsuite/23_containers/stack/members/7158.cc: Same.
2363 * testsuite/23_containers/set/invalidation/2.cc: Same.
2364 * testsuite/23_containers/set/invalidation/1.cc: Same.
2365 * testsuite/23_containers/queue/members/7157.cc: Same.
2366 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
2367 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2368 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2369 * testsuite/23_containers/multiset/insert/1.cc: Same.
2370 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2371 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2372 * testsuite/23_containers/map/operators/1.cc: Same.
2373 * testsuite/23_containers/map/invalidation/2.cc: Same.
2374 * testsuite/23_containers/map/invalidation/1.cc: Same.
2375 * testsuite/23_containers/map/insert/1.cc: Same.
2376 * testsuite/23_containers/list/operators/4.cc: Same.
2377 * testsuite/23_containers/list/operators/3.cc: Same.
2378 * testsuite/23_containers/list/operators/2.cc: Same.
2379 * testsuite/23_containers/list/operators/1.cc: Same.
2380 * testsuite/23_containers/list/modifiers/3.cc: Same.
2381 * testsuite/23_containers/list/modifiers/2.cc: Same.
2382 * testsuite/23_containers/list/modifiers/1.cc: Same.
2383 * testsuite/23_containers/list/invalidation/4.cc: Same.
2384 * testsuite/23_containers/list/invalidation/3.cc: Same.
2385 * testsuite/23_containers/list/invalidation/2.cc: Same.
2386 * testsuite/23_containers/list/invalidation/1.cc: Same.
2387 * testsuite/23_containers/list/cons/9.cc: Same.
2388 * testsuite/23_containers/list/cons/8.cc: Same.
2389 * testsuite/23_containers/list/cons/7.cc: Same.
2390 * testsuite/23_containers/list/cons/6.cc: Same.
2391 * testsuite/23_containers/list/cons/5.cc: Same.
2392 * testsuite/23_containers/list/cons/4.cc: Same.
2393 * testsuite/23_containers/list/cons/3.cc: Same.
2394 * testsuite/23_containers/list/cons/2.cc: Same.
2395 * testsuite/23_containers/list/cons/1.cc: Same.
2396 * testsuite/23_containers/list/capacity/1.cc: Same.
2397 * testsuite/23_containers/deque/operators/1.cc: Same.
2398 * testsuite/23_containers/deque/invalidation/4.cc: Same.
2399 * testsuite/23_containers/deque/invalidation/3.cc: Same.
2400 * testsuite/23_containers/deque/invalidation/2.cc: Same.
2401 * testsuite/23_containers/deque/invalidation/1.cc: Same.
2402 * testsuite/23_containers/deque/cons/2.cc: Same.
2403 * testsuite/23_containers/deque/cons/1.cc: Same.
2405 * src/allocator.cc: Add char, wchar_t instantiations
2406 to match extern template declarations in memory.h.
2408 2004-03-03 Paolo Carlini <pcarlini@suse.de>
2410 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2411 Fix warning regression.
2413 2004-03-03 Paolo Carlini <pcarlini@suse.de>
2415 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2416 Deal properly with empty __digits and negative frac_digits,
2419 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
2421 * docs/html/documentation.html: Regenerate.
2423 2004-03-02 Paolo Carlini <pcarlini@suse.de>
2426 * include/bits/postypes.h (class streamoff): Remove, now
2427 streamoff is just typedef a 64 bit signed integer type.
2428 (class fpos): Tweak consistently.
2429 * testsuite/27_io/fpos/14320-1.cc: New.
2430 * testsuite/27_io/fpos/14320-2.cc: New.
2431 * testsuite/27_io/fpos/14320-3.cc: New.
2432 * testsuite/27_io/fpos/14320-4.cc: New.
2433 * testsuite/27_io/fpos/14320-5.cc: New.
2434 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
2436 2004-03-02 Paolo Carlini <pcarlini@suse.de>
2438 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2439 Reorganize a bit the main parsing loop, thus early detecting
2440 an empty value component.
2441 * testsuite/22_locale/money_get/get/char/16.cc: New.
2442 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
2444 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
2446 Support automake 1.8.2
2447 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
2448 * po/Makefile.am (EXTRA_DIST): New.
2449 * po/Makefile.in: Regenerate.
2450 * Makefile.in: Same.
2451 * include/Makefile.in: Same.
2452 * libmath/Makefile.in: Same.
2453 * libsupc++/Makefile.in: Same.
2454 * src/Makefile.in: Same.
2455 * testsuite/Makefile.in: Same.
2457 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
2458 __GXX_WEAK__ instead of SUPPORTS_WEAK.
2459 (${host_builddir}/gthr-default.h): Same.
2460 (${host_builddir}/gthr.h): Same.
2461 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
2462 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
2464 * aclocal.m4: Regenerate.
2465 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
2466 * config.h.in: Regenerate.
2469 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
2471 Support autoconf 2.59
2472 * acinclude.m4: Quote correctly.
2473 * aclocal.m4: Regenerate.
2476 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
2478 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
2480 * docs/html/18_support/howto.html: Add bit about writing to
2481 stderr, mostly by Zack.
2483 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2485 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2486 money_get<>::do_get(string_type&)): ... and two more.
2488 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2490 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2491 Fix thinkos in the switch from string_type& to string& as last
2494 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2496 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2497 Also when parsing exponent sign, first look for thousands_sep
2498 and decimal_point; tweak a bit.
2499 * testsuite/22_locale/num_get/get/char/15.cc: New.
2500 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
2502 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2503 num_get<>::_M_extract_int): Reorder some conditionals.
2505 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2507 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2508 Consistently with numpunct, enforce the requirements in
2509 22.2.6.3, p3 for the thousands separators; tweak a bit.
2510 * testsuite/22_locale/money_get/get/char/15.cc: New.
2511 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
2513 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
2515 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
2516 testsuite_files from correct multilib blddir when running
2519 2004-02-29 Phil Edwards <phil@codesourcery.com>
2521 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
2522 the summary file to the logfile.
2523 * testsuite/Makefile.in: Regenerate.
2525 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2527 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
2529 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
2530 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
2532 2004-02-28 Paolo Carlini <pcarlini@suse.de>
2534 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2535 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
2536 no 'decimal-point' in the middle: in this case too we must fix
2537 up __found_grouping; slightly tweak.
2538 * testsuite/22_locale/num_get/get/char/14.cc: New.
2539 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
2541 2004-02-27 Eric Christopher <echristo@redhat.com>
2542 Phil Edwards <phil@codesourcery.com>
2544 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
2545 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
2546 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
2547 testsuite/22_locale/collate/hash/wchar_t/2.cc,
2548 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
2549 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
2550 testsuite/22_locale/collate/transform/wchar_t/2.cc,
2551 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
2552 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2553 Use dg-require-iconv.
2554 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
2556 2004-02-27 Phil Edwards <phil@codesourcery.com>
2557 Eric Christopher <echristo@redhat.com>
2559 * testsuite/config/default.exp: Update with comments.
2560 (${tool}_target_compile): New wrapper routine.
2561 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
2562 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
2564 (load_gcc_lib, v3track): New routines.
2565 (v3-init): Rename to libstdc++_init.
2566 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
2567 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
2569 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
2571 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
2573 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
2575 * config/os/irix/irix5.2/atomicity.h: Merge..
2576 * config/os/irix/irix6.5/atomicity.h: Merge..
2577 * config/os/irix/atomicity.h: ...into this.
2578 * config/os/irix/atomic_word.h: New.
2579 * configure.host: Set atomic_word_dir for irix.
2581 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
2582 * i386/atomicity.h: Same.
2583 * m68k/atomicity.h: Same.
2584 * sparc/atomicity.h: Same.
2586 2004-02-27 David Edelsohn <edelsohn@gnu.org>
2588 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
2589 static, and inline keywords.
2591 2004-02-27 Paolo Carlini <pcarlini@suse.de>
2593 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2594 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
2595 call reserve on the __tmp_gruping string.
2596 (num_get<>::_M_extract_float): Don't append unnecessarily a
2597 char() to the returned string.
2598 * include/bits/locale_facets.tcc: Trivial reformattings.
2600 2004-02-27 Paolo Carlini <pcarlini@suse.de>
2602 * include/bits/locale_facets.h (money_get<>::_M_extract):
2603 Change signature: now takes a plain string&.
2604 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2605 Update consistently the definition; use the moneypunct cache
2606 to parse the value; use swap to change __units.
2607 (money_get<>::do_get(long double&)): Update call of _M_extract,
2608 avoid ctype::narrow, not correct wrt the standard.
2609 (money_get<>::do_get(string_type&)): Likewise, update call
2610 of _M_extract, use ctype::widen.
2611 * src/locale-inst.cc: Tweak instantiations of _M_extract.
2613 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
2615 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
2616 * testsuite/demangle/abi_examples/02.cc: Likewise.
2617 * testsuite/demangle/regression/cw-11.cc: Likewise.
2618 * testsuite/demangle/regression/cw-16.cc: Change two expected
2619 results to match libiberty demangler output.
2621 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
2624 * libsupc++/Makefile.am: Use libiberty demangler.
2625 (c_sources): Add cp-demangle.c.
2626 * libsupc++/Makefile.in: Regenerate.
2627 * src/Makefile.am (sources): Remove demangle.cc.
2628 * src/Makefile.in: Regenerate.
2629 * include/Makefile.am (bits_headers): Move demangle.h.
2630 (ext_headers): ...here.
2631 * include/Makefile.in: Regenerate.
2632 * include/bits/demangle.h: Move...
2633 * include/ext/demangle.h: ...here.
2634 * src/demangle.cc: Remove.
2636 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
2638 * include/bits/demangle.h: Add type template parameter to all
2639 templates with just an Allocator template parameter.
2641 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
2643 * include/bits/atomicity.h: New, forward declarations for __atomic_add
2644 and __exchange_and_add.
2645 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
2646 * config/cpu/cris/atomic_word.h: Same.
2647 * config/cpu/sparc/atomic_word.h: Same.
2648 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
2649 Qualifiy with __gnu_cxx.
2650 (_Callback_list::_M_add_reference): Same.
2651 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
2652 (locale::facet::_M_remove_reference): Same.
2653 (locale::_Impl::_M_add_reference): Add.
2654 (locale::_Impl::_M_remove_reference): Same.
2655 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
2656 (basic_string::_Rep::_M_dispose): Same.
2657 * src/ios.cc (ios_base::xalloc): Same.
2658 * src/ios_init.cc (ios_base::Init::Init): Same.
2659 (ios_base::Init::~Init): Same.
2660 * src/locale.cc (locale::id::_M_id): Same.
2661 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
2662 static, and inline keywords.
2663 * config/cpu/alpha/atomicity.h: Same.
2664 * config/cpu/cris/atomicity.h: Same.
2665 * config/cpu/generic/atomicity.h: Same.
2666 * config/cpu/hppa/atomicity.h: Same.
2667 * config/cpu/i386/atomicity.h: Same.
2668 * config/cpu/ia64/atomicity.h: Same.
2669 * config/cpu/m68k/atomicity.h: Same.
2670 * config/cpu/mips/atomicity.h: Same.
2671 * config/cpu/powerpc/atomicity.h: Same.
2672 * config/cpu/s390/atomicity.h: Same.
2673 * config/cpu/sparc/atomicity.h: Same.
2675 * src/Makefile.am (host_sources): Add atomicity.cc.
2676 (atomicity.cc): New rule.
2677 * src/Makefile.in: Regenerate.
2678 * include/Makefile.am (host_headers): Remove host atomicity.h.
2679 (host_headers): Add atomic_word.h.
2680 (bits_headers): Add bits atomicity.h.
2681 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2682 * include/Makefile.in: Regenerate.
2683 * configure.host (atomic_word_dir): Add.
2684 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
2685 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2686 * configure: Regenerate.
2687 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
2689 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
2690 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2692 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
2694 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
2695 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
2696 Fix markup, more <link> tags.
2698 2004-02-25 Carlo Wood <carlo@alinoe.com>
2701 namespace __gnu_cxx::demangler
2702 (session<Allocator>::qualifier_list_Allocator): Add
2703 (session<Allocator>::M_qualifier_list_alloc): Add
2704 (session<Allocator>::decode_type_with_postfix):
2705 Use M_qualifier_list_alloc instead of calling operator new/delete.
2707 2004-02-24 Paolo Carlini <pcarlini@suse.de>
2710 * include/bits/postypes.h (class streamoff): Add operator++(),
2711 operator++(int), operator--() and operator--(int).
2712 * testsuite/27_io/fpos/14252.cc: New.
2714 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
2716 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
2717 error in handling of hex constants.
2719 2004-02-24 Paolo Carlini <pcarlini@suse.de>
2721 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2722 Prefer basic_string::append to operator+= and a temporary.
2724 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
2726 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
2727 Only use fputs, not write.
2729 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
2731 * include/ext/malloc_allocator.h: Add operators ==, !=.
2732 * include/ext/new_allocator.h: Add operators ==, !=.
2733 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
2734 (__mt_alloc::_S_get_options): New.
2735 (__mt_alloc::_S_set_options): New.
2736 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
2737 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
2738 Move functions out of line, simplify, format.
2739 * src/allocator.cc: Simplify explicit instantiations.
2740 * include/bits/allocator.h: Tweak.
2742 2004-02-22 Paolo Carlini <pcarlini@suse.de>
2744 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2745 Restructure formatting of value component, first dealing with
2746 the non-decimal digits; use reserve.
2748 2004-02-22 Paolo Carlini <pcarlini@suse.de>
2750 * include/bits/locale_facets.h (class money_get): Inherit
2751 from money_base too; tweak declaration of _M_extract, now
2752 parameterized on _Intl too.
2753 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2754 Update definition to use the cache; call reserve on __res to
2755 avoid multiple reallocations; fix parsing of sign component
2756 according to 22.2.6.1.2, p3.
2757 (money_get<>::do_get(long double&),
2758 money_get<>::do_get(string_type&)): Update calls of _M_extract.
2759 * src/locale-inst.cc: Add instantiations of
2760 money_get::_M_extract<false> and money_get::_M_extract<true>.
2761 * testsuite/22_locale/money_get/get/char/14.cc: New.
2762 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
2764 2004-02-21 Mark Mitchell <mark@codesourcery.com>
2766 * libsupc++/vterminate.cc
2767 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
2769 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
2771 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2772 not set RLIMIT_AS on HP-UX.
2774 2004-02-21 Mark Mitchell <mark@codesourcery.com>
2776 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2777 not set RLIMIT_AS on HP-UX.
2779 2004-02-21 Paolo Carlini <pcarlini@suse.de>
2781 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
2782 _S_zero, _S_end } enum, _S_atoms.
2783 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
2784 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
2785 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
2786 (__moneypunct_cache<>::~__moneypunct_cache): Update.
2787 (__moneypunct_cache<>::_M_cache): Fill the cache.
2788 (class moneypunct): Tweak __cache_type typedef.
2789 (class money_put): Inherit from money_base too; tweak declaration
2790 of _M_insert, now parameterized on _Intl.
2791 * include/bits/locale_facets.tcc
2792 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
2793 (money_put<>::_M_insert): Update definition to use the cache;
2794 call reserve on __res to avoid multiple reallocations.
2795 (money_put<>::do_put(long double),
2796 money_put<>::do_put(const string_type&): Update calls of _M_insert.
2797 * config/locale/generic/monetary_members.cc
2798 (moneypunct<char, true>::_M_initialize_moneypunct,
2799 moneypunct<char, false>::_M_initialize_moneypunct,
2800 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
2801 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
2802 * config/locale/gnu/monetary_members.cc: Likewise.
2803 * config/locale/gnu/monetary_members.cc
2804 (moneypunct<wchar_t, true>::~moneypunct(),
2805 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
2806 * src/globals_locale.cc: Tweak fake_money_cache_c.
2807 * src/locale-inst.cc: Add instantiations for
2808 money_put::_M_insert<false> and money_put::_M_insert<true> and
2809 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
2810 * src/locale_facets.cc: Define money_base::_S_atoms.
2811 * src/locale_init.cc: Update placement new of
2812 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
2813 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
2815 * config/locale/generic/numeric_members.cc: Clean up.
2816 * config/locale/gnu/numeric_members.cc: Likewise.
2817 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
2818 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
2819 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
2820 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
2821 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
2822 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
2824 2004-02-20 Mark Mitchell <mark@codesourcery.com>
2826 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
2827 FIFO for writing with ios_base::in|ios_base::out.
2828 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
2829 * testsuite/27_io/objects/char/7.cc: Likewise.
2830 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
2833 2004-02-19 David Edelsohn <edelsohn@gnu.org>
2835 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
2836 from iso-8859-1 to ISO8859-1.
2837 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
2838 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
2839 * 22_locale/collate/hash/wchar_t/2.cc: Same.
2840 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
2841 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
2842 * 22_locale/collate/transform/wchar_t/2.cc: Same.
2843 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
2844 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
2846 2004-02-18 Paolo Carlini <pcarlini@suse.de>
2848 * include/bits/locale_facets.h (money_get<>::_M_extract):
2849 New, helper for do_get.
2850 (money_put<>::_M_insert): Likewise, for do_put.
2851 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2852 money_put<>::_M_insert): Define.
2853 (money_get<>::do_get(long double&), money_get<>::do_get(
2854 string_type&), money_put::do_put(long double),
2855 money_put::do_put(const string_type&)): Use the helpers.
2857 2004-02-18 Paolo Carlini <pcarlini@suse.de>
2859 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2860 Rewrite, avoiding recursion.
2861 (__gnu_internal::xwrite): Minor tweaks.
2863 2004-02-17 Stefan Olsson <stefan@xapa.se>
2865 * include/ext/mt_allocator.h: Removed the last
2866 pointer. Deallocated blocks are now added to the front of
2867 freelists as proposed by Felix Yen. This gives roughly 10%
2868 performance boost and saves some memory.
2869 * docs/html/ext/mt_allocator.html: Change due to that deallocated
2870 blocks now are added to the front of freelists. The reason to this
2871 approach is also explained.
2873 2004-02-17 Paolo Carlini <pcarlini@suse.de>
2875 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2876 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
2877 grouping fidelity conditional.
2879 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2881 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
2882 Qualify exception with std::.
2883 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
2884 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2885 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2886 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2887 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2889 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2891 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
2892 for now that the catch block is not reached.
2893 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
2895 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2897 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2898 Fix parsing of the remaining sign characters.
2899 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
2900 the input is scanned 'til eof.
2901 * 22_locale/money_get/get/char/4.cc: Likewise.
2902 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
2903 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
2904 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
2905 not do_pos_format: the former is the only one that matters during
2907 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
2909 * 22_locale/money_get/get/char/6.cc: Minor tweak.
2910 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
2912 2004-02-15 David Asher <david.asher@cavium.com>
2915 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
2916 access __olds beyond __oldlen.
2918 2004-02-14 Paolo Carlini <pcarlini@suse.de>
2920 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
2921 sure the exception is actually thrown.
2922 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2923 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2924 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2926 2004-02-14 Paolo Carlini <pcarlini@suse.de>
2929 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
2930 In case of conversion errors, throw ios_failure; simplify.
2931 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
2932 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2933 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
2934 previously we didn't throw in case of conversion errors, instead
2935 just returned eof().
2936 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2937 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2938 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2940 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
2941 Trivial simplification of a conditional.
2943 2004-02-12 Paolo Carlini <pcarlini@suse.de>
2945 PR libstdc++/13731 (final part: writev)
2946 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2947 New, a wrapper around writev() handling partial writes.
2948 (__basic_file<char>::xwrite): Move to __gnu_internal and make
2950 (__basic_file<char>::xsputn): Update call.
2951 (__basic_file<char>::xsputn_2): Likewise.
2952 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2953 Don't declare, now static.
2955 2004-02-11 Stefan Olsson <stefan@xapa.se>
2957 * docs/html/ext/mt_allocator.html: New.
2959 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
2961 * docs/html/20_util/allocator.html: New file, consolidate
2962 allocator information here. Revamp.
2963 * docs/html/documentation.html: Change links.
2964 * docs/html/20_util/howto.html: Same.
2965 * docs/html/ext/howto.html: Same.
2967 2004-02-11 Paolo Carlini <pcarlini@suse.de>
2969 PR libstdc++/13731 (first part: write)
2970 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2972 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
2973 Define it: a wrapper around write() handling partial write.
2974 (__basic_file<char>::xsputn): Use it.
2975 (__basic_file<char>::xsputn_2): Likewise.
2977 2004-02-11 Paolo Carlini <pcarlini@suse.de>
2978 Petur Runolfsson <peturr02@ru.is>
2981 * include/std/std_istream.h (operator>>(__istream_type& (*)
2982 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
2983 operator>>(ios_base& (*)(ios_base&))): Declare inline.
2984 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
2985 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
2986 operator<<(ios_base& (*) (ios_base&))): Likewise.
2987 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
2989 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
2992 * config/linker-map.gnu: Add typeinfo and typeinfo name for
2993 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
2996 * config/linker-map.gnu: Add typeinfo and typeinfo name for
2997 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
2999 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
3001 * include/ext/pool_allocator.h: Include c++config.h.
3003 2004-02-09 Stefan Olsson <stefan@xapa.se>
3005 * include/ext/mt_allocator.h: thread_id is unused in non threaded
3006 applications and now has a ifdef to remove it completely on
3007 compilers without thread support. Include stdlib.h due to a
3008 compiler warning on getenv().
3010 2004-02-09 Paul Brook <paul@codesourcery.com>
3012 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
3014 2004-02-09 Paolo Carlini <pcarlini@suse.de>
3017 * src/locale_init.cc (locale::global(const locale&)): Use
3018 locale::name() in order to decide whether calling setlocale.
3019 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
3021 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
3022 Avoid computing &= unnecessarily.
3024 2004-02-09 James E Wilson <wilson@specifixinc.com>
3027 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
3028 __builtin_extend_pointer.
3030 2004-02-09 Paolo Carlini <pcarlini@suse.de>
3033 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
3034 Don't leave dangling pointers.
3035 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
3036 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
3037 facet is needed in the final test.
3039 2004-02-09 Bernardo Innocenti <bernie@develer.com>
3041 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
3042 * configure: Regenerate.
3044 2004-02-08 Richard Henderson <rth@redhat.com>
3047 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
3048 uncaughtExceptions during nested catch rethrow.
3049 * testsuite/18_support/14026.cc: New.
3051 2004-02-08 Paolo Carlini <pcarlini@suse.de>
3053 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
3054 When working in place remember to set the state to sharable
3055 (otherwise, _M_mutate does it).
3057 2004-02-08 Bernardo Innocenti <bernie@develer.com>
3059 * include/bits/allocator.h, include/bits/basic_ios.h,
3060 include/bits/basic_ios.tcc, include/bits/basic_string.h,
3061 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
3062 include/bits/char_traits.h, include/bits/codecvt.h,
3063 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
3064 include/bits/demangle.h, include/bits/deque.tcc,
3065 include/bits/fstream.tcc, include/bits/functexcept.h,
3066 include/bits/gslice.h, include/bits/gslice_array.h,
3067 include/bits/indirect_array.h, include/bits/ios_base.h,
3068 include/bits/istream.tcc, include/bits/list.tcc,
3069 include/bits/locale_classes.h, include/bits/locale_facets.h,
3070 include/bits/locale_facets.tcc, include/bits/localefwd.h,
3071 include/bits/mask_array.h, include/bits/ostream.tcc,
3072 include/bits/postypes.h, include/bits/slice_array.h,
3073 include/bits/sstream.tcc, include/bits/stl_algo.h,
3074 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
3075 include/bits/stl_construct.h, include/bits/stl_deque.h,
3076 include/bits/stl_function.h, include/bits/stl_heap.h,
3077 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
3078 include/bits/stl_list.h, include/bits/stl_map.h,
3079 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
3080 include/bits/stl_numeric.h, include/bits/stl_pair.h,
3081 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
3082 include/bits/stl_relops.h, include/bits/stl_set.h,
3083 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
3084 include/bits/stl_threads.h, include/bits/stl_tree.h,
3085 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
3086 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
3087 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
3088 include/bits/type_traits.h, include/bits/valarray_after.h,
3089 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
3090 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
3091 trailing whitespace.
3093 2004-02-06 Paolo Carlini <pcarlini@suse.de>
3095 * include/bits/basic_string.h: Fix comment.
3097 2004-02-06 Paolo Carlini <pcarlini@suse.de>
3099 * include/bits/stl_construct.h: Wrap overlong lines, reformat
3100 according to the coding standards.
3101 * include/bits/stl_pair.h: Likewise.
3102 * include/bits/stl_raw_storage_iter.h: Likewise.
3103 * include/bits/stl_stack.h: Likewise.
3104 * include/bits/stl_uninitialized.h: Likewise.
3105 * include/bits/stream_iterator.h: Likewise.
3106 * include/bits/streambuf_iterator.h: Likewise.
3107 * include/bits/type_traits.h: Likewise.
3109 2004-02-06 Paolo Carlini <pcarlini@suse.de>
3111 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
3114 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
3116 * scripts/check_performance: Support PCH.
3118 * scripts/check_performance (CXX): Add -DNOTHREAD.
3119 * testsuite/performance/20_util/allocator/insert.cc: Integrate
3120 threaded tests from insert_insert.cc. Tweak iterations,
3121 remove special cases.
3122 * testsuite/performance/20_util/allocator/insert_insert.cc:
3123 Make all tests single-threaded. Tweak iterations.
3124 * testsuite/performance/20_util/allocator/map_thread.cc:
3126 * testsuite/performance/20_util/allocator/producer_consumer.cc:
3129 2004-02-05 Geoffrey Keating <geoffk@apple.com>
3133 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
3134 'gcc-lib'. Add comment about poorly-named variables.
3135 * aclocal.m4: Regenerate.
3136 * configure: Regenerate.
3138 2004-02-05 Paolo Carlini <pcarlini@suse.de>
3140 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
3141 Thousands-sep are always optional; thousands-sep are not allowed
3142 after the decimal_point.
3143 * testsuite/22_locale/money_get/get/char/12.cc: New.
3144 * testsuite/22_locale/money_get/get/char/13.cc: New.
3145 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
3146 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
3148 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
3149 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3150 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3151 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3152 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3153 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3154 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3155 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3157 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
3159 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
3161 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
3163 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
3165 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
3166 it to decide whether FIONREAD should take an off_t or int argument.
3168 2004-02-05 Paolo Carlini <pcarlini@suse.de>
3170 * include/bits/stl_function.h: Minor formatting changes.
3172 2004-02-04 Zack Weinberg <zack@codesourcery.com>
3174 Revert previous change to config/abi/*/baseline_symbols.txt.
3176 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
3177 Zack Weinberg <zack@codesourcery.com>
3179 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
3181 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
3182 (__basic_file<char>::_M_open_mode): Delete.
3183 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
3185 * testsuite/27_io/basic_filebuf/close/char/9964.cc
3186 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
3187 Correct flags to filebuf::open calls.
3189 * config/abi/alpha-freebsd5/baseline_symbols.txt
3190 * config/abi/alpha-linux-gnu/baseline_symbols.txt
3191 * config/abi/hppa-linux-gnu/baseline_symbols.txt
3192 * config/abi/i386-freebsd4/baseline_symbols.txt
3193 * config/abi/i386-freebsd5/baseline_symbols.txt
3194 * config/abi/i486-linux-gnu/baseline_symbols.txt
3195 * config/abi/ia64-linux-gnu/baseline_symbols.txt
3196 * config/abi/mips-linux-gnu/baseline_symbols.txt
3197 * config/abi/sparc-freebsd5/baseline_symbols.txt
3198 * config/abi/sparc-linux-gnu/baseline_symbols.txt
3199 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
3200 Remove entry for __basic_file<char>::_M_open_mode.
3202 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
3204 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
3206 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
3208 * testsuite/performance/20_util/producer_consumer.cc: New.
3209 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
3211 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
3213 * testsuite/performance/20_util/allocator.cc: Move to..
3214 * testsuite/performance/20_util/allocator/insert.cc: ...here.
3215 * testsuite/performance/20_util/allocator_thread.cc: Move to...
3216 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
3217 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
3218 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
3220 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
3222 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
3223 * docs/html/faq/index.txt: Regenerate.
3225 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
3227 * include/ext/debug_allocator.h: _M_extra now stands for the
3228 number of extra objects instead of the number of extra bytes.
3229 (debug_allocator::allocate): Adjust.
3230 (debug_allocator::deallocate): Adjust.
3232 * include/ext/pool_allocator.h: Fix typo.
3234 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
3235 Benjamin Kosnik <bkoz@redhat.com>
3237 * testsuite/performance/20_util/allocator.cc: Add map,
3239 * testsuite/performance/20_util/allocator_thread.cc: Same.
3241 2004-02-03 Paolo Carlini <pcarlini@suse.de>
3243 * include/bits/basic_string.h (insert(iterator)): Remove,
3244 non-standard and already scheduled for removal.
3246 2004-02-03 Paolo Carlini <pcarlini@suse.de>
3248 * include/bits/stl_iterator_base_funcs.h: Minor formatting
3249 and indentation tweaks.
3250 * include/bits/stl_iterator_base_types.h: Likewise.
3251 * include/bits/stl_list.h: Likewise.
3252 * include/bits/stl_map.h: Likewise.
3253 * include/bits/stl_tempbuf.h: Likewise.
3255 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
3257 * include/bits/gslice.h, include/bits/gslice_array.h,
3258 include/bits/indirect_array.h, include/bits/mask_array.h,
3259 include/bits/slice_array.h, include/bits/stl_numeric.h,
3260 include/std/std_valarray.h: Update copyright years.
3262 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
3264 * include/bits/gslice.h (gslice): Document.
3265 * include/bits/gslice_array.h (gslice_array): Document.
3266 * include/bits/indirect_array (indirect_array): Document.
3267 * include/bits/mask_array (mask_array): Document.
3268 * include/bits/slice_array.h (slice,slice_array): Document.
3269 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
3270 adjacent_difference): Document
3271 * include/std/std_valarray.h (valarray): Document.
3273 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
3275 * docs/html/19_diagnostics/howto.html: Move verbose terminate
3277 * docs/html/18_support/howto.html: Here.
3278 * docs/html/documentation.html: Add reference here.
3280 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3282 * config/locale/gnu/c++locale_internal.h: Remove prototypes
3283 of no longer used GLIBC thread locale functions.
3285 2004-02-02 Eric Christopher <echristo@redhat.com>
3286 Zack Weinberg <zack@codesourcery.com>
3288 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
3290 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
3291 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
3292 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
3293 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
3294 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
3295 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
3296 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
3297 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3300 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3302 * include/bits/stl_function.h: Additional minor tweaks.
3303 * include/bits/stl_multiset.h: Likewise.
3305 * include/bits/stl_queue.h: Minor tweaks.
3307 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3309 PR libstdc++/13976 (continued)
3310 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
3311 Make the second parameter unnamed, to void unused parameter
3313 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
3315 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3318 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
3319 Make the second parameter unnamed, to void unused parameter
3321 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
3322 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
3324 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3326 * include/bits/stl_algo.h: Additional minor tweaks.
3327 * include/bits/stl_map.h: Likewise.
3328 * include/bits/stl_multimap.h: Likewise.
3329 * include/bits/stl_multiset.h: Likewise.
3330 * include/bits/stl_set.h: Likewise.
3331 * include/bits/stl_tree.h: Likewise.
3333 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3335 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
3338 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3340 * include/bits/stl_function.h: Additional minor tweaks.
3342 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3344 * include/bits/deque.tcc: Wrap overlong lines, constify
3345 a few variables, reformat according to the coding standards.
3346 * include/bits/list.tcc: Likewise.
3347 * include/bits/stl_deque.h: Likewise.
3348 * include/bits/stl_function.h: Likewise.
3349 * include/bits/stl_iterator.h: Likewise.
3350 * include/bits/stl_iterator_base_funcs.h: Likewise.
3351 * include/bits/stl_iterator_base_types.h: Likewise.
3352 * include/bits/stl_list.h: Likewise.
3353 * include/bits/stl_map.h: Likewise.
3354 * include/bits/stl_multimap.h: Likewise.
3355 * include/bits/stl_multiset.h: Likewise.
3356 * include/bits/stl_relops.h: Likewise.
3357 * include/bits/stl_set.h: Likewise.
3359 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3361 * include/bits/stl_bvector.h: Wrap overlong lines, constify
3362 a few variables, reformat according to the coding standards.
3363 * include/bits/stl_tree.h: Likewise.
3365 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3367 * include/bits/stl_algo.h: Minor additional reformat, add
3369 * include/bits/stl_algobase.h: Add copyright year.
3371 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3373 * include/bits/stl_algo.h: Wrap overlong lines, constify
3374 a few variables, reformat according to the coding standards.
3375 * include/bits/stl_algobase.h: Likewise.
3376 * include/bits/stl_heap.h: Likewise.
3378 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3380 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
3382 * include/bits/basic_string.h: Fix two comments.
3384 2004-01-31 Per Bothner <per@bothner.com>
3386 * include/ext/mt_allocator.h
3387 (__mt_alloc::_S_thread_freelist_mutex): Guard with
3388 __GTHREAD_MUTEX_INIT.
3390 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3392 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
3394 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3396 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
3397 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
3398 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
3400 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
3402 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
3403 Don't use clear, but instead assign. Use insert.
3405 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
3407 * src/demangle.cc: Add instantiations.
3408 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
3409 * src/Makefile.in: Regenerate.
3411 2004-01-30 David Edelsohn <edelsohn@gnu.org>
3413 * src/allocator.cc: Protect _S_get_thread_id() and
3414 _S_thread_key_destr() with #ifdef __GTHREADS.
3416 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3418 Reshuffle performance testsuite.
3419 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
3420 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
3421 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
3422 fstream_seek_write.cc, ifstream_extract_float.cc,
3423 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
3424 list_create_fill_sort.cc, map_create_fill.cc,
3425 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
3426 ofstream_insert_float.cc, ofstream_insert_int.cc,
3427 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
3428 wchar_t_out.cc: Split into...
3429 * testsuite/performance/20_util/allocator.cc: New.
3430 * testsuite/performance/20_util/allocator_map_thread.cc: New.
3431 * testsuite/performance/20_util/allocator_thread.cc: New.
3432 * testsuite/performance/21_strings/string_append: New.
3433 * testsuite/performance/22_locale/is_wchar_t.cc: New.
3434 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
3435 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
3436 * testsuite/performance/22_locale/wchar_t_in.cc: New.
3437 * testsuite/performance/22_locale/wchar_t_length.cc: New.
3438 * testsuite/performance/22_locale/wchar_t_out.cc: New.
3439 * testsuite/performance/23_containers/container_benchmark.cc: New.
3440 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
3441 * testsuite/performance/23_containers/map_create_fill.cc: New.
3442 * testsuite/performance/26_numerics/complex_norm.cc: New.
3443 * testsuite/performance/27_io/cout_insert_int.cc: New.
3444 * testsuite/performance/27_io/filebuf_copy.cc: New.
3445 * testsuite/performance/27_io/filebuf_sputc.cc: New.
3446 * testsuite/performance/27_io/fstream_seek_write.cc: New.
3447 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
3448 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
3449 * testsuite/performance/27_io/ifstream_getline.cc: New.
3450 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
3451 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
3453 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3455 * include/bits/basic_string.tcc (_Rep::_S_create):
3456 Never allocate a string bigger than max_size(); always keep
3457 __capacity and __size in sync to avoid memory leaks at
3460 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3462 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3463 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
3464 the double loop, streamline.
3466 * include/bits/basic_string.tcc: Very minor tweaks.
3468 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
3470 * scripts/check_performance: Only compile with $THREAD_FLAG
3471 when test is marked to require it. Allow multiple
3472 compilations/executions of marked tests.
3473 * testsuite/testsuite_performance.h (report_performance):
3474 Report dynamic thread support status.
3475 (report_header): Likewise.
3476 * testsuite/performance/allocator.cc: Stabilize iteration
3477 count. Support more allocators. Mark each allocator test to
3478 run and report independently.
3479 * testsuite/performance/allocator_map_thread.cc: Likewise.
3480 * testsuite/performance/allocator_thread.cc: Likewise.
3482 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
3484 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
3485 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
3486 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
3487 std::get_temporary_buffer() instead of duplicating its code.
3488 Update to C++STYLE conventions.
3489 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
3490 new() instead of std::malloc().
3491 (return_temporary_buffer): Use ::operator delete() instead of
3494 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
3496 * include/bits/allocator.h: Temporary switch to new_allocator as
3497 the default to unjam bootstraps.
3499 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
3501 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
3502 * include/Makefile.in: Regenerate.
3503 * include/bits/allocator_traits.h: Remove.
3504 * include/bits/allocator.h: Remove allocator_traits.h include, and
3506 (allocator): Empty base class, inherit from the underlying allocator.
3507 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
3508 * src/allocator.cc: ...here. New. For the underlying allocators.
3509 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
3510 * config/linker-map.gnu: Remove __pool_alloc bits.
3511 * src/Makefile.am (sources): Add allocator.cc.
3512 * src/Makefile.in: Regenerate.
3513 * testsuite/20_util/allocator/1.cc: Split second test into...
3514 * testsuite/20_util/allocator/8230.cc: ...this.
3515 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
3516 typedef to use std::allocatore. Format.
3517 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
3519 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
3520 __throw_bad_alloc calls. Don't include <memory>.
3521 * include/ext/malloc_allocator.h: Remove <memory> include.
3522 * include/ext/new_allocator.h (new_allocator): Same.
3523 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
3524 declaration. Switch __alloc to _Alloc.
3525 * include/ext/hashtable.h: Remove __alloc.
3526 * include/backward/alloc.h: Only inject allocator, not
3527 implementation details.
3529 * include/ext/mt_allocator.h: Replace free with delete.
3531 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
3533 * src/globals_io.cc: Change to __gnu_internal namespace.
3534 * src/globals_locale.cc: Same.
3535 * src/locale_init.cc: Same.
3536 * src/ios_init.cc: Same.
3538 2004-01-28 Stefan Olsson <stefan@snon.net>
3540 * include/ext/mt_allocator.h: Replaced all malloc() calls with
3541 operator new(). Added support for the env variable
3542 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
3543 one in allocate() as well). Fix typos.
3545 2004-01-28 Paolo Carlini <pcarlini@suse.de>
3547 * include/bits/basic_string.h (_S_create(size_t,
3548 const _Alloc&): Change signature to take two size_type
3550 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3551 _InIterator, const _Alloc&, input_iterator_tag)): Update
3553 (_S_construct(_InIterator, _InIterator, const _Alloc&,
3554 forward_iterator_tag)): Likewise.
3555 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
3556 (_M_mutate(size_type, size_type, size_type)): Don't
3557 implement the exponential growth policy, demand it to
3558 _S_create, update call and simplify.
3559 (_M_clone(const _Alloc&, size_type)): Likewise.
3560 (_S_create(size_type, size_type, const _Alloc&)): Implement
3561 the growth policy, simplify otherwise.
3563 * include/bits/basic_string.h (_Rep::operator[]): Tweak
3564 signature to take a size_type, consistently with the other
3567 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
3569 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
3570 delete declarations, add include and test variable.
3572 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
3574 * include/bits/codecvt.h, include/bits/locale_facets.h,
3575 include/bits/postypes.h, include/bits/stl_bvector.h,
3576 include/bits/stl_multiset.h, include/bits/stl_set.h,
3577 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
3578 include/std/std_complex.h: Document.
3580 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
3583 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
3584 iword/pword selector.
3585 (ios_base::iword, ios_base::pword): Use it.
3586 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
3587 iword or pword member on alloc failure.
3588 * testsuite/27_io/ios_base/storage/11584.cc: New test.
3590 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
3591 PJ Darcy <darcypj@us.ibm.com>
3593 * configure.host: Add support for *-tpf.
3594 * crossconfig.m4: Likewise.
3595 * configure: Regenerate.
3596 * config/os/tpf: New directory.
3597 * config/os/tpf/os_defines.h: New file.
3598 * config/os/tpf/ctype_base.h: Likewise.
3599 * config/os/tpf/ctype_inline.h: Likewise.
3600 * config/os/tpf/ctype_noninline.h: Likewise.
3602 2004-01-27 Paolo Carlini <pcarlini@suse.de>
3605 * include/bits/sstream.tcc: Guard use of extern template.
3607 2004-01-27 Paolo Carlini <pcarlini@suse.de>
3609 * include/bits/basic_string.tcc
3610 (basic_string(const basic_string&, size_type, size_type),
3611 basic_string(const basic_string&, size_type, size_type,
3612 const _Alloc&)): Avoid unnecessarily constructing iterators.
3614 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3616 * config/locale/generic/c_locale.cc: Fix throw messages
3617 to use the __N marker.
3618 * config/locale/gnu/c_locale.cc: Likewise.
3619 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
3621 * docs/html/17_intro/C++STYLE: Likewise.
3622 * include/bits/basic_ios.tcc: Likewise.
3623 * include/bits/fstream.tcc: Likewise.
3624 * include/bits/vector.tcc: Likewise.
3625 * include/ext/ropeimpl.h: Likewise.
3626 * include/std/std_bitset.h: Likewise.
3627 * src/ios.cc: Likewise.
3628 * src/locale.cc: Likewise.
3629 * src/localename.cc: Likewise.
3631 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3633 * include/bits/basic_string.h (_M_replace_aux): Use the
3634 __N marker in throw message.
3635 * include/bits/basic_string.tcc (assign(const _CharT*,
3636 size_type), insert(size_type, const _CharT*, size_type),
3637 replace(size_type, size_type, const _CharT*, size_type),
3638 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
3641 * include/bits/basic_string.h, include/bits/basic_string.tcc:
3642 Fold overlong lines, minor formatting changes.
3644 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3646 * include/bits/basic_string.h (replace(iterator, iterator,
3647 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
3648 (replace(iterator, iterator, const _CharT*)): Ditto.
3649 (replace(iterator, iterator, const _CharT*, size_type)):
3650 Add missing _GLIBCXX_DEBUG_PEDASSERT.
3652 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3654 * include/bits/basic_string.tcc (replace(size_type,
3655 size_type, const _CharT*, size_type)): Implement optimized
3656 in-place algorithm for non-overlapping ranges.
3657 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
3658 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
3660 * include/bits/basic_string.tcc (insert(size_type,
3661 const _CharT*, size_type)): Tweak slightly.
3663 2004-01-26 Andreas Schwab <schwab@suse.de>
3665 * config/locale/gnu/monetary_members.cc: Restore locale before
3666 rethrowing exception.
3668 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3670 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
3672 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
3675 * include/bits/basic_string.tcc: Very minor tweaks.
3677 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3679 * testsuite/performance/string_append.cc: Increase number
3682 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3684 * include/bits/basic_string.h (erase(size_type, size_type),
3685 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
3686 instead, thus avoiding redundant check for length_error.
3688 * include/bits/basic_string.h: Tweak some comments.
3690 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3692 * include/bits/basic_string.tcc (operator+(const _CharT*,
3693 const basic_string&)): No need to go through the append
3694 taking two iterators.
3696 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3698 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
3699 Revert last change to use std::min: machine language is worse.
3700 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
3701 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3702 (find_last_not_of(_CharT, size_type)): Ditto.
3704 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
3705 size_type)): Discard the value returned by _M_check.
3706 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
3707 (append(const basic_string&, size_type, size_type)): Ditto.
3708 (copy(_CharT*, size_type, size_type)): Ditto.
3709 (compare(size_type, size_type, const basic_string&)): Ditto.
3710 (compare(size_type, size_type, const basic_string&,
3711 size_type, size_type)): Ditto.
3712 (compare(size_type, size_type, const _CharT*)): Ditto.
3713 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3715 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3717 * include/bits/basic_string.h (insert(size_type,
3718 const basic_string&, size_type, size_type)): Define inline here.
3719 * include/bits/basic_string.tcc (insert(size_type,
3720 const basic_string&, size_type, size_type)): Move inline.
3722 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3724 * include/bits/basic_string.h (assign(const basic_string&,
3725 size_type, size_type)): Define inline here.
3726 (replace(size_type, size_type, const basic_string&,
3727 size_type, size_type)): Ditto.
3728 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3729 _InputIterator, __false_type)): Only declare.
3730 (_M_replace(iterator, iterator, _InputIterator,
3731 _InputIterator)): Remove.
3732 * include/bits/basic_string.tcc (assign(const basic_string&,
3733 size_type, size_type)): Move inline.
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)): Define, now does also what
3738 _M_replace did before.
3739 * src/string-inst.cc (_M_replace): Don't instantiate.
3741 * include/bits/basic_string.tcc (find(const _CharT*,
3742 size_type, size_type)): Tidy.
3743 (rfind(_CharT, size_type)): Ditto.
3744 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
3745 (find_first_not_of(_CharT, size_type)): Ditto.
3746 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3747 (find_last_not_of(_CharT, size_type)): Ditto.
3749 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3752 * include/debug/bitset (operator|=): Fix typo.
3753 * testsuite/23_containers/bitset/operations/13838.cc: New.
3755 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3757 * include/bits/basic_string.tcc (insert(size_type,
3758 const _CharT*, size_type __n)): Fix length_error check.
3759 (replace(size_type, size_type, const _CharT*, size_type):
3760 Ditto; call _M_replace_safe.
3761 (_M_replace_aux(size_type, size_type, size_type, _CharT):
3762 Fix length_error check.
3763 (_M_replace(iterator, iterator, _InputIterator,
3764 _InputIterator)): Ditto, tweak.
3765 (_M_replace_safe(size_type, size_type, const _CharT*,
3766 size_type)): Remove length_error check.
3768 * include/bits/basic_string.tcc (append(const basic_string&),
3769 append(const basic_string&, size_type, size_type)): Tweak
3772 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
3773 size_type)): If __n == 0 don't call traits::copy.
3775 2004-01-23 Stefan Olsson <stefan@snon.net>
3777 * include/ext/mt_allocator.h: Reduce lock contention.
3779 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3782 * include/bits/fstream.tcc (underflow): Remove unused
3784 * include/bits/streambuf_iterator.h (equal): Ditto.
3785 * include/bits/locale_facets.h (_M_convert_from_char):
3788 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3791 * config/linker-map.gnu (nan): Delete.
3792 * libmath/mathconf.h (NAN, nan): Delete.
3793 * linkage.m4 (nan): Don't check for it.
3794 * libmath/nan.c: Delete file.
3796 * config.h.in, configure: Regenerate.
3798 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3800 * include/bits/basic_string.h (push_back(_CharT)):
3801 Call _M_replace_aux.
3802 (insert(size_type, const basic_string&)): Trivial tweak.
3803 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
3804 (insert(iterator, _CharT)): Ditto.
3805 (erase(size_type, size_type)): Ditto.
3806 (erase(iterator)): Ditto.
3807 (erase(iterator, iterator)): Ditto.
3808 (replace(size_type, size_type, size_type, _CharT)): Ditto.
3810 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
3813 * testsuite/performance/allocator_map_thread.cc: New test.
3815 2004-01-22 Paolo Carlini <pcarlini@suse.de>
3817 * include/bits/locale_facets.tcc
3818 (money_put::do_put(..., long double)): Use the basic_string
3819 constructor for char arrays, not that for C-strings, to pass
3820 __digits to do_put(..., const string_type&): __ws isn't
3823 2004-01-22 Paolo Carlini <pcarlini@suse.de>
3825 * include/bits/basic_string.h (_M_replace_safe): Change
3826 signatures to take size_types and const _CharT*.
3827 (_M_replace_aux): Likewise, takes size_types instead of
3829 (append(size_type, _CharT)): Update call.
3830 (assign(size_type, _CharT)): Ditto.
3831 (replace(iterator, iterator, size_type, _CharT)): Ditto.
3832 (_M_replace_dispatch(iterator, iterator, _Integer,
3833 _Integer, __true_type)): Ditto.
3834 * include/bits/basic_string.tcc (assign(const _CharT*,
3836 (insert(size_type, const _CharT*, size_type)): Ditto.
3837 (replace(size_type, size_type, const _CharT*,
3839 (_M_replace(iterator, iterator, _InputIterator,
3840 _InputIterator)): Ditto.
3841 (append(const basic_string&)): Ditto.
3842 (append(const basic_string&, size_type, size_type): Ditto.
3843 (append(const _CharT*, size_type): Ditto.
3844 (_M_replace_safe, _M_replace_safe): Change definitions
3845 accordingly, simplify.
3846 * string-inst.cc (_M_replace_safe): Don't instantiate.
3848 2004-01-21 Paolo Carlini <pcarlini@suse.de>
3850 * include/bits/basic_string.tcc (append(const basic_string&)):
3851 Revert previous change.
3852 (append(const basic_string&, size_type, size_type)): Revert
3853 previous change, use _M_check and _M_limit.
3855 2004-01-21 Paolo Carlini <pcarlini@suse.de>
3857 * include/bits/basic_string.h (_M_check): Change to return
3858 a checked __pos and take an additional const char* argument.
3859 (_M_fold): Rename to _M_limit, change to return a size_type,
3860 corresponding to the __off limited to the actual length.
3861 (insert(size_type, size_type, _CharT)): Update call, call
3863 (insert(iterator, _CharT)): Call replace(iterator, iterator,
3864 size_type, _CharT) instead.
3865 (erase(size_type, size_type)): Update calls.
3866 (replace(size_type, size_type, size_type, _CharT)): Ditto.
3867 (substr(size_type, size_type)): Use _M_check.
3868 * include/bits/basic_string.tcc (basic_string(const basic_string&,
3869 size_type, size_type)): Update calls.
3870 (basic_string(const basic_string&, size_type, size_type,
3871 const _Alloc&)): Ditto.
3872 (assign(const basic_string&, size_type, size_type)): Use the
3873 new _M_check and _M_limit.
3874 (insert(size_type, const basic_string&, size_type, size_type):
3876 (insert(size_type, const _CharT*, size_type)): Ditto.
3877 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
3878 (replace(size_type, size_type, const basic_string&,
3879 size_type, size_type)): Ditto.
3880 (append(const basic_string&)): Ditto.
3881 (append(const basic_string&, size_type, size_type)): Ditto.
3882 (copy(_CharT*, size_type, size_type)): Ditto.
3883 (compare(size_type, size_type, const basic_string&)): Ditto.
3884 (compare(size_type, size_type, const basic_string&,size_type,
3886 (compare(size_type, size_type, const _CharT*)): Ditto.
3887 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3889 2004-01-19 Stefan Olsson <stefan@snon.net>
3891 * include/ext/mt_allocator.h: If a thread, when it dies, still has
3892 memory on it's freelist this memory is not returned to global
3893 list. Simplification of deallocate so that memory is always
3894 returned to the calling thread id's freelist instead of to
3895 global. Fix typos. Add volatile where appropriate.
3897 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
3899 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
3900 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
3901 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
3903 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3905 * src/debug.cc: Make sure all the names are prefixed with
3906 double (or single) underscore.
3908 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3910 * src/debug.cc: Trivial formatting change.
3912 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3914 * include/bits/basic_string.tcc (_S_construct(size_type,
3915 _CharT, const _Alloc&)): Remove redundant try/catch.
3916 (_M_mutate(size_type, size_type, size_type)): Ditto.
3917 (_M_clone(const _Alloc&, size_type)): Ditto.
3919 2004-01-18 Paolo Carlini <pcarlini@suse.de>
3921 * include/bits/basic_string.h (c_str()): Simplify, due to
3922 21.3.4 the internal representation is always kept null-terminated.
3923 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
3924 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
3925 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
3928 2004-01-18 Paolo Carlini <pcarlini@suse.de>
3930 * include/bits/basic_string.h (append(size_type, _CharT)):
3931 Moved inline, just call _M_replace_aux, no source iterators at
3932 risk of being clobbered.
3933 (assign(size_type, _CharT)): Call directly _M_replace_aux.
3934 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3935 input_iterator_tag)): Remove fifth unused argument.
3936 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3937 _InputIterator, __false_type)): Update call.
3938 * include/bits/basic_string.tcc (replace(size_type, size_type,
3939 const _CharT*, size_type)): Update call.
3940 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
3941 throw string literal.
3942 (_M_replace_safe(iterator, iterator, _ForwardIterator,
3943 _ForwardIterator)): Likewise.
3944 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3945 input_iterator_tag)): Remove fifth unused argument.
3946 (append(size_type __n, _CharT __c)): Move inline.
3947 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
3948 const C*, const C*, input_iterator_tag)): Remove fifth unused
3951 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
3953 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
3954 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
3956 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
3958 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
3961 2004-01-15 Stefan Olsson <stefan@snon.net>
3963 * include/ext/mt_allocator.h: Reuse thread id's as soon as
3964 possible by changing the behaviour of thread_freelist to do
3965 push_front when threads die instead of push_back.
3967 2004-01-14 Paolo Carlini <pcarlini@suse.de>
3969 * include/bits/locale_facets.h (struct __numpunct_cache):
3970 Add member _M_grouping_size, caching the length of _M_grouping.
3971 (__numpunct_cache<>::_M_cache): Assign the latter.
3972 (__verify_grouping): Move declaration...
3973 * include/bits/locale_facets.tcc (__verify_grouping):
3974 ... here, change signature to take a const char* and a size_t
3975 for the grouping; not a template anymore.
3976 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
3977 Likewise change signature and tweak consistently.
3978 (num_get::_M_extract_float, num_get::_M_extract_int,
3979 num_put::_M_insert_int, num_put::_M_insert_float,
3980 money_get::do_get(string_type&), money_get::do_put(string_type)):
3982 * config/locale/generic/numeric_members.cc
3983 (numpunct<>::_M_initialize_numpunct): Assign the new member.
3984 * config/locale/gnu/numeric_members.cc
3985 (numpunct<>::_M_initialize_numpunct): Likewise.
3986 * src/locale-inst.cc (__add_grouping): Tweak signature.
3987 (__verify_grouping): Don't instantiate, not a template anymore.
3989 * include/bits/locale_facets.h: Rename _M_truename_len ->
3990 _M_truename_size, _M_falsename_len -> _M_falsename_size.
3991 * include/bits/locale_facets.tcc: Likewise.
3992 * config/locale/generic/numeric_members.cc: Likewise.
3993 * config/locale/gnu/numeric_members.cc: Likewise.
3995 2004-01-14 Stefan Olsson <stefan@snon.net>
3997 * include/ext/mt_allocator.h: Fixups.
3998 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
3999 * testsuite/performance/allocator_thread.cc: Same.
4001 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
4003 * testsuite/performance/ifstream_extract_float.cc: Add higher
4005 * testsuite/performance/ofstream_insert_float.cc: Same.
4007 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4009 * src/locale-misc-inst.cc (__convert_from_v(long),
4010 __convert_from_v(unsigned long), __convert_from_v(long long),
4011 __convert_from_v(unsigned long long)): Remove, unused.
4013 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
4015 * testsuite/performance/ifstream_extract_float.cc: New.
4016 * testsuite/performance/ofstream_insert_float.cc: Float generation
4019 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
4020 * 20_util/auto_ptr/1.cc: ...this.
4021 * 20_util/auto_ptr/2.cc: Same.
4022 * 20_util/auto_ptr/3.cc: Same.
4023 * 20_util/auto_ptr/3946.cc: Same.
4024 * 20_util/auto_ptr/4.cc: Same.
4025 * 20_util/auto_ptr/5.cc: Same.
4026 * 20_util/auto_ptr/6.cc: Same.
4027 * 20_util/auto_ptr/7.cc: Same.
4028 * 20_util/auto_ptr/assign_neg.cc
4029 * 20_util/pairs.cc: Break into...
4030 * 20_util/pair/1.cc: ...this.
4031 * 20_util/pair/2.cc: Same.
4032 * 20_util/pair/3.cc: Same.
4033 * 20_util/pair/4.cc: Same.
4035 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4037 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
4038 Set correctly just basefield, the only group that matters.
4040 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4042 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
4043 (_Rope_rep_base): Inherit directly from the rope allocator;
4044 use rebinding instead of _Alloc_traits; pick up data member
4045 from _Rope_rep_alloc_base.
4046 (_Rope_alloc_base): Eliminate.
4047 (_Rope_base): Inherit directly from the rope allocator; use
4048 rebinding instead of _Alloc_traits; pick up data member from
4050 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
4051 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
4053 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4056 * include/bits/basic_string.tcc (compare(size_type, size_type,
4057 const _CharT*, size_type)): Implement correctly the resolution
4058 of DR 5: basically, s is a char array, -not- a C string.
4059 * include/bits/basic_string.h: Tweak some comments.
4060 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
4061 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
4063 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
4065 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
4068 2004-01-12 Paolo Carlini <pcarlini@suse.de>
4070 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
4072 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
4075 2004-01-12 Paolo Carlini <pcarlini@suse.de>
4077 * include/bits/locale_facets.h (struct __numpunct_cache):
4078 Add members _M_truename_len and _M_falsename_len, caching
4079 the lengths of _M_truename and _M_falsename.
4080 (__numpunct_cache<>::_M_cache): Assign the latter.
4081 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
4082 num_put::do_put(bool)): Use the new members, thus avoiding
4083 computing string lengths again and again.
4084 * config/locale/generic/numeric_members.cc
4085 (numpunct<>::_M_initialize_numpunct): Assign the new members.
4086 * config/locale/gnu/numeric_members.cc
4087 (numpunct<>::_M_initialize_numpunct): Likewise.
4089 2004-01-12 Mark Mitchell <mark@codesourcery.com>
4091 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
4092 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
4094 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
4095 and remove Cygwin XFAIL.
4096 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
4097 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
4098 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
4099 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
4101 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
4102 * testsuite/27_io/objects/char/7.cc: Likewise.
4103 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
4104 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
4105 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
4107 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
4109 * include/std/std_complex.h (std::complex<>::real): Return a
4110 reference. Add non-const overload.
4111 (std::complex<>::real): Likewise.
4112 (std::real): Likewise.
4113 (std::imag): Likewise.
4114 (std::operator+): Tidy.
4115 (std::operator-): Likewise.
4116 (std::operator*): Likewise.
4117 (std::operator/): Likewise.
4118 (std::operator>>): Likewise.
4120 2004-01-11 Paolo Carlini <pcarlini@suse.de>
4123 * include/bits/fstream.tcc (imbue): Exploit the external
4124 buffer to imbue 'on the fly' a new locale and convert its
4125 remainder with the new codecvt facet.
4126 (underflow): Tweak slightly to deal with this special case.
4127 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
4128 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
4129 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
4130 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
4131 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
4133 2004-01-10 Paolo Carlini <pcarlini@suse.de>
4135 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
4138 2004-01-10 Paolo Carlini <pcarlini@suse.de>
4141 * include/bits/locale_classes.h (class locale): Fix category
4143 * testsuite/22_locale/locale/13630.cc: Add.
4145 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
4147 * include/bits/locale_facets.h: Make a name really dependent. This
4148 will be needed when Core Issue 224 is implemented.
4150 2004-01-09 Paolo Carlini <pcarlini@suse.de>
4152 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
4153 * testsuite/performance/allocator_thread.cc: Likewise.
4155 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
4157 * crossconfig.m4: Add LFS, io bits to linux cross config.
4158 * acconfig.h: Remove obsolete bits, reorder.
4159 * config.h.in: Regenerate.
4163 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
4165 * include/bits/stl_list.h:
4166 * include/bits/list.tc:
4168 Performance enhancements for destructor, push_front(),
4169 push_back(), pop_front(), pop_back(), sort()
4170 Eliminated static_casts where possible.
4171 Moved code out of header files into new src/list.cc
4172 implementation file for library where possible.
4173 Remove inheritance from iterator class and create separate
4174 classes for non-constant and constant iterators.
4175 * include/bits/stl_tree.h (_Rb_tree class):
4177 Only erase contents in destructor.
4178 Eliminate unnecessary initialization in assignment operator.
4179 Optimize for the nominal case by not checking whether
4180 container is empty in clear().
4181 Re-order test in _M_insert() to improve performance.
4182 Move initialization of new node's left & right pointers to
4183 src/tree.cc to where new node's colour is initialized
4184 and to reduce the amount of inline code.
4185 Use _M_leftmost() and _M_end() to improve readability where
4187 Create separate classes for non-constant and constant
4188 iterators to clarify code, avoid extra template parameters and
4189 casting away constness.
4191 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
4193 * src/Makefile.am (sources): Add list.cc, tree.cc.
4194 * src/stl_tree.cc: Move to...
4195 * src/tree.cc: ...here.
4197 * config/linker-map.gnu: Tweaks.
4198 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
4199 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
4201 * bits/stl_vector.h: Column wrap comments.
4203 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
4205 (re-open) PR libstdc++/12658
4206 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
4207 (locale::global): Likewise.
4209 2004-01-07 Paolo Carlini <pcarlini@suse.de>
4211 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
4212 Remove redundant #include.
4213 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
4214 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
4215 re-enable normal testing.
4216 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
4218 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
4219 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
4221 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
4223 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
4225 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
4227 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
4229 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
4231 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
4233 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
4234 More properly, #include <locale>.
4235 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
4236 Remove redundant #include.
4237 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
4238 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
4239 redundant DejaGnu directive.
4240 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
4243 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
4244 Stefan Olsson <stefan@snon.net>
4246 * scripts/check_performance: Use -pthread.
4247 * testsuite/performance/allocator.cc: Tweaks, add list.
4248 * testsuite/performance/allocator_thread.cc: New.
4250 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
4252 * include/bits/locale_facets.h: Document public classes and
4254 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
4257 2004-01-06 Paolo Carlini <pcarlini@suse.de>
4259 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
4260 Remove redundant #includes.
4261 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
4263 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
4265 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
4266 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
4267 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
4268 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
4269 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
4270 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
4271 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
4272 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
4273 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
4274 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
4275 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
4276 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
4277 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
4278 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
4279 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
4281 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
4283 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
4285 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
4287 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
4289 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
4290 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
4291 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
4293 2004-01-04 Paolo Carlini <pcarlini@suse.de>
4295 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
4296 Remove redundant #includes.
4297 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
4299 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
4301 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
4303 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
4305 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
4307 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
4309 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
4311 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
4313 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
4315 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
4317 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
4319 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
4322 2004-01-04 Mark Mitchell <mark@codesourcery.com>
4325 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
4327 * testsuite/27_io/basic_fstream/4.cc: Likewise.
4328 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
4329 * testsuite/27_io/basic_ios/4.cc: Likewise.
4330 * testsuite/27_io/basic_iostream/4.cc: Likewise.
4331 * testsuite/27_io/basic_istream/4.cc: Likewise.
4332 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
4333 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
4334 * testsuite/27_io/basic_ostream/4.cc: Likewise.
4335 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
4336 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
4337 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
4339 2004-01-04 Paolo Carlini <pcarlini@suse.de>
4341 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
4342 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
4343 always use double underscored names.
4344 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
4346 * include/bits/locale_facets.h (struct __numpunct_cache):
4347 Dimension _M_atoms_out and _M_atoms_in one position smaller.
4348 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out