1 2004-11-19 Paolo Carlini <pcarlini@suse.de>
3 * testsuite/22_locale/time_get/get_date/char/1.cc: In the checks
4 use, more correctly (and consistently with other testcases) the
5 return value of the facet (the iterator arguments are by value).
6 * testsuite/22_locale/time_get/get_date/char/12791.cc: Likewise.
7 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Likewise.
8 * testsuite/22_locale/time_get/get_date/wchar_t/12791.cc: Likewise.
9 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Likewise.
10 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
11 * testsuite/22_locale/time_get/get_time/char/1.cc: Likewise.
12 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Likewise.
13 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
14 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
15 * testsuite/22_locale/time_get/get_year/char/1.cc: Likewise.
16 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Likewise.
18 2004-11-19 Jonathan Wakely <redi@gcc.gnu.org>
20 * Makefile.am (doxygen, doxygen-maint, doxygen-man): Remove extra '$'
21 from host_alias variable.
22 * Makefile.in: Regenerate.
24 2004-11-19 Chris Jefferson <chris@bubblescope.net>
26 * include/bits/stl_list.h (list::back, list::back const):
27 Don't decrement temporary.
29 2004-11-19 Paolo Carlini <pcarlini@suse.de>
31 * include/bits/stl_deque.h (deque::front, deque::front const,
32 deque::back, deque::back const): Slightly tweak for stylistic
35 2004-11-18 Paolo Carlini <pcarlini@suse.de>
37 * testsuite/26_numerics/numeric/sum_diff.cc: Use VERIFY.
38 * testsuite/ext/array_allocator/1.cc: Likewise.
39 * testsuite/ext/array_allocator/2.cc: Likewise.
40 * testsuite/ext/array_allocator/3.cc: Likewise.
41 * testsuite/ext/enc_filebuf/char/13598.cc: Likewise.
43 2004-11-18 Paolo Carlini <pcarlini@suse.de>
45 * include/bits/locale_facets.tcc (num_get<>::do_get(void*&)):
46 If the failbit is set, don't set it again.
47 (money_get<>::_M_extract): Minor stylistic tweak: consistently
48 with the other functions, take care of eofbit at the end.
50 2004-11-18 Paolo Carlini <pcarlini@suse.de>
52 DR 434. bitset::to_string() hard to use [Ready]
53 * include/std/std_bitset.h (to_string): Add three overloads, taking
54 fewer template arguments.
55 * docs/html/ext/howto.html: Add an entry for DR 434.
56 * testsuite/23_containers/bitset/to_string/1.cc: New.
58 2004-11-17 Paolo Carlini <pcarlini@suse.de>
60 * include/bits/istream.tcc (getline(basic_istream<>&, basic_string<>&,
61 _CharT)): Remove temporary kludge for libstdc++/15002.
62 * include/std/std_streambuf.h (class basic_streambuf): Declare
63 getline(basic_istream<>&, basic_string<>&, _CharT) as friend.
64 * include/bits/basic_string.h (getline(basic_istream<>&,
65 basic_string<>&, _CharT)): Declare optimized specializations for
66 char and wchar_t, using protected members of basic_streambuf.
67 * src/istream.cc: Define the latter.
69 2004-11-16 Jonathan Wakely <redi@gcc.gnu.org>
71 * docs/html/19_diagnostics/howto.html: Document change from
72 _GLIBCPP_CONCEPT_CHECKS to _GLIBCXX_CONCEPT_CHECKS in 3.4.
74 2004-11-16 Matthias Klose <doko@debian.org>
76 * docs/doxygen/user.cfg.in: Set HAVE_DOT to NO.
78 2004-11-16 Matthias Klose <doko@debian.org>
80 * Makefile.am (doxygen, doxygen-maint, doxygen-man): Use host_alias
81 instead of build_alias.
82 * docs/doxygen/run_doxygen: Likewise.
83 * docs/doxygen/user.cfg.in: Likewise.
84 * Makefile.in: Regenerate.
86 2004-11-15 Paolo Carlini <pcarlini@suse.de>
88 * include/bits/streambuf.tcc (__copy_streambufs): Provide
89 a generic version of the function, not using the protected
90 members of basic_streambuf.
91 * include/std/std_streambuf.h (__copy_streambufs): Declare
92 optimized specializations for char and wchar_t.
93 * src/streambuf.cc: New file, define the latter.
94 * src/Makefile.am: Add.
95 * src/Makefile.in: Regenerate.
97 2004-11-15 Matthias Klose <doko@debian.org>
99 * docs/doxygen/run_doxygen: Add --build_alias option,
100 substitute it in docs/doxygen/user.cfg.in.
101 * docs/doxygen/user.cfg.in: Use build_alias.
102 * Makefile.am: Pass --build_alias to run_doxygen
103 * Makefile.in: Regenerate.
105 2004-11-15 Benjamin Kosnik <bkoz@redhat.com>
107 * testsuite/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.4.
109 2004-11-15 Paolo Carlini <pcarlini@suse.de>
111 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 33.
113 2004-11-14 Paolo Carlini <pcarlini@suse.de>
115 * include/bits/streambuf_iterator.h (istreambuf_iterator::_M_get):
116 Slightly tweak for clarity (also leads to measurably better code).
118 2004-11-12 Andrew Pinski <pinskia@physics.uc.edu>
121 * testsuite/lib/libstdc++.exp: Set LC_ALL and LANG to C.
123 2004-11-09 Paolo Carlini <pcarlini@suse.de>
125 * include/bits/locale_facets.tcc (time_get<>::do_get_weekday,
126 time_get<>::do_get_monthname): Absolutely avoid dereferencing
129 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
132 2004-11-08 Benjamin Kosnik <bkoz@redhat.com>
133 Doug Gregor <dgregor@cs.indiana.edu>
136 * src/debug.cc : Just use one mutex.
138 2004-11-08 Benjamin Kosnik <bkoz@redhat.com>
140 * configure.ac (libtool_VERSION): To 6:4:0.
141 * configure: Regenerate.
143 * config/linker-map.gnu: Slide new symbols into GLIBCXX_3.4.4.
145 * docs/doxygen/user.cfg.in: Add more extension files.
147 2004-11-08 Paolo Carlini <pcarlini@suse.de>
149 * include/bits/streambuf_iterator.h (class istreambuf_iterator):
150 Consistently use _M_c to cache the current char, i.e., not only
151 when operator++(int) is involved; change _M_c to mutable.
152 (_M_get()): Always save the return value of _M_sbuf->sgetc() into
154 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Fix
155 (long standing) typo.
156 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
157 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
158 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
160 2004-11-08 Paolo Carlini <pcarlini@suse.de>
162 * include/bits/istream.tcc (getline(char_type*, streamsize,
163 char_type), ignore(streamsize), ignore(streamsize, int_type)):
164 Restore a generic version of the functions, not using the
165 protected members of basic_streambuf.
166 * include/std/std_istream.h (getline(char_type*, streamsize,
167 char_type), ignore(streamsize), ignore(streamsize, int_type)):
168 Declare optimized specializations for char and wchar_t.
169 * src/istream.cc: New file, define the latter.
170 * src/Makefile.am: Add.
171 * src/Makefile.in: Regenerate.
173 2004-11-07 Paolo Carlini <pcarlini@suse.de>
175 * testsuite/performance/27_io/ifstream_getline-2.cc: New.
177 2004-11-05 Benjamin Kosnik <bkoz@redhat.com>
181 * docs/doxygen/filter: Remove.
182 * docs/doxygen/filter.sed: Remove.
183 * docs/doxygen/mainpage.html: Add link to functions.
184 * docs/doxygen/run_doxygen: Changes due to new source filtering.
185 * docs/doxygen/user.cfg.in: Update to doxygen 1.3.9.1, tweak.
186 * include/bits/allocator.h: Tweaks for doxygen.
187 * include/bits/char_traits.h: Same.
188 * include/bits/codecvt.h: Same.
189 * include/bits/concurrence.h: Same.
190 * include/bits/locale_facets.h: Same.
191 * include/ext/array_allocator.h: Same.
192 * include/ext/debug_allocator.h: Same.
193 * include/ext/malloc_allocator.h: Same.
194 * include/ext/mt_allocator.h: Same.
195 * include/ext/new_allocator.h: Same.
196 * include/ext/pool_allocator.h: Same.
197 * include/ext/stdio_sync_filebuf.h: Same.
198 * include/std/std_memory.h: Same.
199 * include/tr1/array: Same.
200 * include/tr1/tuple: Same.
201 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
202 * config/os/gnu-linux/ctype_base.h: Same.
204 2004-11-04 Paolo Carlini <pcarlini@suse.de>
206 * include/bits/locale_facets.tcc (num_get<>::do_get(bool&)):
207 Evaluate __beg == __end the exact strict minimum number of times.
209 2004-11-03 Jonathan Wakely <redi@gcc.gnu.org>
211 * include/bits/stl_numeric.h (partial_sum, adjacent_difference):
212 Avoid dereferencing two times __first in the prologue.
214 2004-11-03 Paolo Carlini <pcarlini@suse.de>
216 * include/bits/stl_numeric.h: Trivial formatting fixes.
218 2004-11-03 Benjamin Kosnik <bkoz@redhat.com>
220 * include/bits/c++config: Spacing.
221 * libsupc++/del_op.cc: Include c++config.h.
222 * libsupc++/del_opnt.cc: Same.
223 * libsupc++/del_opv.cc: Same.
224 * libsupc++/del_opvnt.cc: Same.
225 * libsupc++/new_op.cc: Same.
226 * libsupc++/new_opnt.cc: Same.
227 * libsupc++/new_opv.cc: Same.
228 * libsupc++/new_opvnt.cc: Same.
230 2004-11-03 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
232 * config/os/bsd/darwin/os_defines.h
233 (_GLIBCXX_WEAK_DEFINITION): Define.
234 * include/bits/c++config (_GLIBCXX_WEAK_DEFINITION): Define.
235 * libsupc++/del_op.cc (operator delete(void *)): Use
236 _GLIBCXX_WEAK_DEFINITION.
237 * libsupc++/del_opnt.cc
238 (operator delete(void *, const std::nothrow_t&)): Same.
239 * libsupc++/del_opv.cc (operator delete[](void *)): Same.
240 * libsupc++/del_opvnt.cc
241 (operator delete[](void *, const std::nothrow_t&)): Same.
242 * libsupc++/new_op.cc (operator new(std::size_t)): Same.
243 * libsupc++/new_opnt.cc
244 (operator new(std::size_t, const std::nothrow_t&)): Same
245 * libsupc++/new_opv.cc (operator new[](std::size_t)): Same.
246 * libsupc++/new_opvnt.cc
247 (operator new[](std::size_t, const std::nothrow_t&)): Same.
249 2004-11-02 Paolo Carlini <pcarlini@suse.de>
251 * include/bits/locale_facets.tcc (num_get<>::_M_extract_int):
252 Evaluate *__beg the exact strict minimum number of times; likewise
253 for __beg != __end; slightly simplify main parsing loop.
255 2004-11-02 Benjamin Kosnik <bkoz@redhat.com>
256 Lothar Werzinger <lothar@xcerla.com>
259 * src/debug.cc: Include concurrence, use mutexes.
260 (_Safe_iterator_base::_M_attach): Here.
261 (_Safe_iterator_base::_M_detach): Here.
263 2004-11-02 Benjamin Kosnik <bkoz@redhat.com>
266 * include/bits/ios_base.h : Add enum values.
267 * testsuite/testsuite_hooks.h (bitmask_operators): Add function.
268 * testsuite/27_io/ios_base/types/fmtflags/bitmask_operators.cc: New.
269 * testsuite/27_io/ios_base/types/fmtflags/case_label.cc: New.
270 * testsuite/27_io/ios_base/types/iostate/bitmask_operators.cc: New.
271 * testsuite/27_io/ios_base/types/iostate/case_label.cc: New.
272 * testsuite/27_io/ios_base/types/openmode/bitmask_operators.cc: New.
273 * testsuite/27_io/ios_base/types/openmode/case_label.cc: New.
274 * testsuite/27_io/ios_base/types/seekdir/case_label.cc: New.
276 * config/io/c_io_stdio.h (__ios_flags): Mark deprecated.
279 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
280 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
282 2004-11-01 Momchil Velikov <velco@fadata.bg>
285 * libsupc++/eh_globals.cc (get_globals_dtor): Delete unhandled
287 * testsuite/thread/18185.cc: New.
289 2004-11-01 Chris Jefferson <chris@bubblescope.net>
292 * include/tr1/tuple (get(pair)): Change occurrences of _I to _Int.
293 (get(const pair)): Likewise.
295 2004-11-01 Paolo Carlini <pcarlini@suse.de>
297 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
298 Evaluate *__beg the exact strict minimum number of times; likewise
299 for __beg != __end; in the main parsing loop, call ++__beg in two
300 places only. The former is also a correctness issue, because,
301 according to the standard (22.2.2.1.2, Stage 2), 'in' shall be
302 dereferenced only one time for each increment.
304 2004-10-31 Benjamin Kosnik <bkoz@redhat.com>
307 * testsuite/23_containers/set/modifiers/16728.cc: New.
309 2004-10-30 Paolo Carlini <pcarlini@suse.de>
311 * include/ext/bitmap_allocator.h (allocate(size_type)): Minor tweak.
313 * testsuite/ext/bitmap_allocator/check_delete.cc: New.
314 * testsuite/ext/bitmap_allocator/check_new.cc: Likewise.
316 2004-10-29 Geoffrey Keating <geoffk@apple.com>
318 * configure.host (darwin*): Set os_include_dir to a separate directory
320 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add a new C locale kind,
322 * config/locale/darwin/ctype_members.cc: New.
323 * config/os/bsd/darwin/ctype_base.h: New.
324 * config/os/bsd/darwin/ctype_inline.h: New.
325 * config/os/bsd/darwin/ctype_noninline.h: New.
326 * config/os/bsd/darwin/os_defines.h: New.
328 * testsuite/22_locale/locale/cons/12658_thread-1.cc: Only xfail
331 2004-10-29 Chris Jefferson <chris@bubblescope.net>
333 * include/bit/stl_algo.h (find_first_of(,,,,pred)):
334 Remove invalid EqualOpConcept.
335 * testsuite/25_algorithms/find_first_of/concept_check_1.cc: New.
337 2004-10-29 Benjamin Kosnik <bkoz@redhat.com>
339 * testsuite/testsuite_allocator.h (check_delete): New.
340 (check_new): Simplify.
341 * testsuite/ext/array_allocator/check_delete.cc: New.
342 * testsuite/ext/array_allocator/check_new.cc: Simplify.
343 * testsuite/ext/debug_allocator/check_delete.cc: New.
344 * testsuite/ext/debug_allocator/check_new.cc: Simplify.
345 * testsuite/ext/malloc_allocator/check_delete.cc: New.
346 * testsuite/ext/malloc_allocator/check_new.cc: Simplify.
347 * testsuite/ext/mt_allocator/check_delete.cc: New.
348 * testsuite/ext/mt_allocator/check_new.cc: Simplify.
349 * testsuite/ext/new_allocator/check_delete.cc: New.
350 * testsuite/ext/new_allocator/check_new.cc: Simplify.
351 * testsuite/ext/pool_allocator/check_delete.cc: New.
352 * testsuite/ext/pool_allocator/check_new.cc: Simplify.
354 2004-10-28 Chris Jefferson <chris@bubblescope.net>
357 * include/tr1/tuple: Fix, change formatting.
359 2004-10-28 Benjamin Kosnik <bkoz@redhat.com>
361 * include/ext/mt_allocator.h (__common_pool_policy): Add template
362 template parameter for pool class type.
363 (__per_type_pool_policy): Same.
364 (__mt_allocator): Don't inherit policy. Qualify policy_type calls.
365 * testsuite/ext/mt_allocator/check_deallocate_null.cc: Fix.
366 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: Same.
367 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
368 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
369 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
370 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
371 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Same.
372 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
373 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
374 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
375 * testsuite/ext/mt_allocator/instantiate.cc: Same.
376 * testsuite/ext/mt_allocator/tune-1.cc: Same.
377 * testsuite/ext/mt_allocator/tune-2.cc: Same.
378 * testsuite/ext/mt_allocator/tune-3.cc: Same.
379 * testsuite/ext/mt_allocator/tune-4.cc: Same.
381 2004-10-28 Paolo Carlini <pcarlini@suse.de>
383 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
384 Cache *__beg in __c when parsing exponent sign too.
385 (num_get<>::do_get(..., bool&)): Cache *__beg.
386 (money_get<>::_M_extract)): Likewise, in money_base::value.
388 2004-10-27 Paolo Carlini <pcarlini@suse.de>
390 * include/bits/basic_string.h (assign(const basic_string&)):
392 * include/bits/basic_string.tcc: ... here.
394 2004-10-27 Paolo Carlini <pcarlini@suse.de>
396 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
398 * include/bits/basic_string.tcc: ... here.
400 2004-10-26 Paolo Carlini <pcarlini@suse.de>
402 * include/bits/basic_string.h (append(const basic_string&),
403 append(size_type, _CharT)): Move out of line...
404 * include/bits/basic_string.tcc: ... here.
406 2004-10-26 Paolo Carlini <pcarlini@suse.de>
408 * include/bits/basic_string.h (erase(size_type, size_type),
409 erase(iterator), erase(iterator, iterator)): Call _M_mutate
410 instead of _M_replace_safe, equivalent when the fourth argument
413 2004-10-26 Benjamin Kosnik <bkoz@redhat.com>
415 * include/ext/array_allocator.h (array::allocate): Check for valid
416 array object, use its size member function directly.
417 * testsuite/ext/array_allocator/3.cc: New.
418 * docs/html/20_util/allocator.html: Add docs.
420 2004-10-25 Geoffrey Keating <geoffk@apple.com>
422 * configure.host (darwin*): Build libstdc++ single module
424 * libsupc++/new_op.cc (new): Make weak.
425 * libsupc++/new_opnt.cc (new): Make weak.
426 * libsupc++/new_opv.cc (new): Make weak.
427 * libsupc++/new_opvnt.cc (new): Make weak.
428 * libsupc++/delete_op.cc (delete): Make weak.
429 * libsupc++/delete_opnt.cc (delete): Make weak.
430 * libsupc++/delete_opv.cc (delete): Make weak.
431 * libsupc++/delete_opvnt.cc (delete): Make weak.
433 2004-10-25 Benjamin Kosnik <bkoz@redhat.com>
435 * testsuite/Makefile.am (GLIBCXX_INCLUDES): Add.
436 (AUTOMAKE_OPTIONS): Add nostdinc.
437 * testsuite/Makefile.in: Regenerate.
438 * scripts/testsuite_flags.in (build-includes): Remove redundant
439 search for libsupc++.
440 * fragment.am: Clean.
442 2004-10-25 Benjamin Kosnik <bkoz@redhat.com>
444 * include/Makefile.am (tr1_headers): Add tuple.
445 * include/Makefile.in: Regenerate.
447 2004-10-25 Chris Jefferson <chris@bubblescope.net>
449 * include/tr1/tuple: Implementation of tuple from library TR.
450 * testsuite/tr1/6_containers/tuple/tuple_element.cc: New.
451 * testsuite/tr1/6_containers/tuple/tuple_size.cc: New.
452 * testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc:
454 * testsuite/tr1/6_containers/tuple/cons/assignment.cc: New.
455 * testsuite/tr1/6_containers/tuple/cons/big_tuples.cc: New.
456 * testsuite/tr1/6_containers/tuple/cons/constructor.cc: New.
457 * testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc:
459 * testsuite/tr1/6_containers/tuple/creation_functions/tie.cc: New.
460 * testsuite/tr1/6_containers/tuple/element_access/get.cc: New.
462 2004-10-25 Paolo Carlini <pcarlini@suse.de>
464 * include/bits/basic_string.h (_Rep::_M_is_safe): Move to
465 basic_string as _M_disjunct, adjust to take only __s.
466 * include/bits/basic_string.tcc: Adjust consistently callers.
468 2004-10-25 Paolo Carlini <pcarlini@suse.de>
470 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
471 Adjust bit missing from the previous commit.
473 2004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
476 * testsuite/lib/libstdc++.exp: Accept more than one multilib libgcc.
478 2004-10-25 Paolo Carlini <pcarlini@suse.de>
480 * include/bits/basic_string.h (_Rep::_M_is_safe, _M_check_length,
481 _M_move, _M_copy, _M_assign): New, use througout.
482 (operator+=(_CharT)): Define in terms of push_back.
483 (append(const basic_string&)): Define here, inline, and simplify,
484 don't use the full _M_replace_safe.
485 (append(size_type, _CharT)): Likewise, don't use _M_replace_aux.
486 (push_back): Likewise.
487 (assign(const basic_string&)): Define here, inline.
488 * include/bits/basic_string.tcc (append(const _CharT* s, size_type):
489 Fix: when s points inside the _Rep, upon reallocation (reserve) we
490 were copying from deallocated memory.
491 (append(const basic_string&, size_type, size_type)): Simplify,
492 don't use _M_replace_safe.
493 (replace(size_type, size_type, const _CharT*, size_type)): Slightly
496 * testsuite/21_strings/basic_string/append/char/2.cc: New.
497 * testsuite/21_strings/basic_string/append/char/3.cc: Likewise.
498 * testsuite/21_strings/basic_string/append/wchar_t/2.cc: Likewise.
499 * testsuite/21_strings/basic_string/append/wchar_t/3.cc: Likewise.
501 * testsuite/21_strings/basic_string/assign/char/3.cc: Remove junk.
502 * testsuite/21_strings/basic_string/assign/wchar_t/3.cc: Likewise.
504 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
506 * testsuite/ext/mt_allocator/deallocate_global-2.c:
507 s/value_t/value_type/. s/traits_t/traits_type/.
508 s/policy_t/policy_type/. s/allocator_t/allocator_type/.
509 s/string_t/string_type/. s/list_t/list_type/.
510 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Likewise.
511 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Likewise.
512 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Likewise.
513 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Likewise.
514 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Likewise.
515 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Likewise.
516 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Likewise.
518 2004-10-21 Benjamin Kosnik <bkoz@redhat.com>
520 * include/tr1/array (array): Make safe for zero-sized arrays.
521 (array::end): Return one past the end.
522 (array::at): Use __throw_out_of_range, include functexcept.h.
523 (operator==): Implement.
529 * testsuite/tr1/6_containers/array/capacity/(empty.cc,
530 max_size.cc, size.cc): New.
531 * testsuite/tr1/6_containers/array/comparison_operators/(equal.cc,
532 greater.cc, greater_or_equal.cc, less.cc, less_or_equal.cc,
534 * testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc:
536 * testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc:
538 * testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc: New.
539 * testsuite/tr1/6_containers/array/requirements/(contiguous.cc,
540 instantiate, typedefs, zero_size_arrays): New.
542 2004-10-21 Paolo Carlini <pcarlini@suse.de>
543 Benjamin Kosnik <bkoz@redhat.com>
545 * include/bits/basic_string.h (_M_set_length_and_sharable): New.
546 * include/bits/basic_string.tcc (_S_construct, assign(const _CharT*,
547 size_type), _M_mutate, _M_clone): Use it.
548 (_Rep::_S_create): Don't set/call _M_length/_M_set_sharable here.
550 2004-10-21 Paolo Carlini <pcarlini@suse.de>
551 Dhruv Matani <dhruvbird@gmx.net>
552 Nathan Myers <ncm@cantrip.org>
554 * include/bits/vector.tcc (_M_insert_aux, _M_fill_insert,
555 _M_range_insert): Check at the outset that we are not trying
556 to exceed max_size, then deal properly with __len overflows.
557 * testsuite/23_containers/vector/modifiers/insert/1.cc: New.
559 * testsuite/testsuite_allocator.h: Remove redundant include.
561 2004-10-20 Paolo Carlini <pcarlini@suse.de>
563 * include/ext/bitmap_allocator.h (allocate): Throw std::bad_alloc
565 * include/ext/malloc_allocator.h (allocate): Likewise.
566 * include/ext/mt_allocator.h (allocate): Likewise.
567 * include/ext/new_allocator.h (allocate): Likewise.
568 * include/ext/array_allocator.h: Use __throw_bad_alloc().
569 * include/ext/pool_allocator.h: Use __builtin_expect.
570 * testsuite/ext/array_allocator/check_allocate_max_size.cc: New.
571 * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc: Likewise.
572 * testsuite/ext/malloc_allocator/check_allocate_max_size.cc: Likewise.
573 * testsuite/ext/mt_allocator/check_allocate_max_size.cc: Likewise.
574 * testsuite/ext/new_allocator/check_allocate_max_size.cc: Likewise.
575 * testsuite/ext/pool_allocator/check_allocate_max_size.cc: Likewise.
576 * testsuite/testsuite_allocator.h (check_allocate_max_size): New test.
578 2004-10-19 Paolo Carlini <pcarlini@suse.de>
580 * testsuite/performance/20_util/allocator/list_sort_search.cc:
581 Include <ext/new_allocator.h>.
582 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
584 2004-10-18 Paolo Carlini <pcarlini@suse.de>
586 * include/bits/basic_string.tcc (_M_mutate): Do not reallocate
587 unnecessarily when _M_rep() == &_S_empty_rep() and __new_size
588 == capacity() (== 0): is ok to just leave everything unchanged.
590 * include/bits/basic_string.h: Minor formatting fixes.
591 * include/bits/basic_string.tcc: Likewise.
593 2004-10-17 Benjamin Kosnik <bkoz@redhat.com>
595 * include/ext/mt_allocator.h (__pool::_M_get_align): New.
596 (__mt_alloc::allocate): Use it.
597 * src/mt_allocator.cc (__pool::_M_reclaim_block): Use it.
598 (__pool::_M_reserve_block): Simplify block allocation.
600 2004-10-17 Dhruv Matani <dhruvbird@gmx.net>
601 Paolo Carlini <pcarlini@suse.de>
603 * include/ext/bitmap_allocator.h: Change unsigned int -> size_t: this
604 makes the code 64-bit correct and also fixes (together with using at
605 the beginning a bitmap 2 * size_t bytes wide) alignment issues: now
606 8 is guaranteed, easily tunable to 16 via _BALLOC_ALIGN_BYTES.
607 Fix pthread-rope7.cc fail by nulling out __mini_vector<> destructor.
608 * src/bitmap_allocator.cc: Change to size_t.
609 * config/linker-map.gnu: Adjust.
611 2004-10-16 Benjamin Kosnik <bkoz@redhat.com>
613 * include/tr1/array: Don't use layout_type.
615 2004-10-16 Sashan Govender <sashang@gmail.com>
617 * include/tr1/array (array::end const): Fix casting from iterator
620 2004-10-15 Paolo Carlini <pcarlini@suse.de>
622 * include/ext/bitmap_allocator.h: Qualify ::operator delete.
623 * src/bitmap_allocator.cc: Likewise.
624 * src/mt_allocator.cc: Use ::operator delete, not delete,
625 consistently with ::operator new.
627 * include/ext/bitmap_allocator.h (deallocate): Check for null
629 * testsuite/ext/bitmap_allocator/check_deallocate_null.cc: New.
630 * testsuite/testsuite_allocator.h (check_deallocate_null): Add test.
632 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
634 * include/ext/mt_allocator.h (__mt_alloc::deallocate): Check for
636 * include/ext/pool_allocator.h (debug_allocator::deallocate):
638 * include/ext/debug_allocator.h (debug_allocator::deallocate):
639 Throw exceptions, don't abort.
640 * include/ext/array_allocator.h
641 (array_allocator_base::deallocate): Remove unused parameters.
642 * testsuite/testsuite_allocator.h (check_deallocate_null): New.
643 * testsuite/ext/mt_allocator/check_deallocate_null.cc: New.
644 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: New.
645 * testsuite/ext/array_allocator/check_deallocate_null.cc: New.
646 * testsuite/ext/debug_allocator/check_deallocate_null.cc: New.
647 * testsuite/ext/malloc_allocator/check_deallocate_null.cc: New.
648 * testsuite/ext/new_allocator/check_deallocate_null.cc: New.
649 * testsuite/ext/pool_allocator/check_deallocate_null.cc: New.
651 * testsuite/testsuite_allocator.h (check_new): Add instance argument.
652 * testsuite/ext/array_allocator/check_new.cc: New.
654 2004-10-14 Paolo Carlini <pcarlini@suse.de>
656 * include/ext/bitmap_allocator.h (bitmap_allocator::_Alloc_block):
657 Rename __unused to __M_unused.
659 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
661 * testsuite/ext/headers.cc: Add includes, compile only.
662 * testsuite/ext/hash_map.cc: Move to...
663 * testsuite/ext/hash_map/1.cc: ...here.
664 * testsuite/ext/14648.cc: Move to...
665 * testsuite/ext/hash_map/14648.cc: ...here.
666 * testsuite/ext/hash_map/instantiate.cc: Add.
667 * testsuite/ext/hash_set.cc: Move to...
668 * testsuite/ext/hash_set/1.cc: ...here.
669 * testsuite/ext/hash_set_explicit_instantiation.cc: Move to...
670 * testsuite/ext/hash_set/instantiate.cc: ...here.
671 * testsuite/ext/hash_check_construct_destroy.cc: Move to...
672 * testsuite/ext/hash_set/check_construct_destroy.cc: ...here.
673 * testsuite/ext/slist_check_construct_destroy.cc: Move to...
674 * testsuite/ext/slist/check_construct_destroy.cc: ...here.
675 * testsuite/ext/slist_explicit_instantiation.cc: Move to...
676 * testsuite/ext/slist/instantiate.cc: ...here.
678 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
680 * include/ext/mt_allocator.h: Tweaks.
681 * src/mt_allocator.cc: Same.
683 2004-10-14 Dhruv Matani <dhruvbird@gmx.net>
685 * ext/bitmap_allocator.h: Clean-up add/remove functions.
686 * src/bitmap_allocator.cc: New file. Contains the out-of-line
687 function definitions, static initialization of variables, and
688 explicit instantiations needed for the allocator.
689 * src/Makefile.am: Add.
690 * src/Makefile.in: Regenerate.
691 * config/linker.map.gnu: Add the necessary symbols.
693 2004-10-13 Paolo Carlini <pcarlini@suse.de>
695 * include/bits/basic_string.tcc (_S_create): Use consistently
696 the exponential policy, simplify.
697 * testsuite/performance/21_strings/string_append_2.cc: New.
699 * include/ext/array_allocator.h (allocate): Fix bad_alloc check.
700 * testsuite/ext/array_allocator/2.cc: Fix wrt 64-bit archs (in
701 that case sizeof(_Rep) == 24).
703 2004-10-12 Paolo Carlini <pcarlini@suse.de>
706 * include/bits/stl_tree.h (erase(iterator, iterator)): Revert
707 wrong commit of 2004-10-07.
709 2004-10-12 Scott Snyder <snyder@fnal.gov>
712 * testsuite/23_containers/set/modifiers/17948.cc: New.
714 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
716 * include/bits/stl_deque.h: Correct for over-long lines.
718 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
721 * include/ext/mt_allocator.h (__pool::_M_destroy): New.
722 * src/mt_allocator.cc (__pool::~__pool): Change definitions to
724 * acconfig.h: Remove _GLIBCXX_USE___CXA_ATEXIT.
725 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): Remove.
726 * configure.ac: Remove call to GLIBCXX_ENABLE_CXA_EXIT.
727 * configure: Regenerate.
728 * config/linker-map.gnu: Tweak exports.
729 * docs/html/ext/mt_allocator.html: Update docs.
730 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Fix.
731 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Fix.
732 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Fix.
733 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Fix.
734 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Fix.
735 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Fix.
736 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Fix.
737 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Fix.
739 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
741 PR libstdc++/16614 continued.
742 * include/ext/mt_allocator.h
743 (__per_type_pool_policy::_S_get_pool): Use saner defaults based on
744 specific type characteristics.
745 (__pool_base): Add constructor that takes a _Tune argument.
747 * testsuite/ext/mt_allocator/tune-2.cc: Adjust default.
748 * testsuite/ext/mt_allocator/tune-4.cc: Same.
749 * testsuite/ext/mt_allocator/tune-3.cc: Same.
751 2004-10-11 Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
752 Paolo Carlini <pcarlini@suse.de>
754 * src/pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk):
755 Deal properly with exceptions thrown by ::operator new(size_t).
756 * testsuite/ext/pool_allocator/allocate_chunk.cc: New.
758 * include/ext/pool_allocator.h: Include <cstdlib>.
760 2004-10-10 Benjamin Kosnik <bkoz@redhat.com>
762 * include/bits/functexcept.h: Add guards.
764 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Tweak test.
765 * configure: Regenerate.
767 2004-10-10 Paolo Carlini <pcarlini@suse.de>
769 * config/locale/gnu/monetary_members.cc (_S_construct_pattern):
770 Give __ret a default value, thus avoiding spurious warnings.
772 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Open either
773 words or linux.words, otherwise exit.
774 * testsuite/performance/27_io/ifstream_getline.cc: Slighlty tweak.
776 2004-10-09 Paolo Carlini <pcarlini@suse.de>
778 * include/std/std_memory.h (__get_temporary_buffer): Don't use
779 INT_MAX, prefer numeric_limits<ptrdiff_t>::max(), ok on 64-bit
781 * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust dg-error
784 2004-10-08 Benjamin Kosnik <bkoz@redhat.com>
786 * acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
787 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): New.
788 * configure.ac: Call GLIBCXX_ENABLE_CXA_EXIT.
789 * configure: Regenerate.
790 * src/mt_allocator.cc (__pool::~__pool): Make conditional on
791 _GLIBCXX_USE___CXA_ATEXIT macro.
792 * docs/html/ext/mt_allocator.html: Add note about deallocation.
793 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Guard checks
794 with _GLIBCXX_USE___CXA_ATEXIT.
795 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
796 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
797 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
798 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
799 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
800 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
801 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
803 2004-10-07 Phil Edwards <phil@codesourcery.com>
805 * testsuite/lib/libstdc++.exp: Update list of undefined functions.
807 2004-10-07 Paolo Carlini <pcarlini@suse.de>
809 * include/bits/list.tcc (operator=): Avoid iterator postincrement.
810 * include/bits/stl_tree.h (erase(iterator, iterator)): Likewise.
812 2004-10-07 Benjamin Kosnik <bkoz@redhat.com>
815 * include/tr1/array: New.
816 * include/Makefile.am (tr1_headers): New.
818 (install-headers): New.
819 (allstamped): Add stamp-tr1.
821 * include/ext/array_allocator.h: New.
822 * include/Makefile.am: Add.
823 * include/Makefile.in: Regenerate.
824 * testsuite/ext/array_allocator/1.cc: New.
825 * testsuite/ext/array_allocator/2.cc: New.
827 2004-10-07 Richard Earnshaw <rearnsha@arm.com>
829 * testsuite/lib/libstdc++.exp (libstdc++_exit): New proc.
831 2004-10-07 Roger Sayle <roger@eyesopen.com>
834 * configure.ac: Newlib does not provide strtold.
835 * configure: Regenerate.
837 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
839 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
840 (GLIBCXX_CONFIGURE_TESTSUITE): Use it.
841 * configure: Regenerated.
842 * testsuite/Makefile.am (CLEANFILES): Add TEST for
843 check-performance executables.
846 * testsuite/Makefile.in: Regenerate.
847 * scripts/create_testsuite_files: Filter thread tests.
849 * testsuite/thread/pthread1.cc: Remove macro conditionals: this
850 file will only be run by thread enabled configurations.
851 * testsuite/thread/pthread7-rope.cc: Same, add rope_type typedef.
852 * testsuite/thread/pthread6.cc: Same.
853 * testsuite/thread/pthread5.cc: Same.
854 * testsuite/thread/pthread4.cc: Same.
855 * testsuite/thread/pthread3.cc: Same.
856 * testsuite/thread/pthread2.cc: Same.
858 * testsuite/ext/mt_allocator/instantiate.cc: Add in __GTHREADS guard.
859 * testsuite/ext/mt_allocator/deallocate_global-1.cc: Move to...
860 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: ...here.
861 * testsuite/ext/mt_allocator/deallocate_global-3.cc: Move to...
862 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: ...here.
863 * testsuite/ext/mt_allocator/deallocate_local-1.cc: Move to...
864 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: ...here.
865 * testsuite/ext/mt_allocator/deallocate_local-3.cc: Move to...
866 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: ...here.
868 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
869 Paolo Carlini <pcarlini@suse.de>
872 * src/mt_allocator.cc (__pool<true>::_M_reserve_block): Revert
873 to old locking order.
875 2004-10-06 Paolo Carlini <pcarlini@suse.de>
877 * include/std/std_sstream.h (_M_sync): When the caller is
878 setbuf, don't trust _M_string.capacity() to be the size of
879 the buffer area, use _M_string.size() in this case.
880 * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
881 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.
883 * include/bits/sstream.tcc (overflow): Avoid calling string::assign
884 unnecessarily when the current _M_string is empty.
886 2004-10-06 Paolo Carlini <pcarlini@suse.de>
888 * include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)):
889 Avoid iterator postincrement.
890 (__rotate): Likewise.
892 * include/bits/stl_algo.h: Minor formatting tweaks.
894 2004-10-06 Christopher Jefferson <caj@cs.york.ac.uk>
896 * include/bits/stl_algo.h (__reverse(random_access_iterator_tag)):
897 Avoid iterator postincrement; fix swapping middle element with
898 itself on odd-length inputs.
900 2004-10-05 Benjamin Kosnik <bkoz@redhat.com>
903 * include/ext/mt_allocator.h (__pool_base::_Tune): Add default
904 options as compile-time constant enums.
905 (__pool_base::_Tune::is_default): New.
906 (__pool_base::_Block_address): New.
907 (__pool_base): Rearrange data members.
908 (__pool::_M_reserve_memory): To _M_reserve_block.
909 (__pool::_M_reclaim_memory): To _M_reclaim_block.
910 (__pool::_Bin_record): Add _Block_address data member.
911 (__pool<false>): Add _M_thread_freelist_initial.
912 (__pool::~__pool): Declare.
913 (__common_pool_policy): Move static data member to...
914 (__common_pool_policy::_S_get_pool): ...here, make static local.
915 (__per_type_pool_policy): Move static data member to...
916 (__per_type_pool_policy::_S_get_pool): ...here, make static local.
917 (__mt_alloc::__mt_alloc): Call __policy_type::_S_get_pool.
918 Remove static member definitions. Use define for __default_policy.
919 * src/mt_allocator.cc: Same.
920 * config/linker-map.gnu: Don't export _S_get_pool. Renames.
921 * testsuite/ext/new_allocator: New.
922 * testsuite/ext/new_allocator/instantiate.cc: New.
923 * testsuite/ext/new_allocator/check_new.cc: New.
924 * testsuite/ext/new_allocator/deallocate_global.cc: New.
925 * testsuite/ext/new_allocator/deallocate_local.cc: New.
926 * testsuite/ext/mt_allocator/instantiate.cc: Instantiate all
928 * testsuite/ext/mt_allocator/deallocate_global-1.cc: New.
929 * testsuite/ext/mt_allocator/deallocate_global-2.cc: New.
930 * testsuite/ext/mt_allocator/deallocate_global-3.cc: New.
931 * testsuite/ext/mt_allocator/deallocate_global-4.cc: New.
932 * testsuite/ext/mt_allocator/deallocate_local-1.cc: New.
933 * testsuite/ext/mt_allocator/deallocate_local-2.cc: New.
934 * testsuite/ext/mt_allocator/deallocate_local-3.cc: New.
935 * testsuite/ext/mt_allocator/deallocate_local-4.cc: New.
936 * testsuite/ext/mt_allocator/deallocate.cc: New.
937 * testsuite/ext/malloc_allocator/deallocate.cc: New.
938 * testsuite/ext/malloc_allocator/deallocate_global.cc: New.
939 * testsuite/ext/malloc_allocator/deallocate_local.cc: New.
941 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
943 * configure.host (abi_baseline_pair): Define for s390-*-linux* and
945 * config/abi/s390-linux-gnu/baseline_symbols.txt: Add missing symbols.
946 * config/abi/s390x-linux-gnu/baseline_symbols.txt: New file.
948 2004-10-05 Christopher Jefferson <caj@cs.york.ac.uk>
950 * include/bits/stl_algobase.h (iter_swap): delegate to swap via
951 __iter_swap when iterator's value_types are equal.
952 (struct __iter_swap): New.
954 2004-10-04 Benjamin Kosnik <bkoz@redhat.com>
956 * configure.ac (libtool_VERSION): To 6:3:0.
957 * configure: Regnerate.
958 * testsuite/testsuite_abi.cc (check_version): Add 3.4.3.
960 2004-10-04 Roger Sayle <roger@eyesopen.com>
961 Eric Botcazou <ebotcazou@libertysurf.fr>
964 * config/linker-map.gnu: Synchronize the current list of stub
965 functions from libmath.
967 2004-10-03 Roger Sayle <roger@eyesopen.com>
969 * config/locale/generic/c_locale.cc (__convert_to_v): Use
970 _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
971 Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
972 to check for presence of strtold.
974 2004-10-03 Paolo Carlini <pcarlini@suse.de>
976 * include/bits/stl_list.h: Trivial formatting fixes.
977 * include/bits/stl_tree.h: Likewise.
979 2004-10-03 Paolo Carlini <pcarlini@suse.de>
981 * include/bits/sstream.tcc (seekpos): In case of success, just
984 2004-10-01 Paolo Carlini <pcarlini@suse.de>
986 * include/bits/sstream.tcc (pbackfail): Implement correctly
987 27.7.1.3/2, bullet 2: if mode & ios_base::out is false do not
989 * testsuite/27_io/basic_stringbuf/pbackfail/char/1.cc: New.
990 * testsuite/27_io/basic_stringbuf/pbackfail/char/2.cc: Likewise.
991 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/1.cc: Likewise.
992 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/2.cc: Likewise.
993 * testsuite/27_io/basic_istream/putback/char/1.cc: Tweak consistently.
995 2004-10-01 Paolo Carlini <pcarlini@suse.de>
997 * include/bits/sstream.tcc (seekpos): Minor rearrangement of two
998 conditionals consistently with seekoff.
999 * include/std/std_sstream.h (setbuf): Avoid a string temporary.
1000 (_M_sync): Simplify a bit, clean-up comment.
1002 2004-09-30 Paolo Carlini <pcarlini@suse.de>
1004 PR libstdc++/10975 (DR 453)
1005 * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
1007 * docs/html/ext/howto.html: Add an entry for DR 453.
1008 * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
1009 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
1010 * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
1011 * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
1012 * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
1013 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
1015 * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
1016 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
1018 * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
1020 2004-09-29 Paolo Carlini <pcarlini@suse.de>
1022 * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
1023 Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
1024 (str()): Slightly tweak, protect from pptr() == 0.
1025 (_M_update_egptr()): Likewise.
1026 * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
1027 for an empty buffer use __beg instead of _M_string.capacity().
1028 * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
1029 * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
1031 * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
1032 * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
1033 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
1034 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
1036 2004-09-29 Paolo Carlini <pcarlini@suse.de>
1037 Benjamin Kosnik <bkoz@redhat.com>
1039 * testsuite/testsuite_io.h (class constraint_buf): New, extended
1040 and templatized version of constraint_filebuf; add typedefs for
1041 streambuf/stringbuf/filebuf and wchar_t counterparts.
1043 2004-09-28 Paolo Carlini <pcarlini@suse.de>
1046 * include/bits/basic_string.h (_M_dispose, _M_refcopy,
1047 basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
1048 don't deal with _S_empty_rep.
1049 * include/bits/basic_string.tcc (_S_construct, _M_destroy,
1050 _M_leak_hard, _M_mutate): Likewise.
1051 * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
1052 * acconfig.h: Add corresponding undef.
1053 * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
1054 * docs/html/configopts.html: Document --enable-fully-dynamic-string.
1055 * configure: Regenerate.
1056 * config.h.in: Likewise.
1058 2004-09-28 Benjamin Kosnik <bkoz@redhat.com>
1059 Paolo Carlini <pcarlini@suse.de>
1061 * testsuite/21_strings/basic_string/operations/char/1.cc: New.
1062 * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
1063 * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
1064 * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc:
1067 2004-09-28 Paolo Carlini <pcarlini@suse.de>
1069 * README: Remove obsolete entry about include/c_shadow.
1071 2004-09-24 H.J. Lu <hongjiu.lu@intel.com>
1074 * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
1076 2004-09-24 Paolo Carlini <pcarlini@suse.de>
1078 * src/localename.cc (locale::locale(const char*)): Minor tweaks:
1079 rename a variable, move an assignment.
1080 (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
1082 2004-09-24 Paul Brook <paul@codesourcery.com>
1084 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
1086 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1087 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
1088 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
1089 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
1090 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
1091 * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
1093 2004-09-23 Zack Weinberg <zack@codesourcery.com>
1095 * testsuite/20_util/memory/auto_ptr/assign_neg.cc
1096 * testsuite/23_containers/map/operators/1_neg.cc
1097 * testsuite/23_containers/set/operators/1_neg.cc:
1098 Update locations and/or regexps of dg-error markers.
1100 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
1102 * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
1103 Add rule to build ${host_builddir}/gthr-tpf.h.
1104 * include/Makefile.in: Regenerate.
1106 2004-09-23 Paolo Carlini <pcarlini@suse.de>
1107 Magnus Fromreide <magfr@lysator.liu.se>
1109 * include/bits/boost_concept_check.h (struct _SequenceConcept):
1110 Remove wrong requirement, i.e., not present in Table 67.
1112 2004-09-21 Paolo Carlini <pcarlini@suse.de>
1114 PR libstdc++/12882 (cont)
1115 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
1116 * configure: Regenerate.
1117 * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
1118 _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
1119 trivial showmanyc for large files too.
1121 2004-09-17 Jonathan Wakely <redi@gcc.gnu.org>
1123 * include/bits/stl_algo.h (remove): Remove too restrictive
1126 2004-09-17 Paolo Carlini <pcarlini@suse.de>
1128 * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
1129 as per Nathan's original suggestion.
1131 2004-09-17 Paolo Carlini <pcarlini@suse.de>
1133 * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
1135 * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
1136 * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
1137 * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
1139 2004-09-17 Paolo Carlini <pcarlini@suse.de>
1140 Andrea Arcangeli <andrea@suse.de>
1142 * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
1143 call unnecessarily sync, that is fflush: the library, since 3.4.0
1144 does not use buffered fread/fwrite.
1145 * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
1147 2004-09-15 Mark Mitchell <mark@codesourcery.com>
1149 * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
1151 * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
1153 * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
1154 (__cxa_vec_new): Use it.
1155 (__cxa_vec_new2): Likewise.
1156 (__cxa_vec_new3): Likewise.
1157 (__cxa_vec_cdtor): Likewise.
1158 (__cxa_vec_cctor): Likeiwse.
1159 (__cxa_vec_dtor): Likewise.
1160 (__cxa_vec_cleanup): Likewise.
1161 (__cxa_vec_delete2): Likewise.
1162 (__cxa_vec_delete3): Likewise.
1163 * libsupc++/vec.cc (__cxa_vec_new): Likewise.
1164 (__cxa_vec_new2): Likewise.
1165 (__cxa_vec_new3): Likewise.
1166 (__cxa_vec_cdtor): Likewise.
1167 (__cxa_vec_cctor): Likeiwse.
1168 (__cxa_vec_dtor): Likewise.
1169 (__cxa_vec_cleanup): Likewise.
1170 (__cxa_vec_delete2): Likewise.
1171 (__cxa_vec_delete3): Likewise.
1172 (__aeabi_vec_ctor_nocookie_nodtor): New function.
1173 (__aeabi_vec_ctor_cookie_nodtor): Likewise.
1174 (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
1175 (__aeabi_vec_new_cookie_noctor): Likewise.
1176 (__aeabi_vec_new_nocookie): Likewise.
1177 (__aeabi_vec_new_cookie_nodtor): Likewise.
1178 (__aeabi_vec_new_cookie): Likewise.
1179 (__aeabi_vec_dtor): Likewise.
1180 (__aeabi_vec_dtor_cookie): Likewise.
1181 (__aeabi_vec_delete): Likewise.
1182 (__aeabi_vec_delete3): Likewise.
1183 (__aeabi_vec_delete3_nodtor): Likewise.
1184 (__aeabi_atexit): Likewise.
1186 2004-09-14 Nathan Myers <ncm@cantrip.org>
1188 * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
1189 for 11722: copy can replace move; the common case is __avail == 0.
1191 2004-09-14 Paolo Carlini <pcarlini@suse.de>
1193 * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
1194 to __is_scalar, more clear and consistent with "tr1" naming.
1195 * include/bits/stl_algobase.h: Update consistently throughout.
1197 2004-09-13 Paolo Carlini <pcarlini@suse.de>
1200 * include/std/std_fstream.h (xsgetn): Declare only.
1201 * include/bits/fstream.tcc (xsgetn): Define, optimize for the
1202 always_noconv() case: when __n > __buflen, copy the available
1203 buffer and issue a direct read.
1204 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
1206 * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
1209 2004-09-13 Hans-Peter Nilsson <hp@bitrange.com>
1211 * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
1212 libstdc++_maybe_build_wrapper instead of using local code.
1214 2004-09-08 Benjamin Kosnik <bkoz@redhat.com>
1216 * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
1218 2004-09-03 Jan Beulich <jbeulich@novell.com>
1220 * crossconfig.m4: Add NetWare as a target.
1221 * configure: Regenerate.
1223 2004-09-02 Mark Mitchell <mark@codesourcery.com>
1225 * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
1228 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
1229 Simon Richter <Simon.Richter@hogyros.de>
1232 * include/bits/istream.tcc: Add extern template for iostream
1233 char and wchar_t instantiations.
1235 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
1236 Leland Wang <llwang@infor.org>
1239 * include/ext/ropeimpl.h (rope::_S_compare): Use
1240 _Rope_constants::_S_leaf.
1242 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
1245 * include/Makefile.am (ext_headers): Remove demangle.h.
1246 * include/Makefile.in: Regenerate.
1247 * include/ext/demangle.h: Remove.
1249 2004-09-01 Benjamin Kosnik <bkoz@redhat.com>
1252 * include/ext/mt_allocator.h (__mt_base): Not type dependent,
1254 (__pool): New, specialize.
1255 (__common_pool): New, static bits here.
1256 (__per_type_pool): New, and here.
1257 (__mt_alloc_base): New.
1258 (__mt_alloc): Add template parameter, inherit from it.
1259 * src/allocator.cc: Split this...
1260 * src/allocator-inst.cc: And this...
1261 * src/pool_allocator.cc: ...into this.
1262 * src/mt_allocator.cc: ... and this. Add definitions for
1264 * src/Makefile.am (sources): Split allocator.cc to
1265 pool_allocator.cc and mt_allocator.cc.
1266 * src/Makefile.in: Regenerate.
1267 * config/linker-map.gnu: Add symbols.
1268 * docs/html/ext/mt_allocator.html: Document new design.
1269 * testsuite/ext/mt_allocator/tune-1.cc: New.
1270 * testsuite/ext/mt_allocator/tune-2.cc: New.
1271 * testsuite/ext/mt_allocator/tune-3.cc: New.
1272 * testsuite/ext/mt_allocator/tune-4.cc: New.
1274 * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
1275 * testsuite/ext/allocators.cc: Use check_new, split into...
1276 * testsuite/ext/mt_allocator/check_new.cc: this.
1277 * testsuite/ext/pool_allocator/check_new.cc: this.
1278 * testsuite/ext/malloc_allocator/check_new.cc: this.
1279 * testsuite/ext/debug_allocator/check_new.cc: this.
1280 * testsuite/ext/mt_allocator/instantiate.cc: this.
1281 * testsuite/ext/pool_allocator/instantiate.cc: this.
1282 * testsuite/ext/malloc_allocator/instantiate.cc: this.
1283 * testsuite/ext/debug_allocator/instantiate.cc: this.
1285 2004-08-30 Phil Edwards <phil@codesourcery.com>
1287 * docs/html/install.html: Update locales list (from Paolo).
1288 Remove other redundant information and point to the GCC install
1291 2004-08-30 Benjamin Kosnik <bkoz@redhat.com>
1293 * include/ext/pool_allocator.h: Rename __pool_base to
1295 * src/allocator.cc: Same.
1296 * config/linker-map.gnu: Same.
1298 2004-08-30 Paolo Carlini <pcarlini@suse.de>
1299 Kenneth C. Schalk <ken@xorian.net>
1302 * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
1303 Check the return value of fclose/sync, loop on EINTR.
1304 (__basic_file<char>::sys_open): Likewise, for sync.
1306 2004-08-29 Paolo Carlini <pcarlini@suse.de>
1308 * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
1309 case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
1310 and 7.23.3.5), two if !_GLIBCXX_USE_C99.
1311 * testsuite/22_locale/time_get/get_time/char/4.cc: New.
1312 * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
1314 2004-08-27 Jason Merrill <jason@redhat.com>
1317 * libsupc++/guard.cc (static_mutex): Internal class implementing a
1318 recursive mutex which controls initialization of local statics.
1319 (__gnu_cxx::recursive_init): New exception class.
1320 (__cxa_guard_acquire): Deal with locking and recursion detection.
1321 (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
1323 2004-08-27 Matthias Klose <doko@debian.org>
1325 * configure.host: For mips*-*-linux* update cpu_include_dir
1326 after atomicity_dir is set.
1328 2004-08-27 Matthias Klose <doko@debian.org>
1330 * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
1331 * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1332 * configure.host: Set abi_baseline_pair for arm*-*-linux* and
1335 2004-08-27 Paolo Carlini <pcarlini@suse.de>
1337 * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
1338 * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
1339 * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
1340 * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
1341 * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
1343 * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
1345 * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
1346 * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
1347 * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
1348 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1350 2004-08-25 Paolo Carlini <pcarlini@suse.de>
1352 PR libstdc++/17038 (partial)
1353 * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
1355 * include/bits/locale_facets.h (class __timepunct): Add FIXME
1356 comment about _M_put.
1357 * config/locale/generic/time_members.cc (_M_put): Always null
1359 * config/locale/gnu/time_members.cc (_M_put): Likewise.
1360 * testsuite/22_locale/time_put/put/char/17038.cc: New.
1361 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
1363 2004-08-24 Paolo Carlini <pcarlini@suse.de>
1365 * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
1366 * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
1367 * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
1368 * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
1369 * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
1370 * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
1372 * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
1374 * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
1376 2004-08-22 Matthias Klose <doko@debian.org>
1378 * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
1379 * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1381 2004-08-23 Paolo Carlini <pcarlini@suse.de>
1383 * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
1384 * aclocal.m4: Regenerate with automake-1.9.1.
1385 * configure: Regenerate.
1386 * Makefile.in: Likewise.
1387 * include/Makefile.in: Likewise.
1388 * libmath/Makefile.in: Likewise.
1389 * libsupc++/Makefile.in: Likewise.
1390 * po/Makefile.in: Likewise.
1391 * src/Makefile.in: Likewise.
1392 * testsuite/Makefile.in: Likewise.
1394 2004-08-22 Paolo Carlini <pcarlini@suse.de>
1396 * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
1397 to a signed type, long according to the resolution of DR 359.
1398 * testsuite/22_locale/num_put/put/char/9.cc: New.
1399 * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
1401 * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
1402 Simplify a bit: no need to clear showpos.
1404 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1406 * include/bits/char_traits.h (struct _Char_traits_match): Remove,
1409 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1411 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
1412 wchar_t type for the fill argument; minor formatting tweaks.
1413 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
1414 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
1415 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
1416 * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
1417 * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
1418 * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
1420 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1422 * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
1423 with _M_word != _M_local_word two times, redundantly.
1425 2004-08-20 Jason Merrill <jason@redhat.com>
1427 * include/Makefile.am (${host_builddir}/gthr.h): Don't add
1428 _GLIBCXX_ to #pragma lines.
1429 * include/Makefile.in: Update.
1431 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1433 PR libstdc++/7219 (continued)
1434 * include/bits/ios_base.h (class ios_base): Expose Annex D.6
1435 typedefs by default.
1436 * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
1437 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
1439 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1441 2004-08-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1443 * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
1444 barrier to locking asm.
1446 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1448 * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
1449 actually the warning is a front-end bug (c++/17120).
1451 2004-08-20 Matthias Klose <doko@debian.org>
1453 * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
1455 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1457 * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
1458 used as truth value warning.
1460 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1462 * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
1465 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1467 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
1469 2004-08-19 Benjamin Kosnik <bkoz@redhat.com>
1471 * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
1473 * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
1475 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1477 * testsuite/performance/20_util/allocator/insert.cc: For std::map
1478 instantiate the allocator for a correct pair type.
1479 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1480 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1481 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1484 * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
1485 minor formatting fixes.
1486 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1488 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1490 * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
1492 * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
1493 * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
1494 * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
1495 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
1496 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1497 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1498 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1500 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1502 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1504 2004-08-18 Matthias Klose <doko@debian.org>
1506 * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1507 * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
1508 * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
1510 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1512 * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1514 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1516 * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1518 2004-08-17 Benjamin Kosnik <bkoz@redhat.com>
1520 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1522 2004-08-16 Paolo Carlini <pcarlini@suse.de>
1524 * include/bits/indirect_array.h: Trivial formatting fixes.
1525 * include/bits/valarray_after.h: Likewise.
1526 * include/bits/valarray_array.h: Likewise.
1527 * src/valarray-inst.cc: Likewise.
1529 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1531 * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
1532 * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
1533 * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
1535 * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
1536 * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
1537 * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
1538 * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
1539 * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
1541 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1543 * include/bits/deque.tcc: Trivial formatting fixes.
1545 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1547 * include/bits/deque.tcc: Trivial formatting fixes.
1549 * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
1550 Remove unneded typedef.
1552 * include/bits/locale_facets.tcc: Very minor tweaks.
1554 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
1555 type for the fill argument.
1556 * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
1557 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1558 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1559 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1560 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
1561 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
1562 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
1563 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
1565 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1567 * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
1568 memmove is not needed, memcpy suffices.
1570 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1572 * include/std/std_fstream.h (class basic_ifstream,
1573 class basic_ofstream, class basic_fstream): Add const overloads
1574 of is_open, as per DR 365 [WP].
1575 * docs/html/ext/howto.html: Add an entry for DR 365.
1577 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1579 * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
1581 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1584 * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
1585 to the returned value, reorganize a bit.
1586 * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
1587 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
1589 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
1590 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
1591 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
1592 * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
1594 2004-08-12 Paul Brook <paul@codesourcery.com>
1596 * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
1597 _GLIBCXX_CXA_VEC_CTOR_RETURN.
1598 * config/cpu/generic/cxxabi_tweaks.h: Ditto.
1599 * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
1600 __cxa_vec_ctor_return.
1601 * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
1602 Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
1604 2004-08-12 Kelley Cook <kcook@gcc.gnu.org>
1606 * Makefile.in, aclocal.m4, configure, include/Makefile.in,
1607 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1608 src/Makefile.in, testsuite/Makefile.in: Regenerate
1610 2004-08-12 Jan Beulich <jbeulich@novell.com>
1612 * config/locale/generic/ctype_members.cc
1613 (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
1614 initializer for return value, as that is invalid for enumerated types.
1615 * config/locale/gnu/ctype_members.cc
1616 (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
1618 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1620 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
1622 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1624 * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
1626 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
1627 * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
1628 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
1629 * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
1630 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
1631 * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
1632 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
1633 * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
1634 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
1635 * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
1636 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
1637 * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
1638 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
1639 * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
1640 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
1641 * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
1642 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
1643 * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
1644 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
1645 * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
1646 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
1648 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1649 Petur Runolfsson <peturr02@ru.is>
1652 * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
1653 standard streams are constructed.
1654 * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
1656 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1658 * include/bits/stl_bvector.h: Trivial formatting fixes.
1660 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1662 * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
1664 2004-08-07 Jonathan Wakely <redi@gcc.gnu.org>
1665 Paolo Carlini <pcarlini@suse.de>
1667 * src/debug.cc (_Error_formatter::_M_print_string): In order
1668 to print individual words from __string, _M_format_word can't
1669 be called since may be just sprintf, thus ignoring completely
1670 __n: instead, use memmove and append '\0' by hand.
1672 2004-08-07 Paolo Carlini <pcarlini@suse.de>
1674 * config/locale/generic/c_locale.h (__convert_from_v): Don't
1675 use a default for __prec, assume __prec >= 0 and simplify.
1676 * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
1677 * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
1678 Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
1680 2004-08-04 Phil Edwards <phil@codesourcery.com>
1682 * docs/html/configopts.html: Emphasize that options change.
1683 * docs/html/17_intro/configury.html: Update links.
1685 2004-08-03 Paolo Carlini <pcarlini@suse.de>
1687 * include/bits/list.tcc: Trivial formatting fixes.
1689 2004-08-03 Mark Mitchell <mark@codesourcery.com>
1691 * libsupc++/new_op.cc: Update comments.
1692 * libsupc++/del_op.cc: Likewise.
1694 2004-08-02 Mark Mitchell <mark@codesourcery.com>
1696 * libsupc++/cxxabi.h: Make all declarations have default
1698 * libsupc++/exception: Likewise.
1699 * libsupc++/new: Likewise.
1700 * libsupc++/typeinfo: Likewise.
1701 * libsupc++/unwind-cxx.h: Likewise.
1702 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
1703 the __cxxabiv1 namespace.
1704 (__cxa_free_exception): Likewise.
1705 * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
1706 (__cxa_bad_typeid): Likewise.
1707 * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
1708 (__cxa_end_catch): Likewise.
1709 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
1710 (__cxa_get_globals): Likewise.
1711 * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
1712 (__cxa_rethrow): Likewise.
1713 * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
1714 * libsupc++/eh_type.cc: Include <cxxabi.h>.
1716 * Makefile.am (hosted_source): Add libmath and testsuite.
1717 (SUBDIRS): Remove them.
1718 * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
1719 on arm*-*-symbianelf*.
1720 * crossconfig.m4: Add arm*-*-symbianelf* support.
1721 * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
1722 when freestanding. Do not bring names into std:: namespace with
1723 "using" when freestanding. Declare required functions and macros
1725 * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
1727 * libsupc++/del_op.cc: Declare "free" only when freestanding.
1728 * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
1729 (malloc): Declare when freestanding.
1732 (__cxa_allocate_exception): Call malloc, not std::malloc. Likewise
1734 (__cxa_free_exception): Likewise for free.
1735 * libsupc++/new_op.cc: Declare "malloc" when freestanding.
1736 * libsupc++/pure.cc (writestr): Define to nothing when
1738 * libsupc++/vterminate.cc: Do not define anything when
1740 * Makefile.in: Regenerated.
1741 * aclocal.m4: Likewise.
1742 * configure: Likewise.
1743 * include/Makefile.in: Likewise.
1744 * libmath/Makefile.in: Likewise.
1745 * libsupc++/Makefile.in: Likewise.
1746 * po/Makefile.in: Likewise.
1747 * src/Makefile.in: Likewise.
1748 * testsuite/Makefile.in: Likewise.
1750 2004-08-01 Matt Austern <austern@apple.com>
1753 * include/bits/stl_list.h (_M_create_node): Remove unused
1754 zero-argument version.
1755 * include/ext/slist (_M_create_node): Pass two arguments to
1756 allocator's construct() member function.
1757 * testsuite/23_containers/deque/explicit_instantiation.cc: New.
1758 * testsuite/23_containers/list/explicit_instantiation.cc: New.
1759 * testsuite/23_containers/vector/explicit_instantiation.cc: New.
1760 * testsuite/23_containers/map/explicit_instantiation.cc: New.
1761 * testsuite/23_containers/set/explicit_instantiation.cc: New.
1762 * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
1763 * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
1764 * testsuite/ext/hash_set_explicit_instantiation.cc: New.
1765 * testsuite/ext/slist_explicit_instantiation.cc: New.
1767 2004-07-30 Paolo Carlini <pcarlini@suse.de>
1769 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1770 num_get<>::_M_extract_int): In the main parsing loop delay the
1771 life of __q to the actual use point.
1773 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1776 * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
1777 Don't clip the precision passed down to __convert_from_v:
1778 22.2.2.2.2 nowhere says so.
1779 * testsuite/22_locale/num_put/put/char/14220.cc: New.
1780 * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
1782 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1784 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
1786 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1787 Petur Runolfsson <peturr02@ru.is>
1789 PR libstdc++/12658 (continued)
1790 * src/locale_init.cc (locale::locale, locale::global): Use
1791 a single locale_mutex instead of two separate mutexes.
1793 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1796 * include/debug/map.h (insert(_InputIterator, _InputIterator)):
1798 * testsuite/23_containers/map/insert/16813.cc: New.
1800 2004-07-29 Phil Edwards <phil@codesourcery.com>
1802 * docs/html/faq/index.html: Update version references. Make
1803 clear that code from SGI has diverged greatly. Remove references
1804 to library snapshots and what's-new sections.
1805 * docs/html/faq/index.txt: Regenerate.
1807 2004-07-28 Matt Austern <austern@apple.com>
1809 * include/bits/stl_construct.h (_Destroy): New three-argument
1810 overload that takes an allocator argument. Another inline
1811 three-argument overload that takes std::allocator and dispatches
1812 to the two-argument version.
1813 * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
1814 Change return type to void to match uninitialized_fill_n.
1815 (__uninitialized_copy_a_): New function. Like uninitialized_copy
1816 except that it takes an allocator and uses it for construct and
1817 destroy. If the allocator is std::allocator, dispatches to
1819 (__uninitialized_fill_a): Likewise.
1820 (__uninitialized_fill_n_a): Likewise.
1821 (__uninitialized_copy_copy): Give it an allocator argument.
1822 (__uninitialized_fill_copy): Likewise.
1823 (__uninitialized_copy_fill): Likewise.
1824 * include/bits/deque.tcc: Use new forms defined in stl_construct.h
1825 and stl_uninitialized.h. Replace use of single-argument _Construct
1826 and _Destroy with use of allocator's construct and destroy methods.
1827 * include/bits/list.tcc: Likewise.
1828 * include/bits/stl_deque.h: Likewise.
1829 * include/bits/stl_list.h: Likewise.
1830 * include/bits/stl_tree.h: Likewise.
1831 * include/bits/stl_vector.h: Likewise.
1832 * include/bits/vector.tcc: Likewise.
1833 * include/ext/hashtable.h: Use rebind so that allocator_type
1834 has correct type for a container's allocator. Replace use of
1835 single-argument _Construct and _Destroy with use of allocator's
1836 construct and destroy methods.
1837 * include/ext/memory (__uninitialized_copy_n_a): New function.
1838 Like uninitialized_copy_n except that it takes an extra parameter,
1839 an allocator, and uses it for construct and destroy operations.
1840 * include/ext/rope: Use new forms defined in stl_construct.h,
1841 stl_uninitialized.h, and ext/memory. Replace use of single-argument
1842 _Construct and _Destroy with allocator construct and destroy methods.
1843 * include/ext/ropeimpl.h: Likewise.
1844 * include/ext/slist.h: Likewise.
1845 * testsuite/testsuite_allocator.h (check_construct_destroy): New.
1846 * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
1847 * testsuite/23_containers/deque/check_construct_destroy.cc: New.
1848 * testsuite/23_containers/list/check_construct_destroy.cc: New.
1849 * testsuite/23_containers/set/check_construct_destroy.cc: New.
1850 * testsuite/23_containers/vector/check_construct_destroy.cc: New.
1851 * testsuite/ext/hash_check_construct_destroy.cc: New.
1852 * testsuite/ext/slist_check_construct_destroy.cc: New.
1854 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
1856 2003-10-01 Eric Christopher <echristo@redhat.com>
1857 * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
1859 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
1860 * config/cpu/sh/atomicity.h: New. Use movli and movco on SH4a.
1862 2004-07-23 Benjamin Kosnik <bkoz@redhat.com>
1865 * include/bits/locale_facets.tcc: Fix for -Werror.
1867 2004-07-23 Jonathan Wakely <redi@gcc.gnu.org>
1869 * docs/html/debug.html: Say debug mode only available since 3.4.0.
1871 2004-07-21 Benjamin Kosnik <bkoz@redhat.com>
1873 * docs/doxygen/mainpage.html: Clarify links.
1874 * docs/doxygen/stdheader.cc: Add files.
1875 * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
1876 * docs/doxygen/user.cfg.in: New options, wrap.
1878 2004-07-20 Danny Smith <dannysmith@users.sourceforge.net>
1880 * include/c_std/std_cwchar.h (wcsstr): Correct signature.
1882 2004-07-19 Benjamin Kosnik <bkoz@redhat.com>
1885 * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
1887 2004-07-17 Richard Sandiford <rsandifo@redhat.com>
1890 * scripts/create_testsuite_files: Pass -print to find.
1892 2004-07-15 Paolo Carlini <pcarlini@suse.de>
1894 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
1895 * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
1897 2004-07-15 Jakub Jelinek <jakub@redhat.com>
1900 * acinclude.m4 (glibcxx_shared_libgcc): Correct
1901 glibcxx_shared_libgcc test for multilibs.
1902 * configure: Rebuilt.
1904 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1907 * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
1908 the signature to return void, as per 20.4.4.3.
1909 * include/bits/stl_vector.h (vector::vector(size_type,
1910 const value_type&, const allocator_type&), vector::vector(size_type),
1911 vector::_M_initialize_dispatch): Adjust callers.
1912 * include/bits/vector.tcc (vector<>::_M_fill_assign,
1913 vector<>::_M_fill_insert): Likewise.
1914 * testsuite/20_util/memory/16505.cc: New.
1916 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1918 * testsuite/22_locale/locale/cons/12658_thread-1.cc,
1919 12658_thread-2.cc: Use __gnu_test::try_named_locale.
1921 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1923 * docs/html/ext/mt_allocator.html: Add docs for _Tune.
1924 * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
1925 (__mt_alloc::_S_set_options): Same.
1928 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1930 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
1932 * configure: Regenerated.
1934 2004-07-13 Paolo Carlini <pcarlini@suse.de>
1936 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
1937 to 12658_thread-1.cc and xfail.
1938 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
1939 simpler version of 12658_thread-1.cc, still failing on 3_3 and
1940 not failing on 3_4/mainline - both on single processor and
1941 multiprocessor machines.
1943 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
1945 * docs/html/abi.html: Remove non-public qualification.
1947 * include/bits/concurrence.h: Tweak comments.
1949 2004-07-11 Paolo Carlini <pcarlini@suse.de>
1951 Add wchar_t counterparts of the basic_streambbuf<char> tests.
1952 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
1953 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
1955 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
1956 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
1958 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
1959 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
1960 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
1961 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
1962 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
1964 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
1966 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
1968 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
1970 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
1971 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
1973 2004-07-11 Phil Edwards <phil@codesourcery.com>
1975 * acinclude.m4: Cosmetic shell syntax fixes.
1976 * configure.ac: Bring comment inline with reality.
1977 * configure.host: Both of the above. Move 'arm' case to right
1978 place in host_cpu switch.
1979 * aclocal.m4, configure: Regenerate.
1981 2004-07-09 Paolo Carlini <pcarlini@suse.de>
1983 Add wchar_t counterparts of the basic_stringbuf<char> tests.
1984 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
1985 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
1986 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
1987 3599.cc, 9988.cc: Likewise.
1988 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
1990 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
1992 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
1994 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
1996 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
1997 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
1998 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
1999 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
2001 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
2002 9404-1.cc: Likewise.
2003 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
2004 9404-2.cc: Likewise.
2005 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
2007 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
2008 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
2010 2004-07-08 Paolo Carlini <pcarlini@suse.de>
2012 * include/bits/gslice.h: Trivial formatting fixes.
2013 * include/bits/gslice_array.h: Likewise.
2014 * include/bits/indirect_array.h: Likewise.
2015 * include/bits/mask_array.h: Likewise.
2016 * include/bits/slice_array.h: Likewise.
2017 * include/bits/valarray_after.h: Likewise.
2018 * include/bits/valarray_array.h: Likewise.
2019 * include/bits/valarray_before.h: Likewise.
2020 * include/std/std_valarray.h: Likewise.
2022 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
2025 * include/bits/basic_string.h (basic_string::operator=): Revert.
2027 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
2029 * configure.ac (libtool_VERSION): To 6:2:0.
2030 * configure: Regenerated.
2032 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
2034 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
2037 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
2039 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
2041 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
2044 2004-07-07 Paolo Carlini <pcarlini@suse.de>
2047 * include/bits/sstream.tcc (overflow): When reallocating _M_string
2048 use an exponential grow policy.
2049 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
2050 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
2052 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
2055 * crossconfig.m4: Add in bits for djgpp.
2056 * configure: Regenerate.
2058 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
2060 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
2061 instantiation of set and multiset (functor param given as int).
2063 2004-07-04 Paolo Carlini <pcarlini@suse.de>
2065 * include/bits/basic_string.h: Trivial formatting fixes and/or
2066 const-ification of some variables.
2067 * include/bits/deque.tcc: Likewise.
2068 * include/bits/stl_algobase.h: Likewise.
2069 * include/bits/stl_bvector.h: Likewise.
2070 * include/bits/stl_construct.h: Likewise.
2071 * include/bits/stl_deque.h: Likewise.
2072 * include/bits/stl_pair.h: Likewise.
2073 * include/bits/stl_vector.h: Likewise.
2074 * include/bits/vector.tcc: Likewise.
2076 2004-07-04 Paolo Carlini <pcarlini@suse.de>
2078 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
2079 systems with no COMDAT or weak support.
2080 * testsuite/25_algorithms/copy/2.cc: Likewise.
2081 * testsuite/25_algorithms/copy/3.cc: Likewise.
2082 * testsuite/25_algorithms/copy/4.cc: Likewise.
2084 2004-07-03 Paul Brook <paul@codesourcery.com>
2086 * configure.ac: Set ABI_TWEAKS_SRCDIR.
2087 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
2088 setting atomicity_dir. Override type_cpu for arm based targets.
2089 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
2090 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
2091 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
2092 * libsupc++/vec.cc: Ditto.
2093 * config/cpu/arm/cxxabi_tweaks.h: New file.
2094 * config/cpu/generic/cxxabi_tweaks.h: New file.
2095 * */Makefile.in: Regenerate.
2096 * configure: Regenerate.
2098 2004-07-02 Paolo Carlini <pcarlini@suse.de>
2100 * include/bits/type_traits.h (_Is_normal_iterator): Move...
2101 * include/bits/cpp_type_traits.h: ... here, renamed to
2102 __is_normal_iterator and consistent with the other traits.
2103 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
2104 to the struct __copy_normal and three specializations.
2105 (__copy_backward_output_normal_iterator,
2106 __copy_backward_input_normal_iterator): Likewise, convert to
2107 the struct __copy_backward_normal and three specializations.
2108 (copy, copy_backward): Use the latter.
2109 (__copy_aux, __copy_backward_aux): Very minor tweaks.
2111 2004-07-01 Paolo Carlini <pcarlini@suse.de>
2113 * include/bits/stl_algobase.h (__copy_trivial): Remove.
2114 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
2115 __is_trivially_copyable, __are_same and __copy::copy.
2116 (__copy): Rewrite as a class template and two specializations.
2117 (__copy_ni2): Simplify, just call __copy_aux.
2119 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
2121 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
2122 for destination value type != source value type.
2124 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
2125 Per Bothner <per@bothner.com>
2126 Mohan Embar <gnustuff@thisiscool.com>
2129 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
2130 (__glibcxx_mutex): Encapsulate mutex init function into type for
2131 threaded configurations without __GTHREAD_MUTEX_INIT.
2132 (lock::lock): Make device member a reference.
2133 (lock::~lock): Same.
2134 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
2136 * src/allocator.cc: Same.
2138 2004-06-30 Brad Spencer <spencer@infointeractive.com>
2140 * include/ext/mt_allocator.h: Handle allocations at static
2141 initialization that happen before _S_options is (automatically)
2142 constructed; set _S_init even if _M_force_new is true.
2144 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
2146 * config/linker-map.gnu: Revert new exports.
2148 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
2149 Stuart Anderson <anderson@netsweng.com>
2151 * config/linker-map.gnu: Add destructor exports for abstract base
2152 classes to conform to LSB.
2154 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2155 Paolo Carlini <pcarlini@suse.de>
2157 * include/bits/cpp_type_traits.h: Add __is_pointer and
2158 __is_trivially_copyable.
2159 * include/bits/stl_algobase.h (fill, fill_n): Slightly
2160 tweak to use the latter.
2161 (__copy_backward_dispatch): Remove.
2162 (__copy_backward_aux): Rewrite to use __is_pointer and
2163 __is_trivially_copyable and __copy_backward::copy_b.
2164 (__copy_backward): Rewrite as a class template and two
2167 2004-06-30 Paolo Carlini <pcarlini@suse.de>
2169 * testsuite/25_algorithms/copy.cc: Move to...
2170 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
2171 * testsuite/25_algorithms/copy/2.cc: New.
2172 * testsuite/25_algorithms/copy/3.cc: New.
2173 * testsuite/25_algorithms/copy/4.cc: New.
2175 2004-06-29 Paul Brook <paul@codesourcery.com>
2177 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
2178 element size in the cookie.
2180 2004-06-28 Paolo Carlini <pcarlini@suse.de>
2182 * include/bits/cpp_type_traits.h: Move the additions to
2183 namespace __gnu_internal outside of namespace std; trivial
2186 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
2188 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
2189 Revert -Weffc++ changes that defined copy ctory and or assignment
2191 * libsupc++/tinfo.cc (__upcast_result): Same.
2193 2004-06-28 Paolo Carlini <pcarlini@suse.de>
2195 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
2196 the algorithm used to name the categories.
2198 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
2200 * include/Makefile.am: Give a .gch extension to
2201 the PCH files, not only to the directory.
2202 * include/Makefile.in: Regenerate.
2204 2004-06-28 Paolo Carlini <pcarlini@suse.de>
2206 * config/locale/gnu/monetary_members.cc
2207 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
2208 assignments of _M_decimal_point and _M_thousands_sep.
2210 2004-06-27 Paolo Carlini <pcarlini@suse.de>
2212 * docs/html/17_intro/contribute.html: Update some links.
2213 * docs/html/17_intro/porting-howto.html: Likewise.
2214 * docs/html/17_intro/porting-howto.xml: Likewise.
2215 * docs/html/18_support/howto.html: Likewise.
2216 * docs/html/21_strings/howto.html: Likewise.
2217 * docs/html/27_io/howto.html: Likewise.
2218 * docs/html/configopts.html: Likewise.
2219 * docs/html/ext/howto.html: Likewise.
2220 * docs/html/faq/index.html: Likewise.
2221 * docs/html/install.html: Don't mention 2.x compilers.
2223 2004-06-27 Paolo Carlini <pcarlini@suse.de>
2225 * include/ext/rope: Trivial formatting fixes.
2226 * include/ext/ropeimpl.h: Likewise.
2228 2004-06-26 Paolo Carlini <pcarlini@suse.de>
2231 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
2232 availability of strto(u)ll, not used anymore in the iostreams.
2233 * configure: Regenerate.
2235 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
2238 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
2240 * configure: Regenerate.
2242 2004-06-25 Paul Brook <paul@codesourcery.com>
2244 * libsupc++/cxxabi.h: Define __ARM_EABI__
2246 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
2248 2004-06-25 Paul Brook <paul@codesourcery.com>
2250 * include/bits/concurrence.h: Still create mutex object when
2253 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2255 * include/bits/stl_algobase.h (fill, fill_n): Revert last
2256 change: actually we need to copy construct an object of type
2257 _Tp, not of type iterator_traits<>::value_type, therefore the
2260 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2262 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
2263 dispatch: use iterator_traits<>::value_type, not _Tp.
2265 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2267 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
2268 * testsuite/25_algorithms/fill/2.cc: Likewise.
2270 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
2271 Paolo Carlini <pcarlini@suse.de>
2273 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
2274 for fill and fill_n, respectively: when copying is cheap, use a
2275 temporary to avoid a memory read in each iteration.
2277 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2279 * testsuite/25_algorithms/fill/1.cc: New.
2280 * testsuite/25_algorithms/fill/2.cc: Likewise.
2282 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
2284 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
2285 Remove copy constructor and assignment operator.
2287 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
2289 * include/bits/concurrence.h (__gnu_cxx::lock): New.
2290 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
2291 (__pool_base::_M_get_mutex): New.
2292 * include/bits/allocator.h: Tweak.
2293 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
2294 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
2295 * include/bits/stl_threads.h: Remove.
2296 * include/Makefile.am: Also here.
2297 * include/Makefile.in: Regenerate.
2299 * src/locale_init.cc: Use __gnu_cxx::lock.
2301 * src/allocator.cc: Move all instantiations...
2302 * src/allocator-inst.cc: ...here.
2304 2004-06-23 Andrew Pinski <apinski@apple.com>
2306 * linkage.m4: Remove check for libmx.
2307 * configure: Regenerate.
2309 2004-06-23 Paolo Carlini <pcarlini@suse.de>
2312 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
2313 Don't require the _DefaultConstructibleConcept.
2314 (struct _ForwardIteratorConcept): Require it here.
2316 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
2318 * include/bits/istream.tcc (getline): Make sure arguments passed
2319 to min/max have the same type.
2320 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
2321 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
2323 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
2325 * docs/html/abi.html: Update links.
2327 2004-06-22 Paolo Carlini <pcarlini@suse.de>
2329 * testsuite/26_numerics/complex_inserters_extractors.cc,
2330 complex_value.cc, buggy_complex.cc: Move to...
2331 * testsuite/26_numerics/complex/: ... here.
2332 * testsuite/26_numerics/c99_classification_macros_c++.cc,
2333 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
2334 fabs_inline.cc: Move to...
2335 * testsuite/26_numerics/cmath/: ... here.
2336 * testsuite/26_numerics/binary_closure.cc, slice.cc,
2337 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
2338 valarray_name_lookup.cc, valarray_operators.cc,
2339 valarray_subset_assignment.cc: Move to...
2340 * testsuite/26_numerics/valarray/: ... here (new dir).
2341 * testsuite/26_numerics/sum_diff.cc: Move to...
2342 * testsuite/26_numerics/numeric/: ... here (new dir).
2344 2004-06-22 Paolo Carlini <pcarlini@suse.de>
2346 * include/std/std_istream.h (ignore(streamsize __n = 1,
2347 int_type __delim = traits_type::eof())): Split into...
2348 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2349 int_type __delim)): The first two can be much more simpler
2350 and efficient than the fully general case; also, the last
2351 two can take advantage of the same mechanism already used
2353 * include/bits/istream.tcc (ignore(streamsize __n = 1,
2354 int_type __delim = traits_type::eof()): Remove.
2355 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2356 int_type __delim)): New.
2358 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
2360 * config/linker-map.gnu: Use wildcards for
2361 __basic_file::sys_open(FILE*, _Ios_Openmode).
2363 2004-06-20 Paolo Carlini <pcarlini@suse.de>
2365 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
2367 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2369 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
2370 the alignment requested.
2371 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
2372 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
2373 (__mt_alloc<>::deallocate): Likewise.
2375 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2378 * include/debug/safe_base.h
2379 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
2380 _Safe_sequence_base::operator=): Provide definitions.
2381 * testsuite/23_containers/bitset/cons/16020.cc: New.
2383 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
2385 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
2386 (__pool_base): Remove unused template parameter. Add
2387 protected. Move lock data into __pool_base::_Lock. Remove static
2388 on member functions.
2389 (__pool_base::_M_get_free_list): New.
2390 (__pool_alloc): Move _S_force new here.
2391 * src/allocator.cc: Move out of line __pool_base definitions here.
2392 * config/linker-map.gnu: Export bits from __pool_base.
2394 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2396 * config/locale/gnu/numeric_members.cc
2397 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
2398 assignments of _M_decimal_point and _M_thousands_sep.
2399 * config/locale/gnu/time_members.cc
2400 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
2401 and reformat assignments of date and time fields.
2403 2004-06-16 Paolo Carlini <pcarlini@suse.de>
2405 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
2406 to use _Data_allocate.
2407 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
2408 (rope<>::_S_substring): Likewise.
2409 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
2410 (rope<>::c_str()): Likewise.
2411 (rope<>::replace_with_c_str()): Likewise.
2413 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
2414 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
2416 (_Rope_iterator_base<>::_S_setcache): Likewise.
2417 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
2418 (rope<>::_S_substring): Likewise.
2419 (rope<>::_S_dump): Likewise.
2420 (rope<>::_S_fetch_ptr): Likewise.
2421 (rope<>::_S_compare): Likewise.
2422 (rope<>::replace_with_c_str()): Likewise.
2424 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
2425 * testsuite/ext/rope/2.cc: New.
2427 2004-06-16 Paolo Carlini <pcarlini@suse.de>
2428 Matt Austern <austern@apple.com>
2430 * testsuite/ext/rope/3.cc: New.
2432 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
2434 * acinclude.m4: Remove useless multilib configury.
2435 * Makefile.am: Remove useless multilib rules.
2436 * aclocal.m4: Regenerate.
2437 * Makefile.in: Regenerate.
2438 * configure: Regenerate.
2440 2004-06-15 Paolo Carlini <pcarlini@suse.de>
2442 * include/ext/hashtable.h: Trivial formatting fixes.
2443 * include/ext/rb_tree: Likewise.
2445 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2447 * include/ext/hash_map: Trivial formatting fixes.
2448 * include/ext/hash_set: Likewise.
2449 * include/ext/memory: Likewise.
2450 * include/ext/numeric: Likewise.
2452 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
2454 * Makefile.in: Regenerate with automake 1.8.5.
2456 * include/Makefile.in: Same.
2457 * libmath/Makefile.in: Same.
2458 * libsupc++/Makefile.in: Same.
2459 * po/Makefile.in: Same.
2460 * src/Makefile.in: Same.
2461 * testsuite/Makefile.in: Same.
2463 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2465 * include/ext/slist: Trivial formatting fixes.
2467 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2469 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
2470 Don't use the 'magic number' 10 in the computation of __minlen;
2471 never access __name past __minlen; in the loop over __i3, don't
2472 decrease __nmatches and increase __i3 at once, only either of
2475 2004-06-13 Paolo Carlini <pcarlini@suse.de>
2477 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
2478 time_get<>::do_get_date): Use only once _M_extract_via_format,
2479 instead of going through "%X"/"%x" and calling it two times
2482 2004-06-12 Paolo Carlini <pcarlini@suse.de>
2484 * include/ext/algorithm: Trivial formatting fixes.
2485 * include/ext/functional: Likewise.
2486 * include/ext/hash_fun.h: Likewise.
2487 * include/ext/iterator: Likewise.
2489 2004-06-12 Paolo Carlini <pcarlini@suse.de>
2491 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
2492 size_type)): Reimplement using std::search.
2493 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
2495 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
2497 * testsuite/performance/21_strings/string_find.cc: New.
2499 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
2501 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
2503 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
2505 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
2506 this function return a value.
2508 2004-06-09 Paolo Carlini <pcarlini@suse.de>
2511 * include/bits/stl_deque.h: Consistently with stl_set.h, define
2512 pointer as allocator's pointer, likewise for reference,
2513 const_pointer, and const_reference.
2514 * include/bits/stl_list.h: Likewise.
2515 * include/bits/stl_map.h: Likewise.
2516 * include/bits/stl_multimap.h: Likewise.
2517 * include/bits/stl_vector.h: Likewise.
2519 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
2521 * crossconfig.m4: Remove signbit, signbitf, signbitl.
2522 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
2523 builtin math functions instead of AC_DEFINE_UNQUOTED.
2524 * configure: Regenerate.
2526 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
2528 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
2529 * docs/doxygen/mainpage.html: Remove links.
2531 2004-06-08 Jason Merrill <jason@redhat.com>
2533 * config/linker-map.gnu: Use wildcards for
2534 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
2536 2004-06-08 Paolo Carlini <pcarlini@suse.de>
2538 * include/ext/pool_allocator.h: Convert to a global free-list,
2539 as per the original SGI/HP design: move the implementation
2540 details to struct __pool_base, from which __pool_alloc derives.
2541 * src/allocator.cc: Instantiate __pool_base.
2543 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
2544 Paolo Carlini <pcarlini@suse.de>
2546 * testsuite/testsuite_performance.h
2547 (resource_counter::allocated_memory): Make it return the right
2548 number of bytes requested by the allocators/application. This is
2549 the sbrk+mmaped memory.
2551 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
2553 * include/std/std_complex.h (log): Tidy.
2555 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
2557 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
2558 * testsuite/testsuite_abi.cc: Same.
2559 * configure.ac (libtool_VERSION): Bump to 6:1:0.
2560 * configure: Regenerate.
2561 * aclocal.m4: Regenerate.
2563 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2565 * include/std/std_complex.h (complex<_Tp>): Properly indent
2567 (complex<>::__rep): New.
2568 (__complex_abs): New. Dispatch to built-ins.
2570 (__complex_arg): New. Dispatch to built-ins.
2572 (__complex_cos): New. Dispatch to built-ins.
2574 (__complex_cosh): New. Dispatch to built-ins.
2576 (__complex_exp): New. Dispatch to built-ins.
2578 (__complex_log): New. Dispatch to built-ins.
2580 (__complex_sin): New. Dispatch to built-ins.
2582 (__complex_sinh): New. Dispatch to built-ins.
2584 (__complex_sqrt): New. Dispatch to built-ins.
2586 (__complex_tan): New. Dispatch to built-ins.
2588 (__complex_tanh): New. Dispatch to built-ins.
2590 (__complex_pow): New. Dispatch to built-ins.
2593 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
2594 Benjamin Kosnik <bkoz@redhat.com>
2597 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
2598 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
2599 * config/io/basic_file_stdio.cc (__basic_file::file): New.
2600 * config/io/basic_file_stdio.h: Define.
2602 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
2605 * docs/html/documentation.html: Update doxygen links for 3.4.0.
2607 2004-05-27 Jan Beulich <jbeulich@novell.com>
2609 * scripts/create_testsuite_files: Tweak.
2611 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
2614 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
2615 bits to do the same thing.
2617 2004-05-24 Paolo Carlini <pcarlini@suse.de>
2619 * include/bits/istream.tcc (ignore): Correctly deal with
2620 n == numeric_limits<streamsize>::max().
2621 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
2623 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
2624 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
2625 __n == numeric_limits<>::min().
2627 * include/bits/istream.tcc: Minor tweaks.
2629 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2631 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2633 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2635 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2637 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2639 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2642 Fixups for -Weffc++.
2643 * include/bits/basic_string.h (basic_string::operator=): Return
2644 pointer to this instead of result of assign. Although redundant,
2645 this doesn't impact resultant codegen.
2647 * include/bits/locale_facets.h (__numpunct_cache): Declare
2648 assignment opxserator and copy constructor private.
2649 (__timepunct_cache): Same.
2650 (__moneypunct_cache): Same.
2651 (collate): Use member initialization list for _M_c_locale_collate.
2652 * config/locale/gnu/messages_members.h: Same.
2653 * config/locale/gnu/time_members.h (__timepunct): Same.
2654 * src/codecvt.cc: Use member initialization list to initialize
2655 _M_c_locale_codecvt.
2656 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
2657 * config/os/gnu-linux/ctype_noninline.h: Same.
2658 * src/locale.cc (_Impl): Same.
2659 * src/locale_init.cc: Same.
2660 * src/localename.cc: Same.
2662 * include/bits/basic_ios.h (basic_ios): Complete member
2663 initialization list.
2664 * include/bits/istream.tcc (basic_istream::sentry): Same.
2665 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
2666 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
2667 _M_pback to member initialization list.
2668 * include/std/std_streambuf.h: Same.
2669 * include/std/std_sstream.h: Same, for _M_mode.
2670 * src/ios.cc (ios_base): Same.
2672 * include/ext/rope: Make derived classes match exception
2674 specifications. Add copy constructors and assignment operators.
2676 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
2677 constructor and assignment operator protected.
2678 (_Safe_iterator_base): Same.
2679 * include/debug/formatter.h (_Error_formatter): Define copy
2680 constructor and assignment operator.
2682 * include/backward/strstream: Declare assignment operator and copy
2683 constructor private.
2685 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2687 * testsuite/testsuite_hooks.h (func_callback): Declare copy
2688 constructor and assignment operator private.
2689 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
2690 exception specifications of base class.
2691 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
2692 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
2693 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2695 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2697 * libsupc++/cxxabi.h: Remove duplicated and useless public and
2698 private keywords in class declarations. Format. Use
2699 stddef.h. Expose declarations to "C" compilation.
2700 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
2701 assignment operator.
2702 (__dyncast_result): Same.
2703 * libsupc++/vec.cc (uncatch_exception): Same, use member
2704 initialization list.
2706 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2708 * testsuite/abi_check.cc: Add unistd.h.
2710 2004-05-22 Paolo Carlini <pcarlini@suse.de>
2713 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
2714 __int_to_char(unsigned long long)): Showpos is not relevant
2716 * testsuite/22_locale/num_put/put/char/15565.cc: New.
2717 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
2719 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
2721 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
2722 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
2723 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2724 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
2725 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
2726 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
2728 2004-05-21 Matthias Klose <doko@debian.org>
2730 * docs/doxygen/run_doxygen: Bump required version.
2732 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
2734 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
2735 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
2737 2004-05-21 Paolo Carlini <pcarlini@suse.de>
2739 * include/bits/istream.tcc (ignore): Remove redundant line.
2740 (readsome): Tidy, closely following 27.6.1.3, p30.
2742 2004-05-20 Paolo Carlini <pcarlini@suse.de>
2744 * include/bits/istream.tcc (operator>>(basic_istream<>&,
2745 basic_string<>&)): Use a temporary buffer, thus avoiding
2746 reallocation for common case.
2747 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2749 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2752 * include/bits/istream.tcc: Const-ification of a few variables.
2754 * include/bits/ostream.tcc: Trivial formatting fixes and
2755 const-ification of some variables.
2757 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
2761 * docs/doxygen/Intro.3: Remove Allocators.3.
2762 Add new extension headers, extension namespace list.
2763 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
2764 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
2765 __gnu_debug::. Remove __policy_ renames.
2766 * docs/doxygen/guide.html: Add dot note.
2767 * docs/doxygen/stdheader.cc: Edit, add files.
2768 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
2770 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2772 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
2774 2004-05-18 Jan Beulich <jbeulich@novell.com>
2777 * scripts/create_testsuite_files: Also find source files through
2780 2004-05-18 Jan Beulich <jbeulich@novell.com>
2783 * testsuite/lib/libstdc++.exp: Make test files writable.
2785 2004-05-18 Paolo Carlini <pcarlini@suse.de>
2787 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
2790 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
2792 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
2793 allocation loop which removes blocks from the global free list
2794 from O(N) to O(1) when the required blocks are <= the number
2797 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2799 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
2801 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
2803 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
2804 * testsuite/23_containers/deque/14340.cc: New.
2805 * testsuite/23_containers/list/14340.cc: New.
2806 * testsuite/23_containers/map/14340.cc: New.
2807 * testsuite/23_containers/multimap/14340.cc: New.
2808 * testsuite/23_containers/multiset/14340.cc: New.
2809 * testsuite/23_containers/set/14340.cc: New.
2810 * testsuite/23_containers/vector/14340.cc: New.
2812 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
2815 * include/debug/safe_iterator.h (_Safe_iterator converting
2816 constructor): Only allow declaration to instantiate when the
2817 incoming _Safe_iterator has exactly the right iterator type.
2819 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
2821 * include/bits/boost_concept_check.h: Fix old attribute syntax.
2822 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
2823 to pass concept-checks.
2824 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2825 * testsuite/23_containers/set/modifiers/swap.cc: Same.
2826 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2828 2004-05-16 Paolo Carlini <pcarlini@suse.de>
2830 * include/std/std_bitset.h: Minor formatting fixes.
2832 2004-05-16 Paolo Carlini <pcarlini@suse.de>
2834 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2835 Consistently update __bin._M_free[0].
2836 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
2837 __bin._M_free[0] to simplify the while loop (i.e., the number
2838 of iterations becomes known at the outset).
2840 2004-05-15 Paolo Carlini <pcarlini@suse.de>
2842 * include/std/std_bitset.h: Trivial formatting fixes.
2844 2004-05-14 Paolo Carlini <pcarlini@suse.de>
2845 Ivan Godard <igodard@pacbell.net>
2848 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
2849 * testsuite/23_containers/bitset/ext/15361.cc: New.
2851 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2854 * crossconfig.m4: Add C99 math bits for linux crosses.
2855 * configure: Regenerate.
2857 2004-05-13 Simon Marshall <simon.marshall@misys.com>
2858 Benjamin Kosnik <bkoz@redhat.com>
2861 * include/bits/locale_facets.h: Fix for -fno-for-scope.
2862 * include/debug/safe_sequence.h: Same.
2863 * include/debug/safe_iterator.tcc: Same.
2864 * src/debug.cc: Same.
2865 * src/locale.cc: Same.
2866 * src/locale_init.cc: Same.
2867 * src/localename.cc: Same.
2868 * config/locale/gnu/ctype_members.cc: Same.
2869 * config/locale/gnu/numeric_members.cc: Same.
2870 * testsuite/testsuite_abi.cc: Same.
2871 * testsuite/testsuite_hooks.cc: Same.
2873 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
2875 * docs/html/abi.html: Document effect of -fabi-version on value
2876 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
2879 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2882 * docs/html/faq/index.html: Update docs for libsupc++ usage.
2884 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2887 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
2889 (_GLIBCXX_mutex_address): Same.
2890 (_GLIBCXX_once): Same.
2891 (_GLIBCXX_mutex_init): Same.
2892 (_GLIBCXX_mutex_address_init): Same.
2894 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2896 * docs/html/abi.html: New.
2897 * docs/html/abi.txt: Remove.
2898 * docs/html/documentation.html: Add link.
2899 * testsuite/Makefile.am: Add files.
2900 * testsuite/Makefile.in: Regenerated.
2901 * testsuite/abi_check.cc: Move and modify code into...
2902 * testsuite/testsuite_abi.cc: Add.
2903 * testsuite/testsuite_abi.h: Add.
2905 * docs/html/17_intro/TODO: Update.
2906 * include/bits/stl_pair.h: Format.
2908 2004-05-06 Matthias Klose <doko@debian.org>
2910 * include/backward/iterator.h: Add GPL copyright info,
2911 with exception clause.
2912 * include/bits/boost_concept_check.h: Likewise.
2914 * libsupc++/tinfo.h: Likewise.
2915 * po/string_literals.cc: Likewise.
2917 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
2919 * acinclude.m4: Replace -W with more speaking -Wextra.
2920 * configure: Rebuilt.
2922 2004-05-03 Paolo Carlini <pcarlini@suse.de>
2924 Optimize locale::_M_impl->_M_names for the most common cases:
2925 !_M_names[0] means unnamed; !_M_names[1] means all the categories
2926 the same name (_M_names[0] && _M_names[1] means that the full set
2927 of _M_names must be processed, the general case).
2928 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
2929 Tweak, saving work when !_M_names[1].
2930 (locale::locale(const locale&, _Facet*): Simplify: now just setting
2931 _M_names[0] = 0 means unnamed.
2932 * src/locale.cc (locale::operator==): Deal first with the common,
2933 easy cases, otherwise fall back to locale::name().
2934 (locale::name()): Tweak, if !_M_names[0] just return "*".
2935 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
2936 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
2937 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
2938 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
2939 Simplify when !std::strchr, just updating _M_names[0]; clean up.
2940 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
2941 for the general case (full set of names), then do the usual work;
2944 * src/locale.cc (locale::name()): Reserve space in __ret.
2945 * src/locale_init.cc (locale::global(const locale&)): Save
2946 the name in a temporary.
2947 * src/localename.cc (locale::locale(const char*)): Reserve space
2950 2004-04-29 Paolo Carlini <pcarlini@suse.de>
2952 * src/locale.cc (locale::operator==): Always avoid constructing
2953 locale::name(), directly compare pairs of _M_names.
2955 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2957 * include/bits/istream.tcc: Fix comment.
2959 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2961 * include/bits/stl_vector.h: Trivial formatting fixes.
2962 * include/bits/vector.tcc: Likewise.
2964 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2966 PR libstdc++/15002 (continued again)
2967 * include/bits/istream.tcc (getline(basic_istream<>&,
2968 basic_string<>&, _CharT)): Use a temporary buffer, thus
2969 avoiding reallocation for common case.
2971 * include/bits/basic_string.tcc (_S_construct(_InIterator,
2972 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
2973 of temporary buffer to a power of two.
2975 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
2977 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2979 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2981 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2983 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2985 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2986 Petur Runolfsson <peturr02@ru.is>
2988 PR libstdc++/15002 (continued)
2989 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
2990 streamsize, char_type)): Use traits::find/copy in a loop to speed
2991 up greatly the function in the common case (I/O buffer size >> 1).
2993 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2995 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
2997 * include/bits/istream.tcc (getline(basic_istream<>&,
2998 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
2999 of sbumpc(), consistently with the other functions, thus also
3000 dealing correctly with the case of exceeded string::max_size().
3002 2004-04-24 Matthias Klose <doko@debian.org>
3004 Jonathan Wakely <cow@compsoc.man.ac.uk>
3005 * docs/html/configopts.html: Fix reference to allocator config option.
3007 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
3009 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
3010 * configure: Regenerate.
3012 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
3014 PR libstdc++/15047, libstdc++/11610
3015 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
3016 (libstdc++_init): Don't pass outdir to v3-copy-files.
3018 2004-04-21 Paolo Carlini <pcarlini@suse.de>
3020 * include/bits/deque.tcc: Trivial formatting fixes.
3021 * include/bits/stl_deque.h: Likewise.
3022 * include/bits/stl_list.h: Likewise.
3023 * include/bits/stl_tree.h: Likewise.
3025 2004-04-21 Paolo Carlini <pcarlini@suse.de>
3026 Andrew Pinski <pinskia@physics.uc.edu>
3028 * include/bits/basic_string.tcc (_M_mutate): Don't compute
3029 __src unnecessarily.
3031 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
3033 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
3034 Clarify assertion, set test variable to false before assert.
3035 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
3036 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
3037 * testsuite/27_io/ios_base/storage/2.cc: Same.
3039 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
3041 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
3042 * testsuite/27_io/fpos/14320-3.cc: Same.
3044 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
3045 * testsuite/27_io/fpos/1.cc: Same.
3046 * testsuite/27_io/basic_stringstream/2.cc: Same.
3047 * testsuite/27_io/basic_stringbuf/4.cc: Same.
3048 * testsuite/27_io/basic_stringbuf/1.cc: Same.
3049 * testsuite/27_io/basic_stringbuf/2.cc: Same.
3050 * testsuite/27_io/basic_streambuf/2.cc: Same.
3051 * testsuite/27_io/basic_ostringstream/2.cc: Same.
3052 * testsuite/27_io/basic_ostream/2.cc: Same.
3053 * testsuite/27_io/basic_ofstream/2.cc: Same.
3054 * testsuite/27_io/basic_istringstream/2.cc: Same.
3055 * testsuite/27_io/basic_istream/2.cc: Same.
3056 * testsuite/27_io/basic_iostream/2.cc: Same.
3057 * testsuite/27_io/basic_ios/2.cc: Same.
3058 * testsuite/27_io/basic_ifstream/2.cc: Same.
3059 * testsuite/27_io/basic_fstream/2.cc: Same.
3060 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
3062 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
3063 unsigned against zero.
3064 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
3065 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
3067 * testsuite/18_support/new_delete_placement.cc: Initialize
3068 variables before first use.
3069 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
3070 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
3071 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
3072 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
3074 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
3075 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
3077 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
3078 * testsuite/27_io/types/2.cc: Same.
3080 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
3082 * testsuite/27_io/fpos/14775.cc: Same.
3084 2004-04-19 Paolo Carlini <pcarlini@suse.de>
3086 PR libstdc++/15002 (partial)
3087 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
3088 Special case __n2 == 1, not calling traits_type::assign/copy.
3090 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
3092 * include/bits/stl_bvector.h: Use _M_impl._M_start.
3094 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
3096 * include/bits/c++config (_GLIBCXX_STD): New.
3097 * src/list.cc: Use it.
3098 * include/std/std_bitset.h: Same.
3099 * include/bits/vector.tcc: Same.
3100 * include/bits/stl_set.h: Same.
3101 * include/bits/stl_multiset.h: Same.
3102 * include/bits/stl_multimap.h: Same.
3103 * include/bits/stl_map.h: Same.
3104 * include/bits/stl_list.h: Same.
3105 * include/bits/stl_vector.h: Same.
3106 * include/bits/stl_bvector.h: Same.
3107 * include/bits/stl_deque.h: Same.
3108 * include/bits/deque.tcc: Same.
3109 * include/bits/list.tcc: Same.
3110 * include/debug/vector: Same.
3111 * include/debug/set.h: Same.
3112 * include/debug/multiset.h: Same.
3113 * include/debug/multimap.h: Same.
3114 * include/debug/map.h: Same.
3115 * include/debug/list: Same.
3116 * include/debug/deque: Same.
3117 * include/debug/bitset: Same.
3118 * include/debug/formatter.h (__gnu_debug): Remove using directive.
3119 Add using declaration for std::type_info.
3120 * include/debug/safe_iterator.h: Add using declaration for
3121 std::iterator_traits and std::pair.
3122 * src/debug_list.cc: New.
3123 * src/Makefile.am: Add debug_list.cc.
3124 * src/Makefile.in: Regenerate.
3125 * config/linker-map.gnu: Add _List_node_base exports for std and
3128 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
3129 idiom that other containers use.
3130 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
3132 2004-04-16 Paolo Carlini <pcarlini@suse.de>
3135 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
3137 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
3138 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
3140 2004-04-16 Paolo Carlini <pcarlini@suse.de>
3142 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
3144 * config.h.in: Regenerate.
3146 2004-04-16 Paolo Carlini <pcarlini@suse.de>
3148 * config/locale/generic/monetary_members.cc
3149 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
3150 btowc unnecessarily, just cast to wchar_t (the concerned chars
3151 all belong to the basic character set).
3152 * config/locale/generic/numeric_members.cc
3153 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
3154 * config/locale/gnu/monetary_members.cc
3155 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
3156 * config/locale/gnu/numeric_members.cc
3157 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
3159 2004-04-15 Paolo Carlini <pcarlini@suse.de>
3161 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
3162 avoid constructing unnecessarily this->name().
3164 2004-04-14 Zack Weinberg <zack@codesourcery.com>
3166 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
3167 Change definition of CXX to use $(shell) instead of backticks.
3168 * testsuite/Makefile.in: Regenerate.
3170 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
3172 * testsuite/performance/20_util/allocator/list_sort_search.cc:
3173 Minor formatting fixes.
3174 * testsuite/performance/20_util/allocator/map_mt_find.cc:
3177 2004-04-12 Paolo Carlini <pcarlini@suse.de>
3179 * config/locale/gnu/numeric_members.cc
3180 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
3181 in __uselocale, since btowc is called for chars belonging to
3182 the basic character set.
3184 2004-04-09 Paolo Carlini <pcarlini@suse.de>
3186 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
3187 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
3188 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
3189 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
3190 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
3191 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
3192 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
3193 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
3194 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
3195 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
3196 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
3197 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
3198 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
3199 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
3200 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
3201 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
3202 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
3204 2004-04-07 Paolo Carlini <pcarlini@suse.de>
3206 * config/locale/generic/time_members.cc
3207 (__timepunct<char>::_M_initialize_timepunct,
3208 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
3209 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
3210 * config/locale/gnu/time_members.cc
3211 (__timepunct<char>::_M_initialize_timepunct,
3212 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
3213 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
3214 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
3216 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
3217 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
3218 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
3219 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
3220 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
3221 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
3222 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
3223 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
3224 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
3225 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
3226 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
3227 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
3228 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
3229 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
3230 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
3231 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
3232 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
3233 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
3234 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
3235 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
3236 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
3237 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
3238 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
3239 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
3240 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
3241 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
3242 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
3243 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
3244 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
3245 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
3246 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
3247 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
3248 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
3249 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
3250 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
3251 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
3253 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
3255 2004-04-07 Paolo Carlini <pcarlini@suse.de>
3257 * config/locale/gnu/monetary_members.cc
3258 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
3259 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
3260 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
3261 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
3262 * config/locale/gnu/numeric_members.cc
3263 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
3264 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
3266 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
3268 Fixups for EDG front end.
3269 * include/ext/rope: Instead of non-existent function
3270 _Data_allocate, use allocator's allocate. Use this.
3271 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
3272 enumerations from _Rope_RopeRep here.
3273 * include/ext/ropeimpl.h: Same.
3274 * src/ext-inst.cc (_S_min_len): Fix up definition.
3276 * config/locale/gnu/ctype_members.cc: Qualify base class members
3278 * config/locale/generic/ctype_members.cc: Same.
3279 * config/locale/gnu/messages_members.h: Same.
3280 * config/locale/generic/messages_members.h: Same.
3281 * src/ctype.cc: Same.
3282 * include/bits/codecvt.h: Same.
3284 * include/bits/boost_concept_check.h: Declare.
3285 (__error_type_must_be_an_unsigned_integer_type): Remove this.
3286 (__error_type_must_be_an_integer_type): Remove this.
3287 (__error_type_must_be_a_signed_integer_type): Remove this.
3289 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
3291 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
3292 specification to definition.
3293 (__cxa_allocate_exception): Same.
3294 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
3295 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
3296 (__cxa_get_globals): Same.
3298 * libsupc++/del_op.cc: Add comment about freestanding.
3300 2004-04-05 Paolo Carlini <pcarlini@suse.de>
3302 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3303 The critical section is actually very small, only two assignments.
3305 2004-04-04 Paolo Carlini <pcarlini@suse.de>
3306 Petur Runolfsson <peturr02@ru.is>
3308 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
3309 adapted from libstdc++/11378.
3311 2004-04-03 Paolo Carlini <pcarlini@suse.de>
3313 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
3314 some duplicated code.
3315 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
3316 in the single threaded case.
3317 * testsuite/performance/20_util/allocator/list_sort_search.cc:
3318 Reorder and renumber the tests consistently with the other testfiles.
3319 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3320 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3321 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3323 2004-04-02 Paolo Carlini <pcarlini@suse.de>
3325 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3326 Rearrange arithmetic to avoid computing two divisions at
3329 2004-04-01 Paolo Carlini <pcarlini@suse.de>
3331 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
3332 Streamline the second half, wrapping it in a single
3333 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
3334 conditionals inside loops.
3336 2004-04-01 Paolo Carlini <pcarlini@suse.de>
3339 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
3340 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
3341 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
3342 to _GLIBCXX_RES_LIMITS.
3343 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
3345 * testsuite/testsuite_hooks.h: Declare set_file_limit.
3346 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
3347 and setrlimit(RLIMIT_FSIZE).
3348 * testsuite/27_io/fpos/14775.cc: New.
3349 * config.h.in: Regenerate.
3350 * configure: Likewise.
3352 2004-03-31 Paolo Carlini <pcarlini@suse.de>
3354 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
3355 In v3 uses of sscanf, the special floating-point numbers INF,
3356 INFINITY, etc., cannot occur in input, therefore, if the latter
3357 is too large, ERANGE is always stored in errno, no need of finitel.
3359 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
3362 * include/bits/stl_tree.h: Adjust initialization list order.
3364 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
3366 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
3368 2004-03-29 Paolo Carlini <pcarlini@suse.de>
3370 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
3371 on allocator behavior, the memory pointed by data2 may well be not
3374 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
3377 * include/bits/basic_string.tcc
3378 (basic_string::basic_string(const basic_string&)): Pass to
3379 _Rep::_M_grab the actual allocator of the string being constructed
3380 not the default constructed one.
3382 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
3385 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
3386 (__enc_traits::_M_destroy): New.
3387 (__enc_traits::~__enc_traits): Use it.
3388 (__enc_traits::operator=): Use _M_destroy, _M_init.
3389 (__enc_traits::__enc_traits): Same.
3391 2004-03-27 Petur Runolfsson <peturr02@ru.is>
3393 * testsuite/ext/enc_filebuf/char/13598.cc: New.
3395 2004-03-27 Paolo Carlini <pcarlini@suse.de>
3397 * include/ext/mt_allocator.h: Uglify consistently names of
3398 variables, members and classes; tidy.
3400 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
3402 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3403 Deallocation loop rewrote.
3405 2004-03-26 Paolo Carlini <pcarlini@suse.de>
3407 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3408 __mt_alloc<>::deallocate): Protect two instances of
3409 block->thread_id with __GTHREADS.
3411 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
3413 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
3414 default argument in constructors.
3415 (_Rb_tree::_M_empty_initialize): Remove.
3417 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
3419 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
3420 * testsuite/23_containers/set/operators/1_neg.cc: Same.
3422 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3424 * include/bits/cpp_type_traits.h: Changed __is_pod
3425 completely. Now, it does not use any of the previous type_traits
3426 to detect the pod types, and it also detects function pointers as
3429 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
3430 which encapsulates the internal implementation of an rb_tree. Made
3431 the allocator a base class of this class instead of the rb_tree,
3432 which was not conforming. This _Rb_tree_impl class is also
3433 specialized on whether the _Compare parameter is a POD type or
3434 not. If so, then it maintains the comparison function as a data
3435 member, otherwise it makes the _Compare parameter a base class of
3436 itself. Also, _M_key_compare is now a function instead of a data
3437 member, so that the above trick can work properly. Delegated the
3438 initialization of the other data members to this newly created
3439 class. Also, now other member functions of rb_tree must refer to
3440 _M_key_compare as _M_impl._M_key_compare(). The other data members
3441 (*) can be referenced to as _M_impl.(*), where
3442 (*) includes _M_header, and _M_node_count.
3444 2004-03-25 Paolo Carlini <pcarlini@suse.de>
3446 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
3447 Add _M_min_bin, the size in bytes of the smallest bin.
3448 (__mt_alloc<>::tune()): Tweak accordingly.
3449 (__mt_alloc<>::tune(size_t, ...)): Likewise.
3450 (__mt_alloc<>::block_record): Change to a union: members next
3451 and thread_id are never used at the same time.
3452 (__mt_alloc<>::allocate): Update consistently.
3453 (__mt_alloc<>::deallocate): Likewise.
3454 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
3455 _S_bin_size for the configurable _M_min_size.
3457 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3459 * include/bits/stl_list.h: Created a _List_impl class and made it
3460 derive from the allocator, instead of the list deriving from the
3461 allocator class, which was not conformant. Changed all references
3462 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
3463 as above (changed all references to the concerned variables).
3465 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3467 * include/bits/stl_deque.h: Created a _Deque_impl class and made
3468 it derive from the allocator, instead of the deque deriving from
3469 the allocator class, which was not conformant. Changed all
3470 references to the _M_start, _M_finish, _M_map, and _M_map_size to
3472 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
3473 qualification in 2 places where it was missing.
3474 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
3476 * include/bits/deque.tcc: Same as above (changed all references to
3477 the concerned variables).
3479 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3481 * include/bits/stl_vector.h: Created a _Vector_impl class and made
3482 it derive from the allocator, instead of the _Vector_base class,
3483 deriving from the allocator which was not conformant. Changed all
3484 references to the _M_start, _M_finish, and _M_end_of_storage to
3486 * include/bits/vector.tcc: Same as above (changed all references
3487 to the concerned variables).
3489 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3491 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
3492 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
3493 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
3495 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3497 * include/ext/malloc_allocator.h: Fixed the construct function to
3498 call global placement new instead of assignment. Added a check
3499 after the return from malloc to check whether returned pointer is
3500 NULL, and if so, throw std::bad_alloc().
3501 * include/ext/debug_allocator.h: Added a check in the deallocate
3502 function to check whether the user has passed a NULL pointer or
3505 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
3507 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
3509 2004-03-24 Andreas Schwab <schwab@suse.de>
3511 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
3512 warning from IA64 assembler.
3514 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3516 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
3517 function call __builtin_ctz instead of the while loop.
3518 (allocate) -> If condition has __builtin_expect.
3519 (deallocate) -> Ditto.
3520 Renamed a few left-over variables and typedefs according to the
3521 C++STYLE mentioned in the documentation.
3522 Protected calls to __gthread* by __gthread_active_p(), whose value
3523 is cached in the local variable __threads_active.
3525 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
3527 * testsuite/performance/20_util/allocator/producer_consumer.cc:
3528 Use linear algorithm for producer.
3530 2004-03-24 Paolo Carlini <pcarlini@suse.de>
3532 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3533 __mt_alloc<>::deallocate): Avoid redundant conditionals.
3535 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
3537 * include/bits/locale_facets.h: Tweaks for 80 column.
3538 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
3539 (__moneypunct_cache::_M_cache): Same.
3540 (num_get): Don't inherit from __num_base.
3542 (money_get): Don't inherit from money_base.
3544 (__timepunct::_M_am_pm_format): New.
3545 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
3546 (time_get::_M_extract_name): Same.
3547 (time_get::_M_extract_via_format): Same.
3548 * include/bits/locale_facets.tcc: Tweaks for 80 column.
3549 Use _M_getloc instead of getloc.
3550 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
3551 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
3552 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
3554 2004-03-22 Paolo Carlini <pcarlini@suse.de>
3556 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
3557 * configure: Regenerate.
3558 * config/allocator/pool_allocator_base.h: New.
3559 * include/ext/pool_allocator.h: Convert to a standard-conforming
3561 * src/allocator.cc: Tweak instantiations.
3562 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
3563 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
3564 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
3565 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3566 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3567 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3569 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
3571 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
3572 inline" and attribute-unused. Qualify parameter __mem with
3574 (__exchange_and_add): Ditto. Add back memory clobber to asm.
3576 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3578 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
3580 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
3582 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
3584 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
3586 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
3588 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
3590 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3592 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3594 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
3596 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3599 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3601 * include/std/std_valarray.h: Document DR389 [Ready].
3602 * docs/html/ext/howto.html: Add an entry for DR389.
3604 2004-03-19 Michael Eager <eager@mvista.com>
3606 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
3609 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3611 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
3613 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
3614 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
3615 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
3616 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
3617 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
3618 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
3619 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
3620 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
3621 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
3623 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3624 Petur Runolfsson <peturr02@ru.is>
3627 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
3628 no way to find out the conversion used by the underlying FILE*.
3629 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
3630 * testsuite/27_io/objects/char/9.cc: Tweak.
3632 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3635 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
3636 memory allocation/deallocation calls.
3637 * testsuite/ext/14648.cc: New.
3639 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
3642 * include/backward/bvector.h (bit_vector): Allocator is in std
3645 2004-03-19 Phil Edwards <phil@codesourcery.com>
3647 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
3648 not libiconv. SUBST this variable as well.
3649 * testsuite/Makefile.am (site.exp): New target, based on that
3650 created by automake. Also set libiconv.
3652 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
3653 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
3654 testsuite/Makefile.in: Regenerate.
3656 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
3658 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
3659 new_allocator for all hosts.
3660 * configure: Regenerate.
3662 2004-03-16 Paolo Carlini <pcarlini@suse.de>
3664 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
3665 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
3667 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3669 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3670 Adjust the logic underlying the parsing of symbol to deal
3671 correctly with an optional sign component (i.e., when either
3672 negative_sign or positive_sign is empty)
3673 * testsuite/22_locale/money_get/get/char/19.cc: New.
3674 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
3676 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3678 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3679 Do not accept an incomplete currency symbol.
3680 * testsuite/22_locale/money_get/get/char/18.cc: New.
3681 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
3683 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
3685 * config/allocator: New.
3686 * config/allocator/bitmap_allocator_base.h: New.
3687 * config/allocator/malloc_allocator_base.h: New.
3688 * config/allocator/mt_allocator_base.h: New.
3689 * config/allocator/new_allocator_base.h: New.
3690 * include/bits/allocator.h: Include c++allocator.h.
3691 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
3692 * aclocal.m4: Regenerate.
3693 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
3694 * configure: Regenerate.
3695 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
3696 * include/Makefile.in: Regenerate.
3697 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
3699 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3701 * include/bits/allocator.h: Revert.
3703 2004-03-12 Paolo Carlini <pcarlini@suse.de>
3705 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
3706 * include/bits/gslice_array.h: Add comment about DR 253.
3707 * include/bits/indirect_array.h: Likewise.
3708 * include/bits/mask_array.h: Likewise.
3709 * include/bits/slice_array.h: Likewise.
3711 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3713 * testsuite/20_util/allocator/14176.cc: New.
3714 * include/ext/mt_allocator.h: Formatting fixes.
3716 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
3718 * include/Makefile.am (ext_headers): Add
3719 ${ext_srcdir}/bitmap_allocator.h .
3720 * include/Makefile.in: Regenerate.
3721 * docs/html/ext/ballocator_doc.txt: New file.
3722 * include/ext/bitmap_allocator.h: New file.
3723 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
3725 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
3726 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
3727 test for the bitmap_allocator<>.
3728 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
3729 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
3730 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
3732 2004-03-11 Paolo Carlini <pcarlini@suse.de>
3734 * include/std/std_complex.h (pow(const complex&, const _Tp&),
3735 pow(const _Tp&, const complex&), pow(const complex&,
3736 const complex&)): Fully qualify with std:: a few calls.
3737 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
3739 2004-03-11 Steven Bosscher <stevenb@suse.de>
3742 * include/c_std/cmath.tcc (__cmath_power): Define inline.
3744 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
3746 * configure.ac: Bump AC_PREREQ to 2.59.
3748 2004-03-10 Paolo Carlini <pcarlini@suse.de>
3750 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
3752 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
3753 Paolo Carlini <pcarlini@suse.de>
3756 * include/std/std_complex.h (pow(const complex&, const _Tp&),
3757 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
3758 * testsuite/26_numerics/complex/13450.cc: New.
3760 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
3761 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
3763 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
3766 * include/bits/gslice_array.h (gslice_array()): Make public.
3767 (operator=(gslice_array)): Make public. Implement.
3768 * include/bits/indirect_array.h (indirect_array()): Make public.
3769 * include/bits/mask_array.h (mask_array()): Make public.
3770 (operator=(mask_array)): Make public. Implement.
3771 * include/bits/valarray_array.tcc (__valarray_copy):
3772 Comment. Add versions for gslice_array and mask_array.
3773 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
3775 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
3777 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
3779 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
3780 * testsuite/23_containers/set/modifiers/swap.cc: Same.
3781 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
3782 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
3783 * testsuite/23_containers/map/modifiers/swap.cc: Same.
3784 * testsuite/23_containers/list/modifiers/swap.cc: Same.
3786 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
3788 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
3791 * testsuite/23_containers/deque/modifiers/swap.cc: New.
3792 * testsuite/23_containers/list/modifiers/swap.cc: New.
3793 * testsuite/23_containers/map/modifiers/swap.cc: New.
3794 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
3795 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
3796 * testsuite/23_containers/set/modifiers/swap.cc: New.
3797 * testsuite/23_containers/vector/modifiers/swap.cc: New.
3799 2004-03-08 Petur Runolfsson <peturr02@ru.is>
3802 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
3804 2004-03-08 Paolo Carlini <pcarlini@suse.de>
3806 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
3807 * include/bits/stl_multiset.h: Add comment about DR 103.
3808 * include/bits/stl_set.h: Likewise.
3810 2004-03-08 Paolo Carlini <pcarlini@suse.de>
3812 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3813 The value _space_ indicates that at least one space is required
3815 * testsuite/22_locale/money_get/get/char/17.cc: New.
3816 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
3818 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
3819 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
3821 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
3822 Remove redundant conditional on __str.size().
3824 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
3826 * include/bits/allocator.h: Switch defaults to mt_alloc.
3828 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
3830 * include/ext/mt_allocator.h (_S_initialize): If
3831 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
3833 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
3836 * src/locale_init.cc (locale::locale): Lock critical regions with
3838 (locale::global): Same.
3839 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
3840 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
3841 (__glibcxx_mutex_lock): Same.
3843 * config/cpu/generic/atomicity.h: Remove
3844 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
3845 * src/misc-inst.cc: Move all locking bits out of this file.
3847 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
3848 * src/misc-inst.cc: Same.
3849 * config/cpu/hppa/atomicity.h: Same.
3851 * config/linker-map.gnu: Remove types in the signature of atomic
3852 exports, as they may vary.
3854 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3856 * include/bits/locale_facets.tcc: Tweak the comment preceding
3857 has_facet: doesn't throw.
3859 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3861 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
3862 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3863 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3864 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3865 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3866 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3867 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3868 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3870 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3872 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3873 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
3874 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
3875 * testsuite/testsuite_character.h (struct __gnu_test::character):
3877 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
3880 2004-03-05 Paolo Carlini <pcarlini@suse.de>
3882 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
3884 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
3886 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
3888 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
3890 * testsuite/23_containers/deque/invalidation/4.cc: Same.
3891 * testsuite/23_containers/list/invalidation/1.cc: Same.
3892 * testsuite/23_containers/list/invalidation/2.cc: Same.
3893 * testsuite/23_containers/list/invalidation/3.cc: Same.
3894 * testsuite/23_containers/list/invalidation/4.cc: Same.
3895 * testsuite/23_containers/map/invalidation/2.cc: Same.
3896 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
3897 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3898 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
3899 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3900 * testsuite/23_containers/set/invalidation/1.cc: Same.
3901 * testsuite/23_containers/set/invalidation/2.cc: Same.
3902 * testsuite/23_containers/vector/invalidation/1.cc: Same.
3903 * testsuite/23_containers/vector/invalidation/2.cc: Same.
3904 * testsuite/23_containers/vector/invalidation/3.cc: Same.
3905 * testsuite/23_containers/vector/invalidation/4.cc: Same.
3907 2004-03-04 Paolo Carlini <pcarlini@suse.de>
3909 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
3911 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
3913 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
3914 from the dg-options.
3915 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
3916 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
3917 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
3918 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
3919 * testsuite/23_containers/vector/resize/1.cc: Likewise.
3920 * testsuite/26_numerics/complex_value.cc: Likewise.
3921 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
3922 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
3923 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
3924 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
3925 * testsuite/27_io/objects/char/5.cc: Likewise.
3926 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
3927 * testsuite/backward/11460.cc: Likewise.
3928 * testsuite/thread/pthread7-rope.cc: Likewise.
3930 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
3931 missing test variable.
3932 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
3933 missing test variable.
3935 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
3937 * testsuite/20_util/allocator/1.cc: Provide explicit
3938 instantiations for non-weak systems.
3939 * testsuite/20_util/binders.cc: Same.
3940 * testsuite/20_util/allocator/8230.cc: Same.
3941 * testsuite/20_util/allocator/10378.cc: Same.
3942 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
3943 * testsuite/22_locale/ctype/is/char/2.cc: Same.
3944 * testsuite/thread/pthread7-rope.cc: Same.
3945 * testsuite/thread/pthread6.cc: Same.
3946 * testsuite/thread/pthread5.cc: Same.
3947 * testsuite/thread/pthread4.cc: Same.
3948 * testsuite/thread/pthread1.cc: Same.
3949 * testsuite/ext/rope.cc: Same.
3950 * testsuite/ext/hash_set.cc: Same.
3951 * testsuite/ext/hash_map.cc: Same.
3952 * testsuite/ext/concept_checks.cc: Same.
3953 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
3954 * testsuite/25_algorithms/unique/2.cc: Same.
3955 * testsuite/25_algorithms/unique/1.cc: Same.
3956 * testsuite/25_algorithms/rotate.cc: Same.
3957 * testsuite/25_algorithms/min_max.cc: Same.
3958 * testsuite/25_algorithms/equal.cc: Same.
3959 * testsuite/24_iterators/rel_ops.cc: Same.
3960 * testsuite/24_iterators/iterator.cc: Same.
3961 * testsuite/24_iterators/insert_iterator.cc: Same.
3962 * testsuite/24_iterators/front_insert_iterator.cc: Same.
3963 * testsuite/24_iterators/back_insert_iterator.cc: Same.
3964 * testsuite/23_containers/vector/resize/1.cc: Same.
3965 * testsuite/23_containers/vector/modifiers/2.cc: Same.
3966 * testsuite/23_containers/vector/modifiers/1.cc: Same.
3967 * testsuite/23_containers/vector/invalidation/4.cc: Same.
3968 * testsuite/23_containers/vector/invalidation/3.cc: Same.
3969 * testsuite/23_containers/vector/invalidation/2.cc: Same.
3970 * testsuite/23_containers/vector/invalidation/1.cc: Same.
3971 * testsuite/23_containers/vector/element_access/1.cc: Same.
3972 * testsuite/23_containers/vector/cons/6513.cc: Same.
3973 * testsuite/23_containers/vector/cons/3.cc: Same.
3974 * testsuite/23_containers/vector/cons/2.cc: Same.
3975 * testsuite/23_containers/vector/cons/1.cc: Same.
3976 * testsuite/23_containers/vector/capacity/8230.cc: Same.
3977 * testsuite/23_containers/vector/capacity/1.cc: Same.
3978 * testsuite/23_containers/vector/bool/6886.cc: Same.
3979 * testsuite/23_containers/stack/members/7158.cc: Same.
3980 * testsuite/23_containers/set/invalidation/2.cc: Same.
3981 * testsuite/23_containers/set/invalidation/1.cc: Same.
3982 * testsuite/23_containers/queue/members/7157.cc: Same.
3983 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
3984 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3985 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3986 * testsuite/23_containers/multiset/insert/1.cc: Same.
3987 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3988 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3989 * testsuite/23_containers/map/operators/1.cc: Same.
3990 * testsuite/23_containers/map/invalidation/2.cc: Same.
3991 * testsuite/23_containers/map/invalidation/1.cc: Same.
3992 * testsuite/23_containers/map/insert/1.cc: Same.
3993 * testsuite/23_containers/list/operators/4.cc: Same.
3994 * testsuite/23_containers/list/operators/3.cc: Same.
3995 * testsuite/23_containers/list/operators/2.cc: Same.
3996 * testsuite/23_containers/list/operators/1.cc: Same.
3997 * testsuite/23_containers/list/modifiers/3.cc: Same.
3998 * testsuite/23_containers/list/modifiers/2.cc: Same.
3999 * testsuite/23_containers/list/modifiers/1.cc: Same.
4000 * testsuite/23_containers/list/invalidation/4.cc: Same.
4001 * testsuite/23_containers/list/invalidation/3.cc: Same.
4002 * testsuite/23_containers/list/invalidation/2.cc: Same.
4003 * testsuite/23_containers/list/invalidation/1.cc: Same.
4004 * testsuite/23_containers/list/cons/9.cc: Same.
4005 * testsuite/23_containers/list/cons/8.cc: Same.
4006 * testsuite/23_containers/list/cons/7.cc: Same.
4007 * testsuite/23_containers/list/cons/6.cc: Same.
4008 * testsuite/23_containers/list/cons/5.cc: Same.
4009 * testsuite/23_containers/list/cons/4.cc: Same.
4010 * testsuite/23_containers/list/cons/3.cc: Same.
4011 * testsuite/23_containers/list/cons/2.cc: Same.
4012 * testsuite/23_containers/list/cons/1.cc: Same.
4013 * testsuite/23_containers/list/capacity/1.cc: Same.
4014 * testsuite/23_containers/deque/operators/1.cc: Same.
4015 * testsuite/23_containers/deque/invalidation/4.cc: Same.
4016 * testsuite/23_containers/deque/invalidation/3.cc: Same.
4017 * testsuite/23_containers/deque/invalidation/2.cc: Same.
4018 * testsuite/23_containers/deque/invalidation/1.cc: Same.
4019 * testsuite/23_containers/deque/cons/2.cc: Same.
4020 * testsuite/23_containers/deque/cons/1.cc: Same.
4022 * src/allocator.cc: Add char, wchar_t instantiations
4023 to match extern template declarations in memory.h.
4025 2004-03-03 Paolo Carlini <pcarlini@suse.de>
4027 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4028 Fix warning regression.
4030 2004-03-03 Paolo Carlini <pcarlini@suse.de>
4032 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4033 Deal properly with empty __digits and negative frac_digits,
4036 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
4038 * docs/html/documentation.html: Regenerate.
4040 2004-03-02 Paolo Carlini <pcarlini@suse.de>
4043 * include/bits/postypes.h (class streamoff): Remove, now
4044 streamoff is just typedef a 64 bit signed integer type.
4045 (class fpos): Tweak consistently.
4046 * testsuite/27_io/fpos/14320-1.cc: New.
4047 * testsuite/27_io/fpos/14320-2.cc: New.
4048 * testsuite/27_io/fpos/14320-3.cc: New.
4049 * testsuite/27_io/fpos/14320-4.cc: New.
4050 * testsuite/27_io/fpos/14320-5.cc: New.
4051 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
4053 2004-03-02 Paolo Carlini <pcarlini@suse.de>
4055 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4056 Reorganize a bit the main parsing loop, thus early detecting
4057 an empty value component.
4058 * testsuite/22_locale/money_get/get/char/16.cc: New.
4059 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
4061 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
4063 Support automake 1.8.2
4064 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
4065 * po/Makefile.am (EXTRA_DIST): New.
4066 * po/Makefile.in: Regenerate.
4067 * Makefile.in: Same.
4068 * include/Makefile.in: Same.
4069 * libmath/Makefile.in: Same.
4070 * libsupc++/Makefile.in: Same.
4071 * src/Makefile.in: Same.
4072 * testsuite/Makefile.in: Same.
4074 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
4075 __GXX_WEAK__ instead of SUPPORTS_WEAK.
4076 (${host_builddir}/gthr-default.h): Same.
4077 (${host_builddir}/gthr.h): Same.
4078 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
4079 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
4081 * aclocal.m4: Regenerate.
4082 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
4083 * config.h.in: Regenerate.
4086 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
4088 Support autoconf 2.59
4089 * acinclude.m4: Quote correctly.
4090 * aclocal.m4: Regenerate.
4093 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
4095 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
4097 * docs/html/18_support/howto.html: Add bit about writing to
4098 stderr, mostly by Zack.
4100 2004-03-01 Paolo Carlini <pcarlini@suse.de>
4102 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
4103 money_get<>::do_get(string_type&)): ... and two more.
4105 2004-03-01 Paolo Carlini <pcarlini@suse.de>
4107 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4108 Fix thinkos in the switch from string_type& to string& as last
4111 2004-03-01 Paolo Carlini <pcarlini@suse.de>
4113 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
4114 Also when parsing exponent sign, first look for thousands_sep
4115 and decimal_point; tweak a bit.
4116 * testsuite/22_locale/num_get/get/char/15.cc: New.
4117 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
4119 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4120 num_get<>::_M_extract_int): Reorder some conditionals.
4122 2004-03-01 Paolo Carlini <pcarlini@suse.de>
4124 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4125 Consistently with numpunct, enforce the requirements in
4126 22.2.6.3, p3 for the thousands separators; tweak a bit.
4127 * testsuite/22_locale/money_get/get/char/15.cc: New.
4128 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
4130 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
4132 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
4133 testsuite_files from correct multilib blddir when running
4136 2004-02-29 Phil Edwards <phil@codesourcery.com>
4138 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
4139 the summary file to the logfile.
4140 * testsuite/Makefile.in: Regenerate.
4142 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4144 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
4146 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
4147 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
4149 2004-02-28 Paolo Carlini <pcarlini@suse.de>
4151 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
4152 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
4153 no 'decimal-point' in the middle: in this case too we must fix
4154 up __found_grouping; slightly tweak.
4155 * testsuite/22_locale/num_get/get/char/14.cc: New.
4156 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
4158 2004-02-27 Eric Christopher <echristo@redhat.com>
4159 Phil Edwards <phil@codesourcery.com>
4161 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
4162 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
4163 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
4164 testsuite/22_locale/collate/hash/wchar_t/2.cc,
4165 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
4166 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
4167 testsuite/22_locale/collate/transform/wchar_t/2.cc,
4168 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
4169 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4170 Use dg-require-iconv.
4171 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
4173 2004-02-27 Phil Edwards <phil@codesourcery.com>
4174 Eric Christopher <echristo@redhat.com>
4176 * testsuite/config/default.exp: Update with comments.
4177 (${tool}_target_compile): New wrapper routine.
4178 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
4179 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
4181 (load_gcc_lib, v3track): New routines.
4182 (v3-init): Rename to libstdc++_init.
4183 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
4184 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
4186 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
4188 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
4190 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
4192 * config/os/irix/irix5.2/atomicity.h: Merge..
4193 * config/os/irix/irix6.5/atomicity.h: Merge..
4194 * config/os/irix/atomicity.h: ...into this.
4195 * config/os/irix/atomic_word.h: New.
4196 * configure.host: Set atomic_word_dir for irix.
4198 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
4199 * i386/atomicity.h: Same.
4200 * m68k/atomicity.h: Same.
4201 * sparc/atomicity.h: Same.
4203 2004-02-27 David Edelsohn <edelsohn@gnu.org>
4205 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
4206 static, and inline keywords.
4208 2004-02-27 Paolo Carlini <pcarlini@suse.de>
4210 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4211 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
4212 call reserve on the __tmp_gruping string.
4213 (num_get<>::_M_extract_float): Don't append unnecessarily a
4214 char() to the returned string.
4215 * include/bits/locale_facets.tcc: Trivial reformattings.
4217 2004-02-27 Paolo Carlini <pcarlini@suse.de>
4219 * include/bits/locale_facets.h (money_get<>::_M_extract):
4220 Change signature: now takes a plain string&.
4221 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4222 Update consistently the definition; use the moneypunct cache
4223 to parse the value; use swap to change __units.
4224 (money_get<>::do_get(long double&)): Update call of _M_extract,
4225 avoid ctype::narrow, not correct wrt the standard.
4226 (money_get<>::do_get(string_type&)): Likewise, update call
4227 of _M_extract, use ctype::widen.
4228 * src/locale-inst.cc: Tweak instantiations of _M_extract.
4230 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
4232 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
4233 * testsuite/demangle/abi_examples/02.cc: Likewise.
4234 * testsuite/demangle/regression/cw-11.cc: Likewise.
4235 * testsuite/demangle/regression/cw-16.cc: Change two expected
4236 results to match libiberty demangler output.
4238 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
4241 * libsupc++/Makefile.am: Use libiberty demangler.
4242 (c_sources): Add cp-demangle.c.
4243 * libsupc++/Makefile.in: Regenerate.
4244 * src/Makefile.am (sources): Remove demangle.cc.
4245 * src/Makefile.in: Regenerate.
4246 * include/Makefile.am (bits_headers): Move demangle.h.
4247 (ext_headers): ...here.
4248 * include/Makefile.in: Regenerate.
4249 * include/bits/demangle.h: Move...
4250 * include/ext/demangle.h: ...here.
4251 * src/demangle.cc: Remove.
4253 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
4255 * include/bits/demangle.h: Add type template parameter to all
4256 templates with just an Allocator template parameter.
4258 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
4260 * include/bits/atomicity.h: New, forward declarations for __atomic_add
4261 and __exchange_and_add.
4262 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
4263 * config/cpu/cris/atomic_word.h: Same.
4264 * config/cpu/sparc/atomic_word.h: Same.
4265 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
4266 Qualifiy with __gnu_cxx.
4267 (_Callback_list::_M_add_reference): Same.
4268 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
4269 (locale::facet::_M_remove_reference): Same.
4270 (locale::_Impl::_M_add_reference): Add.
4271 (locale::_Impl::_M_remove_reference): Same.
4272 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
4273 (basic_string::_Rep::_M_dispose): Same.
4274 * src/ios.cc (ios_base::xalloc): Same.
4275 * src/ios_init.cc (ios_base::Init::Init): Same.
4276 (ios_base::Init::~Init): Same.
4277 * src/locale.cc (locale::id::_M_id): Same.
4278 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
4279 static, and inline keywords.
4280 * config/cpu/alpha/atomicity.h: Same.
4281 * config/cpu/cris/atomicity.h: Same.
4282 * config/cpu/generic/atomicity.h: Same.
4283 * config/cpu/hppa/atomicity.h: Same.
4284 * config/cpu/i386/atomicity.h: Same.
4285 * config/cpu/ia64/atomicity.h: Same.
4286 * config/cpu/m68k/atomicity.h: Same.
4287 * config/cpu/mips/atomicity.h: Same.
4288 * config/cpu/powerpc/atomicity.h: Same.
4289 * config/cpu/s390/atomicity.h: Same.
4290 * config/cpu/sparc/atomicity.h: Same.
4292 * src/Makefile.am (host_sources): Add atomicity.cc.
4293 (atomicity.cc): New rule.
4294 * src/Makefile.in: Regenerate.
4295 * include/Makefile.am (host_headers): Remove host atomicity.h.
4296 (host_headers): Add atomic_word.h.
4297 (bits_headers): Add bits atomicity.h.
4298 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
4299 * include/Makefile.in: Regenerate.
4300 * configure.host (atomic_word_dir): Add.
4301 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
4302 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
4303 * configure: Regenerate.
4304 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
4306 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
4307 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
4309 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
4311 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
4312 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
4313 Fix markup, more <link> tags.
4315 2004-02-25 Carlo Wood <carlo@alinoe.com>
4318 namespace __gnu_cxx::demangler
4319 (session<Allocator>::qualifier_list_Allocator): Add
4320 (session<Allocator>::M_qualifier_list_alloc): Add
4321 (session<Allocator>::decode_type_with_postfix):
4322 Use M_qualifier_list_alloc instead of calling operator new/delete.
4324 2004-02-24 Paolo Carlini <pcarlini@suse.de>
4327 * include/bits/postypes.h (class streamoff): Add operator++(),
4328 operator++(int), operator--() and operator--(int).
4329 * testsuite/27_io/fpos/14252.cc: New.
4331 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
4333 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
4334 error in handling of hex constants.
4336 2004-02-24 Paolo Carlini <pcarlini@suse.de>
4338 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4339 Prefer basic_string::append to operator+= and a temporary.
4341 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
4343 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
4344 Only use fputs, not write.
4346 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
4348 * include/ext/malloc_allocator.h: Add operators ==, !=.
4349 * include/ext/new_allocator.h: Add operators ==, !=.
4350 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
4351 (__mt_alloc::_S_get_options): New.
4352 (__mt_alloc::_S_set_options): New.
4353 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
4354 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
4355 Move functions out of line, simplify, format.
4356 * src/allocator.cc: Simplify explicit instantiations.
4357 * include/bits/allocator.h: Tweak.
4359 2004-02-22 Paolo Carlini <pcarlini@suse.de>
4361 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4362 Restructure formatting of value component, first dealing with
4363 the non-decimal digits; use reserve.
4365 2004-02-22 Paolo Carlini <pcarlini@suse.de>
4367 * include/bits/locale_facets.h (class money_get): Inherit
4368 from money_base too; tweak declaration of _M_extract, now
4369 parameterized on _Intl too.
4370 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4371 Update definition to use the cache; call reserve on __res to
4372 avoid multiple reallocations; fix parsing of sign component
4373 according to 22.2.6.1.2, p3.
4374 (money_get<>::do_get(long double&),
4375 money_get<>::do_get(string_type&)): Update calls of _M_extract.
4376 * src/locale-inst.cc: Add instantiations of
4377 money_get::_M_extract<false> and money_get::_M_extract<true>.
4378 * testsuite/22_locale/money_get/get/char/14.cc: New.
4379 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
4381 2004-02-21 Mark Mitchell <mark@codesourcery.com>
4383 * libsupc++/vterminate.cc
4384 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
4386 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
4388 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
4389 not set RLIMIT_AS on HP-UX.
4391 2004-02-21 Mark Mitchell <mark@codesourcery.com>
4393 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
4394 not set RLIMIT_AS on HP-UX.
4396 2004-02-21 Paolo Carlini <pcarlini@suse.de>
4398 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
4399 _S_zero, _S_end } enum, _S_atoms.
4400 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
4401 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
4402 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
4403 (__moneypunct_cache<>::~__moneypunct_cache): Update.
4404 (__moneypunct_cache<>::_M_cache): Fill the cache.
4405 (class moneypunct): Tweak __cache_type typedef.
4406 (class money_put): Inherit from money_base too; tweak declaration
4407 of _M_insert, now parameterized on _Intl.
4408 * include/bits/locale_facets.tcc
4409 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
4410 (money_put<>::_M_insert): Update definition to use the cache;
4411 call reserve on __res to avoid multiple reallocations.
4412 (money_put<>::do_put(long double),
4413 money_put<>::do_put(const string_type&): Update calls of _M_insert.
4414 * config/locale/generic/monetary_members.cc
4415 (moneypunct<char, true>::_M_initialize_moneypunct,
4416 moneypunct<char, false>::_M_initialize_moneypunct,
4417 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
4418 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
4419 * config/locale/gnu/monetary_members.cc: Likewise.
4420 * config/locale/gnu/monetary_members.cc
4421 (moneypunct<wchar_t, true>::~moneypunct(),
4422 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
4423 * src/globals_locale.cc: Tweak fake_money_cache_c.
4424 * src/locale-inst.cc: Add instantiations for
4425 money_put::_M_insert<false> and money_put::_M_insert<true> and
4426 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
4427 * src/locale_facets.cc: Define money_base::_S_atoms.
4428 * src/locale_init.cc: Update placement new of
4429 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
4430 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
4432 * config/locale/generic/numeric_members.cc: Clean up.
4433 * config/locale/gnu/numeric_members.cc: Likewise.
4434 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
4435 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
4436 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
4437 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
4438 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
4439 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
4441 2004-02-20 Mark Mitchell <mark@codesourcery.com>
4443 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
4444 FIFO for writing with ios_base::in|ios_base::out.
4445 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
4446 * testsuite/27_io/objects/char/7.cc: Likewise.
4447 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
4450 2004-02-19 David Edelsohn <edelsohn@gnu.org>
4452 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
4453 from iso-8859-1 to ISO8859-1.
4454 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
4455 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
4456 * 22_locale/collate/hash/wchar_t/2.cc: Same.
4457 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
4458 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
4459 * 22_locale/collate/transform/wchar_t/2.cc: Same.
4460 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
4461 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
4463 2004-02-18 Paolo Carlini <pcarlini@suse.de>
4465 * include/bits/locale_facets.h (money_get<>::_M_extract):
4466 New, helper for do_get.
4467 (money_put<>::_M_insert): Likewise, for do_put.
4468 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
4469 money_put<>::_M_insert): Define.
4470 (money_get<>::do_get(long double&), money_get<>::do_get(
4471 string_type&), money_put::do_put(long double),
4472 money_put::do_put(const string_type&)): Use the helpers.
4474 2004-02-18 Paolo Carlini <pcarlini@suse.de>
4476 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4477 Rewrite, avoiding recursion.
4478 (__gnu_internal::xwrite): Minor tweaks.
4480 2004-02-17 Stefan Olsson <stefan@xapa.se>
4482 * include/ext/mt_allocator.h: Removed the last
4483 pointer. Deallocated blocks are now added to the front of
4484 freelists as proposed by Felix Yen. This gives roughly 10%
4485 performance boost and saves some memory.
4486 * docs/html/ext/mt_allocator.html: Change due to that deallocated
4487 blocks now are added to the front of freelists. The reason to this
4488 approach is also explained.
4490 2004-02-17 Paolo Carlini <pcarlini@suse.de>
4492 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4493 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
4494 grouping fidelity conditional.
4496 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4498 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
4499 Qualify exception with std::.
4500 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
4501 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4502 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4503 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4504 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4506 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4508 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
4509 for now that the catch block is not reached.
4510 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
4512 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4514 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4515 Fix parsing of the remaining sign characters.
4516 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
4517 the input is scanned 'til eof.
4518 * 22_locale/money_get/get/char/4.cc: Likewise.
4519 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
4520 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
4521 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
4522 not do_pos_format: the former is the only one that matters during
4524 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
4526 * 22_locale/money_get/get/char/6.cc: Minor tweak.
4527 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
4529 2004-02-15 David Asher <david.asher@cavium.com>
4532 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
4533 access __olds beyond __oldlen.
4535 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4537 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
4538 sure the exception is actually thrown.
4539 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4540 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4541 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4543 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4546 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
4547 In case of conversion errors, throw ios_failure; simplify.
4548 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
4549 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4550 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
4551 previously we didn't throw in case of conversion errors, instead
4552 just returned eof().
4553 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4554 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4555 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4557 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
4558 Trivial simplification of a conditional.
4560 2004-02-12 Paolo Carlini <pcarlini@suse.de>
4562 PR libstdc++/13731 (final part: writev)
4563 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4564 New, a wrapper around writev() handling partial writes.
4565 (__basic_file<char>::xwrite): Move to __gnu_internal and make
4567 (__basic_file<char>::xsputn): Update call.
4568 (__basic_file<char>::xsputn_2): Likewise.
4569 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4570 Don't declare, now static.
4572 2004-02-11 Stefan Olsson <stefan@xapa.se>
4574 * docs/html/ext/mt_allocator.html: New.
4576 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
4578 * docs/html/20_util/allocator.html: New file, consolidate
4579 allocator information here. Revamp.
4580 * docs/html/documentation.html: Change links.
4581 * docs/html/20_util/howto.html: Same.
4582 * docs/html/ext/howto.html: Same.
4584 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4586 PR libstdc++/13731 (first part: write)
4587 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4589 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
4590 Define it: a wrapper around write() handling partial write.
4591 (__basic_file<char>::xsputn): Use it.
4592 (__basic_file<char>::xsputn_2): Likewise.
4594 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4595 Petur Runolfsson <peturr02@ru.is>
4598 * include/std/std_istream.h (operator>>(__istream_type& (*)
4599 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
4600 operator>>(ios_base& (*)(ios_base&))): Declare inline.
4601 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
4602 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
4603 operator<<(ios_base& (*) (ios_base&))): Likewise.
4604 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
4606 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
4609 * config/linker-map.gnu: Add typeinfo and typeinfo name for
4610 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
4613 * config/linker-map.gnu: Add typeinfo and typeinfo name for
4614 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
4616 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
4618 * include/ext/pool_allocator.h: Include c++config.h.
4620 2004-02-09 Stefan Olsson <stefan@xapa.se>
4622 * include/ext/mt_allocator.h: thread_id is unused in non threaded
4623 applications and now has a ifdef to remove it completely on
4624 compilers without thread support. Include stdlib.h due to a
4625 compiler warning on getenv().
4627 2004-02-09 Paul Brook <paul@codesourcery.com>
4629 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
4631 2004-02-09 Paolo Carlini <pcarlini@suse.de>
4634 * src/locale_init.cc (locale::global(const locale&)): Use
4635 locale::name() in order to decide whether calling setlocale.
4636 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
4638 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
4639 Avoid computing &= unnecessarily.
4641 2004-02-09 James E Wilson <wilson@specifixinc.com>
4644 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
4645 __builtin_extend_pointer.
4647 2004-02-09 Paolo Carlini <pcarlini@suse.de>
4650 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
4651 Don't leave dangling pointers.
4652 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
4653 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
4654 facet is needed in the final test.
4656 2004-02-09 Bernardo Innocenti <bernie@develer.com>
4658 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
4659 * configure: Regenerate.
4661 2004-02-08 Richard Henderson <rth@redhat.com>
4664 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
4665 uncaughtExceptions during nested catch rethrow.
4666 * testsuite/18_support/14026.cc: New.
4668 2004-02-08 Paolo Carlini <pcarlini@suse.de>
4670 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
4671 When working in place remember to set the state to sharable
4672 (otherwise, _M_mutate does it).
4674 2004-02-08 Bernardo Innocenti <bernie@develer.com>
4676 * include/bits/allocator.h, include/bits/basic_ios.h,
4677 include/bits/basic_ios.tcc, include/bits/basic_string.h,
4678 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
4679 include/bits/char_traits.h, include/bits/codecvt.h,
4680 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
4681 include/bits/demangle.h, include/bits/deque.tcc,
4682 include/bits/fstream.tcc, include/bits/functexcept.h,
4683 include/bits/gslice.h, include/bits/gslice_array.h,
4684 include/bits/indirect_array.h, include/bits/ios_base.h,
4685 include/bits/istream.tcc, include/bits/list.tcc,
4686 include/bits/locale_classes.h, include/bits/locale_facets.h,
4687 include/bits/locale_facets.tcc, include/bits/localefwd.h,
4688 include/bits/mask_array.h, include/bits/ostream.tcc,
4689 include/bits/postypes.h, include/bits/slice_array.h,
4690 include/bits/sstream.tcc, include/bits/stl_algo.h,
4691 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
4692 include/bits/stl_construct.h, include/bits/stl_deque.h,
4693 include/bits/stl_function.h, include/bits/stl_heap.h,
4694 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
4695 include/bits/stl_list.h, include/bits/stl_map.h,
4696 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
4697 include/bits/stl_numeric.h, include/bits/stl_pair.h,
4698 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
4699 include/bits/stl_relops.h, include/bits/stl_set.h,
4700 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
4701 include/bits/stl_threads.h, include/bits/stl_tree.h,
4702 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
4703 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
4704 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
4705 include/bits/type_traits.h, include/bits/valarray_after.h,
4706 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
4707 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
4708 trailing whitespace.
4710 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4712 * include/bits/basic_string.h: Fix comment.
4714 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4716 * include/bits/stl_construct.h: Wrap overlong lines, reformat
4717 according to the coding standards.
4718 * include/bits/stl_pair.h: Likewise.
4719 * include/bits/stl_raw_storage_iter.h: Likewise.
4720 * include/bits/stl_stack.h: Likewise.
4721 * include/bits/stl_uninitialized.h: Likewise.
4722 * include/bits/stream_iterator.h: Likewise.
4723 * include/bits/streambuf_iterator.h: Likewise.
4724 * include/bits/type_traits.h: Likewise.
4726 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4728 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4731 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
4733 * scripts/check_performance: Support PCH.
4735 * scripts/check_performance (CXX): Add -DNOTHREAD.
4736 * testsuite/performance/20_util/allocator/insert.cc: Integrate
4737 threaded tests from insert_insert.cc. Tweak iterations,
4738 remove special cases.
4739 * testsuite/performance/20_util/allocator/insert_insert.cc:
4740 Make all tests single-threaded. Tweak iterations.
4741 * testsuite/performance/20_util/allocator/map_thread.cc:
4743 * testsuite/performance/20_util/allocator/producer_consumer.cc:
4746 2004-02-05 Geoffrey Keating <geoffk@apple.com>
4750 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
4751 'gcc-lib'. Add comment about poorly-named variables.
4752 * aclocal.m4: Regenerate.
4753 * configure: Regenerate.
4755 2004-02-05 Paolo Carlini <pcarlini@suse.de>
4757 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4758 Thousands-sep are always optional; thousands-sep are not allowed
4759 after the decimal_point.
4760 * testsuite/22_locale/money_get/get/char/12.cc: New.
4761 * testsuite/22_locale/money_get/get/char/13.cc: New.
4762 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
4763 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
4765 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
4766 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
4767 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
4768 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
4769 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
4770 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
4771 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
4772 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
4774 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
4776 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
4778 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
4780 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
4782 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
4783 it to decide whether FIONREAD should take an off_t or int argument.
4785 2004-02-05 Paolo Carlini <pcarlini@suse.de>
4787 * include/bits/stl_function.h: Minor formatting changes.
4789 2004-02-04 Zack Weinberg <zack@codesourcery.com>
4791 Revert previous change to config/abi/*/baseline_symbols.txt.
4793 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
4794 Zack Weinberg <zack@codesourcery.com>
4796 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
4798 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
4799 (__basic_file<char>::_M_open_mode): Delete.
4800 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
4802 * testsuite/27_io/basic_filebuf/close/char/9964.cc
4803 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4804 Correct flags to filebuf::open calls.
4806 * config/abi/alpha-freebsd5/baseline_symbols.txt
4807 * config/abi/alpha-linux-gnu/baseline_symbols.txt
4808 * config/abi/hppa-linux-gnu/baseline_symbols.txt
4809 * config/abi/i386-freebsd4/baseline_symbols.txt
4810 * config/abi/i386-freebsd5/baseline_symbols.txt
4811 * config/abi/i486-linux-gnu/baseline_symbols.txt
4812 * config/abi/ia64-linux-gnu/baseline_symbols.txt
4813 * config/abi/mips-linux-gnu/baseline_symbols.txt
4814 * config/abi/sparc-freebsd5/baseline_symbols.txt
4815 * config/abi/sparc-linux-gnu/baseline_symbols.txt
4816 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
4817 Remove entry for __basic_file<char>::_M_open_mode.
4819 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
4821 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
4823 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
4825 * testsuite/performance/20_util/producer_consumer.cc: New.
4826 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
4828 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
4830 * testsuite/performance/20_util/allocator.cc: Move to..
4831 * testsuite/performance/20_util/allocator/insert.cc: ...here.
4832 * testsuite/performance/20_util/allocator_thread.cc: Move to...
4833 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
4834 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
4835 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
4837 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
4839 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
4840 * docs/html/faq/index.txt: Regenerate.
4842 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
4844 * include/ext/debug_allocator.h: _M_extra now stands for the
4845 number of extra objects instead of the number of extra bytes.
4846 (debug_allocator::allocate): Adjust.
4847 (debug_allocator::deallocate): Adjust.
4849 * include/ext/pool_allocator.h: Fix typo.
4851 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
4852 Benjamin Kosnik <bkoz@redhat.com>
4854 * testsuite/performance/20_util/allocator.cc: Add map,
4856 * testsuite/performance/20_util/allocator_thread.cc: Same.
4858 2004-02-03 Paolo Carlini <pcarlini@suse.de>
4860 * include/bits/basic_string.h (insert(iterator)): Remove,
4861 non-standard and already scheduled for removal.
4863 2004-02-03 Paolo Carlini <pcarlini@suse.de>
4865 * include/bits/stl_iterator_base_funcs.h: Minor formatting
4866 and indentation tweaks.
4867 * include/bits/stl_iterator_base_types.h: Likewise.
4868 * include/bits/stl_list.h: Likewise.
4869 * include/bits/stl_map.h: Likewise.
4870 * include/bits/stl_tempbuf.h: Likewise.
4872 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
4874 * include/bits/gslice.h, include/bits/gslice_array.h,
4875 include/bits/indirect_array.h, include/bits/mask_array.h,
4876 include/bits/slice_array.h, include/bits/stl_numeric.h,
4877 include/std/std_valarray.h: Update copyright years.
4879 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
4881 * include/bits/gslice.h (gslice): Document.
4882 * include/bits/gslice_array.h (gslice_array): Document.
4883 * include/bits/indirect_array (indirect_array): Document.
4884 * include/bits/mask_array (mask_array): Document.
4885 * include/bits/slice_array.h (slice,slice_array): Document.
4886 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
4887 adjacent_difference): Document
4888 * include/std/std_valarray.h (valarray): Document.
4890 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
4892 * docs/html/19_diagnostics/howto.html: Move verbose terminate
4894 * docs/html/18_support/howto.html: Here.
4895 * docs/html/documentation.html: Add reference here.
4897 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4899 * config/locale/gnu/c++locale_internal.h: Remove prototypes
4900 of no longer used GLIBC thread locale functions.
4902 2004-02-02 Eric Christopher <echristo@redhat.com>
4903 Zack Weinberg <zack@codesourcery.com>
4905 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
4907 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
4908 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
4909 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
4910 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
4911 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
4912 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
4913 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
4914 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4917 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4919 * include/bits/stl_function.h: Additional minor tweaks.
4920 * include/bits/stl_multiset.h: Likewise.
4922 * include/bits/stl_queue.h: Minor tweaks.
4924 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4926 PR libstdc++/13976 (continued)
4927 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
4928 Make the second parameter unnamed, to void unused parameter
4930 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
4932 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4935 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
4936 Make the second parameter unnamed, to void unused parameter
4938 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
4939 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
4941 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4943 * include/bits/stl_algo.h: Additional minor tweaks.
4944 * include/bits/stl_map.h: Likewise.
4945 * include/bits/stl_multimap.h: Likewise.
4946 * include/bits/stl_multiset.h: Likewise.
4947 * include/bits/stl_set.h: Likewise.
4948 * include/bits/stl_tree.h: Likewise.
4950 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4952 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
4955 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4957 * include/bits/stl_function.h: Additional minor tweaks.
4959 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4961 * include/bits/deque.tcc: Wrap overlong lines, constify
4962 a few variables, reformat according to the coding standards.
4963 * include/bits/list.tcc: Likewise.
4964 * include/bits/stl_deque.h: Likewise.
4965 * include/bits/stl_function.h: Likewise.
4966 * include/bits/stl_iterator.h: Likewise.
4967 * include/bits/stl_iterator_base_funcs.h: Likewise.
4968 * include/bits/stl_iterator_base_types.h: Likewise.
4969 * include/bits/stl_list.h: Likewise.
4970 * include/bits/stl_map.h: Likewise.
4971 * include/bits/stl_multimap.h: Likewise.
4972 * include/bits/stl_multiset.h: Likewise.
4973 * include/bits/stl_relops.h: Likewise.
4974 * include/bits/stl_set.h: Likewise.
4976 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4978 * include/bits/stl_bvector.h: Wrap overlong lines, constify
4979 a few variables, reformat according to the coding standards.
4980 * include/bits/stl_tree.h: Likewise.
4982 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4984 * include/bits/stl_algo.h: Minor additional reformat, add
4986 * include/bits/stl_algobase.h: Add copyright year.
4988 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4990 * include/bits/stl_algo.h: Wrap overlong lines, constify
4991 a few variables, reformat according to the coding standards.
4992 * include/bits/stl_algobase.h: Likewise.
4993 * include/bits/stl_heap.h: Likewise.
4995 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4997 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
4999 * include/bits/basic_string.h: Fix two comments.
5001 2004-01-31 Per Bothner <per@bothner.com>
5003 * include/ext/mt_allocator.h
5004 (__mt_alloc::_S_thread_freelist_mutex): Guard with
5005 __GTHREAD_MUTEX_INIT.
5007 2004-01-31 Paolo Carlini <pcarlini@suse.de>
5009 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
5011 2004-01-30 Paolo Carlini <pcarlini@suse.de>
5013 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
5014 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
5015 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
5017 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
5019 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
5020 Don't use clear, but instead assign. Use insert.
5022 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
5024 * src/demangle.cc: Add instantiations.
5025 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
5026 * src/Makefile.in: Regenerate.
5028 2004-01-30 David Edelsohn <edelsohn@gnu.org>
5030 * src/allocator.cc: Protect _S_get_thread_id() and
5031 _S_thread_key_destr() with #ifdef __GTHREADS.
5033 2004-01-30 Paolo Carlini <pcarlini@suse.de>
5035 Reshuffle performance testsuite.
5036 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
5037 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
5038 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
5039 fstream_seek_write.cc, ifstream_extract_float.cc,
5040 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
5041 list_create_fill_sort.cc, map_create_fill.cc,
5042 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
5043 ofstream_insert_float.cc, ofstream_insert_int.cc,
5044 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
5045 wchar_t_out.cc: Split into...
5046 * testsuite/performance/20_util/allocator.cc: New.
5047 * testsuite/performance/20_util/allocator_map_thread.cc: New.
5048 * testsuite/performance/20_util/allocator_thread.cc: New.
5049 * testsuite/performance/21_strings/string_append: New.
5050 * testsuite/performance/22_locale/is_wchar_t.cc: New.
5051 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
5052 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
5053 * testsuite/performance/22_locale/wchar_t_in.cc: New.
5054 * testsuite/performance/22_locale/wchar_t_length.cc: New.
5055 * testsuite/performance/22_locale/wchar_t_out.cc: New.
5056 * testsuite/performance/23_containers/container_benchmark.cc: New.
5057 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
5058 * testsuite/performance/23_containers/map_create_fill.cc: New.
5059 * testsuite/performance/26_numerics/complex_norm.cc: New.
5060 * testsuite/performance/27_io/cout_insert_int.cc: New.
5061 * testsuite/performance/27_io/filebuf_copy.cc: New.
5062 * testsuite/performance/27_io/filebuf_sputc.cc: New.
5063 * testsuite/performance/27_io/fstream_seek_write.cc: New.
5064 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
5065 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
5066 * testsuite/performance/27_io/ifstream_getline.cc: New.
5067 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
5068 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
5070 2004-01-30 Paolo Carlini <pcarlini@suse.de>
5072 * include/bits/basic_string.tcc (_Rep::_S_create):
5073 Never allocate a string bigger than max_size(); always keep
5074 __capacity and __size in sync to avoid memory leaks at
5077 2004-01-30 Paolo Carlini <pcarlini@suse.de>
5079 * include/bits/basic_string.tcc (_S_construct(_InIterator,
5080 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
5081 the double loop, streamline.
5083 * include/bits/basic_string.tcc: Very minor tweaks.
5085 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
5087 * scripts/check_performance: Only compile with $THREAD_FLAG
5088 when test is marked to require it. Allow multiple
5089 compilations/executions of marked tests.
5090 * testsuite/testsuite_performance.h (report_performance):
5091 Report dynamic thread support status.
5092 (report_header): Likewise.
5093 * testsuite/performance/allocator.cc: Stabilize iteration
5094 count. Support more allocators. Mark each allocator test to
5095 run and report independently.
5096 * testsuite/performance/allocator_map_thread.cc: Likewise.
5097 * testsuite/performance/allocator_thread.cc: Likewise.
5099 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
5101 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
5102 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
5103 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
5104 std::get_temporary_buffer() instead of duplicating its code.
5105 Update to C++STYLE conventions.
5106 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
5107 new() instead of std::malloc().
5108 (return_temporary_buffer): Use ::operator delete() instead of
5111 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
5113 * include/bits/allocator.h: Temporary switch to new_allocator as
5114 the default to unjam bootstraps.
5116 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
5118 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
5119 * include/Makefile.in: Regenerate.
5120 * include/bits/allocator_traits.h: Remove.
5121 * include/bits/allocator.h: Remove allocator_traits.h include, and
5123 (allocator): Empty base class, inherit from the underlying allocator.
5124 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
5125 * src/allocator.cc: ...here. New. For the underlying allocators.
5126 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
5127 * config/linker-map.gnu: Remove __pool_alloc bits.
5128 * src/Makefile.am (sources): Add allocator.cc.
5129 * src/Makefile.in: Regenerate.
5130 * testsuite/20_util/allocator/1.cc: Split second test into...
5131 * testsuite/20_util/allocator/8230.cc: ...this.
5132 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
5133 typedef to use std::allocatore. Format.
5134 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
5136 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
5137 __throw_bad_alloc calls. Don't include <memory>.
5138 * include/ext/malloc_allocator.h: Remove <memory> include.
5139 * include/ext/new_allocator.h (new_allocator): Same.
5140 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
5141 declaration. Switch __alloc to _Alloc.
5142 * include/ext/hashtable.h: Remove __alloc.
5143 * include/backward/alloc.h: Only inject allocator, not
5144 implementation details.
5146 * include/ext/mt_allocator.h: Replace free with delete.
5148 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
5150 * src/globals_io.cc: Change to __gnu_internal namespace.
5151 * src/globals_locale.cc: Same.
5152 * src/locale_init.cc: Same.
5153 * src/ios_init.cc: Same.
5155 2004-01-28 Stefan Olsson <stefan@snon.net>
5157 * include/ext/mt_allocator.h: Replaced all malloc() calls with
5158 operator new(). Added support for the env variable
5159 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
5160 one in allocate() as well). Fix typos.
5162 2004-01-28 Paolo Carlini <pcarlini@suse.de>
5164 * include/bits/basic_string.h (_S_create(size_t,
5165 const _Alloc&): Change signature to take two size_type
5167 * include/bits/basic_string.tcc (_S_construct(_InIterator,
5168 _InIterator, const _Alloc&, input_iterator_tag)): Update
5170 (_S_construct(_InIterator, _InIterator, const _Alloc&,
5171 forward_iterator_tag)): Likewise.
5172 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
5173 (_M_mutate(size_type, size_type, size_type)): Don't
5174 implement the exponential growth policy, demand it to
5175 _S_create, update call and simplify.
5176 (_M_clone(const _Alloc&, size_type)): Likewise.
5177 (_S_create(size_type, size_type, const _Alloc&)): Implement
5178 the growth policy, simplify otherwise.
5180 * include/bits/basic_string.h (_Rep::operator[]): Tweak
5181 signature to take a size_type, consistently with the other
5184 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
5186 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
5187 delete declarations, add include and test variable.
5189 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
5191 * include/bits/codecvt.h, include/bits/locale_facets.h,
5192 include/bits/postypes.h, include/bits/stl_bvector.h,
5193 include/bits/stl_multiset.h, include/bits/stl_set.h,
5194 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
5195 include/std/std_complex.h: Document.
5197 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
5200 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
5201 iword/pword selector.
5202 (ios_base::iword, ios_base::pword): Use it.
5203 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
5204 iword or pword member on alloc failure.
5205 * testsuite/27_io/ios_base/storage/11584.cc: New test.
5207 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
5208 PJ Darcy <darcypj@us.ibm.com>
5210 * configure.host: Add support for *-tpf.
5211 * crossconfig.m4: Likewise.
5212 * configure: Regenerate.
5213 * config/os/tpf: New directory.
5214 * config/os/tpf/os_defines.h: New file.
5215 * config/os/tpf/ctype_base.h: Likewise.
5216 * config/os/tpf/ctype_inline.h: Likewise.
5217 * config/os/tpf/ctype_noninline.h: Likewise.
5219 2004-01-27 Paolo Carlini <pcarlini@suse.de>
5222 * include/bits/sstream.tcc: Guard use of extern template.
5224 2004-01-27 Paolo Carlini <pcarlini@suse.de>
5226 * include/bits/basic_string.tcc
5227 (basic_string(const basic_string&, size_type, size_type),
5228 basic_string(const basic_string&, size_type, size_type,
5229 const _Alloc&)): Avoid unnecessarily constructing iterators.
5231 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5233 * config/locale/generic/c_locale.cc: Fix throw messages
5234 to use the __N marker.
5235 * config/locale/gnu/c_locale.cc: Likewise.
5236 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
5238 * docs/html/17_intro/C++STYLE: Likewise.
5239 * include/bits/basic_ios.tcc: Likewise.
5240 * include/bits/fstream.tcc: Likewise.
5241 * include/bits/vector.tcc: Likewise.
5242 * include/ext/ropeimpl.h: Likewise.
5243 * include/std/std_bitset.h: Likewise.
5244 * src/ios.cc: Likewise.
5245 * src/locale.cc: Likewise.
5246 * src/localename.cc: Likewise.
5248 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5250 * include/bits/basic_string.h (_M_replace_aux): Use the
5251 __N marker in throw message.
5252 * include/bits/basic_string.tcc (assign(const _CharT*,
5253 size_type), insert(size_type, const _CharT*, size_type),
5254 replace(size_type, size_type, const _CharT*, size_type),
5255 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
5258 * include/bits/basic_string.h, include/bits/basic_string.tcc:
5259 Fold overlong lines, minor formatting changes.
5261 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5263 * include/bits/basic_string.h (replace(iterator, iterator,
5264 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
5265 (replace(iterator, iterator, const _CharT*)): Ditto.
5266 (replace(iterator, iterator, const _CharT*, size_type)):
5267 Add missing _GLIBCXX_DEBUG_PEDASSERT.
5269 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5271 * include/bits/basic_string.tcc (replace(size_type,
5272 size_type, const _CharT*, size_type)): Implement optimized
5273 in-place algorithm for non-overlapping ranges.
5274 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
5275 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
5277 * include/bits/basic_string.tcc (insert(size_type,
5278 const _CharT*, size_type)): Tweak slightly.
5280 2004-01-26 Andreas Schwab <schwab@suse.de>
5282 * config/locale/gnu/monetary_members.cc: Restore locale before
5283 rethrowing exception.
5285 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5287 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
5289 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
5292 * include/bits/basic_string.tcc: Very minor tweaks.
5294 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5296 * testsuite/performance/string_append.cc: Increase number
5299 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5301 * include/bits/basic_string.h (erase(size_type, size_type),
5302 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
5303 instead, thus avoiding redundant check for length_error.
5305 * include/bits/basic_string.h: Tweak some comments.
5307 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5309 * include/bits/basic_string.tcc (operator+(const _CharT*,
5310 const basic_string&)): No need to go through the append
5311 taking two iterators.
5313 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5315 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
5316 Revert last change to use std::min: machine language is worse.
5317 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
5318 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5319 (find_last_not_of(_CharT, size_type)): Ditto.
5321 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
5322 size_type)): Discard the value returned by _M_check.
5323 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
5324 (append(const basic_string&, size_type, size_type)): Ditto.
5325 (copy(_CharT*, size_type, size_type)): Ditto.
5326 (compare(size_type, size_type, const basic_string&)): Ditto.
5327 (compare(size_type, size_type, const basic_string&,
5328 size_type, size_type)): Ditto.
5329 (compare(size_type, size_type, const _CharT*)): Ditto.
5330 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5332 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5334 * include/bits/basic_string.h (insert(size_type,
5335 const basic_string&, size_type, size_type)): Define inline here.
5336 * include/bits/basic_string.tcc (insert(size_type,
5337 const basic_string&, size_type, size_type)): Move inline.
5339 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5341 * include/bits/basic_string.h (assign(const basic_string&,
5342 size_type, size_type)): Define inline here.
5343 (replace(size_type, size_type, const basic_string&,
5344 size_type, size_type)): Ditto.
5345 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5346 _InputIterator, __false_type)): Only declare.
5347 (_M_replace(iterator, iterator, _InputIterator,
5348 _InputIterator)): Remove.
5349 * include/bits/basic_string.tcc (assign(const basic_string&,
5350 size_type, size_type)): Move inline.
5351 (replace(size_type, size_type, const basic_string&,
5352 size_type, size_type)): Ditto.
5353 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5354 _InputIterator, __false_type)): Define, now does also what
5355 _M_replace did before.
5356 * src/string-inst.cc (_M_replace): Don't instantiate.
5358 * include/bits/basic_string.tcc (find(const _CharT*,
5359 size_type, size_type)): Tidy.
5360 (rfind(_CharT, size_type)): Ditto.
5361 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
5362 (find_first_not_of(_CharT, size_type)): Ditto.
5363 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5364 (find_last_not_of(_CharT, size_type)): Ditto.
5366 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5369 * include/debug/bitset (operator|=): Fix typo.
5370 * testsuite/23_containers/bitset/operations/13838.cc: New.
5372 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5374 * include/bits/basic_string.tcc (insert(size_type,
5375 const _CharT*, size_type __n)): Fix length_error check.
5376 (replace(size_type, size_type, const _CharT*, size_type):
5377 Ditto; call _M_replace_safe.
5378 (_M_replace_aux(size_type, size_type, size_type, _CharT):
5379 Fix length_error check.
5380 (_M_replace(iterator, iterator, _InputIterator,
5381 _InputIterator)): Ditto, tweak.
5382 (_M_replace_safe(size_type, size_type, const _CharT*,
5383 size_type)): Remove length_error check.
5385 * include/bits/basic_string.tcc (append(const basic_string&),
5386 append(const basic_string&, size_type, size_type)): Tweak
5389 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
5390 size_type)): If __n == 0 don't call traits::copy.
5392 2004-01-23 Stefan Olsson <stefan@snon.net>
5394 * include/ext/mt_allocator.h: Reduce lock contention.
5396 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5399 * include/bits/fstream.tcc (underflow): Remove unused
5401 * include/bits/streambuf_iterator.h (equal): Ditto.
5402 * include/bits/locale_facets.h (_M_convert_from_char):
5405 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5408 * config/linker-map.gnu (nan): Delete.
5409 * libmath/mathconf.h (NAN, nan): Delete.
5410 * linkage.m4 (nan): Don't check for it.
5411 * libmath/nan.c: Delete file.
5413 * config.h.in, configure: Regenerate.
5415 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5417 * include/bits/basic_string.h (push_back(_CharT)):
5418 Call _M_replace_aux.
5419 (insert(size_type, const basic_string&)): Trivial tweak.
5420 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
5421 (insert(iterator, _CharT)): Ditto.
5422 (erase(size_type, size_type)): Ditto.
5423 (erase(iterator)): Ditto.
5424 (erase(iterator, iterator)): Ditto.
5425 (replace(size_type, size_type, size_type, _CharT)): Ditto.
5427 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
5430 * testsuite/performance/allocator_map_thread.cc: New test.
5432 2004-01-22 Paolo Carlini <pcarlini@suse.de>
5434 * include/bits/locale_facets.tcc
5435 (money_put::do_put(..., long double)): Use the basic_string
5436 constructor for char arrays, not that for C-strings, to pass
5437 __digits to do_put(..., const string_type&): __ws isn't
5440 2004-01-22 Paolo Carlini <pcarlini@suse.de>
5442 * include/bits/basic_string.h (_M_replace_safe): Change
5443 signatures to take size_types and const _CharT*.
5444 (_M_replace_aux): Likewise, takes size_types instead of
5446 (append(size_type, _CharT)): Update call.
5447 (assign(size_type, _CharT)): Ditto.
5448 (replace(iterator, iterator, size_type, _CharT)): Ditto.
5449 (_M_replace_dispatch(iterator, iterator, _Integer,
5450 _Integer, __true_type)): Ditto.
5451 * include/bits/basic_string.tcc (assign(const _CharT*,
5453 (insert(size_type, const _CharT*, size_type)): Ditto.
5454 (replace(size_type, size_type, const _CharT*,
5456 (_M_replace(iterator, iterator, _InputIterator,
5457 _InputIterator)): Ditto.
5458 (append(const basic_string&)): Ditto.
5459 (append(const basic_string&, size_type, size_type): Ditto.
5460 (append(const _CharT*, size_type): Ditto.
5461 (_M_replace_safe, _M_replace_safe): Change definitions
5462 accordingly, simplify.
5463 * string-inst.cc (_M_replace_safe): Don't instantiate.
5465 2004-01-21 Paolo Carlini <pcarlini@suse.de>
5467 * include/bits/basic_string.tcc (append(const basic_string&)):
5468 Revert previous change.
5469 (append(const basic_string&, size_type, size_type)): Revert
5470 previous change, use _M_check and _M_limit.
5472 2004-01-21 Paolo Carlini <pcarlini@suse.de>
5474 * include/bits/basic_string.h (_M_check): Change to return
5475 a checked __pos and take an additional const char* argument.
5476 (_M_fold): Rename to _M_limit, change to return a size_type,
5477 corresponding to the __off limited to the actual length.
5478 (insert(size_type, size_type, _CharT)): Update call, call
5480 (insert(iterator, _CharT)): Call replace(iterator, iterator,
5481 size_type, _CharT) instead.
5482 (erase(size_type, size_type)): Update calls.
5483 (replace(size_type, size_type, size_type, _CharT)): Ditto.
5484 (substr(size_type, size_type)): Use _M_check.
5485 * include/bits/basic_string.tcc (basic_string(const basic_string&,
5486 size_type, size_type)): Update calls.
5487 (basic_string(const basic_string&, size_type, size_type,
5488 const _Alloc&)): Ditto.
5489 (assign(const basic_string&, size_type, size_type)): Use the
5490 new _M_check and _M_limit.
5491 (insert(size_type, const basic_string&, size_type, size_type):
5493 (insert(size_type, const _CharT*, size_type)): Ditto.
5494 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
5495 (replace(size_type, size_type, const basic_string&,
5496 size_type, size_type)): Ditto.
5497 (append(const basic_string&)): Ditto.
5498 (append(const basic_string&, size_type, size_type)): Ditto.
5499 (copy(_CharT*, size_type, size_type)): Ditto.
5500 (compare(size_type, size_type, const basic_string&)): Ditto.
5501 (compare(size_type, size_type, const basic_string&,size_type,
5503 (compare(size_type, size_type, const _CharT*)): Ditto.
5504 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5506 2004-01-19 Stefan Olsson <stefan@snon.net>
5508 * include/ext/mt_allocator.h: If a thread, when it dies, still has
5509 memory on it's freelist this memory is not returned to global
5510 list. Simplification of deallocate so that memory is always
5511 returned to the calling thread id's freelist instead of to
5512 global. Fix typos. Add volatile where appropriate.
5514 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
5516 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
5517 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
5518 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
5520 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5522 * src/debug.cc: Make sure all the names are prefixed with
5523 double (or single) underscore.
5525 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5527 * src/debug.cc: Trivial formatting change.
5529 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5531 * include/bits/basic_string.tcc (_S_construct(size_type,
5532 _CharT, const _Alloc&)): Remove redundant try/catch.
5533 (_M_mutate(size_type, size_type, size_type)): Ditto.
5534 (_M_clone(const _Alloc&, size_type)): Ditto.
5536 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5538 * include/bits/basic_string.h (c_str()): Simplify, due to
5539 21.3.4 the internal representation is always kept null-terminated.
5540 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
5541 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
5542 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
5545 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5547 * include/bits/basic_string.h (append(size_type, _CharT)):
5548 Moved inline, just call _M_replace_aux, no source iterators at
5549 risk of being clobbered.
5550 (assign(size_type, _CharT)): Call directly _M_replace_aux.
5551 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5552 input_iterator_tag)): Remove fifth unused argument.
5553 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5554 _InputIterator, __false_type)): Update call.
5555 * include/bits/basic_string.tcc (replace(size_type, size_type,
5556 const _CharT*, size_type)): Update call.
5557 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
5558 throw string literal.
5559 (_M_replace_safe(iterator, iterator, _ForwardIterator,
5560 _ForwardIterator)): Likewise.
5561 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5562 input_iterator_tag)): Remove fifth unused argument.
5563 (append(size_type __n, _CharT __c)): Move inline.
5564 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
5565 const C*, const C*, input_iterator_tag)): Remove fifth unused
5568 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
5570 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
5571 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
5573 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
5575 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
5578 2004-01-15 Stefan Olsson <stefan@snon.net>
5580 * include/ext/mt_allocator.h: Reuse thread id's as soon as
5581 possible by changing the behaviour of thread_freelist to do
5582 push_front when threads die instead of push_back.
5584 2004-01-14 Paolo Carlini <pcarlini@suse.de>
5586 * include/bits/locale_facets.h (struct __numpunct_cache):
5587 Add member _M_grouping_size, caching the length of _M_grouping.
5588 (__numpunct_cache<>::_M_cache): Assign the latter.
5589 (__verify_grouping): Move declaration...
5590 * include/bits/locale_facets.tcc (__verify_grouping):
5591 ... here, change signature to take a const char* and a size_t
5592 for the grouping; not a template anymore.
5593 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
5594 Likewise change signature and tweak consistently.
5595 (num_get::_M_extract_float, num_get::_M_extract_int,
5596 num_put::_M_insert_int, num_put::_M_insert_float,
5597 money_get::do_get(string_type&), money_get::do_put(string_type)):
5599 * config/locale/generic/numeric_members.cc
5600 (numpunct<>::_M_initialize_numpunct): Assign the new member.
5601 * config/locale/gnu/numeric_members.cc
5602 (numpunct<>::_M_initialize_numpunct): Likewise.
5603 * src/locale-inst.cc (__add_grouping): Tweak signature.
5604 (__verify_grouping): Don't instantiate, not a template anymore.
5606 * include/bits/locale_facets.h: Rename _M_truename_len ->
5607 _M_truename_size, _M_falsename_len -> _M_falsename_size.
5608 * include/bits/locale_facets.tcc: Likewise.
5609 * config/locale/generic/numeric_members.cc: Likewise.
5610 * config/locale/gnu/numeric_members.cc: Likewise.
5612 2004-01-14 Stefan Olsson <stefan@snon.net>
5614 * include/ext/mt_allocator.h: Fixups.
5615 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
5616 * testsuite/performance/allocator_thread.cc: Same.
5618 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
5620 * testsuite/performance/ifstream_extract_float.cc: Add higher
5622 * testsuite/performance/ofstream_insert_float.cc: Same.
5624 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5626 * src/locale-misc-inst.cc (__convert_from_v(long),
5627 __convert_from_v(unsigned long), __convert_from_v(long long),
5628 __convert_from_v(unsigned long long)): Remove, unused.
5630 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
5632 * testsuite/performance/ifstream_extract_float.cc: New.
5633 * testsuite/performance/ofstream_insert_float.cc: Float generation
5636 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
5637 * 20_util/auto_ptr/1.cc: ...this.
5638 * 20_util/auto_ptr/2.cc: Same.
5639 * 20_util/auto_ptr/3.cc: Same.
5640 * 20_util/auto_ptr/3946.cc: Same.
5641 * 20_util/auto_ptr/4.cc: Same.
5642 * 20_util/auto_ptr/5.cc: Same.
5643 * 20_util/auto_ptr/6.cc: Same.
5644 * 20_util/auto_ptr/7.cc: Same.
5645 * 20_util/auto_ptr/assign_neg.cc
5646 * 20_util/pairs.cc: Break into...
5647 * 20_util/pair/1.cc: ...this.
5648 * 20_util/pair/2.cc: Same.
5649 * 20_util/pair/3.cc: Same.
5650 * 20_util/pair/4.cc: Same.
5652 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5654 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
5655 Set correctly just basefield, the only group that matters.
5657 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5659 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
5660 (_Rope_rep_base): Inherit directly from the rope allocator;
5661 use rebinding instead of _Alloc_traits; pick up data member
5662 from _Rope_rep_alloc_base.
5663 (_Rope_alloc_base): Eliminate.
5664 (_Rope_base): Inherit directly from the rope allocator; use
5665 rebinding instead of _Alloc_traits; pick up data member from
5667 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
5668 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
5670 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5673 * include/bits/basic_string.tcc (compare(size_type, size_type,
5674 const _CharT*, size_type)): Implement correctly the resolution
5675 of DR 5: basically, s is a char array, -not- a C string.
5676 * include/bits/basic_string.h: Tweak some comments.
5677 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
5678 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
5680 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
5682 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
5685 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5687 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
5689 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
5692 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5694 * include/bits/locale_facets.h (struct __numpunct_cache):
5695 Add members _M_truename_len and _M_falsename_len, caching
5696 the lengths of _M_truename and _M_falsename.
5697 (__numpunct_cache<>::_M_cache): Assign the latter.
5698 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
5699 num_put::do_put(bool)): Use the new members, thus avoiding
5700 computing string lengths again and again.
5701 * config/locale/generic/numeric_members.cc
5702 (numpunct<>::_M_initialize_numpunct): Assign the new members.
5703 * config/locale/gnu/numeric_members.cc
5704 (numpunct<>::_M_initialize_numpunct): Likewise.
5706 2004-01-12 Mark Mitchell <mark@codesourcery.com>
5708 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
5709 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
5711 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
5712 and remove Cygwin XFAIL.
5713 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
5714 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
5715 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
5716 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
5718 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
5719 * testsuite/27_io/objects/char/7.cc: Likewise.
5720 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
5721 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
5722 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
5724 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
5726 * include/std/std_complex.h (std::complex<>::real): Return a
5727 reference. Add non-const overload.
5728 (std::complex<>::real): Likewise.
5729 (std::real): Likewise.
5730 (std::imag): Likewise.
5731 (std::operator+): Tidy.
5732 (std::operator-): Likewise.
5733 (std::operator*): Likewise.
5734 (std::operator/): Likewise.
5735 (std::operator>>): Likewise.
5737 2004-01-11 Paolo Carlini <pcarlini@suse.de>
5740 * include/bits/fstream.tcc (imbue): Exploit the external
5741 buffer to imbue 'on the fly' a new locale and convert its
5742 remainder with the new codecvt facet.
5743 (underflow): Tweak slightly to deal with this special case.
5744 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
5745 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
5746 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
5747 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
5748 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
5750 2004-01-10 Paolo Carlini <pcarlini@suse.de>
5752 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
5755 2004-01-10 Paolo Carlini <pcarlini@suse.de>
5758 * include/bits/locale_classes.h (class locale): Fix category
5760 * testsuite/22_locale/locale/13630.cc: Add.
5762 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
5764 * include/bits/locale_facets.h: Make a name really dependent. This
5765 will be needed when Core Issue 224 is implemented.
5767 2004-01-09 Paolo Carlini <pcarlini@suse.de>
5769 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
5770 * testsuite/performance/allocator_thread.cc: Likewise.
5772 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
5774 * crossconfig.m4: Add LFS, io bits to linux cross config.
5775 * acconfig.h: Remove obsolete bits, reorder.
5776 * config.h.in: Regenerate.
5780 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
5782 * include/bits/stl_list.h:
5783 * include/bits/list.tc:
5785 Performance enhancements for destructor, push_front(),
5786 push_back(), pop_front(), pop_back(), sort()
5787 Eliminated static_casts where possible.
5788 Moved code out of header files into new src/list.cc
5789 implementation file for library where possible.
5790 Remove inheritance from iterator class and create separate
5791 classes for non-constant and constant iterators.
5792 * include/bits/stl_tree.h (_Rb_tree class):
5794 Only erase contents in destructor.
5795 Eliminate unnecessary initialization in assignment operator.
5796 Optimize for the nominal case by not checking whether
5797 container is empty in clear().
5798 Re-order test in _M_insert() to improve performance.
5799 Move initialization of new node's left & right pointers to
5800 src/tree.cc to where new node's colour is initialized
5801 and to reduce the amount of inline code.
5802 Use _M_leftmost() and _M_end() to improve readability where
5804 Create separate classes for non-constant and constant
5805 iterators to clarify code, avoid extra template parameters and
5806 casting away constness.
5808 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
5810 * src/Makefile.am (sources): Add list.cc, tree.cc.
5811 * src/stl_tree.cc: Move to...
5812 * src/tree.cc: ...here.
5814 * config/linker-map.gnu: Tweaks.
5815 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
5816 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
5818 * bits/stl_vector.h: Column wrap comments.
5820 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
5822 (re-open) PR libstdc++/12658
5823 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
5824 (locale::global): Likewise.
5826 2004-01-07 Paolo Carlini <pcarlini@suse.de>
5828 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
5829 Remove redundant #include.
5830 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
5831 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
5832 re-enable normal testing.
5833 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
5835 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
5836 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
5838 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
5840 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
5842 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
5844 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
5846 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
5848 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
5850 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
5851 More properly, #include <locale>.
5852 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
5853 Remove redundant #include.
5854 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
5855 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
5856 redundant DejaGnu directive.
5857 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
5860 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
5861 Stefan Olsson <stefan@snon.net>
5863 * scripts/check_performance: Use -pthread.
5864 * testsuite/performance/allocator.cc: Tweaks, add list.
5865 * testsuite/performance/allocator_thread.cc: New.
5867 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
5869 * include/bits/locale_facets.h: Document public classes and
5871 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
5874 2004-01-06 Paolo Carlini <pcarlini@suse.de>
5876 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
5877 Remove redundant #includes.
5878 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
5880 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
5882 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
5883 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
5884 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
5885 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
5886 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
5887 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
5888 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
5889 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
5890 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
5891 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
5892 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
5893 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
5894 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
5895 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
5896 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
5898 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
5900 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
5902 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
5904 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
5906 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
5907 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
5908 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
5910 2004-01-04 Paolo Carlini <pcarlini@suse.de>
5912 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
5913 Remove redundant #includes.
5914 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
5916 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
5918 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
5920 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
5922 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
5924 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
5926 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
5928 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
5930 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
5932 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
5934 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
5936 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
5939 2004-01-04 Mark Mitchell <mark@codesourcery.com>
5942 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
5944 * testsuite/27_io/basic_fstream/4.cc: Likewise.
5945 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
5946 * testsuite/27_io/basic_ios/4.cc: Likewise.
5947 * testsuite/27_io/basic_iostream/4.cc: Likewise.
5948 * testsuite/27_io/basic_istream/4.cc: Likewise.
5949 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
5950 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
5951 * testsuite/27_io/basic_ostream/4.cc: Likewise.
5952 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
5953 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
5954 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
5956 2004-01-04 Paolo Carlini <pcarlini@suse.de>
5958 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
5959 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
5960 always use double underscored names.
5961 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
5963 * include/bits/locale_facets.h (struct __numpunct_cache):
5964 Dimension _M_atoms_out and _M_atoms_in one position smaller.
5965 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out