1 2004-12-08 David Edelsohn <edelsohn@gnu.org>
3 * Makefile.am (LIBCFLAGS): Remove duplicate.
4 (PICFLAG): Remove duplicate.
5 * Makefile.in: Regenerated.
7 2004-12-07 Paolo Carlini <pcarlini@suse.de>
9 * include/tr1/type_traits: Implement is_const and is_volatile.
10 * testsuite/testsuite_tr1.h (test_property): New.
11 * testsuite/tr1/4_metaprogramming/type_properties/
12 is_const/is_const.c: New.
13 * testsuite/tr1/4_metaprogramming/type_properties/
14 is_const/typedefs.cc: Likewise.
15 * testsuite/tr1/4_metaprogramming/type_properties/
16 is_volatile/is_volatile.cc: Likewise.
17 * testsuite/tr1/4_metaprogramming/type_properties/
18 is_volatile/typedefs.cc: Likewise.
19 * testsuite/tr1/4_metaprogramming/composite_type_traits/
20 is_arithmetic/is_arithmetic.cc: Slightly tweak to use ClassType
22 * testsuite/tr1/4_metaprogramming/composite_type_traits/
23 is_fundamental/is_fundamental.cc: Likewise.
24 * testsuite/tr1/4_metaprogramming/primary_type_categories/
25 is_array/is_array.cc: Likewise.
26 * testsuite/tr1/4_metaprogramming/primary_type_categories/
27 is_floating_point/is_floating_point.cc: Likewise.
28 * testsuite/tr1/4_metaprogramming/primary_type_categories/
29 is_integral/is_integral.cc: Likewise.
30 * testsuite/tr1/4_metaprogramming/primary_type_categories/
31 is_reference/is_reference.cc: Likewise.
32 * testsuite/tr1/4_metaprogramming/primary_type_categories/
33 is_void/is_void.cc: Likewise.
35 2004-12-06 Paolo Carlini <pcarlini@suse.de>
37 * include/tr1/type_traits: Implement is_reference.
38 * testsuite/tr1/4_metaprogramming/primary_type_categories/
39 is_reference/is_reference.cc: New.
40 * testsuite/tr1/4_metaprogramming/primary_type_categories/
41 is_reference/typedefs.cc: Likewise.
43 2004-12-05 Paolo Carlini <pcarlini@suse.de>
46 * testsuite/testsuite_performance.h: Fix mallinfo macros for
49 2004-12-04 Richard Henderson <rth@redhat.com>
51 * testsuite/26_numerics/complex/pow.cc: Use -mieee on alpha.
53 2004-12-04 Richard Henderson <rth@redhat.com>
55 * include/ext/malloc_allocator.h: Include cstdlib.
57 2004-12-04 Paolo Carlini <pcarlini@suse.de>
59 * include/tr1/type_traits: New.
60 * include/Makefile.am: Add.
61 * include/Makefile.in: Regenerate.
62 * testsuite/testsuite_tr1.h: New.
63 * testsuite/tr1/4_metaprogramming/composite_type_traits/
64 is_arithmetic/is_arithmetic.cc: New.
65 * testsuite/tr1/4_metaprogramming/composite_type_traits/
66 is_arithmetic/typedefs.cc: Likewise.
67 * testsuite/tr1/4_metaprogramming/composite_type_traits/
68 is_fundamental/is_fundamental.cc: Likewise.
69 * testsuite/tr1/4_metaprogramming/composite_type_traits/
70 is_fundamental/typedefs.cc: Likewise.
71 * testsuite/tr1/4_metaprogramming/helper_classes/
72 true_false_type.cc: Likewise.
73 * testsuite/tr1/4_metaprogramming/helper_classes/
74 true_false_type_typedefs.cc: Likewise.
75 * testsuite/tr1/4_metaprogramming/helper_classes/
76 typedefs.cc: Likewise.
77 * testsuite/tr1/4_metaprogramming/primary_type_categories/
78 is_array/is_array.cc: Likewise.
79 * testsuite/tr1/4_metaprogramming/primary_type_categories/
80 is_array/typedefs.cc: Likewise.
81 * testsuite/tr1/4_metaprogramming/primary_type_categories/
82 is_floating_point/is_floating_point.cc: Likewise.
83 * testsuite/tr1/4_metaprogramming/primary_type_categories/
84 is_floating_point/typedefs.cc: Likewise.
85 * testsuite/tr1/4_metaprogramming/primary_type_categories/
86 is_integral/is_integral.cc: Likewise.
87 * testsuite/tr1/4_metaprogramming/primary_type_categories/
88 is_integral/typedefs.cc: Likewise.
89 * testsuite/tr1/4_metaprogramming/primary_type_categories/
90 is_void/is_void.cc: Likewise.
91 * testsuite/tr1/4_metaprogramming/primary_type_categories/
92 is_void/typedefs.cc: Likewise.
94 2004-12-02 Paolo Carlini <pcarlini@suse.de>
96 * testsuite/testsuite_io.h (class sync_buf): New, templatized
97 version of sync_streambuf; add typedefs for streambuf/wstreambuf.
98 (class fail_buf): Likewise, for fail_streambuf.
99 (class fail_num_get): Templatize and add char/wchar_t typedefs.
100 (class fail_num_put): Likewise.
101 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
102 exceptions_badbit_throw.cc: Use the latter.
103 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
104 exceptions_failbit_throw.cc: Likewise.
105 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/
106 exceptions_badbit_throw.cc: Likewise.
107 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/
108 exceptions_failbit_throw.cc: Likewise.
110 2004-12-01 Paolo Carlini <pcarlini@suse.de>
112 * testsuite/27_io/basic_istream/get/wchar_t/1.cc: New.
113 * testsuite/27_io/basic_istream/get/wchar_t/2.cc: Likewise.
114 * testsuite/27_io/basic_istream/get/wchar_t/3.cc: Likewise.
115 * testsuite/27_io/basic_istream/ignore/wchar_t/1.cc: Likewise.
116 * testsuite/27_io/basic_istream/ignore/wchar_t/2.cc: Likewise.
117 * testsuite/27_io/basic_istream/ignore/wchar_t/3.cc: Likewise.
118 * testsuite/27_io/basic_istream/ignore/wchar_t/6360.cc: Likewise.
119 * testsuite/27_io/basic_istream/ignore/wchar_t/7220.cc: Likewise.
121 2004-11-29 Paolo Carlini <pcarlini@suse.de>
123 * testsuite/21_strings/basic_string/capacity/char/18654.cc: Use
125 * testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc: Same.
127 2004-11-29 Paolo Carlini <pcarlini@suse.de>
130 * include/bits/basic_string.tcc (_Rep::_S_create): When shrinking,
131 do not round to pagesize.
132 * testsuite/21_strings/basic_string/capacity/char/18654.cc: New.
133 * testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc: New.
135 2004-11-27 Paolo Carlini <pcarlini@suse.de>
138 * include/tr1/utility (get(pair), get(const pair)): Change
139 occurrences of _I to _Int.
141 2004-11-27 Paolo Carlini <pcarlini@suse.de>
143 * testsuite/27_io/basic_istream/getline/wchar_t/2.cc: Fix typo.
144 * testsuite/27_io/basic_istream/getline/wchar_t/4.cc: Likewise.
146 * testsuite/22_locale/time_put/put/char/17038.cc: Use VERIFY.
147 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: Likewise.
148 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11603.cc: Likewise.
149 * testsuite/27_io/basic_ios/exceptions/char/2.cc: Likewise.
151 2004-11-26 Paolo Carlini <pcarlini@suse.de>
153 DR 243. get and getline when sentry reports failure [WP]
154 * include/bits/istream.tcc (istream<>::get, istream<>::getline):
155 Store a null character only if the array has a non-zero size.
156 * src/istream.cc (istream<char>::getline, istream<wchar_t>::getline):
158 * testsuite/27_io/basic_istream/get/char/3.cc: New.
159 * testsuite/27_io/basic_istream/getline/char/6.cc: New.
160 * testsuite/27_io/basic_istream/getline/wchar_t/6.cc: New.
161 * docs/html/ext/howto.html: Add an entry for DR 243.
163 * testsuite/27_io/basic_istream/getline/wchar_t/1.cc: New.
164 * testsuite/27_io/basic_istream/getline/wchar_t/2.cc: New.
165 * testsuite/27_io/basic_istream/getline/wchar_t/3.cc: New.
166 * testsuite/27_io/basic_istream/getline/wchar_t/4.cc: New.
167 * testsuite/27_io/basic_istream/getline/wchar_t/5.cc: New.
169 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
171 * configure: Regenerate for libtool change.
173 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
175 * Makefile.in, aclocal.m4: Regenerate with automake 1.9.3.
176 * include/Makefile.in: Likewise.
177 * libmath/Makefile.in: Likewise.
178 * libsupc++/Makefile.in: Likewise.
179 * po/Makefile.in: Likewise.
180 * src/Makefile.in: Likewise.
181 * testsuite/Makefile.in: Likewise.
183 2004-11-24 Jonathan Wakely <redi@kayari.org>
185 * docs/html/ext/howto.html: Fix incorrect link.
186 * docs/html/documentation.html: Regenerate.
188 2004-11-24 Nathan Myers <ncm@cantrip.org>
190 * include/bits/streambuf_iterator.h
191 (istreambuf_iterator<>::operator++(), operator++(int)): Don't
192 check unnecessarily the return value of _M_sbuf->sbumpc().
194 2004-11-24 Benjamin Kosnik <bkoz@redhat.com>
196 * include/Makefile.am (tr1_headers): Add utility, functional.
197 * include/Makefile.in: Regenerate.
199 2004-11-24 Chris Jefferson <chris@bubblescope.net>
201 * include/tr1/tuple(operator!=): Change operator
202 definition to match (draft) technical report.
206 (ref): Move to include/tr1/functional.
208 (tuple_size<pair>): Move to include/tr1/utility.
209 (tuple_element<,pair>): Same.
210 * include/tr1/functional: New.
211 * include/tr1/utility: New.
212 * testsuite/tr1/6_container/utility/pair.cc: New.
214 2004-11-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
216 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
217 (do_out, do_unshift, do_in): Remove redundant typedef.
219 2004-11-23 Chris Jefferson <chris@bubblescope.net>
221 * testsuite/testsuite_iterators.h: New.
222 * testsuite/25_algorithms/search_n/iterator.cc: New.
223 * testsuite/performance/25_algorithms/search_n.cc: New.
225 2004-11-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
227 * testsuite/lib/libstdc++.exp: Use new procs in target-libpath.exp.
229 2004-11-23 Benjamin Kosnik <bkoz@redhat.com>
231 * docs/doxygen/doxygroups.cc: Add std::tr1 namespace.
232 * docs/doxygen/run_doxygen: Renames for std::tr1.
233 * docs/doxygen/user.cfg.in: Add cxxabi.h.
234 * include/bits/*.tcc: Add file markup.
235 * include/bits/allocator.h: Add link to allocator.html.
236 * include/bits/atomicity.h: Add file markup.
237 * include/bits/concurrence.h: Same.
238 * include/bits/functexcept.h: Same.
239 * include/ext*: Adjust file markup, remove GCC3 bits.
240 * include/std/*: Adjust file markup, remove bits about renamed files.
241 * libsupc++/cxxabi.h: Add file markup.
242 * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust line numbers.
244 2004-11-22 Benjamin Kosnik <bkoz@redhat.com>
246 * include/bits/locale_facets.h (isspace, isprint, isupper,
247 islower, isalpha, isdigit, ispunct, isxdigit, isalnum, isgraph,
248 toupper, tolower): Add doxygen markup.
249 (codecvt_byname, ctype_byname, numpunct_byname, collate_byname,
250 time_get_byname, time_put_byname, moneypunct_byname,
251 messages_byname): Same.
252 * include/std/std_fstream.h: Remove superfluous markup.
253 * include/std/std_sstream.h: Same.
254 * include/std/std_streambuf.h: Same.
255 * include/ext/enc_filebuf.h: Adjust markup.
256 * include/ext/stdio_filebuf.h: Same.
257 * include/ext/stdio_sync_filebuf.h: Same.
258 * include/bits/codecvt.h: Same.
259 * config/os/gnu-linux/ctype_base.h: Same.
260 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
261 * include/tr1/array: Add markup.
262 * include/tr1/tuple: Same.
264 * docs/doxygen/run_doxygen: Print arguments.
266 * docs/doxygen/user.cfg.in: Tweaks.
268 2004-11-19 Jonathan Wakely <redi@gcc.gnu.org>
270 * include/bits/basic_string.h, include/bits/locale_classes.h,
271 include/bits/valarray_after.h, include/bits/valarray_before.h,
272 include/ext/stdio_sync_filebuf.h, include/std/std_algorithm.h,
273 include/std/std_functional.h, include/std/std_memory.h,
274 include/std/std_numeric.h: Doxygen fixes.
276 2004-11-19 Paolo Carlini <pcarlini@suse.de>
278 * testsuite/22_locale/time_get/get_date/char/1.cc: In the checks
279 use, more correctly (and consistently with other testcases) the
280 return value of the facet (the iterator arguments are by value).
281 * testsuite/22_locale/time_get/get_date/char/12791.cc: Likewise.
282 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Likewise.
283 * testsuite/22_locale/time_get/get_date/wchar_t/12791.cc: Likewise.
284 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Likewise.
285 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
286 * testsuite/22_locale/time_get/get_time/char/1.cc: Likewise.
287 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Likewise.
288 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
289 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
290 * testsuite/22_locale/time_get/get_year/char/1.cc: Likewise.
291 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Likewise.
293 2004-11-19 Jonathan Wakely <redi@gcc.gnu.org>
295 * Makefile.am (doxygen, doxygen-maint, doxygen-man): Remove extra '$'
296 from host_alias variable.
297 * Makefile.in: Regenerate.
299 2004-11-19 Chris Jefferson <chris@bubblescope.net>
301 * include/bits/stl_list.h (list::back, list::back const):
302 Don't decrement temporary.
304 2004-11-19 Paolo Carlini <pcarlini@suse.de>
306 * include/bits/stl_deque.h (deque::front, deque::front const,
307 deque::back, deque::back const): Slightly tweak for stylistic
310 2004-11-18 Paolo Carlini <pcarlini@suse.de>
312 * testsuite/26_numerics/numeric/sum_diff.cc: Use VERIFY.
313 * testsuite/ext/array_allocator/1.cc: Likewise.
314 * testsuite/ext/array_allocator/2.cc: Likewise.
315 * testsuite/ext/array_allocator/3.cc: Likewise.
316 * testsuite/ext/enc_filebuf/char/13598.cc: Likewise.
318 2004-11-18 Paolo Carlini <pcarlini@suse.de>
320 * include/bits/locale_facets.tcc (num_get<>::do_get(void*&)):
321 If the failbit is set, don't set it again.
322 (money_get<>::_M_extract): Minor stylistic tweak: consistently
323 with the other functions, take care of eofbit at the end.
325 2004-11-18 Paolo Carlini <pcarlini@suse.de>
327 DR 434. bitset::to_string() hard to use [Ready]
328 * include/std/std_bitset.h (to_string): Add three overloads, taking
329 fewer template arguments.
330 * docs/html/ext/howto.html: Add an entry for DR 434.
331 * testsuite/23_containers/bitset/to_string/1.cc: New.
333 2004-11-17 Paolo Carlini <pcarlini@suse.de>
335 * include/bits/istream.tcc (getline(basic_istream<>&, basic_string<>&,
336 _CharT)): Remove temporary kludge for libstdc++/15002.
337 * include/std/std_streambuf.h (class basic_streambuf): Declare
338 getline(basic_istream<>&, basic_string<>&, _CharT) as friend.
339 * include/bits/basic_string.h (getline(basic_istream<>&,
340 basic_string<>&, _CharT)): Declare optimized specializations for
341 char and wchar_t, using protected members of basic_streambuf.
342 * src/istream.cc: Define the latter.
344 2004-11-16 Jonathan Wakely <redi@gcc.gnu.org>
346 * docs/html/19_diagnostics/howto.html: Document change from
347 _GLIBCPP_CONCEPT_CHECKS to _GLIBCXX_CONCEPT_CHECKS in 3.4.
349 2004-11-16 Matthias Klose <doko@debian.org>
351 * docs/doxygen/user.cfg.in: Set HAVE_DOT to NO.
353 2004-11-16 Matthias Klose <doko@debian.org>
355 * Makefile.am (doxygen, doxygen-maint, doxygen-man): Use host_alias
356 instead of build_alias.
357 * docs/doxygen/run_doxygen: Likewise.
358 * docs/doxygen/user.cfg.in: Likewise.
359 * Makefile.in: Regenerate.
361 2004-11-15 Paolo Carlini <pcarlini@suse.de>
363 * include/bits/streambuf.tcc (__copy_streambufs): Provide
364 a generic version of the function, not using the protected
365 members of basic_streambuf.
366 * include/std/std_streambuf.h (__copy_streambufs): Declare
367 optimized specializations for char and wchar_t.
368 * src/streambuf.cc: New file, define the latter.
369 * src/Makefile.am: Add.
370 * src/Makefile.in: Regenerate.
372 2004-11-15 Matthias Klose <doko@debian.org>
374 * docs/doxygen/run_doxygen: Add --build_alias option,
375 substitute it in docs/doxygen/user.cfg.in.
376 * docs/doxygen/user.cfg.in: Use build_alias.
377 * Makefile.am: Pass --build_alias to run_doxygen
378 * Makefile.in: Regenerate.
380 2004-11-15 Benjamin Kosnik <bkoz@redhat.com>
382 * testsuite/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.4.
384 2004-11-15 Paolo Carlini <pcarlini@suse.de>
386 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 33.
388 2004-11-14 Paolo Carlini <pcarlini@suse.de>
390 * include/bits/streambuf_iterator.h (istreambuf_iterator::_M_get):
391 Slightly tweak for clarity (also leads to measurably better code).
393 2004-11-12 Andrew Pinski <pinskia@physics.uc.edu>
396 * testsuite/lib/libstdc++.exp: Set LC_ALL and LANG to C.
398 2004-11-09 Paolo Carlini <pcarlini@suse.de>
400 * include/bits/locale_facets.tcc (time_get<>::do_get_weekday,
401 time_get<>::do_get_monthname): Absolutely avoid dereferencing
404 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
407 2004-11-08 Benjamin Kosnik <bkoz@redhat.com>
408 Doug Gregor <dgregor@cs.indiana.edu>
411 * src/debug.cc : Just use one mutex.
413 2004-11-08 Benjamin Kosnik <bkoz@redhat.com>
415 * configure.ac (libtool_VERSION): To 6:4:0.
416 * configure: Regenerate.
418 * config/linker-map.gnu: Slide new symbols into GLIBCXX_3.4.4.
420 * docs/doxygen/user.cfg.in: Add more extension files.
422 2004-11-08 Paolo Carlini <pcarlini@suse.de>
424 * include/bits/streambuf_iterator.h (class istreambuf_iterator):
425 Consistently use _M_c to cache the current char, i.e., not only
426 when operator++(int) is involved; change _M_c to mutable.
427 (_M_get()): Always save the return value of _M_sbuf->sgetc() into
429 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Fix
430 (long standing) typo.
431 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
432 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
433 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
435 2004-11-08 Paolo Carlini <pcarlini@suse.de>
437 * include/bits/istream.tcc (getline(char_type*, streamsize,
438 char_type), ignore(streamsize), ignore(streamsize, int_type)):
439 Restore a generic version of the functions, not using the
440 protected members of basic_streambuf.
441 * include/std/std_istream.h (getline(char_type*, streamsize,
442 char_type), ignore(streamsize), ignore(streamsize, int_type)):
443 Declare optimized specializations for char and wchar_t.
444 * src/istream.cc: New file, define the latter.
445 * src/Makefile.am: Add.
446 * src/Makefile.in: Regenerate.
448 2004-11-07 Paolo Carlini <pcarlini@suse.de>
450 * testsuite/performance/27_io/ifstream_getline-2.cc: New.
452 2004-11-05 Benjamin Kosnik <bkoz@redhat.com>
456 * docs/doxygen/filter: Remove.
457 * docs/doxygen/filter.sed: Remove.
458 * docs/doxygen/mainpage.html: Add link to functions.
459 * docs/doxygen/run_doxygen: Changes due to new source filtering.
460 * docs/doxygen/user.cfg.in: Update to doxygen 1.3.9.1, tweak.
461 * include/bits/allocator.h: Tweaks for doxygen.
462 * include/bits/char_traits.h: Same.
463 * include/bits/codecvt.h: Same.
464 * include/bits/concurrence.h: Same.
465 * include/bits/locale_facets.h: Same.
466 * include/ext/array_allocator.h: Same.
467 * include/ext/debug_allocator.h: Same.
468 * include/ext/malloc_allocator.h: Same.
469 * include/ext/mt_allocator.h: Same.
470 * include/ext/new_allocator.h: Same.
471 * include/ext/pool_allocator.h: Same.
472 * include/ext/stdio_sync_filebuf.h: Same.
473 * include/std/std_memory.h: Same.
474 * include/tr1/array: Same.
475 * include/tr1/tuple: Same.
476 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
477 * config/os/gnu-linux/ctype_base.h: Same.
479 2004-11-04 Paolo Carlini <pcarlini@suse.de>
481 * include/bits/locale_facets.tcc (num_get<>::do_get(bool&)):
482 Evaluate __beg == __end the exact strict minimum number of times.
484 2004-11-03 Jonathan Wakely <redi@gcc.gnu.org>
486 * include/bits/stl_numeric.h (partial_sum, adjacent_difference):
487 Avoid dereferencing two times __first in the prologue.
489 2004-11-03 Paolo Carlini <pcarlini@suse.de>
491 * include/bits/stl_numeric.h: Trivial formatting fixes.
493 2004-11-03 Benjamin Kosnik <bkoz@redhat.com>
495 * include/bits/c++config: Spacing.
496 * libsupc++/del_op.cc: Include c++config.h.
497 * libsupc++/del_opnt.cc: Same.
498 * libsupc++/del_opv.cc: Same.
499 * libsupc++/del_opvnt.cc: Same.
500 * libsupc++/new_op.cc: Same.
501 * libsupc++/new_opnt.cc: Same.
502 * libsupc++/new_opv.cc: Same.
503 * libsupc++/new_opvnt.cc: Same.
505 2004-11-03 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
507 * config/os/bsd/darwin/os_defines.h
508 (_GLIBCXX_WEAK_DEFINITION): Define.
509 * include/bits/c++config (_GLIBCXX_WEAK_DEFINITION): Define.
510 * libsupc++/del_op.cc (operator delete(void *)): Use
511 _GLIBCXX_WEAK_DEFINITION.
512 * libsupc++/del_opnt.cc
513 (operator delete(void *, const std::nothrow_t&)): Same.
514 * libsupc++/del_opv.cc (operator delete[](void *)): Same.
515 * libsupc++/del_opvnt.cc
516 (operator delete[](void *, const std::nothrow_t&)): Same.
517 * libsupc++/new_op.cc (operator new(std::size_t)): Same.
518 * libsupc++/new_opnt.cc
519 (operator new(std::size_t, const std::nothrow_t&)): Same
520 * libsupc++/new_opv.cc (operator new[](std::size_t)): Same.
521 * libsupc++/new_opvnt.cc
522 (operator new[](std::size_t, const std::nothrow_t&)): Same.
524 2004-11-02 Paolo Carlini <pcarlini@suse.de>
526 * include/bits/locale_facets.tcc (num_get<>::_M_extract_int):
527 Evaluate *__beg the exact strict minimum number of times; likewise
528 for __beg != __end; slightly simplify main parsing loop.
530 2004-11-02 Benjamin Kosnik <bkoz@redhat.com>
531 Lothar Werzinger <lothar@xcerla.com>
534 * src/debug.cc: Include concurrence, use mutexes.
535 (_Safe_iterator_base::_M_attach): Here.
536 (_Safe_iterator_base::_M_detach): Here.
538 2004-11-02 Benjamin Kosnik <bkoz@redhat.com>
541 * include/bits/ios_base.h : Add enum values.
542 * testsuite/testsuite_hooks.h (bitmask_operators): Add function.
543 * testsuite/27_io/ios_base/types/fmtflags/bitmask_operators.cc: New.
544 * testsuite/27_io/ios_base/types/fmtflags/case_label.cc: New.
545 * testsuite/27_io/ios_base/types/iostate/bitmask_operators.cc: New.
546 * testsuite/27_io/ios_base/types/iostate/case_label.cc: New.
547 * testsuite/27_io/ios_base/types/openmode/bitmask_operators.cc: New.
548 * testsuite/27_io/ios_base/types/openmode/case_label.cc: New.
549 * testsuite/27_io/ios_base/types/seekdir/case_label.cc: New.
551 * config/io/c_io_stdio.h (__ios_flags): Mark deprecated.
554 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
555 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
557 2004-11-01 Momchil Velikov <velco@fadata.bg>
560 * libsupc++/eh_globals.cc (get_globals_dtor): Delete unhandled
562 * testsuite/thread/18185.cc: New.
564 2004-11-01 Chris Jefferson <chris@bubblescope.net>
567 * include/tr1/tuple (get(pair)): Change occurrences of _I to _Int.
568 (get(const pair)): Likewise.
570 2004-11-01 Paolo Carlini <pcarlini@suse.de>
572 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
573 Evaluate *__beg the exact strict minimum number of times; likewise
574 for __beg != __end; in the main parsing loop, call ++__beg in two
575 places only. The former is also a correctness issue, because,
576 according to the standard (22.2.2.1.2, Stage 2), 'in' shall be
577 dereferenced only one time for each increment.
579 2004-10-31 Benjamin Kosnik <bkoz@redhat.com>
582 * testsuite/23_containers/set/modifiers/16728.cc: New.
584 2004-10-30 Paolo Carlini <pcarlini@suse.de>
586 * include/ext/bitmap_allocator.h (allocate(size_type)): Minor tweak.
588 * testsuite/ext/bitmap_allocator/check_delete.cc: New.
589 * testsuite/ext/bitmap_allocator/check_new.cc: Likewise.
591 2004-10-29 Geoffrey Keating <geoffk@apple.com>
593 * configure.host (darwin*): Set os_include_dir to a separate directory
595 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add a new C locale kind,
597 * config/locale/darwin/ctype_members.cc: New.
598 * config/os/bsd/darwin/ctype_base.h: New.
599 * config/os/bsd/darwin/ctype_inline.h: New.
600 * config/os/bsd/darwin/ctype_noninline.h: New.
601 * config/os/bsd/darwin/os_defines.h: New.
603 * testsuite/22_locale/locale/cons/12658_thread-1.cc: Only xfail
606 2004-10-29 Chris Jefferson <chris@bubblescope.net>
608 * include/bit/stl_algo.h (find_first_of(,,,,pred)):
609 Remove invalid EqualOpConcept.
610 * testsuite/25_algorithms/find_first_of/concept_check_1.cc: New.
612 2004-10-29 Benjamin Kosnik <bkoz@redhat.com>
614 * testsuite/testsuite_allocator.h (check_delete): New.
615 (check_new): Simplify.
616 * testsuite/ext/array_allocator/check_delete.cc: New.
617 * testsuite/ext/array_allocator/check_new.cc: Simplify.
618 * testsuite/ext/debug_allocator/check_delete.cc: New.
619 * testsuite/ext/debug_allocator/check_new.cc: Simplify.
620 * testsuite/ext/malloc_allocator/check_delete.cc: New.
621 * testsuite/ext/malloc_allocator/check_new.cc: Simplify.
622 * testsuite/ext/mt_allocator/check_delete.cc: New.
623 * testsuite/ext/mt_allocator/check_new.cc: Simplify.
624 * testsuite/ext/new_allocator/check_delete.cc: New.
625 * testsuite/ext/new_allocator/check_new.cc: Simplify.
626 * testsuite/ext/pool_allocator/check_delete.cc: New.
627 * testsuite/ext/pool_allocator/check_new.cc: Simplify.
629 2004-10-28 Chris Jefferson <chris@bubblescope.net>
632 * include/tr1/tuple: Fix, change formatting.
634 2004-10-28 Benjamin Kosnik <bkoz@redhat.com>
636 * include/ext/mt_allocator.h (__common_pool_policy): Add template
637 template parameter for pool class type.
638 (__per_type_pool_policy): Same.
639 (__mt_allocator): Don't inherit policy. Qualify policy_type calls.
640 * testsuite/ext/mt_allocator/check_deallocate_null.cc: Fix.
641 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: Same.
642 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
643 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
644 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
645 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
646 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Same.
647 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
648 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
649 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
650 * testsuite/ext/mt_allocator/instantiate.cc: Same.
651 * testsuite/ext/mt_allocator/tune-1.cc: Same.
652 * testsuite/ext/mt_allocator/tune-2.cc: Same.
653 * testsuite/ext/mt_allocator/tune-3.cc: Same.
654 * testsuite/ext/mt_allocator/tune-4.cc: Same.
656 2004-10-28 Paolo Carlini <pcarlini@suse.de>
658 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
659 Cache *__beg in __c when parsing exponent sign too.
660 (num_get<>::do_get(..., bool&)): Cache *__beg.
661 (money_get<>::_M_extract)): Likewise, in money_base::value.
663 2004-10-27 Paolo Carlini <pcarlini@suse.de>
665 * include/bits/basic_string.h (assign(const basic_string&)):
667 * include/bits/basic_string.tcc: ... here.
669 2004-10-27 Paolo Carlini <pcarlini@suse.de>
671 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
673 * include/bits/basic_string.tcc: ... here.
675 2004-10-26 Paolo Carlini <pcarlini@suse.de>
677 * include/bits/basic_string.h (append(const basic_string&),
678 append(size_type, _CharT)): Move out of line...
679 * include/bits/basic_string.tcc: ... here.
681 2004-10-26 Paolo Carlini <pcarlini@suse.de>
683 * include/bits/basic_string.h (erase(size_type, size_type),
684 erase(iterator), erase(iterator, iterator)): Call _M_mutate
685 instead of _M_replace_safe, equivalent when the fourth argument
688 2004-10-26 Benjamin Kosnik <bkoz@redhat.com>
690 * include/ext/array_allocator.h (array::allocate): Check for valid
691 array object, use its size member function directly.
692 * testsuite/ext/array_allocator/3.cc: New.
693 * docs/html/20_util/allocator.html: Add docs.
695 2004-10-25 Geoffrey Keating <geoffk@apple.com>
697 * configure.host (darwin*): Build libstdc++ single module
699 * libsupc++/new_op.cc (new): Make weak.
700 * libsupc++/new_opnt.cc (new): Make weak.
701 * libsupc++/new_opv.cc (new): Make weak.
702 * libsupc++/new_opvnt.cc (new): Make weak.
703 * libsupc++/delete_op.cc (delete): Make weak.
704 * libsupc++/delete_opnt.cc (delete): Make weak.
705 * libsupc++/delete_opv.cc (delete): Make weak.
706 * libsupc++/delete_opvnt.cc (delete): Make weak.
708 2004-10-25 Benjamin Kosnik <bkoz@redhat.com>
710 * testsuite/Makefile.am (GLIBCXX_INCLUDES): Add.
711 (AUTOMAKE_OPTIONS): Add nostdinc.
712 * testsuite/Makefile.in: Regenerate.
713 * scripts/testsuite_flags.in (build-includes): Remove redundant
714 search for libsupc++.
715 * fragment.am: Clean.
717 2004-10-25 Benjamin Kosnik <bkoz@redhat.com>
719 * include/Makefile.am (tr1_headers): Add tuple.
720 * include/Makefile.in: Regenerate.
722 2004-10-25 Chris Jefferson <chris@bubblescope.net>
724 * include/tr1/tuple: Implementation of tuple from library TR.
725 * testsuite/tr1/6_containers/tuple/tuple_element.cc: New.
726 * testsuite/tr1/6_containers/tuple/tuple_size.cc: New.
727 * testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc:
729 * testsuite/tr1/6_containers/tuple/cons/assignment.cc: New.
730 * testsuite/tr1/6_containers/tuple/cons/big_tuples.cc: New.
731 * testsuite/tr1/6_containers/tuple/cons/constructor.cc: New.
732 * testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc:
734 * testsuite/tr1/6_containers/tuple/creation_functions/tie.cc: New.
735 * testsuite/tr1/6_containers/tuple/element_access/get.cc: New.
737 2004-10-25 Paolo Carlini <pcarlini@suse.de>
739 * include/bits/basic_string.h (_Rep::_M_is_safe): Move to
740 basic_string as _M_disjunct, adjust to take only __s.
741 * include/bits/basic_string.tcc: Adjust consistently callers.
743 2004-10-25 Paolo Carlini <pcarlini@suse.de>
745 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
746 Adjust bit missing from the previous commit.
748 2004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
751 * testsuite/lib/libstdc++.exp: Accept more than one multilib libgcc.
753 2004-10-25 Paolo Carlini <pcarlini@suse.de>
755 * include/bits/basic_string.h (_Rep::_M_is_safe, _M_check_length,
756 _M_move, _M_copy, _M_assign): New, use througout.
757 (operator+=(_CharT)): Define in terms of push_back.
758 (append(const basic_string&)): Define here, inline, and simplify,
759 don't use the full _M_replace_safe.
760 (append(size_type, _CharT)): Likewise, don't use _M_replace_aux.
761 (push_back): Likewise.
762 (assign(const basic_string&)): Define here, inline.
763 * include/bits/basic_string.tcc (append(const _CharT* s, size_type):
764 Fix: when s points inside the _Rep, upon reallocation (reserve) we
765 were copying from deallocated memory.
766 (append(const basic_string&, size_type, size_type)): Simplify,
767 don't use _M_replace_safe.
768 (replace(size_type, size_type, const _CharT*, size_type)): Slightly
771 * testsuite/21_strings/basic_string/append/char/2.cc: New.
772 * testsuite/21_strings/basic_string/append/char/3.cc: Likewise.
773 * testsuite/21_strings/basic_string/append/wchar_t/2.cc: Likewise.
774 * testsuite/21_strings/basic_string/append/wchar_t/3.cc: Likewise.
776 * testsuite/21_strings/basic_string/assign/char/3.cc: Remove junk.
777 * testsuite/21_strings/basic_string/assign/wchar_t/3.cc: Likewise.
779 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
781 * testsuite/ext/mt_allocator/deallocate_global-2.c:
782 s/value_t/value_type/. s/traits_t/traits_type/.
783 s/policy_t/policy_type/. s/allocator_t/allocator_type/.
784 s/string_t/string_type/. s/list_t/list_type/.
785 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Likewise.
786 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Likewise.
787 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Likewise.
788 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Likewise.
789 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Likewise.
790 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Likewise.
791 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Likewise.
793 2004-10-21 Benjamin Kosnik <bkoz@redhat.com>
795 * include/tr1/array (array): Make safe for zero-sized arrays.
796 (array::end): Return one past the end.
797 (array::at): Use __throw_out_of_range, include functexcept.h.
798 (operator==): Implement.
804 * testsuite/tr1/6_containers/array/capacity/(empty.cc,
805 max_size.cc, size.cc): New.
806 * testsuite/tr1/6_containers/array/comparison_operators/(equal.cc,
807 greater.cc, greater_or_equal.cc, less.cc, less_or_equal.cc,
809 * testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc:
811 * testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc:
813 * testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc: New.
814 * testsuite/tr1/6_containers/array/requirements/(contiguous.cc,
815 instantiate, typedefs, zero_size_arrays): New.
817 2004-10-21 Paolo Carlini <pcarlini@suse.de>
818 Benjamin Kosnik <bkoz@redhat.com>
820 * include/bits/basic_string.h (_M_set_length_and_sharable): New.
821 * include/bits/basic_string.tcc (_S_construct, assign(const _CharT*,
822 size_type), _M_mutate, _M_clone): Use it.
823 (_Rep::_S_create): Don't set/call _M_length/_M_set_sharable here.
825 2004-10-21 Paolo Carlini <pcarlini@suse.de>
826 Dhruv Matani <dhruvbird@gmx.net>
827 Nathan Myers <ncm@cantrip.org>
829 * include/bits/vector.tcc (_M_insert_aux, _M_fill_insert,
830 _M_range_insert): Check at the outset that we are not trying
831 to exceed max_size, then deal properly with __len overflows.
832 * testsuite/23_containers/vector/modifiers/insert/1.cc: New.
834 * testsuite/testsuite_allocator.h: Remove redundant include.
836 2004-10-20 Paolo Carlini <pcarlini@suse.de>
838 * include/ext/bitmap_allocator.h (allocate): Throw std::bad_alloc
840 * include/ext/malloc_allocator.h (allocate): Likewise.
841 * include/ext/mt_allocator.h (allocate): Likewise.
842 * include/ext/new_allocator.h (allocate): Likewise.
843 * include/ext/array_allocator.h: Use __throw_bad_alloc().
844 * include/ext/pool_allocator.h: Use __builtin_expect.
845 * testsuite/ext/array_allocator/check_allocate_max_size.cc: New.
846 * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc: Likewise.
847 * testsuite/ext/malloc_allocator/check_allocate_max_size.cc: Likewise.
848 * testsuite/ext/mt_allocator/check_allocate_max_size.cc: Likewise.
849 * testsuite/ext/new_allocator/check_allocate_max_size.cc: Likewise.
850 * testsuite/ext/pool_allocator/check_allocate_max_size.cc: Likewise.
851 * testsuite/testsuite_allocator.h (check_allocate_max_size): New test.
853 2004-10-19 Paolo Carlini <pcarlini@suse.de>
855 * testsuite/performance/20_util/allocator/list_sort_search.cc:
856 Include <ext/new_allocator.h>.
857 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
859 2004-10-18 Paolo Carlini <pcarlini@suse.de>
861 * include/bits/basic_string.tcc (_M_mutate): Do not reallocate
862 unnecessarily when _M_rep() == &_S_empty_rep() and __new_size
863 == capacity() (== 0): is ok to just leave everything unchanged.
865 * include/bits/basic_string.h: Minor formatting fixes.
866 * include/bits/basic_string.tcc: Likewise.
868 2004-10-17 Benjamin Kosnik <bkoz@redhat.com>
870 * include/ext/mt_allocator.h (__pool::_M_get_align): New.
871 (__mt_alloc::allocate): Use it.
872 * src/mt_allocator.cc (__pool::_M_reclaim_block): Use it.
873 (__pool::_M_reserve_block): Simplify block allocation.
875 2004-10-17 Dhruv Matani <dhruvbird@gmx.net>
876 Paolo Carlini <pcarlini@suse.de>
878 * include/ext/bitmap_allocator.h: Change unsigned int -> size_t: this
879 makes the code 64-bit correct and also fixes (together with using at
880 the beginning a bitmap 2 * size_t bytes wide) alignment issues: now
881 8 is guaranteed, easily tunable to 16 via _BALLOC_ALIGN_BYTES.
882 Fix pthread-rope7.cc fail by nulling out __mini_vector<> destructor.
883 * src/bitmap_allocator.cc: Change to size_t.
884 * config/linker-map.gnu: Adjust.
886 2004-10-16 Benjamin Kosnik <bkoz@redhat.com>
888 * include/tr1/array: Don't use layout_type.
890 2004-10-16 Sashan Govender <sashang@gmail.com>
892 * include/tr1/array (array::end const): Fix casting from iterator
895 2004-10-15 Paolo Carlini <pcarlini@suse.de>
897 * include/ext/bitmap_allocator.h: Qualify ::operator delete.
898 * src/bitmap_allocator.cc: Likewise.
899 * src/mt_allocator.cc: Use ::operator delete, not delete,
900 consistently with ::operator new.
902 * include/ext/bitmap_allocator.h (deallocate): Check for null
904 * testsuite/ext/bitmap_allocator/check_deallocate_null.cc: New.
905 * testsuite/testsuite_allocator.h (check_deallocate_null): Add test.
907 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
909 * include/ext/mt_allocator.h (__mt_alloc::deallocate): Check for
911 * include/ext/pool_allocator.h (debug_allocator::deallocate):
913 * include/ext/debug_allocator.h (debug_allocator::deallocate):
914 Throw exceptions, don't abort.
915 * include/ext/array_allocator.h
916 (array_allocator_base::deallocate): Remove unused parameters.
917 * testsuite/testsuite_allocator.h (check_deallocate_null): New.
918 * testsuite/ext/mt_allocator/check_deallocate_null.cc: New.
919 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: New.
920 * testsuite/ext/array_allocator/check_deallocate_null.cc: New.
921 * testsuite/ext/debug_allocator/check_deallocate_null.cc: New.
922 * testsuite/ext/malloc_allocator/check_deallocate_null.cc: New.
923 * testsuite/ext/new_allocator/check_deallocate_null.cc: New.
924 * testsuite/ext/pool_allocator/check_deallocate_null.cc: New.
926 * testsuite/testsuite_allocator.h (check_new): Add instance argument.
927 * testsuite/ext/array_allocator/check_new.cc: New.
929 2004-10-14 Paolo Carlini <pcarlini@suse.de>
931 * include/ext/bitmap_allocator.h (bitmap_allocator::_Alloc_block):
932 Rename __unused to __M_unused.
934 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
936 * testsuite/ext/headers.cc: Add includes, compile only.
937 * testsuite/ext/hash_map.cc: Move to...
938 * testsuite/ext/hash_map/1.cc: ...here.
939 * testsuite/ext/14648.cc: Move to...
940 * testsuite/ext/hash_map/14648.cc: ...here.
941 * testsuite/ext/hash_map/instantiate.cc: Add.
942 * testsuite/ext/hash_set.cc: Move to...
943 * testsuite/ext/hash_set/1.cc: ...here.
944 * testsuite/ext/hash_set_explicit_instantiation.cc: Move to...
945 * testsuite/ext/hash_set/instantiate.cc: ...here.
946 * testsuite/ext/hash_check_construct_destroy.cc: Move to...
947 * testsuite/ext/hash_set/check_construct_destroy.cc: ...here.
948 * testsuite/ext/slist_check_construct_destroy.cc: Move to...
949 * testsuite/ext/slist/check_construct_destroy.cc: ...here.
950 * testsuite/ext/slist_explicit_instantiation.cc: Move to...
951 * testsuite/ext/slist/instantiate.cc: ...here.
953 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
955 * include/ext/mt_allocator.h: Tweaks.
956 * src/mt_allocator.cc: Same.
958 2004-10-14 Dhruv Matani <dhruvbird@gmx.net>
960 * ext/bitmap_allocator.h: Clean-up add/remove functions.
961 * src/bitmap_allocator.cc: New file. Contains the out-of-line
962 function definitions, static initialization of variables, and
963 explicit instantiations needed for the allocator.
964 * src/Makefile.am: Add.
965 * src/Makefile.in: Regenerate.
966 * config/linker.map.gnu: Add the necessary symbols.
968 2004-10-13 Paolo Carlini <pcarlini@suse.de>
970 * include/bits/basic_string.tcc (_S_create): Use consistently
971 the exponential policy, simplify.
972 * testsuite/performance/21_strings/string_append_2.cc: New.
974 * include/ext/array_allocator.h (allocate): Fix bad_alloc check.
975 * testsuite/ext/array_allocator/2.cc: Fix wrt 64-bit archs (in
976 that case sizeof(_Rep) == 24).
978 2004-10-12 Paolo Carlini <pcarlini@suse.de>
981 * include/bits/stl_tree.h (erase(iterator, iterator)): Revert
982 wrong commit of 2004-10-07.
984 2004-10-12 Scott Snyder <snyder@fnal.gov>
987 * testsuite/23_containers/set/modifiers/17948.cc: New.
989 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
991 * include/bits/stl_deque.h: Correct for over-long lines.
993 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
996 * include/ext/mt_allocator.h (__pool::_M_destroy): New.
997 * src/mt_allocator.cc (__pool::~__pool): Change definitions to
999 * acconfig.h: Remove _GLIBCXX_USE___CXA_ATEXIT.
1000 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): Remove.
1001 * configure.ac: Remove call to GLIBCXX_ENABLE_CXA_EXIT.
1002 * configure: Regenerate.
1003 * config/linker-map.gnu: Tweak exports.
1004 * docs/html/ext/mt_allocator.html: Update docs.
1005 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Fix.
1006 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Fix.
1007 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Fix.
1008 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Fix.
1009 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Fix.
1010 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Fix.
1011 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Fix.
1012 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Fix.
1014 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
1016 PR libstdc++/16614 continued.
1017 * include/ext/mt_allocator.h
1018 (__per_type_pool_policy::_S_get_pool): Use saner defaults based on
1019 specific type characteristics.
1020 (__pool_base): Add constructor that takes a _Tune argument.
1022 * testsuite/ext/mt_allocator/tune-2.cc: Adjust default.
1023 * testsuite/ext/mt_allocator/tune-4.cc: Same.
1024 * testsuite/ext/mt_allocator/tune-3.cc: Same.
1026 2004-10-11 Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
1027 Paolo Carlini <pcarlini@suse.de>
1029 * src/pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk):
1030 Deal properly with exceptions thrown by ::operator new(size_t).
1031 * testsuite/ext/pool_allocator/allocate_chunk.cc: New.
1033 * include/ext/pool_allocator.h: Include <cstdlib>.
1035 2004-10-10 Benjamin Kosnik <bkoz@redhat.com>
1037 * include/bits/functexcept.h: Add guards.
1039 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Tweak test.
1040 * configure: Regenerate.
1042 2004-10-10 Paolo Carlini <pcarlini@suse.de>
1044 * config/locale/gnu/monetary_members.cc (_S_construct_pattern):
1045 Give __ret a default value, thus avoiding spurious warnings.
1047 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Open either
1048 words or linux.words, otherwise exit.
1049 * testsuite/performance/27_io/ifstream_getline.cc: Slighlty tweak.
1051 2004-10-09 Paolo Carlini <pcarlini@suse.de>
1053 * include/std/std_memory.h (__get_temporary_buffer): Don't use
1054 INT_MAX, prefer numeric_limits<ptrdiff_t>::max(), ok on 64-bit
1056 * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust dg-error
1059 2004-10-08 Benjamin Kosnik <bkoz@redhat.com>
1061 * acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
1062 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): New.
1063 * configure.ac: Call GLIBCXX_ENABLE_CXA_EXIT.
1064 * configure: Regenerate.
1065 * src/mt_allocator.cc (__pool::~__pool): Make conditional on
1066 _GLIBCXX_USE___CXA_ATEXIT macro.
1067 * docs/html/ext/mt_allocator.html: Add note about deallocation.
1068 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Guard checks
1069 with _GLIBCXX_USE___CXA_ATEXIT.
1070 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
1071 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
1072 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
1073 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
1074 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
1075 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
1076 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
1078 2004-10-07 Phil Edwards <phil@codesourcery.com>
1080 * testsuite/lib/libstdc++.exp: Update list of undefined functions.
1082 2004-10-07 Paolo Carlini <pcarlini@suse.de>
1084 * include/bits/list.tcc (operator=): Avoid iterator postincrement.
1085 * include/bits/stl_tree.h (erase(iterator, iterator)): Likewise.
1087 2004-10-07 Benjamin Kosnik <bkoz@redhat.com>
1090 * include/tr1/array: New.
1091 * include/Makefile.am (tr1_headers): New.
1093 (install-headers): New.
1094 (allstamped): Add stamp-tr1.
1096 * include/ext/array_allocator.h: New.
1097 * include/Makefile.am: Add.
1098 * include/Makefile.in: Regenerate.
1099 * testsuite/ext/array_allocator/1.cc: New.
1100 * testsuite/ext/array_allocator/2.cc: New.
1102 2004-10-07 Richard Earnshaw <rearnsha@arm.com>
1104 * testsuite/lib/libstdc++.exp (libstdc++_exit): New proc.
1106 2004-10-07 Roger Sayle <roger@eyesopen.com>
1109 * configure.ac: Newlib does not provide strtold.
1110 * configure: Regenerate.
1112 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
1114 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
1115 (GLIBCXX_CONFIGURE_TESTSUITE): Use it.
1116 * configure: Regenerated.
1117 * testsuite/Makefile.am (CLEANFILES): Add TEST for
1118 check-performance executables.
1119 (stamp_thread): New.
1120 (all-local): Use it.
1121 * testsuite/Makefile.in: Regenerate.
1122 * scripts/create_testsuite_files: Filter thread tests.
1124 * testsuite/thread/pthread1.cc: Remove macro conditionals: this
1125 file will only be run by thread enabled configurations.
1126 * testsuite/thread/pthread7-rope.cc: Same, add rope_type typedef.
1127 * testsuite/thread/pthread6.cc: Same.
1128 * testsuite/thread/pthread5.cc: Same.
1129 * testsuite/thread/pthread4.cc: Same.
1130 * testsuite/thread/pthread3.cc: Same.
1131 * testsuite/thread/pthread2.cc: Same.
1133 * testsuite/ext/mt_allocator/instantiate.cc: Add in __GTHREADS guard.
1134 * testsuite/ext/mt_allocator/deallocate_global-1.cc: Move to...
1135 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: ...here.
1136 * testsuite/ext/mt_allocator/deallocate_global-3.cc: Move to...
1137 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: ...here.
1138 * testsuite/ext/mt_allocator/deallocate_local-1.cc: Move to...
1139 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: ...here.
1140 * testsuite/ext/mt_allocator/deallocate_local-3.cc: Move to...
1141 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: ...here.
1143 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
1144 Paolo Carlini <pcarlini@suse.de>
1147 * src/mt_allocator.cc (__pool<true>::_M_reserve_block): Revert
1148 to old locking order.
1150 2004-10-06 Paolo Carlini <pcarlini@suse.de>
1152 * include/std/std_sstream.h (_M_sync): When the caller is
1153 setbuf, don't trust _M_string.capacity() to be the size of
1154 the buffer area, use _M_string.size() in this case.
1155 * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
1156 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.
1158 * include/bits/sstream.tcc (overflow): Avoid calling string::assign
1159 unnecessarily when the current _M_string is empty.
1161 2004-10-06 Paolo Carlini <pcarlini@suse.de>
1163 * include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)):
1164 Avoid iterator postincrement.
1165 (__rotate): Likewise.
1167 * include/bits/stl_algo.h: Minor formatting tweaks.
1169 2004-10-06 Christopher Jefferson <caj@cs.york.ac.uk>
1171 * include/bits/stl_algo.h (__reverse(random_access_iterator_tag)):
1172 Avoid iterator postincrement; fix swapping middle element with
1173 itself on odd-length inputs.
1175 2004-10-05 Benjamin Kosnik <bkoz@redhat.com>
1178 * include/ext/mt_allocator.h (__pool_base::_Tune): Add default
1179 options as compile-time constant enums.
1180 (__pool_base::_Tune::is_default): New.
1181 (__pool_base::_Block_address): New.
1182 (__pool_base): Rearrange data members.
1183 (__pool::_M_reserve_memory): To _M_reserve_block.
1184 (__pool::_M_reclaim_memory): To _M_reclaim_block.
1185 (__pool::_Bin_record): Add _Block_address data member.
1186 (__pool<false>): Add _M_thread_freelist_initial.
1187 (__pool::~__pool): Declare.
1188 (__common_pool_policy): Move static data member to...
1189 (__common_pool_policy::_S_get_pool): ...here, make static local.
1190 (__per_type_pool_policy): Move static data member to...
1191 (__per_type_pool_policy::_S_get_pool): ...here, make static local.
1192 (__mt_alloc::__mt_alloc): Call __policy_type::_S_get_pool.
1193 Remove static member definitions. Use define for __default_policy.
1194 * src/mt_allocator.cc: Same.
1195 * config/linker-map.gnu: Don't export _S_get_pool. Renames.
1196 * testsuite/ext/new_allocator: New.
1197 * testsuite/ext/new_allocator/instantiate.cc: New.
1198 * testsuite/ext/new_allocator/check_new.cc: New.
1199 * testsuite/ext/new_allocator/deallocate_global.cc: New.
1200 * testsuite/ext/new_allocator/deallocate_local.cc: New.
1201 * testsuite/ext/mt_allocator/instantiate.cc: Instantiate all
1203 * testsuite/ext/mt_allocator/deallocate_global-1.cc: New.
1204 * testsuite/ext/mt_allocator/deallocate_global-2.cc: New.
1205 * testsuite/ext/mt_allocator/deallocate_global-3.cc: New.
1206 * testsuite/ext/mt_allocator/deallocate_global-4.cc: New.
1207 * testsuite/ext/mt_allocator/deallocate_local-1.cc: New.
1208 * testsuite/ext/mt_allocator/deallocate_local-2.cc: New.
1209 * testsuite/ext/mt_allocator/deallocate_local-3.cc: New.
1210 * testsuite/ext/mt_allocator/deallocate_local-4.cc: New.
1211 * testsuite/ext/mt_allocator/deallocate.cc: New.
1212 * testsuite/ext/malloc_allocator/deallocate.cc: New.
1213 * testsuite/ext/malloc_allocator/deallocate_global.cc: New.
1214 * testsuite/ext/malloc_allocator/deallocate_local.cc: New.
1216 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1218 * configure.host (abi_baseline_pair): Define for s390-*-linux* and
1220 * config/abi/s390-linux-gnu/baseline_symbols.txt: Add missing symbols.
1221 * config/abi/s390x-linux-gnu/baseline_symbols.txt: New file.
1223 2004-10-05 Christopher Jefferson <caj@cs.york.ac.uk>
1225 * include/bits/stl_algobase.h (iter_swap): delegate to swap via
1226 __iter_swap when iterator's value_types are equal.
1227 (struct __iter_swap): New.
1229 2004-10-04 Benjamin Kosnik <bkoz@redhat.com>
1231 * configure.ac (libtool_VERSION): To 6:3:0.
1232 * configure: Regnerate.
1233 * testsuite/testsuite_abi.cc (check_version): Add 3.4.3.
1235 2004-10-04 Roger Sayle <roger@eyesopen.com>
1236 Eric Botcazou <ebotcazou@libertysurf.fr>
1239 * config/linker-map.gnu: Synchronize the current list of stub
1240 functions from libmath.
1242 2004-10-03 Roger Sayle <roger@eyesopen.com>
1244 * config/locale/generic/c_locale.cc (__convert_to_v): Use
1245 _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
1246 Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
1247 to check for presence of strtold.
1249 2004-10-03 Paolo Carlini <pcarlini@suse.de>
1251 * include/bits/stl_list.h: Trivial formatting fixes.
1252 * include/bits/stl_tree.h: Likewise.
1254 2004-10-03 Paolo Carlini <pcarlini@suse.de>
1256 * include/bits/sstream.tcc (seekpos): In case of success, just
1259 2004-10-01 Paolo Carlini <pcarlini@suse.de>
1261 * include/bits/sstream.tcc (pbackfail): Implement correctly
1262 27.7.1.3/2, bullet 2: if mode & ios_base::out is false do not
1263 write in the buffer.
1264 * testsuite/27_io/basic_stringbuf/pbackfail/char/1.cc: New.
1265 * testsuite/27_io/basic_stringbuf/pbackfail/char/2.cc: Likewise.
1266 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/1.cc: Likewise.
1267 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/2.cc: Likewise.
1268 * testsuite/27_io/basic_istream/putback/char/1.cc: Tweak consistently.
1270 2004-10-01 Paolo Carlini <pcarlini@suse.de>
1272 * include/bits/sstream.tcc (seekpos): Minor rearrangement of two
1273 conditionals consistently with seekoff.
1274 * include/std/std_sstream.h (setbuf): Avoid a string temporary.
1275 (_M_sync): Simplify a bit, clean-up comment.
1277 2004-09-30 Paolo Carlini <pcarlini@suse.de>
1279 PR libstdc++/10975 (DR 453)
1280 * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
1282 * docs/html/ext/howto.html: Add an entry for DR 453.
1283 * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
1284 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
1285 * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
1286 * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
1287 * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
1288 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
1290 * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
1291 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
1293 * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
1295 2004-09-29 Paolo Carlini <pcarlini@suse.de>
1297 * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
1298 Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
1299 (str()): Slightly tweak, protect from pptr() == 0.
1300 (_M_update_egptr()): Likewise.
1301 * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
1302 for an empty buffer use __beg instead of _M_string.capacity().
1303 * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
1304 * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
1306 * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
1307 * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
1308 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
1309 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
1311 2004-09-29 Paolo Carlini <pcarlini@suse.de>
1312 Benjamin Kosnik <bkoz@redhat.com>
1314 * testsuite/testsuite_io.h (class constraint_buf): New, extended
1315 and templatized version of constraint_filebuf; add typedefs for
1316 streambuf/stringbuf/filebuf and wchar_t counterparts.
1318 2004-09-28 Paolo Carlini <pcarlini@suse.de>
1321 * include/bits/basic_string.h (_M_dispose, _M_refcopy,
1322 basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
1323 don't deal with _S_empty_rep.
1324 * include/bits/basic_string.tcc (_S_construct, _M_destroy,
1325 _M_leak_hard, _M_mutate): Likewise.
1326 * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
1327 * acconfig.h: Add corresponding undef.
1328 * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
1329 * docs/html/configopts.html: Document --enable-fully-dynamic-string.
1330 * configure: Regenerate.
1331 * config.h.in: Likewise.
1333 2004-09-28 Benjamin Kosnik <bkoz@redhat.com>
1334 Paolo Carlini <pcarlini@suse.de>
1336 * testsuite/21_strings/basic_string/operations/char/1.cc: New.
1337 * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
1338 * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
1339 * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc:
1342 2004-09-28 Paolo Carlini <pcarlini@suse.de>
1344 * README: Remove obsolete entry about include/c_shadow.
1346 2004-09-24 H.J. Lu <hongjiu.lu@intel.com>
1349 * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
1351 2004-09-24 Paolo Carlini <pcarlini@suse.de>
1353 * src/localename.cc (locale::locale(const char*)): Minor tweaks:
1354 rename a variable, move an assignment.
1355 (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
1357 2004-09-24 Paul Brook <paul@codesourcery.com>
1359 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
1361 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1362 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
1363 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
1364 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
1365 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
1366 * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
1368 2004-09-23 Zack Weinberg <zack@codesourcery.com>
1370 * testsuite/20_util/memory/auto_ptr/assign_neg.cc
1371 * testsuite/23_containers/map/operators/1_neg.cc
1372 * testsuite/23_containers/set/operators/1_neg.cc:
1373 Update locations and/or regexps of dg-error markers.
1375 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
1377 * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
1378 Add rule to build ${host_builddir}/gthr-tpf.h.
1379 * include/Makefile.in: Regenerate.
1381 2004-09-23 Paolo Carlini <pcarlini@suse.de>
1382 Magnus Fromreide <magfr@lysator.liu.se>
1384 * include/bits/boost_concept_check.h (struct _SequenceConcept):
1385 Remove wrong requirement, i.e., not present in Table 67.
1387 2004-09-21 Paolo Carlini <pcarlini@suse.de>
1389 PR libstdc++/12882 (cont)
1390 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
1391 * configure: Regenerate.
1392 * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
1393 _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
1394 trivial showmanyc for large files too.
1396 2004-09-17 Jonathan Wakely <redi@gcc.gnu.org>
1398 * include/bits/stl_algo.h (remove): Remove too restrictive
1401 2004-09-17 Paolo Carlini <pcarlini@suse.de>
1403 * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
1404 as per Nathan's original suggestion.
1406 2004-09-17 Paolo Carlini <pcarlini@suse.de>
1408 * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
1410 * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
1411 * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
1412 * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
1414 2004-09-17 Paolo Carlini <pcarlini@suse.de>
1415 Andrea Arcangeli <andrea@suse.de>
1417 * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
1418 call unnecessarily sync, that is fflush: the library, since 3.4.0
1419 does not use buffered fread/fwrite.
1420 * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
1422 2004-09-15 Mark Mitchell <mark@codesourcery.com>
1424 * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
1426 * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
1428 * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
1429 (__cxa_vec_new): Use it.
1430 (__cxa_vec_new2): Likewise.
1431 (__cxa_vec_new3): Likewise.
1432 (__cxa_vec_cdtor): Likewise.
1433 (__cxa_vec_cctor): Likeiwse.
1434 (__cxa_vec_dtor): Likewise.
1435 (__cxa_vec_cleanup): Likewise.
1436 (__cxa_vec_delete2): Likewise.
1437 (__cxa_vec_delete3): Likewise.
1438 * libsupc++/vec.cc (__cxa_vec_new): Likewise.
1439 (__cxa_vec_new2): Likewise.
1440 (__cxa_vec_new3): Likewise.
1441 (__cxa_vec_cdtor): Likewise.
1442 (__cxa_vec_cctor): Likeiwse.
1443 (__cxa_vec_dtor): Likewise.
1444 (__cxa_vec_cleanup): Likewise.
1445 (__cxa_vec_delete2): Likewise.
1446 (__cxa_vec_delete3): Likewise.
1447 (__aeabi_vec_ctor_nocookie_nodtor): New function.
1448 (__aeabi_vec_ctor_cookie_nodtor): Likewise.
1449 (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
1450 (__aeabi_vec_new_cookie_noctor): Likewise.
1451 (__aeabi_vec_new_nocookie): Likewise.
1452 (__aeabi_vec_new_cookie_nodtor): Likewise.
1453 (__aeabi_vec_new_cookie): Likewise.
1454 (__aeabi_vec_dtor): Likewise.
1455 (__aeabi_vec_dtor_cookie): Likewise.
1456 (__aeabi_vec_delete): Likewise.
1457 (__aeabi_vec_delete3): Likewise.
1458 (__aeabi_vec_delete3_nodtor): Likewise.
1459 (__aeabi_atexit): Likewise.
1461 2004-09-14 Nathan Myers <ncm@cantrip.org>
1463 * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
1464 for 11722: copy can replace move; the common case is __avail == 0.
1466 2004-09-14 Paolo Carlini <pcarlini@suse.de>
1468 * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
1469 to __is_scalar, more clear and consistent with "tr1" naming.
1470 * include/bits/stl_algobase.h: Update consistently throughout.
1472 2004-09-13 Paolo Carlini <pcarlini@suse.de>
1475 * include/std/std_fstream.h (xsgetn): Declare only.
1476 * include/bits/fstream.tcc (xsgetn): Define, optimize for the
1477 always_noconv() case: when __n > __buflen, copy the available
1478 buffer and issue a direct read.
1479 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
1481 * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
1484 2004-09-13 Hans-Peter Nilsson <hp@bitrange.com>
1486 * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
1487 libstdc++_maybe_build_wrapper instead of using local code.
1489 2004-09-08 Benjamin Kosnik <bkoz@redhat.com>
1491 * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
1493 2004-09-03 Jan Beulich <jbeulich@novell.com>
1495 * crossconfig.m4: Add NetWare as a target.
1496 * configure: Regenerate.
1498 2004-09-02 Mark Mitchell <mark@codesourcery.com>
1500 * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
1503 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
1504 Simon Richter <Simon.Richter@hogyros.de>
1507 * include/bits/istream.tcc: Add extern template for iostream
1508 char and wchar_t instantiations.
1510 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
1511 Leland Wang <llwang@infor.org>
1514 * include/ext/ropeimpl.h (rope::_S_compare): Use
1515 _Rope_constants::_S_leaf.
1517 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
1520 * include/Makefile.am (ext_headers): Remove demangle.h.
1521 * include/Makefile.in: Regenerate.
1522 * include/ext/demangle.h: Remove.
1524 2004-09-01 Benjamin Kosnik <bkoz@redhat.com>
1527 * include/ext/mt_allocator.h (__mt_base): Not type dependent,
1529 (__pool): New, specialize.
1530 (__common_pool): New, static bits here.
1531 (__per_type_pool): New, and here.
1532 (__mt_alloc_base): New.
1533 (__mt_alloc): Add template parameter, inherit from it.
1534 * src/allocator.cc: Split this...
1535 * src/allocator-inst.cc: And this...
1536 * src/pool_allocator.cc: ...into this.
1537 * src/mt_allocator.cc: ... and this. Add definitions for
1539 * src/Makefile.am (sources): Split allocator.cc to
1540 pool_allocator.cc and mt_allocator.cc.
1541 * src/Makefile.in: Regenerate.
1542 * config/linker-map.gnu: Add symbols.
1543 * docs/html/ext/mt_allocator.html: Document new design.
1544 * testsuite/ext/mt_allocator/tune-1.cc: New.
1545 * testsuite/ext/mt_allocator/tune-2.cc: New.
1546 * testsuite/ext/mt_allocator/tune-3.cc: New.
1547 * testsuite/ext/mt_allocator/tune-4.cc: New.
1549 * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
1550 * testsuite/ext/allocators.cc: Use check_new, split into...
1551 * testsuite/ext/mt_allocator/check_new.cc: this.
1552 * testsuite/ext/pool_allocator/check_new.cc: this.
1553 * testsuite/ext/malloc_allocator/check_new.cc: this.
1554 * testsuite/ext/debug_allocator/check_new.cc: this.
1555 * testsuite/ext/mt_allocator/instantiate.cc: this.
1556 * testsuite/ext/pool_allocator/instantiate.cc: this.
1557 * testsuite/ext/malloc_allocator/instantiate.cc: this.
1558 * testsuite/ext/debug_allocator/instantiate.cc: this.
1560 2004-08-30 Phil Edwards <phil@codesourcery.com>
1562 * docs/html/install.html: Update locales list (from Paolo).
1563 Remove other redundant information and point to the GCC install
1566 2004-08-30 Benjamin Kosnik <bkoz@redhat.com>
1568 * include/ext/pool_allocator.h: Rename __pool_base to
1570 * src/allocator.cc: Same.
1571 * config/linker-map.gnu: Same.
1573 2004-08-30 Paolo Carlini <pcarlini@suse.de>
1574 Kenneth C. Schalk <ken@xorian.net>
1577 * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
1578 Check the return value of fclose/sync, loop on EINTR.
1579 (__basic_file<char>::sys_open): Likewise, for sync.
1581 2004-08-29 Paolo Carlini <pcarlini@suse.de>
1583 * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
1584 case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
1585 and 7.23.3.5), two if !_GLIBCXX_USE_C99.
1586 * testsuite/22_locale/time_get/get_time/char/4.cc: New.
1587 * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
1589 2004-08-27 Jason Merrill <jason@redhat.com>
1592 * libsupc++/guard.cc (static_mutex): Internal class implementing a
1593 recursive mutex which controls initialization of local statics.
1594 (__gnu_cxx::recursive_init): New exception class.
1595 (__cxa_guard_acquire): Deal with locking and recursion detection.
1596 (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
1598 2004-08-27 Matthias Klose <doko@debian.org>
1600 * configure.host: For mips*-*-linux* update cpu_include_dir
1601 after atomicity_dir is set.
1603 2004-08-27 Matthias Klose <doko@debian.org>
1605 * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
1606 * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1607 * configure.host: Set abi_baseline_pair for arm*-*-linux* and
1610 2004-08-27 Paolo Carlini <pcarlini@suse.de>
1612 * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
1613 * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
1614 * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
1615 * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
1616 * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
1618 * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
1620 * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
1621 * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
1622 * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
1623 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1625 2004-08-25 Paolo Carlini <pcarlini@suse.de>
1627 PR libstdc++/17038 (partial)
1628 * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
1630 * include/bits/locale_facets.h (class __timepunct): Add FIXME
1631 comment about _M_put.
1632 * config/locale/generic/time_members.cc (_M_put): Always null
1634 * config/locale/gnu/time_members.cc (_M_put): Likewise.
1635 * testsuite/22_locale/time_put/put/char/17038.cc: New.
1636 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
1638 2004-08-24 Paolo Carlini <pcarlini@suse.de>
1640 * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
1641 * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
1642 * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
1643 * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
1644 * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
1645 * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
1647 * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
1649 * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
1651 2004-08-22 Matthias Klose <doko@debian.org>
1653 * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
1654 * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1656 2004-08-23 Paolo Carlini <pcarlini@suse.de>
1658 * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
1659 * aclocal.m4: Regenerate with automake-1.9.1.
1660 * configure: Regenerate.
1661 * Makefile.in: Likewise.
1662 * include/Makefile.in: Likewise.
1663 * libmath/Makefile.in: Likewise.
1664 * libsupc++/Makefile.in: Likewise.
1665 * po/Makefile.in: Likewise.
1666 * src/Makefile.in: Likewise.
1667 * testsuite/Makefile.in: Likewise.
1669 2004-08-22 Paolo Carlini <pcarlini@suse.de>
1671 * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
1672 to a signed type, long according to the resolution of DR 359.
1673 * testsuite/22_locale/num_put/put/char/9.cc: New.
1674 * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
1676 * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
1677 Simplify a bit: no need to clear showpos.
1679 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1681 * include/bits/char_traits.h (struct _Char_traits_match): Remove,
1684 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1686 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
1687 wchar_t type for the fill argument; minor formatting tweaks.
1688 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
1689 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
1690 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
1691 * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
1692 * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
1693 * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
1695 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1697 * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
1698 with _M_word != _M_local_word two times, redundantly.
1700 2004-08-20 Jason Merrill <jason@redhat.com>
1702 * include/Makefile.am (${host_builddir}/gthr.h): Don't add
1703 _GLIBCXX_ to #pragma lines.
1704 * include/Makefile.in: Update.
1706 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1708 PR libstdc++/7219 (continued)
1709 * include/bits/ios_base.h (class ios_base): Expose Annex D.6
1710 typedefs by default.
1711 * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
1712 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
1714 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1716 2004-08-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1718 * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
1719 barrier to locking asm.
1721 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1723 * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
1724 actually the warning is a front-end bug (c++/17120).
1726 2004-08-20 Matthias Klose <doko@debian.org>
1728 * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
1730 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1732 * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
1733 used as truth value warning.
1735 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1737 * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
1740 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1742 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
1744 2004-08-19 Benjamin Kosnik <bkoz@redhat.com>
1746 * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
1748 * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
1750 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1752 * testsuite/performance/20_util/allocator/insert.cc: For std::map
1753 instantiate the allocator for a correct pair type.
1754 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1755 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1756 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1759 * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
1760 minor formatting fixes.
1761 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1763 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1765 * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
1767 * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
1768 * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
1769 * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
1770 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
1771 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1772 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1773 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1775 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1777 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1779 2004-08-18 Matthias Klose <doko@debian.org>
1781 * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1782 * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
1783 * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
1785 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1787 * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1789 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1791 * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1793 2004-08-17 Benjamin Kosnik <bkoz@redhat.com>
1795 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1797 2004-08-16 Paolo Carlini <pcarlini@suse.de>
1799 * include/bits/indirect_array.h: Trivial formatting fixes.
1800 * include/bits/valarray_after.h: Likewise.
1801 * include/bits/valarray_array.h: Likewise.
1802 * src/valarray-inst.cc: Likewise.
1804 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1806 * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
1807 * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
1808 * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
1810 * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
1811 * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
1812 * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
1813 * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
1814 * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
1816 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1818 * include/bits/deque.tcc: Trivial formatting fixes.
1820 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1822 * include/bits/deque.tcc: Trivial formatting fixes.
1824 * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
1825 Remove unneded typedef.
1827 * include/bits/locale_facets.tcc: Very minor tweaks.
1829 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
1830 type for the fill argument.
1831 * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
1832 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1833 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1834 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1835 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
1836 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
1837 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
1838 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
1840 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1842 * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
1843 memmove is not needed, memcpy suffices.
1845 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1847 * include/std/std_fstream.h (class basic_ifstream,
1848 class basic_ofstream, class basic_fstream): Add const overloads
1849 of is_open, as per DR 365 [WP].
1850 * docs/html/ext/howto.html: Add an entry for DR 365.
1852 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1854 * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
1856 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1859 * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
1860 to the returned value, reorganize a bit.
1861 * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
1862 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
1864 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
1865 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
1866 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
1867 * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
1869 2004-08-12 Paul Brook <paul@codesourcery.com>
1871 * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
1872 _GLIBCXX_CXA_VEC_CTOR_RETURN.
1873 * config/cpu/generic/cxxabi_tweaks.h: Ditto.
1874 * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
1875 __cxa_vec_ctor_return.
1876 * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
1877 Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
1879 2004-08-12 Kelley Cook <kcook@gcc.gnu.org>
1881 * Makefile.in, aclocal.m4, configure, include/Makefile.in,
1882 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1883 src/Makefile.in, testsuite/Makefile.in: Regenerate
1885 2004-08-12 Jan Beulich <jbeulich@novell.com>
1887 * config/locale/generic/ctype_members.cc
1888 (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
1889 initializer for return value, as that is invalid for enumerated types.
1890 * config/locale/gnu/ctype_members.cc
1891 (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
1893 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1895 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
1897 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1899 * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
1901 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
1902 * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
1903 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
1904 * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
1905 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
1906 * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
1907 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
1908 * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
1909 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
1910 * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
1911 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
1912 * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
1913 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
1914 * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
1915 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
1916 * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
1917 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
1918 * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
1919 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
1920 * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
1921 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
1923 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1924 Petur Runolfsson <peturr02@ru.is>
1927 * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
1928 standard streams are constructed.
1929 * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
1931 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1933 * include/bits/stl_bvector.h: Trivial formatting fixes.
1935 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1937 * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
1939 2004-08-07 Jonathan Wakely <redi@gcc.gnu.org>
1940 Paolo Carlini <pcarlini@suse.de>
1942 * src/debug.cc (_Error_formatter::_M_print_string): In order
1943 to print individual words from __string, _M_format_word can't
1944 be called since may be just sprintf, thus ignoring completely
1945 __n: instead, use memmove and append '\0' by hand.
1947 2004-08-07 Paolo Carlini <pcarlini@suse.de>
1949 * config/locale/generic/c_locale.h (__convert_from_v): Don't
1950 use a default for __prec, assume __prec >= 0 and simplify.
1951 * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
1952 * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
1953 Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
1955 2004-08-04 Phil Edwards <phil@codesourcery.com>
1957 * docs/html/configopts.html: Emphasize that options change.
1958 * docs/html/17_intro/configury.html: Update links.
1960 2004-08-03 Paolo Carlini <pcarlini@suse.de>
1962 * include/bits/list.tcc: Trivial formatting fixes.
1964 2004-08-03 Mark Mitchell <mark@codesourcery.com>
1966 * libsupc++/new_op.cc: Update comments.
1967 * libsupc++/del_op.cc: Likewise.
1969 2004-08-02 Mark Mitchell <mark@codesourcery.com>
1971 * libsupc++/cxxabi.h: Make all declarations have default
1973 * libsupc++/exception: Likewise.
1974 * libsupc++/new: Likewise.
1975 * libsupc++/typeinfo: Likewise.
1976 * libsupc++/unwind-cxx.h: Likewise.
1977 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
1978 the __cxxabiv1 namespace.
1979 (__cxa_free_exception): Likewise.
1980 * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
1981 (__cxa_bad_typeid): Likewise.
1982 * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
1983 (__cxa_end_catch): Likewise.
1984 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
1985 (__cxa_get_globals): Likewise.
1986 * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
1987 (__cxa_rethrow): Likewise.
1988 * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
1989 * libsupc++/eh_type.cc: Include <cxxabi.h>.
1991 * Makefile.am (hosted_source): Add libmath and testsuite.
1992 (SUBDIRS): Remove them.
1993 * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
1994 on arm*-*-symbianelf*.
1995 * crossconfig.m4: Add arm*-*-symbianelf* support.
1996 * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
1997 when freestanding. Do not bring names into std:: namespace with
1998 "using" when freestanding. Declare required functions and macros
2000 * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
2002 * libsupc++/del_op.cc: Declare "free" only when freestanding.
2003 * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
2004 (malloc): Declare when freestanding.
2007 (__cxa_allocate_exception): Call malloc, not std::malloc. Likewise
2009 (__cxa_free_exception): Likewise for free.
2010 * libsupc++/new_op.cc: Declare "malloc" when freestanding.
2011 * libsupc++/pure.cc (writestr): Define to nothing when
2013 * libsupc++/vterminate.cc: Do not define anything when
2015 * Makefile.in: Regenerated.
2016 * aclocal.m4: Likewise.
2017 * configure: Likewise.
2018 * include/Makefile.in: Likewise.
2019 * libmath/Makefile.in: Likewise.
2020 * libsupc++/Makefile.in: Likewise.
2021 * po/Makefile.in: Likewise.
2022 * src/Makefile.in: Likewise.
2023 * testsuite/Makefile.in: Likewise.
2025 2004-08-01 Matt Austern <austern@apple.com>
2028 * include/bits/stl_list.h (_M_create_node): Remove unused
2029 zero-argument version.
2030 * include/ext/slist (_M_create_node): Pass two arguments to
2031 allocator's construct() member function.
2032 * testsuite/23_containers/deque/explicit_instantiation.cc: New.
2033 * testsuite/23_containers/list/explicit_instantiation.cc: New.
2034 * testsuite/23_containers/vector/explicit_instantiation.cc: New.
2035 * testsuite/23_containers/map/explicit_instantiation.cc: New.
2036 * testsuite/23_containers/set/explicit_instantiation.cc: New.
2037 * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
2038 * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
2039 * testsuite/ext/hash_set_explicit_instantiation.cc: New.
2040 * testsuite/ext/slist_explicit_instantiation.cc: New.
2042 2004-07-30 Paolo Carlini <pcarlini@suse.de>
2044 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2045 num_get<>::_M_extract_int): In the main parsing loop delay the
2046 life of __q to the actual use point.
2048 2004-07-29 Paolo Carlini <pcarlini@suse.de>
2051 * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
2052 Don't clip the precision passed down to __convert_from_v:
2053 22.2.2.2.2 nowhere says so.
2054 * testsuite/22_locale/num_put/put/char/14220.cc: New.
2055 * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
2057 2004-07-29 Paolo Carlini <pcarlini@suse.de>
2059 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
2061 2004-07-29 Paolo Carlini <pcarlini@suse.de>
2062 Petur Runolfsson <peturr02@ru.is>
2064 PR libstdc++/12658 (continued)
2065 * src/locale_init.cc (locale::locale, locale::global): Use
2066 a single locale_mutex instead of two separate mutexes.
2068 2004-07-29 Paolo Carlini <pcarlini@suse.de>
2071 * include/debug/map.h (insert(_InputIterator, _InputIterator)):
2073 * testsuite/23_containers/map/insert/16813.cc: New.
2075 2004-07-29 Phil Edwards <phil@codesourcery.com>
2077 * docs/html/faq/index.html: Update version references. Make
2078 clear that code from SGI has diverged greatly. Remove references
2079 to library snapshots and what's-new sections.
2080 * docs/html/faq/index.txt: Regenerate.
2082 2004-07-28 Matt Austern <austern@apple.com>
2084 * include/bits/stl_construct.h (_Destroy): New three-argument
2085 overload that takes an allocator argument. Another inline
2086 three-argument overload that takes std::allocator and dispatches
2087 to the two-argument version.
2088 * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
2089 Change return type to void to match uninitialized_fill_n.
2090 (__uninitialized_copy_a_): New function. Like uninitialized_copy
2091 except that it takes an allocator and uses it for construct and
2092 destroy. If the allocator is std::allocator, dispatches to
2094 (__uninitialized_fill_a): Likewise.
2095 (__uninitialized_fill_n_a): Likewise.
2096 (__uninitialized_copy_copy): Give it an allocator argument.
2097 (__uninitialized_fill_copy): Likewise.
2098 (__uninitialized_copy_fill): Likewise.
2099 * include/bits/deque.tcc: Use new forms defined in stl_construct.h
2100 and stl_uninitialized.h. Replace use of single-argument _Construct
2101 and _Destroy with use of allocator's construct and destroy methods.
2102 * include/bits/list.tcc: Likewise.
2103 * include/bits/stl_deque.h: Likewise.
2104 * include/bits/stl_list.h: Likewise.
2105 * include/bits/stl_tree.h: Likewise.
2106 * include/bits/stl_vector.h: Likewise.
2107 * include/bits/vector.tcc: Likewise.
2108 * include/ext/hashtable.h: Use rebind so that allocator_type
2109 has correct type for a container's allocator. Replace use of
2110 single-argument _Construct and _Destroy with use of allocator's
2111 construct and destroy methods.
2112 * include/ext/memory (__uninitialized_copy_n_a): New function.
2113 Like uninitialized_copy_n except that it takes an extra parameter,
2114 an allocator, and uses it for construct and destroy operations.
2115 * include/ext/rope: Use new forms defined in stl_construct.h,
2116 stl_uninitialized.h, and ext/memory. Replace use of single-argument
2117 _Construct and _Destroy with allocator construct and destroy methods.
2118 * include/ext/ropeimpl.h: Likewise.
2119 * include/ext/slist.h: Likewise.
2120 * testsuite/testsuite_allocator.h (check_construct_destroy): New.
2121 * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
2122 * testsuite/23_containers/deque/check_construct_destroy.cc: New.
2123 * testsuite/23_containers/list/check_construct_destroy.cc: New.
2124 * testsuite/23_containers/set/check_construct_destroy.cc: New.
2125 * testsuite/23_containers/vector/check_construct_destroy.cc: New.
2126 * testsuite/ext/hash_check_construct_destroy.cc: New.
2127 * testsuite/ext/slist_check_construct_destroy.cc: New.
2129 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
2131 2003-10-01 Eric Christopher <echristo@redhat.com>
2132 * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
2134 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
2135 * config/cpu/sh/atomicity.h: New. Use movli and movco on SH4a.
2137 2004-07-23 Benjamin Kosnik <bkoz@redhat.com>
2140 * include/bits/locale_facets.tcc: Fix for -Werror.
2142 2004-07-23 Jonathan Wakely <redi@gcc.gnu.org>
2144 * docs/html/debug.html: Say debug mode only available since 3.4.0.
2146 2004-07-21 Benjamin Kosnik <bkoz@redhat.com>
2148 * docs/doxygen/mainpage.html: Clarify links.
2149 * docs/doxygen/stdheader.cc: Add files.
2150 * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
2151 * docs/doxygen/user.cfg.in: New options, wrap.
2153 2004-07-20 Danny Smith <dannysmith@users.sourceforge.net>
2155 * include/c_std/std_cwchar.h (wcsstr): Correct signature.
2157 2004-07-19 Benjamin Kosnik <bkoz@redhat.com>
2160 * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
2162 2004-07-17 Richard Sandiford <rsandifo@redhat.com>
2165 * scripts/create_testsuite_files: Pass -print to find.
2167 2004-07-15 Paolo Carlini <pcarlini@suse.de>
2169 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
2170 * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
2172 2004-07-15 Jakub Jelinek <jakub@redhat.com>
2175 * acinclude.m4 (glibcxx_shared_libgcc): Correct
2176 glibcxx_shared_libgcc test for multilibs.
2177 * configure: Rebuilt.
2179 2004-07-14 Paolo Carlini <pcarlini@suse.de>
2182 * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
2183 the signature to return void, as per 20.4.4.3.
2184 * include/bits/stl_vector.h (vector::vector(size_type,
2185 const value_type&, const allocator_type&), vector::vector(size_type),
2186 vector::_M_initialize_dispatch): Adjust callers.
2187 * include/bits/vector.tcc (vector<>::_M_fill_assign,
2188 vector<>::_M_fill_insert): Likewise.
2189 * testsuite/20_util/memory/16505.cc: New.
2191 2004-07-14 Paolo Carlini <pcarlini@suse.de>
2193 * testsuite/22_locale/locale/cons/12658_thread-1.cc,
2194 12658_thread-2.cc: Use __gnu_test::try_named_locale.
2196 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
2198 * docs/html/ext/mt_allocator.html: Add docs for _Tune.
2199 * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
2200 (__mt_alloc::_S_set_options): Same.
2203 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
2205 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
2207 * configure: Regenerated.
2209 2004-07-13 Paolo Carlini <pcarlini@suse.de>
2211 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
2212 to 12658_thread-1.cc and xfail.
2213 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
2214 simpler version of 12658_thread-1.cc, still failing on 3_3 and
2215 not failing on 3_4/mainline - both on single processor and
2216 multiprocessor machines.
2218 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
2220 * docs/html/abi.html: Remove non-public qualification.
2222 * include/bits/concurrence.h: Tweak comments.
2224 2004-07-11 Paolo Carlini <pcarlini@suse.de>
2226 Add wchar_t counterparts of the basic_streambbuf<char> tests.
2227 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
2228 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
2230 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
2231 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
2233 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
2234 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
2235 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
2236 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
2237 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
2239 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
2241 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
2243 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
2245 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
2246 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
2248 2004-07-11 Phil Edwards <phil@codesourcery.com>
2250 * acinclude.m4: Cosmetic shell syntax fixes.
2251 * configure.ac: Bring comment inline with reality.
2252 * configure.host: Both of the above. Move 'arm' case to right
2253 place in host_cpu switch.
2254 * aclocal.m4, configure: Regenerate.
2256 2004-07-09 Paolo Carlini <pcarlini@suse.de>
2258 Add wchar_t counterparts of the basic_stringbuf<char> tests.
2259 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
2260 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
2261 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
2262 3599.cc, 9988.cc: Likewise.
2263 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
2265 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
2267 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
2269 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
2271 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
2272 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
2273 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
2274 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
2276 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
2277 9404-1.cc: Likewise.
2278 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
2279 9404-2.cc: Likewise.
2280 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
2282 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
2283 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
2285 2004-07-08 Paolo Carlini <pcarlini@suse.de>
2287 * include/bits/gslice.h: Trivial formatting fixes.
2288 * include/bits/gslice_array.h: Likewise.
2289 * include/bits/indirect_array.h: Likewise.
2290 * include/bits/mask_array.h: Likewise.
2291 * include/bits/slice_array.h: Likewise.
2292 * include/bits/valarray_after.h: Likewise.
2293 * include/bits/valarray_array.h: Likewise.
2294 * include/bits/valarray_before.h: Likewise.
2295 * include/std/std_valarray.h: Likewise.
2297 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
2300 * include/bits/basic_string.h (basic_string::operator=): Revert.
2302 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
2304 * configure.ac (libtool_VERSION): To 6:2:0.
2305 * configure: Regenerated.
2307 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
2309 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
2312 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
2314 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
2316 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
2319 2004-07-07 Paolo Carlini <pcarlini@suse.de>
2322 * include/bits/sstream.tcc (overflow): When reallocating _M_string
2323 use an exponential grow policy.
2324 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
2325 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
2327 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
2330 * crossconfig.m4: Add in bits for djgpp.
2331 * configure: Regenerate.
2333 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
2335 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
2336 instantiation of set and multiset (functor param given as int).
2338 2004-07-04 Paolo Carlini <pcarlini@suse.de>
2340 * include/bits/basic_string.h: Trivial formatting fixes and/or
2341 const-ification of some variables.
2342 * include/bits/deque.tcc: Likewise.
2343 * include/bits/stl_algobase.h: Likewise.
2344 * include/bits/stl_bvector.h: Likewise.
2345 * include/bits/stl_construct.h: Likewise.
2346 * include/bits/stl_deque.h: Likewise.
2347 * include/bits/stl_pair.h: Likewise.
2348 * include/bits/stl_vector.h: Likewise.
2349 * include/bits/vector.tcc: Likewise.
2351 2004-07-04 Paolo Carlini <pcarlini@suse.de>
2353 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
2354 systems with no COMDAT or weak support.
2355 * testsuite/25_algorithms/copy/2.cc: Likewise.
2356 * testsuite/25_algorithms/copy/3.cc: Likewise.
2357 * testsuite/25_algorithms/copy/4.cc: Likewise.
2359 2004-07-03 Paul Brook <paul@codesourcery.com>
2361 * configure.ac: Set ABI_TWEAKS_SRCDIR.
2362 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
2363 setting atomicity_dir. Override type_cpu for arm based targets.
2364 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
2365 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
2366 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
2367 * libsupc++/vec.cc: Ditto.
2368 * config/cpu/arm/cxxabi_tweaks.h: New file.
2369 * config/cpu/generic/cxxabi_tweaks.h: New file.
2370 * */Makefile.in: Regenerate.
2371 * configure: Regenerate.
2373 2004-07-02 Paolo Carlini <pcarlini@suse.de>
2375 * include/bits/type_traits.h (_Is_normal_iterator): Move...
2376 * include/bits/cpp_type_traits.h: ... here, renamed to
2377 __is_normal_iterator and consistent with the other traits.
2378 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
2379 to the struct __copy_normal and three specializations.
2380 (__copy_backward_output_normal_iterator,
2381 __copy_backward_input_normal_iterator): Likewise, convert to
2382 the struct __copy_backward_normal and three specializations.
2383 (copy, copy_backward): Use the latter.
2384 (__copy_aux, __copy_backward_aux): Very minor tweaks.
2386 2004-07-01 Paolo Carlini <pcarlini@suse.de>
2388 * include/bits/stl_algobase.h (__copy_trivial): Remove.
2389 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
2390 __is_trivially_copyable, __are_same and __copy::copy.
2391 (__copy): Rewrite as a class template and two specializations.
2392 (__copy_ni2): Simplify, just call __copy_aux.
2394 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
2396 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
2397 for destination value type != source value type.
2399 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
2400 Per Bothner <per@bothner.com>
2401 Mohan Embar <gnustuff@thisiscool.com>
2404 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
2405 (__glibcxx_mutex): Encapsulate mutex init function into type for
2406 threaded configurations without __GTHREAD_MUTEX_INIT.
2407 (lock::lock): Make device member a reference.
2408 (lock::~lock): Same.
2409 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
2411 * src/allocator.cc: Same.
2413 2004-06-30 Brad Spencer <spencer@infointeractive.com>
2415 * include/ext/mt_allocator.h: Handle allocations at static
2416 initialization that happen before _S_options is (automatically)
2417 constructed; set _S_init even if _M_force_new is true.
2419 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
2421 * config/linker-map.gnu: Revert new exports.
2423 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
2424 Stuart Anderson <anderson@netsweng.com>
2426 * config/linker-map.gnu: Add destructor exports for abstract base
2427 classes to conform to LSB.
2429 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2430 Paolo Carlini <pcarlini@suse.de>
2432 * include/bits/cpp_type_traits.h: Add __is_pointer and
2433 __is_trivially_copyable.
2434 * include/bits/stl_algobase.h (fill, fill_n): Slightly
2435 tweak to use the latter.
2436 (__copy_backward_dispatch): Remove.
2437 (__copy_backward_aux): Rewrite to use __is_pointer and
2438 __is_trivially_copyable and __copy_backward::copy_b.
2439 (__copy_backward): Rewrite as a class template and two
2442 2004-06-30 Paolo Carlini <pcarlini@suse.de>
2444 * testsuite/25_algorithms/copy.cc: Move to...
2445 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
2446 * testsuite/25_algorithms/copy/2.cc: New.
2447 * testsuite/25_algorithms/copy/3.cc: New.
2448 * testsuite/25_algorithms/copy/4.cc: New.
2450 2004-06-29 Paul Brook <paul@codesourcery.com>
2452 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
2453 element size in the cookie.
2455 2004-06-28 Paolo Carlini <pcarlini@suse.de>
2457 * include/bits/cpp_type_traits.h: Move the additions to
2458 namespace __gnu_internal outside of namespace std; trivial
2461 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
2463 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
2464 Revert -Weffc++ changes that defined copy ctory and or assignment
2466 * libsupc++/tinfo.cc (__upcast_result): Same.
2468 2004-06-28 Paolo Carlini <pcarlini@suse.de>
2470 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
2471 the algorithm used to name the categories.
2473 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
2475 * include/Makefile.am: Give a .gch extension to
2476 the PCH files, not only to the directory.
2477 * include/Makefile.in: Regenerate.
2479 2004-06-28 Paolo Carlini <pcarlini@suse.de>
2481 * config/locale/gnu/monetary_members.cc
2482 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
2483 assignments of _M_decimal_point and _M_thousands_sep.
2485 2004-06-27 Paolo Carlini <pcarlini@suse.de>
2487 * docs/html/17_intro/contribute.html: Update some links.
2488 * docs/html/17_intro/porting-howto.html: Likewise.
2489 * docs/html/17_intro/porting-howto.xml: Likewise.
2490 * docs/html/18_support/howto.html: Likewise.
2491 * docs/html/21_strings/howto.html: Likewise.
2492 * docs/html/27_io/howto.html: Likewise.
2493 * docs/html/configopts.html: Likewise.
2494 * docs/html/ext/howto.html: Likewise.
2495 * docs/html/faq/index.html: Likewise.
2496 * docs/html/install.html: Don't mention 2.x compilers.
2498 2004-06-27 Paolo Carlini <pcarlini@suse.de>
2500 * include/ext/rope: Trivial formatting fixes.
2501 * include/ext/ropeimpl.h: Likewise.
2503 2004-06-26 Paolo Carlini <pcarlini@suse.de>
2506 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
2507 availability of strto(u)ll, not used anymore in the iostreams.
2508 * configure: Regenerate.
2510 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
2513 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
2515 * configure: Regenerate.
2517 2004-06-25 Paul Brook <paul@codesourcery.com>
2519 * libsupc++/cxxabi.h: Define __ARM_EABI__
2521 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
2523 2004-06-25 Paul Brook <paul@codesourcery.com>
2525 * include/bits/concurrence.h: Still create mutex object when
2528 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2530 * include/bits/stl_algobase.h (fill, fill_n): Revert last
2531 change: actually we need to copy construct an object of type
2532 _Tp, not of type iterator_traits<>::value_type, therefore the
2535 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2537 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
2538 dispatch: use iterator_traits<>::value_type, not _Tp.
2540 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2542 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
2543 * testsuite/25_algorithms/fill/2.cc: Likewise.
2545 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
2546 Paolo Carlini <pcarlini@suse.de>
2548 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
2549 for fill and fill_n, respectively: when copying is cheap, use a
2550 temporary to avoid a memory read in each iteration.
2552 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2554 * testsuite/25_algorithms/fill/1.cc: New.
2555 * testsuite/25_algorithms/fill/2.cc: Likewise.
2557 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
2559 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
2560 Remove copy constructor and assignment operator.
2562 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
2564 * include/bits/concurrence.h (__gnu_cxx::lock): New.
2565 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
2566 (__pool_base::_M_get_mutex): New.
2567 * include/bits/allocator.h: Tweak.
2568 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
2569 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
2570 * include/bits/stl_threads.h: Remove.
2571 * include/Makefile.am: Also here.
2572 * include/Makefile.in: Regenerate.
2574 * src/locale_init.cc: Use __gnu_cxx::lock.
2576 * src/allocator.cc: Move all instantiations...
2577 * src/allocator-inst.cc: ...here.
2579 2004-06-23 Andrew Pinski <apinski@apple.com>
2581 * linkage.m4: Remove check for libmx.
2582 * configure: Regenerate.
2584 2004-06-23 Paolo Carlini <pcarlini@suse.de>
2587 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
2588 Don't require the _DefaultConstructibleConcept.
2589 (struct _ForwardIteratorConcept): Require it here.
2591 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
2593 * include/bits/istream.tcc (getline): Make sure arguments passed
2594 to min/max have the same type.
2595 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
2596 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
2598 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
2600 * docs/html/abi.html: Update links.
2602 2004-06-22 Paolo Carlini <pcarlini@suse.de>
2604 * testsuite/26_numerics/complex_inserters_extractors.cc,
2605 complex_value.cc, buggy_complex.cc: Move to...
2606 * testsuite/26_numerics/complex/: ... here.
2607 * testsuite/26_numerics/c99_classification_macros_c++.cc,
2608 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
2609 fabs_inline.cc: Move to...
2610 * testsuite/26_numerics/cmath/: ... here.
2611 * testsuite/26_numerics/binary_closure.cc, slice.cc,
2612 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
2613 valarray_name_lookup.cc, valarray_operators.cc,
2614 valarray_subset_assignment.cc: Move to...
2615 * testsuite/26_numerics/valarray/: ... here (new dir).
2616 * testsuite/26_numerics/sum_diff.cc: Move to...
2617 * testsuite/26_numerics/numeric/: ... here (new dir).
2619 2004-06-22 Paolo Carlini <pcarlini@suse.de>
2621 * include/std/std_istream.h (ignore(streamsize __n = 1,
2622 int_type __delim = traits_type::eof())): Split into...
2623 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2624 int_type __delim)): The first two can be much more simpler
2625 and efficient than the fully general case; also, the last
2626 two can take advantage of the same mechanism already used
2628 * include/bits/istream.tcc (ignore(streamsize __n = 1,
2629 int_type __delim = traits_type::eof()): Remove.
2630 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2631 int_type __delim)): New.
2633 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
2635 * config/linker-map.gnu: Use wildcards for
2636 __basic_file::sys_open(FILE*, _Ios_Openmode).
2638 2004-06-20 Paolo Carlini <pcarlini@suse.de>
2640 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
2642 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2644 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
2645 the alignment requested.
2646 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
2647 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
2648 (__mt_alloc<>::deallocate): Likewise.
2650 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2653 * include/debug/safe_base.h
2654 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
2655 _Safe_sequence_base::operator=): Provide definitions.
2656 * testsuite/23_containers/bitset/cons/16020.cc: New.
2658 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
2660 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
2661 (__pool_base): Remove unused template parameter. Add
2662 protected. Move lock data into __pool_base::_Lock. Remove static
2663 on member functions.
2664 (__pool_base::_M_get_free_list): New.
2665 (__pool_alloc): Move _S_force new here.
2666 * src/allocator.cc: Move out of line __pool_base definitions here.
2667 * config/linker-map.gnu: Export bits from __pool_base.
2669 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2671 * config/locale/gnu/numeric_members.cc
2672 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
2673 assignments of _M_decimal_point and _M_thousands_sep.
2674 * config/locale/gnu/time_members.cc
2675 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
2676 and reformat assignments of date and time fields.
2678 2004-06-16 Paolo Carlini <pcarlini@suse.de>
2680 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
2681 to use _Data_allocate.
2682 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
2683 (rope<>::_S_substring): Likewise.
2684 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
2685 (rope<>::c_str()): Likewise.
2686 (rope<>::replace_with_c_str()): Likewise.
2688 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
2689 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
2691 (_Rope_iterator_base<>::_S_setcache): Likewise.
2692 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
2693 (rope<>::_S_substring): Likewise.
2694 (rope<>::_S_dump): Likewise.
2695 (rope<>::_S_fetch_ptr): Likewise.
2696 (rope<>::_S_compare): Likewise.
2697 (rope<>::replace_with_c_str()): Likewise.
2699 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
2700 * testsuite/ext/rope/2.cc: New.
2702 2004-06-16 Paolo Carlini <pcarlini@suse.de>
2703 Matt Austern <austern@apple.com>
2705 * testsuite/ext/rope/3.cc: New.
2707 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
2709 * acinclude.m4: Remove useless multilib configury.
2710 * Makefile.am: Remove useless multilib rules.
2711 * aclocal.m4: Regenerate.
2712 * Makefile.in: Regenerate.
2713 * configure: Regenerate.
2715 2004-06-15 Paolo Carlini <pcarlini@suse.de>
2717 * include/ext/hashtable.h: Trivial formatting fixes.
2718 * include/ext/rb_tree: Likewise.
2720 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2722 * include/ext/hash_map: Trivial formatting fixes.
2723 * include/ext/hash_set: Likewise.
2724 * include/ext/memory: Likewise.
2725 * include/ext/numeric: Likewise.
2727 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
2729 * Makefile.in: Regenerate with automake 1.8.5.
2731 * include/Makefile.in: Same.
2732 * libmath/Makefile.in: Same.
2733 * libsupc++/Makefile.in: Same.
2734 * po/Makefile.in: Same.
2735 * src/Makefile.in: Same.
2736 * testsuite/Makefile.in: Same.
2738 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2740 * include/ext/slist: Trivial formatting fixes.
2742 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2744 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
2745 Don't use the 'magic number' 10 in the computation of __minlen;
2746 never access __name past __minlen; in the loop over __i3, don't
2747 decrease __nmatches and increase __i3 at once, only either of
2750 2004-06-13 Paolo Carlini <pcarlini@suse.de>
2752 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
2753 time_get<>::do_get_date): Use only once _M_extract_via_format,
2754 instead of going through "%X"/"%x" and calling it two times
2757 2004-06-12 Paolo Carlini <pcarlini@suse.de>
2759 * include/ext/algorithm: Trivial formatting fixes.
2760 * include/ext/functional: Likewise.
2761 * include/ext/hash_fun.h: Likewise.
2762 * include/ext/iterator: Likewise.
2764 2004-06-12 Paolo Carlini <pcarlini@suse.de>
2766 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
2767 size_type)): Reimplement using std::search.
2768 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
2770 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
2772 * testsuite/performance/21_strings/string_find.cc: New.
2774 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
2776 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
2778 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
2780 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
2781 this function return a value.
2783 2004-06-09 Paolo Carlini <pcarlini@suse.de>
2786 * include/bits/stl_deque.h: Consistently with stl_set.h, define
2787 pointer as allocator's pointer, likewise for reference,
2788 const_pointer, and const_reference.
2789 * include/bits/stl_list.h: Likewise.
2790 * include/bits/stl_map.h: Likewise.
2791 * include/bits/stl_multimap.h: Likewise.
2792 * include/bits/stl_vector.h: Likewise.
2794 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
2796 * crossconfig.m4: Remove signbit, signbitf, signbitl.
2797 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
2798 builtin math functions instead of AC_DEFINE_UNQUOTED.
2799 * configure: Regenerate.
2801 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
2803 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
2804 * docs/doxygen/mainpage.html: Remove links.
2806 2004-06-08 Jason Merrill <jason@redhat.com>
2808 * config/linker-map.gnu: Use wildcards for
2809 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
2811 2004-06-08 Paolo Carlini <pcarlini@suse.de>
2813 * include/ext/pool_allocator.h: Convert to a global free-list,
2814 as per the original SGI/HP design: move the implementation
2815 details to struct __pool_base, from which __pool_alloc derives.
2816 * src/allocator.cc: Instantiate __pool_base.
2818 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
2819 Paolo Carlini <pcarlini@suse.de>
2821 * testsuite/testsuite_performance.h
2822 (resource_counter::allocated_memory): Make it return the right
2823 number of bytes requested by the allocators/application. This is
2824 the sbrk+mmaped memory.
2826 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
2828 * include/std/std_complex.h (log): Tidy.
2830 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
2832 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
2833 * testsuite/testsuite_abi.cc: Same.
2834 * configure.ac (libtool_VERSION): Bump to 6:1:0.
2835 * configure: Regenerate.
2836 * aclocal.m4: Regenerate.
2838 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2840 * include/std/std_complex.h (complex<_Tp>): Properly indent
2842 (complex<>::__rep): New.
2843 (__complex_abs): New. Dispatch to built-ins.
2845 (__complex_arg): New. Dispatch to built-ins.
2847 (__complex_cos): New. Dispatch to built-ins.
2849 (__complex_cosh): New. Dispatch to built-ins.
2851 (__complex_exp): New. Dispatch to built-ins.
2853 (__complex_log): New. Dispatch to built-ins.
2855 (__complex_sin): New. Dispatch to built-ins.
2857 (__complex_sinh): New. Dispatch to built-ins.
2859 (__complex_sqrt): New. Dispatch to built-ins.
2861 (__complex_tan): New. Dispatch to built-ins.
2863 (__complex_tanh): New. Dispatch to built-ins.
2865 (__complex_pow): New. Dispatch to built-ins.
2868 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
2869 Benjamin Kosnik <bkoz@redhat.com>
2872 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
2873 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
2874 * config/io/basic_file_stdio.cc (__basic_file::file): New.
2875 * config/io/basic_file_stdio.h: Define.
2877 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
2880 * docs/html/documentation.html: Update doxygen links for 3.4.0.
2882 2004-05-27 Jan Beulich <jbeulich@novell.com>
2884 * scripts/create_testsuite_files: Tweak.
2886 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
2889 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
2890 bits to do the same thing.
2892 2004-05-24 Paolo Carlini <pcarlini@suse.de>
2894 * include/bits/istream.tcc (ignore): Correctly deal with
2895 n == numeric_limits<streamsize>::max().
2896 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
2898 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
2899 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
2900 __n == numeric_limits<>::min().
2902 * include/bits/istream.tcc: Minor tweaks.
2904 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2906 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2908 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2910 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2912 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2914 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2917 Fixups for -Weffc++.
2918 * include/bits/basic_string.h (basic_string::operator=): Return
2919 pointer to this instead of result of assign. Although redundant,
2920 this doesn't impact resultant codegen.
2922 * include/bits/locale_facets.h (__numpunct_cache): Declare
2923 assignment opxserator and copy constructor private.
2924 (__timepunct_cache): Same.
2925 (__moneypunct_cache): Same.
2926 (collate): Use member initialization list for _M_c_locale_collate.
2927 * config/locale/gnu/messages_members.h: Same.
2928 * config/locale/gnu/time_members.h (__timepunct): Same.
2929 * src/codecvt.cc: Use member initialization list to initialize
2930 _M_c_locale_codecvt.
2931 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
2932 * config/os/gnu-linux/ctype_noninline.h: Same.
2933 * src/locale.cc (_Impl): Same.
2934 * src/locale_init.cc: Same.
2935 * src/localename.cc: Same.
2937 * include/bits/basic_ios.h (basic_ios): Complete member
2938 initialization list.
2939 * include/bits/istream.tcc (basic_istream::sentry): Same.
2940 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
2941 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
2942 _M_pback to member initialization list.
2943 * include/std/std_streambuf.h: Same.
2944 * include/std/std_sstream.h: Same, for _M_mode.
2945 * src/ios.cc (ios_base): Same.
2947 * include/ext/rope: Make derived classes match exception
2949 specifications. Add copy constructors and assignment operators.
2951 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
2952 constructor and assignment operator protected.
2953 (_Safe_iterator_base): Same.
2954 * include/debug/formatter.h (_Error_formatter): Define copy
2955 constructor and assignment operator.
2957 * include/backward/strstream: Declare assignment operator and copy
2958 constructor private.
2960 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2962 * testsuite/testsuite_hooks.h (func_callback): Declare copy
2963 constructor and assignment operator private.
2964 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
2965 exception specifications of base class.
2966 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
2967 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
2968 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2970 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2972 * libsupc++/cxxabi.h: Remove duplicated and useless public and
2973 private keywords in class declarations. Format. Use
2974 stddef.h. Expose declarations to "C" compilation.
2975 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
2976 assignment operator.
2977 (__dyncast_result): Same.
2978 * libsupc++/vec.cc (uncatch_exception): Same, use member
2979 initialization list.
2981 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2983 * testsuite/abi_check.cc: Add unistd.h.
2985 2004-05-22 Paolo Carlini <pcarlini@suse.de>
2988 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
2989 __int_to_char(unsigned long long)): Showpos is not relevant
2991 * testsuite/22_locale/num_put/put/char/15565.cc: New.
2992 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
2994 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
2996 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
2997 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
2998 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2999 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
3000 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
3001 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
3003 2004-05-21 Matthias Klose <doko@debian.org>
3005 * docs/doxygen/run_doxygen: Bump required version.
3007 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
3009 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
3010 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
3012 2004-05-21 Paolo Carlini <pcarlini@suse.de>
3014 * include/bits/istream.tcc (ignore): Remove redundant line.
3015 (readsome): Tidy, closely following 27.6.1.3, p30.
3017 2004-05-20 Paolo Carlini <pcarlini@suse.de>
3019 * include/bits/istream.tcc (operator>>(basic_istream<>&,
3020 basic_string<>&)): Use a temporary buffer, thus avoiding
3021 reallocation for common case.
3022 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
3024 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
3027 * include/bits/istream.tcc: Const-ification of a few variables.
3029 * include/bits/ostream.tcc: Trivial formatting fixes and
3030 const-ification of some variables.
3032 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
3036 * docs/doxygen/Intro.3: Remove Allocators.3.
3037 Add new extension headers, extension namespace list.
3038 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
3039 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
3040 __gnu_debug::. Remove __policy_ renames.
3041 * docs/doxygen/guide.html: Add dot note.
3042 * docs/doxygen/stdheader.cc: Edit, add files.
3043 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
3045 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
3047 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
3049 2004-05-18 Jan Beulich <jbeulich@novell.com>
3052 * scripts/create_testsuite_files: Also find source files through
3055 2004-05-18 Jan Beulich <jbeulich@novell.com>
3058 * testsuite/lib/libstdc++.exp: Make test files writable.
3060 2004-05-18 Paolo Carlini <pcarlini@suse.de>
3062 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
3065 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
3067 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
3068 allocation loop which removes blocks from the global free list
3069 from O(N) to O(1) when the required blocks are <= the number
3072 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
3074 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
3076 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
3078 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
3079 * testsuite/23_containers/deque/14340.cc: New.
3080 * testsuite/23_containers/list/14340.cc: New.
3081 * testsuite/23_containers/map/14340.cc: New.
3082 * testsuite/23_containers/multimap/14340.cc: New.
3083 * testsuite/23_containers/multiset/14340.cc: New.
3084 * testsuite/23_containers/set/14340.cc: New.
3085 * testsuite/23_containers/vector/14340.cc: New.
3087 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
3090 * include/debug/safe_iterator.h (_Safe_iterator converting
3091 constructor): Only allow declaration to instantiate when the
3092 incoming _Safe_iterator has exactly the right iterator type.
3094 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
3096 * include/bits/boost_concept_check.h: Fix old attribute syntax.
3097 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
3098 to pass concept-checks.
3099 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
3100 * testsuite/23_containers/set/modifiers/swap.cc: Same.
3101 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
3103 2004-05-16 Paolo Carlini <pcarlini@suse.de>
3105 * include/std/std_bitset.h: Minor formatting fixes.
3107 2004-05-16 Paolo Carlini <pcarlini@suse.de>
3109 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3110 Consistently update __bin._M_free[0].
3111 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
3112 __bin._M_free[0] to simplify the while loop (i.e., the number
3113 of iterations becomes known at the outset).
3115 2004-05-15 Paolo Carlini <pcarlini@suse.de>
3117 * include/std/std_bitset.h: Trivial formatting fixes.
3119 2004-05-14 Paolo Carlini <pcarlini@suse.de>
3120 Ivan Godard <igodard@pacbell.net>
3123 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
3124 * testsuite/23_containers/bitset/ext/15361.cc: New.
3126 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
3129 * crossconfig.m4: Add C99 math bits for linux crosses.
3130 * configure: Regenerate.
3132 2004-05-13 Simon Marshall <simon.marshall@misys.com>
3133 Benjamin Kosnik <bkoz@redhat.com>
3136 * include/bits/locale_facets.h: Fix for -fno-for-scope.
3137 * include/debug/safe_sequence.h: Same.
3138 * include/debug/safe_iterator.tcc: Same.
3139 * src/debug.cc: Same.
3140 * src/locale.cc: Same.
3141 * src/locale_init.cc: Same.
3142 * src/localename.cc: Same.
3143 * config/locale/gnu/ctype_members.cc: Same.
3144 * config/locale/gnu/numeric_members.cc: Same.
3145 * testsuite/testsuite_abi.cc: Same.
3146 * testsuite/testsuite_hooks.cc: Same.
3148 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
3150 * docs/html/abi.html: Document effect of -fabi-version on value
3151 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
3154 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
3157 * docs/html/faq/index.html: Update docs for libsupc++ usage.
3159 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
3162 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
3164 (_GLIBCXX_mutex_address): Same.
3165 (_GLIBCXX_once): Same.
3166 (_GLIBCXX_mutex_init): Same.
3167 (_GLIBCXX_mutex_address_init): Same.
3169 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
3171 * docs/html/abi.html: New.
3172 * docs/html/abi.txt: Remove.
3173 * docs/html/documentation.html: Add link.
3174 * testsuite/Makefile.am: Add files.
3175 * testsuite/Makefile.in: Regenerated.
3176 * testsuite/abi_check.cc: Move and modify code into...
3177 * testsuite/testsuite_abi.cc: Add.
3178 * testsuite/testsuite_abi.h: Add.
3180 * docs/html/17_intro/TODO: Update.
3181 * include/bits/stl_pair.h: Format.
3183 2004-05-06 Matthias Klose <doko@debian.org>
3185 * include/backward/iterator.h: Add GPL copyright info,
3186 with exception clause.
3187 * include/bits/boost_concept_check.h: Likewise.
3189 * libsupc++/tinfo.h: Likewise.
3190 * po/string_literals.cc: Likewise.
3192 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
3194 * acinclude.m4: Replace -W with more speaking -Wextra.
3195 * configure: Rebuilt.
3197 2004-05-03 Paolo Carlini <pcarlini@suse.de>
3199 Optimize locale::_M_impl->_M_names for the most common cases:
3200 !_M_names[0] means unnamed; !_M_names[1] means all the categories
3201 the same name (_M_names[0] && _M_names[1] means that the full set
3202 of _M_names must be processed, the general case).
3203 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
3204 Tweak, saving work when !_M_names[1].
3205 (locale::locale(const locale&, _Facet*): Simplify: now just setting
3206 _M_names[0] = 0 means unnamed.
3207 * src/locale.cc (locale::operator==): Deal first with the common,
3208 easy cases, otherwise fall back to locale::name().
3209 (locale::name()): Tweak, if !_M_names[0] just return "*".
3210 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
3211 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
3212 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
3213 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
3214 Simplify when !std::strchr, just updating _M_names[0]; clean up.
3215 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
3216 for the general case (full set of names), then do the usual work;
3219 * src/locale.cc (locale::name()): Reserve space in __ret.
3220 * src/locale_init.cc (locale::global(const locale&)): Save
3221 the name in a temporary.
3222 * src/localename.cc (locale::locale(const char*)): Reserve space
3225 2004-04-29 Paolo Carlini <pcarlini@suse.de>
3227 * src/locale.cc (locale::operator==): Always avoid constructing
3228 locale::name(), directly compare pairs of _M_names.
3230 2004-04-26 Paolo Carlini <pcarlini@suse.de>
3232 * include/bits/istream.tcc: Fix comment.
3234 2004-04-26 Paolo Carlini <pcarlini@suse.de>
3236 * include/bits/stl_vector.h: Trivial formatting fixes.
3237 * include/bits/vector.tcc: Likewise.
3239 2004-04-25 Paolo Carlini <pcarlini@suse.de>
3241 PR libstdc++/15002 (continued again)
3242 * include/bits/istream.tcc (getline(basic_istream<>&,
3243 basic_string<>&, _CharT)): Use a temporary buffer, thus
3244 avoiding reallocation for common case.
3246 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3247 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
3248 of temporary buffer to a power of two.
3250 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
3252 2004-04-25 Paolo Carlini <pcarlini@suse.de>
3254 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
3256 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
3258 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
3260 2004-04-24 Paolo Carlini <pcarlini@suse.de>
3261 Petur Runolfsson <peturr02@ru.is>
3263 PR libstdc++/15002 (continued)
3264 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
3265 streamsize, char_type)): Use traits::find/copy in a loop to speed
3266 up greatly the function in the common case (I/O buffer size >> 1).
3268 2004-04-24 Paolo Carlini <pcarlini@suse.de>
3270 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
3272 * include/bits/istream.tcc (getline(basic_istream<>&,
3273 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
3274 of sbumpc(), consistently with the other functions, thus also
3275 dealing correctly with the case of exceeded string::max_size().
3277 2004-04-24 Matthias Klose <doko@debian.org>
3279 Jonathan Wakely <cow@compsoc.man.ac.uk>
3280 * docs/html/configopts.html: Fix reference to allocator config option.
3282 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
3284 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
3285 * configure: Regenerate.
3287 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
3289 PR libstdc++/15047, libstdc++/11610
3290 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
3291 (libstdc++_init): Don't pass outdir to v3-copy-files.
3293 2004-04-21 Paolo Carlini <pcarlini@suse.de>
3295 * include/bits/deque.tcc: Trivial formatting fixes.
3296 * include/bits/stl_deque.h: Likewise.
3297 * include/bits/stl_list.h: Likewise.
3298 * include/bits/stl_tree.h: Likewise.
3300 2004-04-21 Paolo Carlini <pcarlini@suse.de>
3301 Andrew Pinski <pinskia@physics.uc.edu>
3303 * include/bits/basic_string.tcc (_M_mutate): Don't compute
3304 __src unnecessarily.
3306 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
3308 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
3309 Clarify assertion, set test variable to false before assert.
3310 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
3311 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
3312 * testsuite/27_io/ios_base/storage/2.cc: Same.
3314 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
3316 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
3317 * testsuite/27_io/fpos/14320-3.cc: Same.
3319 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
3320 * testsuite/27_io/fpos/1.cc: Same.
3321 * testsuite/27_io/basic_stringstream/2.cc: Same.
3322 * testsuite/27_io/basic_stringbuf/4.cc: Same.
3323 * testsuite/27_io/basic_stringbuf/1.cc: Same.
3324 * testsuite/27_io/basic_stringbuf/2.cc: Same.
3325 * testsuite/27_io/basic_streambuf/2.cc: Same.
3326 * testsuite/27_io/basic_ostringstream/2.cc: Same.
3327 * testsuite/27_io/basic_ostream/2.cc: Same.
3328 * testsuite/27_io/basic_ofstream/2.cc: Same.
3329 * testsuite/27_io/basic_istringstream/2.cc: Same.
3330 * testsuite/27_io/basic_istream/2.cc: Same.
3331 * testsuite/27_io/basic_iostream/2.cc: Same.
3332 * testsuite/27_io/basic_ios/2.cc: Same.
3333 * testsuite/27_io/basic_ifstream/2.cc: Same.
3334 * testsuite/27_io/basic_fstream/2.cc: Same.
3335 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
3337 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
3338 unsigned against zero.
3339 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
3340 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
3342 * testsuite/18_support/new_delete_placement.cc: Initialize
3343 variables before first use.
3344 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
3345 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
3346 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
3347 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
3349 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
3350 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
3352 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
3353 * testsuite/27_io/types/2.cc: Same.
3355 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
3357 * testsuite/27_io/fpos/14775.cc: Same.
3359 2004-04-19 Paolo Carlini <pcarlini@suse.de>
3361 PR libstdc++/15002 (partial)
3362 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
3363 Special case __n2 == 1, not calling traits_type::assign/copy.
3365 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
3367 * include/bits/stl_bvector.h: Use _M_impl._M_start.
3369 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
3371 * include/bits/c++config (_GLIBCXX_STD): New.
3372 * src/list.cc: Use it.
3373 * include/std/std_bitset.h: Same.
3374 * include/bits/vector.tcc: Same.
3375 * include/bits/stl_set.h: Same.
3376 * include/bits/stl_multiset.h: Same.
3377 * include/bits/stl_multimap.h: Same.
3378 * include/bits/stl_map.h: Same.
3379 * include/bits/stl_list.h: Same.
3380 * include/bits/stl_vector.h: Same.
3381 * include/bits/stl_bvector.h: Same.
3382 * include/bits/stl_deque.h: Same.
3383 * include/bits/deque.tcc: Same.
3384 * include/bits/list.tcc: Same.
3385 * include/debug/vector: Same.
3386 * include/debug/set.h: Same.
3387 * include/debug/multiset.h: Same.
3388 * include/debug/multimap.h: Same.
3389 * include/debug/map.h: Same.
3390 * include/debug/list: Same.
3391 * include/debug/deque: Same.
3392 * include/debug/bitset: Same.
3393 * include/debug/formatter.h (__gnu_debug): Remove using directive.
3394 Add using declaration for std::type_info.
3395 * include/debug/safe_iterator.h: Add using declaration for
3396 std::iterator_traits and std::pair.
3397 * src/debug_list.cc: New.
3398 * src/Makefile.am: Add debug_list.cc.
3399 * src/Makefile.in: Regenerate.
3400 * config/linker-map.gnu: Add _List_node_base exports for std and
3403 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
3404 idiom that other containers use.
3405 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
3407 2004-04-16 Paolo Carlini <pcarlini@suse.de>
3410 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
3412 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
3413 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
3415 2004-04-16 Paolo Carlini <pcarlini@suse.de>
3417 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
3419 * config.h.in: Regenerate.
3421 2004-04-16 Paolo Carlini <pcarlini@suse.de>
3423 * config/locale/generic/monetary_members.cc
3424 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
3425 btowc unnecessarily, just cast to wchar_t (the concerned chars
3426 all belong to the basic character set).
3427 * config/locale/generic/numeric_members.cc
3428 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
3429 * config/locale/gnu/monetary_members.cc
3430 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
3431 * config/locale/gnu/numeric_members.cc
3432 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
3434 2004-04-15 Paolo Carlini <pcarlini@suse.de>
3436 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
3437 avoid constructing unnecessarily this->name().
3439 2004-04-14 Zack Weinberg <zack@codesourcery.com>
3441 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
3442 Change definition of CXX to use $(shell) instead of backticks.
3443 * testsuite/Makefile.in: Regenerate.
3445 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
3447 * testsuite/performance/20_util/allocator/list_sort_search.cc:
3448 Minor formatting fixes.
3449 * testsuite/performance/20_util/allocator/map_mt_find.cc:
3452 2004-04-12 Paolo Carlini <pcarlini@suse.de>
3454 * config/locale/gnu/numeric_members.cc
3455 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
3456 in __uselocale, since btowc is called for chars belonging to
3457 the basic character set.
3459 2004-04-09 Paolo Carlini <pcarlini@suse.de>
3461 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
3462 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
3463 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
3464 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
3465 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
3466 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
3467 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
3468 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
3469 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
3470 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
3471 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
3472 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
3473 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
3474 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
3475 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
3476 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
3477 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
3479 2004-04-07 Paolo Carlini <pcarlini@suse.de>
3481 * config/locale/generic/time_members.cc
3482 (__timepunct<char>::_M_initialize_timepunct,
3483 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
3484 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
3485 * config/locale/gnu/time_members.cc
3486 (__timepunct<char>::_M_initialize_timepunct,
3487 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
3488 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
3489 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
3491 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
3492 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
3493 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
3494 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
3495 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
3496 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
3497 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
3498 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
3499 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
3500 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
3501 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
3502 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
3503 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
3504 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
3505 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
3506 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
3507 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
3508 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
3509 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
3510 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
3511 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
3512 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
3513 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
3514 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
3515 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
3516 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
3517 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
3518 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
3519 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
3520 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
3521 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
3522 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
3523 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
3524 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
3525 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
3526 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
3528 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
3530 2004-04-07 Paolo Carlini <pcarlini@suse.de>
3532 * config/locale/gnu/monetary_members.cc
3533 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
3534 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
3535 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
3536 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
3537 * config/locale/gnu/numeric_members.cc
3538 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
3539 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
3541 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
3543 Fixups for EDG front end.
3544 * include/ext/rope: Instead of non-existent function
3545 _Data_allocate, use allocator's allocate. Use this.
3546 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
3547 enumerations from _Rope_RopeRep here.
3548 * include/ext/ropeimpl.h: Same.
3549 * src/ext-inst.cc (_S_min_len): Fix up definition.
3551 * config/locale/gnu/ctype_members.cc: Qualify base class members
3553 * config/locale/generic/ctype_members.cc: Same.
3554 * config/locale/gnu/messages_members.h: Same.
3555 * config/locale/generic/messages_members.h: Same.
3556 * src/ctype.cc: Same.
3557 * include/bits/codecvt.h: Same.
3559 * include/bits/boost_concept_check.h: Declare.
3560 (__error_type_must_be_an_unsigned_integer_type): Remove this.
3561 (__error_type_must_be_an_integer_type): Remove this.
3562 (__error_type_must_be_a_signed_integer_type): Remove this.
3564 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
3566 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
3567 specification to definition.
3568 (__cxa_allocate_exception): Same.
3569 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
3570 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
3571 (__cxa_get_globals): Same.
3573 * libsupc++/del_op.cc: Add comment about freestanding.
3575 2004-04-05 Paolo Carlini <pcarlini@suse.de>
3577 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3578 The critical section is actually very small, only two assignments.
3580 2004-04-04 Paolo Carlini <pcarlini@suse.de>
3581 Petur Runolfsson <peturr02@ru.is>
3583 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
3584 adapted from libstdc++/11378.
3586 2004-04-03 Paolo Carlini <pcarlini@suse.de>
3588 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
3589 some duplicated code.
3590 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
3591 in the single threaded case.
3592 * testsuite/performance/20_util/allocator/list_sort_search.cc:
3593 Reorder and renumber the tests consistently with the other testfiles.
3594 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3595 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3596 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3598 2004-04-02 Paolo Carlini <pcarlini@suse.de>
3600 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3601 Rearrange arithmetic to avoid computing two divisions at
3604 2004-04-01 Paolo Carlini <pcarlini@suse.de>
3606 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
3607 Streamline the second half, wrapping it in a single
3608 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
3609 conditionals inside loops.
3611 2004-04-01 Paolo Carlini <pcarlini@suse.de>
3614 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
3615 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
3616 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
3617 to _GLIBCXX_RES_LIMITS.
3618 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
3620 * testsuite/testsuite_hooks.h: Declare set_file_limit.
3621 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
3622 and setrlimit(RLIMIT_FSIZE).
3623 * testsuite/27_io/fpos/14775.cc: New.
3624 * config.h.in: Regenerate.
3625 * configure: Likewise.
3627 2004-03-31 Paolo Carlini <pcarlini@suse.de>
3629 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
3630 In v3 uses of sscanf, the special floating-point numbers INF,
3631 INFINITY, etc., cannot occur in input, therefore, if the latter
3632 is too large, ERANGE is always stored in errno, no need of finitel.
3634 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
3637 * include/bits/stl_tree.h: Adjust initialization list order.
3639 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
3641 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
3643 2004-03-29 Paolo Carlini <pcarlini@suse.de>
3645 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
3646 on allocator behavior, the memory pointed by data2 may well be not
3649 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
3652 * include/bits/basic_string.tcc
3653 (basic_string::basic_string(const basic_string&)): Pass to
3654 _Rep::_M_grab the actual allocator of the string being constructed
3655 not the default constructed one.
3657 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
3660 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
3661 (__enc_traits::_M_destroy): New.
3662 (__enc_traits::~__enc_traits): Use it.
3663 (__enc_traits::operator=): Use _M_destroy, _M_init.
3664 (__enc_traits::__enc_traits): Same.
3666 2004-03-27 Petur Runolfsson <peturr02@ru.is>
3668 * testsuite/ext/enc_filebuf/char/13598.cc: New.
3670 2004-03-27 Paolo Carlini <pcarlini@suse.de>
3672 * include/ext/mt_allocator.h: Uglify consistently names of
3673 variables, members and classes; tidy.
3675 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
3677 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3678 Deallocation loop rewrote.
3680 2004-03-26 Paolo Carlini <pcarlini@suse.de>
3682 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3683 __mt_alloc<>::deallocate): Protect two instances of
3684 block->thread_id with __GTHREADS.
3686 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
3688 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
3689 default argument in constructors.
3690 (_Rb_tree::_M_empty_initialize): Remove.
3692 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
3694 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
3695 * testsuite/23_containers/set/operators/1_neg.cc: Same.
3697 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3699 * include/bits/cpp_type_traits.h: Changed __is_pod
3700 completely. Now, it does not use any of the previous type_traits
3701 to detect the pod types, and it also detects function pointers as
3704 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
3705 which encapsulates the internal implementation of an rb_tree. Made
3706 the allocator a base class of this class instead of the rb_tree,
3707 which was not conforming. This _Rb_tree_impl class is also
3708 specialized on whether the _Compare parameter is a POD type or
3709 not. If so, then it maintains the comparison function as a data
3710 member, otherwise it makes the _Compare parameter a base class of
3711 itself. Also, _M_key_compare is now a function instead of a data
3712 member, so that the above trick can work properly. Delegated the
3713 initialization of the other data members to this newly created
3714 class. Also, now other member functions of rb_tree must refer to
3715 _M_key_compare as _M_impl._M_key_compare(). The other data members
3716 (*) can be referenced to as _M_impl.(*), where
3717 (*) includes _M_header, and _M_node_count.
3719 2004-03-25 Paolo Carlini <pcarlini@suse.de>
3721 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
3722 Add _M_min_bin, the size in bytes of the smallest bin.
3723 (__mt_alloc<>::tune()): Tweak accordingly.
3724 (__mt_alloc<>::tune(size_t, ...)): Likewise.
3725 (__mt_alloc<>::block_record): Change to a union: members next
3726 and thread_id are never used at the same time.
3727 (__mt_alloc<>::allocate): Update consistently.
3728 (__mt_alloc<>::deallocate): Likewise.
3729 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
3730 _S_bin_size for the configurable _M_min_size.
3732 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3734 * include/bits/stl_list.h: Created a _List_impl class and made it
3735 derive from the allocator, instead of the list deriving from the
3736 allocator class, which was not conformant. Changed all references
3737 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
3738 as above (changed all references to the concerned variables).
3740 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3742 * include/bits/stl_deque.h: Created a _Deque_impl class and made
3743 it derive from the allocator, instead of the deque deriving from
3744 the allocator class, which was not conformant. Changed all
3745 references to the _M_start, _M_finish, _M_map, and _M_map_size to
3747 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
3748 qualification in 2 places where it was missing.
3749 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
3751 * include/bits/deque.tcc: Same as above (changed all references to
3752 the concerned variables).
3754 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3756 * include/bits/stl_vector.h: Created a _Vector_impl class and made
3757 it derive from the allocator, instead of the _Vector_base class,
3758 deriving from the allocator which was not conformant. Changed all
3759 references to the _M_start, _M_finish, and _M_end_of_storage to
3761 * include/bits/vector.tcc: Same as above (changed all references
3762 to the concerned variables).
3764 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3766 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
3767 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
3768 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
3770 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3772 * include/ext/malloc_allocator.h: Fixed the construct function to
3773 call global placement new instead of assignment. Added a check
3774 after the return from malloc to check whether returned pointer is
3775 NULL, and if so, throw std::bad_alloc().
3776 * include/ext/debug_allocator.h: Added a check in the deallocate
3777 function to check whether the user has passed a NULL pointer or
3780 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
3782 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
3784 2004-03-24 Andreas Schwab <schwab@suse.de>
3786 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
3787 warning from IA64 assembler.
3789 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3791 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
3792 function call __builtin_ctz instead of the while loop.
3793 (allocate) -> If condition has __builtin_expect.
3794 (deallocate) -> Ditto.
3795 Renamed a few left-over variables and typedefs according to the
3796 C++STYLE mentioned in the documentation.
3797 Protected calls to __gthread* by __gthread_active_p(), whose value
3798 is cached in the local variable __threads_active.
3800 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
3802 * testsuite/performance/20_util/allocator/producer_consumer.cc:
3803 Use linear algorithm for producer.
3805 2004-03-24 Paolo Carlini <pcarlini@suse.de>
3807 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3808 __mt_alloc<>::deallocate): Avoid redundant conditionals.
3810 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
3812 * include/bits/locale_facets.h: Tweaks for 80 column.
3813 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
3814 (__moneypunct_cache::_M_cache): Same.
3815 (num_get): Don't inherit from __num_base.
3817 (money_get): Don't inherit from money_base.
3819 (__timepunct::_M_am_pm_format): New.
3820 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
3821 (time_get::_M_extract_name): Same.
3822 (time_get::_M_extract_via_format): Same.
3823 * include/bits/locale_facets.tcc: Tweaks for 80 column.
3824 Use _M_getloc instead of getloc.
3825 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
3826 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
3827 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
3829 2004-03-22 Paolo Carlini <pcarlini@suse.de>
3831 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
3832 * configure: Regenerate.
3833 * config/allocator/pool_allocator_base.h: New.
3834 * include/ext/pool_allocator.h: Convert to a standard-conforming
3836 * src/allocator.cc: Tweak instantiations.
3837 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
3838 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
3839 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
3840 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3841 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3842 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3844 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
3846 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
3847 inline" and attribute-unused. Qualify parameter __mem with
3849 (__exchange_and_add): Ditto. Add back memory clobber to asm.
3851 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3853 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
3855 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
3857 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
3859 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
3861 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
3863 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
3865 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3867 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3869 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
3871 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3874 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3876 * include/std/std_valarray.h: Document DR389 [Ready].
3877 * docs/html/ext/howto.html: Add an entry for DR389.
3879 2004-03-19 Michael Eager <eager@mvista.com>
3881 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
3884 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3886 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
3888 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
3889 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
3890 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
3891 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
3892 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
3893 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
3894 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
3895 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
3896 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
3898 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3899 Petur Runolfsson <peturr02@ru.is>
3902 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
3903 no way to find out the conversion used by the underlying FILE*.
3904 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
3905 * testsuite/27_io/objects/char/9.cc: Tweak.
3907 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3910 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
3911 memory allocation/deallocation calls.
3912 * testsuite/ext/14648.cc: New.
3914 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
3917 * include/backward/bvector.h (bit_vector): Allocator is in std
3920 2004-03-19 Phil Edwards <phil@codesourcery.com>
3922 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
3923 not libiconv. SUBST this variable as well.
3924 * testsuite/Makefile.am (site.exp): New target, based on that
3925 created by automake. Also set libiconv.
3927 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
3928 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
3929 testsuite/Makefile.in: Regenerate.
3931 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
3933 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
3934 new_allocator for all hosts.
3935 * configure: Regenerate.
3937 2004-03-16 Paolo Carlini <pcarlini@suse.de>
3939 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
3940 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
3942 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3944 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3945 Adjust the logic underlying the parsing of symbol to deal
3946 correctly with an optional sign component (i.e., when either
3947 negative_sign or positive_sign is empty)
3948 * testsuite/22_locale/money_get/get/char/19.cc: New.
3949 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
3951 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3953 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3954 Do not accept an incomplete currency symbol.
3955 * testsuite/22_locale/money_get/get/char/18.cc: New.
3956 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
3958 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
3960 * config/allocator: New.
3961 * config/allocator/bitmap_allocator_base.h: New.
3962 * config/allocator/malloc_allocator_base.h: New.
3963 * config/allocator/mt_allocator_base.h: New.
3964 * config/allocator/new_allocator_base.h: New.
3965 * include/bits/allocator.h: Include c++allocator.h.
3966 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
3967 * aclocal.m4: Regenerate.
3968 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
3969 * configure: Regenerate.
3970 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
3971 * include/Makefile.in: Regenerate.
3972 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
3974 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3976 * include/bits/allocator.h: Revert.
3978 2004-03-12 Paolo Carlini <pcarlini@suse.de>
3980 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
3981 * include/bits/gslice_array.h: Add comment about DR 253.
3982 * include/bits/indirect_array.h: Likewise.
3983 * include/bits/mask_array.h: Likewise.
3984 * include/bits/slice_array.h: Likewise.
3986 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3988 * testsuite/20_util/allocator/14176.cc: New.
3989 * include/ext/mt_allocator.h: Formatting fixes.
3991 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
3993 * include/Makefile.am (ext_headers): Add
3994 ${ext_srcdir}/bitmap_allocator.h .
3995 * include/Makefile.in: Regenerate.
3996 * docs/html/ext/ballocator_doc.txt: New file.
3997 * include/ext/bitmap_allocator.h: New file.
3998 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
4000 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
4001 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
4002 test for the bitmap_allocator<>.
4003 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
4004 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
4005 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
4007 2004-03-11 Paolo Carlini <pcarlini@suse.de>
4009 * include/std/std_complex.h (pow(const complex&, const _Tp&),
4010 pow(const _Tp&, const complex&), pow(const complex&,
4011 const complex&)): Fully qualify with std:: a few calls.
4012 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
4014 2004-03-11 Steven Bosscher <stevenb@suse.de>
4017 * include/c_std/cmath.tcc (__cmath_power): Define inline.
4019 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
4021 * configure.ac: Bump AC_PREREQ to 2.59.
4023 2004-03-10 Paolo Carlini <pcarlini@suse.de>
4025 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
4027 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
4028 Paolo Carlini <pcarlini@suse.de>
4031 * include/std/std_complex.h (pow(const complex&, const _Tp&),
4032 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
4033 * testsuite/26_numerics/complex/13450.cc: New.
4035 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
4036 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
4038 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
4041 * include/bits/gslice_array.h (gslice_array()): Make public.
4042 (operator=(gslice_array)): Make public. Implement.
4043 * include/bits/indirect_array.h (indirect_array()): Make public.
4044 * include/bits/mask_array.h (mask_array()): Make public.
4045 (operator=(mask_array)): Make public. Implement.
4046 * include/bits/valarray_array.tcc (__valarray_copy):
4047 Comment. Add versions for gslice_array and mask_array.
4048 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
4050 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
4052 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
4054 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
4055 * testsuite/23_containers/set/modifiers/swap.cc: Same.
4056 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
4057 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
4058 * testsuite/23_containers/map/modifiers/swap.cc: Same.
4059 * testsuite/23_containers/list/modifiers/swap.cc: Same.
4061 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
4063 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
4066 * testsuite/23_containers/deque/modifiers/swap.cc: New.
4067 * testsuite/23_containers/list/modifiers/swap.cc: New.
4068 * testsuite/23_containers/map/modifiers/swap.cc: New.
4069 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
4070 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
4071 * testsuite/23_containers/set/modifiers/swap.cc: New.
4072 * testsuite/23_containers/vector/modifiers/swap.cc: New.
4074 2004-03-08 Petur Runolfsson <peturr02@ru.is>
4077 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
4079 2004-03-08 Paolo Carlini <pcarlini@suse.de>
4081 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
4082 * include/bits/stl_multiset.h: Add comment about DR 103.
4083 * include/bits/stl_set.h: Likewise.
4085 2004-03-08 Paolo Carlini <pcarlini@suse.de>
4087 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4088 The value _space_ indicates that at least one space is required
4090 * testsuite/22_locale/money_get/get/char/17.cc: New.
4091 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
4093 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
4094 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
4096 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
4097 Remove redundant conditional on __str.size().
4099 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
4101 * include/bits/allocator.h: Switch defaults to mt_alloc.
4103 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
4105 * include/ext/mt_allocator.h (_S_initialize): If
4106 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
4108 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
4111 * src/locale_init.cc (locale::locale): Lock critical regions with
4113 (locale::global): Same.
4114 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
4115 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
4116 (__glibcxx_mutex_lock): Same.
4118 * config/cpu/generic/atomicity.h: Remove
4119 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
4120 * src/misc-inst.cc: Move all locking bits out of this file.
4122 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
4123 * src/misc-inst.cc: Same.
4124 * config/cpu/hppa/atomicity.h: Same.
4126 * config/linker-map.gnu: Remove types in the signature of atomic
4127 exports, as they may vary.
4129 2004-03-06 Paolo Carlini <pcarlini@suse.de>
4131 * include/bits/locale_facets.tcc: Tweak the comment preceding
4132 has_facet: doesn't throw.
4134 2004-03-06 Paolo Carlini <pcarlini@suse.de>
4136 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
4137 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
4138 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
4139 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
4140 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
4141 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
4142 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
4143 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
4145 2004-03-06 Paolo Carlini <pcarlini@suse.de>
4147 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4148 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
4149 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
4150 * testsuite/testsuite_character.h (struct __gnu_test::character):
4152 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
4155 2004-03-05 Paolo Carlini <pcarlini@suse.de>
4157 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
4159 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
4161 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
4163 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
4165 * testsuite/23_containers/deque/invalidation/4.cc: Same.
4166 * testsuite/23_containers/list/invalidation/1.cc: Same.
4167 * testsuite/23_containers/list/invalidation/2.cc: Same.
4168 * testsuite/23_containers/list/invalidation/3.cc: Same.
4169 * testsuite/23_containers/list/invalidation/4.cc: Same.
4170 * testsuite/23_containers/map/invalidation/2.cc: Same.
4171 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
4172 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
4173 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
4174 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
4175 * testsuite/23_containers/set/invalidation/1.cc: Same.
4176 * testsuite/23_containers/set/invalidation/2.cc: Same.
4177 * testsuite/23_containers/vector/invalidation/1.cc: Same.
4178 * testsuite/23_containers/vector/invalidation/2.cc: Same.
4179 * testsuite/23_containers/vector/invalidation/3.cc: Same.
4180 * testsuite/23_containers/vector/invalidation/4.cc: Same.
4182 2004-03-04 Paolo Carlini <pcarlini@suse.de>
4184 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
4186 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
4188 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
4189 from the dg-options.
4190 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
4191 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
4192 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
4193 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
4194 * testsuite/23_containers/vector/resize/1.cc: Likewise.
4195 * testsuite/26_numerics/complex_value.cc: Likewise.
4196 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
4197 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
4198 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
4199 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
4200 * testsuite/27_io/objects/char/5.cc: Likewise.
4201 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
4202 * testsuite/backward/11460.cc: Likewise.
4203 * testsuite/thread/pthread7-rope.cc: Likewise.
4205 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
4206 missing test variable.
4207 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
4208 missing test variable.
4210 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
4212 * testsuite/20_util/allocator/1.cc: Provide explicit
4213 instantiations for non-weak systems.
4214 * testsuite/20_util/binders.cc: Same.
4215 * testsuite/20_util/allocator/8230.cc: Same.
4216 * testsuite/20_util/allocator/10378.cc: Same.
4217 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
4218 * testsuite/22_locale/ctype/is/char/2.cc: Same.
4219 * testsuite/thread/pthread7-rope.cc: Same.
4220 * testsuite/thread/pthread6.cc: Same.
4221 * testsuite/thread/pthread5.cc: Same.
4222 * testsuite/thread/pthread4.cc: Same.
4223 * testsuite/thread/pthread1.cc: Same.
4224 * testsuite/ext/rope.cc: Same.
4225 * testsuite/ext/hash_set.cc: Same.
4226 * testsuite/ext/hash_map.cc: Same.
4227 * testsuite/ext/concept_checks.cc: Same.
4228 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
4229 * testsuite/25_algorithms/unique/2.cc: Same.
4230 * testsuite/25_algorithms/unique/1.cc: Same.
4231 * testsuite/25_algorithms/rotate.cc: Same.
4232 * testsuite/25_algorithms/min_max.cc: Same.
4233 * testsuite/25_algorithms/equal.cc: Same.
4234 * testsuite/24_iterators/rel_ops.cc: Same.
4235 * testsuite/24_iterators/iterator.cc: Same.
4236 * testsuite/24_iterators/insert_iterator.cc: Same.
4237 * testsuite/24_iterators/front_insert_iterator.cc: Same.
4238 * testsuite/24_iterators/back_insert_iterator.cc: Same.
4239 * testsuite/23_containers/vector/resize/1.cc: Same.
4240 * testsuite/23_containers/vector/modifiers/2.cc: Same.
4241 * testsuite/23_containers/vector/modifiers/1.cc: Same.
4242 * testsuite/23_containers/vector/invalidation/4.cc: Same.
4243 * testsuite/23_containers/vector/invalidation/3.cc: Same.
4244 * testsuite/23_containers/vector/invalidation/2.cc: Same.
4245 * testsuite/23_containers/vector/invalidation/1.cc: Same.
4246 * testsuite/23_containers/vector/element_access/1.cc: Same.
4247 * testsuite/23_containers/vector/cons/6513.cc: Same.
4248 * testsuite/23_containers/vector/cons/3.cc: Same.
4249 * testsuite/23_containers/vector/cons/2.cc: Same.
4250 * testsuite/23_containers/vector/cons/1.cc: Same.
4251 * testsuite/23_containers/vector/capacity/8230.cc: Same.
4252 * testsuite/23_containers/vector/capacity/1.cc: Same.
4253 * testsuite/23_containers/vector/bool/6886.cc: Same.
4254 * testsuite/23_containers/stack/members/7158.cc: Same.
4255 * testsuite/23_containers/set/invalidation/2.cc: Same.
4256 * testsuite/23_containers/set/invalidation/1.cc: Same.
4257 * testsuite/23_containers/queue/members/7157.cc: Same.
4258 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
4259 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
4260 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
4261 * testsuite/23_containers/multiset/insert/1.cc: Same.
4262 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
4263 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
4264 * testsuite/23_containers/map/operators/1.cc: Same.
4265 * testsuite/23_containers/map/invalidation/2.cc: Same.
4266 * testsuite/23_containers/map/invalidation/1.cc: Same.
4267 * testsuite/23_containers/map/insert/1.cc: Same.
4268 * testsuite/23_containers/list/operators/4.cc: Same.
4269 * testsuite/23_containers/list/operators/3.cc: Same.
4270 * testsuite/23_containers/list/operators/2.cc: Same.
4271 * testsuite/23_containers/list/operators/1.cc: Same.
4272 * testsuite/23_containers/list/modifiers/3.cc: Same.
4273 * testsuite/23_containers/list/modifiers/2.cc: Same.
4274 * testsuite/23_containers/list/modifiers/1.cc: Same.
4275 * testsuite/23_containers/list/invalidation/4.cc: Same.
4276 * testsuite/23_containers/list/invalidation/3.cc: Same.
4277 * testsuite/23_containers/list/invalidation/2.cc: Same.
4278 * testsuite/23_containers/list/invalidation/1.cc: Same.
4279 * testsuite/23_containers/list/cons/9.cc: Same.
4280 * testsuite/23_containers/list/cons/8.cc: Same.
4281 * testsuite/23_containers/list/cons/7.cc: Same.
4282 * testsuite/23_containers/list/cons/6.cc: Same.
4283 * testsuite/23_containers/list/cons/5.cc: Same.
4284 * testsuite/23_containers/list/cons/4.cc: Same.
4285 * testsuite/23_containers/list/cons/3.cc: Same.
4286 * testsuite/23_containers/list/cons/2.cc: Same.
4287 * testsuite/23_containers/list/cons/1.cc: Same.
4288 * testsuite/23_containers/list/capacity/1.cc: Same.
4289 * testsuite/23_containers/deque/operators/1.cc: Same.
4290 * testsuite/23_containers/deque/invalidation/4.cc: Same.
4291 * testsuite/23_containers/deque/invalidation/3.cc: Same.
4292 * testsuite/23_containers/deque/invalidation/2.cc: Same.
4293 * testsuite/23_containers/deque/invalidation/1.cc: Same.
4294 * testsuite/23_containers/deque/cons/2.cc: Same.
4295 * testsuite/23_containers/deque/cons/1.cc: Same.
4297 * src/allocator.cc: Add char, wchar_t instantiations
4298 to match extern template declarations in memory.h.
4300 2004-03-03 Paolo Carlini <pcarlini@suse.de>
4302 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4303 Fix warning regression.
4305 2004-03-03 Paolo Carlini <pcarlini@suse.de>
4307 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4308 Deal properly with empty __digits and negative frac_digits,
4311 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
4313 * docs/html/documentation.html: Regenerate.
4315 2004-03-02 Paolo Carlini <pcarlini@suse.de>
4318 * include/bits/postypes.h (class streamoff): Remove, now
4319 streamoff is just typedef a 64 bit signed integer type.
4320 (class fpos): Tweak consistently.
4321 * testsuite/27_io/fpos/14320-1.cc: New.
4322 * testsuite/27_io/fpos/14320-2.cc: New.
4323 * testsuite/27_io/fpos/14320-3.cc: New.
4324 * testsuite/27_io/fpos/14320-4.cc: New.
4325 * testsuite/27_io/fpos/14320-5.cc: New.
4326 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
4328 2004-03-02 Paolo Carlini <pcarlini@suse.de>
4330 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4331 Reorganize a bit the main parsing loop, thus early detecting
4332 an empty value component.
4333 * testsuite/22_locale/money_get/get/char/16.cc: New.
4334 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
4336 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
4338 Support automake 1.8.2
4339 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
4340 * po/Makefile.am (EXTRA_DIST): New.
4341 * po/Makefile.in: Regenerate.
4342 * Makefile.in: Same.
4343 * include/Makefile.in: Same.
4344 * libmath/Makefile.in: Same.
4345 * libsupc++/Makefile.in: Same.
4346 * src/Makefile.in: Same.
4347 * testsuite/Makefile.in: Same.
4349 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
4350 __GXX_WEAK__ instead of SUPPORTS_WEAK.
4351 (${host_builddir}/gthr-default.h): Same.
4352 (${host_builddir}/gthr.h): Same.
4353 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
4354 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
4356 * aclocal.m4: Regenerate.
4357 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
4358 * config.h.in: Regenerate.
4361 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
4363 Support autoconf 2.59
4364 * acinclude.m4: Quote correctly.
4365 * aclocal.m4: Regenerate.
4368 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
4370 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
4372 * docs/html/18_support/howto.html: Add bit about writing to
4373 stderr, mostly by Zack.
4375 2004-03-01 Paolo Carlini <pcarlini@suse.de>
4377 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
4378 money_get<>::do_get(string_type&)): ... and two more.
4380 2004-03-01 Paolo Carlini <pcarlini@suse.de>
4382 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4383 Fix thinkos in the switch from string_type& to string& as last
4386 2004-03-01 Paolo Carlini <pcarlini@suse.de>
4388 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
4389 Also when parsing exponent sign, first look for thousands_sep
4390 and decimal_point; tweak a bit.
4391 * testsuite/22_locale/num_get/get/char/15.cc: New.
4392 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
4394 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4395 num_get<>::_M_extract_int): Reorder some conditionals.
4397 2004-03-01 Paolo Carlini <pcarlini@suse.de>
4399 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4400 Consistently with numpunct, enforce the requirements in
4401 22.2.6.3, p3 for the thousands separators; tweak a bit.
4402 * testsuite/22_locale/money_get/get/char/15.cc: New.
4403 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
4405 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
4407 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
4408 testsuite_files from correct multilib blddir when running
4411 2004-02-29 Phil Edwards <phil@codesourcery.com>
4413 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
4414 the summary file to the logfile.
4415 * testsuite/Makefile.in: Regenerate.
4417 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4419 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
4421 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
4422 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
4424 2004-02-28 Paolo Carlini <pcarlini@suse.de>
4426 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
4427 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
4428 no 'decimal-point' in the middle: in this case too we must fix
4429 up __found_grouping; slightly tweak.
4430 * testsuite/22_locale/num_get/get/char/14.cc: New.
4431 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
4433 2004-02-27 Eric Christopher <echristo@redhat.com>
4434 Phil Edwards <phil@codesourcery.com>
4436 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
4437 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
4438 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
4439 testsuite/22_locale/collate/hash/wchar_t/2.cc,
4440 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
4441 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
4442 testsuite/22_locale/collate/transform/wchar_t/2.cc,
4443 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
4444 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4445 Use dg-require-iconv.
4446 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
4448 2004-02-27 Phil Edwards <phil@codesourcery.com>
4449 Eric Christopher <echristo@redhat.com>
4451 * testsuite/config/default.exp: Update with comments.
4452 (${tool}_target_compile): New wrapper routine.
4453 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
4454 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
4456 (load_gcc_lib, v3track): New routines.
4457 (v3-init): Rename to libstdc++_init.
4458 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
4459 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
4461 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
4463 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
4465 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
4467 * config/os/irix/irix5.2/atomicity.h: Merge..
4468 * config/os/irix/irix6.5/atomicity.h: Merge..
4469 * config/os/irix/atomicity.h: ...into this.
4470 * config/os/irix/atomic_word.h: New.
4471 * configure.host: Set atomic_word_dir for irix.
4473 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
4474 * i386/atomicity.h: Same.
4475 * m68k/atomicity.h: Same.
4476 * sparc/atomicity.h: Same.
4478 2004-02-27 David Edelsohn <edelsohn@gnu.org>
4480 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
4481 static, and inline keywords.
4483 2004-02-27 Paolo Carlini <pcarlini@suse.de>
4485 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4486 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
4487 call reserve on the __tmp_gruping string.
4488 (num_get<>::_M_extract_float): Don't append unnecessarily a
4489 char() to the returned string.
4490 * include/bits/locale_facets.tcc: Trivial reformattings.
4492 2004-02-27 Paolo Carlini <pcarlini@suse.de>
4494 * include/bits/locale_facets.h (money_get<>::_M_extract):
4495 Change signature: now takes a plain string&.
4496 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4497 Update consistently the definition; use the moneypunct cache
4498 to parse the value; use swap to change __units.
4499 (money_get<>::do_get(long double&)): Update call of _M_extract,
4500 avoid ctype::narrow, not correct wrt the standard.
4501 (money_get<>::do_get(string_type&)): Likewise, update call
4502 of _M_extract, use ctype::widen.
4503 * src/locale-inst.cc: Tweak instantiations of _M_extract.
4505 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
4507 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
4508 * testsuite/demangle/abi_examples/02.cc: Likewise.
4509 * testsuite/demangle/regression/cw-11.cc: Likewise.
4510 * testsuite/demangle/regression/cw-16.cc: Change two expected
4511 results to match libiberty demangler output.
4513 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
4516 * libsupc++/Makefile.am: Use libiberty demangler.
4517 (c_sources): Add cp-demangle.c.
4518 * libsupc++/Makefile.in: Regenerate.
4519 * src/Makefile.am (sources): Remove demangle.cc.
4520 * src/Makefile.in: Regenerate.
4521 * include/Makefile.am (bits_headers): Move demangle.h.
4522 (ext_headers): ...here.
4523 * include/Makefile.in: Regenerate.
4524 * include/bits/demangle.h: Move...
4525 * include/ext/demangle.h: ...here.
4526 * src/demangle.cc: Remove.
4528 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
4530 * include/bits/demangle.h: Add type template parameter to all
4531 templates with just an Allocator template parameter.
4533 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
4535 * include/bits/atomicity.h: New, forward declarations for __atomic_add
4536 and __exchange_and_add.
4537 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
4538 * config/cpu/cris/atomic_word.h: Same.
4539 * config/cpu/sparc/atomic_word.h: Same.
4540 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
4541 Qualifiy with __gnu_cxx.
4542 (_Callback_list::_M_add_reference): Same.
4543 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
4544 (locale::facet::_M_remove_reference): Same.
4545 (locale::_Impl::_M_add_reference): Add.
4546 (locale::_Impl::_M_remove_reference): Same.
4547 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
4548 (basic_string::_Rep::_M_dispose): Same.
4549 * src/ios.cc (ios_base::xalloc): Same.
4550 * src/ios_init.cc (ios_base::Init::Init): Same.
4551 (ios_base::Init::~Init): Same.
4552 * src/locale.cc (locale::id::_M_id): Same.
4553 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
4554 static, and inline keywords.
4555 * config/cpu/alpha/atomicity.h: Same.
4556 * config/cpu/cris/atomicity.h: Same.
4557 * config/cpu/generic/atomicity.h: Same.
4558 * config/cpu/hppa/atomicity.h: Same.
4559 * config/cpu/i386/atomicity.h: Same.
4560 * config/cpu/ia64/atomicity.h: Same.
4561 * config/cpu/m68k/atomicity.h: Same.
4562 * config/cpu/mips/atomicity.h: Same.
4563 * config/cpu/powerpc/atomicity.h: Same.
4564 * config/cpu/s390/atomicity.h: Same.
4565 * config/cpu/sparc/atomicity.h: Same.
4567 * src/Makefile.am (host_sources): Add atomicity.cc.
4568 (atomicity.cc): New rule.
4569 * src/Makefile.in: Regenerate.
4570 * include/Makefile.am (host_headers): Remove host atomicity.h.
4571 (host_headers): Add atomic_word.h.
4572 (bits_headers): Add bits atomicity.h.
4573 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
4574 * include/Makefile.in: Regenerate.
4575 * configure.host (atomic_word_dir): Add.
4576 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
4577 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
4578 * configure: Regenerate.
4579 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
4581 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
4582 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
4584 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
4586 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
4587 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
4588 Fix markup, more <link> tags.
4590 2004-02-25 Carlo Wood <carlo@alinoe.com>
4593 namespace __gnu_cxx::demangler
4594 (session<Allocator>::qualifier_list_Allocator): Add
4595 (session<Allocator>::M_qualifier_list_alloc): Add
4596 (session<Allocator>::decode_type_with_postfix):
4597 Use M_qualifier_list_alloc instead of calling operator new/delete.
4599 2004-02-24 Paolo Carlini <pcarlini@suse.de>
4602 * include/bits/postypes.h (class streamoff): Add operator++(),
4603 operator++(int), operator--() and operator--(int).
4604 * testsuite/27_io/fpos/14252.cc: New.
4606 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
4608 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
4609 error in handling of hex constants.
4611 2004-02-24 Paolo Carlini <pcarlini@suse.de>
4613 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4614 Prefer basic_string::append to operator+= and a temporary.
4616 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
4618 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
4619 Only use fputs, not write.
4621 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
4623 * include/ext/malloc_allocator.h: Add operators ==, !=.
4624 * include/ext/new_allocator.h: Add operators ==, !=.
4625 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
4626 (__mt_alloc::_S_get_options): New.
4627 (__mt_alloc::_S_set_options): New.
4628 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
4629 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
4630 Move functions out of line, simplify, format.
4631 * src/allocator.cc: Simplify explicit instantiations.
4632 * include/bits/allocator.h: Tweak.
4634 2004-02-22 Paolo Carlini <pcarlini@suse.de>
4636 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4637 Restructure formatting of value component, first dealing with
4638 the non-decimal digits; use reserve.
4640 2004-02-22 Paolo Carlini <pcarlini@suse.de>
4642 * include/bits/locale_facets.h (class money_get): Inherit
4643 from money_base too; tweak declaration of _M_extract, now
4644 parameterized on _Intl too.
4645 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4646 Update definition to use the cache; call reserve on __res to
4647 avoid multiple reallocations; fix parsing of sign component
4648 according to 22.2.6.1.2, p3.
4649 (money_get<>::do_get(long double&),
4650 money_get<>::do_get(string_type&)): Update calls of _M_extract.
4651 * src/locale-inst.cc: Add instantiations of
4652 money_get::_M_extract<false> and money_get::_M_extract<true>.
4653 * testsuite/22_locale/money_get/get/char/14.cc: New.
4654 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
4656 2004-02-21 Mark Mitchell <mark@codesourcery.com>
4658 * libsupc++/vterminate.cc
4659 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
4661 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
4663 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
4664 not set RLIMIT_AS on HP-UX.
4666 2004-02-21 Mark Mitchell <mark@codesourcery.com>
4668 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
4669 not set RLIMIT_AS on HP-UX.
4671 2004-02-21 Paolo Carlini <pcarlini@suse.de>
4673 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
4674 _S_zero, _S_end } enum, _S_atoms.
4675 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
4676 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
4677 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
4678 (__moneypunct_cache<>::~__moneypunct_cache): Update.
4679 (__moneypunct_cache<>::_M_cache): Fill the cache.
4680 (class moneypunct): Tweak __cache_type typedef.
4681 (class money_put): Inherit from money_base too; tweak declaration
4682 of _M_insert, now parameterized on _Intl.
4683 * include/bits/locale_facets.tcc
4684 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
4685 (money_put<>::_M_insert): Update definition to use the cache;
4686 call reserve on __res to avoid multiple reallocations.
4687 (money_put<>::do_put(long double),
4688 money_put<>::do_put(const string_type&): Update calls of _M_insert.
4689 * config/locale/generic/monetary_members.cc
4690 (moneypunct<char, true>::_M_initialize_moneypunct,
4691 moneypunct<char, false>::_M_initialize_moneypunct,
4692 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
4693 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
4694 * config/locale/gnu/monetary_members.cc: Likewise.
4695 * config/locale/gnu/monetary_members.cc
4696 (moneypunct<wchar_t, true>::~moneypunct(),
4697 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
4698 * src/globals_locale.cc: Tweak fake_money_cache_c.
4699 * src/locale-inst.cc: Add instantiations for
4700 money_put::_M_insert<false> and money_put::_M_insert<true> and
4701 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
4702 * src/locale_facets.cc: Define money_base::_S_atoms.
4703 * src/locale_init.cc: Update placement new of
4704 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
4705 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
4707 * config/locale/generic/numeric_members.cc: Clean up.
4708 * config/locale/gnu/numeric_members.cc: Likewise.
4709 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
4710 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
4711 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
4712 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
4713 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
4714 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
4716 2004-02-20 Mark Mitchell <mark@codesourcery.com>
4718 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
4719 FIFO for writing with ios_base::in|ios_base::out.
4720 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
4721 * testsuite/27_io/objects/char/7.cc: Likewise.
4722 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
4725 2004-02-19 David Edelsohn <edelsohn@gnu.org>
4727 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
4728 from iso-8859-1 to ISO8859-1.
4729 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
4730 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
4731 * 22_locale/collate/hash/wchar_t/2.cc: Same.
4732 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
4733 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
4734 * 22_locale/collate/transform/wchar_t/2.cc: Same.
4735 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
4736 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
4738 2004-02-18 Paolo Carlini <pcarlini@suse.de>
4740 * include/bits/locale_facets.h (money_get<>::_M_extract):
4741 New, helper for do_get.
4742 (money_put<>::_M_insert): Likewise, for do_put.
4743 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
4744 money_put<>::_M_insert): Define.
4745 (money_get<>::do_get(long double&), money_get<>::do_get(
4746 string_type&), money_put::do_put(long double),
4747 money_put::do_put(const string_type&)): Use the helpers.
4749 2004-02-18 Paolo Carlini <pcarlini@suse.de>
4751 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4752 Rewrite, avoiding recursion.
4753 (__gnu_internal::xwrite): Minor tweaks.
4755 2004-02-17 Stefan Olsson <stefan@xapa.se>
4757 * include/ext/mt_allocator.h: Removed the last
4758 pointer. Deallocated blocks are now added to the front of
4759 freelists as proposed by Felix Yen. This gives roughly 10%
4760 performance boost and saves some memory.
4761 * docs/html/ext/mt_allocator.html: Change due to that deallocated
4762 blocks now are added to the front of freelists. The reason to this
4763 approach is also explained.
4765 2004-02-17 Paolo Carlini <pcarlini@suse.de>
4767 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4768 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
4769 grouping fidelity conditional.
4771 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4773 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
4774 Qualify exception with std::.
4775 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
4776 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4777 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4778 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4779 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4781 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4783 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
4784 for now that the catch block is not reached.
4785 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
4787 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4789 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4790 Fix parsing of the remaining sign characters.
4791 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
4792 the input is scanned 'til eof.
4793 * 22_locale/money_get/get/char/4.cc: Likewise.
4794 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
4795 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
4796 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
4797 not do_pos_format: the former is the only one that matters during
4799 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
4801 * 22_locale/money_get/get/char/6.cc: Minor tweak.
4802 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
4804 2004-02-15 David Asher <david.asher@cavium.com>
4807 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
4808 access __olds beyond __oldlen.
4810 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4812 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
4813 sure the exception is actually thrown.
4814 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4815 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4816 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4818 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4821 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
4822 In case of conversion errors, throw ios_failure; simplify.
4823 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
4824 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4825 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
4826 previously we didn't throw in case of conversion errors, instead
4827 just returned eof().
4828 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4829 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4830 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4832 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
4833 Trivial simplification of a conditional.
4835 2004-02-12 Paolo Carlini <pcarlini@suse.de>
4837 PR libstdc++/13731 (final part: writev)
4838 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4839 New, a wrapper around writev() handling partial writes.
4840 (__basic_file<char>::xwrite): Move to __gnu_internal and make
4842 (__basic_file<char>::xsputn): Update call.
4843 (__basic_file<char>::xsputn_2): Likewise.
4844 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4845 Don't declare, now static.
4847 2004-02-11 Stefan Olsson <stefan@xapa.se>
4849 * docs/html/ext/mt_allocator.html: New.
4851 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
4853 * docs/html/20_util/allocator.html: New file, consolidate
4854 allocator information here. Revamp.
4855 * docs/html/documentation.html: Change links.
4856 * docs/html/20_util/howto.html: Same.
4857 * docs/html/ext/howto.html: Same.
4859 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4861 PR libstdc++/13731 (first part: write)
4862 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4864 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
4865 Define it: a wrapper around write() handling partial write.
4866 (__basic_file<char>::xsputn): Use it.
4867 (__basic_file<char>::xsputn_2): Likewise.
4869 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4870 Petur Runolfsson <peturr02@ru.is>
4873 * include/std/std_istream.h (operator>>(__istream_type& (*)
4874 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
4875 operator>>(ios_base& (*)(ios_base&))): Declare inline.
4876 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
4877 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
4878 operator<<(ios_base& (*) (ios_base&))): Likewise.
4879 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
4881 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
4884 * config/linker-map.gnu: Add typeinfo and typeinfo name for
4885 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
4888 * config/linker-map.gnu: Add typeinfo and typeinfo name for
4889 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
4891 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
4893 * include/ext/pool_allocator.h: Include c++config.h.
4895 2004-02-09 Stefan Olsson <stefan@xapa.se>
4897 * include/ext/mt_allocator.h: thread_id is unused in non threaded
4898 applications and now has a ifdef to remove it completely on
4899 compilers without thread support. Include stdlib.h due to a
4900 compiler warning on getenv().
4902 2004-02-09 Paul Brook <paul@codesourcery.com>
4904 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
4906 2004-02-09 Paolo Carlini <pcarlini@suse.de>
4909 * src/locale_init.cc (locale::global(const locale&)): Use
4910 locale::name() in order to decide whether calling setlocale.
4911 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
4913 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
4914 Avoid computing &= unnecessarily.
4916 2004-02-09 James E Wilson <wilson@specifixinc.com>
4919 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
4920 __builtin_extend_pointer.
4922 2004-02-09 Paolo Carlini <pcarlini@suse.de>
4925 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
4926 Don't leave dangling pointers.
4927 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
4928 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
4929 facet is needed in the final test.
4931 2004-02-09 Bernardo Innocenti <bernie@develer.com>
4933 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
4934 * configure: Regenerate.
4936 2004-02-08 Richard Henderson <rth@redhat.com>
4939 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
4940 uncaughtExceptions during nested catch rethrow.
4941 * testsuite/18_support/14026.cc: New.
4943 2004-02-08 Paolo Carlini <pcarlini@suse.de>
4945 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
4946 When working in place remember to set the state to sharable
4947 (otherwise, _M_mutate does it).
4949 2004-02-08 Bernardo Innocenti <bernie@develer.com>
4951 * include/bits/allocator.h, include/bits/basic_ios.h,
4952 include/bits/basic_ios.tcc, include/bits/basic_string.h,
4953 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
4954 include/bits/char_traits.h, include/bits/codecvt.h,
4955 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
4956 include/bits/demangle.h, include/bits/deque.tcc,
4957 include/bits/fstream.tcc, include/bits/functexcept.h,
4958 include/bits/gslice.h, include/bits/gslice_array.h,
4959 include/bits/indirect_array.h, include/bits/ios_base.h,
4960 include/bits/istream.tcc, include/bits/list.tcc,
4961 include/bits/locale_classes.h, include/bits/locale_facets.h,
4962 include/bits/locale_facets.tcc, include/bits/localefwd.h,
4963 include/bits/mask_array.h, include/bits/ostream.tcc,
4964 include/bits/postypes.h, include/bits/slice_array.h,
4965 include/bits/sstream.tcc, include/bits/stl_algo.h,
4966 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
4967 include/bits/stl_construct.h, include/bits/stl_deque.h,
4968 include/bits/stl_function.h, include/bits/stl_heap.h,
4969 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
4970 include/bits/stl_list.h, include/bits/stl_map.h,
4971 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
4972 include/bits/stl_numeric.h, include/bits/stl_pair.h,
4973 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
4974 include/bits/stl_relops.h, include/bits/stl_set.h,
4975 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
4976 include/bits/stl_threads.h, include/bits/stl_tree.h,
4977 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
4978 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
4979 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
4980 include/bits/type_traits.h, include/bits/valarray_after.h,
4981 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
4982 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
4983 trailing whitespace.
4985 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4987 * include/bits/basic_string.h: Fix comment.
4989 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4991 * include/bits/stl_construct.h: Wrap overlong lines, reformat
4992 according to the coding standards.
4993 * include/bits/stl_pair.h: Likewise.
4994 * include/bits/stl_raw_storage_iter.h: Likewise.
4995 * include/bits/stl_stack.h: Likewise.
4996 * include/bits/stl_uninitialized.h: Likewise.
4997 * include/bits/stream_iterator.h: Likewise.
4998 * include/bits/streambuf_iterator.h: Likewise.
4999 * include/bits/type_traits.h: Likewise.
5001 2004-02-06 Paolo Carlini <pcarlini@suse.de>
5003 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
5006 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
5008 * scripts/check_performance: Support PCH.
5010 * scripts/check_performance (CXX): Add -DNOTHREAD.
5011 * testsuite/performance/20_util/allocator/insert.cc: Integrate
5012 threaded tests from insert_insert.cc. Tweak iterations,
5013 remove special cases.
5014 * testsuite/performance/20_util/allocator/insert_insert.cc:
5015 Make all tests single-threaded. Tweak iterations.
5016 * testsuite/performance/20_util/allocator/map_thread.cc:
5018 * testsuite/performance/20_util/allocator/producer_consumer.cc:
5021 2004-02-05 Geoffrey Keating <geoffk@apple.com>
5025 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
5026 'gcc-lib'. Add comment about poorly-named variables.
5027 * aclocal.m4: Regenerate.
5028 * configure: Regenerate.
5030 2004-02-05 Paolo Carlini <pcarlini@suse.de>
5032 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
5033 Thousands-sep are always optional; thousands-sep are not allowed
5034 after the decimal_point.
5035 * testsuite/22_locale/money_get/get/char/12.cc: New.
5036 * testsuite/22_locale/money_get/get/char/13.cc: New.
5037 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
5038 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
5040 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
5041 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
5042 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
5043 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
5044 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
5045 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
5046 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
5047 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
5049 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
5051 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
5053 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
5055 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
5057 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
5058 it to decide whether FIONREAD should take an off_t or int argument.
5060 2004-02-05 Paolo Carlini <pcarlini@suse.de>
5062 * include/bits/stl_function.h: Minor formatting changes.
5064 2004-02-04 Zack Weinberg <zack@codesourcery.com>
5066 Revert previous change to config/abi/*/baseline_symbols.txt.
5068 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
5069 Zack Weinberg <zack@codesourcery.com>
5071 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
5073 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
5074 (__basic_file<char>::_M_open_mode): Delete.
5075 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
5077 * testsuite/27_io/basic_filebuf/close/char/9964.cc
5078 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
5079 Correct flags to filebuf::open calls.
5081 * config/abi/alpha-freebsd5/baseline_symbols.txt
5082 * config/abi/alpha-linux-gnu/baseline_symbols.txt
5083 * config/abi/hppa-linux-gnu/baseline_symbols.txt
5084 * config/abi/i386-freebsd4/baseline_symbols.txt
5085 * config/abi/i386-freebsd5/baseline_symbols.txt
5086 * config/abi/i486-linux-gnu/baseline_symbols.txt
5087 * config/abi/ia64-linux-gnu/baseline_symbols.txt
5088 * config/abi/mips-linux-gnu/baseline_symbols.txt
5089 * config/abi/sparc-freebsd5/baseline_symbols.txt
5090 * config/abi/sparc-linux-gnu/baseline_symbols.txt
5091 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
5092 Remove entry for __basic_file<char>::_M_open_mode.
5094 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
5096 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
5098 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
5100 * testsuite/performance/20_util/producer_consumer.cc: New.
5101 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
5103 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
5105 * testsuite/performance/20_util/allocator.cc: Move to..
5106 * testsuite/performance/20_util/allocator/insert.cc: ...here.
5107 * testsuite/performance/20_util/allocator_thread.cc: Move to...
5108 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
5109 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
5110 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
5112 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
5114 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
5115 * docs/html/faq/index.txt: Regenerate.
5117 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
5119 * include/ext/debug_allocator.h: _M_extra now stands for the
5120 number of extra objects instead of the number of extra bytes.
5121 (debug_allocator::allocate): Adjust.
5122 (debug_allocator::deallocate): Adjust.
5124 * include/ext/pool_allocator.h: Fix typo.
5126 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
5127 Benjamin Kosnik <bkoz@redhat.com>
5129 * testsuite/performance/20_util/allocator.cc: Add map,
5131 * testsuite/performance/20_util/allocator_thread.cc: Same.
5133 2004-02-03 Paolo Carlini <pcarlini@suse.de>
5135 * include/bits/basic_string.h (insert(iterator)): Remove,
5136 non-standard and already scheduled for removal.
5138 2004-02-03 Paolo Carlini <pcarlini@suse.de>
5140 * include/bits/stl_iterator_base_funcs.h: Minor formatting
5141 and indentation tweaks.
5142 * include/bits/stl_iterator_base_types.h: Likewise.
5143 * include/bits/stl_list.h: Likewise.
5144 * include/bits/stl_map.h: Likewise.
5145 * include/bits/stl_tempbuf.h: Likewise.
5147 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
5149 * include/bits/gslice.h, include/bits/gslice_array.h,
5150 include/bits/indirect_array.h, include/bits/mask_array.h,
5151 include/bits/slice_array.h, include/bits/stl_numeric.h,
5152 include/std/std_valarray.h: Update copyright years.
5154 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
5156 * include/bits/gslice.h (gslice): Document.
5157 * include/bits/gslice_array.h (gslice_array): Document.
5158 * include/bits/indirect_array (indirect_array): Document.
5159 * include/bits/mask_array (mask_array): Document.
5160 * include/bits/slice_array.h (slice,slice_array): Document.
5161 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
5162 adjacent_difference): Document
5163 * include/std/std_valarray.h (valarray): Document.
5165 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
5167 * docs/html/19_diagnostics/howto.html: Move verbose terminate
5169 * docs/html/18_support/howto.html: Here.
5170 * docs/html/documentation.html: Add reference here.
5172 2004-02-02 Paolo Carlini <pcarlini@suse.de>
5174 * config/locale/gnu/c++locale_internal.h: Remove prototypes
5175 of no longer used GLIBC thread locale functions.
5177 2004-02-02 Eric Christopher <echristo@redhat.com>
5178 Zack Weinberg <zack@codesourcery.com>
5180 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
5182 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
5183 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
5184 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
5185 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
5186 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
5187 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
5188 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
5189 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
5192 2004-02-02 Paolo Carlini <pcarlini@suse.de>
5194 * include/bits/stl_function.h: Additional minor tweaks.
5195 * include/bits/stl_multiset.h: Likewise.
5197 * include/bits/stl_queue.h: Minor tweaks.
5199 2004-02-02 Paolo Carlini <pcarlini@suse.de>
5201 PR libstdc++/13976 (continued)
5202 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
5203 Make the second parameter unnamed, to void unused parameter
5205 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
5207 2004-02-02 Paolo Carlini <pcarlini@suse.de>
5210 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
5211 Make the second parameter unnamed, to void unused parameter
5213 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
5214 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
5216 2004-02-01 Paolo Carlini <pcarlini@suse.de>
5218 * include/bits/stl_algo.h: Additional minor tweaks.
5219 * include/bits/stl_map.h: Likewise.
5220 * include/bits/stl_multimap.h: Likewise.
5221 * include/bits/stl_multiset.h: Likewise.
5222 * include/bits/stl_set.h: Likewise.
5223 * include/bits/stl_tree.h: Likewise.
5225 2004-02-01 Paolo Carlini <pcarlini@suse.de>
5227 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
5230 2004-02-01 Paolo Carlini <pcarlini@suse.de>
5232 * include/bits/stl_function.h: Additional minor tweaks.
5234 2004-02-01 Paolo Carlini <pcarlini@suse.de>
5236 * include/bits/deque.tcc: Wrap overlong lines, constify
5237 a few variables, reformat according to the coding standards.
5238 * include/bits/list.tcc: Likewise.
5239 * include/bits/stl_deque.h: Likewise.
5240 * include/bits/stl_function.h: Likewise.
5241 * include/bits/stl_iterator.h: Likewise.
5242 * include/bits/stl_iterator_base_funcs.h: Likewise.
5243 * include/bits/stl_iterator_base_types.h: Likewise.
5244 * include/bits/stl_list.h: Likewise.
5245 * include/bits/stl_map.h: Likewise.
5246 * include/bits/stl_multimap.h: Likewise.
5247 * include/bits/stl_multiset.h: Likewise.
5248 * include/bits/stl_relops.h: Likewise.
5249 * include/bits/stl_set.h: Likewise.
5251 2004-02-01 Paolo Carlini <pcarlini@suse.de>
5253 * include/bits/stl_bvector.h: Wrap overlong lines, constify
5254 a few variables, reformat according to the coding standards.
5255 * include/bits/stl_tree.h: Likewise.
5257 2004-01-31 Paolo Carlini <pcarlini@suse.de>
5259 * include/bits/stl_algo.h: Minor additional reformat, add
5261 * include/bits/stl_algobase.h: Add copyright year.
5263 2004-01-31 Paolo Carlini <pcarlini@suse.de>
5265 * include/bits/stl_algo.h: Wrap overlong lines, constify
5266 a few variables, reformat according to the coding standards.
5267 * include/bits/stl_algobase.h: Likewise.
5268 * include/bits/stl_heap.h: Likewise.
5270 2004-01-31 Paolo Carlini <pcarlini@suse.de>
5272 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
5274 * include/bits/basic_string.h: Fix two comments.
5276 2004-01-31 Per Bothner <per@bothner.com>
5278 * include/ext/mt_allocator.h
5279 (__mt_alloc::_S_thread_freelist_mutex): Guard with
5280 __GTHREAD_MUTEX_INIT.
5282 2004-01-31 Paolo Carlini <pcarlini@suse.de>
5284 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
5286 2004-01-30 Paolo Carlini <pcarlini@suse.de>
5288 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
5289 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
5290 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
5292 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
5294 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
5295 Don't use clear, but instead assign. Use insert.
5297 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
5299 * src/demangle.cc: Add instantiations.
5300 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
5301 * src/Makefile.in: Regenerate.
5303 2004-01-30 David Edelsohn <edelsohn@gnu.org>
5305 * src/allocator.cc: Protect _S_get_thread_id() and
5306 _S_thread_key_destr() with #ifdef __GTHREADS.
5308 2004-01-30 Paolo Carlini <pcarlini@suse.de>
5310 Reshuffle performance testsuite.
5311 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
5312 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
5313 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
5314 fstream_seek_write.cc, ifstream_extract_float.cc,
5315 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
5316 list_create_fill_sort.cc, map_create_fill.cc,
5317 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
5318 ofstream_insert_float.cc, ofstream_insert_int.cc,
5319 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
5320 wchar_t_out.cc: Split into...
5321 * testsuite/performance/20_util/allocator.cc: New.
5322 * testsuite/performance/20_util/allocator_map_thread.cc: New.
5323 * testsuite/performance/20_util/allocator_thread.cc: New.
5324 * testsuite/performance/21_strings/string_append: New.
5325 * testsuite/performance/22_locale/is_wchar_t.cc: New.
5326 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
5327 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
5328 * testsuite/performance/22_locale/wchar_t_in.cc: New.
5329 * testsuite/performance/22_locale/wchar_t_length.cc: New.
5330 * testsuite/performance/22_locale/wchar_t_out.cc: New.
5331 * testsuite/performance/23_containers/container_benchmark.cc: New.
5332 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
5333 * testsuite/performance/23_containers/map_create_fill.cc: New.
5334 * testsuite/performance/26_numerics/complex_norm.cc: New.
5335 * testsuite/performance/27_io/cout_insert_int.cc: New.
5336 * testsuite/performance/27_io/filebuf_copy.cc: New.
5337 * testsuite/performance/27_io/filebuf_sputc.cc: New.
5338 * testsuite/performance/27_io/fstream_seek_write.cc: New.
5339 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
5340 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
5341 * testsuite/performance/27_io/ifstream_getline.cc: New.
5342 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
5343 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
5345 2004-01-30 Paolo Carlini <pcarlini@suse.de>
5347 * include/bits/basic_string.tcc (_Rep::_S_create):
5348 Never allocate a string bigger than max_size(); always keep
5349 __capacity and __size in sync to avoid memory leaks at
5352 2004-01-30 Paolo Carlini <pcarlini@suse.de>
5354 * include/bits/basic_string.tcc (_S_construct(_InIterator,
5355 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
5356 the double loop, streamline.
5358 * include/bits/basic_string.tcc: Very minor tweaks.
5360 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
5362 * scripts/check_performance: Only compile with $THREAD_FLAG
5363 when test is marked to require it. Allow multiple
5364 compilations/executions of marked tests.
5365 * testsuite/testsuite_performance.h (report_performance):
5366 Report dynamic thread support status.
5367 (report_header): Likewise.
5368 * testsuite/performance/allocator.cc: Stabilize iteration
5369 count. Support more allocators. Mark each allocator test to
5370 run and report independently.
5371 * testsuite/performance/allocator_map_thread.cc: Likewise.
5372 * testsuite/performance/allocator_thread.cc: Likewise.
5374 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
5376 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
5377 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
5378 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
5379 std::get_temporary_buffer() instead of duplicating its code.
5380 Update to C++STYLE conventions.
5381 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
5382 new() instead of std::malloc().
5383 (return_temporary_buffer): Use ::operator delete() instead of
5386 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
5388 * include/bits/allocator.h: Temporary switch to new_allocator as
5389 the default to unjam bootstraps.
5391 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
5393 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
5394 * include/Makefile.in: Regenerate.
5395 * include/bits/allocator_traits.h: Remove.
5396 * include/bits/allocator.h: Remove allocator_traits.h include, and
5398 (allocator): Empty base class, inherit from the underlying allocator.
5399 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
5400 * src/allocator.cc: ...here. New. For the underlying allocators.
5401 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
5402 * config/linker-map.gnu: Remove __pool_alloc bits.
5403 * src/Makefile.am (sources): Add allocator.cc.
5404 * src/Makefile.in: Regenerate.
5405 * testsuite/20_util/allocator/1.cc: Split second test into...
5406 * testsuite/20_util/allocator/8230.cc: ...this.
5407 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
5408 typedef to use std::allocatore. Format.
5409 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
5411 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
5412 __throw_bad_alloc calls. Don't include <memory>.
5413 * include/ext/malloc_allocator.h: Remove <memory> include.
5414 * include/ext/new_allocator.h (new_allocator): Same.
5415 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
5416 declaration. Switch __alloc to _Alloc.
5417 * include/ext/hashtable.h: Remove __alloc.
5418 * include/backward/alloc.h: Only inject allocator, not
5419 implementation details.
5421 * include/ext/mt_allocator.h: Replace free with delete.
5423 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
5425 * src/globals_io.cc: Change to __gnu_internal namespace.
5426 * src/globals_locale.cc: Same.
5427 * src/locale_init.cc: Same.
5428 * src/ios_init.cc: Same.
5430 2004-01-28 Stefan Olsson <stefan@snon.net>
5432 * include/ext/mt_allocator.h: Replaced all malloc() calls with
5433 operator new(). Added support for the env variable
5434 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
5435 one in allocate() as well). Fix typos.
5437 2004-01-28 Paolo Carlini <pcarlini@suse.de>
5439 * include/bits/basic_string.h (_S_create(size_t,
5440 const _Alloc&): Change signature to take two size_type
5442 * include/bits/basic_string.tcc (_S_construct(_InIterator,
5443 _InIterator, const _Alloc&, input_iterator_tag)): Update
5445 (_S_construct(_InIterator, _InIterator, const _Alloc&,
5446 forward_iterator_tag)): Likewise.
5447 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
5448 (_M_mutate(size_type, size_type, size_type)): Don't
5449 implement the exponential growth policy, demand it to
5450 _S_create, update call and simplify.
5451 (_M_clone(const _Alloc&, size_type)): Likewise.
5452 (_S_create(size_type, size_type, const _Alloc&)): Implement
5453 the growth policy, simplify otherwise.
5455 * include/bits/basic_string.h (_Rep::operator[]): Tweak
5456 signature to take a size_type, consistently with the other
5459 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
5461 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
5462 delete declarations, add include and test variable.
5464 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
5466 * include/bits/codecvt.h, include/bits/locale_facets.h,
5467 include/bits/postypes.h, include/bits/stl_bvector.h,
5468 include/bits/stl_multiset.h, include/bits/stl_set.h,
5469 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
5470 include/std/std_complex.h: Document.
5472 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
5475 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
5476 iword/pword selector.
5477 (ios_base::iword, ios_base::pword): Use it.
5478 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
5479 iword or pword member on alloc failure.
5480 * testsuite/27_io/ios_base/storage/11584.cc: New test.
5482 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
5483 PJ Darcy <darcypj@us.ibm.com>
5485 * configure.host: Add support for *-tpf.
5486 * crossconfig.m4: Likewise.
5487 * configure: Regenerate.
5488 * config/os/tpf: New directory.
5489 * config/os/tpf/os_defines.h: New file.
5490 * config/os/tpf/ctype_base.h: Likewise.
5491 * config/os/tpf/ctype_inline.h: Likewise.
5492 * config/os/tpf/ctype_noninline.h: Likewise.
5494 2004-01-27 Paolo Carlini <pcarlini@suse.de>
5497 * include/bits/sstream.tcc: Guard use of extern template.
5499 2004-01-27 Paolo Carlini <pcarlini@suse.de>
5501 * include/bits/basic_string.tcc
5502 (basic_string(const basic_string&, size_type, size_type),
5503 basic_string(const basic_string&, size_type, size_type,
5504 const _Alloc&)): Avoid unnecessarily constructing iterators.
5506 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5508 * config/locale/generic/c_locale.cc: Fix throw messages
5509 to use the __N marker.
5510 * config/locale/gnu/c_locale.cc: Likewise.
5511 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
5513 * docs/html/17_intro/C++STYLE: Likewise.
5514 * include/bits/basic_ios.tcc: Likewise.
5515 * include/bits/fstream.tcc: Likewise.
5516 * include/bits/vector.tcc: Likewise.
5517 * include/ext/ropeimpl.h: Likewise.
5518 * include/std/std_bitset.h: Likewise.
5519 * src/ios.cc: Likewise.
5520 * src/locale.cc: Likewise.
5521 * src/localename.cc: Likewise.
5523 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5525 * include/bits/basic_string.h (_M_replace_aux): Use the
5526 __N marker in throw message.
5527 * include/bits/basic_string.tcc (assign(const _CharT*,
5528 size_type), insert(size_type, const _CharT*, size_type),
5529 replace(size_type, size_type, const _CharT*, size_type),
5530 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
5533 * include/bits/basic_string.h, include/bits/basic_string.tcc:
5534 Fold overlong lines, minor formatting changes.
5536 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5538 * include/bits/basic_string.h (replace(iterator, iterator,
5539 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
5540 (replace(iterator, iterator, const _CharT*)): Ditto.
5541 (replace(iterator, iterator, const _CharT*, size_type)):
5542 Add missing _GLIBCXX_DEBUG_PEDASSERT.
5544 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5546 * include/bits/basic_string.tcc (replace(size_type,
5547 size_type, const _CharT*, size_type)): Implement optimized
5548 in-place algorithm for non-overlapping ranges.
5549 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
5550 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
5552 * include/bits/basic_string.tcc (insert(size_type,
5553 const _CharT*, size_type)): Tweak slightly.
5555 2004-01-26 Andreas Schwab <schwab@suse.de>
5557 * config/locale/gnu/monetary_members.cc: Restore locale before
5558 rethrowing exception.
5560 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5562 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
5564 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
5567 * include/bits/basic_string.tcc: Very minor tweaks.
5569 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5571 * testsuite/performance/string_append.cc: Increase number
5574 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5576 * include/bits/basic_string.h (erase(size_type, size_type),
5577 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
5578 instead, thus avoiding redundant check for length_error.
5580 * include/bits/basic_string.h: Tweak some comments.
5582 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5584 * include/bits/basic_string.tcc (operator+(const _CharT*,
5585 const basic_string&)): No need to go through the append
5586 taking two iterators.
5588 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5590 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
5591 Revert last change to use std::min: machine language is worse.
5592 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
5593 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5594 (find_last_not_of(_CharT, size_type)): Ditto.
5596 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
5597 size_type)): Discard the value returned by _M_check.
5598 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
5599 (append(const basic_string&, size_type, size_type)): Ditto.
5600 (copy(_CharT*, size_type, size_type)): Ditto.
5601 (compare(size_type, size_type, const basic_string&)): Ditto.
5602 (compare(size_type, size_type, const basic_string&,
5603 size_type, size_type)): Ditto.
5604 (compare(size_type, size_type, const _CharT*)): Ditto.
5605 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5607 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5609 * include/bits/basic_string.h (insert(size_type,
5610 const basic_string&, size_type, size_type)): Define inline here.
5611 * include/bits/basic_string.tcc (insert(size_type,
5612 const basic_string&, size_type, size_type)): Move inline.
5614 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5616 * include/bits/basic_string.h (assign(const basic_string&,
5617 size_type, size_type)): Define inline here.
5618 (replace(size_type, size_type, const basic_string&,
5619 size_type, size_type)): Ditto.
5620 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5621 _InputIterator, __false_type)): Only declare.
5622 (_M_replace(iterator, iterator, _InputIterator,
5623 _InputIterator)): Remove.
5624 * include/bits/basic_string.tcc (assign(const basic_string&,
5625 size_type, size_type)): Move inline.
5626 (replace(size_type, size_type, const basic_string&,
5627 size_type, size_type)): Ditto.
5628 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5629 _InputIterator, __false_type)): Define, now does also what
5630 _M_replace did before.
5631 * src/string-inst.cc (_M_replace): Don't instantiate.
5633 * include/bits/basic_string.tcc (find(const _CharT*,
5634 size_type, size_type)): Tidy.
5635 (rfind(_CharT, size_type)): Ditto.
5636 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
5637 (find_first_not_of(_CharT, size_type)): Ditto.
5638 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5639 (find_last_not_of(_CharT, size_type)): Ditto.
5641 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5644 * include/debug/bitset (operator|=): Fix typo.
5645 * testsuite/23_containers/bitset/operations/13838.cc: New.
5647 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5649 * include/bits/basic_string.tcc (insert(size_type,
5650 const _CharT*, size_type __n)): Fix length_error check.
5651 (replace(size_type, size_type, const _CharT*, size_type):
5652 Ditto; call _M_replace_safe.
5653 (_M_replace_aux(size_type, size_type, size_type, _CharT):
5654 Fix length_error check.
5655 (_M_replace(iterator, iterator, _InputIterator,
5656 _InputIterator)): Ditto, tweak.
5657 (_M_replace_safe(size_type, size_type, const _CharT*,
5658 size_type)): Remove length_error check.
5660 * include/bits/basic_string.tcc (append(const basic_string&),
5661 append(const basic_string&, size_type, size_type)): Tweak
5664 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
5665 size_type)): If __n == 0 don't call traits::copy.
5667 2004-01-23 Stefan Olsson <stefan@snon.net>
5669 * include/ext/mt_allocator.h: Reduce lock contention.
5671 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5674 * include/bits/fstream.tcc (underflow): Remove unused
5676 * include/bits/streambuf_iterator.h (equal): Ditto.
5677 * include/bits/locale_facets.h (_M_convert_from_char):
5680 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5683 * config/linker-map.gnu (nan): Delete.
5684 * libmath/mathconf.h (NAN, nan): Delete.
5685 * linkage.m4 (nan): Don't check for it.
5686 * libmath/nan.c: Delete file.
5688 * config.h.in, configure: Regenerate.
5690 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5692 * include/bits/basic_string.h (push_back(_CharT)):
5693 Call _M_replace_aux.
5694 (insert(size_type, const basic_string&)): Trivial tweak.
5695 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
5696 (insert(iterator, _CharT)): Ditto.
5697 (erase(size_type, size_type)): Ditto.
5698 (erase(iterator)): Ditto.
5699 (erase(iterator, iterator)): Ditto.
5700 (replace(size_type, size_type, size_type, _CharT)): Ditto.
5702 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
5705 * testsuite/performance/allocator_map_thread.cc: New test.
5707 2004-01-22 Paolo Carlini <pcarlini@suse.de>
5709 * include/bits/locale_facets.tcc
5710 (money_put::do_put(..., long double)): Use the basic_string
5711 constructor for char arrays, not that for C-strings, to pass
5712 __digits to do_put(..., const string_type&): __ws isn't
5715 2004-01-22 Paolo Carlini <pcarlini@suse.de>
5717 * include/bits/basic_string.h (_M_replace_safe): Change
5718 signatures to take size_types and const _CharT*.
5719 (_M_replace_aux): Likewise, takes size_types instead of
5721 (append(size_type, _CharT)): Update call.
5722 (assign(size_type, _CharT)): Ditto.
5723 (replace(iterator, iterator, size_type, _CharT)): Ditto.
5724 (_M_replace_dispatch(iterator, iterator, _Integer,
5725 _Integer, __true_type)): Ditto.
5726 * include/bits/basic_string.tcc (assign(const _CharT*,
5728 (insert(size_type, const _CharT*, size_type)): Ditto.
5729 (replace(size_type, size_type, const _CharT*,
5731 (_M_replace(iterator, iterator, _InputIterator,
5732 _InputIterator)): Ditto.
5733 (append(const basic_string&)): Ditto.
5734 (append(const basic_string&, size_type, size_type): Ditto.
5735 (append(const _CharT*, size_type): Ditto.
5736 (_M_replace_safe, _M_replace_safe): Change definitions
5737 accordingly, simplify.
5738 * string-inst.cc (_M_replace_safe): Don't instantiate.
5740 2004-01-21 Paolo Carlini <pcarlini@suse.de>
5742 * include/bits/basic_string.tcc (append(const basic_string&)):
5743 Revert previous change.
5744 (append(const basic_string&, size_type, size_type)): Revert
5745 previous change, use _M_check and _M_limit.
5747 2004-01-21 Paolo Carlini <pcarlini@suse.de>
5749 * include/bits/basic_string.h (_M_check): Change to return
5750 a checked __pos and take an additional const char* argument.
5751 (_M_fold): Rename to _M_limit, change to return a size_type,
5752 corresponding to the __off limited to the actual length.
5753 (insert(size_type, size_type, _CharT)): Update call, call
5755 (insert(iterator, _CharT)): Call replace(iterator, iterator,
5756 size_type, _CharT) instead.
5757 (erase(size_type, size_type)): Update calls.
5758 (replace(size_type, size_type, size_type, _CharT)): Ditto.
5759 (substr(size_type, size_type)): Use _M_check.
5760 * include/bits/basic_string.tcc (basic_string(const basic_string&,
5761 size_type, size_type)): Update calls.
5762 (basic_string(const basic_string&, size_type, size_type,
5763 const _Alloc&)): Ditto.
5764 (assign(const basic_string&, size_type, size_type)): Use the
5765 new _M_check and _M_limit.
5766 (insert(size_type, const basic_string&, size_type, size_type):
5768 (insert(size_type, const _CharT*, size_type)): Ditto.
5769 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
5770 (replace(size_type, size_type, const basic_string&,
5771 size_type, size_type)): Ditto.
5772 (append(const basic_string&)): Ditto.
5773 (append(const basic_string&, size_type, size_type)): Ditto.
5774 (copy(_CharT*, size_type, size_type)): Ditto.
5775 (compare(size_type, size_type, const basic_string&)): Ditto.
5776 (compare(size_type, size_type, const basic_string&,size_type,
5778 (compare(size_type, size_type, const _CharT*)): Ditto.
5779 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5781 2004-01-19 Stefan Olsson <stefan@snon.net>
5783 * include/ext/mt_allocator.h: If a thread, when it dies, still has
5784 memory on it's freelist this memory is not returned to global
5785 list. Simplification of deallocate so that memory is always
5786 returned to the calling thread id's freelist instead of to
5787 global. Fix typos. Add volatile where appropriate.
5789 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
5791 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
5792 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
5793 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
5795 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5797 * src/debug.cc: Make sure all the names are prefixed with
5798 double (or single) underscore.
5800 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5802 * src/debug.cc: Trivial formatting change.
5804 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5806 * include/bits/basic_string.tcc (_S_construct(size_type,
5807 _CharT, const _Alloc&)): Remove redundant try/catch.
5808 (_M_mutate(size_type, size_type, size_type)): Ditto.
5809 (_M_clone(const _Alloc&, size_type)): Ditto.
5811 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5813 * include/bits/basic_string.h (c_str()): Simplify, due to
5814 21.3.4 the internal representation is always kept null-terminated.
5815 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
5816 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
5817 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
5820 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5822 * include/bits/basic_string.h (append(size_type, _CharT)):
5823 Moved inline, just call _M_replace_aux, no source iterators at
5824 risk of being clobbered.
5825 (assign(size_type, _CharT)): Call directly _M_replace_aux.
5826 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5827 input_iterator_tag)): Remove fifth unused argument.
5828 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5829 _InputIterator, __false_type)): Update call.
5830 * include/bits/basic_string.tcc (replace(size_type, size_type,
5831 const _CharT*, size_type)): Update call.
5832 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
5833 throw string literal.
5834 (_M_replace_safe(iterator, iterator, _ForwardIterator,
5835 _ForwardIterator)): Likewise.
5836 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5837 input_iterator_tag)): Remove fifth unused argument.
5838 (append(size_type __n, _CharT __c)): Move inline.
5839 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
5840 const C*, const C*, input_iterator_tag)): Remove fifth unused
5843 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
5845 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
5846 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
5848 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
5850 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
5853 2004-01-15 Stefan Olsson <stefan@snon.net>
5855 * include/ext/mt_allocator.h: Reuse thread id's as soon as
5856 possible by changing the behaviour of thread_freelist to do
5857 push_front when threads die instead of push_back.
5859 2004-01-14 Paolo Carlini <pcarlini@suse.de>
5861 * include/bits/locale_facets.h (struct __numpunct_cache):
5862 Add member _M_grouping_size, caching the length of _M_grouping.
5863 (__numpunct_cache<>::_M_cache): Assign the latter.
5864 (__verify_grouping): Move declaration...
5865 * include/bits/locale_facets.tcc (__verify_grouping):
5866 ... here, change signature to take a const char* and a size_t
5867 for the grouping; not a template anymore.
5868 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
5869 Likewise change signature and tweak consistently.
5870 (num_get::_M_extract_float, num_get::_M_extract_int,
5871 num_put::_M_insert_int, num_put::_M_insert_float,
5872 money_get::do_get(string_type&), money_get::do_put(string_type)):
5874 * config/locale/generic/numeric_members.cc
5875 (numpunct<>::_M_initialize_numpunct): Assign the new member.
5876 * config/locale/gnu/numeric_members.cc
5877 (numpunct<>::_M_initialize_numpunct): Likewise.
5878 * src/locale-inst.cc (__add_grouping): Tweak signature.
5879 (__verify_grouping): Don't instantiate, not a template anymore.
5881 * include/bits/locale_facets.h: Rename _M_truename_len ->
5882 _M_truename_size, _M_falsename_len -> _M_falsename_size.
5883 * include/bits/locale_facets.tcc: Likewise.
5884 * config/locale/generic/numeric_members.cc: Likewise.
5885 * config/locale/gnu/numeric_members.cc: Likewise.
5887 2004-01-14 Stefan Olsson <stefan@snon.net>
5889 * include/ext/mt_allocator.h: Fixups.
5890 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
5891 * testsuite/performance/allocator_thread.cc: Same.
5893 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
5895 * testsuite/performance/ifstream_extract_float.cc: Add higher
5897 * testsuite/performance/ofstream_insert_float.cc: Same.
5899 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5901 * src/locale-misc-inst.cc (__convert_from_v(long),
5902 __convert_from_v(unsigned long), __convert_from_v(long long),
5903 __convert_from_v(unsigned long long)): Remove, unused.
5905 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
5907 * testsuite/performance/ifstream_extract_float.cc: New.
5908 * testsuite/performance/ofstream_insert_float.cc: Float generation
5911 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
5912 * 20_util/auto_ptr/1.cc: ...this.
5913 * 20_util/auto_ptr/2.cc: Same.
5914 * 20_util/auto_ptr/3.cc: Same.
5915 * 20_util/auto_ptr/3946.cc: Same.
5916 * 20_util/auto_ptr/4.cc: Same.
5917 * 20_util/auto_ptr/5.cc: Same.
5918 * 20_util/auto_ptr/6.cc: Same.
5919 * 20_util/auto_ptr/7.cc: Same.
5920 * 20_util/auto_ptr/assign_neg.cc
5921 * 20_util/pairs.cc: Break into...
5922 * 20_util/pair/1.cc: ...this.
5923 * 20_util/pair/2.cc: Same.
5924 * 20_util/pair/3.cc: Same.
5925 * 20_util/pair/4.cc: Same.
5927 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5929 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
5930 Set correctly just basefield, the only group that matters.
5932 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5934 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
5935 (_Rope_rep_base): Inherit directly from the rope allocator;
5936 use rebinding instead of _Alloc_traits; pick up data member
5937 from _Rope_rep_alloc_base.
5938 (_Rope_alloc_base): Eliminate.
5939 (_Rope_base): Inherit directly from the rope allocator; use
5940 rebinding instead of _Alloc_traits; pick up data member from
5942 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
5943 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
5945 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5948 * include/bits/basic_string.tcc (compare(size_type, size_type,
5949 const _CharT*, size_type)): Implement correctly the resolution
5950 of DR 5: basically, s is a char array, -not- a C string.
5951 * include/bits/basic_string.h: Tweak some comments.
5952 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
5953 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
5955 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
5957 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
5960 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5962 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
5964 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
5967 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5969 * include/bits/locale_facets.h (struct __numpunct_cache):
5970 Add members _M_truename_len and _M_falsename_len, caching
5971 the lengths of _M_truename and _M_falsename.
5972 (__numpunct_cache<>::_M_cache): Assign the latter.
5973 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
5974 num_put::do_put(bool)): Use the new members, thus avoiding
5975 computing string lengths again and again.
5976 * config/locale/generic/numeric_members.cc
5977 (numpunct<>::_M_initialize_numpunct): Assign the new members.
5978 * config/locale/gnu/numeric_members.cc
5979 (numpunct<>::_M_initialize_numpunct): Likewise.
5981 2004-01-12 Mark Mitchell <mark@codesourcery.com>
5983 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
5984 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
5986 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
5987 and remove Cygwin XFAIL.
5988 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
5989 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
5990 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
5991 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
5993 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
5994 * testsuite/27_io/objects/char/7.cc: Likewise.
5995 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
5996 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
5997 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
5999 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
6001 * include/std/std_complex.h (std::complex<>::real): Return a
6002 reference. Add non-const overload.
6003 (std::complex<>::real): Likewise.
6004 (std::real): Likewise.
6005 (std::imag): Likewise.
6006 (std::operator+): Tidy.
6007 (std::operator-): Likewise.
6008 (std::operator*): Likewise.
6009 (std::operator/): Likewise.
6010 (std::operator>>): Likewise.
6012 2004-01-11 Paolo Carlini <pcarlini@suse.de>
6015 * include/bits/fstream.tcc (imbue): Exploit the external
6016 buffer to imbue 'on the fly' a new locale and convert its
6017 remainder with the new codecvt facet.
6018 (underflow): Tweak slightly to deal with this special case.
6019 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
6020 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
6021 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
6022 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
6023 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
6025 2004-01-10 Paolo Carlini <pcarlini@suse.de>
6027 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
6030 2004-01-10 Paolo Carlini <pcarlini@suse.de>
6033 * include/bits/locale_classes.h (class locale): Fix category
6035 * testsuite/22_locale/locale/13630.cc: Add.
6037 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
6039 * include/bits/locale_facets.h: Make a name really dependent. This
6040 will be needed when Core Issue 224 is implemented.
6042 2004-01-09 Paolo Carlini <pcarlini@suse.de>
6044 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
6045 * testsuite/performance/allocator_thread.cc: Likewise.
6047 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
6049 * crossconfig.m4: Add LFS, io bits to linux cross config.
6050 * acconfig.h: Remove obsolete bits, reorder.
6051 * config.h.in: Regenerate.
6055 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
6057 * include/bits/stl_list.h:
6058 * include/bits/list.tc:
6060 Performance enhancements for destructor, push_front(),
6061 push_back(), pop_front(), pop_back(), sort()
6062 Eliminated static_casts where possible.
6063 Moved code out of header files into new src/list.cc
6064 implementation file for library where possible.
6065 Remove inheritance from iterator class and create separate
6066 classes for non-constant and constant iterators.
6067 * include/bits/stl_tree.h (_Rb_tree class):
6069 Only erase contents in destructor.
6070 Eliminate unnecessary initialization in assignment operator.
6071 Optimize for the nominal case by not checking whether
6072 container is empty in clear().
6073 Re-order test in _M_insert() to improve performance.
6074 Move initialization of new node's left & right pointers to
6075 src/tree.cc to where new node's colour is initialized
6076 and to reduce the amount of inline code.
6077 Use _M_leftmost() and _M_end() to improve readability where
6079 Create separate classes for non-constant and constant
6080 iterators to clarify code, avoid extra template parameters and
6081 casting away constness.
6083 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
6085 * src/Makefile.am (sources): Add list.cc, tree.cc.
6086 * src/stl_tree.cc: Move to...
6087 * src/tree.cc: ...here.
6089 * config/linker-map.gnu: Tweaks.
6090 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
6091 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
6093 * bits/stl_vector.h: Column wrap comments.
6095 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
6097 (re-open) PR libstdc++/12658
6098 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
6099 (locale::global): Likewise.
6101 2004-01-07 Paolo Carlini <pcarlini@suse.de>
6103 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
6104 Remove redundant #include.
6105 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
6106 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
6107 re-enable normal testing.
6108 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
6110 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
6111 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
6113 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
6115 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
6117 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
6119 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
6121 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
6123 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
6125 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
6126 More properly, #include <locale>.
6127 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
6128 Remove redundant #include.
6129 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
6130 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
6131 redundant DejaGnu directive.
6132 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
6135 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
6136 Stefan Olsson <stefan@snon.net>
6138 * scripts/check_performance: Use -pthread.
6139 * testsuite/performance/allocator.cc: Tweaks, add list.
6140 * testsuite/performance/allocator_thread.cc: New.
6142 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
6144 * include/bits/locale_facets.h: Document public classes and
6146 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
6149 2004-01-06 Paolo Carlini <pcarlini@suse.de>
6151 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
6152 Remove redundant #includes.
6153 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
6155 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
6157 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
6158 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
6159 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
6160 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
6161 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
6162 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
6163 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
6164 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
6165 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
6166 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
6167 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
6168 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
6169 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
6170 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
6171 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
6173 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
6175 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
6177 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
6179 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
6181 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
6182 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
6183 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
6185 2004-01-04 Paolo Carlini <pcarlini@suse.de>
6187 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
6188 Remove redundant #includes.
6189 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
6191 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
6193 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
6195 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
6197 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
6199 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
6201 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
6203 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
6205 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
6207 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
6209 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
6211 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
6214 2004-01-04 Mark Mitchell <mark@codesourcery.com>
6217 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
6219 * testsuite/27_io/basic_fstream/4.cc: Likewise.
6220 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
6221 * testsuite/27_io/basic_ios/4.cc: Likewise.
6222 * testsuite/27_io/basic_iostream/4.cc: Likewise.
6223 * testsuite/27_io/basic_istream/4.cc: Likewise.
6224 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
6225 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
6226 * testsuite/27_io/basic_ostream/4.cc: Likewise.
6227 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
6228 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
6229 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
6231 2004-01-04 Paolo Carlini <pcarlini@suse.de>
6233 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
6234 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
6235 always use double underscored names.
6236 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
6238 * include/bits/locale_facets.h (struct __numpunct_cache):
6239 Dimension _M_atoms_out and _M_atoms_in one position smaller.
6240 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out