1 2004-12-13 Paolo Carlini <pcarlini@suse.de>
3 * include/tr1/type_traits (extent): Minor tweak (i.e., public).
5 2004-12-12 Paolo Carlini <pcarlini@suse.de>
7 * include/tr1/type_traits: Minor tweak.
8 * testsuite/tr1/4_metaprogramming/type_properties/extent/
11 2004-12-12 Paolo Carlini <pcarlini@suse.de>
13 * include/tr1/type_traits: Implement extent.
14 * testsuite/tr1/4_metaprogramming/type_properties/extent/
16 * testsuite/tr1/4_metaprogramming/type_properties/extent/
17 typedefs.cc: Likewise.
19 2004-12-12 Paolo Carlini <pcarlini@suse.de>
21 * include/tr1/type_traits: Implement is_pointer, remove_pointer,
22 and add_pointer; reformat.
23 (_DEFINE_PRIMARY_SPEC_HELPER, _DEFINE_PRIMARY_SPEC): Generalize
24 and rename to _DEFINE_SPEC_HELPER and _DEFINE_SPEC; update uses.
25 * testsuite/tr1/4_metaprogramming/pointer_modifications/
27 * testsuite/tr1/4_metaprogramming/pointer_modifications/
28 remove_pointer.cc: Likewise.
29 * testsuite/tr1/4_metaprogramming/primary_type_categories/
30 is_pointer/is_pointer.cc: Likewise.
31 * testsuite/tr1/4_metaprogramming/primary_type_categories/
32 is_pointer/typedefs.cc: Likewise.
34 * testsuite/tr1/4_metaprogramming/primary_type_categories/
35 is_reference/is_reference.cc: Slightly tweak consistently.
37 2004-12-11 Paolo Carlini <pcarlini@suse.de>
39 * include/tr1/type_traits: Implement rank.
40 * testsuite/testsuite_tr1.h (test_property): Generalize to any
42 (test_category, test_relationship): Slightly tweak consistently.
43 * testsuite/tr1/4_metaprogramming/type_properties/rank/
45 * testsuite/tr1/4_metaprogramming/type_properties/rank/
46 typedefs.cc: Likewise.
48 * testsuite/tr1/4_metaprogramming/composite_type_traits/
49 is_compound/is_compound.cc: New.
50 * testsuite/tr1/4_metaprogramming/composite_type_traits/
51 is_compound/typedefs.cc: Likewise.
53 * testsuite/tr1/4_metaprogramming/composite_type_traits/
54 is_arithmetic/is_arithmetic.cc: Tweak consistently with the
55 testsuite_tr1.h changes.
56 * testsuite/tr1/4_metaprogramming/composite_type_traits/
57 is_fundamental/is_fundamental.cc: Likewise.
58 * testsuite/tr1/4_metaprogramming/primary_type_categories/
59 is_array/is_array.cc: Likewise.
60 * testsuite/tr1/4_metaprogramming/primary_type_categories/
61 is_floating_point/is_floating_point.cc: Likewise.
62 * testsuite/tr1/4_metaprogramming/primary_type_categories/
63 is_integral/is_integral.cc: Likewise.
64 * testsuite/tr1/4_metaprogramming/primary_type_categories/
65 is_reference/is_reference.cc: Likewise.
66 * testsuite/tr1/4_metaprogramming/primary_type_categories/
67 is_void/is_void.cc: Likewise.
68 * testsuite/tr1/4_metaprogramming/relationships_between_types/
69 is_same/is_same.cc: Likewise.
70 * testsuite/tr1/4_metaprogramming/type_properties/is_const/
71 is_const.cc: Likewise.
72 * testsuite/tr1/4_metaprogramming/type_properties/is_volatile/
73 is_volatile.cc: Likewise.
75 2004-12-10 Paolo Carlini <pcarlini@suse.de>
77 * include/tr1/type_traits: Implement remove_const, remove_volatile,
79 * testsuite/tr1/4_metaprogramming/const_volatile_modifications/
81 * testsuite/tr1/4_metaprogramming/const_volatile_modifications/
82 remove_cv.cc: Likewise.
83 * testsuite/tr1/4_metaprogramming/const_volatile_modifications/
84 remove_volatile.cc: Likewise.
86 * testsuite/tr1/4_metaprogramming/primary_type_categories/
87 is_array/is_array.cc: Slightly tweak consistently, remove typedefs,
90 2004-12-09 Paolo Carlini <pcarlini@suse.de>
92 * include/tr1/type_traits: Implement remove_extent and
94 * testsuite/tr1/4_metaprogramming/array_modifications/
95 remove_all_extents.cc: New.
96 * testsuite/tr1/4_metaprogramming/array_modifications/
97 remove_extent.cc: Likewise.
99 2004-12-08 Paolo Carlini <pcarlini@suse.de>
101 * include/tr1/type_traits: Implement is_same, add_reference and
103 * testsuite/testsuite_tr1.h (test_relationship): New.
104 * testsuite/tr1/4_metaprogramming/reference_modifications/
105 add_reference.cc: New.
106 * testsuite/tr1/4_metaprogramming/reference_modifications/
107 remove_reference.cc: Likewise.
108 * testsuite/tr1/4_metaprogramming/relationships_between_types/
109 is_same/is_same.cc: Likewise.
110 * testsuite/tr1/4_metaprogramming/relationships_between_types/
111 is_same/typedefs.cc: Likewise.
113 * testsuite/tr1/4_metaprogramming/type_properties/is_const/
114 is_const.cc: Minor tweaks.
115 * testsuite/tr1/4_metaprogramming/type_properties/is_volatile/
116 is_volatile.cc: Likewise.
118 2004-12-08 David Edelsohn <edelsohn@gnu.org>
120 * Makefile.am (AM_MAKEFLAGS): Remove duplicate LIBCFLAGS and
122 * Makefile.in: Regenerated.
124 2004-12-07 Paolo Carlini <pcarlini@suse.de>
126 * include/tr1/type_traits: Implement is_const and is_volatile.
127 * testsuite/testsuite_tr1.h (test_property): New.
128 * testsuite/tr1/4_metaprogramming/type_properties/
129 is_const/is_const.c: New.
130 * testsuite/tr1/4_metaprogramming/type_properties/
131 is_const/typedefs.cc: Likewise.
132 * testsuite/tr1/4_metaprogramming/type_properties/
133 is_volatile/is_volatile.cc: Likewise.
134 * testsuite/tr1/4_metaprogramming/type_properties/
135 is_volatile/typedefs.cc: Likewise.
136 * testsuite/tr1/4_metaprogramming/composite_type_traits/
137 is_arithmetic/is_arithmetic.cc: Slightly tweak to use ClassType
138 from testsuite_tr1.h.
139 * testsuite/tr1/4_metaprogramming/composite_type_traits/
140 is_fundamental/is_fundamental.cc: Likewise.
141 * testsuite/tr1/4_metaprogramming/primary_type_categories/
142 is_array/is_array.cc: Likewise.
143 * testsuite/tr1/4_metaprogramming/primary_type_categories/
144 is_floating_point/is_floating_point.cc: Likewise.
145 * testsuite/tr1/4_metaprogramming/primary_type_categories/
146 is_integral/is_integral.cc: Likewise.
147 * testsuite/tr1/4_metaprogramming/primary_type_categories/
148 is_reference/is_reference.cc: Likewise.
149 * testsuite/tr1/4_metaprogramming/primary_type_categories/
150 is_void/is_void.cc: Likewise.
152 2004-12-06 Paolo Carlini <pcarlini@suse.de>
154 * include/tr1/type_traits: Implement is_reference.
155 * testsuite/tr1/4_metaprogramming/primary_type_categories/
156 is_reference/is_reference.cc: New.
157 * testsuite/tr1/4_metaprogramming/primary_type_categories/
158 is_reference/typedefs.cc: Likewise.
160 2004-12-05 Paolo Carlini <pcarlini@suse.de>
163 * testsuite/testsuite_performance.h: Fix mallinfo macros for
166 2004-12-04 Richard Henderson <rth@redhat.com>
168 * testsuite/26_numerics/complex/pow.cc: Use -mieee on alpha.
170 2004-12-04 Richard Henderson <rth@redhat.com>
172 * include/ext/malloc_allocator.h: Include cstdlib.
174 2004-12-04 Paolo Carlini <pcarlini@suse.de>
176 * include/tr1/type_traits: New.
177 * include/Makefile.am: Add.
178 * include/Makefile.in: Regenerate.
179 * testsuite/testsuite_tr1.h: New.
180 * testsuite/tr1/4_metaprogramming/composite_type_traits/
181 is_arithmetic/is_arithmetic.cc: New.
182 * testsuite/tr1/4_metaprogramming/composite_type_traits/
183 is_arithmetic/typedefs.cc: Likewise.
184 * testsuite/tr1/4_metaprogramming/composite_type_traits/
185 is_fundamental/is_fundamental.cc: Likewise.
186 * testsuite/tr1/4_metaprogramming/composite_type_traits/
187 is_fundamental/typedefs.cc: Likewise.
188 * testsuite/tr1/4_metaprogramming/helper_classes/
189 true_false_type.cc: Likewise.
190 * testsuite/tr1/4_metaprogramming/helper_classes/
191 true_false_type_typedefs.cc: Likewise.
192 * testsuite/tr1/4_metaprogramming/helper_classes/
193 typedefs.cc: Likewise.
194 * testsuite/tr1/4_metaprogramming/primary_type_categories/
195 is_array/is_array.cc: Likewise.
196 * testsuite/tr1/4_metaprogramming/primary_type_categories/
197 is_array/typedefs.cc: Likewise.
198 * testsuite/tr1/4_metaprogramming/primary_type_categories/
199 is_floating_point/is_floating_point.cc: Likewise.
200 * testsuite/tr1/4_metaprogramming/primary_type_categories/
201 is_floating_point/typedefs.cc: Likewise.
202 * testsuite/tr1/4_metaprogramming/primary_type_categories/
203 is_integral/is_integral.cc: Likewise.
204 * testsuite/tr1/4_metaprogramming/primary_type_categories/
205 is_integral/typedefs.cc: Likewise.
206 * testsuite/tr1/4_metaprogramming/primary_type_categories/
207 is_void/is_void.cc: Likewise.
208 * testsuite/tr1/4_metaprogramming/primary_type_categories/
209 is_void/typedefs.cc: Likewise.
211 2004-12-02 Paolo Carlini <pcarlini@suse.de>
213 * testsuite/testsuite_io.h (class sync_buf): New, templatized
214 version of sync_streambuf; add typedefs for streambuf/wstreambuf.
215 (class fail_buf): Likewise, for fail_streambuf.
216 (class fail_num_get): Templatize and add char/wchar_t typedefs.
217 (class fail_num_put): Likewise.
218 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
219 exceptions_badbit_throw.cc: Use the latter.
220 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
221 exceptions_failbit_throw.cc: Likewise.
222 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/
223 exceptions_badbit_throw.cc: Likewise.
224 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/
225 exceptions_failbit_throw.cc: Likewise.
227 2004-12-01 Paolo Carlini <pcarlini@suse.de>
229 * testsuite/27_io/basic_istream/get/wchar_t/1.cc: New.
230 * testsuite/27_io/basic_istream/get/wchar_t/2.cc: Likewise.
231 * testsuite/27_io/basic_istream/get/wchar_t/3.cc: Likewise.
232 * testsuite/27_io/basic_istream/ignore/wchar_t/1.cc: Likewise.
233 * testsuite/27_io/basic_istream/ignore/wchar_t/2.cc: Likewise.
234 * testsuite/27_io/basic_istream/ignore/wchar_t/3.cc: Likewise.
235 * testsuite/27_io/basic_istream/ignore/wchar_t/6360.cc: Likewise.
236 * testsuite/27_io/basic_istream/ignore/wchar_t/7220.cc: Likewise.
238 2004-11-29 Paolo Carlini <pcarlini@suse.de>
240 * testsuite/21_strings/basic_string/capacity/char/18654.cc: Use
242 * testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc: Same.
244 2004-11-29 Paolo Carlini <pcarlini@suse.de>
247 * include/bits/basic_string.tcc (_Rep::_S_create): When shrinking,
248 do not round to pagesize.
249 * testsuite/21_strings/basic_string/capacity/char/18654.cc: New.
250 * testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc: New.
252 2004-11-27 Paolo Carlini <pcarlini@suse.de>
255 * include/tr1/utility (get(pair), get(const pair)): Change
256 occurrences of _I to _Int.
258 2004-11-27 Paolo Carlini <pcarlini@suse.de>
260 * testsuite/27_io/basic_istream/getline/wchar_t/2.cc: Fix typo.
261 * testsuite/27_io/basic_istream/getline/wchar_t/4.cc: Likewise.
263 * testsuite/22_locale/time_put/put/char/17038.cc: Use VERIFY.
264 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: Likewise.
265 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11603.cc: Likewise.
266 * testsuite/27_io/basic_ios/exceptions/char/2.cc: Likewise.
268 2004-11-26 Paolo Carlini <pcarlini@suse.de>
270 DR 243. get and getline when sentry reports failure [WP]
271 * include/bits/istream.tcc (istream<>::get, istream<>::getline):
272 Store a null character only if the array has a non-zero size.
273 * src/istream.cc (istream<char>::getline, istream<wchar_t>::getline):
275 * testsuite/27_io/basic_istream/get/char/3.cc: New.
276 * testsuite/27_io/basic_istream/getline/char/6.cc: New.
277 * testsuite/27_io/basic_istream/getline/wchar_t/6.cc: New.
278 * docs/html/ext/howto.html: Add an entry for DR 243.
280 * testsuite/27_io/basic_istream/getline/wchar_t/1.cc: New.
281 * testsuite/27_io/basic_istream/getline/wchar_t/2.cc: New.
282 * testsuite/27_io/basic_istream/getline/wchar_t/3.cc: New.
283 * testsuite/27_io/basic_istream/getline/wchar_t/4.cc: New.
284 * testsuite/27_io/basic_istream/getline/wchar_t/5.cc: New.
286 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
288 * configure: Regenerate for libtool change.
290 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
292 * Makefile.in, aclocal.m4: Regenerate with automake 1.9.3.
293 * include/Makefile.in: Likewise.
294 * libmath/Makefile.in: Likewise.
295 * libsupc++/Makefile.in: Likewise.
296 * po/Makefile.in: Likewise.
297 * src/Makefile.in: Likewise.
298 * testsuite/Makefile.in: Likewise.
300 2004-11-24 Jonathan Wakely <redi@kayari.org>
302 * docs/html/ext/howto.html: Fix incorrect link.
303 * docs/html/documentation.html: Regenerate.
305 2004-11-24 Nathan Myers <ncm@cantrip.org>
307 * include/bits/streambuf_iterator.h
308 (istreambuf_iterator<>::operator++(), operator++(int)): Don't
309 check unnecessarily the return value of _M_sbuf->sbumpc().
311 2004-11-24 Benjamin Kosnik <bkoz@redhat.com>
313 * include/Makefile.am (tr1_headers): Add utility, functional.
314 * include/Makefile.in: Regenerate.
316 2004-11-24 Chris Jefferson <chris@bubblescope.net>
318 * include/tr1/tuple(operator!=): Change operator
319 definition to match (draft) technical report.
323 (ref): Move to include/tr1/functional.
325 (tuple_size<pair>): Move to include/tr1/utility.
326 (tuple_element<,pair>): Same.
327 * include/tr1/functional: New.
328 * include/tr1/utility: New.
329 * testsuite/tr1/6_container/utility/pair.cc: New.
331 2004-11-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
333 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
334 (do_out, do_unshift, do_in): Remove redundant typedef.
336 2004-11-23 Chris Jefferson <chris@bubblescope.net>
338 * testsuite/testsuite_iterators.h: New.
339 * testsuite/25_algorithms/search_n/iterator.cc: New.
340 * testsuite/performance/25_algorithms/search_n.cc: New.
342 2004-11-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
344 * testsuite/lib/libstdc++.exp: Use new procs in target-libpath.exp.
346 2004-11-23 Benjamin Kosnik <bkoz@redhat.com>
348 * docs/doxygen/doxygroups.cc: Add std::tr1 namespace.
349 * docs/doxygen/run_doxygen: Renames for std::tr1.
350 * docs/doxygen/user.cfg.in: Add cxxabi.h.
351 * include/bits/*.tcc: Add file markup.
352 * include/bits/allocator.h: Add link to allocator.html.
353 * include/bits/atomicity.h: Add file markup.
354 * include/bits/concurrence.h: Same.
355 * include/bits/functexcept.h: Same.
356 * include/ext*: Adjust file markup, remove GCC3 bits.
357 * include/std/*: Adjust file markup, remove bits about renamed files.
358 * libsupc++/cxxabi.h: Add file markup.
359 * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust line numbers.
361 2004-11-22 Benjamin Kosnik <bkoz@redhat.com>
363 * include/bits/locale_facets.h (isspace, isprint, isupper,
364 islower, isalpha, isdigit, ispunct, isxdigit, isalnum, isgraph,
365 toupper, tolower): Add doxygen markup.
366 (codecvt_byname, ctype_byname, numpunct_byname, collate_byname,
367 time_get_byname, time_put_byname, moneypunct_byname,
368 messages_byname): Same.
369 * include/std/std_fstream.h: Remove superfluous markup.
370 * include/std/std_sstream.h: Same.
371 * include/std/std_streambuf.h: Same.
372 * include/ext/enc_filebuf.h: Adjust markup.
373 * include/ext/stdio_filebuf.h: Same.
374 * include/ext/stdio_sync_filebuf.h: Same.
375 * include/bits/codecvt.h: Same.
376 * config/os/gnu-linux/ctype_base.h: Same.
377 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
378 * include/tr1/array: Add markup.
379 * include/tr1/tuple: Same.
381 * docs/doxygen/run_doxygen: Print arguments.
383 * docs/doxygen/user.cfg.in: Tweaks.
385 2004-11-19 Jonathan Wakely <redi@gcc.gnu.org>
387 * include/bits/basic_string.h, include/bits/locale_classes.h,
388 include/bits/valarray_after.h, include/bits/valarray_before.h,
389 include/ext/stdio_sync_filebuf.h, include/std/std_algorithm.h,
390 include/std/std_functional.h, include/std/std_memory.h,
391 include/std/std_numeric.h: Doxygen fixes.
393 2004-11-19 Paolo Carlini <pcarlini@suse.de>
395 * testsuite/22_locale/time_get/get_date/char/1.cc: In the checks
396 use, more correctly (and consistently with other testcases) the
397 return value of the facet (the iterator arguments are by value).
398 * testsuite/22_locale/time_get/get_date/char/12791.cc: Likewise.
399 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Likewise.
400 * testsuite/22_locale/time_get/get_date/wchar_t/12791.cc: Likewise.
401 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Likewise.
402 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
403 * testsuite/22_locale/time_get/get_time/char/1.cc: Likewise.
404 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Likewise.
405 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
406 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
407 * testsuite/22_locale/time_get/get_year/char/1.cc: Likewise.
408 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Likewise.
410 2004-11-19 Jonathan Wakely <redi@gcc.gnu.org>
412 * Makefile.am (doxygen, doxygen-maint, doxygen-man): Remove extra '$'
413 from host_alias variable.
414 * Makefile.in: Regenerate.
416 2004-11-19 Chris Jefferson <chris@bubblescope.net>
418 * include/bits/stl_list.h (list::back, list::back const):
419 Don't decrement temporary.
421 2004-11-19 Paolo Carlini <pcarlini@suse.de>
423 * include/bits/stl_deque.h (deque::front, deque::front const,
424 deque::back, deque::back const): Slightly tweak for stylistic
427 2004-11-18 Paolo Carlini <pcarlini@suse.de>
429 * testsuite/26_numerics/numeric/sum_diff.cc: Use VERIFY.
430 * testsuite/ext/array_allocator/1.cc: Likewise.
431 * testsuite/ext/array_allocator/2.cc: Likewise.
432 * testsuite/ext/array_allocator/3.cc: Likewise.
433 * testsuite/ext/enc_filebuf/char/13598.cc: Likewise.
435 2004-11-18 Paolo Carlini <pcarlini@suse.de>
437 * include/bits/locale_facets.tcc (num_get<>::do_get(void*&)):
438 If the failbit is set, don't set it again.
439 (money_get<>::_M_extract): Minor stylistic tweak: consistently
440 with the other functions, take care of eofbit at the end.
442 2004-11-18 Paolo Carlini <pcarlini@suse.de>
444 DR 434. bitset::to_string() hard to use [Ready]
445 * include/std/std_bitset.h (to_string): Add three overloads, taking
446 fewer template arguments.
447 * docs/html/ext/howto.html: Add an entry for DR 434.
448 * testsuite/23_containers/bitset/to_string/1.cc: New.
450 2004-11-17 Paolo Carlini <pcarlini@suse.de>
452 * include/bits/istream.tcc (getline(basic_istream<>&, basic_string<>&,
453 _CharT)): Remove temporary kludge for libstdc++/15002.
454 * include/std/std_streambuf.h (class basic_streambuf): Declare
455 getline(basic_istream<>&, basic_string<>&, _CharT) as friend.
456 * include/bits/basic_string.h (getline(basic_istream<>&,
457 basic_string<>&, _CharT)): Declare optimized specializations for
458 char and wchar_t, using protected members of basic_streambuf.
459 * src/istream.cc: Define the latter.
461 2004-11-16 Jonathan Wakely <redi@gcc.gnu.org>
463 * docs/html/19_diagnostics/howto.html: Document change from
464 _GLIBCPP_CONCEPT_CHECKS to _GLIBCXX_CONCEPT_CHECKS in 3.4.
466 2004-11-16 Matthias Klose <doko@debian.org>
468 * docs/doxygen/user.cfg.in: Set HAVE_DOT to NO.
470 2004-11-16 Matthias Klose <doko@debian.org>
472 * Makefile.am (doxygen, doxygen-maint, doxygen-man): Use host_alias
473 instead of build_alias.
474 * docs/doxygen/run_doxygen: Likewise.
475 * docs/doxygen/user.cfg.in: Likewise.
476 * Makefile.in: Regenerate.
478 2004-11-15 Paolo Carlini <pcarlini@suse.de>
480 * include/bits/streambuf.tcc (__copy_streambufs): Provide
481 a generic version of the function, not using the protected
482 members of basic_streambuf.
483 * include/std/std_streambuf.h (__copy_streambufs): Declare
484 optimized specializations for char and wchar_t.
485 * src/streambuf.cc: New file, define the latter.
486 * src/Makefile.am: Add.
487 * src/Makefile.in: Regenerate.
489 2004-11-15 Matthias Klose <doko@debian.org>
491 * docs/doxygen/run_doxygen: Add --build_alias option,
492 substitute it in docs/doxygen/user.cfg.in.
493 * docs/doxygen/user.cfg.in: Use build_alias.
494 * Makefile.am: Pass --build_alias to run_doxygen
495 * Makefile.in: Regenerate.
497 2004-11-15 Benjamin Kosnik <bkoz@redhat.com>
499 * testsuite/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.4.
501 2004-11-15 Paolo Carlini <pcarlini@suse.de>
503 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 33.
505 2004-11-14 Paolo Carlini <pcarlini@suse.de>
507 * include/bits/streambuf_iterator.h (istreambuf_iterator::_M_get):
508 Slightly tweak for clarity (also leads to measurably better code).
510 2004-11-12 Andrew Pinski <pinskia@physics.uc.edu>
513 * testsuite/lib/libstdc++.exp: Set LC_ALL and LANG to C.
515 2004-11-09 Paolo Carlini <pcarlini@suse.de>
517 * include/bits/locale_facets.tcc (time_get<>::do_get_weekday,
518 time_get<>::do_get_monthname): Absolutely avoid dereferencing
521 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
524 2004-11-08 Benjamin Kosnik <bkoz@redhat.com>
525 Doug Gregor <dgregor@cs.indiana.edu>
528 * src/debug.cc : Just use one mutex.
530 2004-11-08 Benjamin Kosnik <bkoz@redhat.com>
532 * configure.ac (libtool_VERSION): To 6:4:0.
533 * configure: Regenerate.
535 * config/linker-map.gnu: Slide new symbols into GLIBCXX_3.4.4.
537 * docs/doxygen/user.cfg.in: Add more extension files.
539 2004-11-08 Paolo Carlini <pcarlini@suse.de>
541 * include/bits/streambuf_iterator.h (class istreambuf_iterator):
542 Consistently use _M_c to cache the current char, i.e., not only
543 when operator++(int) is involved; change _M_c to mutable.
544 (_M_get()): Always save the return value of _M_sbuf->sgetc() into
546 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Fix
547 (long standing) typo.
548 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
549 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
550 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
552 2004-11-08 Paolo Carlini <pcarlini@suse.de>
554 * include/bits/istream.tcc (getline(char_type*, streamsize,
555 char_type), ignore(streamsize), ignore(streamsize, int_type)):
556 Restore a generic version of the functions, not using the
557 protected members of basic_streambuf.
558 * include/std/std_istream.h (getline(char_type*, streamsize,
559 char_type), ignore(streamsize), ignore(streamsize, int_type)):
560 Declare optimized specializations for char and wchar_t.
561 * src/istream.cc: New file, define the latter.
562 * src/Makefile.am: Add.
563 * src/Makefile.in: Regenerate.
565 2004-11-07 Paolo Carlini <pcarlini@suse.de>
567 * testsuite/performance/27_io/ifstream_getline-2.cc: New.
569 2004-11-05 Benjamin Kosnik <bkoz@redhat.com>
573 * docs/doxygen/filter: Remove.
574 * docs/doxygen/filter.sed: Remove.
575 * docs/doxygen/mainpage.html: Add link to functions.
576 * docs/doxygen/run_doxygen: Changes due to new source filtering.
577 * docs/doxygen/user.cfg.in: Update to doxygen 1.3.9.1, tweak.
578 * include/bits/allocator.h: Tweaks for doxygen.
579 * include/bits/char_traits.h: Same.
580 * include/bits/codecvt.h: Same.
581 * include/bits/concurrence.h: Same.
582 * include/bits/locale_facets.h: Same.
583 * include/ext/array_allocator.h: Same.
584 * include/ext/debug_allocator.h: Same.
585 * include/ext/malloc_allocator.h: Same.
586 * include/ext/mt_allocator.h: Same.
587 * include/ext/new_allocator.h: Same.
588 * include/ext/pool_allocator.h: Same.
589 * include/ext/stdio_sync_filebuf.h: Same.
590 * include/std/std_memory.h: Same.
591 * include/tr1/array: Same.
592 * include/tr1/tuple: Same.
593 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
594 * config/os/gnu-linux/ctype_base.h: Same.
596 2004-11-04 Paolo Carlini <pcarlini@suse.de>
598 * include/bits/locale_facets.tcc (num_get<>::do_get(bool&)):
599 Evaluate __beg == __end the exact strict minimum number of times.
601 2004-11-03 Jonathan Wakely <redi@gcc.gnu.org>
603 * include/bits/stl_numeric.h (partial_sum, adjacent_difference):
604 Avoid dereferencing two times __first in the prologue.
606 2004-11-03 Paolo Carlini <pcarlini@suse.de>
608 * include/bits/stl_numeric.h: Trivial formatting fixes.
610 2004-11-03 Benjamin Kosnik <bkoz@redhat.com>
612 * include/bits/c++config: Spacing.
613 * libsupc++/del_op.cc: Include c++config.h.
614 * libsupc++/del_opnt.cc: Same.
615 * libsupc++/del_opv.cc: Same.
616 * libsupc++/del_opvnt.cc: Same.
617 * libsupc++/new_op.cc: Same.
618 * libsupc++/new_opnt.cc: Same.
619 * libsupc++/new_opv.cc: Same.
620 * libsupc++/new_opvnt.cc: Same.
622 2004-11-03 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
624 * config/os/bsd/darwin/os_defines.h
625 (_GLIBCXX_WEAK_DEFINITION): Define.
626 * include/bits/c++config (_GLIBCXX_WEAK_DEFINITION): Define.
627 * libsupc++/del_op.cc (operator delete(void *)): Use
628 _GLIBCXX_WEAK_DEFINITION.
629 * libsupc++/del_opnt.cc
630 (operator delete(void *, const std::nothrow_t&)): Same.
631 * libsupc++/del_opv.cc (operator delete[](void *)): Same.
632 * libsupc++/del_opvnt.cc
633 (operator delete[](void *, const std::nothrow_t&)): Same.
634 * libsupc++/new_op.cc (operator new(std::size_t)): Same.
635 * libsupc++/new_opnt.cc
636 (operator new(std::size_t, const std::nothrow_t&)): Same
637 * libsupc++/new_opv.cc (operator new[](std::size_t)): Same.
638 * libsupc++/new_opvnt.cc
639 (operator new[](std::size_t, const std::nothrow_t&)): Same.
641 2004-11-02 Paolo Carlini <pcarlini@suse.de>
643 * include/bits/locale_facets.tcc (num_get<>::_M_extract_int):
644 Evaluate *__beg the exact strict minimum number of times; likewise
645 for __beg != __end; slightly simplify main parsing loop.
647 2004-11-02 Benjamin Kosnik <bkoz@redhat.com>
648 Lothar Werzinger <lothar@xcerla.com>
651 * src/debug.cc: Include concurrence, use mutexes.
652 (_Safe_iterator_base::_M_attach): Here.
653 (_Safe_iterator_base::_M_detach): Here.
655 2004-11-02 Benjamin Kosnik <bkoz@redhat.com>
658 * include/bits/ios_base.h : Add enum values.
659 * testsuite/testsuite_hooks.h (bitmask_operators): Add function.
660 * testsuite/27_io/ios_base/types/fmtflags/bitmask_operators.cc: New.
661 * testsuite/27_io/ios_base/types/fmtflags/case_label.cc: New.
662 * testsuite/27_io/ios_base/types/iostate/bitmask_operators.cc: New.
663 * testsuite/27_io/ios_base/types/iostate/case_label.cc: New.
664 * testsuite/27_io/ios_base/types/openmode/bitmask_operators.cc: New.
665 * testsuite/27_io/ios_base/types/openmode/case_label.cc: New.
666 * testsuite/27_io/ios_base/types/seekdir/case_label.cc: New.
668 * config/io/c_io_stdio.h (__ios_flags): Mark deprecated.
671 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
672 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
674 2004-11-01 Momchil Velikov <velco@fadata.bg>
677 * libsupc++/eh_globals.cc (get_globals_dtor): Delete unhandled
679 * testsuite/thread/18185.cc: New.
681 2004-11-01 Chris Jefferson <chris@bubblescope.net>
684 * include/tr1/tuple (get(pair)): Change occurrences of _I to _Int.
685 (get(const pair)): Likewise.
687 2004-11-01 Paolo Carlini <pcarlini@suse.de>
689 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
690 Evaluate *__beg the exact strict minimum number of times; likewise
691 for __beg != __end; in the main parsing loop, call ++__beg in two
692 places only. The former is also a correctness issue, because,
693 according to the standard (22.2.2.1.2, Stage 2), 'in' shall be
694 dereferenced only one time for each increment.
696 2004-10-31 Benjamin Kosnik <bkoz@redhat.com>
699 * testsuite/23_containers/set/modifiers/16728.cc: New.
701 2004-10-30 Paolo Carlini <pcarlini@suse.de>
703 * include/ext/bitmap_allocator.h (allocate(size_type)): Minor tweak.
705 * testsuite/ext/bitmap_allocator/check_delete.cc: New.
706 * testsuite/ext/bitmap_allocator/check_new.cc: Likewise.
708 2004-10-29 Geoffrey Keating <geoffk@apple.com>
710 * configure.host (darwin*): Set os_include_dir to a separate directory
712 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add a new C locale kind,
714 * config/locale/darwin/ctype_members.cc: New.
715 * config/os/bsd/darwin/ctype_base.h: New.
716 * config/os/bsd/darwin/ctype_inline.h: New.
717 * config/os/bsd/darwin/ctype_noninline.h: New.
718 * config/os/bsd/darwin/os_defines.h: New.
720 * testsuite/22_locale/locale/cons/12658_thread-1.cc: Only xfail
723 2004-10-29 Chris Jefferson <chris@bubblescope.net>
725 * include/bit/stl_algo.h (find_first_of(,,,,pred)):
726 Remove invalid EqualOpConcept.
727 * testsuite/25_algorithms/find_first_of/concept_check_1.cc: New.
729 2004-10-29 Benjamin Kosnik <bkoz@redhat.com>
731 * testsuite/testsuite_allocator.h (check_delete): New.
732 (check_new): Simplify.
733 * testsuite/ext/array_allocator/check_delete.cc: New.
734 * testsuite/ext/array_allocator/check_new.cc: Simplify.
735 * testsuite/ext/debug_allocator/check_delete.cc: New.
736 * testsuite/ext/debug_allocator/check_new.cc: Simplify.
737 * testsuite/ext/malloc_allocator/check_delete.cc: New.
738 * testsuite/ext/malloc_allocator/check_new.cc: Simplify.
739 * testsuite/ext/mt_allocator/check_delete.cc: New.
740 * testsuite/ext/mt_allocator/check_new.cc: Simplify.
741 * testsuite/ext/new_allocator/check_delete.cc: New.
742 * testsuite/ext/new_allocator/check_new.cc: Simplify.
743 * testsuite/ext/pool_allocator/check_delete.cc: New.
744 * testsuite/ext/pool_allocator/check_new.cc: Simplify.
746 2004-10-28 Chris Jefferson <chris@bubblescope.net>
749 * include/tr1/tuple: Fix, change formatting.
751 2004-10-28 Benjamin Kosnik <bkoz@redhat.com>
753 * include/ext/mt_allocator.h (__common_pool_policy): Add template
754 template parameter for pool class type.
755 (__per_type_pool_policy): Same.
756 (__mt_allocator): Don't inherit policy. Qualify policy_type calls.
757 * testsuite/ext/mt_allocator/check_deallocate_null.cc: Fix.
758 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: Same.
759 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
760 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
761 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
762 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
763 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Same.
764 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
765 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
766 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
767 * testsuite/ext/mt_allocator/instantiate.cc: Same.
768 * testsuite/ext/mt_allocator/tune-1.cc: Same.
769 * testsuite/ext/mt_allocator/tune-2.cc: Same.
770 * testsuite/ext/mt_allocator/tune-3.cc: Same.
771 * testsuite/ext/mt_allocator/tune-4.cc: Same.
773 2004-10-28 Paolo Carlini <pcarlini@suse.de>
775 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
776 Cache *__beg in __c when parsing exponent sign too.
777 (num_get<>::do_get(..., bool&)): Cache *__beg.
778 (money_get<>::_M_extract)): Likewise, in money_base::value.
780 2004-10-27 Paolo Carlini <pcarlini@suse.de>
782 * include/bits/basic_string.h (assign(const basic_string&)):
784 * include/bits/basic_string.tcc: ... here.
786 2004-10-27 Paolo Carlini <pcarlini@suse.de>
788 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
790 * include/bits/basic_string.tcc: ... here.
792 2004-10-26 Paolo Carlini <pcarlini@suse.de>
794 * include/bits/basic_string.h (append(const basic_string&),
795 append(size_type, _CharT)): Move out of line...
796 * include/bits/basic_string.tcc: ... here.
798 2004-10-26 Paolo Carlini <pcarlini@suse.de>
800 * include/bits/basic_string.h (erase(size_type, size_type),
801 erase(iterator), erase(iterator, iterator)): Call _M_mutate
802 instead of _M_replace_safe, equivalent when the fourth argument
805 2004-10-26 Benjamin Kosnik <bkoz@redhat.com>
807 * include/ext/array_allocator.h (array::allocate): Check for valid
808 array object, use its size member function directly.
809 * testsuite/ext/array_allocator/3.cc: New.
810 * docs/html/20_util/allocator.html: Add docs.
812 2004-10-25 Geoffrey Keating <geoffk@apple.com>
814 * configure.host (darwin*): Build libstdc++ single module
816 * libsupc++/new_op.cc (new): Make weak.
817 * libsupc++/new_opnt.cc (new): Make weak.
818 * libsupc++/new_opv.cc (new): Make weak.
819 * libsupc++/new_opvnt.cc (new): Make weak.
820 * libsupc++/delete_op.cc (delete): Make weak.
821 * libsupc++/delete_opnt.cc (delete): Make weak.
822 * libsupc++/delete_opv.cc (delete): Make weak.
823 * libsupc++/delete_opvnt.cc (delete): Make weak.
825 2004-10-25 Benjamin Kosnik <bkoz@redhat.com>
827 * testsuite/Makefile.am (GLIBCXX_INCLUDES): Add.
828 (AUTOMAKE_OPTIONS): Add nostdinc.
829 * testsuite/Makefile.in: Regenerate.
830 * scripts/testsuite_flags.in (build-includes): Remove redundant
831 search for libsupc++.
832 * fragment.am: Clean.
834 2004-10-25 Benjamin Kosnik <bkoz@redhat.com>
836 * include/Makefile.am (tr1_headers): Add tuple.
837 * include/Makefile.in: Regenerate.
839 2004-10-25 Chris Jefferson <chris@bubblescope.net>
841 * include/tr1/tuple: Implementation of tuple from library TR.
842 * testsuite/tr1/6_containers/tuple/tuple_element.cc: New.
843 * testsuite/tr1/6_containers/tuple/tuple_size.cc: New.
844 * testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc:
846 * testsuite/tr1/6_containers/tuple/cons/assignment.cc: New.
847 * testsuite/tr1/6_containers/tuple/cons/big_tuples.cc: New.
848 * testsuite/tr1/6_containers/tuple/cons/constructor.cc: New.
849 * testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc:
851 * testsuite/tr1/6_containers/tuple/creation_functions/tie.cc: New.
852 * testsuite/tr1/6_containers/tuple/element_access/get.cc: New.
854 2004-10-25 Paolo Carlini <pcarlini@suse.de>
856 * include/bits/basic_string.h (_Rep::_M_is_safe): Move to
857 basic_string as _M_disjunct, adjust to take only __s.
858 * include/bits/basic_string.tcc: Adjust consistently callers.
860 2004-10-25 Paolo Carlini <pcarlini@suse.de>
862 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
863 Adjust bit missing from the previous commit.
865 2004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
868 * testsuite/lib/libstdc++.exp: Accept more than one multilib libgcc.
870 2004-10-25 Paolo Carlini <pcarlini@suse.de>
872 * include/bits/basic_string.h (_Rep::_M_is_safe, _M_check_length,
873 _M_move, _M_copy, _M_assign): New, use througout.
874 (operator+=(_CharT)): Define in terms of push_back.
875 (append(const basic_string&)): Define here, inline, and simplify,
876 don't use the full _M_replace_safe.
877 (append(size_type, _CharT)): Likewise, don't use _M_replace_aux.
878 (push_back): Likewise.
879 (assign(const basic_string&)): Define here, inline.
880 * include/bits/basic_string.tcc (append(const _CharT* s, size_type):
881 Fix: when s points inside the _Rep, upon reallocation (reserve) we
882 were copying from deallocated memory.
883 (append(const basic_string&, size_type, size_type)): Simplify,
884 don't use _M_replace_safe.
885 (replace(size_type, size_type, const _CharT*, size_type)): Slightly
888 * testsuite/21_strings/basic_string/append/char/2.cc: New.
889 * testsuite/21_strings/basic_string/append/char/3.cc: Likewise.
890 * testsuite/21_strings/basic_string/append/wchar_t/2.cc: Likewise.
891 * testsuite/21_strings/basic_string/append/wchar_t/3.cc: Likewise.
893 * testsuite/21_strings/basic_string/assign/char/3.cc: Remove junk.
894 * testsuite/21_strings/basic_string/assign/wchar_t/3.cc: Likewise.
896 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
898 * testsuite/ext/mt_allocator/deallocate_global-2.c:
899 s/value_t/value_type/. s/traits_t/traits_type/.
900 s/policy_t/policy_type/. s/allocator_t/allocator_type/.
901 s/string_t/string_type/. s/list_t/list_type/.
902 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Likewise.
903 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Likewise.
904 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Likewise.
905 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Likewise.
906 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Likewise.
907 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Likewise.
908 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Likewise.
910 2004-10-21 Benjamin Kosnik <bkoz@redhat.com>
912 * include/tr1/array (array): Make safe for zero-sized arrays.
913 (array::end): Return one past the end.
914 (array::at): Use __throw_out_of_range, include functexcept.h.
915 (operator==): Implement.
921 * testsuite/tr1/6_containers/array/capacity/(empty.cc,
922 max_size.cc, size.cc): New.
923 * testsuite/tr1/6_containers/array/comparison_operators/(equal.cc,
924 greater.cc, greater_or_equal.cc, less.cc, less_or_equal.cc,
926 * testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc:
928 * testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc:
930 * testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc: New.
931 * testsuite/tr1/6_containers/array/requirements/(contiguous.cc,
932 instantiate, typedefs, zero_size_arrays): New.
934 2004-10-21 Paolo Carlini <pcarlini@suse.de>
935 Benjamin Kosnik <bkoz@redhat.com>
937 * include/bits/basic_string.h (_M_set_length_and_sharable): New.
938 * include/bits/basic_string.tcc (_S_construct, assign(const _CharT*,
939 size_type), _M_mutate, _M_clone): Use it.
940 (_Rep::_S_create): Don't set/call _M_length/_M_set_sharable here.
942 2004-10-21 Paolo Carlini <pcarlini@suse.de>
943 Dhruv Matani <dhruvbird@gmx.net>
944 Nathan Myers <ncm@cantrip.org>
946 * include/bits/vector.tcc (_M_insert_aux, _M_fill_insert,
947 _M_range_insert): Check at the outset that we are not trying
948 to exceed max_size, then deal properly with __len overflows.
949 * testsuite/23_containers/vector/modifiers/insert/1.cc: New.
951 * testsuite/testsuite_allocator.h: Remove redundant include.
953 2004-10-20 Paolo Carlini <pcarlini@suse.de>
955 * include/ext/bitmap_allocator.h (allocate): Throw std::bad_alloc
957 * include/ext/malloc_allocator.h (allocate): Likewise.
958 * include/ext/mt_allocator.h (allocate): Likewise.
959 * include/ext/new_allocator.h (allocate): Likewise.
960 * include/ext/array_allocator.h: Use __throw_bad_alloc().
961 * include/ext/pool_allocator.h: Use __builtin_expect.
962 * testsuite/ext/array_allocator/check_allocate_max_size.cc: New.
963 * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc: Likewise.
964 * testsuite/ext/malloc_allocator/check_allocate_max_size.cc: Likewise.
965 * testsuite/ext/mt_allocator/check_allocate_max_size.cc: Likewise.
966 * testsuite/ext/new_allocator/check_allocate_max_size.cc: Likewise.
967 * testsuite/ext/pool_allocator/check_allocate_max_size.cc: Likewise.
968 * testsuite/testsuite_allocator.h (check_allocate_max_size): New test.
970 2004-10-19 Paolo Carlini <pcarlini@suse.de>
972 * testsuite/performance/20_util/allocator/list_sort_search.cc:
973 Include <ext/new_allocator.h>.
974 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
976 2004-10-18 Paolo Carlini <pcarlini@suse.de>
978 * include/bits/basic_string.tcc (_M_mutate): Do not reallocate
979 unnecessarily when _M_rep() == &_S_empty_rep() and __new_size
980 == capacity() (== 0): is ok to just leave everything unchanged.
982 * include/bits/basic_string.h: Minor formatting fixes.
983 * include/bits/basic_string.tcc: Likewise.
985 2004-10-17 Benjamin Kosnik <bkoz@redhat.com>
987 * include/ext/mt_allocator.h (__pool::_M_get_align): New.
988 (__mt_alloc::allocate): Use it.
989 * src/mt_allocator.cc (__pool::_M_reclaim_block): Use it.
990 (__pool::_M_reserve_block): Simplify block allocation.
992 2004-10-17 Dhruv Matani <dhruvbird@gmx.net>
993 Paolo Carlini <pcarlini@suse.de>
995 * include/ext/bitmap_allocator.h: Change unsigned int -> size_t: this
996 makes the code 64-bit correct and also fixes (together with using at
997 the beginning a bitmap 2 * size_t bytes wide) alignment issues: now
998 8 is guaranteed, easily tunable to 16 via _BALLOC_ALIGN_BYTES.
999 Fix pthread-rope7.cc fail by nulling out __mini_vector<> destructor.
1000 * src/bitmap_allocator.cc: Change to size_t.
1001 * config/linker-map.gnu: Adjust.
1003 2004-10-16 Benjamin Kosnik <bkoz@redhat.com>
1005 * include/tr1/array: Don't use layout_type.
1007 2004-10-16 Sashan Govender <sashang@gmail.com>
1009 * include/tr1/array (array::end const): Fix casting from iterator
1012 2004-10-15 Paolo Carlini <pcarlini@suse.de>
1014 * include/ext/bitmap_allocator.h: Qualify ::operator delete.
1015 * src/bitmap_allocator.cc: Likewise.
1016 * src/mt_allocator.cc: Use ::operator delete, not delete,
1017 consistently with ::operator new.
1019 * include/ext/bitmap_allocator.h (deallocate): Check for null
1021 * testsuite/ext/bitmap_allocator/check_deallocate_null.cc: New.
1022 * testsuite/testsuite_allocator.h (check_deallocate_null): Add test.
1024 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
1026 * include/ext/mt_allocator.h (__mt_alloc::deallocate): Check for
1028 * include/ext/pool_allocator.h (debug_allocator::deallocate):
1029 Check pointer value.
1030 * include/ext/debug_allocator.h (debug_allocator::deallocate):
1031 Throw exceptions, don't abort.
1032 * include/ext/array_allocator.h
1033 (array_allocator_base::deallocate): Remove unused parameters.
1034 * testsuite/testsuite_allocator.h (check_deallocate_null): New.
1035 * testsuite/ext/mt_allocator/check_deallocate_null.cc: New.
1036 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: New.
1037 * testsuite/ext/array_allocator/check_deallocate_null.cc: New.
1038 * testsuite/ext/debug_allocator/check_deallocate_null.cc: New.
1039 * testsuite/ext/malloc_allocator/check_deallocate_null.cc: New.
1040 * testsuite/ext/new_allocator/check_deallocate_null.cc: New.
1041 * testsuite/ext/pool_allocator/check_deallocate_null.cc: New.
1043 * testsuite/testsuite_allocator.h (check_new): Add instance argument.
1044 * testsuite/ext/array_allocator/check_new.cc: New.
1046 2004-10-14 Paolo Carlini <pcarlini@suse.de>
1048 * include/ext/bitmap_allocator.h (bitmap_allocator::_Alloc_block):
1049 Rename __unused to __M_unused.
1051 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
1053 * testsuite/ext/headers.cc: Add includes, compile only.
1054 * testsuite/ext/hash_map.cc: Move to...
1055 * testsuite/ext/hash_map/1.cc: ...here.
1056 * testsuite/ext/14648.cc: Move to...
1057 * testsuite/ext/hash_map/14648.cc: ...here.
1058 * testsuite/ext/hash_map/instantiate.cc: Add.
1059 * testsuite/ext/hash_set.cc: Move to...
1060 * testsuite/ext/hash_set/1.cc: ...here.
1061 * testsuite/ext/hash_set_explicit_instantiation.cc: Move to...
1062 * testsuite/ext/hash_set/instantiate.cc: ...here.
1063 * testsuite/ext/hash_check_construct_destroy.cc: Move to...
1064 * testsuite/ext/hash_set/check_construct_destroy.cc: ...here.
1065 * testsuite/ext/slist_check_construct_destroy.cc: Move to...
1066 * testsuite/ext/slist/check_construct_destroy.cc: ...here.
1067 * testsuite/ext/slist_explicit_instantiation.cc: Move to...
1068 * testsuite/ext/slist/instantiate.cc: ...here.
1070 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
1072 * include/ext/mt_allocator.h: Tweaks.
1073 * src/mt_allocator.cc: Same.
1075 2004-10-14 Dhruv Matani <dhruvbird@gmx.net>
1077 * ext/bitmap_allocator.h: Clean-up add/remove functions.
1078 * src/bitmap_allocator.cc: New file. Contains the out-of-line
1079 function definitions, static initialization of variables, and
1080 explicit instantiations needed for the allocator.
1081 * src/Makefile.am: Add.
1082 * src/Makefile.in: Regenerate.
1083 * config/linker.map.gnu: Add the necessary symbols.
1085 2004-10-13 Paolo Carlini <pcarlini@suse.de>
1087 * include/bits/basic_string.tcc (_S_create): Use consistently
1088 the exponential policy, simplify.
1089 * testsuite/performance/21_strings/string_append_2.cc: New.
1091 * include/ext/array_allocator.h (allocate): Fix bad_alloc check.
1092 * testsuite/ext/array_allocator/2.cc: Fix wrt 64-bit archs (in
1093 that case sizeof(_Rep) == 24).
1095 2004-10-12 Paolo Carlini <pcarlini@suse.de>
1098 * include/bits/stl_tree.h (erase(iterator, iterator)): Revert
1099 wrong commit of 2004-10-07.
1101 2004-10-12 Scott Snyder <snyder@fnal.gov>
1104 * testsuite/23_containers/set/modifiers/17948.cc: New.
1106 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
1108 * include/bits/stl_deque.h: Correct for over-long lines.
1110 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
1113 * include/ext/mt_allocator.h (__pool::_M_destroy): New.
1114 * src/mt_allocator.cc (__pool::~__pool): Change definitions to
1116 * acconfig.h: Remove _GLIBCXX_USE___CXA_ATEXIT.
1117 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): Remove.
1118 * configure.ac: Remove call to GLIBCXX_ENABLE_CXA_EXIT.
1119 * configure: Regenerate.
1120 * config/linker-map.gnu: Tweak exports.
1121 * docs/html/ext/mt_allocator.html: Update docs.
1122 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Fix.
1123 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Fix.
1124 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Fix.
1125 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Fix.
1126 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Fix.
1127 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Fix.
1128 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Fix.
1129 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Fix.
1131 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
1133 PR libstdc++/16614 continued.
1134 * include/ext/mt_allocator.h
1135 (__per_type_pool_policy::_S_get_pool): Use saner defaults based on
1136 specific type characteristics.
1137 (__pool_base): Add constructor that takes a _Tune argument.
1139 * testsuite/ext/mt_allocator/tune-2.cc: Adjust default.
1140 * testsuite/ext/mt_allocator/tune-4.cc: Same.
1141 * testsuite/ext/mt_allocator/tune-3.cc: Same.
1143 2004-10-11 Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
1144 Paolo Carlini <pcarlini@suse.de>
1146 * src/pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk):
1147 Deal properly with exceptions thrown by ::operator new(size_t).
1148 * testsuite/ext/pool_allocator/allocate_chunk.cc: New.
1150 * include/ext/pool_allocator.h: Include <cstdlib>.
1152 2004-10-10 Benjamin Kosnik <bkoz@redhat.com>
1154 * include/bits/functexcept.h: Add guards.
1156 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Tweak test.
1157 * configure: Regenerate.
1159 2004-10-10 Paolo Carlini <pcarlini@suse.de>
1161 * config/locale/gnu/monetary_members.cc (_S_construct_pattern):
1162 Give __ret a default value, thus avoiding spurious warnings.
1164 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Open either
1165 words or linux.words, otherwise exit.
1166 * testsuite/performance/27_io/ifstream_getline.cc: Slighlty tweak.
1168 2004-10-09 Paolo Carlini <pcarlini@suse.de>
1170 * include/std/std_memory.h (__get_temporary_buffer): Don't use
1171 INT_MAX, prefer numeric_limits<ptrdiff_t>::max(), ok on 64-bit
1173 * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust dg-error
1176 2004-10-08 Benjamin Kosnik <bkoz@redhat.com>
1178 * acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
1179 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): New.
1180 * configure.ac: Call GLIBCXX_ENABLE_CXA_EXIT.
1181 * configure: Regenerate.
1182 * src/mt_allocator.cc (__pool::~__pool): Make conditional on
1183 _GLIBCXX_USE___CXA_ATEXIT macro.
1184 * docs/html/ext/mt_allocator.html: Add note about deallocation.
1185 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Guard checks
1186 with _GLIBCXX_USE___CXA_ATEXIT.
1187 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
1188 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
1189 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
1190 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
1191 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
1192 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
1193 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
1195 2004-10-07 Phil Edwards <phil@codesourcery.com>
1197 * testsuite/lib/libstdc++.exp: Update list of undefined functions.
1199 2004-10-07 Paolo Carlini <pcarlini@suse.de>
1201 * include/bits/list.tcc (operator=): Avoid iterator postincrement.
1202 * include/bits/stl_tree.h (erase(iterator, iterator)): Likewise.
1204 2004-10-07 Benjamin Kosnik <bkoz@redhat.com>
1207 * include/tr1/array: New.
1208 * include/Makefile.am (tr1_headers): New.
1210 (install-headers): New.
1211 (allstamped): Add stamp-tr1.
1213 * include/ext/array_allocator.h: New.
1214 * include/Makefile.am: Add.
1215 * include/Makefile.in: Regenerate.
1216 * testsuite/ext/array_allocator/1.cc: New.
1217 * testsuite/ext/array_allocator/2.cc: New.
1219 2004-10-07 Richard Earnshaw <rearnsha@arm.com>
1221 * testsuite/lib/libstdc++.exp (libstdc++_exit): New proc.
1223 2004-10-07 Roger Sayle <roger@eyesopen.com>
1226 * configure.ac: Newlib does not provide strtold.
1227 * configure: Regenerate.
1229 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
1231 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
1232 (GLIBCXX_CONFIGURE_TESTSUITE): Use it.
1233 * configure: Regenerated.
1234 * testsuite/Makefile.am (CLEANFILES): Add TEST for
1235 check-performance executables.
1236 (stamp_thread): New.
1237 (all-local): Use it.
1238 * testsuite/Makefile.in: Regenerate.
1239 * scripts/create_testsuite_files: Filter thread tests.
1241 * testsuite/thread/pthread1.cc: Remove macro conditionals: this
1242 file will only be run by thread enabled configurations.
1243 * testsuite/thread/pthread7-rope.cc: Same, add rope_type typedef.
1244 * testsuite/thread/pthread6.cc: Same.
1245 * testsuite/thread/pthread5.cc: Same.
1246 * testsuite/thread/pthread4.cc: Same.
1247 * testsuite/thread/pthread3.cc: Same.
1248 * testsuite/thread/pthread2.cc: Same.
1250 * testsuite/ext/mt_allocator/instantiate.cc: Add in __GTHREADS guard.
1251 * testsuite/ext/mt_allocator/deallocate_global-1.cc: Move to...
1252 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: ...here.
1253 * testsuite/ext/mt_allocator/deallocate_global-3.cc: Move to...
1254 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: ...here.
1255 * testsuite/ext/mt_allocator/deallocate_local-1.cc: Move to...
1256 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: ...here.
1257 * testsuite/ext/mt_allocator/deallocate_local-3.cc: Move to...
1258 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: ...here.
1260 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
1261 Paolo Carlini <pcarlini@suse.de>
1264 * src/mt_allocator.cc (__pool<true>::_M_reserve_block): Revert
1265 to old locking order.
1267 2004-10-06 Paolo Carlini <pcarlini@suse.de>
1269 * include/std/std_sstream.h (_M_sync): When the caller is
1270 setbuf, don't trust _M_string.capacity() to be the size of
1271 the buffer area, use _M_string.size() in this case.
1272 * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
1273 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.
1275 * include/bits/sstream.tcc (overflow): Avoid calling string::assign
1276 unnecessarily when the current _M_string is empty.
1278 2004-10-06 Paolo Carlini <pcarlini@suse.de>
1280 * include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)):
1281 Avoid iterator postincrement.
1282 (__rotate): Likewise.
1284 * include/bits/stl_algo.h: Minor formatting tweaks.
1286 2004-10-06 Christopher Jefferson <caj@cs.york.ac.uk>
1288 * include/bits/stl_algo.h (__reverse(random_access_iterator_tag)):
1289 Avoid iterator postincrement; fix swapping middle element with
1290 itself on odd-length inputs.
1292 2004-10-05 Benjamin Kosnik <bkoz@redhat.com>
1295 * include/ext/mt_allocator.h (__pool_base::_Tune): Add default
1296 options as compile-time constant enums.
1297 (__pool_base::_Tune::is_default): New.
1298 (__pool_base::_Block_address): New.
1299 (__pool_base): Rearrange data members.
1300 (__pool::_M_reserve_memory): To _M_reserve_block.
1301 (__pool::_M_reclaim_memory): To _M_reclaim_block.
1302 (__pool::_Bin_record): Add _Block_address data member.
1303 (__pool<false>): Add _M_thread_freelist_initial.
1304 (__pool::~__pool): Declare.
1305 (__common_pool_policy): Move static data member to...
1306 (__common_pool_policy::_S_get_pool): ...here, make static local.
1307 (__per_type_pool_policy): Move static data member to...
1308 (__per_type_pool_policy::_S_get_pool): ...here, make static local.
1309 (__mt_alloc::__mt_alloc): Call __policy_type::_S_get_pool.
1310 Remove static member definitions. Use define for __default_policy.
1311 * src/mt_allocator.cc: Same.
1312 * config/linker-map.gnu: Don't export _S_get_pool. Renames.
1313 * testsuite/ext/new_allocator: New.
1314 * testsuite/ext/new_allocator/instantiate.cc: New.
1315 * testsuite/ext/new_allocator/check_new.cc: New.
1316 * testsuite/ext/new_allocator/deallocate_global.cc: New.
1317 * testsuite/ext/new_allocator/deallocate_local.cc: New.
1318 * testsuite/ext/mt_allocator/instantiate.cc: Instantiate all
1320 * testsuite/ext/mt_allocator/deallocate_global-1.cc: New.
1321 * testsuite/ext/mt_allocator/deallocate_global-2.cc: New.
1322 * testsuite/ext/mt_allocator/deallocate_global-3.cc: New.
1323 * testsuite/ext/mt_allocator/deallocate_global-4.cc: New.
1324 * testsuite/ext/mt_allocator/deallocate_local-1.cc: New.
1325 * testsuite/ext/mt_allocator/deallocate_local-2.cc: New.
1326 * testsuite/ext/mt_allocator/deallocate_local-3.cc: New.
1327 * testsuite/ext/mt_allocator/deallocate_local-4.cc: New.
1328 * testsuite/ext/mt_allocator/deallocate.cc: New.
1329 * testsuite/ext/malloc_allocator/deallocate.cc: New.
1330 * testsuite/ext/malloc_allocator/deallocate_global.cc: New.
1331 * testsuite/ext/malloc_allocator/deallocate_local.cc: New.
1333 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1335 * configure.host (abi_baseline_pair): Define for s390-*-linux* and
1337 * config/abi/s390-linux-gnu/baseline_symbols.txt: Add missing symbols.
1338 * config/abi/s390x-linux-gnu/baseline_symbols.txt: New file.
1340 2004-10-05 Christopher Jefferson <caj@cs.york.ac.uk>
1342 * include/bits/stl_algobase.h (iter_swap): delegate to swap via
1343 __iter_swap when iterator's value_types are equal.
1344 (struct __iter_swap): New.
1346 2004-10-04 Benjamin Kosnik <bkoz@redhat.com>
1348 * configure.ac (libtool_VERSION): To 6:3:0.
1349 * configure: Regnerate.
1350 * testsuite/testsuite_abi.cc (check_version): Add 3.4.3.
1352 2004-10-04 Roger Sayle <roger@eyesopen.com>
1353 Eric Botcazou <ebotcazou@libertysurf.fr>
1356 * config/linker-map.gnu: Synchronize the current list of stub
1357 functions from libmath.
1359 2004-10-03 Roger Sayle <roger@eyesopen.com>
1361 * config/locale/generic/c_locale.cc (__convert_to_v): Use
1362 _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
1363 Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
1364 to check for presence of strtold.
1366 2004-10-03 Paolo Carlini <pcarlini@suse.de>
1368 * include/bits/stl_list.h: Trivial formatting fixes.
1369 * include/bits/stl_tree.h: Likewise.
1371 2004-10-03 Paolo Carlini <pcarlini@suse.de>
1373 * include/bits/sstream.tcc (seekpos): In case of success, just
1376 2004-10-01 Paolo Carlini <pcarlini@suse.de>
1378 * include/bits/sstream.tcc (pbackfail): Implement correctly
1379 27.7.1.3/2, bullet 2: if mode & ios_base::out is false do not
1380 write in the buffer.
1381 * testsuite/27_io/basic_stringbuf/pbackfail/char/1.cc: New.
1382 * testsuite/27_io/basic_stringbuf/pbackfail/char/2.cc: Likewise.
1383 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/1.cc: Likewise.
1384 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/2.cc: Likewise.
1385 * testsuite/27_io/basic_istream/putback/char/1.cc: Tweak consistently.
1387 2004-10-01 Paolo Carlini <pcarlini@suse.de>
1389 * include/bits/sstream.tcc (seekpos): Minor rearrangement of two
1390 conditionals consistently with seekoff.
1391 * include/std/std_sstream.h (setbuf): Avoid a string temporary.
1392 (_M_sync): Simplify a bit, clean-up comment.
1394 2004-09-30 Paolo Carlini <pcarlini@suse.de>
1396 PR libstdc++/10975 (DR 453)
1397 * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
1399 * docs/html/ext/howto.html: Add an entry for DR 453.
1400 * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
1401 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
1402 * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
1403 * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
1404 * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
1405 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
1407 * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
1408 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
1410 * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
1412 2004-09-29 Paolo Carlini <pcarlini@suse.de>
1414 * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
1415 Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
1416 (str()): Slightly tweak, protect from pptr() == 0.
1417 (_M_update_egptr()): Likewise.
1418 * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
1419 for an empty buffer use __beg instead of _M_string.capacity().
1420 * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
1421 * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
1423 * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
1424 * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
1425 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
1426 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
1428 2004-09-29 Paolo Carlini <pcarlini@suse.de>
1429 Benjamin Kosnik <bkoz@redhat.com>
1431 * testsuite/testsuite_io.h (class constraint_buf): New, extended
1432 and templatized version of constraint_filebuf; add typedefs for
1433 streambuf/stringbuf/filebuf and wchar_t counterparts.
1435 2004-09-28 Paolo Carlini <pcarlini@suse.de>
1438 * include/bits/basic_string.h (_M_dispose, _M_refcopy,
1439 basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
1440 don't deal with _S_empty_rep.
1441 * include/bits/basic_string.tcc (_S_construct, _M_destroy,
1442 _M_leak_hard, _M_mutate): Likewise.
1443 * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
1444 * acconfig.h: Add corresponding undef.
1445 * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
1446 * docs/html/configopts.html: Document --enable-fully-dynamic-string.
1447 * configure: Regenerate.
1448 * config.h.in: Likewise.
1450 2004-09-28 Benjamin Kosnik <bkoz@redhat.com>
1451 Paolo Carlini <pcarlini@suse.de>
1453 * testsuite/21_strings/basic_string/operations/char/1.cc: New.
1454 * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
1455 * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
1456 * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc:
1459 2004-09-28 Paolo Carlini <pcarlini@suse.de>
1461 * README: Remove obsolete entry about include/c_shadow.
1463 2004-09-24 H.J. Lu <hongjiu.lu@intel.com>
1466 * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
1468 2004-09-24 Paolo Carlini <pcarlini@suse.de>
1470 * src/localename.cc (locale::locale(const char*)): Minor tweaks:
1471 rename a variable, move an assignment.
1472 (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
1474 2004-09-24 Paul Brook <paul@codesourcery.com>
1476 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
1478 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1479 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
1480 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
1481 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
1482 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
1483 * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
1485 2004-09-23 Zack Weinberg <zack@codesourcery.com>
1487 * testsuite/20_util/memory/auto_ptr/assign_neg.cc
1488 * testsuite/23_containers/map/operators/1_neg.cc
1489 * testsuite/23_containers/set/operators/1_neg.cc:
1490 Update locations and/or regexps of dg-error markers.
1492 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
1494 * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
1495 Add rule to build ${host_builddir}/gthr-tpf.h.
1496 * include/Makefile.in: Regenerate.
1498 2004-09-23 Paolo Carlini <pcarlini@suse.de>
1499 Magnus Fromreide <magfr@lysator.liu.se>
1501 * include/bits/boost_concept_check.h (struct _SequenceConcept):
1502 Remove wrong requirement, i.e., not present in Table 67.
1504 2004-09-21 Paolo Carlini <pcarlini@suse.de>
1506 PR libstdc++/12882 (cont)
1507 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
1508 * configure: Regenerate.
1509 * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
1510 _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
1511 trivial showmanyc for large files too.
1513 2004-09-17 Jonathan Wakely <redi@gcc.gnu.org>
1515 * include/bits/stl_algo.h (remove): Remove too restrictive
1518 2004-09-17 Paolo Carlini <pcarlini@suse.de>
1520 * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
1521 as per Nathan's original suggestion.
1523 2004-09-17 Paolo Carlini <pcarlini@suse.de>
1525 * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
1527 * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
1528 * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
1529 * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
1531 2004-09-17 Paolo Carlini <pcarlini@suse.de>
1532 Andrea Arcangeli <andrea@suse.de>
1534 * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
1535 call unnecessarily sync, that is fflush: the library, since 3.4.0
1536 does not use buffered fread/fwrite.
1537 * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
1539 2004-09-15 Mark Mitchell <mark@codesourcery.com>
1541 * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
1543 * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
1545 * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
1546 (__cxa_vec_new): Use it.
1547 (__cxa_vec_new2): Likewise.
1548 (__cxa_vec_new3): Likewise.
1549 (__cxa_vec_cdtor): Likewise.
1550 (__cxa_vec_cctor): Likeiwse.
1551 (__cxa_vec_dtor): Likewise.
1552 (__cxa_vec_cleanup): Likewise.
1553 (__cxa_vec_delete2): Likewise.
1554 (__cxa_vec_delete3): Likewise.
1555 * libsupc++/vec.cc (__cxa_vec_new): Likewise.
1556 (__cxa_vec_new2): Likewise.
1557 (__cxa_vec_new3): Likewise.
1558 (__cxa_vec_cdtor): Likewise.
1559 (__cxa_vec_cctor): Likeiwse.
1560 (__cxa_vec_dtor): Likewise.
1561 (__cxa_vec_cleanup): Likewise.
1562 (__cxa_vec_delete2): Likewise.
1563 (__cxa_vec_delete3): Likewise.
1564 (__aeabi_vec_ctor_nocookie_nodtor): New function.
1565 (__aeabi_vec_ctor_cookie_nodtor): Likewise.
1566 (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
1567 (__aeabi_vec_new_cookie_noctor): Likewise.
1568 (__aeabi_vec_new_nocookie): Likewise.
1569 (__aeabi_vec_new_cookie_nodtor): Likewise.
1570 (__aeabi_vec_new_cookie): Likewise.
1571 (__aeabi_vec_dtor): Likewise.
1572 (__aeabi_vec_dtor_cookie): Likewise.
1573 (__aeabi_vec_delete): Likewise.
1574 (__aeabi_vec_delete3): Likewise.
1575 (__aeabi_vec_delete3_nodtor): Likewise.
1576 (__aeabi_atexit): Likewise.
1578 2004-09-14 Nathan Myers <ncm@cantrip.org>
1580 * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
1581 for 11722: copy can replace move; the common case is __avail == 0.
1583 2004-09-14 Paolo Carlini <pcarlini@suse.de>
1585 * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
1586 to __is_scalar, more clear and consistent with "tr1" naming.
1587 * include/bits/stl_algobase.h: Update consistently throughout.
1589 2004-09-13 Paolo Carlini <pcarlini@suse.de>
1592 * include/std/std_fstream.h (xsgetn): Declare only.
1593 * include/bits/fstream.tcc (xsgetn): Define, optimize for the
1594 always_noconv() case: when __n > __buflen, copy the available
1595 buffer and issue a direct read.
1596 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
1598 * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
1601 2004-09-13 Hans-Peter Nilsson <hp@bitrange.com>
1603 * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
1604 libstdc++_maybe_build_wrapper instead of using local code.
1606 2004-09-08 Benjamin Kosnik <bkoz@redhat.com>
1608 * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
1610 2004-09-03 Jan Beulich <jbeulich@novell.com>
1612 * crossconfig.m4: Add NetWare as a target.
1613 * configure: Regenerate.
1615 2004-09-02 Mark Mitchell <mark@codesourcery.com>
1617 * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
1620 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
1621 Simon Richter <Simon.Richter@hogyros.de>
1624 * include/bits/istream.tcc: Add extern template for iostream
1625 char and wchar_t instantiations.
1627 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
1628 Leland Wang <llwang@infor.org>
1631 * include/ext/ropeimpl.h (rope::_S_compare): Use
1632 _Rope_constants::_S_leaf.
1634 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
1637 * include/Makefile.am (ext_headers): Remove demangle.h.
1638 * include/Makefile.in: Regenerate.
1639 * include/ext/demangle.h: Remove.
1641 2004-09-01 Benjamin Kosnik <bkoz@redhat.com>
1644 * include/ext/mt_allocator.h (__mt_base): Not type dependent,
1646 (__pool): New, specialize.
1647 (__common_pool): New, static bits here.
1648 (__per_type_pool): New, and here.
1649 (__mt_alloc_base): New.
1650 (__mt_alloc): Add template parameter, inherit from it.
1651 * src/allocator.cc: Split this...
1652 * src/allocator-inst.cc: And this...
1653 * src/pool_allocator.cc: ...into this.
1654 * src/mt_allocator.cc: ... and this. Add definitions for
1656 * src/Makefile.am (sources): Split allocator.cc to
1657 pool_allocator.cc and mt_allocator.cc.
1658 * src/Makefile.in: Regenerate.
1659 * config/linker-map.gnu: Add symbols.
1660 * docs/html/ext/mt_allocator.html: Document new design.
1661 * testsuite/ext/mt_allocator/tune-1.cc: New.
1662 * testsuite/ext/mt_allocator/tune-2.cc: New.
1663 * testsuite/ext/mt_allocator/tune-3.cc: New.
1664 * testsuite/ext/mt_allocator/tune-4.cc: New.
1666 * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
1667 * testsuite/ext/allocators.cc: Use check_new, split into...
1668 * testsuite/ext/mt_allocator/check_new.cc: this.
1669 * testsuite/ext/pool_allocator/check_new.cc: this.
1670 * testsuite/ext/malloc_allocator/check_new.cc: this.
1671 * testsuite/ext/debug_allocator/check_new.cc: this.
1672 * testsuite/ext/mt_allocator/instantiate.cc: this.
1673 * testsuite/ext/pool_allocator/instantiate.cc: this.
1674 * testsuite/ext/malloc_allocator/instantiate.cc: this.
1675 * testsuite/ext/debug_allocator/instantiate.cc: this.
1677 2004-08-30 Phil Edwards <phil@codesourcery.com>
1679 * docs/html/install.html: Update locales list (from Paolo).
1680 Remove other redundant information and point to the GCC install
1683 2004-08-30 Benjamin Kosnik <bkoz@redhat.com>
1685 * include/ext/pool_allocator.h: Rename __pool_base to
1687 * src/allocator.cc: Same.
1688 * config/linker-map.gnu: Same.
1690 2004-08-30 Paolo Carlini <pcarlini@suse.de>
1691 Kenneth C. Schalk <ken@xorian.net>
1694 * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
1695 Check the return value of fclose/sync, loop on EINTR.
1696 (__basic_file<char>::sys_open): Likewise, for sync.
1698 2004-08-29 Paolo Carlini <pcarlini@suse.de>
1700 * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
1701 case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
1702 and 7.23.3.5), two if !_GLIBCXX_USE_C99.
1703 * testsuite/22_locale/time_get/get_time/char/4.cc: New.
1704 * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
1706 2004-08-27 Jason Merrill <jason@redhat.com>
1709 * libsupc++/guard.cc (static_mutex): Internal class implementing a
1710 recursive mutex which controls initialization of local statics.
1711 (__gnu_cxx::recursive_init): New exception class.
1712 (__cxa_guard_acquire): Deal with locking and recursion detection.
1713 (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
1715 2004-08-27 Matthias Klose <doko@debian.org>
1717 * configure.host: For mips*-*-linux* update cpu_include_dir
1718 after atomicity_dir is set.
1720 2004-08-27 Matthias Klose <doko@debian.org>
1722 * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
1723 * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1724 * configure.host: Set abi_baseline_pair for arm*-*-linux* and
1727 2004-08-27 Paolo Carlini <pcarlini@suse.de>
1729 * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
1730 * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
1731 * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
1732 * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
1733 * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
1735 * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
1737 * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
1738 * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
1739 * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
1740 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1742 2004-08-25 Paolo Carlini <pcarlini@suse.de>
1744 PR libstdc++/17038 (partial)
1745 * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
1747 * include/bits/locale_facets.h (class __timepunct): Add FIXME
1748 comment about _M_put.
1749 * config/locale/generic/time_members.cc (_M_put): Always null
1751 * config/locale/gnu/time_members.cc (_M_put): Likewise.
1752 * testsuite/22_locale/time_put/put/char/17038.cc: New.
1753 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
1755 2004-08-24 Paolo Carlini <pcarlini@suse.de>
1757 * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
1758 * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
1759 * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
1760 * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
1761 * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
1762 * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
1764 * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
1766 * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
1768 2004-08-22 Matthias Klose <doko@debian.org>
1770 * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
1771 * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1773 2004-08-23 Paolo Carlini <pcarlini@suse.de>
1775 * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
1776 * aclocal.m4: Regenerate with automake-1.9.1.
1777 * configure: Regenerate.
1778 * Makefile.in: Likewise.
1779 * include/Makefile.in: Likewise.
1780 * libmath/Makefile.in: Likewise.
1781 * libsupc++/Makefile.in: Likewise.
1782 * po/Makefile.in: Likewise.
1783 * src/Makefile.in: Likewise.
1784 * testsuite/Makefile.in: Likewise.
1786 2004-08-22 Paolo Carlini <pcarlini@suse.de>
1788 * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
1789 to a signed type, long according to the resolution of DR 359.
1790 * testsuite/22_locale/num_put/put/char/9.cc: New.
1791 * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
1793 * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
1794 Simplify a bit: no need to clear showpos.
1796 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1798 * include/bits/char_traits.h (struct _Char_traits_match): Remove,
1801 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1803 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
1804 wchar_t type for the fill argument; minor formatting tweaks.
1805 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
1806 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
1807 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
1808 * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
1809 * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
1810 * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
1812 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1814 * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
1815 with _M_word != _M_local_word two times, redundantly.
1817 2004-08-20 Jason Merrill <jason@redhat.com>
1819 * include/Makefile.am (${host_builddir}/gthr.h): Don't add
1820 _GLIBCXX_ to #pragma lines.
1821 * include/Makefile.in: Update.
1823 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1825 PR libstdc++/7219 (continued)
1826 * include/bits/ios_base.h (class ios_base): Expose Annex D.6
1827 typedefs by default.
1828 * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
1829 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
1831 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1833 2004-08-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1835 * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
1836 barrier to locking asm.
1838 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1840 * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
1841 actually the warning is a front-end bug (c++/17120).
1843 2004-08-20 Matthias Klose <doko@debian.org>
1845 * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
1847 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1849 * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
1850 used as truth value warning.
1852 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1854 * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
1857 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1859 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
1861 2004-08-19 Benjamin Kosnik <bkoz@redhat.com>
1863 * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
1865 * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
1867 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1869 * testsuite/performance/20_util/allocator/insert.cc: For std::map
1870 instantiate the allocator for a correct pair type.
1871 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1872 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1873 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1876 * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
1877 minor formatting fixes.
1878 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1880 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1882 * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
1884 * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
1885 * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
1886 * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
1887 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
1888 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1889 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1890 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1892 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1894 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1896 2004-08-18 Matthias Klose <doko@debian.org>
1898 * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1899 * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
1900 * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
1902 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1904 * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1906 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1908 * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1910 2004-08-17 Benjamin Kosnik <bkoz@redhat.com>
1912 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1914 2004-08-16 Paolo Carlini <pcarlini@suse.de>
1916 * include/bits/indirect_array.h: Trivial formatting fixes.
1917 * include/bits/valarray_after.h: Likewise.
1918 * include/bits/valarray_array.h: Likewise.
1919 * src/valarray-inst.cc: Likewise.
1921 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1923 * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
1924 * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
1925 * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
1927 * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
1928 * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
1929 * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
1930 * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
1931 * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
1933 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1935 * include/bits/deque.tcc: Trivial formatting fixes.
1937 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1939 * include/bits/deque.tcc: Trivial formatting fixes.
1941 * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
1942 Remove unneded typedef.
1944 * include/bits/locale_facets.tcc: Very minor tweaks.
1946 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
1947 type for the fill argument.
1948 * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
1949 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1950 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1951 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1952 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
1953 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
1954 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
1955 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
1957 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1959 * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
1960 memmove is not needed, memcpy suffices.
1962 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1964 * include/std/std_fstream.h (class basic_ifstream,
1965 class basic_ofstream, class basic_fstream): Add const overloads
1966 of is_open, as per DR 365 [WP].
1967 * docs/html/ext/howto.html: Add an entry for DR 365.
1969 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1971 * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
1973 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1976 * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
1977 to the returned value, reorganize a bit.
1978 * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
1979 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
1981 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
1982 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
1983 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
1984 * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
1986 2004-08-12 Paul Brook <paul@codesourcery.com>
1988 * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
1989 _GLIBCXX_CXA_VEC_CTOR_RETURN.
1990 * config/cpu/generic/cxxabi_tweaks.h: Ditto.
1991 * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
1992 __cxa_vec_ctor_return.
1993 * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
1994 Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
1996 2004-08-12 Kelley Cook <kcook@gcc.gnu.org>
1998 * Makefile.in, aclocal.m4, configure, include/Makefile.in,
1999 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
2000 src/Makefile.in, testsuite/Makefile.in: Regenerate
2002 2004-08-12 Jan Beulich <jbeulich@novell.com>
2004 * config/locale/generic/ctype_members.cc
2005 (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
2006 initializer for return value, as that is invalid for enumerated types.
2007 * config/locale/gnu/ctype_members.cc
2008 (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
2010 2004-08-11 Paolo Carlini <pcarlini@suse.de>
2012 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
2014 2004-08-11 Paolo Carlini <pcarlini@suse.de>
2016 * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
2018 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
2019 * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
2020 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
2021 * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
2022 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
2023 * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
2024 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
2025 * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
2026 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
2027 * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
2028 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
2029 * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
2030 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
2031 * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
2032 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
2033 * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
2034 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
2035 * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
2036 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
2037 * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
2038 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
2040 2004-08-11 Paolo Carlini <pcarlini@suse.de>
2041 Petur Runolfsson <peturr02@ru.is>
2044 * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
2045 standard streams are constructed.
2046 * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
2048 2004-08-09 Paolo Carlini <pcarlini@suse.de>
2050 * include/bits/stl_bvector.h: Trivial formatting fixes.
2052 2004-08-09 Paolo Carlini <pcarlini@suse.de>
2054 * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
2056 2004-08-07 Jonathan Wakely <redi@gcc.gnu.org>
2057 Paolo Carlini <pcarlini@suse.de>
2059 * src/debug.cc (_Error_formatter::_M_print_string): In order
2060 to print individual words from __string, _M_format_word can't
2061 be called since may be just sprintf, thus ignoring completely
2062 __n: instead, use memmove and append '\0' by hand.
2064 2004-08-07 Paolo Carlini <pcarlini@suse.de>
2066 * config/locale/generic/c_locale.h (__convert_from_v): Don't
2067 use a default for __prec, assume __prec >= 0 and simplify.
2068 * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
2069 * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
2070 Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
2072 2004-08-04 Phil Edwards <phil@codesourcery.com>
2074 * docs/html/configopts.html: Emphasize that options change.
2075 * docs/html/17_intro/configury.html: Update links.
2077 2004-08-03 Paolo Carlini <pcarlini@suse.de>
2079 * include/bits/list.tcc: Trivial formatting fixes.
2081 2004-08-03 Mark Mitchell <mark@codesourcery.com>
2083 * libsupc++/new_op.cc: Update comments.
2084 * libsupc++/del_op.cc: Likewise.
2086 2004-08-02 Mark Mitchell <mark@codesourcery.com>
2088 * libsupc++/cxxabi.h: Make all declarations have default
2090 * libsupc++/exception: Likewise.
2091 * libsupc++/new: Likewise.
2092 * libsupc++/typeinfo: Likewise.
2093 * libsupc++/unwind-cxx.h: Likewise.
2094 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
2095 the __cxxabiv1 namespace.
2096 (__cxa_free_exception): Likewise.
2097 * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
2098 (__cxa_bad_typeid): Likewise.
2099 * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
2100 (__cxa_end_catch): Likewise.
2101 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
2102 (__cxa_get_globals): Likewise.
2103 * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
2104 (__cxa_rethrow): Likewise.
2105 * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
2106 * libsupc++/eh_type.cc: Include <cxxabi.h>.
2108 * Makefile.am (hosted_source): Add libmath and testsuite.
2109 (SUBDIRS): Remove them.
2110 * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
2111 on arm*-*-symbianelf*.
2112 * crossconfig.m4: Add arm*-*-symbianelf* support.
2113 * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
2114 when freestanding. Do not bring names into std:: namespace with
2115 "using" when freestanding. Declare required functions and macros
2117 * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
2119 * libsupc++/del_op.cc: Declare "free" only when freestanding.
2120 * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
2121 (malloc): Declare when freestanding.
2124 (__cxa_allocate_exception): Call malloc, not std::malloc. Likewise
2126 (__cxa_free_exception): Likewise for free.
2127 * libsupc++/new_op.cc: Declare "malloc" when freestanding.
2128 * libsupc++/pure.cc (writestr): Define to nothing when
2130 * libsupc++/vterminate.cc: Do not define anything when
2132 * Makefile.in: Regenerated.
2133 * aclocal.m4: Likewise.
2134 * configure: Likewise.
2135 * include/Makefile.in: Likewise.
2136 * libmath/Makefile.in: Likewise.
2137 * libsupc++/Makefile.in: Likewise.
2138 * po/Makefile.in: Likewise.
2139 * src/Makefile.in: Likewise.
2140 * testsuite/Makefile.in: Likewise.
2142 2004-08-01 Matt Austern <austern@apple.com>
2145 * include/bits/stl_list.h (_M_create_node): Remove unused
2146 zero-argument version.
2147 * include/ext/slist (_M_create_node): Pass two arguments to
2148 allocator's construct() member function.
2149 * testsuite/23_containers/deque/explicit_instantiation.cc: New.
2150 * testsuite/23_containers/list/explicit_instantiation.cc: New.
2151 * testsuite/23_containers/vector/explicit_instantiation.cc: New.
2152 * testsuite/23_containers/map/explicit_instantiation.cc: New.
2153 * testsuite/23_containers/set/explicit_instantiation.cc: New.
2154 * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
2155 * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
2156 * testsuite/ext/hash_set_explicit_instantiation.cc: New.
2157 * testsuite/ext/slist_explicit_instantiation.cc: New.
2159 2004-07-30 Paolo Carlini <pcarlini@suse.de>
2161 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2162 num_get<>::_M_extract_int): In the main parsing loop delay the
2163 life of __q to the actual use point.
2165 2004-07-29 Paolo Carlini <pcarlini@suse.de>
2168 * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
2169 Don't clip the precision passed down to __convert_from_v:
2170 22.2.2.2.2 nowhere says so.
2171 * testsuite/22_locale/num_put/put/char/14220.cc: New.
2172 * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
2174 2004-07-29 Paolo Carlini <pcarlini@suse.de>
2176 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
2178 2004-07-29 Paolo Carlini <pcarlini@suse.de>
2179 Petur Runolfsson <peturr02@ru.is>
2181 PR libstdc++/12658 (continued)
2182 * src/locale_init.cc (locale::locale, locale::global): Use
2183 a single locale_mutex instead of two separate mutexes.
2185 2004-07-29 Paolo Carlini <pcarlini@suse.de>
2188 * include/debug/map.h (insert(_InputIterator, _InputIterator)):
2190 * testsuite/23_containers/map/insert/16813.cc: New.
2192 2004-07-29 Phil Edwards <phil@codesourcery.com>
2194 * docs/html/faq/index.html: Update version references. Make
2195 clear that code from SGI has diverged greatly. Remove references
2196 to library snapshots and what's-new sections.
2197 * docs/html/faq/index.txt: Regenerate.
2199 2004-07-28 Matt Austern <austern@apple.com>
2201 * include/bits/stl_construct.h (_Destroy): New three-argument
2202 overload that takes an allocator argument. Another inline
2203 three-argument overload that takes std::allocator and dispatches
2204 to the two-argument version.
2205 * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
2206 Change return type to void to match uninitialized_fill_n.
2207 (__uninitialized_copy_a_): New function. Like uninitialized_copy
2208 except that it takes an allocator and uses it for construct and
2209 destroy. If the allocator is std::allocator, dispatches to
2211 (__uninitialized_fill_a): Likewise.
2212 (__uninitialized_fill_n_a): Likewise.
2213 (__uninitialized_copy_copy): Give it an allocator argument.
2214 (__uninitialized_fill_copy): Likewise.
2215 (__uninitialized_copy_fill): Likewise.
2216 * include/bits/deque.tcc: Use new forms defined in stl_construct.h
2217 and stl_uninitialized.h. Replace use of single-argument _Construct
2218 and _Destroy with use of allocator's construct and destroy methods.
2219 * include/bits/list.tcc: Likewise.
2220 * include/bits/stl_deque.h: Likewise.
2221 * include/bits/stl_list.h: Likewise.
2222 * include/bits/stl_tree.h: Likewise.
2223 * include/bits/stl_vector.h: Likewise.
2224 * include/bits/vector.tcc: Likewise.
2225 * include/ext/hashtable.h: Use rebind so that allocator_type
2226 has correct type for a container's allocator. Replace use of
2227 single-argument _Construct and _Destroy with use of allocator's
2228 construct and destroy methods.
2229 * include/ext/memory (__uninitialized_copy_n_a): New function.
2230 Like uninitialized_copy_n except that it takes an extra parameter,
2231 an allocator, and uses it for construct and destroy operations.
2232 * include/ext/rope: Use new forms defined in stl_construct.h,
2233 stl_uninitialized.h, and ext/memory. Replace use of single-argument
2234 _Construct and _Destroy with allocator construct and destroy methods.
2235 * include/ext/ropeimpl.h: Likewise.
2236 * include/ext/slist.h: Likewise.
2237 * testsuite/testsuite_allocator.h (check_construct_destroy): New.
2238 * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
2239 * testsuite/23_containers/deque/check_construct_destroy.cc: New.
2240 * testsuite/23_containers/list/check_construct_destroy.cc: New.
2241 * testsuite/23_containers/set/check_construct_destroy.cc: New.
2242 * testsuite/23_containers/vector/check_construct_destroy.cc: New.
2243 * testsuite/ext/hash_check_construct_destroy.cc: New.
2244 * testsuite/ext/slist_check_construct_destroy.cc: New.
2246 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
2248 2003-10-01 Eric Christopher <echristo@redhat.com>
2249 * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
2251 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
2252 * config/cpu/sh/atomicity.h: New. Use movli and movco on SH4a.
2254 2004-07-23 Benjamin Kosnik <bkoz@redhat.com>
2257 * include/bits/locale_facets.tcc: Fix for -Werror.
2259 2004-07-23 Jonathan Wakely <redi@gcc.gnu.org>
2261 * docs/html/debug.html: Say debug mode only available since 3.4.0.
2263 2004-07-21 Benjamin Kosnik <bkoz@redhat.com>
2265 * docs/doxygen/mainpage.html: Clarify links.
2266 * docs/doxygen/stdheader.cc: Add files.
2267 * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
2268 * docs/doxygen/user.cfg.in: New options, wrap.
2270 2004-07-20 Danny Smith <dannysmith@users.sourceforge.net>
2272 * include/c_std/std_cwchar.h (wcsstr): Correct signature.
2274 2004-07-19 Benjamin Kosnik <bkoz@redhat.com>
2277 * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
2279 2004-07-17 Richard Sandiford <rsandifo@redhat.com>
2282 * scripts/create_testsuite_files: Pass -print to find.
2284 2004-07-15 Paolo Carlini <pcarlini@suse.de>
2286 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
2287 * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
2289 2004-07-15 Jakub Jelinek <jakub@redhat.com>
2292 * acinclude.m4 (glibcxx_shared_libgcc): Correct
2293 glibcxx_shared_libgcc test for multilibs.
2294 * configure: Rebuilt.
2296 2004-07-14 Paolo Carlini <pcarlini@suse.de>
2299 * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
2300 the signature to return void, as per 20.4.4.3.
2301 * include/bits/stl_vector.h (vector::vector(size_type,
2302 const value_type&, const allocator_type&), vector::vector(size_type),
2303 vector::_M_initialize_dispatch): Adjust callers.
2304 * include/bits/vector.tcc (vector<>::_M_fill_assign,
2305 vector<>::_M_fill_insert): Likewise.
2306 * testsuite/20_util/memory/16505.cc: New.
2308 2004-07-14 Paolo Carlini <pcarlini@suse.de>
2310 * testsuite/22_locale/locale/cons/12658_thread-1.cc,
2311 12658_thread-2.cc: Use __gnu_test::try_named_locale.
2313 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
2315 * docs/html/ext/mt_allocator.html: Add docs for _Tune.
2316 * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
2317 (__mt_alloc::_S_set_options): Same.
2320 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
2322 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
2324 * configure: Regenerated.
2326 2004-07-13 Paolo Carlini <pcarlini@suse.de>
2328 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
2329 to 12658_thread-1.cc and xfail.
2330 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
2331 simpler version of 12658_thread-1.cc, still failing on 3_3 and
2332 not failing on 3_4/mainline - both on single processor and
2333 multiprocessor machines.
2335 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
2337 * docs/html/abi.html: Remove non-public qualification.
2339 * include/bits/concurrence.h: Tweak comments.
2341 2004-07-11 Paolo Carlini <pcarlini@suse.de>
2343 Add wchar_t counterparts of the basic_streambbuf<char> tests.
2344 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
2345 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
2347 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
2348 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
2350 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
2351 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
2352 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
2353 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
2354 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
2356 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
2358 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
2360 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
2362 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
2363 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
2365 2004-07-11 Phil Edwards <phil@codesourcery.com>
2367 * acinclude.m4: Cosmetic shell syntax fixes.
2368 * configure.ac: Bring comment inline with reality.
2369 * configure.host: Both of the above. Move 'arm' case to right
2370 place in host_cpu switch.
2371 * aclocal.m4, configure: Regenerate.
2373 2004-07-09 Paolo Carlini <pcarlini@suse.de>
2375 Add wchar_t counterparts of the basic_stringbuf<char> tests.
2376 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
2377 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
2378 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
2379 3599.cc, 9988.cc: Likewise.
2380 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
2382 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
2384 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
2386 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
2388 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
2389 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
2390 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
2391 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
2393 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
2394 9404-1.cc: Likewise.
2395 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
2396 9404-2.cc: Likewise.
2397 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
2399 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
2400 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
2402 2004-07-08 Paolo Carlini <pcarlini@suse.de>
2404 * include/bits/gslice.h: Trivial formatting fixes.
2405 * include/bits/gslice_array.h: Likewise.
2406 * include/bits/indirect_array.h: Likewise.
2407 * include/bits/mask_array.h: Likewise.
2408 * include/bits/slice_array.h: Likewise.
2409 * include/bits/valarray_after.h: Likewise.
2410 * include/bits/valarray_array.h: Likewise.
2411 * include/bits/valarray_before.h: Likewise.
2412 * include/std/std_valarray.h: Likewise.
2414 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
2417 * include/bits/basic_string.h (basic_string::operator=): Revert.
2419 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
2421 * configure.ac (libtool_VERSION): To 6:2:0.
2422 * configure: Regenerated.
2424 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
2426 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
2429 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
2431 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
2433 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
2436 2004-07-07 Paolo Carlini <pcarlini@suse.de>
2439 * include/bits/sstream.tcc (overflow): When reallocating _M_string
2440 use an exponential grow policy.
2441 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
2442 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
2444 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
2447 * crossconfig.m4: Add in bits for djgpp.
2448 * configure: Regenerate.
2450 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
2452 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
2453 instantiation of set and multiset (functor param given as int).
2455 2004-07-04 Paolo Carlini <pcarlini@suse.de>
2457 * include/bits/basic_string.h: Trivial formatting fixes and/or
2458 const-ification of some variables.
2459 * include/bits/deque.tcc: Likewise.
2460 * include/bits/stl_algobase.h: Likewise.
2461 * include/bits/stl_bvector.h: Likewise.
2462 * include/bits/stl_construct.h: Likewise.
2463 * include/bits/stl_deque.h: Likewise.
2464 * include/bits/stl_pair.h: Likewise.
2465 * include/bits/stl_vector.h: Likewise.
2466 * include/bits/vector.tcc: Likewise.
2468 2004-07-04 Paolo Carlini <pcarlini@suse.de>
2470 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
2471 systems with no COMDAT or weak support.
2472 * testsuite/25_algorithms/copy/2.cc: Likewise.
2473 * testsuite/25_algorithms/copy/3.cc: Likewise.
2474 * testsuite/25_algorithms/copy/4.cc: Likewise.
2476 2004-07-03 Paul Brook <paul@codesourcery.com>
2478 * configure.ac: Set ABI_TWEAKS_SRCDIR.
2479 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
2480 setting atomicity_dir. Override type_cpu for arm based targets.
2481 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
2482 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
2483 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
2484 * libsupc++/vec.cc: Ditto.
2485 * config/cpu/arm/cxxabi_tweaks.h: New file.
2486 * config/cpu/generic/cxxabi_tweaks.h: New file.
2487 * */Makefile.in: Regenerate.
2488 * configure: Regenerate.
2490 2004-07-02 Paolo Carlini <pcarlini@suse.de>
2492 * include/bits/type_traits.h (_Is_normal_iterator): Move...
2493 * include/bits/cpp_type_traits.h: ... here, renamed to
2494 __is_normal_iterator and consistent with the other traits.
2495 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
2496 to the struct __copy_normal and three specializations.
2497 (__copy_backward_output_normal_iterator,
2498 __copy_backward_input_normal_iterator): Likewise, convert to
2499 the struct __copy_backward_normal and three specializations.
2500 (copy, copy_backward): Use the latter.
2501 (__copy_aux, __copy_backward_aux): Very minor tweaks.
2503 2004-07-01 Paolo Carlini <pcarlini@suse.de>
2505 * include/bits/stl_algobase.h (__copy_trivial): Remove.
2506 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
2507 __is_trivially_copyable, __are_same and __copy::copy.
2508 (__copy): Rewrite as a class template and two specializations.
2509 (__copy_ni2): Simplify, just call __copy_aux.
2511 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
2513 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
2514 for destination value type != source value type.
2516 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
2517 Per Bothner <per@bothner.com>
2518 Mohan Embar <gnustuff@thisiscool.com>
2521 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
2522 (__glibcxx_mutex): Encapsulate mutex init function into type for
2523 threaded configurations without __GTHREAD_MUTEX_INIT.
2524 (lock::lock): Make device member a reference.
2525 (lock::~lock): Same.
2526 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
2528 * src/allocator.cc: Same.
2530 2004-06-30 Brad Spencer <spencer@infointeractive.com>
2532 * include/ext/mt_allocator.h: Handle allocations at static
2533 initialization that happen before _S_options is (automatically)
2534 constructed; set _S_init even if _M_force_new is true.
2536 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
2538 * config/linker-map.gnu: Revert new exports.
2540 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
2541 Stuart Anderson <anderson@netsweng.com>
2543 * config/linker-map.gnu: Add destructor exports for abstract base
2544 classes to conform to LSB.
2546 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2547 Paolo Carlini <pcarlini@suse.de>
2549 * include/bits/cpp_type_traits.h: Add __is_pointer and
2550 __is_trivially_copyable.
2551 * include/bits/stl_algobase.h (fill, fill_n): Slightly
2552 tweak to use the latter.
2553 (__copy_backward_dispatch): Remove.
2554 (__copy_backward_aux): Rewrite to use __is_pointer and
2555 __is_trivially_copyable and __copy_backward::copy_b.
2556 (__copy_backward): Rewrite as a class template and two
2559 2004-06-30 Paolo Carlini <pcarlini@suse.de>
2561 * testsuite/25_algorithms/copy.cc: Move to...
2562 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
2563 * testsuite/25_algorithms/copy/2.cc: New.
2564 * testsuite/25_algorithms/copy/3.cc: New.
2565 * testsuite/25_algorithms/copy/4.cc: New.
2567 2004-06-29 Paul Brook <paul@codesourcery.com>
2569 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
2570 element size in the cookie.
2572 2004-06-28 Paolo Carlini <pcarlini@suse.de>
2574 * include/bits/cpp_type_traits.h: Move the additions to
2575 namespace __gnu_internal outside of namespace std; trivial
2578 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
2580 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
2581 Revert -Weffc++ changes that defined copy ctory and or assignment
2583 * libsupc++/tinfo.cc (__upcast_result): Same.
2585 2004-06-28 Paolo Carlini <pcarlini@suse.de>
2587 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
2588 the algorithm used to name the categories.
2590 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
2592 * include/Makefile.am: Give a .gch extension to
2593 the PCH files, not only to the directory.
2594 * include/Makefile.in: Regenerate.
2596 2004-06-28 Paolo Carlini <pcarlini@suse.de>
2598 * config/locale/gnu/monetary_members.cc
2599 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
2600 assignments of _M_decimal_point and _M_thousands_sep.
2602 2004-06-27 Paolo Carlini <pcarlini@suse.de>
2604 * docs/html/17_intro/contribute.html: Update some links.
2605 * docs/html/17_intro/porting-howto.html: Likewise.
2606 * docs/html/17_intro/porting-howto.xml: Likewise.
2607 * docs/html/18_support/howto.html: Likewise.
2608 * docs/html/21_strings/howto.html: Likewise.
2609 * docs/html/27_io/howto.html: Likewise.
2610 * docs/html/configopts.html: Likewise.
2611 * docs/html/ext/howto.html: Likewise.
2612 * docs/html/faq/index.html: Likewise.
2613 * docs/html/install.html: Don't mention 2.x compilers.
2615 2004-06-27 Paolo Carlini <pcarlini@suse.de>
2617 * include/ext/rope: Trivial formatting fixes.
2618 * include/ext/ropeimpl.h: Likewise.
2620 2004-06-26 Paolo Carlini <pcarlini@suse.de>
2623 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
2624 availability of strto(u)ll, not used anymore in the iostreams.
2625 * configure: Regenerate.
2627 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
2630 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
2632 * configure: Regenerate.
2634 2004-06-25 Paul Brook <paul@codesourcery.com>
2636 * libsupc++/cxxabi.h: Define __ARM_EABI__
2638 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
2640 2004-06-25 Paul Brook <paul@codesourcery.com>
2642 * include/bits/concurrence.h: Still create mutex object when
2645 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2647 * include/bits/stl_algobase.h (fill, fill_n): Revert last
2648 change: actually we need to copy construct an object of type
2649 _Tp, not of type iterator_traits<>::value_type, therefore the
2652 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2654 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
2655 dispatch: use iterator_traits<>::value_type, not _Tp.
2657 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2659 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
2660 * testsuite/25_algorithms/fill/2.cc: Likewise.
2662 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
2663 Paolo Carlini <pcarlini@suse.de>
2665 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
2666 for fill and fill_n, respectively: when copying is cheap, use a
2667 temporary to avoid a memory read in each iteration.
2669 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2671 * testsuite/25_algorithms/fill/1.cc: New.
2672 * testsuite/25_algorithms/fill/2.cc: Likewise.
2674 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
2676 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
2677 Remove copy constructor and assignment operator.
2679 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
2681 * include/bits/concurrence.h (__gnu_cxx::lock): New.
2682 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
2683 (__pool_base::_M_get_mutex): New.
2684 * include/bits/allocator.h: Tweak.
2685 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
2686 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
2687 * include/bits/stl_threads.h: Remove.
2688 * include/Makefile.am: Also here.
2689 * include/Makefile.in: Regenerate.
2691 * src/locale_init.cc: Use __gnu_cxx::lock.
2693 * src/allocator.cc: Move all instantiations...
2694 * src/allocator-inst.cc: ...here.
2696 2004-06-23 Andrew Pinski <apinski@apple.com>
2698 * linkage.m4: Remove check for libmx.
2699 * configure: Regenerate.
2701 2004-06-23 Paolo Carlini <pcarlini@suse.de>
2704 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
2705 Don't require the _DefaultConstructibleConcept.
2706 (struct _ForwardIteratorConcept): Require it here.
2708 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
2710 * include/bits/istream.tcc (getline): Make sure arguments passed
2711 to min/max have the same type.
2712 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
2713 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
2715 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
2717 * docs/html/abi.html: Update links.
2719 2004-06-22 Paolo Carlini <pcarlini@suse.de>
2721 * testsuite/26_numerics/complex_inserters_extractors.cc,
2722 complex_value.cc, buggy_complex.cc: Move to...
2723 * testsuite/26_numerics/complex/: ... here.
2724 * testsuite/26_numerics/c99_classification_macros_c++.cc,
2725 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
2726 fabs_inline.cc: Move to...
2727 * testsuite/26_numerics/cmath/: ... here.
2728 * testsuite/26_numerics/binary_closure.cc, slice.cc,
2729 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
2730 valarray_name_lookup.cc, valarray_operators.cc,
2731 valarray_subset_assignment.cc: Move to...
2732 * testsuite/26_numerics/valarray/: ... here (new dir).
2733 * testsuite/26_numerics/sum_diff.cc: Move to...
2734 * testsuite/26_numerics/numeric/: ... here (new dir).
2736 2004-06-22 Paolo Carlini <pcarlini@suse.de>
2738 * include/std/std_istream.h (ignore(streamsize __n = 1,
2739 int_type __delim = traits_type::eof())): Split into...
2740 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2741 int_type __delim)): The first two can be much more simpler
2742 and efficient than the fully general case; also, the last
2743 two can take advantage of the same mechanism already used
2745 * include/bits/istream.tcc (ignore(streamsize __n = 1,
2746 int_type __delim = traits_type::eof()): Remove.
2747 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2748 int_type __delim)): New.
2750 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
2752 * config/linker-map.gnu: Use wildcards for
2753 __basic_file::sys_open(FILE*, _Ios_Openmode).
2755 2004-06-20 Paolo Carlini <pcarlini@suse.de>
2757 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
2759 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2761 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
2762 the alignment requested.
2763 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
2764 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
2765 (__mt_alloc<>::deallocate): Likewise.
2767 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2770 * include/debug/safe_base.h
2771 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
2772 _Safe_sequence_base::operator=): Provide definitions.
2773 * testsuite/23_containers/bitset/cons/16020.cc: New.
2775 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
2777 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
2778 (__pool_base): Remove unused template parameter. Add
2779 protected. Move lock data into __pool_base::_Lock. Remove static
2780 on member functions.
2781 (__pool_base::_M_get_free_list): New.
2782 (__pool_alloc): Move _S_force new here.
2783 * src/allocator.cc: Move out of line __pool_base definitions here.
2784 * config/linker-map.gnu: Export bits from __pool_base.
2786 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2788 * config/locale/gnu/numeric_members.cc
2789 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
2790 assignments of _M_decimal_point and _M_thousands_sep.
2791 * config/locale/gnu/time_members.cc
2792 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
2793 and reformat assignments of date and time fields.
2795 2004-06-16 Paolo Carlini <pcarlini@suse.de>
2797 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
2798 to use _Data_allocate.
2799 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
2800 (rope<>::_S_substring): Likewise.
2801 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
2802 (rope<>::c_str()): Likewise.
2803 (rope<>::replace_with_c_str()): Likewise.
2805 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
2806 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
2808 (_Rope_iterator_base<>::_S_setcache): Likewise.
2809 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
2810 (rope<>::_S_substring): Likewise.
2811 (rope<>::_S_dump): Likewise.
2812 (rope<>::_S_fetch_ptr): Likewise.
2813 (rope<>::_S_compare): Likewise.
2814 (rope<>::replace_with_c_str()): Likewise.
2816 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
2817 * testsuite/ext/rope/2.cc: New.
2819 2004-06-16 Paolo Carlini <pcarlini@suse.de>
2820 Matt Austern <austern@apple.com>
2822 * testsuite/ext/rope/3.cc: New.
2824 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
2826 * acinclude.m4: Remove useless multilib configury.
2827 * Makefile.am: Remove useless multilib rules.
2828 * aclocal.m4: Regenerate.
2829 * Makefile.in: Regenerate.
2830 * configure: Regenerate.
2832 2004-06-15 Paolo Carlini <pcarlini@suse.de>
2834 * include/ext/hashtable.h: Trivial formatting fixes.
2835 * include/ext/rb_tree: Likewise.
2837 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2839 * include/ext/hash_map: Trivial formatting fixes.
2840 * include/ext/hash_set: Likewise.
2841 * include/ext/memory: Likewise.
2842 * include/ext/numeric: Likewise.
2844 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
2846 * Makefile.in: Regenerate with automake 1.8.5.
2848 * include/Makefile.in: Same.
2849 * libmath/Makefile.in: Same.
2850 * libsupc++/Makefile.in: Same.
2851 * po/Makefile.in: Same.
2852 * src/Makefile.in: Same.
2853 * testsuite/Makefile.in: Same.
2855 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2857 * include/ext/slist: Trivial formatting fixes.
2859 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2861 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
2862 Don't use the 'magic number' 10 in the computation of __minlen;
2863 never access __name past __minlen; in the loop over __i3, don't
2864 decrease __nmatches and increase __i3 at once, only either of
2867 2004-06-13 Paolo Carlini <pcarlini@suse.de>
2869 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
2870 time_get<>::do_get_date): Use only once _M_extract_via_format,
2871 instead of going through "%X"/"%x" and calling it two times
2874 2004-06-12 Paolo Carlini <pcarlini@suse.de>
2876 * include/ext/algorithm: Trivial formatting fixes.
2877 * include/ext/functional: Likewise.
2878 * include/ext/hash_fun.h: Likewise.
2879 * include/ext/iterator: Likewise.
2881 2004-06-12 Paolo Carlini <pcarlini@suse.de>
2883 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
2884 size_type)): Reimplement using std::search.
2885 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
2887 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
2889 * testsuite/performance/21_strings/string_find.cc: New.
2891 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
2893 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
2895 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
2897 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
2898 this function return a value.
2900 2004-06-09 Paolo Carlini <pcarlini@suse.de>
2903 * include/bits/stl_deque.h: Consistently with stl_set.h, define
2904 pointer as allocator's pointer, likewise for reference,
2905 const_pointer, and const_reference.
2906 * include/bits/stl_list.h: Likewise.
2907 * include/bits/stl_map.h: Likewise.
2908 * include/bits/stl_multimap.h: Likewise.
2909 * include/bits/stl_vector.h: Likewise.
2911 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
2913 * crossconfig.m4: Remove signbit, signbitf, signbitl.
2914 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
2915 builtin math functions instead of AC_DEFINE_UNQUOTED.
2916 * configure: Regenerate.
2918 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
2920 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
2921 * docs/doxygen/mainpage.html: Remove links.
2923 2004-06-08 Jason Merrill <jason@redhat.com>
2925 * config/linker-map.gnu: Use wildcards for
2926 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
2928 2004-06-08 Paolo Carlini <pcarlini@suse.de>
2930 * include/ext/pool_allocator.h: Convert to a global free-list,
2931 as per the original SGI/HP design: move the implementation
2932 details to struct __pool_base, from which __pool_alloc derives.
2933 * src/allocator.cc: Instantiate __pool_base.
2935 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
2936 Paolo Carlini <pcarlini@suse.de>
2938 * testsuite/testsuite_performance.h
2939 (resource_counter::allocated_memory): Make it return the right
2940 number of bytes requested by the allocators/application. This is
2941 the sbrk+mmaped memory.
2943 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
2945 * include/std/std_complex.h (log): Tidy.
2947 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
2949 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
2950 * testsuite/testsuite_abi.cc: Same.
2951 * configure.ac (libtool_VERSION): Bump to 6:1:0.
2952 * configure: Regenerate.
2953 * aclocal.m4: Regenerate.
2955 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2957 * include/std/std_complex.h (complex<_Tp>): Properly indent
2959 (complex<>::__rep): New.
2960 (__complex_abs): New. Dispatch to built-ins.
2962 (__complex_arg): New. Dispatch to built-ins.
2964 (__complex_cos): New. Dispatch to built-ins.
2966 (__complex_cosh): New. Dispatch to built-ins.
2968 (__complex_exp): New. Dispatch to built-ins.
2970 (__complex_log): New. Dispatch to built-ins.
2972 (__complex_sin): New. Dispatch to built-ins.
2974 (__complex_sinh): New. Dispatch to built-ins.
2976 (__complex_sqrt): New. Dispatch to built-ins.
2978 (__complex_tan): New. Dispatch to built-ins.
2980 (__complex_tanh): New. Dispatch to built-ins.
2982 (__complex_pow): New. Dispatch to built-ins.
2985 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
2986 Benjamin Kosnik <bkoz@redhat.com>
2989 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
2990 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
2991 * config/io/basic_file_stdio.cc (__basic_file::file): New.
2992 * config/io/basic_file_stdio.h: Define.
2994 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
2997 * docs/html/documentation.html: Update doxygen links for 3.4.0.
2999 2004-05-27 Jan Beulich <jbeulich@novell.com>
3001 * scripts/create_testsuite_files: Tweak.
3003 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
3006 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
3007 bits to do the same thing.
3009 2004-05-24 Paolo Carlini <pcarlini@suse.de>
3011 * include/bits/istream.tcc (ignore): Correctly deal with
3012 n == numeric_limits<streamsize>::max().
3013 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
3015 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
3016 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
3017 __n == numeric_limits<>::min().
3019 * include/bits/istream.tcc: Minor tweaks.
3021 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
3023 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
3025 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
3027 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
3029 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
3031 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
3034 Fixups for -Weffc++.
3035 * include/bits/basic_string.h (basic_string::operator=): Return
3036 pointer to this instead of result of assign. Although redundant,
3037 this doesn't impact resultant codegen.
3039 * include/bits/locale_facets.h (__numpunct_cache): Declare
3040 assignment opxserator and copy constructor private.
3041 (__timepunct_cache): Same.
3042 (__moneypunct_cache): Same.
3043 (collate): Use member initialization list for _M_c_locale_collate.
3044 * config/locale/gnu/messages_members.h: Same.
3045 * config/locale/gnu/time_members.h (__timepunct): Same.
3046 * src/codecvt.cc: Use member initialization list to initialize
3047 _M_c_locale_codecvt.
3048 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
3049 * config/os/gnu-linux/ctype_noninline.h: Same.
3050 * src/locale.cc (_Impl): Same.
3051 * src/locale_init.cc: Same.
3052 * src/localename.cc: Same.
3054 * include/bits/basic_ios.h (basic_ios): Complete member
3055 initialization list.
3056 * include/bits/istream.tcc (basic_istream::sentry): Same.
3057 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
3058 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
3059 _M_pback to member initialization list.
3060 * include/std/std_streambuf.h: Same.
3061 * include/std/std_sstream.h: Same, for _M_mode.
3062 * src/ios.cc (ios_base): Same.
3064 * include/ext/rope: Make derived classes match exception
3066 specifications. Add copy constructors and assignment operators.
3068 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
3069 constructor and assignment operator protected.
3070 (_Safe_iterator_base): Same.
3071 * include/debug/formatter.h (_Error_formatter): Define copy
3072 constructor and assignment operator.
3074 * include/backward/strstream: Declare assignment operator and copy
3075 constructor private.
3077 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
3079 * testsuite/testsuite_hooks.h (func_callback): Declare copy
3080 constructor and assignment operator private.
3081 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
3082 exception specifications of base class.
3083 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
3084 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
3085 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
3087 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
3089 * libsupc++/cxxabi.h: Remove duplicated and useless public and
3090 private keywords in class declarations. Format. Use
3091 stddef.h. Expose declarations to "C" compilation.
3092 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
3093 assignment operator.
3094 (__dyncast_result): Same.
3095 * libsupc++/vec.cc (uncatch_exception): Same, use member
3096 initialization list.
3098 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
3100 * testsuite/abi_check.cc: Add unistd.h.
3102 2004-05-22 Paolo Carlini <pcarlini@suse.de>
3105 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
3106 __int_to_char(unsigned long long)): Showpos is not relevant
3108 * testsuite/22_locale/num_put/put/char/15565.cc: New.
3109 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
3111 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
3113 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
3114 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
3115 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
3116 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
3117 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
3118 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
3120 2004-05-21 Matthias Klose <doko@debian.org>
3122 * docs/doxygen/run_doxygen: Bump required version.
3124 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
3126 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
3127 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
3129 2004-05-21 Paolo Carlini <pcarlini@suse.de>
3131 * include/bits/istream.tcc (ignore): Remove redundant line.
3132 (readsome): Tidy, closely following 27.6.1.3, p30.
3134 2004-05-20 Paolo Carlini <pcarlini@suse.de>
3136 * include/bits/istream.tcc (operator>>(basic_istream<>&,
3137 basic_string<>&)): Use a temporary buffer, thus avoiding
3138 reallocation for common case.
3139 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
3141 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
3144 * include/bits/istream.tcc: Const-ification of a few variables.
3146 * include/bits/ostream.tcc: Trivial formatting fixes and
3147 const-ification of some variables.
3149 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
3153 * docs/doxygen/Intro.3: Remove Allocators.3.
3154 Add new extension headers, extension namespace list.
3155 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
3156 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
3157 __gnu_debug::. Remove __policy_ renames.
3158 * docs/doxygen/guide.html: Add dot note.
3159 * docs/doxygen/stdheader.cc: Edit, add files.
3160 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
3162 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
3164 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
3166 2004-05-18 Jan Beulich <jbeulich@novell.com>
3169 * scripts/create_testsuite_files: Also find source files through
3172 2004-05-18 Jan Beulich <jbeulich@novell.com>
3175 * testsuite/lib/libstdc++.exp: Make test files writable.
3177 2004-05-18 Paolo Carlini <pcarlini@suse.de>
3179 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
3182 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
3184 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
3185 allocation loop which removes blocks from the global free list
3186 from O(N) to O(1) when the required blocks are <= the number
3189 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
3191 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
3193 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
3195 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
3196 * testsuite/23_containers/deque/14340.cc: New.
3197 * testsuite/23_containers/list/14340.cc: New.
3198 * testsuite/23_containers/map/14340.cc: New.
3199 * testsuite/23_containers/multimap/14340.cc: New.
3200 * testsuite/23_containers/multiset/14340.cc: New.
3201 * testsuite/23_containers/set/14340.cc: New.
3202 * testsuite/23_containers/vector/14340.cc: New.
3204 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
3207 * include/debug/safe_iterator.h (_Safe_iterator converting
3208 constructor): Only allow declaration to instantiate when the
3209 incoming _Safe_iterator has exactly the right iterator type.
3211 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
3213 * include/bits/boost_concept_check.h: Fix old attribute syntax.
3214 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
3215 to pass concept-checks.
3216 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
3217 * testsuite/23_containers/set/modifiers/swap.cc: Same.
3218 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
3220 2004-05-16 Paolo Carlini <pcarlini@suse.de>
3222 * include/std/std_bitset.h: Minor formatting fixes.
3224 2004-05-16 Paolo Carlini <pcarlini@suse.de>
3226 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3227 Consistently update __bin._M_free[0].
3228 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
3229 __bin._M_free[0] to simplify the while loop (i.e., the number
3230 of iterations becomes known at the outset).
3232 2004-05-15 Paolo Carlini <pcarlini@suse.de>
3234 * include/std/std_bitset.h: Trivial formatting fixes.
3236 2004-05-14 Paolo Carlini <pcarlini@suse.de>
3237 Ivan Godard <igodard@pacbell.net>
3240 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
3241 * testsuite/23_containers/bitset/ext/15361.cc: New.
3243 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
3246 * crossconfig.m4: Add C99 math bits for linux crosses.
3247 * configure: Regenerate.
3249 2004-05-13 Simon Marshall <simon.marshall@misys.com>
3250 Benjamin Kosnik <bkoz@redhat.com>
3253 * include/bits/locale_facets.h: Fix for -fno-for-scope.
3254 * include/debug/safe_sequence.h: Same.
3255 * include/debug/safe_iterator.tcc: Same.
3256 * src/debug.cc: Same.
3257 * src/locale.cc: Same.
3258 * src/locale_init.cc: Same.
3259 * src/localename.cc: Same.
3260 * config/locale/gnu/ctype_members.cc: Same.
3261 * config/locale/gnu/numeric_members.cc: Same.
3262 * testsuite/testsuite_abi.cc: Same.
3263 * testsuite/testsuite_hooks.cc: Same.
3265 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
3267 * docs/html/abi.html: Document effect of -fabi-version on value
3268 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
3271 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
3274 * docs/html/faq/index.html: Update docs for libsupc++ usage.
3276 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
3279 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
3281 (_GLIBCXX_mutex_address): Same.
3282 (_GLIBCXX_once): Same.
3283 (_GLIBCXX_mutex_init): Same.
3284 (_GLIBCXX_mutex_address_init): Same.
3286 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
3288 * docs/html/abi.html: New.
3289 * docs/html/abi.txt: Remove.
3290 * docs/html/documentation.html: Add link.
3291 * testsuite/Makefile.am: Add files.
3292 * testsuite/Makefile.in: Regenerated.
3293 * testsuite/abi_check.cc: Move and modify code into...
3294 * testsuite/testsuite_abi.cc: Add.
3295 * testsuite/testsuite_abi.h: Add.
3297 * docs/html/17_intro/TODO: Update.
3298 * include/bits/stl_pair.h: Format.
3300 2004-05-06 Matthias Klose <doko@debian.org>
3302 * include/backward/iterator.h: Add GPL copyright info,
3303 with exception clause.
3304 * include/bits/boost_concept_check.h: Likewise.
3306 * libsupc++/tinfo.h: Likewise.
3307 * po/string_literals.cc: Likewise.
3309 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
3311 * acinclude.m4: Replace -W with more speaking -Wextra.
3312 * configure: Rebuilt.
3314 2004-05-03 Paolo Carlini <pcarlini@suse.de>
3316 Optimize locale::_M_impl->_M_names for the most common cases:
3317 !_M_names[0] means unnamed; !_M_names[1] means all the categories
3318 the same name (_M_names[0] && _M_names[1] means that the full set
3319 of _M_names must be processed, the general case).
3320 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
3321 Tweak, saving work when !_M_names[1].
3322 (locale::locale(const locale&, _Facet*): Simplify: now just setting
3323 _M_names[0] = 0 means unnamed.
3324 * src/locale.cc (locale::operator==): Deal first with the common,
3325 easy cases, otherwise fall back to locale::name().
3326 (locale::name()): Tweak, if !_M_names[0] just return "*".
3327 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
3328 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
3329 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
3330 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
3331 Simplify when !std::strchr, just updating _M_names[0]; clean up.
3332 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
3333 for the general case (full set of names), then do the usual work;
3336 * src/locale.cc (locale::name()): Reserve space in __ret.
3337 * src/locale_init.cc (locale::global(const locale&)): Save
3338 the name in a temporary.
3339 * src/localename.cc (locale::locale(const char*)): Reserve space
3342 2004-04-29 Paolo Carlini <pcarlini@suse.de>
3344 * src/locale.cc (locale::operator==): Always avoid constructing
3345 locale::name(), directly compare pairs of _M_names.
3347 2004-04-26 Paolo Carlini <pcarlini@suse.de>
3349 * include/bits/istream.tcc: Fix comment.
3351 2004-04-26 Paolo Carlini <pcarlini@suse.de>
3353 * include/bits/stl_vector.h: Trivial formatting fixes.
3354 * include/bits/vector.tcc: Likewise.
3356 2004-04-25 Paolo Carlini <pcarlini@suse.de>
3358 PR libstdc++/15002 (continued again)
3359 * include/bits/istream.tcc (getline(basic_istream<>&,
3360 basic_string<>&, _CharT)): Use a temporary buffer, thus
3361 avoiding reallocation for common case.
3363 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3364 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
3365 of temporary buffer to a power of two.
3367 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
3369 2004-04-25 Paolo Carlini <pcarlini@suse.de>
3371 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
3373 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
3375 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
3377 2004-04-24 Paolo Carlini <pcarlini@suse.de>
3378 Petur Runolfsson <peturr02@ru.is>
3380 PR libstdc++/15002 (continued)
3381 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
3382 streamsize, char_type)): Use traits::find/copy in a loop to speed
3383 up greatly the function in the common case (I/O buffer size >> 1).
3385 2004-04-24 Paolo Carlini <pcarlini@suse.de>
3387 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
3389 * include/bits/istream.tcc (getline(basic_istream<>&,
3390 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
3391 of sbumpc(), consistently with the other functions, thus also
3392 dealing correctly with the case of exceeded string::max_size().
3394 2004-04-24 Matthias Klose <doko@debian.org>
3396 Jonathan Wakely <cow@compsoc.man.ac.uk>
3397 * docs/html/configopts.html: Fix reference to allocator config option.
3399 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
3401 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
3402 * configure: Regenerate.
3404 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
3406 PR libstdc++/15047, libstdc++/11610
3407 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
3408 (libstdc++_init): Don't pass outdir to v3-copy-files.
3410 2004-04-21 Paolo Carlini <pcarlini@suse.de>
3412 * include/bits/deque.tcc: Trivial formatting fixes.
3413 * include/bits/stl_deque.h: Likewise.
3414 * include/bits/stl_list.h: Likewise.
3415 * include/bits/stl_tree.h: Likewise.
3417 2004-04-21 Paolo Carlini <pcarlini@suse.de>
3418 Andrew Pinski <pinskia@physics.uc.edu>
3420 * include/bits/basic_string.tcc (_M_mutate): Don't compute
3421 __src unnecessarily.
3423 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
3425 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
3426 Clarify assertion, set test variable to false before assert.
3427 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
3428 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
3429 * testsuite/27_io/ios_base/storage/2.cc: Same.
3431 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
3433 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
3434 * testsuite/27_io/fpos/14320-3.cc: Same.
3436 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
3437 * testsuite/27_io/fpos/1.cc: Same.
3438 * testsuite/27_io/basic_stringstream/2.cc: Same.
3439 * testsuite/27_io/basic_stringbuf/4.cc: Same.
3440 * testsuite/27_io/basic_stringbuf/1.cc: Same.
3441 * testsuite/27_io/basic_stringbuf/2.cc: Same.
3442 * testsuite/27_io/basic_streambuf/2.cc: Same.
3443 * testsuite/27_io/basic_ostringstream/2.cc: Same.
3444 * testsuite/27_io/basic_ostream/2.cc: Same.
3445 * testsuite/27_io/basic_ofstream/2.cc: Same.
3446 * testsuite/27_io/basic_istringstream/2.cc: Same.
3447 * testsuite/27_io/basic_istream/2.cc: Same.
3448 * testsuite/27_io/basic_iostream/2.cc: Same.
3449 * testsuite/27_io/basic_ios/2.cc: Same.
3450 * testsuite/27_io/basic_ifstream/2.cc: Same.
3451 * testsuite/27_io/basic_fstream/2.cc: Same.
3452 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
3454 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
3455 unsigned against zero.
3456 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
3457 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
3459 * testsuite/18_support/new_delete_placement.cc: Initialize
3460 variables before first use.
3461 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
3462 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
3463 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
3464 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
3466 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
3467 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
3469 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
3470 * testsuite/27_io/types/2.cc: Same.
3472 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
3474 * testsuite/27_io/fpos/14775.cc: Same.
3476 2004-04-19 Paolo Carlini <pcarlini@suse.de>
3478 PR libstdc++/15002 (partial)
3479 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
3480 Special case __n2 == 1, not calling traits_type::assign/copy.
3482 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
3484 * include/bits/stl_bvector.h: Use _M_impl._M_start.
3486 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
3488 * include/bits/c++config (_GLIBCXX_STD): New.
3489 * src/list.cc: Use it.
3490 * include/std/std_bitset.h: Same.
3491 * include/bits/vector.tcc: Same.
3492 * include/bits/stl_set.h: Same.
3493 * include/bits/stl_multiset.h: Same.
3494 * include/bits/stl_multimap.h: Same.
3495 * include/bits/stl_map.h: Same.
3496 * include/bits/stl_list.h: Same.
3497 * include/bits/stl_vector.h: Same.
3498 * include/bits/stl_bvector.h: Same.
3499 * include/bits/stl_deque.h: Same.
3500 * include/bits/deque.tcc: Same.
3501 * include/bits/list.tcc: Same.
3502 * include/debug/vector: Same.
3503 * include/debug/set.h: Same.
3504 * include/debug/multiset.h: Same.
3505 * include/debug/multimap.h: Same.
3506 * include/debug/map.h: Same.
3507 * include/debug/list: Same.
3508 * include/debug/deque: Same.
3509 * include/debug/bitset: Same.
3510 * include/debug/formatter.h (__gnu_debug): Remove using directive.
3511 Add using declaration for std::type_info.
3512 * include/debug/safe_iterator.h: Add using declaration for
3513 std::iterator_traits and std::pair.
3514 * src/debug_list.cc: New.
3515 * src/Makefile.am: Add debug_list.cc.
3516 * src/Makefile.in: Regenerate.
3517 * config/linker-map.gnu: Add _List_node_base exports for std and
3520 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
3521 idiom that other containers use.
3522 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
3524 2004-04-16 Paolo Carlini <pcarlini@suse.de>
3527 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
3529 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
3530 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
3532 2004-04-16 Paolo Carlini <pcarlini@suse.de>
3534 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
3536 * config.h.in: Regenerate.
3538 2004-04-16 Paolo Carlini <pcarlini@suse.de>
3540 * config/locale/generic/monetary_members.cc
3541 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
3542 btowc unnecessarily, just cast to wchar_t (the concerned chars
3543 all belong to the basic character set).
3544 * config/locale/generic/numeric_members.cc
3545 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
3546 * config/locale/gnu/monetary_members.cc
3547 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
3548 * config/locale/gnu/numeric_members.cc
3549 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
3551 2004-04-15 Paolo Carlini <pcarlini@suse.de>
3553 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
3554 avoid constructing unnecessarily this->name().
3556 2004-04-14 Zack Weinberg <zack@codesourcery.com>
3558 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
3559 Change definition of CXX to use $(shell) instead of backticks.
3560 * testsuite/Makefile.in: Regenerate.
3562 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
3564 * testsuite/performance/20_util/allocator/list_sort_search.cc:
3565 Minor formatting fixes.
3566 * testsuite/performance/20_util/allocator/map_mt_find.cc:
3569 2004-04-12 Paolo Carlini <pcarlini@suse.de>
3571 * config/locale/gnu/numeric_members.cc
3572 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
3573 in __uselocale, since btowc is called for chars belonging to
3574 the basic character set.
3576 2004-04-09 Paolo Carlini <pcarlini@suse.de>
3578 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
3579 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
3580 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
3581 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
3582 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
3583 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
3584 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
3585 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
3586 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
3587 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
3588 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
3589 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
3590 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
3591 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
3592 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
3593 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
3594 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
3596 2004-04-07 Paolo Carlini <pcarlini@suse.de>
3598 * config/locale/generic/time_members.cc
3599 (__timepunct<char>::_M_initialize_timepunct,
3600 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
3601 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
3602 * config/locale/gnu/time_members.cc
3603 (__timepunct<char>::_M_initialize_timepunct,
3604 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
3605 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
3606 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
3608 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
3609 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
3610 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
3611 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
3612 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
3613 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
3614 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
3615 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
3616 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
3617 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
3618 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
3619 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
3620 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
3621 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
3622 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
3623 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
3624 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
3625 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
3626 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
3627 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
3628 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
3629 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
3630 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
3631 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
3632 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
3633 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
3634 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
3635 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
3636 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
3637 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
3638 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
3639 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
3640 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
3641 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
3642 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
3643 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
3645 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
3647 2004-04-07 Paolo Carlini <pcarlini@suse.de>
3649 * config/locale/gnu/monetary_members.cc
3650 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
3651 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
3652 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
3653 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
3654 * config/locale/gnu/numeric_members.cc
3655 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
3656 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
3658 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
3660 Fixups for EDG front end.
3661 * include/ext/rope: Instead of non-existent function
3662 _Data_allocate, use allocator's allocate. Use this.
3663 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
3664 enumerations from _Rope_RopeRep here.
3665 * include/ext/ropeimpl.h: Same.
3666 * src/ext-inst.cc (_S_min_len): Fix up definition.
3668 * config/locale/gnu/ctype_members.cc: Qualify base class members
3670 * config/locale/generic/ctype_members.cc: Same.
3671 * config/locale/gnu/messages_members.h: Same.
3672 * config/locale/generic/messages_members.h: Same.
3673 * src/ctype.cc: Same.
3674 * include/bits/codecvt.h: Same.
3676 * include/bits/boost_concept_check.h: Declare.
3677 (__error_type_must_be_an_unsigned_integer_type): Remove this.
3678 (__error_type_must_be_an_integer_type): Remove this.
3679 (__error_type_must_be_a_signed_integer_type): Remove this.
3681 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
3683 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
3684 specification to definition.
3685 (__cxa_allocate_exception): Same.
3686 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
3687 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
3688 (__cxa_get_globals): Same.
3690 * libsupc++/del_op.cc: Add comment about freestanding.
3692 2004-04-05 Paolo Carlini <pcarlini@suse.de>
3694 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3695 The critical section is actually very small, only two assignments.
3697 2004-04-04 Paolo Carlini <pcarlini@suse.de>
3698 Petur Runolfsson <peturr02@ru.is>
3700 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
3701 adapted from libstdc++/11378.
3703 2004-04-03 Paolo Carlini <pcarlini@suse.de>
3705 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
3706 some duplicated code.
3707 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
3708 in the single threaded case.
3709 * testsuite/performance/20_util/allocator/list_sort_search.cc:
3710 Reorder and renumber the tests consistently with the other testfiles.
3711 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3712 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3713 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3715 2004-04-02 Paolo Carlini <pcarlini@suse.de>
3717 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3718 Rearrange arithmetic to avoid computing two divisions at
3721 2004-04-01 Paolo Carlini <pcarlini@suse.de>
3723 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
3724 Streamline the second half, wrapping it in a single
3725 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
3726 conditionals inside loops.
3728 2004-04-01 Paolo Carlini <pcarlini@suse.de>
3731 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
3732 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
3733 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
3734 to _GLIBCXX_RES_LIMITS.
3735 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
3737 * testsuite/testsuite_hooks.h: Declare set_file_limit.
3738 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
3739 and setrlimit(RLIMIT_FSIZE).
3740 * testsuite/27_io/fpos/14775.cc: New.
3741 * config.h.in: Regenerate.
3742 * configure: Likewise.
3744 2004-03-31 Paolo Carlini <pcarlini@suse.de>
3746 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
3747 In v3 uses of sscanf, the special floating-point numbers INF,
3748 INFINITY, etc., cannot occur in input, therefore, if the latter
3749 is too large, ERANGE is always stored in errno, no need of finitel.
3751 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
3754 * include/bits/stl_tree.h: Adjust initialization list order.
3756 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
3758 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
3760 2004-03-29 Paolo Carlini <pcarlini@suse.de>
3762 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
3763 on allocator behavior, the memory pointed by data2 may well be not
3766 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
3769 * include/bits/basic_string.tcc
3770 (basic_string::basic_string(const basic_string&)): Pass to
3771 _Rep::_M_grab the actual allocator of the string being constructed
3772 not the default constructed one.
3774 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
3777 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
3778 (__enc_traits::_M_destroy): New.
3779 (__enc_traits::~__enc_traits): Use it.
3780 (__enc_traits::operator=): Use _M_destroy, _M_init.
3781 (__enc_traits::__enc_traits): Same.
3783 2004-03-27 Petur Runolfsson <peturr02@ru.is>
3785 * testsuite/ext/enc_filebuf/char/13598.cc: New.
3787 2004-03-27 Paolo Carlini <pcarlini@suse.de>
3789 * include/ext/mt_allocator.h: Uglify consistently names of
3790 variables, members and classes; tidy.
3792 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
3794 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3795 Deallocation loop rewrote.
3797 2004-03-26 Paolo Carlini <pcarlini@suse.de>
3799 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3800 __mt_alloc<>::deallocate): Protect two instances of
3801 block->thread_id with __GTHREADS.
3803 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
3805 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
3806 default argument in constructors.
3807 (_Rb_tree::_M_empty_initialize): Remove.
3809 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
3811 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
3812 * testsuite/23_containers/set/operators/1_neg.cc: Same.
3814 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3816 * include/bits/cpp_type_traits.h: Changed __is_pod
3817 completely. Now, it does not use any of the previous type_traits
3818 to detect the pod types, and it also detects function pointers as
3821 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
3822 which encapsulates the internal implementation of an rb_tree. Made
3823 the allocator a base class of this class instead of the rb_tree,
3824 which was not conforming. This _Rb_tree_impl class is also
3825 specialized on whether the _Compare parameter is a POD type or
3826 not. If so, then it maintains the comparison function as a data
3827 member, otherwise it makes the _Compare parameter a base class of
3828 itself. Also, _M_key_compare is now a function instead of a data
3829 member, so that the above trick can work properly. Delegated the
3830 initialization of the other data members to this newly created
3831 class. Also, now other member functions of rb_tree must refer to
3832 _M_key_compare as _M_impl._M_key_compare(). The other data members
3833 (*) can be referenced to as _M_impl.(*), where
3834 (*) includes _M_header, and _M_node_count.
3836 2004-03-25 Paolo Carlini <pcarlini@suse.de>
3838 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
3839 Add _M_min_bin, the size in bytes of the smallest bin.
3840 (__mt_alloc<>::tune()): Tweak accordingly.
3841 (__mt_alloc<>::tune(size_t, ...)): Likewise.
3842 (__mt_alloc<>::block_record): Change to a union: members next
3843 and thread_id are never used at the same time.
3844 (__mt_alloc<>::allocate): Update consistently.
3845 (__mt_alloc<>::deallocate): Likewise.
3846 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
3847 _S_bin_size for the configurable _M_min_size.
3849 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3851 * include/bits/stl_list.h: Created a _List_impl class and made it
3852 derive from the allocator, instead of the list deriving from the
3853 allocator class, which was not conformant. Changed all references
3854 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
3855 as above (changed all references to the concerned variables).
3857 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3859 * include/bits/stl_deque.h: Created a _Deque_impl class and made
3860 it derive from the allocator, instead of the deque deriving from
3861 the allocator class, which was not conformant. Changed all
3862 references to the _M_start, _M_finish, _M_map, and _M_map_size to
3864 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
3865 qualification in 2 places where it was missing.
3866 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
3868 * include/bits/deque.tcc: Same as above (changed all references to
3869 the concerned variables).
3871 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3873 * include/bits/stl_vector.h: Created a _Vector_impl class and made
3874 it derive from the allocator, instead of the _Vector_base class,
3875 deriving from the allocator which was not conformant. Changed all
3876 references to the _M_start, _M_finish, and _M_end_of_storage to
3878 * include/bits/vector.tcc: Same as above (changed all references
3879 to the concerned variables).
3881 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3883 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
3884 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
3885 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
3887 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3889 * include/ext/malloc_allocator.h: Fixed the construct function to
3890 call global placement new instead of assignment. Added a check
3891 after the return from malloc to check whether returned pointer is
3892 NULL, and if so, throw std::bad_alloc().
3893 * include/ext/debug_allocator.h: Added a check in the deallocate
3894 function to check whether the user has passed a NULL pointer or
3897 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
3899 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
3901 2004-03-24 Andreas Schwab <schwab@suse.de>
3903 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
3904 warning from IA64 assembler.
3906 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3908 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
3909 function call __builtin_ctz instead of the while loop.
3910 (allocate) -> If condition has __builtin_expect.
3911 (deallocate) -> Ditto.
3912 Renamed a few left-over variables and typedefs according to the
3913 C++STYLE mentioned in the documentation.
3914 Protected calls to __gthread* by __gthread_active_p(), whose value
3915 is cached in the local variable __threads_active.
3917 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
3919 * testsuite/performance/20_util/allocator/producer_consumer.cc:
3920 Use linear algorithm for producer.
3922 2004-03-24 Paolo Carlini <pcarlini@suse.de>
3924 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3925 __mt_alloc<>::deallocate): Avoid redundant conditionals.
3927 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
3929 * include/bits/locale_facets.h: Tweaks for 80 column.
3930 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
3931 (__moneypunct_cache::_M_cache): Same.
3932 (num_get): Don't inherit from __num_base.
3934 (money_get): Don't inherit from money_base.
3936 (__timepunct::_M_am_pm_format): New.
3937 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
3938 (time_get::_M_extract_name): Same.
3939 (time_get::_M_extract_via_format): Same.
3940 * include/bits/locale_facets.tcc: Tweaks for 80 column.
3941 Use _M_getloc instead of getloc.
3942 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
3943 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
3944 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
3946 2004-03-22 Paolo Carlini <pcarlini@suse.de>
3948 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
3949 * configure: Regenerate.
3950 * config/allocator/pool_allocator_base.h: New.
3951 * include/ext/pool_allocator.h: Convert to a standard-conforming
3953 * src/allocator.cc: Tweak instantiations.
3954 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
3955 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
3956 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
3957 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3958 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3959 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3961 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
3963 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
3964 inline" and attribute-unused. Qualify parameter __mem with
3966 (__exchange_and_add): Ditto. Add back memory clobber to asm.
3968 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3970 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
3972 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
3974 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
3976 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
3978 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
3980 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
3982 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3984 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3986 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
3988 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3991 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3993 * include/std/std_valarray.h: Document DR389 [Ready].
3994 * docs/html/ext/howto.html: Add an entry for DR389.
3996 2004-03-19 Michael Eager <eager@mvista.com>
3998 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
4001 2004-03-19 Paolo Carlini <pcarlini@suse.de>
4003 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
4005 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
4006 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
4007 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
4008 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
4009 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
4010 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
4011 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
4012 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
4013 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
4015 2004-03-19 Paolo Carlini <pcarlini@suse.de>
4016 Petur Runolfsson <peturr02@ru.is>
4019 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
4020 no way to find out the conversion used by the underlying FILE*.
4021 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
4022 * testsuite/27_io/objects/char/9.cc: Tweak.
4024 2004-03-19 Paolo Carlini <pcarlini@suse.de>
4027 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
4028 memory allocation/deallocation calls.
4029 * testsuite/ext/14648.cc: New.
4031 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
4034 * include/backward/bvector.h (bit_vector): Allocator is in std
4037 2004-03-19 Phil Edwards <phil@codesourcery.com>
4039 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
4040 not libiconv. SUBST this variable as well.
4041 * testsuite/Makefile.am (site.exp): New target, based on that
4042 created by automake. Also set libiconv.
4044 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
4045 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
4046 testsuite/Makefile.in: Regenerate.
4048 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
4050 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
4051 new_allocator for all hosts.
4052 * configure: Regenerate.
4054 2004-03-16 Paolo Carlini <pcarlini@suse.de>
4056 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
4057 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
4059 2004-03-15 Paolo Carlini <pcarlini@suse.de>
4061 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4062 Adjust the logic underlying the parsing of symbol to deal
4063 correctly with an optional sign component (i.e., when either
4064 negative_sign or positive_sign is empty)
4065 * testsuite/22_locale/money_get/get/char/19.cc: New.
4066 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
4068 2004-03-15 Paolo Carlini <pcarlini@suse.de>
4070 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4071 Do not accept an incomplete currency symbol.
4072 * testsuite/22_locale/money_get/get/char/18.cc: New.
4073 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
4075 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
4077 * config/allocator: New.
4078 * config/allocator/bitmap_allocator_base.h: New.
4079 * config/allocator/malloc_allocator_base.h: New.
4080 * config/allocator/mt_allocator_base.h: New.
4081 * config/allocator/new_allocator_base.h: New.
4082 * include/bits/allocator.h: Include c++allocator.h.
4083 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
4084 * aclocal.m4: Regenerate.
4085 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
4086 * configure: Regenerate.
4087 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
4088 * include/Makefile.in: Regenerate.
4089 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
4091 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
4093 * include/bits/allocator.h: Revert.
4095 2004-03-12 Paolo Carlini <pcarlini@suse.de>
4097 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
4098 * include/bits/gslice_array.h: Add comment about DR 253.
4099 * include/bits/indirect_array.h: Likewise.
4100 * include/bits/mask_array.h: Likewise.
4101 * include/bits/slice_array.h: Likewise.
4103 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
4105 * testsuite/20_util/allocator/14176.cc: New.
4106 * include/ext/mt_allocator.h: Formatting fixes.
4108 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
4110 * include/Makefile.am (ext_headers): Add
4111 ${ext_srcdir}/bitmap_allocator.h .
4112 * include/Makefile.in: Regenerate.
4113 * docs/html/ext/ballocator_doc.txt: New file.
4114 * include/ext/bitmap_allocator.h: New file.
4115 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
4117 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
4118 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
4119 test for the bitmap_allocator<>.
4120 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
4121 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
4122 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
4124 2004-03-11 Paolo Carlini <pcarlini@suse.de>
4126 * include/std/std_complex.h (pow(const complex&, const _Tp&),
4127 pow(const _Tp&, const complex&), pow(const complex&,
4128 const complex&)): Fully qualify with std:: a few calls.
4129 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
4131 2004-03-11 Steven Bosscher <stevenb@suse.de>
4134 * include/c_std/cmath.tcc (__cmath_power): Define inline.
4136 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
4138 * configure.ac: Bump AC_PREREQ to 2.59.
4140 2004-03-10 Paolo Carlini <pcarlini@suse.de>
4142 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
4144 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
4145 Paolo Carlini <pcarlini@suse.de>
4148 * include/std/std_complex.h (pow(const complex&, const _Tp&),
4149 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
4150 * testsuite/26_numerics/complex/13450.cc: New.
4152 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
4153 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
4155 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
4158 * include/bits/gslice_array.h (gslice_array()): Make public.
4159 (operator=(gslice_array)): Make public. Implement.
4160 * include/bits/indirect_array.h (indirect_array()): Make public.
4161 * include/bits/mask_array.h (mask_array()): Make public.
4162 (operator=(mask_array)): Make public. Implement.
4163 * include/bits/valarray_array.tcc (__valarray_copy):
4164 Comment. Add versions for gslice_array and mask_array.
4165 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
4167 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
4169 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
4171 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
4172 * testsuite/23_containers/set/modifiers/swap.cc: Same.
4173 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
4174 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
4175 * testsuite/23_containers/map/modifiers/swap.cc: Same.
4176 * testsuite/23_containers/list/modifiers/swap.cc: Same.
4178 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
4180 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
4183 * testsuite/23_containers/deque/modifiers/swap.cc: New.
4184 * testsuite/23_containers/list/modifiers/swap.cc: New.
4185 * testsuite/23_containers/map/modifiers/swap.cc: New.
4186 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
4187 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
4188 * testsuite/23_containers/set/modifiers/swap.cc: New.
4189 * testsuite/23_containers/vector/modifiers/swap.cc: New.
4191 2004-03-08 Petur Runolfsson <peturr02@ru.is>
4194 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
4196 2004-03-08 Paolo Carlini <pcarlini@suse.de>
4198 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
4199 * include/bits/stl_multiset.h: Add comment about DR 103.
4200 * include/bits/stl_set.h: Likewise.
4202 2004-03-08 Paolo Carlini <pcarlini@suse.de>
4204 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4205 The value _space_ indicates that at least one space is required
4207 * testsuite/22_locale/money_get/get/char/17.cc: New.
4208 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
4210 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
4211 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
4213 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
4214 Remove redundant conditional on __str.size().
4216 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
4218 * include/bits/allocator.h: Switch defaults to mt_alloc.
4220 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
4222 * include/ext/mt_allocator.h (_S_initialize): If
4223 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
4225 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
4228 * src/locale_init.cc (locale::locale): Lock critical regions with
4230 (locale::global): Same.
4231 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
4232 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
4233 (__glibcxx_mutex_lock): Same.
4235 * config/cpu/generic/atomicity.h: Remove
4236 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
4237 * src/misc-inst.cc: Move all locking bits out of this file.
4239 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
4240 * src/misc-inst.cc: Same.
4241 * config/cpu/hppa/atomicity.h: Same.
4243 * config/linker-map.gnu: Remove types in the signature of atomic
4244 exports, as they may vary.
4246 2004-03-06 Paolo Carlini <pcarlini@suse.de>
4248 * include/bits/locale_facets.tcc: Tweak the comment preceding
4249 has_facet: doesn't throw.
4251 2004-03-06 Paolo Carlini <pcarlini@suse.de>
4253 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
4254 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
4255 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
4256 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
4257 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
4258 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
4259 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
4260 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
4262 2004-03-06 Paolo Carlini <pcarlini@suse.de>
4264 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4265 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
4266 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
4267 * testsuite/testsuite_character.h (struct __gnu_test::character):
4269 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
4272 2004-03-05 Paolo Carlini <pcarlini@suse.de>
4274 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
4276 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
4278 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
4280 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
4282 * testsuite/23_containers/deque/invalidation/4.cc: Same.
4283 * testsuite/23_containers/list/invalidation/1.cc: Same.
4284 * testsuite/23_containers/list/invalidation/2.cc: Same.
4285 * testsuite/23_containers/list/invalidation/3.cc: Same.
4286 * testsuite/23_containers/list/invalidation/4.cc: Same.
4287 * testsuite/23_containers/map/invalidation/2.cc: Same.
4288 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
4289 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
4290 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
4291 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
4292 * testsuite/23_containers/set/invalidation/1.cc: Same.
4293 * testsuite/23_containers/set/invalidation/2.cc: Same.
4294 * testsuite/23_containers/vector/invalidation/1.cc: Same.
4295 * testsuite/23_containers/vector/invalidation/2.cc: Same.
4296 * testsuite/23_containers/vector/invalidation/3.cc: Same.
4297 * testsuite/23_containers/vector/invalidation/4.cc: Same.
4299 2004-03-04 Paolo Carlini <pcarlini@suse.de>
4301 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
4303 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
4305 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
4306 from the dg-options.
4307 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
4308 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
4309 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
4310 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
4311 * testsuite/23_containers/vector/resize/1.cc: Likewise.
4312 * testsuite/26_numerics/complex_value.cc: Likewise.
4313 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
4314 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
4315 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
4316 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
4317 * testsuite/27_io/objects/char/5.cc: Likewise.
4318 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
4319 * testsuite/backward/11460.cc: Likewise.
4320 * testsuite/thread/pthread7-rope.cc: Likewise.
4322 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
4323 missing test variable.
4324 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
4325 missing test variable.
4327 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
4329 * testsuite/20_util/allocator/1.cc: Provide explicit
4330 instantiations for non-weak systems.
4331 * testsuite/20_util/binders.cc: Same.
4332 * testsuite/20_util/allocator/8230.cc: Same.
4333 * testsuite/20_util/allocator/10378.cc: Same.
4334 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
4335 * testsuite/22_locale/ctype/is/char/2.cc: Same.
4336 * testsuite/thread/pthread7-rope.cc: Same.
4337 * testsuite/thread/pthread6.cc: Same.
4338 * testsuite/thread/pthread5.cc: Same.
4339 * testsuite/thread/pthread4.cc: Same.
4340 * testsuite/thread/pthread1.cc: Same.
4341 * testsuite/ext/rope.cc: Same.
4342 * testsuite/ext/hash_set.cc: Same.
4343 * testsuite/ext/hash_map.cc: Same.
4344 * testsuite/ext/concept_checks.cc: Same.
4345 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
4346 * testsuite/25_algorithms/unique/2.cc: Same.
4347 * testsuite/25_algorithms/unique/1.cc: Same.
4348 * testsuite/25_algorithms/rotate.cc: Same.
4349 * testsuite/25_algorithms/min_max.cc: Same.
4350 * testsuite/25_algorithms/equal.cc: Same.
4351 * testsuite/24_iterators/rel_ops.cc: Same.
4352 * testsuite/24_iterators/iterator.cc: Same.
4353 * testsuite/24_iterators/insert_iterator.cc: Same.
4354 * testsuite/24_iterators/front_insert_iterator.cc: Same.
4355 * testsuite/24_iterators/back_insert_iterator.cc: Same.
4356 * testsuite/23_containers/vector/resize/1.cc: Same.
4357 * testsuite/23_containers/vector/modifiers/2.cc: Same.
4358 * testsuite/23_containers/vector/modifiers/1.cc: Same.
4359 * testsuite/23_containers/vector/invalidation/4.cc: Same.
4360 * testsuite/23_containers/vector/invalidation/3.cc: Same.
4361 * testsuite/23_containers/vector/invalidation/2.cc: Same.
4362 * testsuite/23_containers/vector/invalidation/1.cc: Same.
4363 * testsuite/23_containers/vector/element_access/1.cc: Same.
4364 * testsuite/23_containers/vector/cons/6513.cc: Same.
4365 * testsuite/23_containers/vector/cons/3.cc: Same.
4366 * testsuite/23_containers/vector/cons/2.cc: Same.
4367 * testsuite/23_containers/vector/cons/1.cc: Same.
4368 * testsuite/23_containers/vector/capacity/8230.cc: Same.
4369 * testsuite/23_containers/vector/capacity/1.cc: Same.
4370 * testsuite/23_containers/vector/bool/6886.cc: Same.
4371 * testsuite/23_containers/stack/members/7158.cc: Same.
4372 * testsuite/23_containers/set/invalidation/2.cc: Same.
4373 * testsuite/23_containers/set/invalidation/1.cc: Same.
4374 * testsuite/23_containers/queue/members/7157.cc: Same.
4375 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
4376 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
4377 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
4378 * testsuite/23_containers/multiset/insert/1.cc: Same.
4379 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
4380 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
4381 * testsuite/23_containers/map/operators/1.cc: Same.
4382 * testsuite/23_containers/map/invalidation/2.cc: Same.
4383 * testsuite/23_containers/map/invalidation/1.cc: Same.
4384 * testsuite/23_containers/map/insert/1.cc: Same.
4385 * testsuite/23_containers/list/operators/4.cc: Same.
4386 * testsuite/23_containers/list/operators/3.cc: Same.
4387 * testsuite/23_containers/list/operators/2.cc: Same.
4388 * testsuite/23_containers/list/operators/1.cc: Same.
4389 * testsuite/23_containers/list/modifiers/3.cc: Same.
4390 * testsuite/23_containers/list/modifiers/2.cc: Same.
4391 * testsuite/23_containers/list/modifiers/1.cc: Same.
4392 * testsuite/23_containers/list/invalidation/4.cc: Same.
4393 * testsuite/23_containers/list/invalidation/3.cc: Same.
4394 * testsuite/23_containers/list/invalidation/2.cc: Same.
4395 * testsuite/23_containers/list/invalidation/1.cc: Same.
4396 * testsuite/23_containers/list/cons/9.cc: Same.
4397 * testsuite/23_containers/list/cons/8.cc: Same.
4398 * testsuite/23_containers/list/cons/7.cc: Same.
4399 * testsuite/23_containers/list/cons/6.cc: Same.
4400 * testsuite/23_containers/list/cons/5.cc: Same.
4401 * testsuite/23_containers/list/cons/4.cc: Same.
4402 * testsuite/23_containers/list/cons/3.cc: Same.
4403 * testsuite/23_containers/list/cons/2.cc: Same.
4404 * testsuite/23_containers/list/cons/1.cc: Same.
4405 * testsuite/23_containers/list/capacity/1.cc: Same.
4406 * testsuite/23_containers/deque/operators/1.cc: Same.
4407 * testsuite/23_containers/deque/invalidation/4.cc: Same.
4408 * testsuite/23_containers/deque/invalidation/3.cc: Same.
4409 * testsuite/23_containers/deque/invalidation/2.cc: Same.
4410 * testsuite/23_containers/deque/invalidation/1.cc: Same.
4411 * testsuite/23_containers/deque/cons/2.cc: Same.
4412 * testsuite/23_containers/deque/cons/1.cc: Same.
4414 * src/allocator.cc: Add char, wchar_t instantiations
4415 to match extern template declarations in memory.h.
4417 2004-03-03 Paolo Carlini <pcarlini@suse.de>
4419 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4420 Fix warning regression.
4422 2004-03-03 Paolo Carlini <pcarlini@suse.de>
4424 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4425 Deal properly with empty __digits and negative frac_digits,
4428 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
4430 * docs/html/documentation.html: Regenerate.
4432 2004-03-02 Paolo Carlini <pcarlini@suse.de>
4435 * include/bits/postypes.h (class streamoff): Remove, now
4436 streamoff is just typedef a 64 bit signed integer type.
4437 (class fpos): Tweak consistently.
4438 * testsuite/27_io/fpos/14320-1.cc: New.
4439 * testsuite/27_io/fpos/14320-2.cc: New.
4440 * testsuite/27_io/fpos/14320-3.cc: New.
4441 * testsuite/27_io/fpos/14320-4.cc: New.
4442 * testsuite/27_io/fpos/14320-5.cc: New.
4443 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
4445 2004-03-02 Paolo Carlini <pcarlini@suse.de>
4447 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4448 Reorganize a bit the main parsing loop, thus early detecting
4449 an empty value component.
4450 * testsuite/22_locale/money_get/get/char/16.cc: New.
4451 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
4453 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
4455 Support automake 1.8.2
4456 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
4457 * po/Makefile.am (EXTRA_DIST): New.
4458 * po/Makefile.in: Regenerate.
4459 * Makefile.in: Same.
4460 * include/Makefile.in: Same.
4461 * libmath/Makefile.in: Same.
4462 * libsupc++/Makefile.in: Same.
4463 * src/Makefile.in: Same.
4464 * testsuite/Makefile.in: Same.
4466 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
4467 __GXX_WEAK__ instead of SUPPORTS_WEAK.
4468 (${host_builddir}/gthr-default.h): Same.
4469 (${host_builddir}/gthr.h): Same.
4470 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
4471 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
4473 * aclocal.m4: Regenerate.
4474 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
4475 * config.h.in: Regenerate.
4478 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
4480 Support autoconf 2.59
4481 * acinclude.m4: Quote correctly.
4482 * aclocal.m4: Regenerate.
4485 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
4487 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
4489 * docs/html/18_support/howto.html: Add bit about writing to
4490 stderr, mostly by Zack.
4492 2004-03-01 Paolo Carlini <pcarlini@suse.de>
4494 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
4495 money_get<>::do_get(string_type&)): ... and two more.
4497 2004-03-01 Paolo Carlini <pcarlini@suse.de>
4499 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4500 Fix thinkos in the switch from string_type& to string& as last
4503 2004-03-01 Paolo Carlini <pcarlini@suse.de>
4505 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
4506 Also when parsing exponent sign, first look for thousands_sep
4507 and decimal_point; tweak a bit.
4508 * testsuite/22_locale/num_get/get/char/15.cc: New.
4509 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
4511 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4512 num_get<>::_M_extract_int): Reorder some conditionals.
4514 2004-03-01 Paolo Carlini <pcarlini@suse.de>
4516 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4517 Consistently with numpunct, enforce the requirements in
4518 22.2.6.3, p3 for the thousands separators; tweak a bit.
4519 * testsuite/22_locale/money_get/get/char/15.cc: New.
4520 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
4522 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
4524 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
4525 testsuite_files from correct multilib blddir when running
4528 2004-02-29 Phil Edwards <phil@codesourcery.com>
4530 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
4531 the summary file to the logfile.
4532 * testsuite/Makefile.in: Regenerate.
4534 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4536 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
4538 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
4539 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
4541 2004-02-28 Paolo Carlini <pcarlini@suse.de>
4543 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
4544 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
4545 no 'decimal-point' in the middle: in this case too we must fix
4546 up __found_grouping; slightly tweak.
4547 * testsuite/22_locale/num_get/get/char/14.cc: New.
4548 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
4550 2004-02-27 Eric Christopher <echristo@redhat.com>
4551 Phil Edwards <phil@codesourcery.com>
4553 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
4554 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
4555 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
4556 testsuite/22_locale/collate/hash/wchar_t/2.cc,
4557 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
4558 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
4559 testsuite/22_locale/collate/transform/wchar_t/2.cc,
4560 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
4561 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4562 Use dg-require-iconv.
4563 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
4565 2004-02-27 Phil Edwards <phil@codesourcery.com>
4566 Eric Christopher <echristo@redhat.com>
4568 * testsuite/config/default.exp: Update with comments.
4569 (${tool}_target_compile): New wrapper routine.
4570 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
4571 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
4573 (load_gcc_lib, v3track): New routines.
4574 (v3-init): Rename to libstdc++_init.
4575 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
4576 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
4578 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
4580 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
4582 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
4584 * config/os/irix/irix5.2/atomicity.h: Merge..
4585 * config/os/irix/irix6.5/atomicity.h: Merge..
4586 * config/os/irix/atomicity.h: ...into this.
4587 * config/os/irix/atomic_word.h: New.
4588 * configure.host: Set atomic_word_dir for irix.
4590 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
4591 * i386/atomicity.h: Same.
4592 * m68k/atomicity.h: Same.
4593 * sparc/atomicity.h: Same.
4595 2004-02-27 David Edelsohn <edelsohn@gnu.org>
4597 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
4598 static, and inline keywords.
4600 2004-02-27 Paolo Carlini <pcarlini@suse.de>
4602 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4603 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
4604 call reserve on the __tmp_gruping string.
4605 (num_get<>::_M_extract_float): Don't append unnecessarily a
4606 char() to the returned string.
4607 * include/bits/locale_facets.tcc: Trivial reformattings.
4609 2004-02-27 Paolo Carlini <pcarlini@suse.de>
4611 * include/bits/locale_facets.h (money_get<>::_M_extract):
4612 Change signature: now takes a plain string&.
4613 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4614 Update consistently the definition; use the moneypunct cache
4615 to parse the value; use swap to change __units.
4616 (money_get<>::do_get(long double&)): Update call of _M_extract,
4617 avoid ctype::narrow, not correct wrt the standard.
4618 (money_get<>::do_get(string_type&)): Likewise, update call
4619 of _M_extract, use ctype::widen.
4620 * src/locale-inst.cc: Tweak instantiations of _M_extract.
4622 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
4624 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
4625 * testsuite/demangle/abi_examples/02.cc: Likewise.
4626 * testsuite/demangle/regression/cw-11.cc: Likewise.
4627 * testsuite/demangle/regression/cw-16.cc: Change two expected
4628 results to match libiberty demangler output.
4630 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
4633 * libsupc++/Makefile.am: Use libiberty demangler.
4634 (c_sources): Add cp-demangle.c.
4635 * libsupc++/Makefile.in: Regenerate.
4636 * src/Makefile.am (sources): Remove demangle.cc.
4637 * src/Makefile.in: Regenerate.
4638 * include/Makefile.am (bits_headers): Move demangle.h.
4639 (ext_headers): ...here.
4640 * include/Makefile.in: Regenerate.
4641 * include/bits/demangle.h: Move...
4642 * include/ext/demangle.h: ...here.
4643 * src/demangle.cc: Remove.
4645 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
4647 * include/bits/demangle.h: Add type template parameter to all
4648 templates with just an Allocator template parameter.
4650 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
4652 * include/bits/atomicity.h: New, forward declarations for __atomic_add
4653 and __exchange_and_add.
4654 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
4655 * config/cpu/cris/atomic_word.h: Same.
4656 * config/cpu/sparc/atomic_word.h: Same.
4657 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
4658 Qualifiy with __gnu_cxx.
4659 (_Callback_list::_M_add_reference): Same.
4660 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
4661 (locale::facet::_M_remove_reference): Same.
4662 (locale::_Impl::_M_add_reference): Add.
4663 (locale::_Impl::_M_remove_reference): Same.
4664 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
4665 (basic_string::_Rep::_M_dispose): Same.
4666 * src/ios.cc (ios_base::xalloc): Same.
4667 * src/ios_init.cc (ios_base::Init::Init): Same.
4668 (ios_base::Init::~Init): Same.
4669 * src/locale.cc (locale::id::_M_id): Same.
4670 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
4671 static, and inline keywords.
4672 * config/cpu/alpha/atomicity.h: Same.
4673 * config/cpu/cris/atomicity.h: Same.
4674 * config/cpu/generic/atomicity.h: Same.
4675 * config/cpu/hppa/atomicity.h: Same.
4676 * config/cpu/i386/atomicity.h: Same.
4677 * config/cpu/ia64/atomicity.h: Same.
4678 * config/cpu/m68k/atomicity.h: Same.
4679 * config/cpu/mips/atomicity.h: Same.
4680 * config/cpu/powerpc/atomicity.h: Same.
4681 * config/cpu/s390/atomicity.h: Same.
4682 * config/cpu/sparc/atomicity.h: Same.
4684 * src/Makefile.am (host_sources): Add atomicity.cc.
4685 (atomicity.cc): New rule.
4686 * src/Makefile.in: Regenerate.
4687 * include/Makefile.am (host_headers): Remove host atomicity.h.
4688 (host_headers): Add atomic_word.h.
4689 (bits_headers): Add bits atomicity.h.
4690 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
4691 * include/Makefile.in: Regenerate.
4692 * configure.host (atomic_word_dir): Add.
4693 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
4694 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
4695 * configure: Regenerate.
4696 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
4698 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
4699 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
4701 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
4703 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
4704 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
4705 Fix markup, more <link> tags.
4707 2004-02-25 Carlo Wood <carlo@alinoe.com>
4710 namespace __gnu_cxx::demangler
4711 (session<Allocator>::qualifier_list_Allocator): Add
4712 (session<Allocator>::M_qualifier_list_alloc): Add
4713 (session<Allocator>::decode_type_with_postfix):
4714 Use M_qualifier_list_alloc instead of calling operator new/delete.
4716 2004-02-24 Paolo Carlini <pcarlini@suse.de>
4719 * include/bits/postypes.h (class streamoff): Add operator++(),
4720 operator++(int), operator--() and operator--(int).
4721 * testsuite/27_io/fpos/14252.cc: New.
4723 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
4725 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
4726 error in handling of hex constants.
4728 2004-02-24 Paolo Carlini <pcarlini@suse.de>
4730 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4731 Prefer basic_string::append to operator+= and a temporary.
4733 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
4735 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
4736 Only use fputs, not write.
4738 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
4740 * include/ext/malloc_allocator.h: Add operators ==, !=.
4741 * include/ext/new_allocator.h: Add operators ==, !=.
4742 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
4743 (__mt_alloc::_S_get_options): New.
4744 (__mt_alloc::_S_set_options): New.
4745 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
4746 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
4747 Move functions out of line, simplify, format.
4748 * src/allocator.cc: Simplify explicit instantiations.
4749 * include/bits/allocator.h: Tweak.
4751 2004-02-22 Paolo Carlini <pcarlini@suse.de>
4753 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4754 Restructure formatting of value component, first dealing with
4755 the non-decimal digits; use reserve.
4757 2004-02-22 Paolo Carlini <pcarlini@suse.de>
4759 * include/bits/locale_facets.h (class money_get): Inherit
4760 from money_base too; tweak declaration of _M_extract, now
4761 parameterized on _Intl too.
4762 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4763 Update definition to use the cache; call reserve on __res to
4764 avoid multiple reallocations; fix parsing of sign component
4765 according to 22.2.6.1.2, p3.
4766 (money_get<>::do_get(long double&),
4767 money_get<>::do_get(string_type&)): Update calls of _M_extract.
4768 * src/locale-inst.cc: Add instantiations of
4769 money_get::_M_extract<false> and money_get::_M_extract<true>.
4770 * testsuite/22_locale/money_get/get/char/14.cc: New.
4771 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
4773 2004-02-21 Mark Mitchell <mark@codesourcery.com>
4775 * libsupc++/vterminate.cc
4776 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
4778 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
4780 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
4781 not set RLIMIT_AS on HP-UX.
4783 2004-02-21 Mark Mitchell <mark@codesourcery.com>
4785 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
4786 not set RLIMIT_AS on HP-UX.
4788 2004-02-21 Paolo Carlini <pcarlini@suse.de>
4790 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
4791 _S_zero, _S_end } enum, _S_atoms.
4792 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
4793 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
4794 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
4795 (__moneypunct_cache<>::~__moneypunct_cache): Update.
4796 (__moneypunct_cache<>::_M_cache): Fill the cache.
4797 (class moneypunct): Tweak __cache_type typedef.
4798 (class money_put): Inherit from money_base too; tweak declaration
4799 of _M_insert, now parameterized on _Intl.
4800 * include/bits/locale_facets.tcc
4801 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
4802 (money_put<>::_M_insert): Update definition to use the cache;
4803 call reserve on __res to avoid multiple reallocations.
4804 (money_put<>::do_put(long double),
4805 money_put<>::do_put(const string_type&): Update calls of _M_insert.
4806 * config/locale/generic/monetary_members.cc
4807 (moneypunct<char, true>::_M_initialize_moneypunct,
4808 moneypunct<char, false>::_M_initialize_moneypunct,
4809 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
4810 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
4811 * config/locale/gnu/monetary_members.cc: Likewise.
4812 * config/locale/gnu/monetary_members.cc
4813 (moneypunct<wchar_t, true>::~moneypunct(),
4814 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
4815 * src/globals_locale.cc: Tweak fake_money_cache_c.
4816 * src/locale-inst.cc: Add instantiations for
4817 money_put::_M_insert<false> and money_put::_M_insert<true> and
4818 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
4819 * src/locale_facets.cc: Define money_base::_S_atoms.
4820 * src/locale_init.cc: Update placement new of
4821 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
4822 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
4824 * config/locale/generic/numeric_members.cc: Clean up.
4825 * config/locale/gnu/numeric_members.cc: Likewise.
4826 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
4827 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
4828 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
4829 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
4830 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
4831 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
4833 2004-02-20 Mark Mitchell <mark@codesourcery.com>
4835 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
4836 FIFO for writing with ios_base::in|ios_base::out.
4837 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
4838 * testsuite/27_io/objects/char/7.cc: Likewise.
4839 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
4842 2004-02-19 David Edelsohn <edelsohn@gnu.org>
4844 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
4845 from iso-8859-1 to ISO8859-1.
4846 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
4847 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
4848 * 22_locale/collate/hash/wchar_t/2.cc: Same.
4849 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
4850 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
4851 * 22_locale/collate/transform/wchar_t/2.cc: Same.
4852 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
4853 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
4855 2004-02-18 Paolo Carlini <pcarlini@suse.de>
4857 * include/bits/locale_facets.h (money_get<>::_M_extract):
4858 New, helper for do_get.
4859 (money_put<>::_M_insert): Likewise, for do_put.
4860 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
4861 money_put<>::_M_insert): Define.
4862 (money_get<>::do_get(long double&), money_get<>::do_get(
4863 string_type&), money_put::do_put(long double),
4864 money_put::do_put(const string_type&)): Use the helpers.
4866 2004-02-18 Paolo Carlini <pcarlini@suse.de>
4868 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4869 Rewrite, avoiding recursion.
4870 (__gnu_internal::xwrite): Minor tweaks.
4872 2004-02-17 Stefan Olsson <stefan@xapa.se>
4874 * include/ext/mt_allocator.h: Removed the last
4875 pointer. Deallocated blocks are now added to the front of
4876 freelists as proposed by Felix Yen. This gives roughly 10%
4877 performance boost and saves some memory.
4878 * docs/html/ext/mt_allocator.html: Change due to that deallocated
4879 blocks now are added to the front of freelists. The reason to this
4880 approach is also explained.
4882 2004-02-17 Paolo Carlini <pcarlini@suse.de>
4884 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4885 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
4886 grouping fidelity conditional.
4888 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4890 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
4891 Qualify exception with std::.
4892 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
4893 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4894 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4895 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4896 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4898 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4900 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
4901 for now that the catch block is not reached.
4902 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
4904 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4906 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4907 Fix parsing of the remaining sign characters.
4908 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
4909 the input is scanned 'til eof.
4910 * 22_locale/money_get/get/char/4.cc: Likewise.
4911 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
4912 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
4913 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
4914 not do_pos_format: the former is the only one that matters during
4916 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
4918 * 22_locale/money_get/get/char/6.cc: Minor tweak.
4919 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
4921 2004-02-15 David Asher <david.asher@cavium.com>
4924 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
4925 access __olds beyond __oldlen.
4927 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4929 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
4930 sure the exception is actually thrown.
4931 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4932 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4933 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4935 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4938 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
4939 In case of conversion errors, throw ios_failure; simplify.
4940 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
4941 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4942 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
4943 previously we didn't throw in case of conversion errors, instead
4944 just returned eof().
4945 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4946 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4947 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4949 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
4950 Trivial simplification of a conditional.
4952 2004-02-12 Paolo Carlini <pcarlini@suse.de>
4954 PR libstdc++/13731 (final part: writev)
4955 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4956 New, a wrapper around writev() handling partial writes.
4957 (__basic_file<char>::xwrite): Move to __gnu_internal and make
4959 (__basic_file<char>::xsputn): Update call.
4960 (__basic_file<char>::xsputn_2): Likewise.
4961 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4962 Don't declare, now static.
4964 2004-02-11 Stefan Olsson <stefan@xapa.se>
4966 * docs/html/ext/mt_allocator.html: New.
4968 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
4970 * docs/html/20_util/allocator.html: New file, consolidate
4971 allocator information here. Revamp.
4972 * docs/html/documentation.html: Change links.
4973 * docs/html/20_util/howto.html: Same.
4974 * docs/html/ext/howto.html: Same.
4976 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4978 PR libstdc++/13731 (first part: write)
4979 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4981 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
4982 Define it: a wrapper around write() handling partial write.
4983 (__basic_file<char>::xsputn): Use it.
4984 (__basic_file<char>::xsputn_2): Likewise.
4986 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4987 Petur Runolfsson <peturr02@ru.is>
4990 * include/std/std_istream.h (operator>>(__istream_type& (*)
4991 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
4992 operator>>(ios_base& (*)(ios_base&))): Declare inline.
4993 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
4994 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
4995 operator<<(ios_base& (*) (ios_base&))): Likewise.
4996 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
4998 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
5001 * config/linker-map.gnu: Add typeinfo and typeinfo name for
5002 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
5005 * config/linker-map.gnu: Add typeinfo and typeinfo name for
5006 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
5008 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
5010 * include/ext/pool_allocator.h: Include c++config.h.
5012 2004-02-09 Stefan Olsson <stefan@xapa.se>
5014 * include/ext/mt_allocator.h: thread_id is unused in non threaded
5015 applications and now has a ifdef to remove it completely on
5016 compilers without thread support. Include stdlib.h due to a
5017 compiler warning on getenv().
5019 2004-02-09 Paul Brook <paul@codesourcery.com>
5021 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
5023 2004-02-09 Paolo Carlini <pcarlini@suse.de>
5026 * src/locale_init.cc (locale::global(const locale&)): Use
5027 locale::name() in order to decide whether calling setlocale.
5028 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
5030 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
5031 Avoid computing &= unnecessarily.
5033 2004-02-09 James E Wilson <wilson@specifixinc.com>
5036 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
5037 __builtin_extend_pointer.
5039 2004-02-09 Paolo Carlini <pcarlini@suse.de>
5042 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
5043 Don't leave dangling pointers.
5044 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
5045 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
5046 facet is needed in the final test.
5048 2004-02-09 Bernardo Innocenti <bernie@develer.com>
5050 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
5051 * configure: Regenerate.
5053 2004-02-08 Richard Henderson <rth@redhat.com>
5056 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
5057 uncaughtExceptions during nested catch rethrow.
5058 * testsuite/18_support/14026.cc: New.
5060 2004-02-08 Paolo Carlini <pcarlini@suse.de>
5062 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
5063 When working in place remember to set the state to sharable
5064 (otherwise, _M_mutate does it).
5066 2004-02-08 Bernardo Innocenti <bernie@develer.com>
5068 * include/bits/allocator.h, include/bits/basic_ios.h,
5069 include/bits/basic_ios.tcc, include/bits/basic_string.h,
5070 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
5071 include/bits/char_traits.h, include/bits/codecvt.h,
5072 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
5073 include/bits/demangle.h, include/bits/deque.tcc,
5074 include/bits/fstream.tcc, include/bits/functexcept.h,
5075 include/bits/gslice.h, include/bits/gslice_array.h,
5076 include/bits/indirect_array.h, include/bits/ios_base.h,
5077 include/bits/istream.tcc, include/bits/list.tcc,
5078 include/bits/locale_classes.h, include/bits/locale_facets.h,
5079 include/bits/locale_facets.tcc, include/bits/localefwd.h,
5080 include/bits/mask_array.h, include/bits/ostream.tcc,
5081 include/bits/postypes.h, include/bits/slice_array.h,
5082 include/bits/sstream.tcc, include/bits/stl_algo.h,
5083 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
5084 include/bits/stl_construct.h, include/bits/stl_deque.h,
5085 include/bits/stl_function.h, include/bits/stl_heap.h,
5086 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
5087 include/bits/stl_list.h, include/bits/stl_map.h,
5088 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
5089 include/bits/stl_numeric.h, include/bits/stl_pair.h,
5090 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
5091 include/bits/stl_relops.h, include/bits/stl_set.h,
5092 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
5093 include/bits/stl_threads.h, include/bits/stl_tree.h,
5094 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
5095 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
5096 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
5097 include/bits/type_traits.h, include/bits/valarray_after.h,
5098 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
5099 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
5100 trailing whitespace.
5102 2004-02-06 Paolo Carlini <pcarlini@suse.de>
5104 * include/bits/basic_string.h: Fix comment.
5106 2004-02-06 Paolo Carlini <pcarlini@suse.de>
5108 * include/bits/stl_construct.h: Wrap overlong lines, reformat
5109 according to the coding standards.
5110 * include/bits/stl_pair.h: Likewise.
5111 * include/bits/stl_raw_storage_iter.h: Likewise.
5112 * include/bits/stl_stack.h: Likewise.
5113 * include/bits/stl_uninitialized.h: Likewise.
5114 * include/bits/stream_iterator.h: Likewise.
5115 * include/bits/streambuf_iterator.h: Likewise.
5116 * include/bits/type_traits.h: Likewise.
5118 2004-02-06 Paolo Carlini <pcarlini@suse.de>
5120 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
5123 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
5125 * scripts/check_performance: Support PCH.
5127 * scripts/check_performance (CXX): Add -DNOTHREAD.
5128 * testsuite/performance/20_util/allocator/insert.cc: Integrate
5129 threaded tests from insert_insert.cc. Tweak iterations,
5130 remove special cases.
5131 * testsuite/performance/20_util/allocator/insert_insert.cc:
5132 Make all tests single-threaded. Tweak iterations.
5133 * testsuite/performance/20_util/allocator/map_thread.cc:
5135 * testsuite/performance/20_util/allocator/producer_consumer.cc:
5138 2004-02-05 Geoffrey Keating <geoffk@apple.com>
5142 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
5143 'gcc-lib'. Add comment about poorly-named variables.
5144 * aclocal.m4: Regenerate.
5145 * configure: Regenerate.
5147 2004-02-05 Paolo Carlini <pcarlini@suse.de>
5149 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
5150 Thousands-sep are always optional; thousands-sep are not allowed
5151 after the decimal_point.
5152 * testsuite/22_locale/money_get/get/char/12.cc: New.
5153 * testsuite/22_locale/money_get/get/char/13.cc: New.
5154 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
5155 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
5157 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
5158 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
5159 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
5160 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
5161 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
5162 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
5163 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
5164 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
5166 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
5168 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
5170 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
5172 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
5174 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
5175 it to decide whether FIONREAD should take an off_t or int argument.
5177 2004-02-05 Paolo Carlini <pcarlini@suse.de>
5179 * include/bits/stl_function.h: Minor formatting changes.
5181 2004-02-04 Zack Weinberg <zack@codesourcery.com>
5183 Revert previous change to config/abi/*/baseline_symbols.txt.
5185 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
5186 Zack Weinberg <zack@codesourcery.com>
5188 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
5190 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
5191 (__basic_file<char>::_M_open_mode): Delete.
5192 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
5194 * testsuite/27_io/basic_filebuf/close/char/9964.cc
5195 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
5196 Correct flags to filebuf::open calls.
5198 * config/abi/alpha-freebsd5/baseline_symbols.txt
5199 * config/abi/alpha-linux-gnu/baseline_symbols.txt
5200 * config/abi/hppa-linux-gnu/baseline_symbols.txt
5201 * config/abi/i386-freebsd4/baseline_symbols.txt
5202 * config/abi/i386-freebsd5/baseline_symbols.txt
5203 * config/abi/i486-linux-gnu/baseline_symbols.txt
5204 * config/abi/ia64-linux-gnu/baseline_symbols.txt
5205 * config/abi/mips-linux-gnu/baseline_symbols.txt
5206 * config/abi/sparc-freebsd5/baseline_symbols.txt
5207 * config/abi/sparc-linux-gnu/baseline_symbols.txt
5208 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
5209 Remove entry for __basic_file<char>::_M_open_mode.
5211 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
5213 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
5215 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
5217 * testsuite/performance/20_util/producer_consumer.cc: New.
5218 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
5220 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
5222 * testsuite/performance/20_util/allocator.cc: Move to..
5223 * testsuite/performance/20_util/allocator/insert.cc: ...here.
5224 * testsuite/performance/20_util/allocator_thread.cc: Move to...
5225 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
5226 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
5227 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
5229 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
5231 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
5232 * docs/html/faq/index.txt: Regenerate.
5234 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
5236 * include/ext/debug_allocator.h: _M_extra now stands for the
5237 number of extra objects instead of the number of extra bytes.
5238 (debug_allocator::allocate): Adjust.
5239 (debug_allocator::deallocate): Adjust.
5241 * include/ext/pool_allocator.h: Fix typo.
5243 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
5244 Benjamin Kosnik <bkoz@redhat.com>
5246 * testsuite/performance/20_util/allocator.cc: Add map,
5248 * testsuite/performance/20_util/allocator_thread.cc: Same.
5250 2004-02-03 Paolo Carlini <pcarlini@suse.de>
5252 * include/bits/basic_string.h (insert(iterator)): Remove,
5253 non-standard and already scheduled for removal.
5255 2004-02-03 Paolo Carlini <pcarlini@suse.de>
5257 * include/bits/stl_iterator_base_funcs.h: Minor formatting
5258 and indentation tweaks.
5259 * include/bits/stl_iterator_base_types.h: Likewise.
5260 * include/bits/stl_list.h: Likewise.
5261 * include/bits/stl_map.h: Likewise.
5262 * include/bits/stl_tempbuf.h: Likewise.
5264 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
5266 * include/bits/gslice.h, include/bits/gslice_array.h,
5267 include/bits/indirect_array.h, include/bits/mask_array.h,
5268 include/bits/slice_array.h, include/bits/stl_numeric.h,
5269 include/std/std_valarray.h: Update copyright years.
5271 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
5273 * include/bits/gslice.h (gslice): Document.
5274 * include/bits/gslice_array.h (gslice_array): Document.
5275 * include/bits/indirect_array (indirect_array): Document.
5276 * include/bits/mask_array (mask_array): Document.
5277 * include/bits/slice_array.h (slice,slice_array): Document.
5278 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
5279 adjacent_difference): Document
5280 * include/std/std_valarray.h (valarray): Document.
5282 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
5284 * docs/html/19_diagnostics/howto.html: Move verbose terminate
5286 * docs/html/18_support/howto.html: Here.
5287 * docs/html/documentation.html: Add reference here.
5289 2004-02-02 Paolo Carlini <pcarlini@suse.de>
5291 * config/locale/gnu/c++locale_internal.h: Remove prototypes
5292 of no longer used GLIBC thread locale functions.
5294 2004-02-02 Eric Christopher <echristo@redhat.com>
5295 Zack Weinberg <zack@codesourcery.com>
5297 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
5299 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
5300 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
5301 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
5302 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
5303 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
5304 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
5305 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
5306 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
5309 2004-02-02 Paolo Carlini <pcarlini@suse.de>
5311 * include/bits/stl_function.h: Additional minor tweaks.
5312 * include/bits/stl_multiset.h: Likewise.
5314 * include/bits/stl_queue.h: Minor tweaks.
5316 2004-02-02 Paolo Carlini <pcarlini@suse.de>
5318 PR libstdc++/13976 (continued)
5319 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
5320 Make the second parameter unnamed, to void unused parameter
5322 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
5324 2004-02-02 Paolo Carlini <pcarlini@suse.de>
5327 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
5328 Make the second parameter unnamed, to void unused parameter
5330 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
5331 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
5333 2004-02-01 Paolo Carlini <pcarlini@suse.de>
5335 * include/bits/stl_algo.h: Additional minor tweaks.
5336 * include/bits/stl_map.h: Likewise.
5337 * include/bits/stl_multimap.h: Likewise.
5338 * include/bits/stl_multiset.h: Likewise.
5339 * include/bits/stl_set.h: Likewise.
5340 * include/bits/stl_tree.h: Likewise.
5342 2004-02-01 Paolo Carlini <pcarlini@suse.de>
5344 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
5347 2004-02-01 Paolo Carlini <pcarlini@suse.de>
5349 * include/bits/stl_function.h: Additional minor tweaks.
5351 2004-02-01 Paolo Carlini <pcarlini@suse.de>
5353 * include/bits/deque.tcc: Wrap overlong lines, constify
5354 a few variables, reformat according to the coding standards.
5355 * include/bits/list.tcc: Likewise.
5356 * include/bits/stl_deque.h: Likewise.
5357 * include/bits/stl_function.h: Likewise.
5358 * include/bits/stl_iterator.h: Likewise.
5359 * include/bits/stl_iterator_base_funcs.h: Likewise.
5360 * include/bits/stl_iterator_base_types.h: Likewise.
5361 * include/bits/stl_list.h: Likewise.
5362 * include/bits/stl_map.h: Likewise.
5363 * include/bits/stl_multimap.h: Likewise.
5364 * include/bits/stl_multiset.h: Likewise.
5365 * include/bits/stl_relops.h: Likewise.
5366 * include/bits/stl_set.h: Likewise.
5368 2004-02-01 Paolo Carlini <pcarlini@suse.de>
5370 * include/bits/stl_bvector.h: Wrap overlong lines, constify
5371 a few variables, reformat according to the coding standards.
5372 * include/bits/stl_tree.h: Likewise.
5374 2004-01-31 Paolo Carlini <pcarlini@suse.de>
5376 * include/bits/stl_algo.h: Minor additional reformat, add
5378 * include/bits/stl_algobase.h: Add copyright year.
5380 2004-01-31 Paolo Carlini <pcarlini@suse.de>
5382 * include/bits/stl_algo.h: Wrap overlong lines, constify
5383 a few variables, reformat according to the coding standards.
5384 * include/bits/stl_algobase.h: Likewise.
5385 * include/bits/stl_heap.h: Likewise.
5387 2004-01-31 Paolo Carlini <pcarlini@suse.de>
5389 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
5391 * include/bits/basic_string.h: Fix two comments.
5393 2004-01-31 Per Bothner <per@bothner.com>
5395 * include/ext/mt_allocator.h
5396 (__mt_alloc::_S_thread_freelist_mutex): Guard with
5397 __GTHREAD_MUTEX_INIT.
5399 2004-01-31 Paolo Carlini <pcarlini@suse.de>
5401 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
5403 2004-01-30 Paolo Carlini <pcarlini@suse.de>
5405 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
5406 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
5407 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
5409 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
5411 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
5412 Don't use clear, but instead assign. Use insert.
5414 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
5416 * src/demangle.cc: Add instantiations.
5417 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
5418 * src/Makefile.in: Regenerate.
5420 2004-01-30 David Edelsohn <edelsohn@gnu.org>
5422 * src/allocator.cc: Protect _S_get_thread_id() and
5423 _S_thread_key_destr() with #ifdef __GTHREADS.
5425 2004-01-30 Paolo Carlini <pcarlini@suse.de>
5427 Reshuffle performance testsuite.
5428 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
5429 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
5430 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
5431 fstream_seek_write.cc, ifstream_extract_float.cc,
5432 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
5433 list_create_fill_sort.cc, map_create_fill.cc,
5434 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
5435 ofstream_insert_float.cc, ofstream_insert_int.cc,
5436 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
5437 wchar_t_out.cc: Split into...
5438 * testsuite/performance/20_util/allocator.cc: New.
5439 * testsuite/performance/20_util/allocator_map_thread.cc: New.
5440 * testsuite/performance/20_util/allocator_thread.cc: New.
5441 * testsuite/performance/21_strings/string_append: New.
5442 * testsuite/performance/22_locale/is_wchar_t.cc: New.
5443 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
5444 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
5445 * testsuite/performance/22_locale/wchar_t_in.cc: New.
5446 * testsuite/performance/22_locale/wchar_t_length.cc: New.
5447 * testsuite/performance/22_locale/wchar_t_out.cc: New.
5448 * testsuite/performance/23_containers/container_benchmark.cc: New.
5449 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
5450 * testsuite/performance/23_containers/map_create_fill.cc: New.
5451 * testsuite/performance/26_numerics/complex_norm.cc: New.
5452 * testsuite/performance/27_io/cout_insert_int.cc: New.
5453 * testsuite/performance/27_io/filebuf_copy.cc: New.
5454 * testsuite/performance/27_io/filebuf_sputc.cc: New.
5455 * testsuite/performance/27_io/fstream_seek_write.cc: New.
5456 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
5457 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
5458 * testsuite/performance/27_io/ifstream_getline.cc: New.
5459 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
5460 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
5462 2004-01-30 Paolo Carlini <pcarlini@suse.de>
5464 * include/bits/basic_string.tcc (_Rep::_S_create):
5465 Never allocate a string bigger than max_size(); always keep
5466 __capacity and __size in sync to avoid memory leaks at
5469 2004-01-30 Paolo Carlini <pcarlini@suse.de>
5471 * include/bits/basic_string.tcc (_S_construct(_InIterator,
5472 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
5473 the double loop, streamline.
5475 * include/bits/basic_string.tcc: Very minor tweaks.
5477 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
5479 * scripts/check_performance: Only compile with $THREAD_FLAG
5480 when test is marked to require it. Allow multiple
5481 compilations/executions of marked tests.
5482 * testsuite/testsuite_performance.h (report_performance):
5483 Report dynamic thread support status.
5484 (report_header): Likewise.
5485 * testsuite/performance/allocator.cc: Stabilize iteration
5486 count. Support more allocators. Mark each allocator test to
5487 run and report independently.
5488 * testsuite/performance/allocator_map_thread.cc: Likewise.
5489 * testsuite/performance/allocator_thread.cc: Likewise.
5491 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
5493 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
5494 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
5495 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
5496 std::get_temporary_buffer() instead of duplicating its code.
5497 Update to C++STYLE conventions.
5498 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
5499 new() instead of std::malloc().
5500 (return_temporary_buffer): Use ::operator delete() instead of
5503 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
5505 * include/bits/allocator.h: Temporary switch to new_allocator as
5506 the default to unjam bootstraps.
5508 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
5510 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
5511 * include/Makefile.in: Regenerate.
5512 * include/bits/allocator_traits.h: Remove.
5513 * include/bits/allocator.h: Remove allocator_traits.h include, and
5515 (allocator): Empty base class, inherit from the underlying allocator.
5516 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
5517 * src/allocator.cc: ...here. New. For the underlying allocators.
5518 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
5519 * config/linker-map.gnu: Remove __pool_alloc bits.
5520 * src/Makefile.am (sources): Add allocator.cc.
5521 * src/Makefile.in: Regenerate.
5522 * testsuite/20_util/allocator/1.cc: Split second test into...
5523 * testsuite/20_util/allocator/8230.cc: ...this.
5524 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
5525 typedef to use std::allocatore. Format.
5526 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
5528 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
5529 __throw_bad_alloc calls. Don't include <memory>.
5530 * include/ext/malloc_allocator.h: Remove <memory> include.
5531 * include/ext/new_allocator.h (new_allocator): Same.
5532 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
5533 declaration. Switch __alloc to _Alloc.
5534 * include/ext/hashtable.h: Remove __alloc.
5535 * include/backward/alloc.h: Only inject allocator, not
5536 implementation details.
5538 * include/ext/mt_allocator.h: Replace free with delete.
5540 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
5542 * src/globals_io.cc: Change to __gnu_internal namespace.
5543 * src/globals_locale.cc: Same.
5544 * src/locale_init.cc: Same.
5545 * src/ios_init.cc: Same.
5547 2004-01-28 Stefan Olsson <stefan@snon.net>
5549 * include/ext/mt_allocator.h: Replaced all malloc() calls with
5550 operator new(). Added support for the env variable
5551 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
5552 one in allocate() as well). Fix typos.
5554 2004-01-28 Paolo Carlini <pcarlini@suse.de>
5556 * include/bits/basic_string.h (_S_create(size_t,
5557 const _Alloc&): Change signature to take two size_type
5559 * include/bits/basic_string.tcc (_S_construct(_InIterator,
5560 _InIterator, const _Alloc&, input_iterator_tag)): Update
5562 (_S_construct(_InIterator, _InIterator, const _Alloc&,
5563 forward_iterator_tag)): Likewise.
5564 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
5565 (_M_mutate(size_type, size_type, size_type)): Don't
5566 implement the exponential growth policy, demand it to
5567 _S_create, update call and simplify.
5568 (_M_clone(const _Alloc&, size_type)): Likewise.
5569 (_S_create(size_type, size_type, const _Alloc&)): Implement
5570 the growth policy, simplify otherwise.
5572 * include/bits/basic_string.h (_Rep::operator[]): Tweak
5573 signature to take a size_type, consistently with the other
5576 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
5578 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
5579 delete declarations, add include and test variable.
5581 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
5583 * include/bits/codecvt.h, include/bits/locale_facets.h,
5584 include/bits/postypes.h, include/bits/stl_bvector.h,
5585 include/bits/stl_multiset.h, include/bits/stl_set.h,
5586 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
5587 include/std/std_complex.h: Document.
5589 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
5592 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
5593 iword/pword selector.
5594 (ios_base::iword, ios_base::pword): Use it.
5595 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
5596 iword or pword member on alloc failure.
5597 * testsuite/27_io/ios_base/storage/11584.cc: New test.
5599 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
5600 PJ Darcy <darcypj@us.ibm.com>
5602 * configure.host: Add support for *-tpf.
5603 * crossconfig.m4: Likewise.
5604 * configure: Regenerate.
5605 * config/os/tpf: New directory.
5606 * config/os/tpf/os_defines.h: New file.
5607 * config/os/tpf/ctype_base.h: Likewise.
5608 * config/os/tpf/ctype_inline.h: Likewise.
5609 * config/os/tpf/ctype_noninline.h: Likewise.
5611 2004-01-27 Paolo Carlini <pcarlini@suse.de>
5614 * include/bits/sstream.tcc: Guard use of extern template.
5616 2004-01-27 Paolo Carlini <pcarlini@suse.de>
5618 * include/bits/basic_string.tcc
5619 (basic_string(const basic_string&, size_type, size_type),
5620 basic_string(const basic_string&, size_type, size_type,
5621 const _Alloc&)): Avoid unnecessarily constructing iterators.
5623 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5625 * config/locale/generic/c_locale.cc: Fix throw messages
5626 to use the __N marker.
5627 * config/locale/gnu/c_locale.cc: Likewise.
5628 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
5630 * docs/html/17_intro/C++STYLE: Likewise.
5631 * include/bits/basic_ios.tcc: Likewise.
5632 * include/bits/fstream.tcc: Likewise.
5633 * include/bits/vector.tcc: Likewise.
5634 * include/ext/ropeimpl.h: Likewise.
5635 * include/std/std_bitset.h: Likewise.
5636 * src/ios.cc: Likewise.
5637 * src/locale.cc: Likewise.
5638 * src/localename.cc: Likewise.
5640 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5642 * include/bits/basic_string.h (_M_replace_aux): Use the
5643 __N marker in throw message.
5644 * include/bits/basic_string.tcc (assign(const _CharT*,
5645 size_type), insert(size_type, const _CharT*, size_type),
5646 replace(size_type, size_type, const _CharT*, size_type),
5647 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
5650 * include/bits/basic_string.h, include/bits/basic_string.tcc:
5651 Fold overlong lines, minor formatting changes.
5653 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5655 * include/bits/basic_string.h (replace(iterator, iterator,
5656 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
5657 (replace(iterator, iterator, const _CharT*)): Ditto.
5658 (replace(iterator, iterator, const _CharT*, size_type)):
5659 Add missing _GLIBCXX_DEBUG_PEDASSERT.
5661 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5663 * include/bits/basic_string.tcc (replace(size_type,
5664 size_type, const _CharT*, size_type)): Implement optimized
5665 in-place algorithm for non-overlapping ranges.
5666 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
5667 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
5669 * include/bits/basic_string.tcc (insert(size_type,
5670 const _CharT*, size_type)): Tweak slightly.
5672 2004-01-26 Andreas Schwab <schwab@suse.de>
5674 * config/locale/gnu/monetary_members.cc: Restore locale before
5675 rethrowing exception.
5677 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5679 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
5681 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
5684 * include/bits/basic_string.tcc: Very minor tweaks.
5686 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5688 * testsuite/performance/string_append.cc: Increase number
5691 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5693 * include/bits/basic_string.h (erase(size_type, size_type),
5694 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
5695 instead, thus avoiding redundant check for length_error.
5697 * include/bits/basic_string.h: Tweak some comments.
5699 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5701 * include/bits/basic_string.tcc (operator+(const _CharT*,
5702 const basic_string&)): No need to go through the append
5703 taking two iterators.
5705 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5707 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
5708 Revert last change to use std::min: machine language is worse.
5709 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
5710 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5711 (find_last_not_of(_CharT, size_type)): Ditto.
5713 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
5714 size_type)): Discard the value returned by _M_check.
5715 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
5716 (append(const basic_string&, size_type, size_type)): Ditto.
5717 (copy(_CharT*, size_type, size_type)): Ditto.
5718 (compare(size_type, size_type, const basic_string&)): Ditto.
5719 (compare(size_type, size_type, const basic_string&,
5720 size_type, size_type)): Ditto.
5721 (compare(size_type, size_type, const _CharT*)): Ditto.
5722 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5724 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5726 * include/bits/basic_string.h (insert(size_type,
5727 const basic_string&, size_type, size_type)): Define inline here.
5728 * include/bits/basic_string.tcc (insert(size_type,
5729 const basic_string&, size_type, size_type)): Move inline.
5731 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5733 * include/bits/basic_string.h (assign(const basic_string&,
5734 size_type, size_type)): Define inline here.
5735 (replace(size_type, size_type, const basic_string&,
5736 size_type, size_type)): Ditto.
5737 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5738 _InputIterator, __false_type)): Only declare.
5739 (_M_replace(iterator, iterator, _InputIterator,
5740 _InputIterator)): Remove.
5741 * include/bits/basic_string.tcc (assign(const basic_string&,
5742 size_type, size_type)): Move inline.
5743 (replace(size_type, size_type, const basic_string&,
5744 size_type, size_type)): Ditto.
5745 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5746 _InputIterator, __false_type)): Define, now does also what
5747 _M_replace did before.
5748 * src/string-inst.cc (_M_replace): Don't instantiate.
5750 * include/bits/basic_string.tcc (find(const _CharT*,
5751 size_type, size_type)): Tidy.
5752 (rfind(_CharT, size_type)): Ditto.
5753 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
5754 (find_first_not_of(_CharT, size_type)): Ditto.
5755 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5756 (find_last_not_of(_CharT, size_type)): Ditto.
5758 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5761 * include/debug/bitset (operator|=): Fix typo.
5762 * testsuite/23_containers/bitset/operations/13838.cc: New.
5764 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5766 * include/bits/basic_string.tcc (insert(size_type,
5767 const _CharT*, size_type __n)): Fix length_error check.
5768 (replace(size_type, size_type, const _CharT*, size_type):
5769 Ditto; call _M_replace_safe.
5770 (_M_replace_aux(size_type, size_type, size_type, _CharT):
5771 Fix length_error check.
5772 (_M_replace(iterator, iterator, _InputIterator,
5773 _InputIterator)): Ditto, tweak.
5774 (_M_replace_safe(size_type, size_type, const _CharT*,
5775 size_type)): Remove length_error check.
5777 * include/bits/basic_string.tcc (append(const basic_string&),
5778 append(const basic_string&, size_type, size_type)): Tweak
5781 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
5782 size_type)): If __n == 0 don't call traits::copy.
5784 2004-01-23 Stefan Olsson <stefan@snon.net>
5786 * include/ext/mt_allocator.h: Reduce lock contention.
5788 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5791 * include/bits/fstream.tcc (underflow): Remove unused
5793 * include/bits/streambuf_iterator.h (equal): Ditto.
5794 * include/bits/locale_facets.h (_M_convert_from_char):
5797 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5800 * config/linker-map.gnu (nan): Delete.
5801 * libmath/mathconf.h (NAN, nan): Delete.
5802 * linkage.m4 (nan): Don't check for it.
5803 * libmath/nan.c: Delete file.
5805 * config.h.in, configure: Regenerate.
5807 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5809 * include/bits/basic_string.h (push_back(_CharT)):
5810 Call _M_replace_aux.
5811 (insert(size_type, const basic_string&)): Trivial tweak.
5812 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
5813 (insert(iterator, _CharT)): Ditto.
5814 (erase(size_type, size_type)): Ditto.
5815 (erase(iterator)): Ditto.
5816 (erase(iterator, iterator)): Ditto.
5817 (replace(size_type, size_type, size_type, _CharT)): Ditto.
5819 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
5822 * testsuite/performance/allocator_map_thread.cc: New test.
5824 2004-01-22 Paolo Carlini <pcarlini@suse.de>
5826 * include/bits/locale_facets.tcc
5827 (money_put::do_put(..., long double)): Use the basic_string
5828 constructor for char arrays, not that for C-strings, to pass
5829 __digits to do_put(..., const string_type&): __ws isn't
5832 2004-01-22 Paolo Carlini <pcarlini@suse.de>
5834 * include/bits/basic_string.h (_M_replace_safe): Change
5835 signatures to take size_types and const _CharT*.
5836 (_M_replace_aux): Likewise, takes size_types instead of
5838 (append(size_type, _CharT)): Update call.
5839 (assign(size_type, _CharT)): Ditto.
5840 (replace(iterator, iterator, size_type, _CharT)): Ditto.
5841 (_M_replace_dispatch(iterator, iterator, _Integer,
5842 _Integer, __true_type)): Ditto.
5843 * include/bits/basic_string.tcc (assign(const _CharT*,
5845 (insert(size_type, const _CharT*, size_type)): Ditto.
5846 (replace(size_type, size_type, const _CharT*,
5848 (_M_replace(iterator, iterator, _InputIterator,
5849 _InputIterator)): Ditto.
5850 (append(const basic_string&)): Ditto.
5851 (append(const basic_string&, size_type, size_type): Ditto.
5852 (append(const _CharT*, size_type): Ditto.
5853 (_M_replace_safe, _M_replace_safe): Change definitions
5854 accordingly, simplify.
5855 * string-inst.cc (_M_replace_safe): Don't instantiate.
5857 2004-01-21 Paolo Carlini <pcarlini@suse.de>
5859 * include/bits/basic_string.tcc (append(const basic_string&)):
5860 Revert previous change.
5861 (append(const basic_string&, size_type, size_type)): Revert
5862 previous change, use _M_check and _M_limit.
5864 2004-01-21 Paolo Carlini <pcarlini@suse.de>
5866 * include/bits/basic_string.h (_M_check): Change to return
5867 a checked __pos and take an additional const char* argument.
5868 (_M_fold): Rename to _M_limit, change to return a size_type,
5869 corresponding to the __off limited to the actual length.
5870 (insert(size_type, size_type, _CharT)): Update call, call
5872 (insert(iterator, _CharT)): Call replace(iterator, iterator,
5873 size_type, _CharT) instead.
5874 (erase(size_type, size_type)): Update calls.
5875 (replace(size_type, size_type, size_type, _CharT)): Ditto.
5876 (substr(size_type, size_type)): Use _M_check.
5877 * include/bits/basic_string.tcc (basic_string(const basic_string&,
5878 size_type, size_type)): Update calls.
5879 (basic_string(const basic_string&, size_type, size_type,
5880 const _Alloc&)): Ditto.
5881 (assign(const basic_string&, size_type, size_type)): Use the
5882 new _M_check and _M_limit.
5883 (insert(size_type, const basic_string&, size_type, size_type):
5885 (insert(size_type, const _CharT*, size_type)): Ditto.
5886 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
5887 (replace(size_type, size_type, const basic_string&,
5888 size_type, size_type)): Ditto.
5889 (append(const basic_string&)): Ditto.
5890 (append(const basic_string&, size_type, size_type)): Ditto.
5891 (copy(_CharT*, size_type, size_type)): Ditto.
5892 (compare(size_type, size_type, const basic_string&)): Ditto.
5893 (compare(size_type, size_type, const basic_string&,size_type,
5895 (compare(size_type, size_type, const _CharT*)): Ditto.
5896 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5898 2004-01-19 Stefan Olsson <stefan@snon.net>
5900 * include/ext/mt_allocator.h: If a thread, when it dies, still has
5901 memory on it's freelist this memory is not returned to global
5902 list. Simplification of deallocate so that memory is always
5903 returned to the calling thread id's freelist instead of to
5904 global. Fix typos. Add volatile where appropriate.
5906 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
5908 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
5909 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
5910 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
5912 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5914 * src/debug.cc: Make sure all the names are prefixed with
5915 double (or single) underscore.
5917 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5919 * src/debug.cc: Trivial formatting change.
5921 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5923 * include/bits/basic_string.tcc (_S_construct(size_type,
5924 _CharT, const _Alloc&)): Remove redundant try/catch.
5925 (_M_mutate(size_type, size_type, size_type)): Ditto.
5926 (_M_clone(const _Alloc&, size_type)): Ditto.
5928 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5930 * include/bits/basic_string.h (c_str()): Simplify, due to
5931 21.3.4 the internal representation is always kept null-terminated.
5932 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
5933 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
5934 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
5937 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5939 * include/bits/basic_string.h (append(size_type, _CharT)):
5940 Moved inline, just call _M_replace_aux, no source iterators at
5941 risk of being clobbered.
5942 (assign(size_type, _CharT)): Call directly _M_replace_aux.
5943 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5944 input_iterator_tag)): Remove fifth unused argument.
5945 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5946 _InputIterator, __false_type)): Update call.
5947 * include/bits/basic_string.tcc (replace(size_type, size_type,
5948 const _CharT*, size_type)): Update call.
5949 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
5950 throw string literal.
5951 (_M_replace_safe(iterator, iterator, _ForwardIterator,
5952 _ForwardIterator)): Likewise.
5953 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5954 input_iterator_tag)): Remove fifth unused argument.
5955 (append(size_type __n, _CharT __c)): Move inline.
5956 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
5957 const C*, const C*, input_iterator_tag)): Remove fifth unused
5960 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
5962 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
5963 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
5965 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
5967 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
5970 2004-01-15 Stefan Olsson <stefan@snon.net>
5972 * include/ext/mt_allocator.h: Reuse thread id's as soon as
5973 possible by changing the behaviour of thread_freelist to do
5974 push_front when threads die instead of push_back.
5976 2004-01-14 Paolo Carlini <pcarlini@suse.de>
5978 * include/bits/locale_facets.h (struct __numpunct_cache):
5979 Add member _M_grouping_size, caching the length of _M_grouping.
5980 (__numpunct_cache<>::_M_cache): Assign the latter.
5981 (__verify_grouping): Move declaration...
5982 * include/bits/locale_facets.tcc (__verify_grouping):
5983 ... here, change signature to take a const char* and a size_t
5984 for the grouping; not a template anymore.
5985 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
5986 Likewise change signature and tweak consistently.
5987 (num_get::_M_extract_float, num_get::_M_extract_int,
5988 num_put::_M_insert_int, num_put::_M_insert_float,
5989 money_get::do_get(string_type&), money_get::do_put(string_type)):
5991 * config/locale/generic/numeric_members.cc
5992 (numpunct<>::_M_initialize_numpunct): Assign the new member.
5993 * config/locale/gnu/numeric_members.cc
5994 (numpunct<>::_M_initialize_numpunct): Likewise.
5995 * src/locale-inst.cc (__add_grouping): Tweak signature.
5996 (__verify_grouping): Don't instantiate, not a template anymore.
5998 * include/bits/locale_facets.h: Rename _M_truename_len ->
5999 _M_truename_size, _M_falsename_len -> _M_falsename_size.
6000 * include/bits/locale_facets.tcc: Likewise.
6001 * config/locale/generic/numeric_members.cc: Likewise.
6002 * config/locale/gnu/numeric_members.cc: Likewise.
6004 2004-01-14 Stefan Olsson <stefan@snon.net>
6006 * include/ext/mt_allocator.h: Fixups.
6007 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
6008 * testsuite/performance/allocator_thread.cc: Same.
6010 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
6012 * testsuite/performance/ifstream_extract_float.cc: Add higher
6014 * testsuite/performance/ofstream_insert_float.cc: Same.
6016 2004-01-13 Paolo Carlini <pcarlini@suse.de>
6018 * src/locale-misc-inst.cc (__convert_from_v(long),
6019 __convert_from_v(unsigned long), __convert_from_v(long long),
6020 __convert_from_v(unsigned long long)): Remove, unused.
6022 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
6024 * testsuite/performance/ifstream_extract_float.cc: New.
6025 * testsuite/performance/ofstream_insert_float.cc: Float generation
6028 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
6029 * 20_util/auto_ptr/1.cc: ...this.
6030 * 20_util/auto_ptr/2.cc: Same.
6031 * 20_util/auto_ptr/3.cc: Same.
6032 * 20_util/auto_ptr/3946.cc: Same.
6033 * 20_util/auto_ptr/4.cc: Same.
6034 * 20_util/auto_ptr/5.cc: Same.
6035 * 20_util/auto_ptr/6.cc: Same.
6036 * 20_util/auto_ptr/7.cc: Same.
6037 * 20_util/auto_ptr/assign_neg.cc
6038 * 20_util/pairs.cc: Break into...
6039 * 20_util/pair/1.cc: ...this.
6040 * 20_util/pair/2.cc: Same.
6041 * 20_util/pair/3.cc: Same.
6042 * 20_util/pair/4.cc: Same.
6044 2004-01-13 Paolo Carlini <pcarlini@suse.de>
6046 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
6047 Set correctly just basefield, the only group that matters.
6049 2004-01-13 Paolo Carlini <pcarlini@suse.de>
6051 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
6052 (_Rope_rep_base): Inherit directly from the rope allocator;
6053 use rebinding instead of _Alloc_traits; pick up data member
6054 from _Rope_rep_alloc_base.
6055 (_Rope_alloc_base): Eliminate.
6056 (_Rope_base): Inherit directly from the rope allocator; use
6057 rebinding instead of _Alloc_traits; pick up data member from
6059 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
6060 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
6062 2004-01-13 Paolo Carlini <pcarlini@suse.de>
6065 * include/bits/basic_string.tcc (compare(size_type, size_type,
6066 const _CharT*, size_type)): Implement correctly the resolution
6067 of DR 5: basically, s is a char array, -not- a C string.
6068 * include/bits/basic_string.h: Tweak some comments.
6069 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
6070 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
6072 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
6074 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
6077 2004-01-12 Paolo Carlini <pcarlini@suse.de>
6079 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
6081 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
6084 2004-01-12 Paolo Carlini <pcarlini@suse.de>
6086 * include/bits/locale_facets.h (struct __numpunct_cache):
6087 Add members _M_truename_len and _M_falsename_len, caching
6088 the lengths of _M_truename and _M_falsename.
6089 (__numpunct_cache<>::_M_cache): Assign the latter.
6090 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
6091 num_put::do_put(bool)): Use the new members, thus avoiding
6092 computing string lengths again and again.
6093 * config/locale/generic/numeric_members.cc
6094 (numpunct<>::_M_initialize_numpunct): Assign the new members.
6095 * config/locale/gnu/numeric_members.cc
6096 (numpunct<>::_M_initialize_numpunct): Likewise.
6098 2004-01-12 Mark Mitchell <mark@codesourcery.com>
6100 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
6101 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
6103 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
6104 and remove Cygwin XFAIL.
6105 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
6106 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
6107 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
6108 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
6110 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
6111 * testsuite/27_io/objects/char/7.cc: Likewise.
6112 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
6113 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
6114 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
6116 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
6118 * include/std/std_complex.h (std::complex<>::real): Return a
6119 reference. Add non-const overload.
6120 (std::complex<>::real): Likewise.
6121 (std::real): Likewise.
6122 (std::imag): Likewise.
6123 (std::operator+): Tidy.
6124 (std::operator-): Likewise.
6125 (std::operator*): Likewise.
6126 (std::operator/): Likewise.
6127 (std::operator>>): Likewise.
6129 2004-01-11 Paolo Carlini <pcarlini@suse.de>
6132 * include/bits/fstream.tcc (imbue): Exploit the external
6133 buffer to imbue 'on the fly' a new locale and convert its
6134 remainder with the new codecvt facet.
6135 (underflow): Tweak slightly to deal with this special case.
6136 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
6137 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
6138 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
6139 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
6140 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
6142 2004-01-10 Paolo Carlini <pcarlini@suse.de>
6144 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
6147 2004-01-10 Paolo Carlini <pcarlini@suse.de>
6150 * include/bits/locale_classes.h (class locale): Fix category
6152 * testsuite/22_locale/locale/13630.cc: Add.
6154 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
6156 * include/bits/locale_facets.h: Make a name really dependent. This
6157 will be needed when Core Issue 224 is implemented.
6159 2004-01-09 Paolo Carlini <pcarlini@suse.de>
6161 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
6162 * testsuite/performance/allocator_thread.cc: Likewise.
6164 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
6166 * crossconfig.m4: Add LFS, io bits to linux cross config.
6167 * acconfig.h: Remove obsolete bits, reorder.
6168 * config.h.in: Regenerate.
6172 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
6174 * include/bits/stl_list.h:
6175 * include/bits/list.tc:
6177 Performance enhancements for destructor, push_front(),
6178 push_back(), pop_front(), pop_back(), sort()
6179 Eliminated static_casts where possible.
6180 Moved code out of header files into new src/list.cc
6181 implementation file for library where possible.
6182 Remove inheritance from iterator class and create separate
6183 classes for non-constant and constant iterators.
6184 * include/bits/stl_tree.h (_Rb_tree class):
6186 Only erase contents in destructor.
6187 Eliminate unnecessary initialization in assignment operator.
6188 Optimize for the nominal case by not checking whether
6189 container is empty in clear().
6190 Re-order test in _M_insert() to improve performance.
6191 Move initialization of new node's left & right pointers to
6192 src/tree.cc to where new node's colour is initialized
6193 and to reduce the amount of inline code.
6194 Use _M_leftmost() and _M_end() to improve readability where
6196 Create separate classes for non-constant and constant
6197 iterators to clarify code, avoid extra template parameters and
6198 casting away constness.
6200 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
6202 * src/Makefile.am (sources): Add list.cc, tree.cc.
6203 * src/stl_tree.cc: Move to...
6204 * src/tree.cc: ...here.
6206 * config/linker-map.gnu: Tweaks.
6207 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
6208 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
6210 * bits/stl_vector.h: Column wrap comments.
6212 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
6214 (re-open) PR libstdc++/12658
6215 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
6216 (locale::global): Likewise.
6218 2004-01-07 Paolo Carlini <pcarlini@suse.de>
6220 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
6221 Remove redundant #include.
6222 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
6223 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
6224 re-enable normal testing.
6225 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
6227 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
6228 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
6230 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
6232 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
6234 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
6236 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
6238 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
6240 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
6242 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
6243 More properly, #include <locale>.
6244 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
6245 Remove redundant #include.
6246 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
6247 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
6248 redundant DejaGnu directive.
6249 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
6252 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
6253 Stefan Olsson <stefan@snon.net>
6255 * scripts/check_performance: Use -pthread.
6256 * testsuite/performance/allocator.cc: Tweaks, add list.
6257 * testsuite/performance/allocator_thread.cc: New.
6259 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
6261 * include/bits/locale_facets.h: Document public classes and
6263 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
6266 2004-01-06 Paolo Carlini <pcarlini@suse.de>
6268 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
6269 Remove redundant #includes.
6270 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
6272 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
6274 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
6275 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
6276 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
6277 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
6278 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
6279 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
6280 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
6281 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
6282 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
6283 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
6284 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
6285 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
6286 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
6287 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
6288 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
6290 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
6292 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
6294 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
6296 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
6298 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
6299 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
6300 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
6302 2004-01-04 Paolo Carlini <pcarlini@suse.de>
6304 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
6305 Remove redundant #includes.
6306 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
6308 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
6310 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
6312 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
6314 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
6316 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
6318 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
6320 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
6322 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
6324 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
6326 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
6328 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
6331 2004-01-04 Mark Mitchell <mark@codesourcery.com>
6334 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
6336 * testsuite/27_io/basic_fstream/4.cc: Likewise.
6337 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
6338 * testsuite/27_io/basic_ios/4.cc: Likewise.
6339 * testsuite/27_io/basic_iostream/4.cc: Likewise.
6340 * testsuite/27_io/basic_istream/4.cc: Likewise.
6341 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
6342 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
6343 * testsuite/27_io/basic_ostream/4.cc: Likewise.
6344 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
6345 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
6346 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
6348 2004-01-04 Paolo Carlini <pcarlini@suse.de>
6350 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
6351 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
6352 always use double underscored names.
6353 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
6355 * include/bits/locale_facets.h (struct __numpunct_cache):
6356 Dimension _M_atoms_out and _M_atoms_in one position smaller.
6357 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out