1 2004-11-22 Benjamin Kosnik <bkoz@redhat.com>
3 * include/bits/locale_facets.h (isspace, isprint, isupper,
4 islower, isalpha, isdigit, ispunct, isxdigit, isalnum, isgraph,
5 toupper, tolower): Add doxygen markup.
6 (codecvt_byname, ctype_byname, numpunct_byname, collate_byname,
7 time_get_byname, time_put_byname, moneypunct_byname,
8 messages_byname): Same.
9 * include/std/std_fstream.h: Remove superfluous markup.
10 * include/std/std_sstream.h: Same.
11 * include/std/std_streambuf.h: Same.
12 * include/ext/enc_filebuf.h: Adjust markup.
13 * include/ext/stdio_filebuf.h: Same.
14 * include/ext/stdio_sync_filebuf.h: Same.
15 * include/bits/codecvt.h: Same.
16 * config/os/gnu-linux/ctype_base.h: Same.
17 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
18 * include/tr1/array: Add markup.
19 * include/tr1/tuple: Same.
21 * docs/doxygen/run_doxygen: Print arguments.
23 * docs/doxygen/user.cfg.in: Tweaks.
25 2004-11-19 Jonathan Wakely <redi@gcc.gnu.org>
27 * include/bits/basic_string.h, include/bits/locale_classes.h,
28 include/bits/valarray_after.h, include/bits/valarray_before.h,
29 include/ext/stdio_sync_filebuf.h, include/std/std_algorithm.h,
30 include/std/std_functional.h, include/std/std_memory.h,
31 include/std/std_numeric.h: Doxygen fixes.
33 2004-11-19 Paolo Carlini <pcarlini@suse.de>
35 * testsuite/22_locale/time_get/get_date/char/1.cc: In the checks
36 use, more correctly (and consistently with other testcases) the
37 return value of the facet (the iterator arguments are by value).
38 * testsuite/22_locale/time_get/get_date/char/12791.cc: Likewise.
39 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Likewise.
40 * testsuite/22_locale/time_get/get_date/wchar_t/12791.cc: Likewise.
41 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Likewise.
42 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
43 * testsuite/22_locale/time_get/get_time/char/1.cc: Likewise.
44 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Likewise.
45 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
46 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
47 * testsuite/22_locale/time_get/get_year/char/1.cc: Likewise.
48 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Likewise.
50 2004-11-19 Jonathan Wakely <redi@gcc.gnu.org>
52 * Makefile.am (doxygen, doxygen-maint, doxygen-man): Remove extra '$'
53 from host_alias variable.
54 * Makefile.in: Regenerate.
56 2004-11-19 Chris Jefferson <chris@bubblescope.net>
58 * include/bits/stl_list.h (list::back, list::back const):
59 Don't decrement temporary.
61 2004-11-19 Paolo Carlini <pcarlini@suse.de>
63 * include/bits/stl_deque.h (deque::front, deque::front const,
64 deque::back, deque::back const): Slightly tweak for stylistic
67 2004-11-18 Paolo Carlini <pcarlini@suse.de>
69 * testsuite/26_numerics/numeric/sum_diff.cc: Use VERIFY.
70 * testsuite/ext/array_allocator/1.cc: Likewise.
71 * testsuite/ext/array_allocator/2.cc: Likewise.
72 * testsuite/ext/array_allocator/3.cc: Likewise.
73 * testsuite/ext/enc_filebuf/char/13598.cc: Likewise.
75 2004-11-18 Paolo Carlini <pcarlini@suse.de>
77 * include/bits/locale_facets.tcc (num_get<>::do_get(void*&)):
78 If the failbit is set, don't set it again.
79 (money_get<>::_M_extract): Minor stylistic tweak: consistently
80 with the other functions, take care of eofbit at the end.
82 2004-11-18 Paolo Carlini <pcarlini@suse.de>
84 DR 434. bitset::to_string() hard to use [Ready]
85 * include/std/std_bitset.h (to_string): Add three overloads, taking
86 fewer template arguments.
87 * docs/html/ext/howto.html: Add an entry for DR 434.
88 * testsuite/23_containers/bitset/to_string/1.cc: New.
90 2004-11-17 Paolo Carlini <pcarlini@suse.de>
92 * include/bits/istream.tcc (getline(basic_istream<>&, basic_string<>&,
93 _CharT)): Remove temporary kludge for libstdc++/15002.
94 * include/std/std_streambuf.h (class basic_streambuf): Declare
95 getline(basic_istream<>&, basic_string<>&, _CharT) as friend.
96 * include/bits/basic_string.h (getline(basic_istream<>&,
97 basic_string<>&, _CharT)): Declare optimized specializations for
98 char and wchar_t, using protected members of basic_streambuf.
99 * src/istream.cc: Define the latter.
101 2004-11-16 Jonathan Wakely <redi@gcc.gnu.org>
103 * docs/html/19_diagnostics/howto.html: Document change from
104 _GLIBCPP_CONCEPT_CHECKS to _GLIBCXX_CONCEPT_CHECKS in 3.4.
106 2004-11-16 Matthias Klose <doko@debian.org>
108 * docs/doxygen/user.cfg.in: Set HAVE_DOT to NO.
110 2004-11-16 Matthias Klose <doko@debian.org>
112 * Makefile.am (doxygen, doxygen-maint, doxygen-man): Use host_alias
113 instead of build_alias.
114 * docs/doxygen/run_doxygen: Likewise.
115 * docs/doxygen/user.cfg.in: Likewise.
116 * Makefile.in: Regenerate.
118 2004-11-15 Paolo Carlini <pcarlini@suse.de>
120 * include/bits/streambuf.tcc (__copy_streambufs): Provide
121 a generic version of the function, not using the protected
122 members of basic_streambuf.
123 * include/std/std_streambuf.h (__copy_streambufs): Declare
124 optimized specializations for char and wchar_t.
125 * src/streambuf.cc: New file, define the latter.
126 * src/Makefile.am: Add.
127 * src/Makefile.in: Regenerate.
129 2004-11-15 Matthias Klose <doko@debian.org>
131 * docs/doxygen/run_doxygen: Add --build_alias option,
132 substitute it in docs/doxygen/user.cfg.in.
133 * docs/doxygen/user.cfg.in: Use build_alias.
134 * Makefile.am: Pass --build_alias to run_doxygen
135 * Makefile.in: Regenerate.
137 2004-11-15 Benjamin Kosnik <bkoz@redhat.com>
139 * testsuite/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.4.
141 2004-11-15 Paolo Carlini <pcarlini@suse.de>
143 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 33.
145 2004-11-14 Paolo Carlini <pcarlini@suse.de>
147 * include/bits/streambuf_iterator.h (istreambuf_iterator::_M_get):
148 Slightly tweak for clarity (also leads to measurably better code).
150 2004-11-12 Andrew Pinski <pinskia@physics.uc.edu>
153 * testsuite/lib/libstdc++.exp: Set LC_ALL and LANG to C.
155 2004-11-09 Paolo Carlini <pcarlini@suse.de>
157 * include/bits/locale_facets.tcc (time_get<>::do_get_weekday,
158 time_get<>::do_get_monthname): Absolutely avoid dereferencing
161 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
164 2004-11-08 Benjamin Kosnik <bkoz@redhat.com>
165 Doug Gregor <dgregor@cs.indiana.edu>
168 * src/debug.cc : Just use one mutex.
170 2004-11-08 Benjamin Kosnik <bkoz@redhat.com>
172 * configure.ac (libtool_VERSION): To 6:4:0.
173 * configure: Regenerate.
175 * config/linker-map.gnu: Slide new symbols into GLIBCXX_3.4.4.
177 * docs/doxygen/user.cfg.in: Add more extension files.
179 2004-11-08 Paolo Carlini <pcarlini@suse.de>
181 * include/bits/streambuf_iterator.h (class istreambuf_iterator):
182 Consistently use _M_c to cache the current char, i.e., not only
183 when operator++(int) is involved; change _M_c to mutable.
184 (_M_get()): Always save the return value of _M_sbuf->sgetc() into
186 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Fix
187 (long standing) typo.
188 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
189 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
190 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
192 2004-11-08 Paolo Carlini <pcarlini@suse.de>
194 * include/bits/istream.tcc (getline(char_type*, streamsize,
195 char_type), ignore(streamsize), ignore(streamsize, int_type)):
196 Restore a generic version of the functions, not using the
197 protected members of basic_streambuf.
198 * include/std/std_istream.h (getline(char_type*, streamsize,
199 char_type), ignore(streamsize), ignore(streamsize, int_type)):
200 Declare optimized specializations for char and wchar_t.
201 * src/istream.cc: New file, define the latter.
202 * src/Makefile.am: Add.
203 * src/Makefile.in: Regenerate.
205 2004-11-07 Paolo Carlini <pcarlini@suse.de>
207 * testsuite/performance/27_io/ifstream_getline-2.cc: New.
209 2004-11-05 Benjamin Kosnik <bkoz@redhat.com>
213 * docs/doxygen/filter: Remove.
214 * docs/doxygen/filter.sed: Remove.
215 * docs/doxygen/mainpage.html: Add link to functions.
216 * docs/doxygen/run_doxygen: Changes due to new source filtering.
217 * docs/doxygen/user.cfg.in: Update to doxygen 1.3.9.1, tweak.
218 * include/bits/allocator.h: Tweaks for doxygen.
219 * include/bits/char_traits.h: Same.
220 * include/bits/codecvt.h: Same.
221 * include/bits/concurrence.h: Same.
222 * include/bits/locale_facets.h: Same.
223 * include/ext/array_allocator.h: Same.
224 * include/ext/debug_allocator.h: Same.
225 * include/ext/malloc_allocator.h: Same.
226 * include/ext/mt_allocator.h: Same.
227 * include/ext/new_allocator.h: Same.
228 * include/ext/pool_allocator.h: Same.
229 * include/ext/stdio_sync_filebuf.h: Same.
230 * include/std/std_memory.h: Same.
231 * include/tr1/array: Same.
232 * include/tr1/tuple: Same.
233 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
234 * config/os/gnu-linux/ctype_base.h: Same.
236 2004-11-04 Paolo Carlini <pcarlini@suse.de>
238 * include/bits/locale_facets.tcc (num_get<>::do_get(bool&)):
239 Evaluate __beg == __end the exact strict minimum number of times.
241 2004-11-03 Jonathan Wakely <redi@gcc.gnu.org>
243 * include/bits/stl_numeric.h (partial_sum, adjacent_difference):
244 Avoid dereferencing two times __first in the prologue.
246 2004-11-03 Paolo Carlini <pcarlini@suse.de>
248 * include/bits/stl_numeric.h: Trivial formatting fixes.
250 2004-11-03 Benjamin Kosnik <bkoz@redhat.com>
252 * include/bits/c++config: Spacing.
253 * libsupc++/del_op.cc: Include c++config.h.
254 * libsupc++/del_opnt.cc: Same.
255 * libsupc++/del_opv.cc: Same.
256 * libsupc++/del_opvnt.cc: Same.
257 * libsupc++/new_op.cc: Same.
258 * libsupc++/new_opnt.cc: Same.
259 * libsupc++/new_opv.cc: Same.
260 * libsupc++/new_opvnt.cc: Same.
262 2004-11-03 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
264 * config/os/bsd/darwin/os_defines.h
265 (_GLIBCXX_WEAK_DEFINITION): Define.
266 * include/bits/c++config (_GLIBCXX_WEAK_DEFINITION): Define.
267 * libsupc++/del_op.cc (operator delete(void *)): Use
268 _GLIBCXX_WEAK_DEFINITION.
269 * libsupc++/del_opnt.cc
270 (operator delete(void *, const std::nothrow_t&)): Same.
271 * libsupc++/del_opv.cc (operator delete[](void *)): Same.
272 * libsupc++/del_opvnt.cc
273 (operator delete[](void *, const std::nothrow_t&)): Same.
274 * libsupc++/new_op.cc (operator new(std::size_t)): Same.
275 * libsupc++/new_opnt.cc
276 (operator new(std::size_t, const std::nothrow_t&)): Same
277 * libsupc++/new_opv.cc (operator new[](std::size_t)): Same.
278 * libsupc++/new_opvnt.cc
279 (operator new[](std::size_t, const std::nothrow_t&)): Same.
281 2004-11-02 Paolo Carlini <pcarlini@suse.de>
283 * include/bits/locale_facets.tcc (num_get<>::_M_extract_int):
284 Evaluate *__beg the exact strict minimum number of times; likewise
285 for __beg != __end; slightly simplify main parsing loop.
287 2004-11-02 Benjamin Kosnik <bkoz@redhat.com>
288 Lothar Werzinger <lothar@xcerla.com>
291 * src/debug.cc: Include concurrence, use mutexes.
292 (_Safe_iterator_base::_M_attach): Here.
293 (_Safe_iterator_base::_M_detach): Here.
295 2004-11-02 Benjamin Kosnik <bkoz@redhat.com>
298 * include/bits/ios_base.h : Add enum values.
299 * testsuite/testsuite_hooks.h (bitmask_operators): Add function.
300 * testsuite/27_io/ios_base/types/fmtflags/bitmask_operators.cc: New.
301 * testsuite/27_io/ios_base/types/fmtflags/case_label.cc: New.
302 * testsuite/27_io/ios_base/types/iostate/bitmask_operators.cc: New.
303 * testsuite/27_io/ios_base/types/iostate/case_label.cc: New.
304 * testsuite/27_io/ios_base/types/openmode/bitmask_operators.cc: New.
305 * testsuite/27_io/ios_base/types/openmode/case_label.cc: New.
306 * testsuite/27_io/ios_base/types/seekdir/case_label.cc: New.
308 * config/io/c_io_stdio.h (__ios_flags): Mark deprecated.
311 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
312 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
314 2004-11-01 Momchil Velikov <velco@fadata.bg>
317 * libsupc++/eh_globals.cc (get_globals_dtor): Delete unhandled
319 * testsuite/thread/18185.cc: New.
321 2004-11-01 Chris Jefferson <chris@bubblescope.net>
324 * include/tr1/tuple (get(pair)): Change occurrences of _I to _Int.
325 (get(const pair)): Likewise.
327 2004-11-01 Paolo Carlini <pcarlini@suse.de>
329 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
330 Evaluate *__beg the exact strict minimum number of times; likewise
331 for __beg != __end; in the main parsing loop, call ++__beg in two
332 places only. The former is also a correctness issue, because,
333 according to the standard (22.2.2.1.2, Stage 2), 'in' shall be
334 dereferenced only one time for each increment.
336 2004-10-31 Benjamin Kosnik <bkoz@redhat.com>
339 * testsuite/23_containers/set/modifiers/16728.cc: New.
341 2004-10-30 Paolo Carlini <pcarlini@suse.de>
343 * include/ext/bitmap_allocator.h (allocate(size_type)): Minor tweak.
345 * testsuite/ext/bitmap_allocator/check_delete.cc: New.
346 * testsuite/ext/bitmap_allocator/check_new.cc: Likewise.
348 2004-10-29 Geoffrey Keating <geoffk@apple.com>
350 * configure.host (darwin*): Set os_include_dir to a separate directory
352 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add a new C locale kind,
354 * config/locale/darwin/ctype_members.cc: New.
355 * config/os/bsd/darwin/ctype_base.h: New.
356 * config/os/bsd/darwin/ctype_inline.h: New.
357 * config/os/bsd/darwin/ctype_noninline.h: New.
358 * config/os/bsd/darwin/os_defines.h: New.
360 * testsuite/22_locale/locale/cons/12658_thread-1.cc: Only xfail
363 2004-10-29 Chris Jefferson <chris@bubblescope.net>
365 * include/bit/stl_algo.h (find_first_of(,,,,pred)):
366 Remove invalid EqualOpConcept.
367 * testsuite/25_algorithms/find_first_of/concept_check_1.cc: New.
369 2004-10-29 Benjamin Kosnik <bkoz@redhat.com>
371 * testsuite/testsuite_allocator.h (check_delete): New.
372 (check_new): Simplify.
373 * testsuite/ext/array_allocator/check_delete.cc: New.
374 * testsuite/ext/array_allocator/check_new.cc: Simplify.
375 * testsuite/ext/debug_allocator/check_delete.cc: New.
376 * testsuite/ext/debug_allocator/check_new.cc: Simplify.
377 * testsuite/ext/malloc_allocator/check_delete.cc: New.
378 * testsuite/ext/malloc_allocator/check_new.cc: Simplify.
379 * testsuite/ext/mt_allocator/check_delete.cc: New.
380 * testsuite/ext/mt_allocator/check_new.cc: Simplify.
381 * testsuite/ext/new_allocator/check_delete.cc: New.
382 * testsuite/ext/new_allocator/check_new.cc: Simplify.
383 * testsuite/ext/pool_allocator/check_delete.cc: New.
384 * testsuite/ext/pool_allocator/check_new.cc: Simplify.
386 2004-10-28 Chris Jefferson <chris@bubblescope.net>
389 * include/tr1/tuple: Fix, change formatting.
391 2004-10-28 Benjamin Kosnik <bkoz@redhat.com>
393 * include/ext/mt_allocator.h (__common_pool_policy): Add template
394 template parameter for pool class type.
395 (__per_type_pool_policy): Same.
396 (__mt_allocator): Don't inherit policy. Qualify policy_type calls.
397 * testsuite/ext/mt_allocator/check_deallocate_null.cc: Fix.
398 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: Same.
399 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
400 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
401 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
402 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
403 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Same.
404 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
405 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
406 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
407 * testsuite/ext/mt_allocator/instantiate.cc: Same.
408 * testsuite/ext/mt_allocator/tune-1.cc: Same.
409 * testsuite/ext/mt_allocator/tune-2.cc: Same.
410 * testsuite/ext/mt_allocator/tune-3.cc: Same.
411 * testsuite/ext/mt_allocator/tune-4.cc: Same.
413 2004-10-28 Paolo Carlini <pcarlini@suse.de>
415 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
416 Cache *__beg in __c when parsing exponent sign too.
417 (num_get<>::do_get(..., bool&)): Cache *__beg.
418 (money_get<>::_M_extract)): Likewise, in money_base::value.
420 2004-10-27 Paolo Carlini <pcarlini@suse.de>
422 * include/bits/basic_string.h (assign(const basic_string&)):
424 * include/bits/basic_string.tcc: ... here.
426 2004-10-27 Paolo Carlini <pcarlini@suse.de>
428 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
430 * include/bits/basic_string.tcc: ... here.
432 2004-10-26 Paolo Carlini <pcarlini@suse.de>
434 * include/bits/basic_string.h (append(const basic_string&),
435 append(size_type, _CharT)): Move out of line...
436 * include/bits/basic_string.tcc: ... here.
438 2004-10-26 Paolo Carlini <pcarlini@suse.de>
440 * include/bits/basic_string.h (erase(size_type, size_type),
441 erase(iterator), erase(iterator, iterator)): Call _M_mutate
442 instead of _M_replace_safe, equivalent when the fourth argument
445 2004-10-26 Benjamin Kosnik <bkoz@redhat.com>
447 * include/ext/array_allocator.h (array::allocate): Check for valid
448 array object, use its size member function directly.
449 * testsuite/ext/array_allocator/3.cc: New.
450 * docs/html/20_util/allocator.html: Add docs.
452 2004-10-25 Geoffrey Keating <geoffk@apple.com>
454 * configure.host (darwin*): Build libstdc++ single module
456 * libsupc++/new_op.cc (new): Make weak.
457 * libsupc++/new_opnt.cc (new): Make weak.
458 * libsupc++/new_opv.cc (new): Make weak.
459 * libsupc++/new_opvnt.cc (new): Make weak.
460 * libsupc++/delete_op.cc (delete): Make weak.
461 * libsupc++/delete_opnt.cc (delete): Make weak.
462 * libsupc++/delete_opv.cc (delete): Make weak.
463 * libsupc++/delete_opvnt.cc (delete): Make weak.
465 2004-10-25 Benjamin Kosnik <bkoz@redhat.com>
467 * testsuite/Makefile.am (GLIBCXX_INCLUDES): Add.
468 (AUTOMAKE_OPTIONS): Add nostdinc.
469 * testsuite/Makefile.in: Regenerate.
470 * scripts/testsuite_flags.in (build-includes): Remove redundant
471 search for libsupc++.
472 * fragment.am: Clean.
474 2004-10-25 Benjamin Kosnik <bkoz@redhat.com>
476 * include/Makefile.am (tr1_headers): Add tuple.
477 * include/Makefile.in: Regenerate.
479 2004-10-25 Chris Jefferson <chris@bubblescope.net>
481 * include/tr1/tuple: Implementation of tuple from library TR.
482 * testsuite/tr1/6_containers/tuple/tuple_element.cc: New.
483 * testsuite/tr1/6_containers/tuple/tuple_size.cc: New.
484 * testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc:
486 * testsuite/tr1/6_containers/tuple/cons/assignment.cc: New.
487 * testsuite/tr1/6_containers/tuple/cons/big_tuples.cc: New.
488 * testsuite/tr1/6_containers/tuple/cons/constructor.cc: New.
489 * testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc:
491 * testsuite/tr1/6_containers/tuple/creation_functions/tie.cc: New.
492 * testsuite/tr1/6_containers/tuple/element_access/get.cc: New.
494 2004-10-25 Paolo Carlini <pcarlini@suse.de>
496 * include/bits/basic_string.h (_Rep::_M_is_safe): Move to
497 basic_string as _M_disjunct, adjust to take only __s.
498 * include/bits/basic_string.tcc: Adjust consistently callers.
500 2004-10-25 Paolo Carlini <pcarlini@suse.de>
502 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
503 Adjust bit missing from the previous commit.
505 2004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
508 * testsuite/lib/libstdc++.exp: Accept more than one multilib libgcc.
510 2004-10-25 Paolo Carlini <pcarlini@suse.de>
512 * include/bits/basic_string.h (_Rep::_M_is_safe, _M_check_length,
513 _M_move, _M_copy, _M_assign): New, use througout.
514 (operator+=(_CharT)): Define in terms of push_back.
515 (append(const basic_string&)): Define here, inline, and simplify,
516 don't use the full _M_replace_safe.
517 (append(size_type, _CharT)): Likewise, don't use _M_replace_aux.
518 (push_back): Likewise.
519 (assign(const basic_string&)): Define here, inline.
520 * include/bits/basic_string.tcc (append(const _CharT* s, size_type):
521 Fix: when s points inside the _Rep, upon reallocation (reserve) we
522 were copying from deallocated memory.
523 (append(const basic_string&, size_type, size_type)): Simplify,
524 don't use _M_replace_safe.
525 (replace(size_type, size_type, const _CharT*, size_type)): Slightly
528 * testsuite/21_strings/basic_string/append/char/2.cc: New.
529 * testsuite/21_strings/basic_string/append/char/3.cc: Likewise.
530 * testsuite/21_strings/basic_string/append/wchar_t/2.cc: Likewise.
531 * testsuite/21_strings/basic_string/append/wchar_t/3.cc: Likewise.
533 * testsuite/21_strings/basic_string/assign/char/3.cc: Remove junk.
534 * testsuite/21_strings/basic_string/assign/wchar_t/3.cc: Likewise.
536 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
538 * testsuite/ext/mt_allocator/deallocate_global-2.c:
539 s/value_t/value_type/. s/traits_t/traits_type/.
540 s/policy_t/policy_type/. s/allocator_t/allocator_type/.
541 s/string_t/string_type/. s/list_t/list_type/.
542 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Likewise.
543 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Likewise.
544 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Likewise.
545 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Likewise.
546 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Likewise.
547 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Likewise.
548 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Likewise.
550 2004-10-21 Benjamin Kosnik <bkoz@redhat.com>
552 * include/tr1/array (array): Make safe for zero-sized arrays.
553 (array::end): Return one past the end.
554 (array::at): Use __throw_out_of_range, include functexcept.h.
555 (operator==): Implement.
561 * testsuite/tr1/6_containers/array/capacity/(empty.cc,
562 max_size.cc, size.cc): New.
563 * testsuite/tr1/6_containers/array/comparison_operators/(equal.cc,
564 greater.cc, greater_or_equal.cc, less.cc, less_or_equal.cc,
566 * testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc:
568 * testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc:
570 * testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc: New.
571 * testsuite/tr1/6_containers/array/requirements/(contiguous.cc,
572 instantiate, typedefs, zero_size_arrays): New.
574 2004-10-21 Paolo Carlini <pcarlini@suse.de>
575 Benjamin Kosnik <bkoz@redhat.com>
577 * include/bits/basic_string.h (_M_set_length_and_sharable): New.
578 * include/bits/basic_string.tcc (_S_construct, assign(const _CharT*,
579 size_type), _M_mutate, _M_clone): Use it.
580 (_Rep::_S_create): Don't set/call _M_length/_M_set_sharable here.
582 2004-10-21 Paolo Carlini <pcarlini@suse.de>
583 Dhruv Matani <dhruvbird@gmx.net>
584 Nathan Myers <ncm@cantrip.org>
586 * include/bits/vector.tcc (_M_insert_aux, _M_fill_insert,
587 _M_range_insert): Check at the outset that we are not trying
588 to exceed max_size, then deal properly with __len overflows.
589 * testsuite/23_containers/vector/modifiers/insert/1.cc: New.
591 * testsuite/testsuite_allocator.h: Remove redundant include.
593 2004-10-20 Paolo Carlini <pcarlini@suse.de>
595 * include/ext/bitmap_allocator.h (allocate): Throw std::bad_alloc
597 * include/ext/malloc_allocator.h (allocate): Likewise.
598 * include/ext/mt_allocator.h (allocate): Likewise.
599 * include/ext/new_allocator.h (allocate): Likewise.
600 * include/ext/array_allocator.h: Use __throw_bad_alloc().
601 * include/ext/pool_allocator.h: Use __builtin_expect.
602 * testsuite/ext/array_allocator/check_allocate_max_size.cc: New.
603 * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc: Likewise.
604 * testsuite/ext/malloc_allocator/check_allocate_max_size.cc: Likewise.
605 * testsuite/ext/mt_allocator/check_allocate_max_size.cc: Likewise.
606 * testsuite/ext/new_allocator/check_allocate_max_size.cc: Likewise.
607 * testsuite/ext/pool_allocator/check_allocate_max_size.cc: Likewise.
608 * testsuite/testsuite_allocator.h (check_allocate_max_size): New test.
610 2004-10-19 Paolo Carlini <pcarlini@suse.de>
612 * testsuite/performance/20_util/allocator/list_sort_search.cc:
613 Include <ext/new_allocator.h>.
614 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
616 2004-10-18 Paolo Carlini <pcarlini@suse.de>
618 * include/bits/basic_string.tcc (_M_mutate): Do not reallocate
619 unnecessarily when _M_rep() == &_S_empty_rep() and __new_size
620 == capacity() (== 0): is ok to just leave everything unchanged.
622 * include/bits/basic_string.h: Minor formatting fixes.
623 * include/bits/basic_string.tcc: Likewise.
625 2004-10-17 Benjamin Kosnik <bkoz@redhat.com>
627 * include/ext/mt_allocator.h (__pool::_M_get_align): New.
628 (__mt_alloc::allocate): Use it.
629 * src/mt_allocator.cc (__pool::_M_reclaim_block): Use it.
630 (__pool::_M_reserve_block): Simplify block allocation.
632 2004-10-17 Dhruv Matani <dhruvbird@gmx.net>
633 Paolo Carlini <pcarlini@suse.de>
635 * include/ext/bitmap_allocator.h: Change unsigned int -> size_t: this
636 makes the code 64-bit correct and also fixes (together with using at
637 the beginning a bitmap 2 * size_t bytes wide) alignment issues: now
638 8 is guaranteed, easily tunable to 16 via _BALLOC_ALIGN_BYTES.
639 Fix pthread-rope7.cc fail by nulling out __mini_vector<> destructor.
640 * src/bitmap_allocator.cc: Change to size_t.
641 * config/linker-map.gnu: Adjust.
643 2004-10-16 Benjamin Kosnik <bkoz@redhat.com>
645 * include/tr1/array: Don't use layout_type.
647 2004-10-16 Sashan Govender <sashang@gmail.com>
649 * include/tr1/array (array::end const): Fix casting from iterator
652 2004-10-15 Paolo Carlini <pcarlini@suse.de>
654 * include/ext/bitmap_allocator.h: Qualify ::operator delete.
655 * src/bitmap_allocator.cc: Likewise.
656 * src/mt_allocator.cc: Use ::operator delete, not delete,
657 consistently with ::operator new.
659 * include/ext/bitmap_allocator.h (deallocate): Check for null
661 * testsuite/ext/bitmap_allocator/check_deallocate_null.cc: New.
662 * testsuite/testsuite_allocator.h (check_deallocate_null): Add test.
664 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
666 * include/ext/mt_allocator.h (__mt_alloc::deallocate): Check for
668 * include/ext/pool_allocator.h (debug_allocator::deallocate):
670 * include/ext/debug_allocator.h (debug_allocator::deallocate):
671 Throw exceptions, don't abort.
672 * include/ext/array_allocator.h
673 (array_allocator_base::deallocate): Remove unused parameters.
674 * testsuite/testsuite_allocator.h (check_deallocate_null): New.
675 * testsuite/ext/mt_allocator/check_deallocate_null.cc: New.
676 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: New.
677 * testsuite/ext/array_allocator/check_deallocate_null.cc: New.
678 * testsuite/ext/debug_allocator/check_deallocate_null.cc: New.
679 * testsuite/ext/malloc_allocator/check_deallocate_null.cc: New.
680 * testsuite/ext/new_allocator/check_deallocate_null.cc: New.
681 * testsuite/ext/pool_allocator/check_deallocate_null.cc: New.
683 * testsuite/testsuite_allocator.h (check_new): Add instance argument.
684 * testsuite/ext/array_allocator/check_new.cc: New.
686 2004-10-14 Paolo Carlini <pcarlini@suse.de>
688 * include/ext/bitmap_allocator.h (bitmap_allocator::_Alloc_block):
689 Rename __unused to __M_unused.
691 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
693 * testsuite/ext/headers.cc: Add includes, compile only.
694 * testsuite/ext/hash_map.cc: Move to...
695 * testsuite/ext/hash_map/1.cc: ...here.
696 * testsuite/ext/14648.cc: Move to...
697 * testsuite/ext/hash_map/14648.cc: ...here.
698 * testsuite/ext/hash_map/instantiate.cc: Add.
699 * testsuite/ext/hash_set.cc: Move to...
700 * testsuite/ext/hash_set/1.cc: ...here.
701 * testsuite/ext/hash_set_explicit_instantiation.cc: Move to...
702 * testsuite/ext/hash_set/instantiate.cc: ...here.
703 * testsuite/ext/hash_check_construct_destroy.cc: Move to...
704 * testsuite/ext/hash_set/check_construct_destroy.cc: ...here.
705 * testsuite/ext/slist_check_construct_destroy.cc: Move to...
706 * testsuite/ext/slist/check_construct_destroy.cc: ...here.
707 * testsuite/ext/slist_explicit_instantiation.cc: Move to...
708 * testsuite/ext/slist/instantiate.cc: ...here.
710 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
712 * include/ext/mt_allocator.h: Tweaks.
713 * src/mt_allocator.cc: Same.
715 2004-10-14 Dhruv Matani <dhruvbird@gmx.net>
717 * ext/bitmap_allocator.h: Clean-up add/remove functions.
718 * src/bitmap_allocator.cc: New file. Contains the out-of-line
719 function definitions, static initialization of variables, and
720 explicit instantiations needed for the allocator.
721 * src/Makefile.am: Add.
722 * src/Makefile.in: Regenerate.
723 * config/linker.map.gnu: Add the necessary symbols.
725 2004-10-13 Paolo Carlini <pcarlini@suse.de>
727 * include/bits/basic_string.tcc (_S_create): Use consistently
728 the exponential policy, simplify.
729 * testsuite/performance/21_strings/string_append_2.cc: New.
731 * include/ext/array_allocator.h (allocate): Fix bad_alloc check.
732 * testsuite/ext/array_allocator/2.cc: Fix wrt 64-bit archs (in
733 that case sizeof(_Rep) == 24).
735 2004-10-12 Paolo Carlini <pcarlini@suse.de>
738 * include/bits/stl_tree.h (erase(iterator, iterator)): Revert
739 wrong commit of 2004-10-07.
741 2004-10-12 Scott Snyder <snyder@fnal.gov>
744 * testsuite/23_containers/set/modifiers/17948.cc: New.
746 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
748 * include/bits/stl_deque.h: Correct for over-long lines.
750 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
753 * include/ext/mt_allocator.h (__pool::_M_destroy): New.
754 * src/mt_allocator.cc (__pool::~__pool): Change definitions to
756 * acconfig.h: Remove _GLIBCXX_USE___CXA_ATEXIT.
757 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): Remove.
758 * configure.ac: Remove call to GLIBCXX_ENABLE_CXA_EXIT.
759 * configure: Regenerate.
760 * config/linker-map.gnu: Tweak exports.
761 * docs/html/ext/mt_allocator.html: Update docs.
762 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Fix.
763 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Fix.
764 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Fix.
765 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Fix.
766 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Fix.
767 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Fix.
768 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Fix.
769 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Fix.
771 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
773 PR libstdc++/16614 continued.
774 * include/ext/mt_allocator.h
775 (__per_type_pool_policy::_S_get_pool): Use saner defaults based on
776 specific type characteristics.
777 (__pool_base): Add constructor that takes a _Tune argument.
779 * testsuite/ext/mt_allocator/tune-2.cc: Adjust default.
780 * testsuite/ext/mt_allocator/tune-4.cc: Same.
781 * testsuite/ext/mt_allocator/tune-3.cc: Same.
783 2004-10-11 Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
784 Paolo Carlini <pcarlini@suse.de>
786 * src/pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk):
787 Deal properly with exceptions thrown by ::operator new(size_t).
788 * testsuite/ext/pool_allocator/allocate_chunk.cc: New.
790 * include/ext/pool_allocator.h: Include <cstdlib>.
792 2004-10-10 Benjamin Kosnik <bkoz@redhat.com>
794 * include/bits/functexcept.h: Add guards.
796 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Tweak test.
797 * configure: Regenerate.
799 2004-10-10 Paolo Carlini <pcarlini@suse.de>
801 * config/locale/gnu/monetary_members.cc (_S_construct_pattern):
802 Give __ret a default value, thus avoiding spurious warnings.
804 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Open either
805 words or linux.words, otherwise exit.
806 * testsuite/performance/27_io/ifstream_getline.cc: Slighlty tweak.
808 2004-10-09 Paolo Carlini <pcarlini@suse.de>
810 * include/std/std_memory.h (__get_temporary_buffer): Don't use
811 INT_MAX, prefer numeric_limits<ptrdiff_t>::max(), ok on 64-bit
813 * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust dg-error
816 2004-10-08 Benjamin Kosnik <bkoz@redhat.com>
818 * acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
819 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): New.
820 * configure.ac: Call GLIBCXX_ENABLE_CXA_EXIT.
821 * configure: Regenerate.
822 * src/mt_allocator.cc (__pool::~__pool): Make conditional on
823 _GLIBCXX_USE___CXA_ATEXIT macro.
824 * docs/html/ext/mt_allocator.html: Add note about deallocation.
825 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Guard checks
826 with _GLIBCXX_USE___CXA_ATEXIT.
827 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
828 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
829 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
830 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
831 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
832 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
833 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
835 2004-10-07 Phil Edwards <phil@codesourcery.com>
837 * testsuite/lib/libstdc++.exp: Update list of undefined functions.
839 2004-10-07 Paolo Carlini <pcarlini@suse.de>
841 * include/bits/list.tcc (operator=): Avoid iterator postincrement.
842 * include/bits/stl_tree.h (erase(iterator, iterator)): Likewise.
844 2004-10-07 Benjamin Kosnik <bkoz@redhat.com>
847 * include/tr1/array: New.
848 * include/Makefile.am (tr1_headers): New.
850 (install-headers): New.
851 (allstamped): Add stamp-tr1.
853 * include/ext/array_allocator.h: New.
854 * include/Makefile.am: Add.
855 * include/Makefile.in: Regenerate.
856 * testsuite/ext/array_allocator/1.cc: New.
857 * testsuite/ext/array_allocator/2.cc: New.
859 2004-10-07 Richard Earnshaw <rearnsha@arm.com>
861 * testsuite/lib/libstdc++.exp (libstdc++_exit): New proc.
863 2004-10-07 Roger Sayle <roger@eyesopen.com>
866 * configure.ac: Newlib does not provide strtold.
867 * configure: Regenerate.
869 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
871 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
872 (GLIBCXX_CONFIGURE_TESTSUITE): Use it.
873 * configure: Regenerated.
874 * testsuite/Makefile.am (CLEANFILES): Add TEST for
875 check-performance executables.
878 * testsuite/Makefile.in: Regenerate.
879 * scripts/create_testsuite_files: Filter thread tests.
881 * testsuite/thread/pthread1.cc: Remove macro conditionals: this
882 file will only be run by thread enabled configurations.
883 * testsuite/thread/pthread7-rope.cc: Same, add rope_type typedef.
884 * testsuite/thread/pthread6.cc: Same.
885 * testsuite/thread/pthread5.cc: Same.
886 * testsuite/thread/pthread4.cc: Same.
887 * testsuite/thread/pthread3.cc: Same.
888 * testsuite/thread/pthread2.cc: Same.
890 * testsuite/ext/mt_allocator/instantiate.cc: Add in __GTHREADS guard.
891 * testsuite/ext/mt_allocator/deallocate_global-1.cc: Move to...
892 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: ...here.
893 * testsuite/ext/mt_allocator/deallocate_global-3.cc: Move to...
894 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: ...here.
895 * testsuite/ext/mt_allocator/deallocate_local-1.cc: Move to...
896 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: ...here.
897 * testsuite/ext/mt_allocator/deallocate_local-3.cc: Move to...
898 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: ...here.
900 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
901 Paolo Carlini <pcarlini@suse.de>
904 * src/mt_allocator.cc (__pool<true>::_M_reserve_block): Revert
905 to old locking order.
907 2004-10-06 Paolo Carlini <pcarlini@suse.de>
909 * include/std/std_sstream.h (_M_sync): When the caller is
910 setbuf, don't trust _M_string.capacity() to be the size of
911 the buffer area, use _M_string.size() in this case.
912 * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
913 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.
915 * include/bits/sstream.tcc (overflow): Avoid calling string::assign
916 unnecessarily when the current _M_string is empty.
918 2004-10-06 Paolo Carlini <pcarlini@suse.de>
920 * include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)):
921 Avoid iterator postincrement.
922 (__rotate): Likewise.
924 * include/bits/stl_algo.h: Minor formatting tweaks.
926 2004-10-06 Christopher Jefferson <caj@cs.york.ac.uk>
928 * include/bits/stl_algo.h (__reverse(random_access_iterator_tag)):
929 Avoid iterator postincrement; fix swapping middle element with
930 itself on odd-length inputs.
932 2004-10-05 Benjamin Kosnik <bkoz@redhat.com>
935 * include/ext/mt_allocator.h (__pool_base::_Tune): Add default
936 options as compile-time constant enums.
937 (__pool_base::_Tune::is_default): New.
938 (__pool_base::_Block_address): New.
939 (__pool_base): Rearrange data members.
940 (__pool::_M_reserve_memory): To _M_reserve_block.
941 (__pool::_M_reclaim_memory): To _M_reclaim_block.
942 (__pool::_Bin_record): Add _Block_address data member.
943 (__pool<false>): Add _M_thread_freelist_initial.
944 (__pool::~__pool): Declare.
945 (__common_pool_policy): Move static data member to...
946 (__common_pool_policy::_S_get_pool): ...here, make static local.
947 (__per_type_pool_policy): Move static data member to...
948 (__per_type_pool_policy::_S_get_pool): ...here, make static local.
949 (__mt_alloc::__mt_alloc): Call __policy_type::_S_get_pool.
950 Remove static member definitions. Use define for __default_policy.
951 * src/mt_allocator.cc: Same.
952 * config/linker-map.gnu: Don't export _S_get_pool. Renames.
953 * testsuite/ext/new_allocator: New.
954 * testsuite/ext/new_allocator/instantiate.cc: New.
955 * testsuite/ext/new_allocator/check_new.cc: New.
956 * testsuite/ext/new_allocator/deallocate_global.cc: New.
957 * testsuite/ext/new_allocator/deallocate_local.cc: New.
958 * testsuite/ext/mt_allocator/instantiate.cc: Instantiate all
960 * testsuite/ext/mt_allocator/deallocate_global-1.cc: New.
961 * testsuite/ext/mt_allocator/deallocate_global-2.cc: New.
962 * testsuite/ext/mt_allocator/deallocate_global-3.cc: New.
963 * testsuite/ext/mt_allocator/deallocate_global-4.cc: New.
964 * testsuite/ext/mt_allocator/deallocate_local-1.cc: New.
965 * testsuite/ext/mt_allocator/deallocate_local-2.cc: New.
966 * testsuite/ext/mt_allocator/deallocate_local-3.cc: New.
967 * testsuite/ext/mt_allocator/deallocate_local-4.cc: New.
968 * testsuite/ext/mt_allocator/deallocate.cc: New.
969 * testsuite/ext/malloc_allocator/deallocate.cc: New.
970 * testsuite/ext/malloc_allocator/deallocate_global.cc: New.
971 * testsuite/ext/malloc_allocator/deallocate_local.cc: New.
973 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
975 * configure.host (abi_baseline_pair): Define for s390-*-linux* and
977 * config/abi/s390-linux-gnu/baseline_symbols.txt: Add missing symbols.
978 * config/abi/s390x-linux-gnu/baseline_symbols.txt: New file.
980 2004-10-05 Christopher Jefferson <caj@cs.york.ac.uk>
982 * include/bits/stl_algobase.h (iter_swap): delegate to swap via
983 __iter_swap when iterator's value_types are equal.
984 (struct __iter_swap): New.
986 2004-10-04 Benjamin Kosnik <bkoz@redhat.com>
988 * configure.ac (libtool_VERSION): To 6:3:0.
989 * configure: Regnerate.
990 * testsuite/testsuite_abi.cc (check_version): Add 3.4.3.
992 2004-10-04 Roger Sayle <roger@eyesopen.com>
993 Eric Botcazou <ebotcazou@libertysurf.fr>
996 * config/linker-map.gnu: Synchronize the current list of stub
997 functions from libmath.
999 2004-10-03 Roger Sayle <roger@eyesopen.com>
1001 * config/locale/generic/c_locale.cc (__convert_to_v): Use
1002 _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
1003 Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
1004 to check for presence of strtold.
1006 2004-10-03 Paolo Carlini <pcarlini@suse.de>
1008 * include/bits/stl_list.h: Trivial formatting fixes.
1009 * include/bits/stl_tree.h: Likewise.
1011 2004-10-03 Paolo Carlini <pcarlini@suse.de>
1013 * include/bits/sstream.tcc (seekpos): In case of success, just
1016 2004-10-01 Paolo Carlini <pcarlini@suse.de>
1018 * include/bits/sstream.tcc (pbackfail): Implement correctly
1019 27.7.1.3/2, bullet 2: if mode & ios_base::out is false do not
1020 write in the buffer.
1021 * testsuite/27_io/basic_stringbuf/pbackfail/char/1.cc: New.
1022 * testsuite/27_io/basic_stringbuf/pbackfail/char/2.cc: Likewise.
1023 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/1.cc: Likewise.
1024 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/2.cc: Likewise.
1025 * testsuite/27_io/basic_istream/putback/char/1.cc: Tweak consistently.
1027 2004-10-01 Paolo Carlini <pcarlini@suse.de>
1029 * include/bits/sstream.tcc (seekpos): Minor rearrangement of two
1030 conditionals consistently with seekoff.
1031 * include/std/std_sstream.h (setbuf): Avoid a string temporary.
1032 (_M_sync): Simplify a bit, clean-up comment.
1034 2004-09-30 Paolo Carlini <pcarlini@suse.de>
1036 PR libstdc++/10975 (DR 453)
1037 * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
1039 * docs/html/ext/howto.html: Add an entry for DR 453.
1040 * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
1041 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
1042 * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
1043 * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
1044 * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
1045 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
1047 * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
1048 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
1050 * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
1052 2004-09-29 Paolo Carlini <pcarlini@suse.de>
1054 * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
1055 Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
1056 (str()): Slightly tweak, protect from pptr() == 0.
1057 (_M_update_egptr()): Likewise.
1058 * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
1059 for an empty buffer use __beg instead of _M_string.capacity().
1060 * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
1061 * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
1063 * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
1064 * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
1065 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
1066 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
1068 2004-09-29 Paolo Carlini <pcarlini@suse.de>
1069 Benjamin Kosnik <bkoz@redhat.com>
1071 * testsuite/testsuite_io.h (class constraint_buf): New, extended
1072 and templatized version of constraint_filebuf; add typedefs for
1073 streambuf/stringbuf/filebuf and wchar_t counterparts.
1075 2004-09-28 Paolo Carlini <pcarlini@suse.de>
1078 * include/bits/basic_string.h (_M_dispose, _M_refcopy,
1079 basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
1080 don't deal with _S_empty_rep.
1081 * include/bits/basic_string.tcc (_S_construct, _M_destroy,
1082 _M_leak_hard, _M_mutate): Likewise.
1083 * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
1084 * acconfig.h: Add corresponding undef.
1085 * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
1086 * docs/html/configopts.html: Document --enable-fully-dynamic-string.
1087 * configure: Regenerate.
1088 * config.h.in: Likewise.
1090 2004-09-28 Benjamin Kosnik <bkoz@redhat.com>
1091 Paolo Carlini <pcarlini@suse.de>
1093 * testsuite/21_strings/basic_string/operations/char/1.cc: New.
1094 * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
1095 * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
1096 * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc:
1099 2004-09-28 Paolo Carlini <pcarlini@suse.de>
1101 * README: Remove obsolete entry about include/c_shadow.
1103 2004-09-24 H.J. Lu <hongjiu.lu@intel.com>
1106 * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
1108 2004-09-24 Paolo Carlini <pcarlini@suse.de>
1110 * src/localename.cc (locale::locale(const char*)): Minor tweaks:
1111 rename a variable, move an assignment.
1112 (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
1114 2004-09-24 Paul Brook <paul@codesourcery.com>
1116 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
1118 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1119 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
1120 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
1121 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
1122 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
1123 * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
1125 2004-09-23 Zack Weinberg <zack@codesourcery.com>
1127 * testsuite/20_util/memory/auto_ptr/assign_neg.cc
1128 * testsuite/23_containers/map/operators/1_neg.cc
1129 * testsuite/23_containers/set/operators/1_neg.cc:
1130 Update locations and/or regexps of dg-error markers.
1132 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
1134 * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
1135 Add rule to build ${host_builddir}/gthr-tpf.h.
1136 * include/Makefile.in: Regenerate.
1138 2004-09-23 Paolo Carlini <pcarlini@suse.de>
1139 Magnus Fromreide <magfr@lysator.liu.se>
1141 * include/bits/boost_concept_check.h (struct _SequenceConcept):
1142 Remove wrong requirement, i.e., not present in Table 67.
1144 2004-09-21 Paolo Carlini <pcarlini@suse.de>
1146 PR libstdc++/12882 (cont)
1147 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
1148 * configure: Regenerate.
1149 * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
1150 _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
1151 trivial showmanyc for large files too.
1153 2004-09-17 Jonathan Wakely <redi@gcc.gnu.org>
1155 * include/bits/stl_algo.h (remove): Remove too restrictive
1158 2004-09-17 Paolo Carlini <pcarlini@suse.de>
1160 * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
1161 as per Nathan's original suggestion.
1163 2004-09-17 Paolo Carlini <pcarlini@suse.de>
1165 * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
1167 * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
1168 * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
1169 * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
1171 2004-09-17 Paolo Carlini <pcarlini@suse.de>
1172 Andrea Arcangeli <andrea@suse.de>
1174 * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
1175 call unnecessarily sync, that is fflush: the library, since 3.4.0
1176 does not use buffered fread/fwrite.
1177 * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
1179 2004-09-15 Mark Mitchell <mark@codesourcery.com>
1181 * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
1183 * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
1185 * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
1186 (__cxa_vec_new): Use it.
1187 (__cxa_vec_new2): Likewise.
1188 (__cxa_vec_new3): Likewise.
1189 (__cxa_vec_cdtor): Likewise.
1190 (__cxa_vec_cctor): Likeiwse.
1191 (__cxa_vec_dtor): Likewise.
1192 (__cxa_vec_cleanup): Likewise.
1193 (__cxa_vec_delete2): Likewise.
1194 (__cxa_vec_delete3): Likewise.
1195 * libsupc++/vec.cc (__cxa_vec_new): Likewise.
1196 (__cxa_vec_new2): Likewise.
1197 (__cxa_vec_new3): Likewise.
1198 (__cxa_vec_cdtor): Likewise.
1199 (__cxa_vec_cctor): Likeiwse.
1200 (__cxa_vec_dtor): Likewise.
1201 (__cxa_vec_cleanup): Likewise.
1202 (__cxa_vec_delete2): Likewise.
1203 (__cxa_vec_delete3): Likewise.
1204 (__aeabi_vec_ctor_nocookie_nodtor): New function.
1205 (__aeabi_vec_ctor_cookie_nodtor): Likewise.
1206 (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
1207 (__aeabi_vec_new_cookie_noctor): Likewise.
1208 (__aeabi_vec_new_nocookie): Likewise.
1209 (__aeabi_vec_new_cookie_nodtor): Likewise.
1210 (__aeabi_vec_new_cookie): Likewise.
1211 (__aeabi_vec_dtor): Likewise.
1212 (__aeabi_vec_dtor_cookie): Likewise.
1213 (__aeabi_vec_delete): Likewise.
1214 (__aeabi_vec_delete3): Likewise.
1215 (__aeabi_vec_delete3_nodtor): Likewise.
1216 (__aeabi_atexit): Likewise.
1218 2004-09-14 Nathan Myers <ncm@cantrip.org>
1220 * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
1221 for 11722: copy can replace move; the common case is __avail == 0.
1223 2004-09-14 Paolo Carlini <pcarlini@suse.de>
1225 * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
1226 to __is_scalar, more clear and consistent with "tr1" naming.
1227 * include/bits/stl_algobase.h: Update consistently throughout.
1229 2004-09-13 Paolo Carlini <pcarlini@suse.de>
1232 * include/std/std_fstream.h (xsgetn): Declare only.
1233 * include/bits/fstream.tcc (xsgetn): Define, optimize for the
1234 always_noconv() case: when __n > __buflen, copy the available
1235 buffer and issue a direct read.
1236 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
1238 * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
1241 2004-09-13 Hans-Peter Nilsson <hp@bitrange.com>
1243 * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
1244 libstdc++_maybe_build_wrapper instead of using local code.
1246 2004-09-08 Benjamin Kosnik <bkoz@redhat.com>
1248 * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
1250 2004-09-03 Jan Beulich <jbeulich@novell.com>
1252 * crossconfig.m4: Add NetWare as a target.
1253 * configure: Regenerate.
1255 2004-09-02 Mark Mitchell <mark@codesourcery.com>
1257 * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
1260 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
1261 Simon Richter <Simon.Richter@hogyros.de>
1264 * include/bits/istream.tcc: Add extern template for iostream
1265 char and wchar_t instantiations.
1267 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
1268 Leland Wang <llwang@infor.org>
1271 * include/ext/ropeimpl.h (rope::_S_compare): Use
1272 _Rope_constants::_S_leaf.
1274 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
1277 * include/Makefile.am (ext_headers): Remove demangle.h.
1278 * include/Makefile.in: Regenerate.
1279 * include/ext/demangle.h: Remove.
1281 2004-09-01 Benjamin Kosnik <bkoz@redhat.com>
1284 * include/ext/mt_allocator.h (__mt_base): Not type dependent,
1286 (__pool): New, specialize.
1287 (__common_pool): New, static bits here.
1288 (__per_type_pool): New, and here.
1289 (__mt_alloc_base): New.
1290 (__mt_alloc): Add template parameter, inherit from it.
1291 * src/allocator.cc: Split this...
1292 * src/allocator-inst.cc: And this...
1293 * src/pool_allocator.cc: ...into this.
1294 * src/mt_allocator.cc: ... and this. Add definitions for
1296 * src/Makefile.am (sources): Split allocator.cc to
1297 pool_allocator.cc and mt_allocator.cc.
1298 * src/Makefile.in: Regenerate.
1299 * config/linker-map.gnu: Add symbols.
1300 * docs/html/ext/mt_allocator.html: Document new design.
1301 * testsuite/ext/mt_allocator/tune-1.cc: New.
1302 * testsuite/ext/mt_allocator/tune-2.cc: New.
1303 * testsuite/ext/mt_allocator/tune-3.cc: New.
1304 * testsuite/ext/mt_allocator/tune-4.cc: New.
1306 * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
1307 * testsuite/ext/allocators.cc: Use check_new, split into...
1308 * testsuite/ext/mt_allocator/check_new.cc: this.
1309 * testsuite/ext/pool_allocator/check_new.cc: this.
1310 * testsuite/ext/malloc_allocator/check_new.cc: this.
1311 * testsuite/ext/debug_allocator/check_new.cc: this.
1312 * testsuite/ext/mt_allocator/instantiate.cc: this.
1313 * testsuite/ext/pool_allocator/instantiate.cc: this.
1314 * testsuite/ext/malloc_allocator/instantiate.cc: this.
1315 * testsuite/ext/debug_allocator/instantiate.cc: this.
1317 2004-08-30 Phil Edwards <phil@codesourcery.com>
1319 * docs/html/install.html: Update locales list (from Paolo).
1320 Remove other redundant information and point to the GCC install
1323 2004-08-30 Benjamin Kosnik <bkoz@redhat.com>
1325 * include/ext/pool_allocator.h: Rename __pool_base to
1327 * src/allocator.cc: Same.
1328 * config/linker-map.gnu: Same.
1330 2004-08-30 Paolo Carlini <pcarlini@suse.de>
1331 Kenneth C. Schalk <ken@xorian.net>
1334 * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
1335 Check the return value of fclose/sync, loop on EINTR.
1336 (__basic_file<char>::sys_open): Likewise, for sync.
1338 2004-08-29 Paolo Carlini <pcarlini@suse.de>
1340 * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
1341 case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
1342 and 7.23.3.5), two if !_GLIBCXX_USE_C99.
1343 * testsuite/22_locale/time_get/get_time/char/4.cc: New.
1344 * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
1346 2004-08-27 Jason Merrill <jason@redhat.com>
1349 * libsupc++/guard.cc (static_mutex): Internal class implementing a
1350 recursive mutex which controls initialization of local statics.
1351 (__gnu_cxx::recursive_init): New exception class.
1352 (__cxa_guard_acquire): Deal with locking and recursion detection.
1353 (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
1355 2004-08-27 Matthias Klose <doko@debian.org>
1357 * configure.host: For mips*-*-linux* update cpu_include_dir
1358 after atomicity_dir is set.
1360 2004-08-27 Matthias Klose <doko@debian.org>
1362 * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
1363 * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1364 * configure.host: Set abi_baseline_pair for arm*-*-linux* and
1367 2004-08-27 Paolo Carlini <pcarlini@suse.de>
1369 * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
1370 * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
1371 * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
1372 * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
1373 * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
1375 * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
1377 * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
1378 * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
1379 * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
1380 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1382 2004-08-25 Paolo Carlini <pcarlini@suse.de>
1384 PR libstdc++/17038 (partial)
1385 * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
1387 * include/bits/locale_facets.h (class __timepunct): Add FIXME
1388 comment about _M_put.
1389 * config/locale/generic/time_members.cc (_M_put): Always null
1391 * config/locale/gnu/time_members.cc (_M_put): Likewise.
1392 * testsuite/22_locale/time_put/put/char/17038.cc: New.
1393 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
1395 2004-08-24 Paolo Carlini <pcarlini@suse.de>
1397 * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
1398 * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
1399 * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
1400 * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
1401 * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
1402 * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
1404 * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
1406 * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
1408 2004-08-22 Matthias Klose <doko@debian.org>
1410 * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
1411 * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1413 2004-08-23 Paolo Carlini <pcarlini@suse.de>
1415 * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
1416 * aclocal.m4: Regenerate with automake-1.9.1.
1417 * configure: Regenerate.
1418 * Makefile.in: Likewise.
1419 * include/Makefile.in: Likewise.
1420 * libmath/Makefile.in: Likewise.
1421 * libsupc++/Makefile.in: Likewise.
1422 * po/Makefile.in: Likewise.
1423 * src/Makefile.in: Likewise.
1424 * testsuite/Makefile.in: Likewise.
1426 2004-08-22 Paolo Carlini <pcarlini@suse.de>
1428 * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
1429 to a signed type, long according to the resolution of DR 359.
1430 * testsuite/22_locale/num_put/put/char/9.cc: New.
1431 * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
1433 * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
1434 Simplify a bit: no need to clear showpos.
1436 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1438 * include/bits/char_traits.h (struct _Char_traits_match): Remove,
1441 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1443 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
1444 wchar_t type for the fill argument; minor formatting tweaks.
1445 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
1446 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
1447 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
1448 * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
1449 * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
1450 * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
1452 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1454 * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
1455 with _M_word != _M_local_word two times, redundantly.
1457 2004-08-20 Jason Merrill <jason@redhat.com>
1459 * include/Makefile.am (${host_builddir}/gthr.h): Don't add
1460 _GLIBCXX_ to #pragma lines.
1461 * include/Makefile.in: Update.
1463 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1465 PR libstdc++/7219 (continued)
1466 * include/bits/ios_base.h (class ios_base): Expose Annex D.6
1467 typedefs by default.
1468 * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
1469 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
1471 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1473 2004-08-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1475 * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
1476 barrier to locking asm.
1478 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1480 * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
1481 actually the warning is a front-end bug (c++/17120).
1483 2004-08-20 Matthias Klose <doko@debian.org>
1485 * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
1487 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1489 * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
1490 used as truth value warning.
1492 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1494 * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
1497 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1499 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
1501 2004-08-19 Benjamin Kosnik <bkoz@redhat.com>
1503 * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
1505 * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
1507 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1509 * testsuite/performance/20_util/allocator/insert.cc: For std::map
1510 instantiate the allocator for a correct pair type.
1511 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1512 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1513 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1516 * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
1517 minor formatting fixes.
1518 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1520 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1522 * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
1524 * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
1525 * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
1526 * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
1527 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
1528 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1529 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1530 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1532 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1534 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1536 2004-08-18 Matthias Klose <doko@debian.org>
1538 * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1539 * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
1540 * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
1542 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1544 * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1546 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1548 * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1550 2004-08-17 Benjamin Kosnik <bkoz@redhat.com>
1552 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1554 2004-08-16 Paolo Carlini <pcarlini@suse.de>
1556 * include/bits/indirect_array.h: Trivial formatting fixes.
1557 * include/bits/valarray_after.h: Likewise.
1558 * include/bits/valarray_array.h: Likewise.
1559 * src/valarray-inst.cc: Likewise.
1561 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1563 * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
1564 * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
1565 * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
1567 * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
1568 * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
1569 * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
1570 * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
1571 * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
1573 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1575 * include/bits/deque.tcc: Trivial formatting fixes.
1577 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1579 * include/bits/deque.tcc: Trivial formatting fixes.
1581 * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
1582 Remove unneded typedef.
1584 * include/bits/locale_facets.tcc: Very minor tweaks.
1586 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
1587 type for the fill argument.
1588 * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
1589 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1590 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1591 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1592 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
1593 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
1594 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
1595 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
1597 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1599 * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
1600 memmove is not needed, memcpy suffices.
1602 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1604 * include/std/std_fstream.h (class basic_ifstream,
1605 class basic_ofstream, class basic_fstream): Add const overloads
1606 of is_open, as per DR 365 [WP].
1607 * docs/html/ext/howto.html: Add an entry for DR 365.
1609 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1611 * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
1613 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1616 * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
1617 to the returned value, reorganize a bit.
1618 * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
1619 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
1621 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
1622 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
1623 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
1624 * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
1626 2004-08-12 Paul Brook <paul@codesourcery.com>
1628 * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
1629 _GLIBCXX_CXA_VEC_CTOR_RETURN.
1630 * config/cpu/generic/cxxabi_tweaks.h: Ditto.
1631 * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
1632 __cxa_vec_ctor_return.
1633 * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
1634 Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
1636 2004-08-12 Kelley Cook <kcook@gcc.gnu.org>
1638 * Makefile.in, aclocal.m4, configure, include/Makefile.in,
1639 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1640 src/Makefile.in, testsuite/Makefile.in: Regenerate
1642 2004-08-12 Jan Beulich <jbeulich@novell.com>
1644 * config/locale/generic/ctype_members.cc
1645 (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
1646 initializer for return value, as that is invalid for enumerated types.
1647 * config/locale/gnu/ctype_members.cc
1648 (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
1650 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1652 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
1654 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1656 * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
1658 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
1659 * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
1660 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
1661 * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
1662 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
1663 * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
1664 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
1665 * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
1666 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
1667 * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
1668 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
1669 * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
1670 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
1671 * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
1672 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
1673 * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
1674 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
1675 * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
1676 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
1677 * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
1678 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
1680 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1681 Petur Runolfsson <peturr02@ru.is>
1684 * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
1685 standard streams are constructed.
1686 * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
1688 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1690 * include/bits/stl_bvector.h: Trivial formatting fixes.
1692 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1694 * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
1696 2004-08-07 Jonathan Wakely <redi@gcc.gnu.org>
1697 Paolo Carlini <pcarlini@suse.de>
1699 * src/debug.cc (_Error_formatter::_M_print_string): In order
1700 to print individual words from __string, _M_format_word can't
1701 be called since may be just sprintf, thus ignoring completely
1702 __n: instead, use memmove and append '\0' by hand.
1704 2004-08-07 Paolo Carlini <pcarlini@suse.de>
1706 * config/locale/generic/c_locale.h (__convert_from_v): Don't
1707 use a default for __prec, assume __prec >= 0 and simplify.
1708 * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
1709 * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
1710 Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
1712 2004-08-04 Phil Edwards <phil@codesourcery.com>
1714 * docs/html/configopts.html: Emphasize that options change.
1715 * docs/html/17_intro/configury.html: Update links.
1717 2004-08-03 Paolo Carlini <pcarlini@suse.de>
1719 * include/bits/list.tcc: Trivial formatting fixes.
1721 2004-08-03 Mark Mitchell <mark@codesourcery.com>
1723 * libsupc++/new_op.cc: Update comments.
1724 * libsupc++/del_op.cc: Likewise.
1726 2004-08-02 Mark Mitchell <mark@codesourcery.com>
1728 * libsupc++/cxxabi.h: Make all declarations have default
1730 * libsupc++/exception: Likewise.
1731 * libsupc++/new: Likewise.
1732 * libsupc++/typeinfo: Likewise.
1733 * libsupc++/unwind-cxx.h: Likewise.
1734 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
1735 the __cxxabiv1 namespace.
1736 (__cxa_free_exception): Likewise.
1737 * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
1738 (__cxa_bad_typeid): Likewise.
1739 * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
1740 (__cxa_end_catch): Likewise.
1741 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
1742 (__cxa_get_globals): Likewise.
1743 * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
1744 (__cxa_rethrow): Likewise.
1745 * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
1746 * libsupc++/eh_type.cc: Include <cxxabi.h>.
1748 * Makefile.am (hosted_source): Add libmath and testsuite.
1749 (SUBDIRS): Remove them.
1750 * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
1751 on arm*-*-symbianelf*.
1752 * crossconfig.m4: Add arm*-*-symbianelf* support.
1753 * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
1754 when freestanding. Do not bring names into std:: namespace with
1755 "using" when freestanding. Declare required functions and macros
1757 * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
1759 * libsupc++/del_op.cc: Declare "free" only when freestanding.
1760 * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
1761 (malloc): Declare when freestanding.
1764 (__cxa_allocate_exception): Call malloc, not std::malloc. Likewise
1766 (__cxa_free_exception): Likewise for free.
1767 * libsupc++/new_op.cc: Declare "malloc" when freestanding.
1768 * libsupc++/pure.cc (writestr): Define to nothing when
1770 * libsupc++/vterminate.cc: Do not define anything when
1772 * Makefile.in: Regenerated.
1773 * aclocal.m4: Likewise.
1774 * configure: Likewise.
1775 * include/Makefile.in: Likewise.
1776 * libmath/Makefile.in: Likewise.
1777 * libsupc++/Makefile.in: Likewise.
1778 * po/Makefile.in: Likewise.
1779 * src/Makefile.in: Likewise.
1780 * testsuite/Makefile.in: Likewise.
1782 2004-08-01 Matt Austern <austern@apple.com>
1785 * include/bits/stl_list.h (_M_create_node): Remove unused
1786 zero-argument version.
1787 * include/ext/slist (_M_create_node): Pass two arguments to
1788 allocator's construct() member function.
1789 * testsuite/23_containers/deque/explicit_instantiation.cc: New.
1790 * testsuite/23_containers/list/explicit_instantiation.cc: New.
1791 * testsuite/23_containers/vector/explicit_instantiation.cc: New.
1792 * testsuite/23_containers/map/explicit_instantiation.cc: New.
1793 * testsuite/23_containers/set/explicit_instantiation.cc: New.
1794 * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
1795 * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
1796 * testsuite/ext/hash_set_explicit_instantiation.cc: New.
1797 * testsuite/ext/slist_explicit_instantiation.cc: New.
1799 2004-07-30 Paolo Carlini <pcarlini@suse.de>
1801 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1802 num_get<>::_M_extract_int): In the main parsing loop delay the
1803 life of __q to the actual use point.
1805 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1808 * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
1809 Don't clip the precision passed down to __convert_from_v:
1810 22.2.2.2.2 nowhere says so.
1811 * testsuite/22_locale/num_put/put/char/14220.cc: New.
1812 * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
1814 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1816 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
1818 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1819 Petur Runolfsson <peturr02@ru.is>
1821 PR libstdc++/12658 (continued)
1822 * src/locale_init.cc (locale::locale, locale::global): Use
1823 a single locale_mutex instead of two separate mutexes.
1825 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1828 * include/debug/map.h (insert(_InputIterator, _InputIterator)):
1830 * testsuite/23_containers/map/insert/16813.cc: New.
1832 2004-07-29 Phil Edwards <phil@codesourcery.com>
1834 * docs/html/faq/index.html: Update version references. Make
1835 clear that code from SGI has diverged greatly. Remove references
1836 to library snapshots and what's-new sections.
1837 * docs/html/faq/index.txt: Regenerate.
1839 2004-07-28 Matt Austern <austern@apple.com>
1841 * include/bits/stl_construct.h (_Destroy): New three-argument
1842 overload that takes an allocator argument. Another inline
1843 three-argument overload that takes std::allocator and dispatches
1844 to the two-argument version.
1845 * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
1846 Change return type to void to match uninitialized_fill_n.
1847 (__uninitialized_copy_a_): New function. Like uninitialized_copy
1848 except that it takes an allocator and uses it for construct and
1849 destroy. If the allocator is std::allocator, dispatches to
1851 (__uninitialized_fill_a): Likewise.
1852 (__uninitialized_fill_n_a): Likewise.
1853 (__uninitialized_copy_copy): Give it an allocator argument.
1854 (__uninitialized_fill_copy): Likewise.
1855 (__uninitialized_copy_fill): Likewise.
1856 * include/bits/deque.tcc: Use new forms defined in stl_construct.h
1857 and stl_uninitialized.h. Replace use of single-argument _Construct
1858 and _Destroy with use of allocator's construct and destroy methods.
1859 * include/bits/list.tcc: Likewise.
1860 * include/bits/stl_deque.h: Likewise.
1861 * include/bits/stl_list.h: Likewise.
1862 * include/bits/stl_tree.h: Likewise.
1863 * include/bits/stl_vector.h: Likewise.
1864 * include/bits/vector.tcc: Likewise.
1865 * include/ext/hashtable.h: Use rebind so that allocator_type
1866 has correct type for a container's allocator. Replace use of
1867 single-argument _Construct and _Destroy with use of allocator's
1868 construct and destroy methods.
1869 * include/ext/memory (__uninitialized_copy_n_a): New function.
1870 Like uninitialized_copy_n except that it takes an extra parameter,
1871 an allocator, and uses it for construct and destroy operations.
1872 * include/ext/rope: Use new forms defined in stl_construct.h,
1873 stl_uninitialized.h, and ext/memory. Replace use of single-argument
1874 _Construct and _Destroy with allocator construct and destroy methods.
1875 * include/ext/ropeimpl.h: Likewise.
1876 * include/ext/slist.h: Likewise.
1877 * testsuite/testsuite_allocator.h (check_construct_destroy): New.
1878 * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
1879 * testsuite/23_containers/deque/check_construct_destroy.cc: New.
1880 * testsuite/23_containers/list/check_construct_destroy.cc: New.
1881 * testsuite/23_containers/set/check_construct_destroy.cc: New.
1882 * testsuite/23_containers/vector/check_construct_destroy.cc: New.
1883 * testsuite/ext/hash_check_construct_destroy.cc: New.
1884 * testsuite/ext/slist_check_construct_destroy.cc: New.
1886 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
1888 2003-10-01 Eric Christopher <echristo@redhat.com>
1889 * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
1891 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
1892 * config/cpu/sh/atomicity.h: New. Use movli and movco on SH4a.
1894 2004-07-23 Benjamin Kosnik <bkoz@redhat.com>
1897 * include/bits/locale_facets.tcc: Fix for -Werror.
1899 2004-07-23 Jonathan Wakely <redi@gcc.gnu.org>
1901 * docs/html/debug.html: Say debug mode only available since 3.4.0.
1903 2004-07-21 Benjamin Kosnik <bkoz@redhat.com>
1905 * docs/doxygen/mainpage.html: Clarify links.
1906 * docs/doxygen/stdheader.cc: Add files.
1907 * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
1908 * docs/doxygen/user.cfg.in: New options, wrap.
1910 2004-07-20 Danny Smith <dannysmith@users.sourceforge.net>
1912 * include/c_std/std_cwchar.h (wcsstr): Correct signature.
1914 2004-07-19 Benjamin Kosnik <bkoz@redhat.com>
1917 * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
1919 2004-07-17 Richard Sandiford <rsandifo@redhat.com>
1922 * scripts/create_testsuite_files: Pass -print to find.
1924 2004-07-15 Paolo Carlini <pcarlini@suse.de>
1926 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
1927 * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
1929 2004-07-15 Jakub Jelinek <jakub@redhat.com>
1932 * acinclude.m4 (glibcxx_shared_libgcc): Correct
1933 glibcxx_shared_libgcc test for multilibs.
1934 * configure: Rebuilt.
1936 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1939 * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
1940 the signature to return void, as per 20.4.4.3.
1941 * include/bits/stl_vector.h (vector::vector(size_type,
1942 const value_type&, const allocator_type&), vector::vector(size_type),
1943 vector::_M_initialize_dispatch): Adjust callers.
1944 * include/bits/vector.tcc (vector<>::_M_fill_assign,
1945 vector<>::_M_fill_insert): Likewise.
1946 * testsuite/20_util/memory/16505.cc: New.
1948 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1950 * testsuite/22_locale/locale/cons/12658_thread-1.cc,
1951 12658_thread-2.cc: Use __gnu_test::try_named_locale.
1953 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1955 * docs/html/ext/mt_allocator.html: Add docs for _Tune.
1956 * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
1957 (__mt_alloc::_S_set_options): Same.
1960 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1962 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
1964 * configure: Regenerated.
1966 2004-07-13 Paolo Carlini <pcarlini@suse.de>
1968 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
1969 to 12658_thread-1.cc and xfail.
1970 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
1971 simpler version of 12658_thread-1.cc, still failing on 3_3 and
1972 not failing on 3_4/mainline - both on single processor and
1973 multiprocessor machines.
1975 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
1977 * docs/html/abi.html: Remove non-public qualification.
1979 * include/bits/concurrence.h: Tweak comments.
1981 2004-07-11 Paolo Carlini <pcarlini@suse.de>
1983 Add wchar_t counterparts of the basic_streambbuf<char> tests.
1984 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
1985 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
1987 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
1988 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
1990 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
1991 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
1992 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
1993 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
1994 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
1996 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
1998 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
2000 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
2002 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
2003 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
2005 2004-07-11 Phil Edwards <phil@codesourcery.com>
2007 * acinclude.m4: Cosmetic shell syntax fixes.
2008 * configure.ac: Bring comment inline with reality.
2009 * configure.host: Both of the above. Move 'arm' case to right
2010 place in host_cpu switch.
2011 * aclocal.m4, configure: Regenerate.
2013 2004-07-09 Paolo Carlini <pcarlini@suse.de>
2015 Add wchar_t counterparts of the basic_stringbuf<char> tests.
2016 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
2017 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
2018 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
2019 3599.cc, 9988.cc: Likewise.
2020 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
2022 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
2024 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
2026 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
2028 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
2029 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
2030 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
2031 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
2033 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
2034 9404-1.cc: Likewise.
2035 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
2036 9404-2.cc: Likewise.
2037 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
2039 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
2040 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
2042 2004-07-08 Paolo Carlini <pcarlini@suse.de>
2044 * include/bits/gslice.h: Trivial formatting fixes.
2045 * include/bits/gslice_array.h: Likewise.
2046 * include/bits/indirect_array.h: Likewise.
2047 * include/bits/mask_array.h: Likewise.
2048 * include/bits/slice_array.h: Likewise.
2049 * include/bits/valarray_after.h: Likewise.
2050 * include/bits/valarray_array.h: Likewise.
2051 * include/bits/valarray_before.h: Likewise.
2052 * include/std/std_valarray.h: Likewise.
2054 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
2057 * include/bits/basic_string.h (basic_string::operator=): Revert.
2059 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
2061 * configure.ac (libtool_VERSION): To 6:2:0.
2062 * configure: Regenerated.
2064 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
2066 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
2069 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
2071 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
2073 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
2076 2004-07-07 Paolo Carlini <pcarlini@suse.de>
2079 * include/bits/sstream.tcc (overflow): When reallocating _M_string
2080 use an exponential grow policy.
2081 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
2082 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
2084 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
2087 * crossconfig.m4: Add in bits for djgpp.
2088 * configure: Regenerate.
2090 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
2092 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
2093 instantiation of set and multiset (functor param given as int).
2095 2004-07-04 Paolo Carlini <pcarlini@suse.de>
2097 * include/bits/basic_string.h: Trivial formatting fixes and/or
2098 const-ification of some variables.
2099 * include/bits/deque.tcc: Likewise.
2100 * include/bits/stl_algobase.h: Likewise.
2101 * include/bits/stl_bvector.h: Likewise.
2102 * include/bits/stl_construct.h: Likewise.
2103 * include/bits/stl_deque.h: Likewise.
2104 * include/bits/stl_pair.h: Likewise.
2105 * include/bits/stl_vector.h: Likewise.
2106 * include/bits/vector.tcc: Likewise.
2108 2004-07-04 Paolo Carlini <pcarlini@suse.de>
2110 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
2111 systems with no COMDAT or weak support.
2112 * testsuite/25_algorithms/copy/2.cc: Likewise.
2113 * testsuite/25_algorithms/copy/3.cc: Likewise.
2114 * testsuite/25_algorithms/copy/4.cc: Likewise.
2116 2004-07-03 Paul Brook <paul@codesourcery.com>
2118 * configure.ac: Set ABI_TWEAKS_SRCDIR.
2119 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
2120 setting atomicity_dir. Override type_cpu for arm based targets.
2121 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
2122 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
2123 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
2124 * libsupc++/vec.cc: Ditto.
2125 * config/cpu/arm/cxxabi_tweaks.h: New file.
2126 * config/cpu/generic/cxxabi_tweaks.h: New file.
2127 * */Makefile.in: Regenerate.
2128 * configure: Regenerate.
2130 2004-07-02 Paolo Carlini <pcarlini@suse.de>
2132 * include/bits/type_traits.h (_Is_normal_iterator): Move...
2133 * include/bits/cpp_type_traits.h: ... here, renamed to
2134 __is_normal_iterator and consistent with the other traits.
2135 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
2136 to the struct __copy_normal and three specializations.
2137 (__copy_backward_output_normal_iterator,
2138 __copy_backward_input_normal_iterator): Likewise, convert to
2139 the struct __copy_backward_normal and three specializations.
2140 (copy, copy_backward): Use the latter.
2141 (__copy_aux, __copy_backward_aux): Very minor tweaks.
2143 2004-07-01 Paolo Carlini <pcarlini@suse.de>
2145 * include/bits/stl_algobase.h (__copy_trivial): Remove.
2146 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
2147 __is_trivially_copyable, __are_same and __copy::copy.
2148 (__copy): Rewrite as a class template and two specializations.
2149 (__copy_ni2): Simplify, just call __copy_aux.
2151 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
2153 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
2154 for destination value type != source value type.
2156 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
2157 Per Bothner <per@bothner.com>
2158 Mohan Embar <gnustuff@thisiscool.com>
2161 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
2162 (__glibcxx_mutex): Encapsulate mutex init function into type for
2163 threaded configurations without __GTHREAD_MUTEX_INIT.
2164 (lock::lock): Make device member a reference.
2165 (lock::~lock): Same.
2166 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
2168 * src/allocator.cc: Same.
2170 2004-06-30 Brad Spencer <spencer@infointeractive.com>
2172 * include/ext/mt_allocator.h: Handle allocations at static
2173 initialization that happen before _S_options is (automatically)
2174 constructed; set _S_init even if _M_force_new is true.
2176 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
2178 * config/linker-map.gnu: Revert new exports.
2180 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
2181 Stuart Anderson <anderson@netsweng.com>
2183 * config/linker-map.gnu: Add destructor exports for abstract base
2184 classes to conform to LSB.
2186 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2187 Paolo Carlini <pcarlini@suse.de>
2189 * include/bits/cpp_type_traits.h: Add __is_pointer and
2190 __is_trivially_copyable.
2191 * include/bits/stl_algobase.h (fill, fill_n): Slightly
2192 tweak to use the latter.
2193 (__copy_backward_dispatch): Remove.
2194 (__copy_backward_aux): Rewrite to use __is_pointer and
2195 __is_trivially_copyable and __copy_backward::copy_b.
2196 (__copy_backward): Rewrite as a class template and two
2199 2004-06-30 Paolo Carlini <pcarlini@suse.de>
2201 * testsuite/25_algorithms/copy.cc: Move to...
2202 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
2203 * testsuite/25_algorithms/copy/2.cc: New.
2204 * testsuite/25_algorithms/copy/3.cc: New.
2205 * testsuite/25_algorithms/copy/4.cc: New.
2207 2004-06-29 Paul Brook <paul@codesourcery.com>
2209 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
2210 element size in the cookie.
2212 2004-06-28 Paolo Carlini <pcarlini@suse.de>
2214 * include/bits/cpp_type_traits.h: Move the additions to
2215 namespace __gnu_internal outside of namespace std; trivial
2218 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
2220 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
2221 Revert -Weffc++ changes that defined copy ctory and or assignment
2223 * libsupc++/tinfo.cc (__upcast_result): Same.
2225 2004-06-28 Paolo Carlini <pcarlini@suse.de>
2227 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
2228 the algorithm used to name the categories.
2230 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
2232 * include/Makefile.am: Give a .gch extension to
2233 the PCH files, not only to the directory.
2234 * include/Makefile.in: Regenerate.
2236 2004-06-28 Paolo Carlini <pcarlini@suse.de>
2238 * config/locale/gnu/monetary_members.cc
2239 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
2240 assignments of _M_decimal_point and _M_thousands_sep.
2242 2004-06-27 Paolo Carlini <pcarlini@suse.de>
2244 * docs/html/17_intro/contribute.html: Update some links.
2245 * docs/html/17_intro/porting-howto.html: Likewise.
2246 * docs/html/17_intro/porting-howto.xml: Likewise.
2247 * docs/html/18_support/howto.html: Likewise.
2248 * docs/html/21_strings/howto.html: Likewise.
2249 * docs/html/27_io/howto.html: Likewise.
2250 * docs/html/configopts.html: Likewise.
2251 * docs/html/ext/howto.html: Likewise.
2252 * docs/html/faq/index.html: Likewise.
2253 * docs/html/install.html: Don't mention 2.x compilers.
2255 2004-06-27 Paolo Carlini <pcarlini@suse.de>
2257 * include/ext/rope: Trivial formatting fixes.
2258 * include/ext/ropeimpl.h: Likewise.
2260 2004-06-26 Paolo Carlini <pcarlini@suse.de>
2263 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
2264 availability of strto(u)ll, not used anymore in the iostreams.
2265 * configure: Regenerate.
2267 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
2270 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
2272 * configure: Regenerate.
2274 2004-06-25 Paul Brook <paul@codesourcery.com>
2276 * libsupc++/cxxabi.h: Define __ARM_EABI__
2278 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
2280 2004-06-25 Paul Brook <paul@codesourcery.com>
2282 * include/bits/concurrence.h: Still create mutex object when
2285 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2287 * include/bits/stl_algobase.h (fill, fill_n): Revert last
2288 change: actually we need to copy construct an object of type
2289 _Tp, not of type iterator_traits<>::value_type, therefore the
2292 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2294 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
2295 dispatch: use iterator_traits<>::value_type, not _Tp.
2297 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2299 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
2300 * testsuite/25_algorithms/fill/2.cc: Likewise.
2302 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
2303 Paolo Carlini <pcarlini@suse.de>
2305 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
2306 for fill and fill_n, respectively: when copying is cheap, use a
2307 temporary to avoid a memory read in each iteration.
2309 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2311 * testsuite/25_algorithms/fill/1.cc: New.
2312 * testsuite/25_algorithms/fill/2.cc: Likewise.
2314 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
2316 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
2317 Remove copy constructor and assignment operator.
2319 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
2321 * include/bits/concurrence.h (__gnu_cxx::lock): New.
2322 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
2323 (__pool_base::_M_get_mutex): New.
2324 * include/bits/allocator.h: Tweak.
2325 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
2326 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
2327 * include/bits/stl_threads.h: Remove.
2328 * include/Makefile.am: Also here.
2329 * include/Makefile.in: Regenerate.
2331 * src/locale_init.cc: Use __gnu_cxx::lock.
2333 * src/allocator.cc: Move all instantiations...
2334 * src/allocator-inst.cc: ...here.
2336 2004-06-23 Andrew Pinski <apinski@apple.com>
2338 * linkage.m4: Remove check for libmx.
2339 * configure: Regenerate.
2341 2004-06-23 Paolo Carlini <pcarlini@suse.de>
2344 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
2345 Don't require the _DefaultConstructibleConcept.
2346 (struct _ForwardIteratorConcept): Require it here.
2348 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
2350 * include/bits/istream.tcc (getline): Make sure arguments passed
2351 to min/max have the same type.
2352 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
2353 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
2355 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
2357 * docs/html/abi.html: Update links.
2359 2004-06-22 Paolo Carlini <pcarlini@suse.de>
2361 * testsuite/26_numerics/complex_inserters_extractors.cc,
2362 complex_value.cc, buggy_complex.cc: Move to...
2363 * testsuite/26_numerics/complex/: ... here.
2364 * testsuite/26_numerics/c99_classification_macros_c++.cc,
2365 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
2366 fabs_inline.cc: Move to...
2367 * testsuite/26_numerics/cmath/: ... here.
2368 * testsuite/26_numerics/binary_closure.cc, slice.cc,
2369 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
2370 valarray_name_lookup.cc, valarray_operators.cc,
2371 valarray_subset_assignment.cc: Move to...
2372 * testsuite/26_numerics/valarray/: ... here (new dir).
2373 * testsuite/26_numerics/sum_diff.cc: Move to...
2374 * testsuite/26_numerics/numeric/: ... here (new dir).
2376 2004-06-22 Paolo Carlini <pcarlini@suse.de>
2378 * include/std/std_istream.h (ignore(streamsize __n = 1,
2379 int_type __delim = traits_type::eof())): Split into...
2380 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2381 int_type __delim)): The first two can be much more simpler
2382 and efficient than the fully general case; also, the last
2383 two can take advantage of the same mechanism already used
2385 * include/bits/istream.tcc (ignore(streamsize __n = 1,
2386 int_type __delim = traits_type::eof()): Remove.
2387 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2388 int_type __delim)): New.
2390 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
2392 * config/linker-map.gnu: Use wildcards for
2393 __basic_file::sys_open(FILE*, _Ios_Openmode).
2395 2004-06-20 Paolo Carlini <pcarlini@suse.de>
2397 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
2399 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2401 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
2402 the alignment requested.
2403 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
2404 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
2405 (__mt_alloc<>::deallocate): Likewise.
2407 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2410 * include/debug/safe_base.h
2411 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
2412 _Safe_sequence_base::operator=): Provide definitions.
2413 * testsuite/23_containers/bitset/cons/16020.cc: New.
2415 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
2417 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
2418 (__pool_base): Remove unused template parameter. Add
2419 protected. Move lock data into __pool_base::_Lock. Remove static
2420 on member functions.
2421 (__pool_base::_M_get_free_list): New.
2422 (__pool_alloc): Move _S_force new here.
2423 * src/allocator.cc: Move out of line __pool_base definitions here.
2424 * config/linker-map.gnu: Export bits from __pool_base.
2426 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2428 * config/locale/gnu/numeric_members.cc
2429 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
2430 assignments of _M_decimal_point and _M_thousands_sep.
2431 * config/locale/gnu/time_members.cc
2432 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
2433 and reformat assignments of date and time fields.
2435 2004-06-16 Paolo Carlini <pcarlini@suse.de>
2437 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
2438 to use _Data_allocate.
2439 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
2440 (rope<>::_S_substring): Likewise.
2441 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
2442 (rope<>::c_str()): Likewise.
2443 (rope<>::replace_with_c_str()): Likewise.
2445 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
2446 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
2448 (_Rope_iterator_base<>::_S_setcache): Likewise.
2449 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
2450 (rope<>::_S_substring): Likewise.
2451 (rope<>::_S_dump): Likewise.
2452 (rope<>::_S_fetch_ptr): Likewise.
2453 (rope<>::_S_compare): Likewise.
2454 (rope<>::replace_with_c_str()): Likewise.
2456 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
2457 * testsuite/ext/rope/2.cc: New.
2459 2004-06-16 Paolo Carlini <pcarlini@suse.de>
2460 Matt Austern <austern@apple.com>
2462 * testsuite/ext/rope/3.cc: New.
2464 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
2466 * acinclude.m4: Remove useless multilib configury.
2467 * Makefile.am: Remove useless multilib rules.
2468 * aclocal.m4: Regenerate.
2469 * Makefile.in: Regenerate.
2470 * configure: Regenerate.
2472 2004-06-15 Paolo Carlini <pcarlini@suse.de>
2474 * include/ext/hashtable.h: Trivial formatting fixes.
2475 * include/ext/rb_tree: Likewise.
2477 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2479 * include/ext/hash_map: Trivial formatting fixes.
2480 * include/ext/hash_set: Likewise.
2481 * include/ext/memory: Likewise.
2482 * include/ext/numeric: Likewise.
2484 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
2486 * Makefile.in: Regenerate with automake 1.8.5.
2488 * include/Makefile.in: Same.
2489 * libmath/Makefile.in: Same.
2490 * libsupc++/Makefile.in: Same.
2491 * po/Makefile.in: Same.
2492 * src/Makefile.in: Same.
2493 * testsuite/Makefile.in: Same.
2495 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2497 * include/ext/slist: Trivial formatting fixes.
2499 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2501 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
2502 Don't use the 'magic number' 10 in the computation of __minlen;
2503 never access __name past __minlen; in the loop over __i3, don't
2504 decrease __nmatches and increase __i3 at once, only either of
2507 2004-06-13 Paolo Carlini <pcarlini@suse.de>
2509 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
2510 time_get<>::do_get_date): Use only once _M_extract_via_format,
2511 instead of going through "%X"/"%x" and calling it two times
2514 2004-06-12 Paolo Carlini <pcarlini@suse.de>
2516 * include/ext/algorithm: Trivial formatting fixes.
2517 * include/ext/functional: Likewise.
2518 * include/ext/hash_fun.h: Likewise.
2519 * include/ext/iterator: Likewise.
2521 2004-06-12 Paolo Carlini <pcarlini@suse.de>
2523 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
2524 size_type)): Reimplement using std::search.
2525 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
2527 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
2529 * testsuite/performance/21_strings/string_find.cc: New.
2531 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
2533 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
2535 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
2537 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
2538 this function return a value.
2540 2004-06-09 Paolo Carlini <pcarlini@suse.de>
2543 * include/bits/stl_deque.h: Consistently with stl_set.h, define
2544 pointer as allocator's pointer, likewise for reference,
2545 const_pointer, and const_reference.
2546 * include/bits/stl_list.h: Likewise.
2547 * include/bits/stl_map.h: Likewise.
2548 * include/bits/stl_multimap.h: Likewise.
2549 * include/bits/stl_vector.h: Likewise.
2551 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
2553 * crossconfig.m4: Remove signbit, signbitf, signbitl.
2554 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
2555 builtin math functions instead of AC_DEFINE_UNQUOTED.
2556 * configure: Regenerate.
2558 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
2560 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
2561 * docs/doxygen/mainpage.html: Remove links.
2563 2004-06-08 Jason Merrill <jason@redhat.com>
2565 * config/linker-map.gnu: Use wildcards for
2566 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
2568 2004-06-08 Paolo Carlini <pcarlini@suse.de>
2570 * include/ext/pool_allocator.h: Convert to a global free-list,
2571 as per the original SGI/HP design: move the implementation
2572 details to struct __pool_base, from which __pool_alloc derives.
2573 * src/allocator.cc: Instantiate __pool_base.
2575 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
2576 Paolo Carlini <pcarlini@suse.de>
2578 * testsuite/testsuite_performance.h
2579 (resource_counter::allocated_memory): Make it return the right
2580 number of bytes requested by the allocators/application. This is
2581 the sbrk+mmaped memory.
2583 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
2585 * include/std/std_complex.h (log): Tidy.
2587 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
2589 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
2590 * testsuite/testsuite_abi.cc: Same.
2591 * configure.ac (libtool_VERSION): Bump to 6:1:0.
2592 * configure: Regenerate.
2593 * aclocal.m4: Regenerate.
2595 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2597 * include/std/std_complex.h (complex<_Tp>): Properly indent
2599 (complex<>::__rep): New.
2600 (__complex_abs): New. Dispatch to built-ins.
2602 (__complex_arg): New. Dispatch to built-ins.
2604 (__complex_cos): New. Dispatch to built-ins.
2606 (__complex_cosh): New. Dispatch to built-ins.
2608 (__complex_exp): New. Dispatch to built-ins.
2610 (__complex_log): New. Dispatch to built-ins.
2612 (__complex_sin): New. Dispatch to built-ins.
2614 (__complex_sinh): New. Dispatch to built-ins.
2616 (__complex_sqrt): New. Dispatch to built-ins.
2618 (__complex_tan): New. Dispatch to built-ins.
2620 (__complex_tanh): New. Dispatch to built-ins.
2622 (__complex_pow): New. Dispatch to built-ins.
2625 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
2626 Benjamin Kosnik <bkoz@redhat.com>
2629 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
2630 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
2631 * config/io/basic_file_stdio.cc (__basic_file::file): New.
2632 * config/io/basic_file_stdio.h: Define.
2634 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
2637 * docs/html/documentation.html: Update doxygen links for 3.4.0.
2639 2004-05-27 Jan Beulich <jbeulich@novell.com>
2641 * scripts/create_testsuite_files: Tweak.
2643 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
2646 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
2647 bits to do the same thing.
2649 2004-05-24 Paolo Carlini <pcarlini@suse.de>
2651 * include/bits/istream.tcc (ignore): Correctly deal with
2652 n == numeric_limits<streamsize>::max().
2653 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
2655 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
2656 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
2657 __n == numeric_limits<>::min().
2659 * include/bits/istream.tcc: Minor tweaks.
2661 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2663 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2665 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2667 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2669 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2671 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2674 Fixups for -Weffc++.
2675 * include/bits/basic_string.h (basic_string::operator=): Return
2676 pointer to this instead of result of assign. Although redundant,
2677 this doesn't impact resultant codegen.
2679 * include/bits/locale_facets.h (__numpunct_cache): Declare
2680 assignment opxserator and copy constructor private.
2681 (__timepunct_cache): Same.
2682 (__moneypunct_cache): Same.
2683 (collate): Use member initialization list for _M_c_locale_collate.
2684 * config/locale/gnu/messages_members.h: Same.
2685 * config/locale/gnu/time_members.h (__timepunct): Same.
2686 * src/codecvt.cc: Use member initialization list to initialize
2687 _M_c_locale_codecvt.
2688 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
2689 * config/os/gnu-linux/ctype_noninline.h: Same.
2690 * src/locale.cc (_Impl): Same.
2691 * src/locale_init.cc: Same.
2692 * src/localename.cc: Same.
2694 * include/bits/basic_ios.h (basic_ios): Complete member
2695 initialization list.
2696 * include/bits/istream.tcc (basic_istream::sentry): Same.
2697 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
2698 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
2699 _M_pback to member initialization list.
2700 * include/std/std_streambuf.h: Same.
2701 * include/std/std_sstream.h: Same, for _M_mode.
2702 * src/ios.cc (ios_base): Same.
2704 * include/ext/rope: Make derived classes match exception
2706 specifications. Add copy constructors and assignment operators.
2708 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
2709 constructor and assignment operator protected.
2710 (_Safe_iterator_base): Same.
2711 * include/debug/formatter.h (_Error_formatter): Define copy
2712 constructor and assignment operator.
2714 * include/backward/strstream: Declare assignment operator and copy
2715 constructor private.
2717 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2719 * testsuite/testsuite_hooks.h (func_callback): Declare copy
2720 constructor and assignment operator private.
2721 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
2722 exception specifications of base class.
2723 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
2724 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
2725 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2727 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2729 * libsupc++/cxxabi.h: Remove duplicated and useless public and
2730 private keywords in class declarations. Format. Use
2731 stddef.h. Expose declarations to "C" compilation.
2732 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
2733 assignment operator.
2734 (__dyncast_result): Same.
2735 * libsupc++/vec.cc (uncatch_exception): Same, use member
2736 initialization list.
2738 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2740 * testsuite/abi_check.cc: Add unistd.h.
2742 2004-05-22 Paolo Carlini <pcarlini@suse.de>
2745 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
2746 __int_to_char(unsigned long long)): Showpos is not relevant
2748 * testsuite/22_locale/num_put/put/char/15565.cc: New.
2749 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
2751 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
2753 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
2754 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
2755 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2756 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
2757 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
2758 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
2760 2004-05-21 Matthias Klose <doko@debian.org>
2762 * docs/doxygen/run_doxygen: Bump required version.
2764 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
2766 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
2767 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
2769 2004-05-21 Paolo Carlini <pcarlini@suse.de>
2771 * include/bits/istream.tcc (ignore): Remove redundant line.
2772 (readsome): Tidy, closely following 27.6.1.3, p30.
2774 2004-05-20 Paolo Carlini <pcarlini@suse.de>
2776 * include/bits/istream.tcc (operator>>(basic_istream<>&,
2777 basic_string<>&)): Use a temporary buffer, thus avoiding
2778 reallocation for common case.
2779 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2781 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2784 * include/bits/istream.tcc: Const-ification of a few variables.
2786 * include/bits/ostream.tcc: Trivial formatting fixes and
2787 const-ification of some variables.
2789 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
2793 * docs/doxygen/Intro.3: Remove Allocators.3.
2794 Add new extension headers, extension namespace list.
2795 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
2796 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
2797 __gnu_debug::. Remove __policy_ renames.
2798 * docs/doxygen/guide.html: Add dot note.
2799 * docs/doxygen/stdheader.cc: Edit, add files.
2800 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
2802 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2804 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
2806 2004-05-18 Jan Beulich <jbeulich@novell.com>
2809 * scripts/create_testsuite_files: Also find source files through
2812 2004-05-18 Jan Beulich <jbeulich@novell.com>
2815 * testsuite/lib/libstdc++.exp: Make test files writable.
2817 2004-05-18 Paolo Carlini <pcarlini@suse.de>
2819 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
2822 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
2824 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
2825 allocation loop which removes blocks from the global free list
2826 from O(N) to O(1) when the required blocks are <= the number
2829 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2831 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
2833 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
2835 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
2836 * testsuite/23_containers/deque/14340.cc: New.
2837 * testsuite/23_containers/list/14340.cc: New.
2838 * testsuite/23_containers/map/14340.cc: New.
2839 * testsuite/23_containers/multimap/14340.cc: New.
2840 * testsuite/23_containers/multiset/14340.cc: New.
2841 * testsuite/23_containers/set/14340.cc: New.
2842 * testsuite/23_containers/vector/14340.cc: New.
2844 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
2847 * include/debug/safe_iterator.h (_Safe_iterator converting
2848 constructor): Only allow declaration to instantiate when the
2849 incoming _Safe_iterator has exactly the right iterator type.
2851 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
2853 * include/bits/boost_concept_check.h: Fix old attribute syntax.
2854 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
2855 to pass concept-checks.
2856 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2857 * testsuite/23_containers/set/modifiers/swap.cc: Same.
2858 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2860 2004-05-16 Paolo Carlini <pcarlini@suse.de>
2862 * include/std/std_bitset.h: Minor formatting fixes.
2864 2004-05-16 Paolo Carlini <pcarlini@suse.de>
2866 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2867 Consistently update __bin._M_free[0].
2868 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
2869 __bin._M_free[0] to simplify the while loop (i.e., the number
2870 of iterations becomes known at the outset).
2872 2004-05-15 Paolo Carlini <pcarlini@suse.de>
2874 * include/std/std_bitset.h: Trivial formatting fixes.
2876 2004-05-14 Paolo Carlini <pcarlini@suse.de>
2877 Ivan Godard <igodard@pacbell.net>
2880 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
2881 * testsuite/23_containers/bitset/ext/15361.cc: New.
2883 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2886 * crossconfig.m4: Add C99 math bits for linux crosses.
2887 * configure: Regenerate.
2889 2004-05-13 Simon Marshall <simon.marshall@misys.com>
2890 Benjamin Kosnik <bkoz@redhat.com>
2893 * include/bits/locale_facets.h: Fix for -fno-for-scope.
2894 * include/debug/safe_sequence.h: Same.
2895 * include/debug/safe_iterator.tcc: Same.
2896 * src/debug.cc: Same.
2897 * src/locale.cc: Same.
2898 * src/locale_init.cc: Same.
2899 * src/localename.cc: Same.
2900 * config/locale/gnu/ctype_members.cc: Same.
2901 * config/locale/gnu/numeric_members.cc: Same.
2902 * testsuite/testsuite_abi.cc: Same.
2903 * testsuite/testsuite_hooks.cc: Same.
2905 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
2907 * docs/html/abi.html: Document effect of -fabi-version on value
2908 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
2911 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2914 * docs/html/faq/index.html: Update docs for libsupc++ usage.
2916 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2919 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
2921 (_GLIBCXX_mutex_address): Same.
2922 (_GLIBCXX_once): Same.
2923 (_GLIBCXX_mutex_init): Same.
2924 (_GLIBCXX_mutex_address_init): Same.
2926 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2928 * docs/html/abi.html: New.
2929 * docs/html/abi.txt: Remove.
2930 * docs/html/documentation.html: Add link.
2931 * testsuite/Makefile.am: Add files.
2932 * testsuite/Makefile.in: Regenerated.
2933 * testsuite/abi_check.cc: Move and modify code into...
2934 * testsuite/testsuite_abi.cc: Add.
2935 * testsuite/testsuite_abi.h: Add.
2937 * docs/html/17_intro/TODO: Update.
2938 * include/bits/stl_pair.h: Format.
2940 2004-05-06 Matthias Klose <doko@debian.org>
2942 * include/backward/iterator.h: Add GPL copyright info,
2943 with exception clause.
2944 * include/bits/boost_concept_check.h: Likewise.
2946 * libsupc++/tinfo.h: Likewise.
2947 * po/string_literals.cc: Likewise.
2949 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
2951 * acinclude.m4: Replace -W with more speaking -Wextra.
2952 * configure: Rebuilt.
2954 2004-05-03 Paolo Carlini <pcarlini@suse.de>
2956 Optimize locale::_M_impl->_M_names for the most common cases:
2957 !_M_names[0] means unnamed; !_M_names[1] means all the categories
2958 the same name (_M_names[0] && _M_names[1] means that the full set
2959 of _M_names must be processed, the general case).
2960 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
2961 Tweak, saving work when !_M_names[1].
2962 (locale::locale(const locale&, _Facet*): Simplify: now just setting
2963 _M_names[0] = 0 means unnamed.
2964 * src/locale.cc (locale::operator==): Deal first with the common,
2965 easy cases, otherwise fall back to locale::name().
2966 (locale::name()): Tweak, if !_M_names[0] just return "*".
2967 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
2968 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
2969 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
2970 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
2971 Simplify when !std::strchr, just updating _M_names[0]; clean up.
2972 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
2973 for the general case (full set of names), then do the usual work;
2976 * src/locale.cc (locale::name()): Reserve space in __ret.
2977 * src/locale_init.cc (locale::global(const locale&)): Save
2978 the name in a temporary.
2979 * src/localename.cc (locale::locale(const char*)): Reserve space
2982 2004-04-29 Paolo Carlini <pcarlini@suse.de>
2984 * src/locale.cc (locale::operator==): Always avoid constructing
2985 locale::name(), directly compare pairs of _M_names.
2987 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2989 * include/bits/istream.tcc: Fix comment.
2991 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2993 * include/bits/stl_vector.h: Trivial formatting fixes.
2994 * include/bits/vector.tcc: Likewise.
2996 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2998 PR libstdc++/15002 (continued again)
2999 * include/bits/istream.tcc (getline(basic_istream<>&,
3000 basic_string<>&, _CharT)): Use a temporary buffer, thus
3001 avoiding reallocation for common case.
3003 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3004 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
3005 of temporary buffer to a power of two.
3007 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
3009 2004-04-25 Paolo Carlini <pcarlini@suse.de>
3011 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
3013 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
3015 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
3017 2004-04-24 Paolo Carlini <pcarlini@suse.de>
3018 Petur Runolfsson <peturr02@ru.is>
3020 PR libstdc++/15002 (continued)
3021 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
3022 streamsize, char_type)): Use traits::find/copy in a loop to speed
3023 up greatly the function in the common case (I/O buffer size >> 1).
3025 2004-04-24 Paolo Carlini <pcarlini@suse.de>
3027 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
3029 * include/bits/istream.tcc (getline(basic_istream<>&,
3030 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
3031 of sbumpc(), consistently with the other functions, thus also
3032 dealing correctly with the case of exceeded string::max_size().
3034 2004-04-24 Matthias Klose <doko@debian.org>
3036 Jonathan Wakely <cow@compsoc.man.ac.uk>
3037 * docs/html/configopts.html: Fix reference to allocator config option.
3039 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
3041 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
3042 * configure: Regenerate.
3044 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
3046 PR libstdc++/15047, libstdc++/11610
3047 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
3048 (libstdc++_init): Don't pass outdir to v3-copy-files.
3050 2004-04-21 Paolo Carlini <pcarlini@suse.de>
3052 * include/bits/deque.tcc: Trivial formatting fixes.
3053 * include/bits/stl_deque.h: Likewise.
3054 * include/bits/stl_list.h: Likewise.
3055 * include/bits/stl_tree.h: Likewise.
3057 2004-04-21 Paolo Carlini <pcarlini@suse.de>
3058 Andrew Pinski <pinskia@physics.uc.edu>
3060 * include/bits/basic_string.tcc (_M_mutate): Don't compute
3061 __src unnecessarily.
3063 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
3065 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
3066 Clarify assertion, set test variable to false before assert.
3067 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
3068 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
3069 * testsuite/27_io/ios_base/storage/2.cc: Same.
3071 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
3073 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
3074 * testsuite/27_io/fpos/14320-3.cc: Same.
3076 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
3077 * testsuite/27_io/fpos/1.cc: Same.
3078 * testsuite/27_io/basic_stringstream/2.cc: Same.
3079 * testsuite/27_io/basic_stringbuf/4.cc: Same.
3080 * testsuite/27_io/basic_stringbuf/1.cc: Same.
3081 * testsuite/27_io/basic_stringbuf/2.cc: Same.
3082 * testsuite/27_io/basic_streambuf/2.cc: Same.
3083 * testsuite/27_io/basic_ostringstream/2.cc: Same.
3084 * testsuite/27_io/basic_ostream/2.cc: Same.
3085 * testsuite/27_io/basic_ofstream/2.cc: Same.
3086 * testsuite/27_io/basic_istringstream/2.cc: Same.
3087 * testsuite/27_io/basic_istream/2.cc: Same.
3088 * testsuite/27_io/basic_iostream/2.cc: Same.
3089 * testsuite/27_io/basic_ios/2.cc: Same.
3090 * testsuite/27_io/basic_ifstream/2.cc: Same.
3091 * testsuite/27_io/basic_fstream/2.cc: Same.
3092 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
3094 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
3095 unsigned against zero.
3096 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
3097 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
3099 * testsuite/18_support/new_delete_placement.cc: Initialize
3100 variables before first use.
3101 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
3102 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
3103 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
3104 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
3106 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
3107 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
3109 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
3110 * testsuite/27_io/types/2.cc: Same.
3112 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
3114 * testsuite/27_io/fpos/14775.cc: Same.
3116 2004-04-19 Paolo Carlini <pcarlini@suse.de>
3118 PR libstdc++/15002 (partial)
3119 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
3120 Special case __n2 == 1, not calling traits_type::assign/copy.
3122 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
3124 * include/bits/stl_bvector.h: Use _M_impl._M_start.
3126 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
3128 * include/bits/c++config (_GLIBCXX_STD): New.
3129 * src/list.cc: Use it.
3130 * include/std/std_bitset.h: Same.
3131 * include/bits/vector.tcc: Same.
3132 * include/bits/stl_set.h: Same.
3133 * include/bits/stl_multiset.h: Same.
3134 * include/bits/stl_multimap.h: Same.
3135 * include/bits/stl_map.h: Same.
3136 * include/bits/stl_list.h: Same.
3137 * include/bits/stl_vector.h: Same.
3138 * include/bits/stl_bvector.h: Same.
3139 * include/bits/stl_deque.h: Same.
3140 * include/bits/deque.tcc: Same.
3141 * include/bits/list.tcc: Same.
3142 * include/debug/vector: Same.
3143 * include/debug/set.h: Same.
3144 * include/debug/multiset.h: Same.
3145 * include/debug/multimap.h: Same.
3146 * include/debug/map.h: Same.
3147 * include/debug/list: Same.
3148 * include/debug/deque: Same.
3149 * include/debug/bitset: Same.
3150 * include/debug/formatter.h (__gnu_debug): Remove using directive.
3151 Add using declaration for std::type_info.
3152 * include/debug/safe_iterator.h: Add using declaration for
3153 std::iterator_traits and std::pair.
3154 * src/debug_list.cc: New.
3155 * src/Makefile.am: Add debug_list.cc.
3156 * src/Makefile.in: Regenerate.
3157 * config/linker-map.gnu: Add _List_node_base exports for std and
3160 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
3161 idiom that other containers use.
3162 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
3164 2004-04-16 Paolo Carlini <pcarlini@suse.de>
3167 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
3169 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
3170 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
3172 2004-04-16 Paolo Carlini <pcarlini@suse.de>
3174 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
3176 * config.h.in: Regenerate.
3178 2004-04-16 Paolo Carlini <pcarlini@suse.de>
3180 * config/locale/generic/monetary_members.cc
3181 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
3182 btowc unnecessarily, just cast to wchar_t (the concerned chars
3183 all belong to the basic character set).
3184 * config/locale/generic/numeric_members.cc
3185 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
3186 * config/locale/gnu/monetary_members.cc
3187 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
3188 * config/locale/gnu/numeric_members.cc
3189 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
3191 2004-04-15 Paolo Carlini <pcarlini@suse.de>
3193 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
3194 avoid constructing unnecessarily this->name().
3196 2004-04-14 Zack Weinberg <zack@codesourcery.com>
3198 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
3199 Change definition of CXX to use $(shell) instead of backticks.
3200 * testsuite/Makefile.in: Regenerate.
3202 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
3204 * testsuite/performance/20_util/allocator/list_sort_search.cc:
3205 Minor formatting fixes.
3206 * testsuite/performance/20_util/allocator/map_mt_find.cc:
3209 2004-04-12 Paolo Carlini <pcarlini@suse.de>
3211 * config/locale/gnu/numeric_members.cc
3212 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
3213 in __uselocale, since btowc is called for chars belonging to
3214 the basic character set.
3216 2004-04-09 Paolo Carlini <pcarlini@suse.de>
3218 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
3219 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
3220 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
3221 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
3222 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
3223 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
3224 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
3225 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
3226 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
3227 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
3228 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
3229 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
3230 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
3231 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
3232 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
3233 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
3234 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
3236 2004-04-07 Paolo Carlini <pcarlini@suse.de>
3238 * config/locale/generic/time_members.cc
3239 (__timepunct<char>::_M_initialize_timepunct,
3240 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
3241 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
3242 * config/locale/gnu/time_members.cc
3243 (__timepunct<char>::_M_initialize_timepunct,
3244 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
3245 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
3246 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
3248 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
3249 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
3250 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
3251 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
3252 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
3253 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
3254 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
3255 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
3256 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
3257 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
3258 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
3259 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
3260 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
3261 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
3262 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
3263 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
3264 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
3265 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
3266 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
3267 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
3268 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
3269 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
3270 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
3271 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
3272 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
3273 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
3274 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
3275 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
3276 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
3277 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
3278 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
3279 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
3280 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
3281 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
3282 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
3283 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
3285 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
3287 2004-04-07 Paolo Carlini <pcarlini@suse.de>
3289 * config/locale/gnu/monetary_members.cc
3290 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
3291 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
3292 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
3293 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
3294 * config/locale/gnu/numeric_members.cc
3295 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
3296 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
3298 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
3300 Fixups for EDG front end.
3301 * include/ext/rope: Instead of non-existent function
3302 _Data_allocate, use allocator's allocate. Use this.
3303 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
3304 enumerations from _Rope_RopeRep here.
3305 * include/ext/ropeimpl.h: Same.
3306 * src/ext-inst.cc (_S_min_len): Fix up definition.
3308 * config/locale/gnu/ctype_members.cc: Qualify base class members
3310 * config/locale/generic/ctype_members.cc: Same.
3311 * config/locale/gnu/messages_members.h: Same.
3312 * config/locale/generic/messages_members.h: Same.
3313 * src/ctype.cc: Same.
3314 * include/bits/codecvt.h: Same.
3316 * include/bits/boost_concept_check.h: Declare.
3317 (__error_type_must_be_an_unsigned_integer_type): Remove this.
3318 (__error_type_must_be_an_integer_type): Remove this.
3319 (__error_type_must_be_a_signed_integer_type): Remove this.
3321 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
3323 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
3324 specification to definition.
3325 (__cxa_allocate_exception): Same.
3326 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
3327 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
3328 (__cxa_get_globals): Same.
3330 * libsupc++/del_op.cc: Add comment about freestanding.
3332 2004-04-05 Paolo Carlini <pcarlini@suse.de>
3334 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3335 The critical section is actually very small, only two assignments.
3337 2004-04-04 Paolo Carlini <pcarlini@suse.de>
3338 Petur Runolfsson <peturr02@ru.is>
3340 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
3341 adapted from libstdc++/11378.
3343 2004-04-03 Paolo Carlini <pcarlini@suse.de>
3345 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
3346 some duplicated code.
3347 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
3348 in the single threaded case.
3349 * testsuite/performance/20_util/allocator/list_sort_search.cc:
3350 Reorder and renumber the tests consistently with the other testfiles.
3351 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3352 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3353 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3355 2004-04-02 Paolo Carlini <pcarlini@suse.de>
3357 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3358 Rearrange arithmetic to avoid computing two divisions at
3361 2004-04-01 Paolo Carlini <pcarlini@suse.de>
3363 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
3364 Streamline the second half, wrapping it in a single
3365 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
3366 conditionals inside loops.
3368 2004-04-01 Paolo Carlini <pcarlini@suse.de>
3371 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
3372 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
3373 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
3374 to _GLIBCXX_RES_LIMITS.
3375 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
3377 * testsuite/testsuite_hooks.h: Declare set_file_limit.
3378 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
3379 and setrlimit(RLIMIT_FSIZE).
3380 * testsuite/27_io/fpos/14775.cc: New.
3381 * config.h.in: Regenerate.
3382 * configure: Likewise.
3384 2004-03-31 Paolo Carlini <pcarlini@suse.de>
3386 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
3387 In v3 uses of sscanf, the special floating-point numbers INF,
3388 INFINITY, etc., cannot occur in input, therefore, if the latter
3389 is too large, ERANGE is always stored in errno, no need of finitel.
3391 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
3394 * include/bits/stl_tree.h: Adjust initialization list order.
3396 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
3398 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
3400 2004-03-29 Paolo Carlini <pcarlini@suse.de>
3402 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
3403 on allocator behavior, the memory pointed by data2 may well be not
3406 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
3409 * include/bits/basic_string.tcc
3410 (basic_string::basic_string(const basic_string&)): Pass to
3411 _Rep::_M_grab the actual allocator of the string being constructed
3412 not the default constructed one.
3414 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
3417 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
3418 (__enc_traits::_M_destroy): New.
3419 (__enc_traits::~__enc_traits): Use it.
3420 (__enc_traits::operator=): Use _M_destroy, _M_init.
3421 (__enc_traits::__enc_traits): Same.
3423 2004-03-27 Petur Runolfsson <peturr02@ru.is>
3425 * testsuite/ext/enc_filebuf/char/13598.cc: New.
3427 2004-03-27 Paolo Carlini <pcarlini@suse.de>
3429 * include/ext/mt_allocator.h: Uglify consistently names of
3430 variables, members and classes; tidy.
3432 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
3434 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3435 Deallocation loop rewrote.
3437 2004-03-26 Paolo Carlini <pcarlini@suse.de>
3439 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3440 __mt_alloc<>::deallocate): Protect two instances of
3441 block->thread_id with __GTHREADS.
3443 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
3445 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
3446 default argument in constructors.
3447 (_Rb_tree::_M_empty_initialize): Remove.
3449 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
3451 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
3452 * testsuite/23_containers/set/operators/1_neg.cc: Same.
3454 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3456 * include/bits/cpp_type_traits.h: Changed __is_pod
3457 completely. Now, it does not use any of the previous type_traits
3458 to detect the pod types, and it also detects function pointers as
3461 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
3462 which encapsulates the internal implementation of an rb_tree. Made
3463 the allocator a base class of this class instead of the rb_tree,
3464 which was not conforming. This _Rb_tree_impl class is also
3465 specialized on whether the _Compare parameter is a POD type or
3466 not. If so, then it maintains the comparison function as a data
3467 member, otherwise it makes the _Compare parameter a base class of
3468 itself. Also, _M_key_compare is now a function instead of a data
3469 member, so that the above trick can work properly. Delegated the
3470 initialization of the other data members to this newly created
3471 class. Also, now other member functions of rb_tree must refer to
3472 _M_key_compare as _M_impl._M_key_compare(). The other data members
3473 (*) can be referenced to as _M_impl.(*), where
3474 (*) includes _M_header, and _M_node_count.
3476 2004-03-25 Paolo Carlini <pcarlini@suse.de>
3478 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
3479 Add _M_min_bin, the size in bytes of the smallest bin.
3480 (__mt_alloc<>::tune()): Tweak accordingly.
3481 (__mt_alloc<>::tune(size_t, ...)): Likewise.
3482 (__mt_alloc<>::block_record): Change to a union: members next
3483 and thread_id are never used at the same time.
3484 (__mt_alloc<>::allocate): Update consistently.
3485 (__mt_alloc<>::deallocate): Likewise.
3486 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
3487 _S_bin_size for the configurable _M_min_size.
3489 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3491 * include/bits/stl_list.h: Created a _List_impl class and made it
3492 derive from the allocator, instead of the list deriving from the
3493 allocator class, which was not conformant. Changed all references
3494 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
3495 as above (changed all references to the concerned variables).
3497 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3499 * include/bits/stl_deque.h: Created a _Deque_impl class and made
3500 it derive from the allocator, instead of the deque deriving from
3501 the allocator class, which was not conformant. Changed all
3502 references to the _M_start, _M_finish, _M_map, and _M_map_size to
3504 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
3505 qualification in 2 places where it was missing.
3506 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
3508 * include/bits/deque.tcc: Same as above (changed all references to
3509 the concerned variables).
3511 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3513 * include/bits/stl_vector.h: Created a _Vector_impl class and made
3514 it derive from the allocator, instead of the _Vector_base class,
3515 deriving from the allocator which was not conformant. Changed all
3516 references to the _M_start, _M_finish, and _M_end_of_storage to
3518 * include/bits/vector.tcc: Same as above (changed all references
3519 to the concerned variables).
3521 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3523 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
3524 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
3525 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
3527 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3529 * include/ext/malloc_allocator.h: Fixed the construct function to
3530 call global placement new instead of assignment. Added a check
3531 after the return from malloc to check whether returned pointer is
3532 NULL, and if so, throw std::bad_alloc().
3533 * include/ext/debug_allocator.h: Added a check in the deallocate
3534 function to check whether the user has passed a NULL pointer or
3537 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
3539 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
3541 2004-03-24 Andreas Schwab <schwab@suse.de>
3543 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
3544 warning from IA64 assembler.
3546 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3548 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
3549 function call __builtin_ctz instead of the while loop.
3550 (allocate) -> If condition has __builtin_expect.
3551 (deallocate) -> Ditto.
3552 Renamed a few left-over variables and typedefs according to the
3553 C++STYLE mentioned in the documentation.
3554 Protected calls to __gthread* by __gthread_active_p(), whose value
3555 is cached in the local variable __threads_active.
3557 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
3559 * testsuite/performance/20_util/allocator/producer_consumer.cc:
3560 Use linear algorithm for producer.
3562 2004-03-24 Paolo Carlini <pcarlini@suse.de>
3564 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3565 __mt_alloc<>::deallocate): Avoid redundant conditionals.
3567 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
3569 * include/bits/locale_facets.h: Tweaks for 80 column.
3570 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
3571 (__moneypunct_cache::_M_cache): Same.
3572 (num_get): Don't inherit from __num_base.
3574 (money_get): Don't inherit from money_base.
3576 (__timepunct::_M_am_pm_format): New.
3577 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
3578 (time_get::_M_extract_name): Same.
3579 (time_get::_M_extract_via_format): Same.
3580 * include/bits/locale_facets.tcc: Tweaks for 80 column.
3581 Use _M_getloc instead of getloc.
3582 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
3583 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
3584 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
3586 2004-03-22 Paolo Carlini <pcarlini@suse.de>
3588 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
3589 * configure: Regenerate.
3590 * config/allocator/pool_allocator_base.h: New.
3591 * include/ext/pool_allocator.h: Convert to a standard-conforming
3593 * src/allocator.cc: Tweak instantiations.
3594 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
3595 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
3596 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
3597 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3598 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3599 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3601 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
3603 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
3604 inline" and attribute-unused. Qualify parameter __mem with
3606 (__exchange_and_add): Ditto. Add back memory clobber to asm.
3608 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3610 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
3612 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
3614 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
3616 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
3618 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
3620 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
3622 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3624 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3626 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
3628 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3631 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3633 * include/std/std_valarray.h: Document DR389 [Ready].
3634 * docs/html/ext/howto.html: Add an entry for DR389.
3636 2004-03-19 Michael Eager <eager@mvista.com>
3638 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
3641 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3643 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
3645 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
3646 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
3647 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
3648 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
3649 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
3650 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
3651 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
3652 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
3653 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
3655 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3656 Petur Runolfsson <peturr02@ru.is>
3659 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
3660 no way to find out the conversion used by the underlying FILE*.
3661 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
3662 * testsuite/27_io/objects/char/9.cc: Tweak.
3664 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3667 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
3668 memory allocation/deallocation calls.
3669 * testsuite/ext/14648.cc: New.
3671 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
3674 * include/backward/bvector.h (bit_vector): Allocator is in std
3677 2004-03-19 Phil Edwards <phil@codesourcery.com>
3679 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
3680 not libiconv. SUBST this variable as well.
3681 * testsuite/Makefile.am (site.exp): New target, based on that
3682 created by automake. Also set libiconv.
3684 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
3685 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
3686 testsuite/Makefile.in: Regenerate.
3688 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
3690 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
3691 new_allocator for all hosts.
3692 * configure: Regenerate.
3694 2004-03-16 Paolo Carlini <pcarlini@suse.de>
3696 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
3697 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
3699 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3701 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3702 Adjust the logic underlying the parsing of symbol to deal
3703 correctly with an optional sign component (i.e., when either
3704 negative_sign or positive_sign is empty)
3705 * testsuite/22_locale/money_get/get/char/19.cc: New.
3706 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
3708 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3710 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3711 Do not accept an incomplete currency symbol.
3712 * testsuite/22_locale/money_get/get/char/18.cc: New.
3713 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
3715 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
3717 * config/allocator: New.
3718 * config/allocator/bitmap_allocator_base.h: New.
3719 * config/allocator/malloc_allocator_base.h: New.
3720 * config/allocator/mt_allocator_base.h: New.
3721 * config/allocator/new_allocator_base.h: New.
3722 * include/bits/allocator.h: Include c++allocator.h.
3723 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
3724 * aclocal.m4: Regenerate.
3725 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
3726 * configure: Regenerate.
3727 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
3728 * include/Makefile.in: Regenerate.
3729 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
3731 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3733 * include/bits/allocator.h: Revert.
3735 2004-03-12 Paolo Carlini <pcarlini@suse.de>
3737 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
3738 * include/bits/gslice_array.h: Add comment about DR 253.
3739 * include/bits/indirect_array.h: Likewise.
3740 * include/bits/mask_array.h: Likewise.
3741 * include/bits/slice_array.h: Likewise.
3743 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3745 * testsuite/20_util/allocator/14176.cc: New.
3746 * include/ext/mt_allocator.h: Formatting fixes.
3748 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
3750 * include/Makefile.am (ext_headers): Add
3751 ${ext_srcdir}/bitmap_allocator.h .
3752 * include/Makefile.in: Regenerate.
3753 * docs/html/ext/ballocator_doc.txt: New file.
3754 * include/ext/bitmap_allocator.h: New file.
3755 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
3757 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
3758 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
3759 test for the bitmap_allocator<>.
3760 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
3761 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
3762 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
3764 2004-03-11 Paolo Carlini <pcarlini@suse.de>
3766 * include/std/std_complex.h (pow(const complex&, const _Tp&),
3767 pow(const _Tp&, const complex&), pow(const complex&,
3768 const complex&)): Fully qualify with std:: a few calls.
3769 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
3771 2004-03-11 Steven Bosscher <stevenb@suse.de>
3774 * include/c_std/cmath.tcc (__cmath_power): Define inline.
3776 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
3778 * configure.ac: Bump AC_PREREQ to 2.59.
3780 2004-03-10 Paolo Carlini <pcarlini@suse.de>
3782 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
3784 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
3785 Paolo Carlini <pcarlini@suse.de>
3788 * include/std/std_complex.h (pow(const complex&, const _Tp&),
3789 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
3790 * testsuite/26_numerics/complex/13450.cc: New.
3792 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
3793 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
3795 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
3798 * include/bits/gslice_array.h (gslice_array()): Make public.
3799 (operator=(gslice_array)): Make public. Implement.
3800 * include/bits/indirect_array.h (indirect_array()): Make public.
3801 * include/bits/mask_array.h (mask_array()): Make public.
3802 (operator=(mask_array)): Make public. Implement.
3803 * include/bits/valarray_array.tcc (__valarray_copy):
3804 Comment. Add versions for gslice_array and mask_array.
3805 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
3807 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
3809 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
3811 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
3812 * testsuite/23_containers/set/modifiers/swap.cc: Same.
3813 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
3814 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
3815 * testsuite/23_containers/map/modifiers/swap.cc: Same.
3816 * testsuite/23_containers/list/modifiers/swap.cc: Same.
3818 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
3820 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
3823 * testsuite/23_containers/deque/modifiers/swap.cc: New.
3824 * testsuite/23_containers/list/modifiers/swap.cc: New.
3825 * testsuite/23_containers/map/modifiers/swap.cc: New.
3826 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
3827 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
3828 * testsuite/23_containers/set/modifiers/swap.cc: New.
3829 * testsuite/23_containers/vector/modifiers/swap.cc: New.
3831 2004-03-08 Petur Runolfsson <peturr02@ru.is>
3834 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
3836 2004-03-08 Paolo Carlini <pcarlini@suse.de>
3838 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
3839 * include/bits/stl_multiset.h: Add comment about DR 103.
3840 * include/bits/stl_set.h: Likewise.
3842 2004-03-08 Paolo Carlini <pcarlini@suse.de>
3844 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3845 The value _space_ indicates that at least one space is required
3847 * testsuite/22_locale/money_get/get/char/17.cc: New.
3848 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
3850 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
3851 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
3853 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
3854 Remove redundant conditional on __str.size().
3856 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
3858 * include/bits/allocator.h: Switch defaults to mt_alloc.
3860 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
3862 * include/ext/mt_allocator.h (_S_initialize): If
3863 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
3865 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
3868 * src/locale_init.cc (locale::locale): Lock critical regions with
3870 (locale::global): Same.
3871 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
3872 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
3873 (__glibcxx_mutex_lock): Same.
3875 * config/cpu/generic/atomicity.h: Remove
3876 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
3877 * src/misc-inst.cc: Move all locking bits out of this file.
3879 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
3880 * src/misc-inst.cc: Same.
3881 * config/cpu/hppa/atomicity.h: Same.
3883 * config/linker-map.gnu: Remove types in the signature of atomic
3884 exports, as they may vary.
3886 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3888 * include/bits/locale_facets.tcc: Tweak the comment preceding
3889 has_facet: doesn't throw.
3891 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3893 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
3894 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3895 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3896 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3897 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3898 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3899 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3900 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3902 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3904 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3905 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
3906 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
3907 * testsuite/testsuite_character.h (struct __gnu_test::character):
3909 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
3912 2004-03-05 Paolo Carlini <pcarlini@suse.de>
3914 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
3916 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
3918 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
3920 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
3922 * testsuite/23_containers/deque/invalidation/4.cc: Same.
3923 * testsuite/23_containers/list/invalidation/1.cc: Same.
3924 * testsuite/23_containers/list/invalidation/2.cc: Same.
3925 * testsuite/23_containers/list/invalidation/3.cc: Same.
3926 * testsuite/23_containers/list/invalidation/4.cc: Same.
3927 * testsuite/23_containers/map/invalidation/2.cc: Same.
3928 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
3929 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3930 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
3931 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3932 * testsuite/23_containers/set/invalidation/1.cc: Same.
3933 * testsuite/23_containers/set/invalidation/2.cc: Same.
3934 * testsuite/23_containers/vector/invalidation/1.cc: Same.
3935 * testsuite/23_containers/vector/invalidation/2.cc: Same.
3936 * testsuite/23_containers/vector/invalidation/3.cc: Same.
3937 * testsuite/23_containers/vector/invalidation/4.cc: Same.
3939 2004-03-04 Paolo Carlini <pcarlini@suse.de>
3941 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
3943 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
3945 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
3946 from the dg-options.
3947 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
3948 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
3949 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
3950 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
3951 * testsuite/23_containers/vector/resize/1.cc: Likewise.
3952 * testsuite/26_numerics/complex_value.cc: Likewise.
3953 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
3954 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
3955 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
3956 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
3957 * testsuite/27_io/objects/char/5.cc: Likewise.
3958 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
3959 * testsuite/backward/11460.cc: Likewise.
3960 * testsuite/thread/pthread7-rope.cc: Likewise.
3962 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
3963 missing test variable.
3964 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
3965 missing test variable.
3967 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
3969 * testsuite/20_util/allocator/1.cc: Provide explicit
3970 instantiations for non-weak systems.
3971 * testsuite/20_util/binders.cc: Same.
3972 * testsuite/20_util/allocator/8230.cc: Same.
3973 * testsuite/20_util/allocator/10378.cc: Same.
3974 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
3975 * testsuite/22_locale/ctype/is/char/2.cc: Same.
3976 * testsuite/thread/pthread7-rope.cc: Same.
3977 * testsuite/thread/pthread6.cc: Same.
3978 * testsuite/thread/pthread5.cc: Same.
3979 * testsuite/thread/pthread4.cc: Same.
3980 * testsuite/thread/pthread1.cc: Same.
3981 * testsuite/ext/rope.cc: Same.
3982 * testsuite/ext/hash_set.cc: Same.
3983 * testsuite/ext/hash_map.cc: Same.
3984 * testsuite/ext/concept_checks.cc: Same.
3985 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
3986 * testsuite/25_algorithms/unique/2.cc: Same.
3987 * testsuite/25_algorithms/unique/1.cc: Same.
3988 * testsuite/25_algorithms/rotate.cc: Same.
3989 * testsuite/25_algorithms/min_max.cc: Same.
3990 * testsuite/25_algorithms/equal.cc: Same.
3991 * testsuite/24_iterators/rel_ops.cc: Same.
3992 * testsuite/24_iterators/iterator.cc: Same.
3993 * testsuite/24_iterators/insert_iterator.cc: Same.
3994 * testsuite/24_iterators/front_insert_iterator.cc: Same.
3995 * testsuite/24_iterators/back_insert_iterator.cc: Same.
3996 * testsuite/23_containers/vector/resize/1.cc: Same.
3997 * testsuite/23_containers/vector/modifiers/2.cc: Same.
3998 * testsuite/23_containers/vector/modifiers/1.cc: Same.
3999 * testsuite/23_containers/vector/invalidation/4.cc: Same.
4000 * testsuite/23_containers/vector/invalidation/3.cc: Same.
4001 * testsuite/23_containers/vector/invalidation/2.cc: Same.
4002 * testsuite/23_containers/vector/invalidation/1.cc: Same.
4003 * testsuite/23_containers/vector/element_access/1.cc: Same.
4004 * testsuite/23_containers/vector/cons/6513.cc: Same.
4005 * testsuite/23_containers/vector/cons/3.cc: Same.
4006 * testsuite/23_containers/vector/cons/2.cc: Same.
4007 * testsuite/23_containers/vector/cons/1.cc: Same.
4008 * testsuite/23_containers/vector/capacity/8230.cc: Same.
4009 * testsuite/23_containers/vector/capacity/1.cc: Same.
4010 * testsuite/23_containers/vector/bool/6886.cc: Same.
4011 * testsuite/23_containers/stack/members/7158.cc: Same.
4012 * testsuite/23_containers/set/invalidation/2.cc: Same.
4013 * testsuite/23_containers/set/invalidation/1.cc: Same.
4014 * testsuite/23_containers/queue/members/7157.cc: Same.
4015 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
4016 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
4017 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
4018 * testsuite/23_containers/multiset/insert/1.cc: Same.
4019 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
4020 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
4021 * testsuite/23_containers/map/operators/1.cc: Same.
4022 * testsuite/23_containers/map/invalidation/2.cc: Same.
4023 * testsuite/23_containers/map/invalidation/1.cc: Same.
4024 * testsuite/23_containers/map/insert/1.cc: Same.
4025 * testsuite/23_containers/list/operators/4.cc: Same.
4026 * testsuite/23_containers/list/operators/3.cc: Same.
4027 * testsuite/23_containers/list/operators/2.cc: Same.
4028 * testsuite/23_containers/list/operators/1.cc: Same.
4029 * testsuite/23_containers/list/modifiers/3.cc: Same.
4030 * testsuite/23_containers/list/modifiers/2.cc: Same.
4031 * testsuite/23_containers/list/modifiers/1.cc: Same.
4032 * testsuite/23_containers/list/invalidation/4.cc: Same.
4033 * testsuite/23_containers/list/invalidation/3.cc: Same.
4034 * testsuite/23_containers/list/invalidation/2.cc: Same.
4035 * testsuite/23_containers/list/invalidation/1.cc: Same.
4036 * testsuite/23_containers/list/cons/9.cc: Same.
4037 * testsuite/23_containers/list/cons/8.cc: Same.
4038 * testsuite/23_containers/list/cons/7.cc: Same.
4039 * testsuite/23_containers/list/cons/6.cc: Same.
4040 * testsuite/23_containers/list/cons/5.cc: Same.
4041 * testsuite/23_containers/list/cons/4.cc: Same.
4042 * testsuite/23_containers/list/cons/3.cc: Same.
4043 * testsuite/23_containers/list/cons/2.cc: Same.
4044 * testsuite/23_containers/list/cons/1.cc: Same.
4045 * testsuite/23_containers/list/capacity/1.cc: Same.
4046 * testsuite/23_containers/deque/operators/1.cc: Same.
4047 * testsuite/23_containers/deque/invalidation/4.cc: Same.
4048 * testsuite/23_containers/deque/invalidation/3.cc: Same.
4049 * testsuite/23_containers/deque/invalidation/2.cc: Same.
4050 * testsuite/23_containers/deque/invalidation/1.cc: Same.
4051 * testsuite/23_containers/deque/cons/2.cc: Same.
4052 * testsuite/23_containers/deque/cons/1.cc: Same.
4054 * src/allocator.cc: Add char, wchar_t instantiations
4055 to match extern template declarations in memory.h.
4057 2004-03-03 Paolo Carlini <pcarlini@suse.de>
4059 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4060 Fix warning regression.
4062 2004-03-03 Paolo Carlini <pcarlini@suse.de>
4064 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4065 Deal properly with empty __digits and negative frac_digits,
4068 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
4070 * docs/html/documentation.html: Regenerate.
4072 2004-03-02 Paolo Carlini <pcarlini@suse.de>
4075 * include/bits/postypes.h (class streamoff): Remove, now
4076 streamoff is just typedef a 64 bit signed integer type.
4077 (class fpos): Tweak consistently.
4078 * testsuite/27_io/fpos/14320-1.cc: New.
4079 * testsuite/27_io/fpos/14320-2.cc: New.
4080 * testsuite/27_io/fpos/14320-3.cc: New.
4081 * testsuite/27_io/fpos/14320-4.cc: New.
4082 * testsuite/27_io/fpos/14320-5.cc: New.
4083 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
4085 2004-03-02 Paolo Carlini <pcarlini@suse.de>
4087 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4088 Reorganize a bit the main parsing loop, thus early detecting
4089 an empty value component.
4090 * testsuite/22_locale/money_get/get/char/16.cc: New.
4091 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
4093 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
4095 Support automake 1.8.2
4096 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
4097 * po/Makefile.am (EXTRA_DIST): New.
4098 * po/Makefile.in: Regenerate.
4099 * Makefile.in: Same.
4100 * include/Makefile.in: Same.
4101 * libmath/Makefile.in: Same.
4102 * libsupc++/Makefile.in: Same.
4103 * src/Makefile.in: Same.
4104 * testsuite/Makefile.in: Same.
4106 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
4107 __GXX_WEAK__ instead of SUPPORTS_WEAK.
4108 (${host_builddir}/gthr-default.h): Same.
4109 (${host_builddir}/gthr.h): Same.
4110 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
4111 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
4113 * aclocal.m4: Regenerate.
4114 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
4115 * config.h.in: Regenerate.
4118 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
4120 Support autoconf 2.59
4121 * acinclude.m4: Quote correctly.
4122 * aclocal.m4: Regenerate.
4125 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
4127 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
4129 * docs/html/18_support/howto.html: Add bit about writing to
4130 stderr, mostly by Zack.
4132 2004-03-01 Paolo Carlini <pcarlini@suse.de>
4134 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
4135 money_get<>::do_get(string_type&)): ... and two more.
4137 2004-03-01 Paolo Carlini <pcarlini@suse.de>
4139 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4140 Fix thinkos in the switch from string_type& to string& as last
4143 2004-03-01 Paolo Carlini <pcarlini@suse.de>
4145 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
4146 Also when parsing exponent sign, first look for thousands_sep
4147 and decimal_point; tweak a bit.
4148 * testsuite/22_locale/num_get/get/char/15.cc: New.
4149 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
4151 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4152 num_get<>::_M_extract_int): Reorder some conditionals.
4154 2004-03-01 Paolo Carlini <pcarlini@suse.de>
4156 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4157 Consistently with numpunct, enforce the requirements in
4158 22.2.6.3, p3 for the thousands separators; tweak a bit.
4159 * testsuite/22_locale/money_get/get/char/15.cc: New.
4160 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
4162 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
4164 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
4165 testsuite_files from correct multilib blddir when running
4168 2004-02-29 Phil Edwards <phil@codesourcery.com>
4170 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
4171 the summary file to the logfile.
4172 * testsuite/Makefile.in: Regenerate.
4174 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4176 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
4178 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
4179 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
4181 2004-02-28 Paolo Carlini <pcarlini@suse.de>
4183 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
4184 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
4185 no 'decimal-point' in the middle: in this case too we must fix
4186 up __found_grouping; slightly tweak.
4187 * testsuite/22_locale/num_get/get/char/14.cc: New.
4188 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
4190 2004-02-27 Eric Christopher <echristo@redhat.com>
4191 Phil Edwards <phil@codesourcery.com>
4193 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
4194 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
4195 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
4196 testsuite/22_locale/collate/hash/wchar_t/2.cc,
4197 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
4198 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
4199 testsuite/22_locale/collate/transform/wchar_t/2.cc,
4200 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
4201 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4202 Use dg-require-iconv.
4203 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
4205 2004-02-27 Phil Edwards <phil@codesourcery.com>
4206 Eric Christopher <echristo@redhat.com>
4208 * testsuite/config/default.exp: Update with comments.
4209 (${tool}_target_compile): New wrapper routine.
4210 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
4211 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
4213 (load_gcc_lib, v3track): New routines.
4214 (v3-init): Rename to libstdc++_init.
4215 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
4216 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
4218 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
4220 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
4222 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
4224 * config/os/irix/irix5.2/atomicity.h: Merge..
4225 * config/os/irix/irix6.5/atomicity.h: Merge..
4226 * config/os/irix/atomicity.h: ...into this.
4227 * config/os/irix/atomic_word.h: New.
4228 * configure.host: Set atomic_word_dir for irix.
4230 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
4231 * i386/atomicity.h: Same.
4232 * m68k/atomicity.h: Same.
4233 * sparc/atomicity.h: Same.
4235 2004-02-27 David Edelsohn <edelsohn@gnu.org>
4237 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
4238 static, and inline keywords.
4240 2004-02-27 Paolo Carlini <pcarlini@suse.de>
4242 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4243 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
4244 call reserve on the __tmp_gruping string.
4245 (num_get<>::_M_extract_float): Don't append unnecessarily a
4246 char() to the returned string.
4247 * include/bits/locale_facets.tcc: Trivial reformattings.
4249 2004-02-27 Paolo Carlini <pcarlini@suse.de>
4251 * include/bits/locale_facets.h (money_get<>::_M_extract):
4252 Change signature: now takes a plain string&.
4253 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4254 Update consistently the definition; use the moneypunct cache
4255 to parse the value; use swap to change __units.
4256 (money_get<>::do_get(long double&)): Update call of _M_extract,
4257 avoid ctype::narrow, not correct wrt the standard.
4258 (money_get<>::do_get(string_type&)): Likewise, update call
4259 of _M_extract, use ctype::widen.
4260 * src/locale-inst.cc: Tweak instantiations of _M_extract.
4262 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
4264 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
4265 * testsuite/demangle/abi_examples/02.cc: Likewise.
4266 * testsuite/demangle/regression/cw-11.cc: Likewise.
4267 * testsuite/demangle/regression/cw-16.cc: Change two expected
4268 results to match libiberty demangler output.
4270 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
4273 * libsupc++/Makefile.am: Use libiberty demangler.
4274 (c_sources): Add cp-demangle.c.
4275 * libsupc++/Makefile.in: Regenerate.
4276 * src/Makefile.am (sources): Remove demangle.cc.
4277 * src/Makefile.in: Regenerate.
4278 * include/Makefile.am (bits_headers): Move demangle.h.
4279 (ext_headers): ...here.
4280 * include/Makefile.in: Regenerate.
4281 * include/bits/demangle.h: Move...
4282 * include/ext/demangle.h: ...here.
4283 * src/demangle.cc: Remove.
4285 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
4287 * include/bits/demangle.h: Add type template parameter to all
4288 templates with just an Allocator template parameter.
4290 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
4292 * include/bits/atomicity.h: New, forward declarations for __atomic_add
4293 and __exchange_and_add.
4294 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
4295 * config/cpu/cris/atomic_word.h: Same.
4296 * config/cpu/sparc/atomic_word.h: Same.
4297 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
4298 Qualifiy with __gnu_cxx.
4299 (_Callback_list::_M_add_reference): Same.
4300 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
4301 (locale::facet::_M_remove_reference): Same.
4302 (locale::_Impl::_M_add_reference): Add.
4303 (locale::_Impl::_M_remove_reference): Same.
4304 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
4305 (basic_string::_Rep::_M_dispose): Same.
4306 * src/ios.cc (ios_base::xalloc): Same.
4307 * src/ios_init.cc (ios_base::Init::Init): Same.
4308 (ios_base::Init::~Init): Same.
4309 * src/locale.cc (locale::id::_M_id): Same.
4310 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
4311 static, and inline keywords.
4312 * config/cpu/alpha/atomicity.h: Same.
4313 * config/cpu/cris/atomicity.h: Same.
4314 * config/cpu/generic/atomicity.h: Same.
4315 * config/cpu/hppa/atomicity.h: Same.
4316 * config/cpu/i386/atomicity.h: Same.
4317 * config/cpu/ia64/atomicity.h: Same.
4318 * config/cpu/m68k/atomicity.h: Same.
4319 * config/cpu/mips/atomicity.h: Same.
4320 * config/cpu/powerpc/atomicity.h: Same.
4321 * config/cpu/s390/atomicity.h: Same.
4322 * config/cpu/sparc/atomicity.h: Same.
4324 * src/Makefile.am (host_sources): Add atomicity.cc.
4325 (atomicity.cc): New rule.
4326 * src/Makefile.in: Regenerate.
4327 * include/Makefile.am (host_headers): Remove host atomicity.h.
4328 (host_headers): Add atomic_word.h.
4329 (bits_headers): Add bits atomicity.h.
4330 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
4331 * include/Makefile.in: Regenerate.
4332 * configure.host (atomic_word_dir): Add.
4333 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
4334 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
4335 * configure: Regenerate.
4336 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
4338 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
4339 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
4341 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
4343 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
4344 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
4345 Fix markup, more <link> tags.
4347 2004-02-25 Carlo Wood <carlo@alinoe.com>
4350 namespace __gnu_cxx::demangler
4351 (session<Allocator>::qualifier_list_Allocator): Add
4352 (session<Allocator>::M_qualifier_list_alloc): Add
4353 (session<Allocator>::decode_type_with_postfix):
4354 Use M_qualifier_list_alloc instead of calling operator new/delete.
4356 2004-02-24 Paolo Carlini <pcarlini@suse.de>
4359 * include/bits/postypes.h (class streamoff): Add operator++(),
4360 operator++(int), operator--() and operator--(int).
4361 * testsuite/27_io/fpos/14252.cc: New.
4363 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
4365 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
4366 error in handling of hex constants.
4368 2004-02-24 Paolo Carlini <pcarlini@suse.de>
4370 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4371 Prefer basic_string::append to operator+= and a temporary.
4373 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
4375 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
4376 Only use fputs, not write.
4378 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
4380 * include/ext/malloc_allocator.h: Add operators ==, !=.
4381 * include/ext/new_allocator.h: Add operators ==, !=.
4382 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
4383 (__mt_alloc::_S_get_options): New.
4384 (__mt_alloc::_S_set_options): New.
4385 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
4386 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
4387 Move functions out of line, simplify, format.
4388 * src/allocator.cc: Simplify explicit instantiations.
4389 * include/bits/allocator.h: Tweak.
4391 2004-02-22 Paolo Carlini <pcarlini@suse.de>
4393 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4394 Restructure formatting of value component, first dealing with
4395 the non-decimal digits; use reserve.
4397 2004-02-22 Paolo Carlini <pcarlini@suse.de>
4399 * include/bits/locale_facets.h (class money_get): Inherit
4400 from money_base too; tweak declaration of _M_extract, now
4401 parameterized on _Intl too.
4402 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4403 Update definition to use the cache; call reserve on __res to
4404 avoid multiple reallocations; fix parsing of sign component
4405 according to 22.2.6.1.2, p3.
4406 (money_get<>::do_get(long double&),
4407 money_get<>::do_get(string_type&)): Update calls of _M_extract.
4408 * src/locale-inst.cc: Add instantiations of
4409 money_get::_M_extract<false> and money_get::_M_extract<true>.
4410 * testsuite/22_locale/money_get/get/char/14.cc: New.
4411 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
4413 2004-02-21 Mark Mitchell <mark@codesourcery.com>
4415 * libsupc++/vterminate.cc
4416 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
4418 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
4420 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
4421 not set RLIMIT_AS on HP-UX.
4423 2004-02-21 Mark Mitchell <mark@codesourcery.com>
4425 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
4426 not set RLIMIT_AS on HP-UX.
4428 2004-02-21 Paolo Carlini <pcarlini@suse.de>
4430 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
4431 _S_zero, _S_end } enum, _S_atoms.
4432 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
4433 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
4434 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
4435 (__moneypunct_cache<>::~__moneypunct_cache): Update.
4436 (__moneypunct_cache<>::_M_cache): Fill the cache.
4437 (class moneypunct): Tweak __cache_type typedef.
4438 (class money_put): Inherit from money_base too; tweak declaration
4439 of _M_insert, now parameterized on _Intl.
4440 * include/bits/locale_facets.tcc
4441 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
4442 (money_put<>::_M_insert): Update definition to use the cache;
4443 call reserve on __res to avoid multiple reallocations.
4444 (money_put<>::do_put(long double),
4445 money_put<>::do_put(const string_type&): Update calls of _M_insert.
4446 * config/locale/generic/monetary_members.cc
4447 (moneypunct<char, true>::_M_initialize_moneypunct,
4448 moneypunct<char, false>::_M_initialize_moneypunct,
4449 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
4450 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
4451 * config/locale/gnu/monetary_members.cc: Likewise.
4452 * config/locale/gnu/monetary_members.cc
4453 (moneypunct<wchar_t, true>::~moneypunct(),
4454 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
4455 * src/globals_locale.cc: Tweak fake_money_cache_c.
4456 * src/locale-inst.cc: Add instantiations for
4457 money_put::_M_insert<false> and money_put::_M_insert<true> and
4458 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
4459 * src/locale_facets.cc: Define money_base::_S_atoms.
4460 * src/locale_init.cc: Update placement new of
4461 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
4462 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
4464 * config/locale/generic/numeric_members.cc: Clean up.
4465 * config/locale/gnu/numeric_members.cc: Likewise.
4466 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
4467 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
4468 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
4469 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
4470 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
4471 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
4473 2004-02-20 Mark Mitchell <mark@codesourcery.com>
4475 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
4476 FIFO for writing with ios_base::in|ios_base::out.
4477 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
4478 * testsuite/27_io/objects/char/7.cc: Likewise.
4479 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
4482 2004-02-19 David Edelsohn <edelsohn@gnu.org>
4484 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
4485 from iso-8859-1 to ISO8859-1.
4486 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
4487 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
4488 * 22_locale/collate/hash/wchar_t/2.cc: Same.
4489 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
4490 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
4491 * 22_locale/collate/transform/wchar_t/2.cc: Same.
4492 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
4493 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
4495 2004-02-18 Paolo Carlini <pcarlini@suse.de>
4497 * include/bits/locale_facets.h (money_get<>::_M_extract):
4498 New, helper for do_get.
4499 (money_put<>::_M_insert): Likewise, for do_put.
4500 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
4501 money_put<>::_M_insert): Define.
4502 (money_get<>::do_get(long double&), money_get<>::do_get(
4503 string_type&), money_put::do_put(long double),
4504 money_put::do_put(const string_type&)): Use the helpers.
4506 2004-02-18 Paolo Carlini <pcarlini@suse.de>
4508 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4509 Rewrite, avoiding recursion.
4510 (__gnu_internal::xwrite): Minor tweaks.
4512 2004-02-17 Stefan Olsson <stefan@xapa.se>
4514 * include/ext/mt_allocator.h: Removed the last
4515 pointer. Deallocated blocks are now added to the front of
4516 freelists as proposed by Felix Yen. This gives roughly 10%
4517 performance boost and saves some memory.
4518 * docs/html/ext/mt_allocator.html: Change due to that deallocated
4519 blocks now are added to the front of freelists. The reason to this
4520 approach is also explained.
4522 2004-02-17 Paolo Carlini <pcarlini@suse.de>
4524 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4525 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
4526 grouping fidelity conditional.
4528 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4530 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
4531 Qualify exception with std::.
4532 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
4533 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4534 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4535 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4536 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4538 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4540 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
4541 for now that the catch block is not reached.
4542 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
4544 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4546 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4547 Fix parsing of the remaining sign characters.
4548 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
4549 the input is scanned 'til eof.
4550 * 22_locale/money_get/get/char/4.cc: Likewise.
4551 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
4552 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
4553 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
4554 not do_pos_format: the former is the only one that matters during
4556 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
4558 * 22_locale/money_get/get/char/6.cc: Minor tweak.
4559 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
4561 2004-02-15 David Asher <david.asher@cavium.com>
4564 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
4565 access __olds beyond __oldlen.
4567 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4569 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
4570 sure the exception is actually thrown.
4571 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4572 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4573 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4575 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4578 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
4579 In case of conversion errors, throw ios_failure; simplify.
4580 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
4581 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4582 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
4583 previously we didn't throw in case of conversion errors, instead
4584 just returned eof().
4585 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4586 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4587 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4589 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
4590 Trivial simplification of a conditional.
4592 2004-02-12 Paolo Carlini <pcarlini@suse.de>
4594 PR libstdc++/13731 (final part: writev)
4595 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4596 New, a wrapper around writev() handling partial writes.
4597 (__basic_file<char>::xwrite): Move to __gnu_internal and make
4599 (__basic_file<char>::xsputn): Update call.
4600 (__basic_file<char>::xsputn_2): Likewise.
4601 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4602 Don't declare, now static.
4604 2004-02-11 Stefan Olsson <stefan@xapa.se>
4606 * docs/html/ext/mt_allocator.html: New.
4608 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
4610 * docs/html/20_util/allocator.html: New file, consolidate
4611 allocator information here. Revamp.
4612 * docs/html/documentation.html: Change links.
4613 * docs/html/20_util/howto.html: Same.
4614 * docs/html/ext/howto.html: Same.
4616 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4618 PR libstdc++/13731 (first part: write)
4619 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4621 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
4622 Define it: a wrapper around write() handling partial write.
4623 (__basic_file<char>::xsputn): Use it.
4624 (__basic_file<char>::xsputn_2): Likewise.
4626 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4627 Petur Runolfsson <peturr02@ru.is>
4630 * include/std/std_istream.h (operator>>(__istream_type& (*)
4631 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
4632 operator>>(ios_base& (*)(ios_base&))): Declare inline.
4633 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
4634 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
4635 operator<<(ios_base& (*) (ios_base&))): Likewise.
4636 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
4638 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
4641 * config/linker-map.gnu: Add typeinfo and typeinfo name for
4642 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
4645 * config/linker-map.gnu: Add typeinfo and typeinfo name for
4646 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
4648 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
4650 * include/ext/pool_allocator.h: Include c++config.h.
4652 2004-02-09 Stefan Olsson <stefan@xapa.se>
4654 * include/ext/mt_allocator.h: thread_id is unused in non threaded
4655 applications and now has a ifdef to remove it completely on
4656 compilers without thread support. Include stdlib.h due to a
4657 compiler warning on getenv().
4659 2004-02-09 Paul Brook <paul@codesourcery.com>
4661 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
4663 2004-02-09 Paolo Carlini <pcarlini@suse.de>
4666 * src/locale_init.cc (locale::global(const locale&)): Use
4667 locale::name() in order to decide whether calling setlocale.
4668 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
4670 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
4671 Avoid computing &= unnecessarily.
4673 2004-02-09 James E Wilson <wilson@specifixinc.com>
4676 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
4677 __builtin_extend_pointer.
4679 2004-02-09 Paolo Carlini <pcarlini@suse.de>
4682 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
4683 Don't leave dangling pointers.
4684 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
4685 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
4686 facet is needed in the final test.
4688 2004-02-09 Bernardo Innocenti <bernie@develer.com>
4690 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
4691 * configure: Regenerate.
4693 2004-02-08 Richard Henderson <rth@redhat.com>
4696 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
4697 uncaughtExceptions during nested catch rethrow.
4698 * testsuite/18_support/14026.cc: New.
4700 2004-02-08 Paolo Carlini <pcarlini@suse.de>
4702 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
4703 When working in place remember to set the state to sharable
4704 (otherwise, _M_mutate does it).
4706 2004-02-08 Bernardo Innocenti <bernie@develer.com>
4708 * include/bits/allocator.h, include/bits/basic_ios.h,
4709 include/bits/basic_ios.tcc, include/bits/basic_string.h,
4710 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
4711 include/bits/char_traits.h, include/bits/codecvt.h,
4712 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
4713 include/bits/demangle.h, include/bits/deque.tcc,
4714 include/bits/fstream.tcc, include/bits/functexcept.h,
4715 include/bits/gslice.h, include/bits/gslice_array.h,
4716 include/bits/indirect_array.h, include/bits/ios_base.h,
4717 include/bits/istream.tcc, include/bits/list.tcc,
4718 include/bits/locale_classes.h, include/bits/locale_facets.h,
4719 include/bits/locale_facets.tcc, include/bits/localefwd.h,
4720 include/bits/mask_array.h, include/bits/ostream.tcc,
4721 include/bits/postypes.h, include/bits/slice_array.h,
4722 include/bits/sstream.tcc, include/bits/stl_algo.h,
4723 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
4724 include/bits/stl_construct.h, include/bits/stl_deque.h,
4725 include/bits/stl_function.h, include/bits/stl_heap.h,
4726 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
4727 include/bits/stl_list.h, include/bits/stl_map.h,
4728 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
4729 include/bits/stl_numeric.h, include/bits/stl_pair.h,
4730 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
4731 include/bits/stl_relops.h, include/bits/stl_set.h,
4732 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
4733 include/bits/stl_threads.h, include/bits/stl_tree.h,
4734 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
4735 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
4736 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
4737 include/bits/type_traits.h, include/bits/valarray_after.h,
4738 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
4739 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
4740 trailing whitespace.
4742 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4744 * include/bits/basic_string.h: Fix comment.
4746 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4748 * include/bits/stl_construct.h: Wrap overlong lines, reformat
4749 according to the coding standards.
4750 * include/bits/stl_pair.h: Likewise.
4751 * include/bits/stl_raw_storage_iter.h: Likewise.
4752 * include/bits/stl_stack.h: Likewise.
4753 * include/bits/stl_uninitialized.h: Likewise.
4754 * include/bits/stream_iterator.h: Likewise.
4755 * include/bits/streambuf_iterator.h: Likewise.
4756 * include/bits/type_traits.h: Likewise.
4758 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4760 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4763 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
4765 * scripts/check_performance: Support PCH.
4767 * scripts/check_performance (CXX): Add -DNOTHREAD.
4768 * testsuite/performance/20_util/allocator/insert.cc: Integrate
4769 threaded tests from insert_insert.cc. Tweak iterations,
4770 remove special cases.
4771 * testsuite/performance/20_util/allocator/insert_insert.cc:
4772 Make all tests single-threaded. Tweak iterations.
4773 * testsuite/performance/20_util/allocator/map_thread.cc:
4775 * testsuite/performance/20_util/allocator/producer_consumer.cc:
4778 2004-02-05 Geoffrey Keating <geoffk@apple.com>
4782 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
4783 'gcc-lib'. Add comment about poorly-named variables.
4784 * aclocal.m4: Regenerate.
4785 * configure: Regenerate.
4787 2004-02-05 Paolo Carlini <pcarlini@suse.de>
4789 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4790 Thousands-sep are always optional; thousands-sep are not allowed
4791 after the decimal_point.
4792 * testsuite/22_locale/money_get/get/char/12.cc: New.
4793 * testsuite/22_locale/money_get/get/char/13.cc: New.
4794 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
4795 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
4797 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
4798 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
4799 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
4800 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
4801 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
4802 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
4803 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
4804 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
4806 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
4808 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
4810 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
4812 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
4814 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
4815 it to decide whether FIONREAD should take an off_t or int argument.
4817 2004-02-05 Paolo Carlini <pcarlini@suse.de>
4819 * include/bits/stl_function.h: Minor formatting changes.
4821 2004-02-04 Zack Weinberg <zack@codesourcery.com>
4823 Revert previous change to config/abi/*/baseline_symbols.txt.
4825 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
4826 Zack Weinberg <zack@codesourcery.com>
4828 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
4830 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
4831 (__basic_file<char>::_M_open_mode): Delete.
4832 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
4834 * testsuite/27_io/basic_filebuf/close/char/9964.cc
4835 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4836 Correct flags to filebuf::open calls.
4838 * config/abi/alpha-freebsd5/baseline_symbols.txt
4839 * config/abi/alpha-linux-gnu/baseline_symbols.txt
4840 * config/abi/hppa-linux-gnu/baseline_symbols.txt
4841 * config/abi/i386-freebsd4/baseline_symbols.txt
4842 * config/abi/i386-freebsd5/baseline_symbols.txt
4843 * config/abi/i486-linux-gnu/baseline_symbols.txt
4844 * config/abi/ia64-linux-gnu/baseline_symbols.txt
4845 * config/abi/mips-linux-gnu/baseline_symbols.txt
4846 * config/abi/sparc-freebsd5/baseline_symbols.txt
4847 * config/abi/sparc-linux-gnu/baseline_symbols.txt
4848 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
4849 Remove entry for __basic_file<char>::_M_open_mode.
4851 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
4853 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
4855 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
4857 * testsuite/performance/20_util/producer_consumer.cc: New.
4858 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
4860 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
4862 * testsuite/performance/20_util/allocator.cc: Move to..
4863 * testsuite/performance/20_util/allocator/insert.cc: ...here.
4864 * testsuite/performance/20_util/allocator_thread.cc: Move to...
4865 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
4866 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
4867 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
4869 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
4871 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
4872 * docs/html/faq/index.txt: Regenerate.
4874 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
4876 * include/ext/debug_allocator.h: _M_extra now stands for the
4877 number of extra objects instead of the number of extra bytes.
4878 (debug_allocator::allocate): Adjust.
4879 (debug_allocator::deallocate): Adjust.
4881 * include/ext/pool_allocator.h: Fix typo.
4883 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
4884 Benjamin Kosnik <bkoz@redhat.com>
4886 * testsuite/performance/20_util/allocator.cc: Add map,
4888 * testsuite/performance/20_util/allocator_thread.cc: Same.
4890 2004-02-03 Paolo Carlini <pcarlini@suse.de>
4892 * include/bits/basic_string.h (insert(iterator)): Remove,
4893 non-standard and already scheduled for removal.
4895 2004-02-03 Paolo Carlini <pcarlini@suse.de>
4897 * include/bits/stl_iterator_base_funcs.h: Minor formatting
4898 and indentation tweaks.
4899 * include/bits/stl_iterator_base_types.h: Likewise.
4900 * include/bits/stl_list.h: Likewise.
4901 * include/bits/stl_map.h: Likewise.
4902 * include/bits/stl_tempbuf.h: Likewise.
4904 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
4906 * include/bits/gslice.h, include/bits/gslice_array.h,
4907 include/bits/indirect_array.h, include/bits/mask_array.h,
4908 include/bits/slice_array.h, include/bits/stl_numeric.h,
4909 include/std/std_valarray.h: Update copyright years.
4911 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
4913 * include/bits/gslice.h (gslice): Document.
4914 * include/bits/gslice_array.h (gslice_array): Document.
4915 * include/bits/indirect_array (indirect_array): Document.
4916 * include/bits/mask_array (mask_array): Document.
4917 * include/bits/slice_array.h (slice,slice_array): Document.
4918 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
4919 adjacent_difference): Document
4920 * include/std/std_valarray.h (valarray): Document.
4922 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
4924 * docs/html/19_diagnostics/howto.html: Move verbose terminate
4926 * docs/html/18_support/howto.html: Here.
4927 * docs/html/documentation.html: Add reference here.
4929 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4931 * config/locale/gnu/c++locale_internal.h: Remove prototypes
4932 of no longer used GLIBC thread locale functions.
4934 2004-02-02 Eric Christopher <echristo@redhat.com>
4935 Zack Weinberg <zack@codesourcery.com>
4937 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
4939 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
4940 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
4941 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
4942 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
4943 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
4944 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
4945 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
4946 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4949 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4951 * include/bits/stl_function.h: Additional minor tweaks.
4952 * include/bits/stl_multiset.h: Likewise.
4954 * include/bits/stl_queue.h: Minor tweaks.
4956 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4958 PR libstdc++/13976 (continued)
4959 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
4960 Make the second parameter unnamed, to void unused parameter
4962 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
4964 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4967 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
4968 Make the second parameter unnamed, to void unused parameter
4970 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
4971 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
4973 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4975 * include/bits/stl_algo.h: Additional minor tweaks.
4976 * include/bits/stl_map.h: Likewise.
4977 * include/bits/stl_multimap.h: Likewise.
4978 * include/bits/stl_multiset.h: Likewise.
4979 * include/bits/stl_set.h: Likewise.
4980 * include/bits/stl_tree.h: Likewise.
4982 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4984 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
4987 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4989 * include/bits/stl_function.h: Additional minor tweaks.
4991 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4993 * include/bits/deque.tcc: Wrap overlong lines, constify
4994 a few variables, reformat according to the coding standards.
4995 * include/bits/list.tcc: Likewise.
4996 * include/bits/stl_deque.h: Likewise.
4997 * include/bits/stl_function.h: Likewise.
4998 * include/bits/stl_iterator.h: Likewise.
4999 * include/bits/stl_iterator_base_funcs.h: Likewise.
5000 * include/bits/stl_iterator_base_types.h: Likewise.
5001 * include/bits/stl_list.h: Likewise.
5002 * include/bits/stl_map.h: Likewise.
5003 * include/bits/stl_multimap.h: Likewise.
5004 * include/bits/stl_multiset.h: Likewise.
5005 * include/bits/stl_relops.h: Likewise.
5006 * include/bits/stl_set.h: Likewise.
5008 2004-02-01 Paolo Carlini <pcarlini@suse.de>
5010 * include/bits/stl_bvector.h: Wrap overlong lines, constify
5011 a few variables, reformat according to the coding standards.
5012 * include/bits/stl_tree.h: Likewise.
5014 2004-01-31 Paolo Carlini <pcarlini@suse.de>
5016 * include/bits/stl_algo.h: Minor additional reformat, add
5018 * include/bits/stl_algobase.h: Add copyright year.
5020 2004-01-31 Paolo Carlini <pcarlini@suse.de>
5022 * include/bits/stl_algo.h: Wrap overlong lines, constify
5023 a few variables, reformat according to the coding standards.
5024 * include/bits/stl_algobase.h: Likewise.
5025 * include/bits/stl_heap.h: Likewise.
5027 2004-01-31 Paolo Carlini <pcarlini@suse.de>
5029 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
5031 * include/bits/basic_string.h: Fix two comments.
5033 2004-01-31 Per Bothner <per@bothner.com>
5035 * include/ext/mt_allocator.h
5036 (__mt_alloc::_S_thread_freelist_mutex): Guard with
5037 __GTHREAD_MUTEX_INIT.
5039 2004-01-31 Paolo Carlini <pcarlini@suse.de>
5041 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
5043 2004-01-30 Paolo Carlini <pcarlini@suse.de>
5045 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
5046 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
5047 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
5049 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
5051 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
5052 Don't use clear, but instead assign. Use insert.
5054 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
5056 * src/demangle.cc: Add instantiations.
5057 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
5058 * src/Makefile.in: Regenerate.
5060 2004-01-30 David Edelsohn <edelsohn@gnu.org>
5062 * src/allocator.cc: Protect _S_get_thread_id() and
5063 _S_thread_key_destr() with #ifdef __GTHREADS.
5065 2004-01-30 Paolo Carlini <pcarlini@suse.de>
5067 Reshuffle performance testsuite.
5068 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
5069 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
5070 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
5071 fstream_seek_write.cc, ifstream_extract_float.cc,
5072 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
5073 list_create_fill_sort.cc, map_create_fill.cc,
5074 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
5075 ofstream_insert_float.cc, ofstream_insert_int.cc,
5076 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
5077 wchar_t_out.cc: Split into...
5078 * testsuite/performance/20_util/allocator.cc: New.
5079 * testsuite/performance/20_util/allocator_map_thread.cc: New.
5080 * testsuite/performance/20_util/allocator_thread.cc: New.
5081 * testsuite/performance/21_strings/string_append: New.
5082 * testsuite/performance/22_locale/is_wchar_t.cc: New.
5083 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
5084 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
5085 * testsuite/performance/22_locale/wchar_t_in.cc: New.
5086 * testsuite/performance/22_locale/wchar_t_length.cc: New.
5087 * testsuite/performance/22_locale/wchar_t_out.cc: New.
5088 * testsuite/performance/23_containers/container_benchmark.cc: New.
5089 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
5090 * testsuite/performance/23_containers/map_create_fill.cc: New.
5091 * testsuite/performance/26_numerics/complex_norm.cc: New.
5092 * testsuite/performance/27_io/cout_insert_int.cc: New.
5093 * testsuite/performance/27_io/filebuf_copy.cc: New.
5094 * testsuite/performance/27_io/filebuf_sputc.cc: New.
5095 * testsuite/performance/27_io/fstream_seek_write.cc: New.
5096 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
5097 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
5098 * testsuite/performance/27_io/ifstream_getline.cc: New.
5099 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
5100 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
5102 2004-01-30 Paolo Carlini <pcarlini@suse.de>
5104 * include/bits/basic_string.tcc (_Rep::_S_create):
5105 Never allocate a string bigger than max_size(); always keep
5106 __capacity and __size in sync to avoid memory leaks at
5109 2004-01-30 Paolo Carlini <pcarlini@suse.de>
5111 * include/bits/basic_string.tcc (_S_construct(_InIterator,
5112 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
5113 the double loop, streamline.
5115 * include/bits/basic_string.tcc: Very minor tweaks.
5117 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
5119 * scripts/check_performance: Only compile with $THREAD_FLAG
5120 when test is marked to require it. Allow multiple
5121 compilations/executions of marked tests.
5122 * testsuite/testsuite_performance.h (report_performance):
5123 Report dynamic thread support status.
5124 (report_header): Likewise.
5125 * testsuite/performance/allocator.cc: Stabilize iteration
5126 count. Support more allocators. Mark each allocator test to
5127 run and report independently.
5128 * testsuite/performance/allocator_map_thread.cc: Likewise.
5129 * testsuite/performance/allocator_thread.cc: Likewise.
5131 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
5133 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
5134 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
5135 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
5136 std::get_temporary_buffer() instead of duplicating its code.
5137 Update to C++STYLE conventions.
5138 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
5139 new() instead of std::malloc().
5140 (return_temporary_buffer): Use ::operator delete() instead of
5143 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
5145 * include/bits/allocator.h: Temporary switch to new_allocator as
5146 the default to unjam bootstraps.
5148 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
5150 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
5151 * include/Makefile.in: Regenerate.
5152 * include/bits/allocator_traits.h: Remove.
5153 * include/bits/allocator.h: Remove allocator_traits.h include, and
5155 (allocator): Empty base class, inherit from the underlying allocator.
5156 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
5157 * src/allocator.cc: ...here. New. For the underlying allocators.
5158 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
5159 * config/linker-map.gnu: Remove __pool_alloc bits.
5160 * src/Makefile.am (sources): Add allocator.cc.
5161 * src/Makefile.in: Regenerate.
5162 * testsuite/20_util/allocator/1.cc: Split second test into...
5163 * testsuite/20_util/allocator/8230.cc: ...this.
5164 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
5165 typedef to use std::allocatore. Format.
5166 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
5168 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
5169 __throw_bad_alloc calls. Don't include <memory>.
5170 * include/ext/malloc_allocator.h: Remove <memory> include.
5171 * include/ext/new_allocator.h (new_allocator): Same.
5172 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
5173 declaration. Switch __alloc to _Alloc.
5174 * include/ext/hashtable.h: Remove __alloc.
5175 * include/backward/alloc.h: Only inject allocator, not
5176 implementation details.
5178 * include/ext/mt_allocator.h: Replace free with delete.
5180 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
5182 * src/globals_io.cc: Change to __gnu_internal namespace.
5183 * src/globals_locale.cc: Same.
5184 * src/locale_init.cc: Same.
5185 * src/ios_init.cc: Same.
5187 2004-01-28 Stefan Olsson <stefan@snon.net>
5189 * include/ext/mt_allocator.h: Replaced all malloc() calls with
5190 operator new(). Added support for the env variable
5191 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
5192 one in allocate() as well). Fix typos.
5194 2004-01-28 Paolo Carlini <pcarlini@suse.de>
5196 * include/bits/basic_string.h (_S_create(size_t,
5197 const _Alloc&): Change signature to take two size_type
5199 * include/bits/basic_string.tcc (_S_construct(_InIterator,
5200 _InIterator, const _Alloc&, input_iterator_tag)): Update
5202 (_S_construct(_InIterator, _InIterator, const _Alloc&,
5203 forward_iterator_tag)): Likewise.
5204 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
5205 (_M_mutate(size_type, size_type, size_type)): Don't
5206 implement the exponential growth policy, demand it to
5207 _S_create, update call and simplify.
5208 (_M_clone(const _Alloc&, size_type)): Likewise.
5209 (_S_create(size_type, size_type, const _Alloc&)): Implement
5210 the growth policy, simplify otherwise.
5212 * include/bits/basic_string.h (_Rep::operator[]): Tweak
5213 signature to take a size_type, consistently with the other
5216 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
5218 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
5219 delete declarations, add include and test variable.
5221 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
5223 * include/bits/codecvt.h, include/bits/locale_facets.h,
5224 include/bits/postypes.h, include/bits/stl_bvector.h,
5225 include/bits/stl_multiset.h, include/bits/stl_set.h,
5226 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
5227 include/std/std_complex.h: Document.
5229 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
5232 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
5233 iword/pword selector.
5234 (ios_base::iword, ios_base::pword): Use it.
5235 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
5236 iword or pword member on alloc failure.
5237 * testsuite/27_io/ios_base/storage/11584.cc: New test.
5239 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
5240 PJ Darcy <darcypj@us.ibm.com>
5242 * configure.host: Add support for *-tpf.
5243 * crossconfig.m4: Likewise.
5244 * configure: Regenerate.
5245 * config/os/tpf: New directory.
5246 * config/os/tpf/os_defines.h: New file.
5247 * config/os/tpf/ctype_base.h: Likewise.
5248 * config/os/tpf/ctype_inline.h: Likewise.
5249 * config/os/tpf/ctype_noninline.h: Likewise.
5251 2004-01-27 Paolo Carlini <pcarlini@suse.de>
5254 * include/bits/sstream.tcc: Guard use of extern template.
5256 2004-01-27 Paolo Carlini <pcarlini@suse.de>
5258 * include/bits/basic_string.tcc
5259 (basic_string(const basic_string&, size_type, size_type),
5260 basic_string(const basic_string&, size_type, size_type,
5261 const _Alloc&)): Avoid unnecessarily constructing iterators.
5263 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5265 * config/locale/generic/c_locale.cc: Fix throw messages
5266 to use the __N marker.
5267 * config/locale/gnu/c_locale.cc: Likewise.
5268 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
5270 * docs/html/17_intro/C++STYLE: Likewise.
5271 * include/bits/basic_ios.tcc: Likewise.
5272 * include/bits/fstream.tcc: Likewise.
5273 * include/bits/vector.tcc: Likewise.
5274 * include/ext/ropeimpl.h: Likewise.
5275 * include/std/std_bitset.h: Likewise.
5276 * src/ios.cc: Likewise.
5277 * src/locale.cc: Likewise.
5278 * src/localename.cc: Likewise.
5280 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5282 * include/bits/basic_string.h (_M_replace_aux): Use the
5283 __N marker in throw message.
5284 * include/bits/basic_string.tcc (assign(const _CharT*,
5285 size_type), insert(size_type, const _CharT*, size_type),
5286 replace(size_type, size_type, const _CharT*, size_type),
5287 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
5290 * include/bits/basic_string.h, include/bits/basic_string.tcc:
5291 Fold overlong lines, minor formatting changes.
5293 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5295 * include/bits/basic_string.h (replace(iterator, iterator,
5296 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
5297 (replace(iterator, iterator, const _CharT*)): Ditto.
5298 (replace(iterator, iterator, const _CharT*, size_type)):
5299 Add missing _GLIBCXX_DEBUG_PEDASSERT.
5301 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5303 * include/bits/basic_string.tcc (replace(size_type,
5304 size_type, const _CharT*, size_type)): Implement optimized
5305 in-place algorithm for non-overlapping ranges.
5306 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
5307 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
5309 * include/bits/basic_string.tcc (insert(size_type,
5310 const _CharT*, size_type)): Tweak slightly.
5312 2004-01-26 Andreas Schwab <schwab@suse.de>
5314 * config/locale/gnu/monetary_members.cc: Restore locale before
5315 rethrowing exception.
5317 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5319 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
5321 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
5324 * include/bits/basic_string.tcc: Very minor tweaks.
5326 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5328 * testsuite/performance/string_append.cc: Increase number
5331 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5333 * include/bits/basic_string.h (erase(size_type, size_type),
5334 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
5335 instead, thus avoiding redundant check for length_error.
5337 * include/bits/basic_string.h: Tweak some comments.
5339 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5341 * include/bits/basic_string.tcc (operator+(const _CharT*,
5342 const basic_string&)): No need to go through the append
5343 taking two iterators.
5345 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5347 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
5348 Revert last change to use std::min: machine language is worse.
5349 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
5350 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5351 (find_last_not_of(_CharT, size_type)): Ditto.
5353 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
5354 size_type)): Discard the value returned by _M_check.
5355 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
5356 (append(const basic_string&, size_type, size_type)): Ditto.
5357 (copy(_CharT*, size_type, size_type)): Ditto.
5358 (compare(size_type, size_type, const basic_string&)): Ditto.
5359 (compare(size_type, size_type, const basic_string&,
5360 size_type, size_type)): Ditto.
5361 (compare(size_type, size_type, const _CharT*)): Ditto.
5362 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5364 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5366 * include/bits/basic_string.h (insert(size_type,
5367 const basic_string&, size_type, size_type)): Define inline here.
5368 * include/bits/basic_string.tcc (insert(size_type,
5369 const basic_string&, size_type, size_type)): Move inline.
5371 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5373 * include/bits/basic_string.h (assign(const basic_string&,
5374 size_type, size_type)): Define inline here.
5375 (replace(size_type, size_type, const basic_string&,
5376 size_type, size_type)): Ditto.
5377 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5378 _InputIterator, __false_type)): Only declare.
5379 (_M_replace(iterator, iterator, _InputIterator,
5380 _InputIterator)): Remove.
5381 * include/bits/basic_string.tcc (assign(const basic_string&,
5382 size_type, size_type)): Move inline.
5383 (replace(size_type, size_type, const basic_string&,
5384 size_type, size_type)): Ditto.
5385 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5386 _InputIterator, __false_type)): Define, now does also what
5387 _M_replace did before.
5388 * src/string-inst.cc (_M_replace): Don't instantiate.
5390 * include/bits/basic_string.tcc (find(const _CharT*,
5391 size_type, size_type)): Tidy.
5392 (rfind(_CharT, size_type)): Ditto.
5393 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
5394 (find_first_not_of(_CharT, size_type)): Ditto.
5395 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5396 (find_last_not_of(_CharT, size_type)): Ditto.
5398 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5401 * include/debug/bitset (operator|=): Fix typo.
5402 * testsuite/23_containers/bitset/operations/13838.cc: New.
5404 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5406 * include/bits/basic_string.tcc (insert(size_type,
5407 const _CharT*, size_type __n)): Fix length_error check.
5408 (replace(size_type, size_type, const _CharT*, size_type):
5409 Ditto; call _M_replace_safe.
5410 (_M_replace_aux(size_type, size_type, size_type, _CharT):
5411 Fix length_error check.
5412 (_M_replace(iterator, iterator, _InputIterator,
5413 _InputIterator)): Ditto, tweak.
5414 (_M_replace_safe(size_type, size_type, const _CharT*,
5415 size_type)): Remove length_error check.
5417 * include/bits/basic_string.tcc (append(const basic_string&),
5418 append(const basic_string&, size_type, size_type)): Tweak
5421 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
5422 size_type)): If __n == 0 don't call traits::copy.
5424 2004-01-23 Stefan Olsson <stefan@snon.net>
5426 * include/ext/mt_allocator.h: Reduce lock contention.
5428 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5431 * include/bits/fstream.tcc (underflow): Remove unused
5433 * include/bits/streambuf_iterator.h (equal): Ditto.
5434 * include/bits/locale_facets.h (_M_convert_from_char):
5437 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5440 * config/linker-map.gnu (nan): Delete.
5441 * libmath/mathconf.h (NAN, nan): Delete.
5442 * linkage.m4 (nan): Don't check for it.
5443 * libmath/nan.c: Delete file.
5445 * config.h.in, configure: Regenerate.
5447 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5449 * include/bits/basic_string.h (push_back(_CharT)):
5450 Call _M_replace_aux.
5451 (insert(size_type, const basic_string&)): Trivial tweak.
5452 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
5453 (insert(iterator, _CharT)): Ditto.
5454 (erase(size_type, size_type)): Ditto.
5455 (erase(iterator)): Ditto.
5456 (erase(iterator, iterator)): Ditto.
5457 (replace(size_type, size_type, size_type, _CharT)): Ditto.
5459 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
5462 * testsuite/performance/allocator_map_thread.cc: New test.
5464 2004-01-22 Paolo Carlini <pcarlini@suse.de>
5466 * include/bits/locale_facets.tcc
5467 (money_put::do_put(..., long double)): Use the basic_string
5468 constructor for char arrays, not that for C-strings, to pass
5469 __digits to do_put(..., const string_type&): __ws isn't
5472 2004-01-22 Paolo Carlini <pcarlini@suse.de>
5474 * include/bits/basic_string.h (_M_replace_safe): Change
5475 signatures to take size_types and const _CharT*.
5476 (_M_replace_aux): Likewise, takes size_types instead of
5478 (append(size_type, _CharT)): Update call.
5479 (assign(size_type, _CharT)): Ditto.
5480 (replace(iterator, iterator, size_type, _CharT)): Ditto.
5481 (_M_replace_dispatch(iterator, iterator, _Integer,
5482 _Integer, __true_type)): Ditto.
5483 * include/bits/basic_string.tcc (assign(const _CharT*,
5485 (insert(size_type, const _CharT*, size_type)): Ditto.
5486 (replace(size_type, size_type, const _CharT*,
5488 (_M_replace(iterator, iterator, _InputIterator,
5489 _InputIterator)): Ditto.
5490 (append(const basic_string&)): Ditto.
5491 (append(const basic_string&, size_type, size_type): Ditto.
5492 (append(const _CharT*, size_type): Ditto.
5493 (_M_replace_safe, _M_replace_safe): Change definitions
5494 accordingly, simplify.
5495 * string-inst.cc (_M_replace_safe): Don't instantiate.
5497 2004-01-21 Paolo Carlini <pcarlini@suse.de>
5499 * include/bits/basic_string.tcc (append(const basic_string&)):
5500 Revert previous change.
5501 (append(const basic_string&, size_type, size_type)): Revert
5502 previous change, use _M_check and _M_limit.
5504 2004-01-21 Paolo Carlini <pcarlini@suse.de>
5506 * include/bits/basic_string.h (_M_check): Change to return
5507 a checked __pos and take an additional const char* argument.
5508 (_M_fold): Rename to _M_limit, change to return a size_type,
5509 corresponding to the __off limited to the actual length.
5510 (insert(size_type, size_type, _CharT)): Update call, call
5512 (insert(iterator, _CharT)): Call replace(iterator, iterator,
5513 size_type, _CharT) instead.
5514 (erase(size_type, size_type)): Update calls.
5515 (replace(size_type, size_type, size_type, _CharT)): Ditto.
5516 (substr(size_type, size_type)): Use _M_check.
5517 * include/bits/basic_string.tcc (basic_string(const basic_string&,
5518 size_type, size_type)): Update calls.
5519 (basic_string(const basic_string&, size_type, size_type,
5520 const _Alloc&)): Ditto.
5521 (assign(const basic_string&, size_type, size_type)): Use the
5522 new _M_check and _M_limit.
5523 (insert(size_type, const basic_string&, size_type, size_type):
5525 (insert(size_type, const _CharT*, size_type)): Ditto.
5526 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
5527 (replace(size_type, size_type, const basic_string&,
5528 size_type, size_type)): Ditto.
5529 (append(const basic_string&)): Ditto.
5530 (append(const basic_string&, size_type, size_type)): Ditto.
5531 (copy(_CharT*, size_type, size_type)): Ditto.
5532 (compare(size_type, size_type, const basic_string&)): Ditto.
5533 (compare(size_type, size_type, const basic_string&,size_type,
5535 (compare(size_type, size_type, const _CharT*)): Ditto.
5536 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5538 2004-01-19 Stefan Olsson <stefan@snon.net>
5540 * include/ext/mt_allocator.h: If a thread, when it dies, still has
5541 memory on it's freelist this memory is not returned to global
5542 list. Simplification of deallocate so that memory is always
5543 returned to the calling thread id's freelist instead of to
5544 global. Fix typos. Add volatile where appropriate.
5546 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
5548 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
5549 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
5550 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
5552 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5554 * src/debug.cc: Make sure all the names are prefixed with
5555 double (or single) underscore.
5557 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5559 * src/debug.cc: Trivial formatting change.
5561 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5563 * include/bits/basic_string.tcc (_S_construct(size_type,
5564 _CharT, const _Alloc&)): Remove redundant try/catch.
5565 (_M_mutate(size_type, size_type, size_type)): Ditto.
5566 (_M_clone(const _Alloc&, size_type)): Ditto.
5568 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5570 * include/bits/basic_string.h (c_str()): Simplify, due to
5571 21.3.4 the internal representation is always kept null-terminated.
5572 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
5573 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
5574 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
5577 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5579 * include/bits/basic_string.h (append(size_type, _CharT)):
5580 Moved inline, just call _M_replace_aux, no source iterators at
5581 risk of being clobbered.
5582 (assign(size_type, _CharT)): Call directly _M_replace_aux.
5583 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5584 input_iterator_tag)): Remove fifth unused argument.
5585 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5586 _InputIterator, __false_type)): Update call.
5587 * include/bits/basic_string.tcc (replace(size_type, size_type,
5588 const _CharT*, size_type)): Update call.
5589 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
5590 throw string literal.
5591 (_M_replace_safe(iterator, iterator, _ForwardIterator,
5592 _ForwardIterator)): Likewise.
5593 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5594 input_iterator_tag)): Remove fifth unused argument.
5595 (append(size_type __n, _CharT __c)): Move inline.
5596 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
5597 const C*, const C*, input_iterator_tag)): Remove fifth unused
5600 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
5602 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
5603 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
5605 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
5607 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
5610 2004-01-15 Stefan Olsson <stefan@snon.net>
5612 * include/ext/mt_allocator.h: Reuse thread id's as soon as
5613 possible by changing the behaviour of thread_freelist to do
5614 push_front when threads die instead of push_back.
5616 2004-01-14 Paolo Carlini <pcarlini@suse.de>
5618 * include/bits/locale_facets.h (struct __numpunct_cache):
5619 Add member _M_grouping_size, caching the length of _M_grouping.
5620 (__numpunct_cache<>::_M_cache): Assign the latter.
5621 (__verify_grouping): Move declaration...
5622 * include/bits/locale_facets.tcc (__verify_grouping):
5623 ... here, change signature to take a const char* and a size_t
5624 for the grouping; not a template anymore.
5625 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
5626 Likewise change signature and tweak consistently.
5627 (num_get::_M_extract_float, num_get::_M_extract_int,
5628 num_put::_M_insert_int, num_put::_M_insert_float,
5629 money_get::do_get(string_type&), money_get::do_put(string_type)):
5631 * config/locale/generic/numeric_members.cc
5632 (numpunct<>::_M_initialize_numpunct): Assign the new member.
5633 * config/locale/gnu/numeric_members.cc
5634 (numpunct<>::_M_initialize_numpunct): Likewise.
5635 * src/locale-inst.cc (__add_grouping): Tweak signature.
5636 (__verify_grouping): Don't instantiate, not a template anymore.
5638 * include/bits/locale_facets.h: Rename _M_truename_len ->
5639 _M_truename_size, _M_falsename_len -> _M_falsename_size.
5640 * include/bits/locale_facets.tcc: Likewise.
5641 * config/locale/generic/numeric_members.cc: Likewise.
5642 * config/locale/gnu/numeric_members.cc: Likewise.
5644 2004-01-14 Stefan Olsson <stefan@snon.net>
5646 * include/ext/mt_allocator.h: Fixups.
5647 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
5648 * testsuite/performance/allocator_thread.cc: Same.
5650 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
5652 * testsuite/performance/ifstream_extract_float.cc: Add higher
5654 * testsuite/performance/ofstream_insert_float.cc: Same.
5656 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5658 * src/locale-misc-inst.cc (__convert_from_v(long),
5659 __convert_from_v(unsigned long), __convert_from_v(long long),
5660 __convert_from_v(unsigned long long)): Remove, unused.
5662 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
5664 * testsuite/performance/ifstream_extract_float.cc: New.
5665 * testsuite/performance/ofstream_insert_float.cc: Float generation
5668 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
5669 * 20_util/auto_ptr/1.cc: ...this.
5670 * 20_util/auto_ptr/2.cc: Same.
5671 * 20_util/auto_ptr/3.cc: Same.
5672 * 20_util/auto_ptr/3946.cc: Same.
5673 * 20_util/auto_ptr/4.cc: Same.
5674 * 20_util/auto_ptr/5.cc: Same.
5675 * 20_util/auto_ptr/6.cc: Same.
5676 * 20_util/auto_ptr/7.cc: Same.
5677 * 20_util/auto_ptr/assign_neg.cc
5678 * 20_util/pairs.cc: Break into...
5679 * 20_util/pair/1.cc: ...this.
5680 * 20_util/pair/2.cc: Same.
5681 * 20_util/pair/3.cc: Same.
5682 * 20_util/pair/4.cc: Same.
5684 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5686 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
5687 Set correctly just basefield, the only group that matters.
5689 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5691 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
5692 (_Rope_rep_base): Inherit directly from the rope allocator;
5693 use rebinding instead of _Alloc_traits; pick up data member
5694 from _Rope_rep_alloc_base.
5695 (_Rope_alloc_base): Eliminate.
5696 (_Rope_base): Inherit directly from the rope allocator; use
5697 rebinding instead of _Alloc_traits; pick up data member from
5699 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
5700 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
5702 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5705 * include/bits/basic_string.tcc (compare(size_type, size_type,
5706 const _CharT*, size_type)): Implement correctly the resolution
5707 of DR 5: basically, s is a char array, -not- a C string.
5708 * include/bits/basic_string.h: Tweak some comments.
5709 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
5710 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
5712 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
5714 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
5717 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5719 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
5721 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
5724 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5726 * include/bits/locale_facets.h (struct __numpunct_cache):
5727 Add members _M_truename_len and _M_falsename_len, caching
5728 the lengths of _M_truename and _M_falsename.
5729 (__numpunct_cache<>::_M_cache): Assign the latter.
5730 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
5731 num_put::do_put(bool)): Use the new members, thus avoiding
5732 computing string lengths again and again.
5733 * config/locale/generic/numeric_members.cc
5734 (numpunct<>::_M_initialize_numpunct): Assign the new members.
5735 * config/locale/gnu/numeric_members.cc
5736 (numpunct<>::_M_initialize_numpunct): Likewise.
5738 2004-01-12 Mark Mitchell <mark@codesourcery.com>
5740 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
5741 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
5743 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
5744 and remove Cygwin XFAIL.
5745 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
5746 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
5747 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
5748 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
5750 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
5751 * testsuite/27_io/objects/char/7.cc: Likewise.
5752 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
5753 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
5754 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
5756 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
5758 * include/std/std_complex.h (std::complex<>::real): Return a
5759 reference. Add non-const overload.
5760 (std::complex<>::real): Likewise.
5761 (std::real): Likewise.
5762 (std::imag): Likewise.
5763 (std::operator+): Tidy.
5764 (std::operator-): Likewise.
5765 (std::operator*): Likewise.
5766 (std::operator/): Likewise.
5767 (std::operator>>): Likewise.
5769 2004-01-11 Paolo Carlini <pcarlini@suse.de>
5772 * include/bits/fstream.tcc (imbue): Exploit the external
5773 buffer to imbue 'on the fly' a new locale and convert its
5774 remainder with the new codecvt facet.
5775 (underflow): Tweak slightly to deal with this special case.
5776 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
5777 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
5778 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
5779 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
5780 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
5782 2004-01-10 Paolo Carlini <pcarlini@suse.de>
5784 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
5787 2004-01-10 Paolo Carlini <pcarlini@suse.de>
5790 * include/bits/locale_classes.h (class locale): Fix category
5792 * testsuite/22_locale/locale/13630.cc: Add.
5794 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
5796 * include/bits/locale_facets.h: Make a name really dependent. This
5797 will be needed when Core Issue 224 is implemented.
5799 2004-01-09 Paolo Carlini <pcarlini@suse.de>
5801 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
5802 * testsuite/performance/allocator_thread.cc: Likewise.
5804 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
5806 * crossconfig.m4: Add LFS, io bits to linux cross config.
5807 * acconfig.h: Remove obsolete bits, reorder.
5808 * config.h.in: Regenerate.
5812 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
5814 * include/bits/stl_list.h:
5815 * include/bits/list.tc:
5817 Performance enhancements for destructor, push_front(),
5818 push_back(), pop_front(), pop_back(), sort()
5819 Eliminated static_casts where possible.
5820 Moved code out of header files into new src/list.cc
5821 implementation file for library where possible.
5822 Remove inheritance from iterator class and create separate
5823 classes for non-constant and constant iterators.
5824 * include/bits/stl_tree.h (_Rb_tree class):
5826 Only erase contents in destructor.
5827 Eliminate unnecessary initialization in assignment operator.
5828 Optimize for the nominal case by not checking whether
5829 container is empty in clear().
5830 Re-order test in _M_insert() to improve performance.
5831 Move initialization of new node's left & right pointers to
5832 src/tree.cc to where new node's colour is initialized
5833 and to reduce the amount of inline code.
5834 Use _M_leftmost() and _M_end() to improve readability where
5836 Create separate classes for non-constant and constant
5837 iterators to clarify code, avoid extra template parameters and
5838 casting away constness.
5840 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
5842 * src/Makefile.am (sources): Add list.cc, tree.cc.
5843 * src/stl_tree.cc: Move to...
5844 * src/tree.cc: ...here.
5846 * config/linker-map.gnu: Tweaks.
5847 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
5848 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
5850 * bits/stl_vector.h: Column wrap comments.
5852 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
5854 (re-open) PR libstdc++/12658
5855 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
5856 (locale::global): Likewise.
5858 2004-01-07 Paolo Carlini <pcarlini@suse.de>
5860 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
5861 Remove redundant #include.
5862 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
5863 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
5864 re-enable normal testing.
5865 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
5867 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
5868 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
5870 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
5872 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
5874 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
5876 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
5878 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
5880 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
5882 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
5883 More properly, #include <locale>.
5884 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
5885 Remove redundant #include.
5886 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
5887 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
5888 redundant DejaGnu directive.
5889 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
5892 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
5893 Stefan Olsson <stefan@snon.net>
5895 * scripts/check_performance: Use -pthread.
5896 * testsuite/performance/allocator.cc: Tweaks, add list.
5897 * testsuite/performance/allocator_thread.cc: New.
5899 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
5901 * include/bits/locale_facets.h: Document public classes and
5903 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
5906 2004-01-06 Paolo Carlini <pcarlini@suse.de>
5908 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
5909 Remove redundant #includes.
5910 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
5912 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
5914 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
5915 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
5916 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
5917 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
5918 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
5919 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
5920 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
5921 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
5922 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
5923 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
5924 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
5925 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
5926 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
5927 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
5928 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
5930 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
5932 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
5934 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
5936 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
5938 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
5939 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
5940 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
5942 2004-01-04 Paolo Carlini <pcarlini@suse.de>
5944 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
5945 Remove redundant #includes.
5946 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
5948 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
5950 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
5952 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
5954 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
5956 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
5958 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
5960 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
5962 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
5964 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
5966 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
5968 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
5971 2004-01-04 Mark Mitchell <mark@codesourcery.com>
5974 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
5976 * testsuite/27_io/basic_fstream/4.cc: Likewise.
5977 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
5978 * testsuite/27_io/basic_ios/4.cc: Likewise.
5979 * testsuite/27_io/basic_iostream/4.cc: Likewise.
5980 * testsuite/27_io/basic_istream/4.cc: Likewise.
5981 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
5982 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
5983 * testsuite/27_io/basic_ostream/4.cc: Likewise.
5984 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
5985 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
5986 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
5988 2004-01-04 Paolo Carlini <pcarlini@suse.de>
5990 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
5991 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
5992 always use double underscored names.
5993 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
5995 * include/bits/locale_facets.h (struct __numpunct_cache):
5996 Dimension _M_atoms_out and _M_atoms_in one position smaller.
5997 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out