1 2004-11-16 Jonathan Wakely <redi@gcc.gnu.org>
3 * docs/html/19_diagnostics/howto.html: Document change from
4 _GLIBCPP_CONCEPT_CHECKS to _GLIBCXX_CONCEPT_CHECKS in 3.4.
6 2004-11-16 Matthias Klose <doko@debian.org>
8 * docs/doxygen/user.cfg.in: Set HAVE_DOT to NO.
10 2004-11-16 Matthias Klose <doko@debian.org>
12 * Makefile.am (doxygen, doxygen-maint, doxygen-man): Use host_alias
13 instead of build_alias.
14 * docs/doxygen/run_doxygen: Likewise.
15 * docs/doxygen/user.cfg.in: Likewise.
16 * Makefile.in: Regenerate.
18 2004-11-15 Paolo Carlini <pcarlini@suse.de>
20 * include/bits/streambuf.tcc (__copy_streambufs): Provide
21 a generic version of the function, not using the protected
22 members of basic_streambuf.
23 * include/std/std_streambuf.h (__copy_streambufs): Declare
24 optimized specializations for char and wchar_t.
25 * src/streambuf.cc: New file, define the latter.
26 * src/Makefile.am: Add.
27 * src/Makefile.in: Regenerate.
29 2004-11-15 Matthias Klose <doko@debian.org>
31 * docs/doxygen/run_doxygen: Add --build_alias option,
32 substitute it in docs/doxygen/user.cfg.in.
33 * docs/doxygen/user.cfg.in: Use build_alias.
34 * Makefile.am: Pass --build_alias to run_doxygen
35 * Makefile.in: Regenerate.
37 2004-11-15 Benjamin Kosnik <bkoz@redhat.com>
39 * testsuite/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.4.
41 2004-11-15 Paolo Carlini <pcarlini@suse.de>
43 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 33.
45 2004-11-14 Paolo Carlini <pcarlini@suse.de>
47 * include/bits/streambuf_iterator.h (istreambuf_iterator::_M_get):
48 Slightly tweak for clarity (also leads to measurably better code).
50 2004-11-12 Andrew Pinski <pinskia@physics.uc.edu>
53 * testsuite/lib/libstdc++.exp: Set LC_ALL and LANG to C.
55 2004-11-09 Paolo Carlini <pcarlini@suse.de>
57 * include/bits/locale_facets.tcc (time_get<>::do_get_weekday,
58 time_get<>::do_get_monthname): Absolutely avoid dereferencing
61 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
64 2004-11-08 Benjamin Kosnik <bkoz@redhat.com>
65 Doug Gregor <dgregor@cs.indiana.edu>
68 * src/debug.cc : Just use one mutex.
70 2004-11-08 Benjamin Kosnik <bkoz@redhat.com>
72 * configure.ac (libtool_VERSION): To 6:4:0.
73 * configure: Regenerate.
75 * config/linker-map.gnu: Slide new symbols into GLIBCXX_3.4.4.
77 * docs/doxygen/user.cfg.in: Add more extension files.
79 2004-11-08 Paolo Carlini <pcarlini@suse.de>
81 * include/bits/streambuf_iterator.h (class istreambuf_iterator):
82 Consistently use _M_c to cache the current char, i.e., not only
83 when operator++(int) is involved; change _M_c to mutable.
84 (_M_get()): Always save the return value of _M_sbuf->sgetc() into
86 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Fix
88 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
89 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
90 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
92 2004-11-08 Paolo Carlini <pcarlini@suse.de>
94 * include/bits/istream.tcc (getline(char_type*, streamsize,
95 char_type), ignore(streamsize), ignore(streamsize, int_type)):
96 Restore a generic version of the functions, not using the
97 protected members of basic_streambuf.
98 * include/std/std_istream.h (getline(char_type*, streamsize,
99 char_type), ignore(streamsize), ignore(streamsize, int_type)):
100 Declare optimized specializations for char and wchar_t.
101 * src/istream.cc: New file, define the latter.
102 * src/Makefile.am: Add.
103 * src/Makefile.in: Regenerate.
105 2004-11-07 Paolo Carlini <pcarlini@suse.de>
107 * testsuite/performance/27_io/ifstream_getline-2.cc: New.
109 2004-11-05 Benjamin Kosnik <bkoz@redhat.com>
113 * docs/doxygen/filter: Remove.
114 * docs/doxygen/filter.sed: Remove.
115 * docs/doxygen/mainpage.html: Add link to functions.
116 * docs/doxygen/run_doxygen: Changes due to new source filtering.
117 * docs/doxygen/user.cfg.in: Update to doxygen 1.3.9.1, tweak.
118 * include/bits/allocator.h: Tweaks for doxygen.
119 * include/bits/char_traits.h: Same.
120 * include/bits/codecvt.h: Same.
121 * include/bits/concurrence.h: Same.
122 * include/bits/locale_facets.h: Same.
123 * include/ext/array_allocator.h: Same.
124 * include/ext/debug_allocator.h: Same.
125 * include/ext/malloc_allocator.h: Same.
126 * include/ext/mt_allocator.h: Same.
127 * include/ext/new_allocator.h: Same.
128 * include/ext/pool_allocator.h: Same.
129 * include/ext/stdio_sync_filebuf.h: Same.
130 * include/std/std_memory.h: Same.
131 * include/tr1/array: Same.
132 * include/tr1/tuple: Same.
133 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
134 * config/os/gnu-linux/ctype_base.h: Same.
136 2004-11-04 Paolo Carlini <pcarlini@suse.de>
138 * include/bits/locale_facets.tcc (num_get<>::do_get(bool&)):
139 Evaluate __beg == __end the exact strict minimum number of times.
141 2004-11-03 Jonathan Wakely <redi@gcc.gnu.org>
143 * include/bits/stl_numeric.h (partial_sum, adjacent_difference):
144 Avoid dereferencing two times __first in the prologue.
146 2004-11-03 Paolo Carlini <pcarlini@suse.de>
148 * include/bits/stl_numeric.h: Trivial formatting fixes.
150 2004-11-03 Benjamin Kosnik <bkoz@redhat.com>
152 * include/bits/c++config: Spacing.
153 * libsupc++/del_op.cc: Include c++config.h.
154 * libsupc++/del_opnt.cc: Same.
155 * libsupc++/del_opv.cc: Same.
156 * libsupc++/del_opvnt.cc: Same.
157 * libsupc++/new_op.cc: Same.
158 * libsupc++/new_opnt.cc: Same.
159 * libsupc++/new_opv.cc: Same.
160 * libsupc++/new_opvnt.cc: Same.
162 2004-11-03 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
164 * config/os/bsd/darwin/os_defines.h
165 (_GLIBCXX_WEAK_DEFINITION): Define.
166 * include/bits/c++config (_GLIBCXX_WEAK_DEFINITION): Define.
167 * libsupc++/del_op.cc (operator delete(void *)): Use
168 _GLIBCXX_WEAK_DEFINITION.
169 * libsupc++/del_opnt.cc
170 (operator delete(void *, const std::nothrow_t&)): Same.
171 * libsupc++/del_opv.cc (operator delete[](void *)): Same.
172 * libsupc++/del_opvnt.cc
173 (operator delete[](void *, const std::nothrow_t&)): Same.
174 * libsupc++/new_op.cc (operator new(std::size_t)): Same.
175 * libsupc++/new_opnt.cc
176 (operator new(std::size_t, const std::nothrow_t&)): Same
177 * libsupc++/new_opv.cc (operator new[](std::size_t)): Same.
178 * libsupc++/new_opvnt.cc
179 (operator new[](std::size_t, const std::nothrow_t&)): Same.
181 2004-11-02 Paolo Carlini <pcarlini@suse.de>
183 * include/bits/locale_facets.tcc (num_get<>::_M_extract_int):
184 Evaluate *__beg the exact strict minimum number of times; likewise
185 for __beg != __end; slightly simplify main parsing loop.
187 2004-11-02 Benjamin Kosnik <bkoz@redhat.com>
188 Lothar Werzinger <lothar@xcerla.com>
191 * src/debug.cc: Include concurrence, use mutexes.
192 (_Safe_iterator_base::_M_attach): Here.
193 (_Safe_iterator_base::_M_detach): Here.
195 2004-11-02 Benjamin Kosnik <bkoz@redhat.com>
198 * include/bits/ios_base.h : Add enum values.
199 * testsuite/testsuite_hooks.h (bitmask_operators): Add function.
200 * testsuite/27_io/ios_base/types/fmtflags/bitmask_operators.cc: New.
201 * testsuite/27_io/ios_base/types/fmtflags/case_label.cc: New.
202 * testsuite/27_io/ios_base/types/iostate/bitmask_operators.cc: New.
203 * testsuite/27_io/ios_base/types/iostate/case_label.cc: New.
204 * testsuite/27_io/ios_base/types/openmode/bitmask_operators.cc: New.
205 * testsuite/27_io/ios_base/types/openmode/case_label.cc: New.
206 * testsuite/27_io/ios_base/types/seekdir/case_label.cc: New.
208 * config/io/c_io_stdio.h (__ios_flags): Mark deprecated.
211 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
212 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
214 2004-11-01 Momchil Velikov <velco@fadata.bg>
217 * libsupc++/eh_globals.cc (get_globals_dtor): Delete unhandled
219 * testsuite/thread/18185.cc: New.
221 2004-11-01 Chris Jefferson <chris@bubblescope.net>
224 * include/tr1/tuple (get(pair)): Change occurrences of _I to _Int.
225 (get(const pair)): Likewise.
227 2004-11-01 Paolo Carlini <pcarlini@suse.de>
229 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
230 Evaluate *__beg the exact strict minimum number of times; likewise
231 for __beg != __end; in the main parsing loop, call ++__beg in two
232 places only. The former is also a correctness issue, because,
233 according to the standard (22.2.2.1.2, Stage 2), 'in' shall be
234 dereferenced only one time for each increment.
236 2004-10-31 Benjamin Kosnik <bkoz@redhat.com>
239 * testsuite/23_containers/set/modifiers/16728.cc: New.
241 2004-10-30 Paolo Carlini <pcarlini@suse.de>
243 * include/ext/bitmap_allocator.h (allocate(size_type)): Minor tweak.
245 * testsuite/ext/bitmap_allocator/check_delete.cc: New.
246 * testsuite/ext/bitmap_allocator/check_new.cc: Likewise.
248 2004-10-29 Geoffrey Keating <geoffk@apple.com>
250 * configure.host (darwin*): Set os_include_dir to a separate directory
252 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add a new C locale kind,
254 * config/locale/darwin/ctype_members.cc: New.
255 * config/os/bsd/darwin/ctype_base.h: New.
256 * config/os/bsd/darwin/ctype_inline.h: New.
257 * config/os/bsd/darwin/ctype_noninline.h: New.
258 * config/os/bsd/darwin/os_defines.h: New.
260 * testsuite/22_locale/locale/cons/12658_thread-1.cc: Only xfail
263 2004-10-29 Chris Jefferson <chris@bubblescope.net>
265 * include/bit/stl_algo.h (find_first_of(,,,,pred)):
266 Remove invalid EqualOpConcept.
267 * testsuite/25_algorithms/find_first_of/concept_check_1.cc: New.
269 2004-10-29 Benjamin Kosnik <bkoz@redhat.com>
271 * testsuite/testsuite_allocator.h (check_delete): New.
272 (check_new): Simplify.
273 * testsuite/ext/array_allocator/check_delete.cc: New.
274 * testsuite/ext/array_allocator/check_new.cc: Simplify.
275 * testsuite/ext/debug_allocator/check_delete.cc: New.
276 * testsuite/ext/debug_allocator/check_new.cc: Simplify.
277 * testsuite/ext/malloc_allocator/check_delete.cc: New.
278 * testsuite/ext/malloc_allocator/check_new.cc: Simplify.
279 * testsuite/ext/mt_allocator/check_delete.cc: New.
280 * testsuite/ext/mt_allocator/check_new.cc: Simplify.
281 * testsuite/ext/new_allocator/check_delete.cc: New.
282 * testsuite/ext/new_allocator/check_new.cc: Simplify.
283 * testsuite/ext/pool_allocator/check_delete.cc: New.
284 * testsuite/ext/pool_allocator/check_new.cc: Simplify.
286 2004-10-28 Chris Jefferson <chris@bubblescope.net>
289 * include/tr1/tuple: Fix, change formatting.
291 2004-10-28 Benjamin Kosnik <bkoz@redhat.com>
293 * include/ext/mt_allocator.h (__common_pool_policy): Add template
294 template parameter for pool class type.
295 (__per_type_pool_policy): Same.
296 (__mt_allocator): Don't inherit policy. Qualify policy_type calls.
297 * testsuite/ext/mt_allocator/check_deallocate_null.cc: Fix.
298 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: Same.
299 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
300 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
301 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
302 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
303 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Same.
304 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
305 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
306 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
307 * testsuite/ext/mt_allocator/instantiate.cc: Same.
308 * testsuite/ext/mt_allocator/tune-1.cc: Same.
309 * testsuite/ext/mt_allocator/tune-2.cc: Same.
310 * testsuite/ext/mt_allocator/tune-3.cc: Same.
311 * testsuite/ext/mt_allocator/tune-4.cc: Same.
313 2004-10-28 Paolo Carlini <pcarlini@suse.de>
315 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
316 Cache *__beg in __c when parsing exponent sign too.
317 (num_get<>::do_get(..., bool&)): Cache *__beg.
318 (money_get<>::_M_extract)): Likewise, in money_base::value.
320 2004-10-27 Paolo Carlini <pcarlini@suse.de>
322 * include/bits/basic_string.h (assign(const basic_string&)):
324 * include/bits/basic_string.tcc: ... here.
326 2004-10-27 Paolo Carlini <pcarlini@suse.de>
328 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
330 * include/bits/basic_string.tcc: ... here.
332 2004-10-26 Paolo Carlini <pcarlini@suse.de>
334 * include/bits/basic_string.h (append(const basic_string&),
335 append(size_type, _CharT)): Move out of line...
336 * include/bits/basic_string.tcc: ... here.
338 2004-10-26 Paolo Carlini <pcarlini@suse.de>
340 * include/bits/basic_string.h (erase(size_type, size_type),
341 erase(iterator), erase(iterator, iterator)): Call _M_mutate
342 instead of _M_replace_safe, equivalent when the fourth argument
345 2004-10-26 Benjamin Kosnik <bkoz@redhat.com>
347 * include/ext/array_allocator.h (array::allocate): Check for valid
348 array object, use its size member function directly.
349 * testsuite/ext/array_allocator/3.cc: New.
350 * docs/html/20_util/allocator.html: Add docs.
352 2004-10-25 Geoffrey Keating <geoffk@apple.com>
354 * configure.host (darwin*): Build libstdc++ single module
356 * libsupc++/new_op.cc (new): Make weak.
357 * libsupc++/new_opnt.cc (new): Make weak.
358 * libsupc++/new_opv.cc (new): Make weak.
359 * libsupc++/new_opvnt.cc (new): Make weak.
360 * libsupc++/delete_op.cc (delete): Make weak.
361 * libsupc++/delete_opnt.cc (delete): Make weak.
362 * libsupc++/delete_opv.cc (delete): Make weak.
363 * libsupc++/delete_opvnt.cc (delete): Make weak.
365 2004-10-25 Benjamin Kosnik <bkoz@redhat.com>
367 * testsuite/Makefile.am (GLIBCXX_INCLUDES): Add.
368 (AUTOMAKE_OPTIONS): Add nostdinc.
369 * testsuite/Makefile.in: Regenerate.
370 * scripts/testsuite_flags.in (build-includes): Remove redundant
371 search for libsupc++.
372 * fragment.am: Clean.
374 2004-10-25 Benjamin Kosnik <bkoz@redhat.com>
376 * include/Makefile.am (tr1_headers): Add tuple.
377 * include/Makefile.in: Regenerate.
379 2004-10-25 Chris Jefferson <chris@bubblescope.net>
381 * include/tr1/tuple: Implementation of tuple from library TR.
382 * testsuite/tr1/6_containers/tuple/tuple_element.cc: New.
383 * testsuite/tr1/6_containers/tuple/tuple_size.cc: New.
384 * testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc:
386 * testsuite/tr1/6_containers/tuple/cons/assignment.cc: New.
387 * testsuite/tr1/6_containers/tuple/cons/big_tuples.cc: New.
388 * testsuite/tr1/6_containers/tuple/cons/constructor.cc: New.
389 * testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc:
391 * testsuite/tr1/6_containers/tuple/creation_functions/tie.cc: New.
392 * testsuite/tr1/6_containers/tuple/element_access/get.cc: New.
394 2004-10-25 Paolo Carlini <pcarlini@suse.de>
396 * include/bits/basic_string.h (_Rep::_M_is_safe): Move to
397 basic_string as _M_disjunct, adjust to take only __s.
398 * include/bits/basic_string.tcc: Adjust consistently callers.
400 2004-10-25 Paolo Carlini <pcarlini@suse.de>
402 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
403 Adjust bit missing from the previous commit.
405 2004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
408 * testsuite/lib/libstdc++.exp: Accept more than one multilib libgcc.
410 2004-10-25 Paolo Carlini <pcarlini@suse.de>
412 * include/bits/basic_string.h (_Rep::_M_is_safe, _M_check_length,
413 _M_move, _M_copy, _M_assign): New, use througout.
414 (operator+=(_CharT)): Define in terms of push_back.
415 (append(const basic_string&)): Define here, inline, and simplify,
416 don't use the full _M_replace_safe.
417 (append(size_type, _CharT)): Likewise, don't use _M_replace_aux.
418 (push_back): Likewise.
419 (assign(const basic_string&)): Define here, inline.
420 * include/bits/basic_string.tcc (append(const _CharT* s, size_type):
421 Fix: when s points inside the _Rep, upon reallocation (reserve) we
422 were copying from deallocated memory.
423 (append(const basic_string&, size_type, size_type)): Simplify,
424 don't use _M_replace_safe.
425 (replace(size_type, size_type, const _CharT*, size_type)): Slightly
428 * testsuite/21_strings/basic_string/append/char/2.cc: New.
429 * testsuite/21_strings/basic_string/append/char/3.cc: Likewise.
430 * testsuite/21_strings/basic_string/append/wchar_t/2.cc: Likewise.
431 * testsuite/21_strings/basic_string/append/wchar_t/3.cc: Likewise.
433 * testsuite/21_strings/basic_string/assign/char/3.cc: Remove junk.
434 * testsuite/21_strings/basic_string/assign/wchar_t/3.cc: Likewise.
436 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
438 * testsuite/ext/mt_allocator/deallocate_global-2.c:
439 s/value_t/value_type/. s/traits_t/traits_type/.
440 s/policy_t/policy_type/. s/allocator_t/allocator_type/.
441 s/string_t/string_type/. s/list_t/list_type/.
442 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Likewise.
443 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Likewise.
444 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Likewise.
445 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Likewise.
446 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Likewise.
447 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Likewise.
448 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Likewise.
450 2004-10-21 Benjamin Kosnik <bkoz@redhat.com>
452 * include/tr1/array (array): Make safe for zero-sized arrays.
453 (array::end): Return one past the end.
454 (array::at): Use __throw_out_of_range, include functexcept.h.
455 (operator==): Implement.
461 * testsuite/tr1/6_containers/array/capacity/(empty.cc,
462 max_size.cc, size.cc): New.
463 * testsuite/tr1/6_containers/array/comparison_operators/(equal.cc,
464 greater.cc, greater_or_equal.cc, less.cc, less_or_equal.cc,
466 * testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc:
468 * testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc:
470 * testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc: New.
471 * testsuite/tr1/6_containers/array/requirements/(contiguous.cc,
472 instantiate, typedefs, zero_size_arrays): New.
474 2004-10-21 Paolo Carlini <pcarlini@suse.de>
475 Benjamin Kosnik <bkoz@redhat.com>
477 * include/bits/basic_string.h (_M_set_length_and_sharable): New.
478 * include/bits/basic_string.tcc (_S_construct, assign(const _CharT*,
479 size_type), _M_mutate, _M_clone): Use it.
480 (_Rep::_S_create): Don't set/call _M_length/_M_set_sharable here.
482 2004-10-21 Paolo Carlini <pcarlini@suse.de>
483 Dhruv Matani <dhruvbird@gmx.net>
484 Nathan Myers <ncm@cantrip.org>
486 * include/bits/vector.tcc (_M_insert_aux, _M_fill_insert,
487 _M_range_insert): Check at the outset that we are not trying
488 to exceed max_size, then deal properly with __len overflows.
489 * testsuite/23_containers/vector/modifiers/insert/1.cc: New.
491 * testsuite/testsuite_allocator.h: Remove redundant include.
493 2004-10-20 Paolo Carlini <pcarlini@suse.de>
495 * include/ext/bitmap_allocator.h (allocate): Throw std::bad_alloc
497 * include/ext/malloc_allocator.h (allocate): Likewise.
498 * include/ext/mt_allocator.h (allocate): Likewise.
499 * include/ext/new_allocator.h (allocate): Likewise.
500 * include/ext/array_allocator.h: Use __throw_bad_alloc().
501 * include/ext/pool_allocator.h: Use __builtin_expect.
502 * testsuite/ext/array_allocator/check_allocate_max_size.cc: New.
503 * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc: Likewise.
504 * testsuite/ext/malloc_allocator/check_allocate_max_size.cc: Likewise.
505 * testsuite/ext/mt_allocator/check_allocate_max_size.cc: Likewise.
506 * testsuite/ext/new_allocator/check_allocate_max_size.cc: Likewise.
507 * testsuite/ext/pool_allocator/check_allocate_max_size.cc: Likewise.
508 * testsuite/testsuite_allocator.h (check_allocate_max_size): New test.
510 2004-10-19 Paolo Carlini <pcarlini@suse.de>
512 * testsuite/performance/20_util/allocator/list_sort_search.cc:
513 Include <ext/new_allocator.h>.
514 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
516 2004-10-18 Paolo Carlini <pcarlini@suse.de>
518 * include/bits/basic_string.tcc (_M_mutate): Do not reallocate
519 unnecessarily when _M_rep() == &_S_empty_rep() and __new_size
520 == capacity() (== 0): is ok to just leave everything unchanged.
522 * include/bits/basic_string.h: Minor formatting fixes.
523 * include/bits/basic_string.tcc: Likewise.
525 2004-10-17 Benjamin Kosnik <bkoz@redhat.com>
527 * include/ext/mt_allocator.h (__pool::_M_get_align): New.
528 (__mt_alloc::allocate): Use it.
529 * src/mt_allocator.cc (__pool::_M_reclaim_block): Use it.
530 (__pool::_M_reserve_block): Simplify block allocation.
532 2004-10-17 Dhruv Matani <dhruvbird@gmx.net>
533 Paolo Carlini <pcarlini@suse.de>
535 * include/ext/bitmap_allocator.h: Change unsigned int -> size_t: this
536 makes the code 64-bit correct and also fixes (together with using at
537 the beginning a bitmap 2 * size_t bytes wide) alignment issues: now
538 8 is guaranteed, easily tunable to 16 via _BALLOC_ALIGN_BYTES.
539 Fix pthread-rope7.cc fail by nulling out __mini_vector<> destructor.
540 * src/bitmap_allocator.cc: Change to size_t.
541 * config/linker-map.gnu: Adjust.
543 2004-10-16 Benjamin Kosnik <bkoz@redhat.com>
545 * include/tr1/array: Don't use layout_type.
547 2004-10-16 Sashan Govender <sashang@gmail.com>
549 * include/tr1/array (array::end const): Fix casting from iterator
552 2004-10-15 Paolo Carlini <pcarlini@suse.de>
554 * include/ext/bitmap_allocator.h: Qualify ::operator delete.
555 * src/bitmap_allocator.cc: Likewise.
556 * src/mt_allocator.cc: Use ::operator delete, not delete,
557 consistently with ::operator new.
559 * include/ext/bitmap_allocator.h (deallocate): Check for null
561 * testsuite/ext/bitmap_allocator/check_deallocate_null.cc: New.
562 * testsuite/testsuite_allocator.h (check_deallocate_null): Add test.
564 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
566 * include/ext/mt_allocator.h (__mt_alloc::deallocate): Check for
568 * include/ext/pool_allocator.h (debug_allocator::deallocate):
570 * include/ext/debug_allocator.h (debug_allocator::deallocate):
571 Throw exceptions, don't abort.
572 * include/ext/array_allocator.h
573 (array_allocator_base::deallocate): Remove unused parameters.
574 * testsuite/testsuite_allocator.h (check_deallocate_null): New.
575 * testsuite/ext/mt_allocator/check_deallocate_null.cc: New.
576 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: New.
577 * testsuite/ext/array_allocator/check_deallocate_null.cc: New.
578 * testsuite/ext/debug_allocator/check_deallocate_null.cc: New.
579 * testsuite/ext/malloc_allocator/check_deallocate_null.cc: New.
580 * testsuite/ext/new_allocator/check_deallocate_null.cc: New.
581 * testsuite/ext/pool_allocator/check_deallocate_null.cc: New.
583 * testsuite/testsuite_allocator.h (check_new): Add instance argument.
584 * testsuite/ext/array_allocator/check_new.cc: New.
586 2004-10-14 Paolo Carlini <pcarlini@suse.de>
588 * include/ext/bitmap_allocator.h (bitmap_allocator::_Alloc_block):
589 Rename __unused to __M_unused.
591 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
593 * testsuite/ext/headers.cc: Add includes, compile only.
594 * testsuite/ext/hash_map.cc: Move to...
595 * testsuite/ext/hash_map/1.cc: ...here.
596 * testsuite/ext/14648.cc: Move to...
597 * testsuite/ext/hash_map/14648.cc: ...here.
598 * testsuite/ext/hash_map/instantiate.cc: Add.
599 * testsuite/ext/hash_set.cc: Move to...
600 * testsuite/ext/hash_set/1.cc: ...here.
601 * testsuite/ext/hash_set_explicit_instantiation.cc: Move to...
602 * testsuite/ext/hash_set/instantiate.cc: ...here.
603 * testsuite/ext/hash_check_construct_destroy.cc: Move to...
604 * testsuite/ext/hash_set/check_construct_destroy.cc: ...here.
605 * testsuite/ext/slist_check_construct_destroy.cc: Move to...
606 * testsuite/ext/slist/check_construct_destroy.cc: ...here.
607 * testsuite/ext/slist_explicit_instantiation.cc: Move to...
608 * testsuite/ext/slist/instantiate.cc: ...here.
610 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
612 * include/ext/mt_allocator.h: Tweaks.
613 * src/mt_allocator.cc: Same.
615 2004-10-14 Dhruv Matani <dhruvbird@gmx.net>
617 * ext/bitmap_allocator.h: Clean-up add/remove functions.
618 * src/bitmap_allocator.cc: New file. Contains the out-of-line
619 function definitions, static initialization of variables, and
620 explicit instantiations needed for the allocator.
621 * src/Makefile.am: Add.
622 * src/Makefile.in: Regenerate.
623 * config/linker.map.gnu: Add the necessary symbols.
625 2004-10-13 Paolo Carlini <pcarlini@suse.de>
627 * include/bits/basic_string.tcc (_S_create): Use consistently
628 the exponential policy, simplify.
629 * testsuite/performance/21_strings/string_append_2.cc: New.
631 * include/ext/array_allocator.h (allocate): Fix bad_alloc check.
632 * testsuite/ext/array_allocator/2.cc: Fix wrt 64-bit archs (in
633 that case sizeof(_Rep) == 24).
635 2004-10-12 Paolo Carlini <pcarlini@suse.de>
638 * include/bits/stl_tree.h (erase(iterator, iterator)): Revert
639 wrong commit of 2004-10-07.
641 2004-10-12 Scott Snyder <snyder@fnal.gov>
644 * testsuite/23_containers/set/modifiers/17948.cc: New.
646 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
648 * include/bits/stl_deque.h: Correct for over-long lines.
650 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
653 * include/ext/mt_allocator.h (__pool::_M_destroy): New.
654 * src/mt_allocator.cc (__pool::~__pool): Change definitions to
656 * acconfig.h: Remove _GLIBCXX_USE___CXA_ATEXIT.
657 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): Remove.
658 * configure.ac: Remove call to GLIBCXX_ENABLE_CXA_EXIT.
659 * configure: Regenerate.
660 * config/linker-map.gnu: Tweak exports.
661 * docs/html/ext/mt_allocator.html: Update docs.
662 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Fix.
663 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Fix.
664 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Fix.
665 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Fix.
666 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Fix.
667 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Fix.
668 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Fix.
669 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Fix.
671 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
673 PR libstdc++/16614 continued.
674 * include/ext/mt_allocator.h
675 (__per_type_pool_policy::_S_get_pool): Use saner defaults based on
676 specific type characteristics.
677 (__pool_base): Add constructor that takes a _Tune argument.
679 * testsuite/ext/mt_allocator/tune-2.cc: Adjust default.
680 * testsuite/ext/mt_allocator/tune-4.cc: Same.
681 * testsuite/ext/mt_allocator/tune-3.cc: Same.
683 2004-10-11 Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
684 Paolo Carlini <pcarlini@suse.de>
686 * src/pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk):
687 Deal properly with exceptions thrown by ::operator new(size_t).
688 * testsuite/ext/pool_allocator/allocate_chunk.cc: New.
690 * include/ext/pool_allocator.h: Include <cstdlib>.
692 2004-10-10 Benjamin Kosnik <bkoz@redhat.com>
694 * include/bits/functexcept.h: Add guards.
696 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Tweak test.
697 * configure: Regenerate.
699 2004-10-10 Paolo Carlini <pcarlini@suse.de>
701 * config/locale/gnu/monetary_members.cc (_S_construct_pattern):
702 Give __ret a default value, thus avoiding spurious warnings.
704 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Open either
705 words or linux.words, otherwise exit.
706 * testsuite/performance/27_io/ifstream_getline.cc: Slighlty tweak.
708 2004-10-09 Paolo Carlini <pcarlini@suse.de>
710 * include/std/std_memory.h (__get_temporary_buffer): Don't use
711 INT_MAX, prefer numeric_limits<ptrdiff_t>::max(), ok on 64-bit
713 * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust dg-error
716 2004-10-08 Benjamin Kosnik <bkoz@redhat.com>
718 * acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
719 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): New.
720 * configure.ac: Call GLIBCXX_ENABLE_CXA_EXIT.
721 * configure: Regenerate.
722 * src/mt_allocator.cc (__pool::~__pool): Make conditional on
723 _GLIBCXX_USE___CXA_ATEXIT macro.
724 * docs/html/ext/mt_allocator.html: Add note about deallocation.
725 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Guard checks
726 with _GLIBCXX_USE___CXA_ATEXIT.
727 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
728 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
729 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
730 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
731 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
732 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
733 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
735 2004-10-07 Phil Edwards <phil@codesourcery.com>
737 * testsuite/lib/libstdc++.exp: Update list of undefined functions.
739 2004-10-07 Paolo Carlini <pcarlini@suse.de>
741 * include/bits/list.tcc (operator=): Avoid iterator postincrement.
742 * include/bits/stl_tree.h (erase(iterator, iterator)): Likewise.
744 2004-10-07 Benjamin Kosnik <bkoz@redhat.com>
747 * include/tr1/array: New.
748 * include/Makefile.am (tr1_headers): New.
750 (install-headers): New.
751 (allstamped): Add stamp-tr1.
753 * include/ext/array_allocator.h: New.
754 * include/Makefile.am: Add.
755 * include/Makefile.in: Regenerate.
756 * testsuite/ext/array_allocator/1.cc: New.
757 * testsuite/ext/array_allocator/2.cc: New.
759 2004-10-07 Richard Earnshaw <rearnsha@arm.com>
761 * testsuite/lib/libstdc++.exp (libstdc++_exit): New proc.
763 2004-10-07 Roger Sayle <roger@eyesopen.com>
766 * configure.ac: Newlib does not provide strtold.
767 * configure: Regenerate.
769 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
771 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
772 (GLIBCXX_CONFIGURE_TESTSUITE): Use it.
773 * configure: Regenerated.
774 * testsuite/Makefile.am (CLEANFILES): Add TEST for
775 check-performance executables.
778 * testsuite/Makefile.in: Regenerate.
779 * scripts/create_testsuite_files: Filter thread tests.
781 * testsuite/thread/pthread1.cc: Remove macro conditionals: this
782 file will only be run by thread enabled configurations.
783 * testsuite/thread/pthread7-rope.cc: Same, add rope_type typedef.
784 * testsuite/thread/pthread6.cc: Same.
785 * testsuite/thread/pthread5.cc: Same.
786 * testsuite/thread/pthread4.cc: Same.
787 * testsuite/thread/pthread3.cc: Same.
788 * testsuite/thread/pthread2.cc: Same.
790 * testsuite/ext/mt_allocator/instantiate.cc: Add in __GTHREADS guard.
791 * testsuite/ext/mt_allocator/deallocate_global-1.cc: Move to...
792 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: ...here.
793 * testsuite/ext/mt_allocator/deallocate_global-3.cc: Move to...
794 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: ...here.
795 * testsuite/ext/mt_allocator/deallocate_local-1.cc: Move to...
796 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: ...here.
797 * testsuite/ext/mt_allocator/deallocate_local-3.cc: Move to...
798 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: ...here.
800 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
801 Paolo Carlini <pcarlini@suse.de>
804 * src/mt_allocator.cc (__pool<true>::_M_reserve_block): Revert
805 to old locking order.
807 2004-10-06 Paolo Carlini <pcarlini@suse.de>
809 * include/std/std_sstream.h (_M_sync): When the caller is
810 setbuf, don't trust _M_string.capacity() to be the size of
811 the buffer area, use _M_string.size() in this case.
812 * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
813 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.
815 * include/bits/sstream.tcc (overflow): Avoid calling string::assign
816 unnecessarily when the current _M_string is empty.
818 2004-10-06 Paolo Carlini <pcarlini@suse.de>
820 * include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)):
821 Avoid iterator postincrement.
822 (__rotate): Likewise.
824 * include/bits/stl_algo.h: Minor formatting tweaks.
826 2004-10-06 Christopher Jefferson <caj@cs.york.ac.uk>
828 * include/bits/stl_algo.h (__reverse(random_access_iterator_tag)):
829 Avoid iterator postincrement; fix swapping middle element with
830 itself on odd-length inputs.
832 2004-10-05 Benjamin Kosnik <bkoz@redhat.com>
835 * include/ext/mt_allocator.h (__pool_base::_Tune): Add default
836 options as compile-time constant enums.
837 (__pool_base::_Tune::is_default): New.
838 (__pool_base::_Block_address): New.
839 (__pool_base): Rearrange data members.
840 (__pool::_M_reserve_memory): To _M_reserve_block.
841 (__pool::_M_reclaim_memory): To _M_reclaim_block.
842 (__pool::_Bin_record): Add _Block_address data member.
843 (__pool<false>): Add _M_thread_freelist_initial.
844 (__pool::~__pool): Declare.
845 (__common_pool_policy): Move static data member to...
846 (__common_pool_policy::_S_get_pool): ...here, make static local.
847 (__per_type_pool_policy): Move static data member to...
848 (__per_type_pool_policy::_S_get_pool): ...here, make static local.
849 (__mt_alloc::__mt_alloc): Call __policy_type::_S_get_pool.
850 Remove static member definitions. Use define for __default_policy.
851 * src/mt_allocator.cc: Same.
852 * config/linker-map.gnu: Don't export _S_get_pool. Renames.
853 * testsuite/ext/new_allocator: New.
854 * testsuite/ext/new_allocator/instantiate.cc: New.
855 * testsuite/ext/new_allocator/check_new.cc: New.
856 * testsuite/ext/new_allocator/deallocate_global.cc: New.
857 * testsuite/ext/new_allocator/deallocate_local.cc: New.
858 * testsuite/ext/mt_allocator/instantiate.cc: Instantiate all
860 * testsuite/ext/mt_allocator/deallocate_global-1.cc: New.
861 * testsuite/ext/mt_allocator/deallocate_global-2.cc: New.
862 * testsuite/ext/mt_allocator/deallocate_global-3.cc: New.
863 * testsuite/ext/mt_allocator/deallocate_global-4.cc: New.
864 * testsuite/ext/mt_allocator/deallocate_local-1.cc: New.
865 * testsuite/ext/mt_allocator/deallocate_local-2.cc: New.
866 * testsuite/ext/mt_allocator/deallocate_local-3.cc: New.
867 * testsuite/ext/mt_allocator/deallocate_local-4.cc: New.
868 * testsuite/ext/mt_allocator/deallocate.cc: New.
869 * testsuite/ext/malloc_allocator/deallocate.cc: New.
870 * testsuite/ext/malloc_allocator/deallocate_global.cc: New.
871 * testsuite/ext/malloc_allocator/deallocate_local.cc: New.
873 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
875 * configure.host (abi_baseline_pair): Define for s390-*-linux* and
877 * config/abi/s390-linux-gnu/baseline_symbols.txt: Add missing symbols.
878 * config/abi/s390x-linux-gnu/baseline_symbols.txt: New file.
880 2004-10-05 Christopher Jefferson <caj@cs.york.ac.uk>
882 * include/bits/stl_algobase.h (iter_swap): delegate to swap via
883 __iter_swap when iterator's value_types are equal.
884 (struct __iter_swap): New.
886 2004-10-04 Benjamin Kosnik <bkoz@redhat.com>
888 * configure.ac (libtool_VERSION): To 6:3:0.
889 * configure: Regnerate.
890 * testsuite/testsuite_abi.cc (check_version): Add 3.4.3.
892 2004-10-04 Roger Sayle <roger@eyesopen.com>
893 Eric Botcazou <ebotcazou@libertysurf.fr>
896 * config/linker-map.gnu: Synchronize the current list of stub
897 functions from libmath.
899 2004-10-03 Roger Sayle <roger@eyesopen.com>
901 * config/locale/generic/c_locale.cc (__convert_to_v): Use
902 _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
903 Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
904 to check for presence of strtold.
906 2004-10-03 Paolo Carlini <pcarlini@suse.de>
908 * include/bits/stl_list.h: Trivial formatting fixes.
909 * include/bits/stl_tree.h: Likewise.
911 2004-10-03 Paolo Carlini <pcarlini@suse.de>
913 * include/bits/sstream.tcc (seekpos): In case of success, just
916 2004-10-01 Paolo Carlini <pcarlini@suse.de>
918 * include/bits/sstream.tcc (pbackfail): Implement correctly
919 27.7.1.3/2, bullet 2: if mode & ios_base::out is false do not
921 * testsuite/27_io/basic_stringbuf/pbackfail/char/1.cc: New.
922 * testsuite/27_io/basic_stringbuf/pbackfail/char/2.cc: Likewise.
923 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/1.cc: Likewise.
924 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/2.cc: Likewise.
925 * testsuite/27_io/basic_istream/putback/char/1.cc: Tweak consistently.
927 2004-10-01 Paolo Carlini <pcarlini@suse.de>
929 * include/bits/sstream.tcc (seekpos): Minor rearrangement of two
930 conditionals consistently with seekoff.
931 * include/std/std_sstream.h (setbuf): Avoid a string temporary.
932 (_M_sync): Simplify a bit, clean-up comment.
934 2004-09-30 Paolo Carlini <pcarlini@suse.de>
936 PR libstdc++/10975 (DR 453)
937 * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
939 * docs/html/ext/howto.html: Add an entry for DR 453.
940 * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
941 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
942 * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
943 * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
944 * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
945 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
947 * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
948 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
950 * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
952 2004-09-29 Paolo Carlini <pcarlini@suse.de>
954 * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
955 Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
956 (str()): Slightly tweak, protect from pptr() == 0.
957 (_M_update_egptr()): Likewise.
958 * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
959 for an empty buffer use __beg instead of _M_string.capacity().
960 * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
961 * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
963 * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
964 * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
965 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
966 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
968 2004-09-29 Paolo Carlini <pcarlini@suse.de>
969 Benjamin Kosnik <bkoz@redhat.com>
971 * testsuite/testsuite_io.h (class constraint_buf): New, extended
972 and templatized version of constraint_filebuf; add typedefs for
973 streambuf/stringbuf/filebuf and wchar_t counterparts.
975 2004-09-28 Paolo Carlini <pcarlini@suse.de>
978 * include/bits/basic_string.h (_M_dispose, _M_refcopy,
979 basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
980 don't deal with _S_empty_rep.
981 * include/bits/basic_string.tcc (_S_construct, _M_destroy,
982 _M_leak_hard, _M_mutate): Likewise.
983 * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
984 * acconfig.h: Add corresponding undef.
985 * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
986 * docs/html/configopts.html: Document --enable-fully-dynamic-string.
987 * configure: Regenerate.
988 * config.h.in: Likewise.
990 2004-09-28 Benjamin Kosnik <bkoz@redhat.com>
991 Paolo Carlini <pcarlini@suse.de>
993 * testsuite/21_strings/basic_string/operations/char/1.cc: New.
994 * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
995 * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
996 * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc:
999 2004-09-28 Paolo Carlini <pcarlini@suse.de>
1001 * README: Remove obsolete entry about include/c_shadow.
1003 2004-09-24 H.J. Lu <hongjiu.lu@intel.com>
1006 * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
1008 2004-09-24 Paolo Carlini <pcarlini@suse.de>
1010 * src/localename.cc (locale::locale(const char*)): Minor tweaks:
1011 rename a variable, move an assignment.
1012 (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
1014 2004-09-24 Paul Brook <paul@codesourcery.com>
1016 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
1018 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1019 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
1020 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
1021 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
1022 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
1023 * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
1025 2004-09-23 Zack Weinberg <zack@codesourcery.com>
1027 * testsuite/20_util/memory/auto_ptr/assign_neg.cc
1028 * testsuite/23_containers/map/operators/1_neg.cc
1029 * testsuite/23_containers/set/operators/1_neg.cc:
1030 Update locations and/or regexps of dg-error markers.
1032 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
1034 * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
1035 Add rule to build ${host_builddir}/gthr-tpf.h.
1036 * include/Makefile.in: Regenerate.
1038 2004-09-23 Paolo Carlini <pcarlini@suse.de>
1039 Magnus Fromreide <magfr@lysator.liu.se>
1041 * include/bits/boost_concept_check.h (struct _SequenceConcept):
1042 Remove wrong requirement, i.e., not present in Table 67.
1044 2004-09-21 Paolo Carlini <pcarlini@suse.de>
1046 PR libstdc++/12882 (cont)
1047 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
1048 * configure: Regenerate.
1049 * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
1050 _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
1051 trivial showmanyc for large files too.
1053 2004-09-17 Jonathan Wakely <redi@gcc.gnu.org>
1055 * include/bits/stl_algo.h (remove): Remove too restrictive
1058 2004-09-17 Paolo Carlini <pcarlini@suse.de>
1060 * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
1061 as per Nathan's original suggestion.
1063 2004-09-17 Paolo Carlini <pcarlini@suse.de>
1065 * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
1067 * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
1068 * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
1069 * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
1071 2004-09-17 Paolo Carlini <pcarlini@suse.de>
1072 Andrea Arcangeli <andrea@suse.de>
1074 * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
1075 call unnecessarily sync, that is fflush: the library, since 3.4.0
1076 does not use buffered fread/fwrite.
1077 * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
1079 2004-09-15 Mark Mitchell <mark@codesourcery.com>
1081 * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
1083 * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
1085 * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
1086 (__cxa_vec_new): Use it.
1087 (__cxa_vec_new2): Likewise.
1088 (__cxa_vec_new3): Likewise.
1089 (__cxa_vec_cdtor): Likewise.
1090 (__cxa_vec_cctor): Likeiwse.
1091 (__cxa_vec_dtor): Likewise.
1092 (__cxa_vec_cleanup): Likewise.
1093 (__cxa_vec_delete2): Likewise.
1094 (__cxa_vec_delete3): Likewise.
1095 * libsupc++/vec.cc (__cxa_vec_new): Likewise.
1096 (__cxa_vec_new2): Likewise.
1097 (__cxa_vec_new3): Likewise.
1098 (__cxa_vec_cdtor): Likewise.
1099 (__cxa_vec_cctor): Likeiwse.
1100 (__cxa_vec_dtor): Likewise.
1101 (__cxa_vec_cleanup): Likewise.
1102 (__cxa_vec_delete2): Likewise.
1103 (__cxa_vec_delete3): Likewise.
1104 (__aeabi_vec_ctor_nocookie_nodtor): New function.
1105 (__aeabi_vec_ctor_cookie_nodtor): Likewise.
1106 (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
1107 (__aeabi_vec_new_cookie_noctor): Likewise.
1108 (__aeabi_vec_new_nocookie): Likewise.
1109 (__aeabi_vec_new_cookie_nodtor): Likewise.
1110 (__aeabi_vec_new_cookie): Likewise.
1111 (__aeabi_vec_dtor): Likewise.
1112 (__aeabi_vec_dtor_cookie): Likewise.
1113 (__aeabi_vec_delete): Likewise.
1114 (__aeabi_vec_delete3): Likewise.
1115 (__aeabi_vec_delete3_nodtor): Likewise.
1116 (__aeabi_atexit): Likewise.
1118 2004-09-14 Nathan Myers <ncm@cantrip.org>
1120 * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
1121 for 11722: copy can replace move; the common case is __avail == 0.
1123 2004-09-14 Paolo Carlini <pcarlini@suse.de>
1125 * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
1126 to __is_scalar, more clear and consistent with "tr1" naming.
1127 * include/bits/stl_algobase.h: Update consistently throughout.
1129 2004-09-13 Paolo Carlini <pcarlini@suse.de>
1132 * include/std/std_fstream.h (xsgetn): Declare only.
1133 * include/bits/fstream.tcc (xsgetn): Define, optimize for the
1134 always_noconv() case: when __n > __buflen, copy the available
1135 buffer and issue a direct read.
1136 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
1138 * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
1141 2004-09-13 Hans-Peter Nilsson <hp@bitrange.com>
1143 * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
1144 libstdc++_maybe_build_wrapper instead of using local code.
1146 2004-09-08 Benjamin Kosnik <bkoz@redhat.com>
1148 * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
1150 2004-09-03 Jan Beulich <jbeulich@novell.com>
1152 * crossconfig.m4: Add NetWare as a target.
1153 * configure: Regenerate.
1155 2004-09-02 Mark Mitchell <mark@codesourcery.com>
1157 * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
1160 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
1161 Simon Richter <Simon.Richter@hogyros.de>
1164 * include/bits/istream.tcc: Add extern template for iostream
1165 char and wchar_t instantiations.
1167 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
1168 Leland Wang <llwang@infor.org>
1171 * include/ext/ropeimpl.h (rope::_S_compare): Use
1172 _Rope_constants::_S_leaf.
1174 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
1177 * include/Makefile.am (ext_headers): Remove demangle.h.
1178 * include/Makefile.in: Regenerate.
1179 * include/ext/demangle.h: Remove.
1181 2004-09-01 Benjamin Kosnik <bkoz@redhat.com>
1184 * include/ext/mt_allocator.h (__mt_base): Not type dependent,
1186 (__pool): New, specialize.
1187 (__common_pool): New, static bits here.
1188 (__per_type_pool): New, and here.
1189 (__mt_alloc_base): New.
1190 (__mt_alloc): Add template parameter, inherit from it.
1191 * src/allocator.cc: Split this...
1192 * src/allocator-inst.cc: And this...
1193 * src/pool_allocator.cc: ...into this.
1194 * src/mt_allocator.cc: ... and this. Add definitions for
1196 * src/Makefile.am (sources): Split allocator.cc to
1197 pool_allocator.cc and mt_allocator.cc.
1198 * src/Makefile.in: Regenerate.
1199 * config/linker-map.gnu: Add symbols.
1200 * docs/html/ext/mt_allocator.html: Document new design.
1201 * testsuite/ext/mt_allocator/tune-1.cc: New.
1202 * testsuite/ext/mt_allocator/tune-2.cc: New.
1203 * testsuite/ext/mt_allocator/tune-3.cc: New.
1204 * testsuite/ext/mt_allocator/tune-4.cc: New.
1206 * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
1207 * testsuite/ext/allocators.cc: Use check_new, split into...
1208 * testsuite/ext/mt_allocator/check_new.cc: this.
1209 * testsuite/ext/pool_allocator/check_new.cc: this.
1210 * testsuite/ext/malloc_allocator/check_new.cc: this.
1211 * testsuite/ext/debug_allocator/check_new.cc: this.
1212 * testsuite/ext/mt_allocator/instantiate.cc: this.
1213 * testsuite/ext/pool_allocator/instantiate.cc: this.
1214 * testsuite/ext/malloc_allocator/instantiate.cc: this.
1215 * testsuite/ext/debug_allocator/instantiate.cc: this.
1217 2004-08-30 Phil Edwards <phil@codesourcery.com>
1219 * docs/html/install.html: Update locales list (from Paolo).
1220 Remove other redundant information and point to the GCC install
1223 2004-08-30 Benjamin Kosnik <bkoz@redhat.com>
1225 * include/ext/pool_allocator.h: Rename __pool_base to
1227 * src/allocator.cc: Same.
1228 * config/linker-map.gnu: Same.
1230 2004-08-30 Paolo Carlini <pcarlini@suse.de>
1231 Kenneth C. Schalk <ken@xorian.net>
1234 * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
1235 Check the return value of fclose/sync, loop on EINTR.
1236 (__basic_file<char>::sys_open): Likewise, for sync.
1238 2004-08-29 Paolo Carlini <pcarlini@suse.de>
1240 * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
1241 case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
1242 and 7.23.3.5), two if !_GLIBCXX_USE_C99.
1243 * testsuite/22_locale/time_get/get_time/char/4.cc: New.
1244 * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
1246 2004-08-27 Jason Merrill <jason@redhat.com>
1249 * libsupc++/guard.cc (static_mutex): Internal class implementing a
1250 recursive mutex which controls initialization of local statics.
1251 (__gnu_cxx::recursive_init): New exception class.
1252 (__cxa_guard_acquire): Deal with locking and recursion detection.
1253 (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
1255 2004-08-27 Matthias Klose <doko@debian.org>
1257 * configure.host: For mips*-*-linux* update cpu_include_dir
1258 after atomicity_dir is set.
1260 2004-08-27 Matthias Klose <doko@debian.org>
1262 * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
1263 * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1264 * configure.host: Set abi_baseline_pair for arm*-*-linux* and
1267 2004-08-27 Paolo Carlini <pcarlini@suse.de>
1269 * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
1270 * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
1271 * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
1272 * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
1273 * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
1275 * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
1277 * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
1278 * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
1279 * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
1280 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1282 2004-08-25 Paolo Carlini <pcarlini@suse.de>
1284 PR libstdc++/17038 (partial)
1285 * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
1287 * include/bits/locale_facets.h (class __timepunct): Add FIXME
1288 comment about _M_put.
1289 * config/locale/generic/time_members.cc (_M_put): Always null
1291 * config/locale/gnu/time_members.cc (_M_put): Likewise.
1292 * testsuite/22_locale/time_put/put/char/17038.cc: New.
1293 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
1295 2004-08-24 Paolo Carlini <pcarlini@suse.de>
1297 * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
1298 * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
1299 * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
1300 * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
1301 * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
1302 * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
1304 * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
1306 * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
1308 2004-08-22 Matthias Klose <doko@debian.org>
1310 * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
1311 * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1313 2004-08-23 Paolo Carlini <pcarlini@suse.de>
1315 * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
1316 * aclocal.m4: Regenerate with automake-1.9.1.
1317 * configure: Regenerate.
1318 * Makefile.in: Likewise.
1319 * include/Makefile.in: Likewise.
1320 * libmath/Makefile.in: Likewise.
1321 * libsupc++/Makefile.in: Likewise.
1322 * po/Makefile.in: Likewise.
1323 * src/Makefile.in: Likewise.
1324 * testsuite/Makefile.in: Likewise.
1326 2004-08-22 Paolo Carlini <pcarlini@suse.de>
1328 * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
1329 to a signed type, long according to the resolution of DR 359.
1330 * testsuite/22_locale/num_put/put/char/9.cc: New.
1331 * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
1333 * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
1334 Simplify a bit: no need to clear showpos.
1336 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1338 * include/bits/char_traits.h (struct _Char_traits_match): Remove,
1341 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1343 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
1344 wchar_t type for the fill argument; minor formatting tweaks.
1345 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
1346 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
1347 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
1348 * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
1349 * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
1350 * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
1352 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1354 * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
1355 with _M_word != _M_local_word two times, redundantly.
1357 2004-08-20 Jason Merrill <jason@redhat.com>
1359 * include/Makefile.am (${host_builddir}/gthr.h): Don't add
1360 _GLIBCXX_ to #pragma lines.
1361 * include/Makefile.in: Update.
1363 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1365 PR libstdc++/7219 (continued)
1366 * include/bits/ios_base.h (class ios_base): Expose Annex D.6
1367 typedefs by default.
1368 * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
1369 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
1371 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1373 2004-08-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1375 * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
1376 barrier to locking asm.
1378 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1380 * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
1381 actually the warning is a front-end bug (c++/17120).
1383 2004-08-20 Matthias Klose <doko@debian.org>
1385 * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
1387 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1389 * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
1390 used as truth value warning.
1392 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1394 * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
1397 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1399 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
1401 2004-08-19 Benjamin Kosnik <bkoz@redhat.com>
1403 * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
1405 * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
1407 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1409 * testsuite/performance/20_util/allocator/insert.cc: For std::map
1410 instantiate the allocator for a correct pair type.
1411 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1412 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1413 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1416 * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
1417 minor formatting fixes.
1418 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1420 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1422 * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
1424 * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
1425 * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
1426 * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
1427 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
1428 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1429 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1430 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1432 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1434 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1436 2004-08-18 Matthias Klose <doko@debian.org>
1438 * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1439 * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
1440 * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
1442 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1444 * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1446 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1448 * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1450 2004-08-17 Benjamin Kosnik <bkoz@redhat.com>
1452 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1454 2004-08-16 Paolo Carlini <pcarlini@suse.de>
1456 * include/bits/indirect_array.h: Trivial formatting fixes.
1457 * include/bits/valarray_after.h: Likewise.
1458 * include/bits/valarray_array.h: Likewise.
1459 * src/valarray-inst.cc: Likewise.
1461 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1463 * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
1464 * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
1465 * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
1467 * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
1468 * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
1469 * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
1470 * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
1471 * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
1473 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1475 * include/bits/deque.tcc: Trivial formatting fixes.
1477 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1479 * include/bits/deque.tcc: Trivial formatting fixes.
1481 * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
1482 Remove unneded typedef.
1484 * include/bits/locale_facets.tcc: Very minor tweaks.
1486 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
1487 type for the fill argument.
1488 * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
1489 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1490 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1491 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1492 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
1493 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
1494 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
1495 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
1497 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1499 * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
1500 memmove is not needed, memcpy suffices.
1502 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1504 * include/std/std_fstream.h (class basic_ifstream,
1505 class basic_ofstream, class basic_fstream): Add const overloads
1506 of is_open, as per DR 365 [WP].
1507 * docs/html/ext/howto.html: Add an entry for DR 365.
1509 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1511 * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
1513 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1516 * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
1517 to the returned value, reorganize a bit.
1518 * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
1519 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
1521 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
1522 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
1523 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
1524 * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
1526 2004-08-12 Paul Brook <paul@codesourcery.com>
1528 * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
1529 _GLIBCXX_CXA_VEC_CTOR_RETURN.
1530 * config/cpu/generic/cxxabi_tweaks.h: Ditto.
1531 * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
1532 __cxa_vec_ctor_return.
1533 * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
1534 Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
1536 2004-08-12 Kelley Cook <kcook@gcc.gnu.org>
1538 * Makefile.in, aclocal.m4, configure, include/Makefile.in,
1539 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1540 src/Makefile.in, testsuite/Makefile.in: Regenerate
1542 2004-08-12 Jan Beulich <jbeulich@novell.com>
1544 * config/locale/generic/ctype_members.cc
1545 (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
1546 initializer for return value, as that is invalid for enumerated types.
1547 * config/locale/gnu/ctype_members.cc
1548 (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
1550 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1552 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
1554 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1556 * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
1558 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
1559 * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
1560 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
1561 * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
1562 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
1563 * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
1564 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
1565 * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
1566 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
1567 * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
1568 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
1569 * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
1570 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
1571 * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
1572 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
1573 * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
1574 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
1575 * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
1576 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
1577 * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
1578 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
1580 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1581 Petur Runolfsson <peturr02@ru.is>
1584 * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
1585 standard streams are constructed.
1586 * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
1588 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1590 * include/bits/stl_bvector.h: Trivial formatting fixes.
1592 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1594 * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
1596 2004-08-07 Jonathan Wakely <redi@gcc.gnu.org>
1597 Paolo Carlini <pcarlini@suse.de>
1599 * src/debug.cc (_Error_formatter::_M_print_string): In order
1600 to print individual words from __string, _M_format_word can't
1601 be called since may be just sprintf, thus ignoring completely
1602 __n: instead, use memmove and append '\0' by hand.
1604 2004-08-07 Paolo Carlini <pcarlini@suse.de>
1606 * config/locale/generic/c_locale.h (__convert_from_v): Don't
1607 use a default for __prec, assume __prec >= 0 and simplify.
1608 * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
1609 * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
1610 Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
1612 2004-08-04 Phil Edwards <phil@codesourcery.com>
1614 * docs/html/configopts.html: Emphasize that options change.
1615 * docs/html/17_intro/configury.html: Update links.
1617 2004-08-03 Paolo Carlini <pcarlini@suse.de>
1619 * include/bits/list.tcc: Trivial formatting fixes.
1621 2004-08-03 Mark Mitchell <mark@codesourcery.com>
1623 * libsupc++/new_op.cc: Update comments.
1624 * libsupc++/del_op.cc: Likewise.
1626 2004-08-02 Mark Mitchell <mark@codesourcery.com>
1628 * libsupc++/cxxabi.h: Make all declarations have default
1630 * libsupc++/exception: Likewise.
1631 * libsupc++/new: Likewise.
1632 * libsupc++/typeinfo: Likewise.
1633 * libsupc++/unwind-cxx.h: Likewise.
1634 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
1635 the __cxxabiv1 namespace.
1636 (__cxa_free_exception): Likewise.
1637 * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
1638 (__cxa_bad_typeid): Likewise.
1639 * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
1640 (__cxa_end_catch): Likewise.
1641 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
1642 (__cxa_get_globals): Likewise.
1643 * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
1644 (__cxa_rethrow): Likewise.
1645 * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
1646 * libsupc++/eh_type.cc: Include <cxxabi.h>.
1648 * Makefile.am (hosted_source): Add libmath and testsuite.
1649 (SUBDIRS): Remove them.
1650 * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
1651 on arm*-*-symbianelf*.
1652 * crossconfig.m4: Add arm*-*-symbianelf* support.
1653 * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
1654 when freestanding. Do not bring names into std:: namespace with
1655 "using" when freestanding. Declare required functions and macros
1657 * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
1659 * libsupc++/del_op.cc: Declare "free" only when freestanding.
1660 * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
1661 (malloc): Declare when freestanding.
1664 (__cxa_allocate_exception): Call malloc, not std::malloc. Likewise
1666 (__cxa_free_exception): Likewise for free.
1667 * libsupc++/new_op.cc: Declare "malloc" when freestanding.
1668 * libsupc++/pure.cc (writestr): Define to nothing when
1670 * libsupc++/vterminate.cc: Do not define anything when
1672 * Makefile.in: Regenerated.
1673 * aclocal.m4: Likewise.
1674 * configure: Likewise.
1675 * include/Makefile.in: Likewise.
1676 * libmath/Makefile.in: Likewise.
1677 * libsupc++/Makefile.in: Likewise.
1678 * po/Makefile.in: Likewise.
1679 * src/Makefile.in: Likewise.
1680 * testsuite/Makefile.in: Likewise.
1682 2004-08-01 Matt Austern <austern@apple.com>
1685 * include/bits/stl_list.h (_M_create_node): Remove unused
1686 zero-argument version.
1687 * include/ext/slist (_M_create_node): Pass two arguments to
1688 allocator's construct() member function.
1689 * testsuite/23_containers/deque/explicit_instantiation.cc: New.
1690 * testsuite/23_containers/list/explicit_instantiation.cc: New.
1691 * testsuite/23_containers/vector/explicit_instantiation.cc: New.
1692 * testsuite/23_containers/map/explicit_instantiation.cc: New.
1693 * testsuite/23_containers/set/explicit_instantiation.cc: New.
1694 * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
1695 * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
1696 * testsuite/ext/hash_set_explicit_instantiation.cc: New.
1697 * testsuite/ext/slist_explicit_instantiation.cc: New.
1699 2004-07-30 Paolo Carlini <pcarlini@suse.de>
1701 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1702 num_get<>::_M_extract_int): In the main parsing loop delay the
1703 life of __q to the actual use point.
1705 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1708 * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
1709 Don't clip the precision passed down to __convert_from_v:
1710 22.2.2.2.2 nowhere says so.
1711 * testsuite/22_locale/num_put/put/char/14220.cc: New.
1712 * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
1714 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1716 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
1718 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1719 Petur Runolfsson <peturr02@ru.is>
1721 PR libstdc++/12658 (continued)
1722 * src/locale_init.cc (locale::locale, locale::global): Use
1723 a single locale_mutex instead of two separate mutexes.
1725 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1728 * include/debug/map.h (insert(_InputIterator, _InputIterator)):
1730 * testsuite/23_containers/map/insert/16813.cc: New.
1732 2004-07-29 Phil Edwards <phil@codesourcery.com>
1734 * docs/html/faq/index.html: Update version references. Make
1735 clear that code from SGI has diverged greatly. Remove references
1736 to library snapshots and what's-new sections.
1737 * docs/html/faq/index.txt: Regenerate.
1739 2004-07-28 Matt Austern <austern@apple.com>
1741 * include/bits/stl_construct.h (_Destroy): New three-argument
1742 overload that takes an allocator argument. Another inline
1743 three-argument overload that takes std::allocator and dispatches
1744 to the two-argument version.
1745 * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
1746 Change return type to void to match uninitialized_fill_n.
1747 (__uninitialized_copy_a_): New function. Like uninitialized_copy
1748 except that it takes an allocator and uses it for construct and
1749 destroy. If the allocator is std::allocator, dispatches to
1751 (__uninitialized_fill_a): Likewise.
1752 (__uninitialized_fill_n_a): Likewise.
1753 (__uninitialized_copy_copy): Give it an allocator argument.
1754 (__uninitialized_fill_copy): Likewise.
1755 (__uninitialized_copy_fill): Likewise.
1756 * include/bits/deque.tcc: Use new forms defined in stl_construct.h
1757 and stl_uninitialized.h. Replace use of single-argument _Construct
1758 and _Destroy with use of allocator's construct and destroy methods.
1759 * include/bits/list.tcc: Likewise.
1760 * include/bits/stl_deque.h: Likewise.
1761 * include/bits/stl_list.h: Likewise.
1762 * include/bits/stl_tree.h: Likewise.
1763 * include/bits/stl_vector.h: Likewise.
1764 * include/bits/vector.tcc: Likewise.
1765 * include/ext/hashtable.h: Use rebind so that allocator_type
1766 has correct type for a container's allocator. Replace use of
1767 single-argument _Construct and _Destroy with use of allocator's
1768 construct and destroy methods.
1769 * include/ext/memory (__uninitialized_copy_n_a): New function.
1770 Like uninitialized_copy_n except that it takes an extra parameter,
1771 an allocator, and uses it for construct and destroy operations.
1772 * include/ext/rope: Use new forms defined in stl_construct.h,
1773 stl_uninitialized.h, and ext/memory. Replace use of single-argument
1774 _Construct and _Destroy with allocator construct and destroy methods.
1775 * include/ext/ropeimpl.h: Likewise.
1776 * include/ext/slist.h: Likewise.
1777 * testsuite/testsuite_allocator.h (check_construct_destroy): New.
1778 * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
1779 * testsuite/23_containers/deque/check_construct_destroy.cc: New.
1780 * testsuite/23_containers/list/check_construct_destroy.cc: New.
1781 * testsuite/23_containers/set/check_construct_destroy.cc: New.
1782 * testsuite/23_containers/vector/check_construct_destroy.cc: New.
1783 * testsuite/ext/hash_check_construct_destroy.cc: New.
1784 * testsuite/ext/slist_check_construct_destroy.cc: New.
1786 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
1788 2003-10-01 Eric Christopher <echristo@redhat.com>
1789 * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
1791 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
1792 * config/cpu/sh/atomicity.h: New. Use movli and movco on SH4a.
1794 2004-07-23 Benjamin Kosnik <bkoz@redhat.com>
1797 * include/bits/locale_facets.tcc: Fix for -Werror.
1799 2004-07-23 Jonathan Wakely <redi@gcc.gnu.org>
1801 * docs/html/debug.html: Say debug mode only available since 3.4.0.
1803 2004-07-21 Benjamin Kosnik <bkoz@redhat.com>
1805 * docs/doxygen/mainpage.html: Clarify links.
1806 * docs/doxygen/stdheader.cc: Add files.
1807 * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
1808 * docs/doxygen/user.cfg.in: New options, wrap.
1810 2004-07-20 Danny Smith <dannysmith@users.sourceforge.net>
1812 * include/c_std/std_cwchar.h (wcsstr): Correct signature.
1814 2004-07-19 Benjamin Kosnik <bkoz@redhat.com>
1817 * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
1819 2004-07-17 Richard Sandiford <rsandifo@redhat.com>
1822 * scripts/create_testsuite_files: Pass -print to find.
1824 2004-07-15 Paolo Carlini <pcarlini@suse.de>
1826 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
1827 * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
1829 2004-07-15 Jakub Jelinek <jakub@redhat.com>
1832 * acinclude.m4 (glibcxx_shared_libgcc): Correct
1833 glibcxx_shared_libgcc test for multilibs.
1834 * configure: Rebuilt.
1836 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1839 * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
1840 the signature to return void, as per 20.4.4.3.
1841 * include/bits/stl_vector.h (vector::vector(size_type,
1842 const value_type&, const allocator_type&), vector::vector(size_type),
1843 vector::_M_initialize_dispatch): Adjust callers.
1844 * include/bits/vector.tcc (vector<>::_M_fill_assign,
1845 vector<>::_M_fill_insert): Likewise.
1846 * testsuite/20_util/memory/16505.cc: New.
1848 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1850 * testsuite/22_locale/locale/cons/12658_thread-1.cc,
1851 12658_thread-2.cc: Use __gnu_test::try_named_locale.
1853 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1855 * docs/html/ext/mt_allocator.html: Add docs for _Tune.
1856 * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
1857 (__mt_alloc::_S_set_options): Same.
1860 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1862 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
1864 * configure: Regenerated.
1866 2004-07-13 Paolo Carlini <pcarlini@suse.de>
1868 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
1869 to 12658_thread-1.cc and xfail.
1870 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
1871 simpler version of 12658_thread-1.cc, still failing on 3_3 and
1872 not failing on 3_4/mainline - both on single processor and
1873 multiprocessor machines.
1875 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
1877 * docs/html/abi.html: Remove non-public qualification.
1879 * include/bits/concurrence.h: Tweak comments.
1881 2004-07-11 Paolo Carlini <pcarlini@suse.de>
1883 Add wchar_t counterparts of the basic_streambbuf<char> tests.
1884 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
1885 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
1887 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
1888 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
1890 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
1891 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
1892 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
1893 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
1894 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
1896 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
1898 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
1900 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
1902 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
1903 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
1905 2004-07-11 Phil Edwards <phil@codesourcery.com>
1907 * acinclude.m4: Cosmetic shell syntax fixes.
1908 * configure.ac: Bring comment inline with reality.
1909 * configure.host: Both of the above. Move 'arm' case to right
1910 place in host_cpu switch.
1911 * aclocal.m4, configure: Regenerate.
1913 2004-07-09 Paolo Carlini <pcarlini@suse.de>
1915 Add wchar_t counterparts of the basic_stringbuf<char> tests.
1916 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
1917 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
1918 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
1919 3599.cc, 9988.cc: Likewise.
1920 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
1922 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
1924 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
1926 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
1928 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
1929 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
1930 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
1931 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
1933 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
1934 9404-1.cc: Likewise.
1935 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
1936 9404-2.cc: Likewise.
1937 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
1939 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
1940 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
1942 2004-07-08 Paolo Carlini <pcarlini@suse.de>
1944 * include/bits/gslice.h: Trivial formatting fixes.
1945 * include/bits/gslice_array.h: Likewise.
1946 * include/bits/indirect_array.h: Likewise.
1947 * include/bits/mask_array.h: Likewise.
1948 * include/bits/slice_array.h: Likewise.
1949 * include/bits/valarray_after.h: Likewise.
1950 * include/bits/valarray_array.h: Likewise.
1951 * include/bits/valarray_before.h: Likewise.
1952 * include/std/std_valarray.h: Likewise.
1954 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
1957 * include/bits/basic_string.h (basic_string::operator=): Revert.
1959 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
1961 * configure.ac (libtool_VERSION): To 6:2:0.
1962 * configure: Regenerated.
1964 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
1966 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
1969 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
1971 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
1973 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
1976 2004-07-07 Paolo Carlini <pcarlini@suse.de>
1979 * include/bits/sstream.tcc (overflow): When reallocating _M_string
1980 use an exponential grow policy.
1981 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
1982 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
1984 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
1987 * crossconfig.m4: Add in bits for djgpp.
1988 * configure: Regenerate.
1990 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
1992 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
1993 instantiation of set and multiset (functor param given as int).
1995 2004-07-04 Paolo Carlini <pcarlini@suse.de>
1997 * include/bits/basic_string.h: Trivial formatting fixes and/or
1998 const-ification of some variables.
1999 * include/bits/deque.tcc: Likewise.
2000 * include/bits/stl_algobase.h: Likewise.
2001 * include/bits/stl_bvector.h: Likewise.
2002 * include/bits/stl_construct.h: Likewise.
2003 * include/bits/stl_deque.h: Likewise.
2004 * include/bits/stl_pair.h: Likewise.
2005 * include/bits/stl_vector.h: Likewise.
2006 * include/bits/vector.tcc: Likewise.
2008 2004-07-04 Paolo Carlini <pcarlini@suse.de>
2010 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
2011 systems with no COMDAT or weak support.
2012 * testsuite/25_algorithms/copy/2.cc: Likewise.
2013 * testsuite/25_algorithms/copy/3.cc: Likewise.
2014 * testsuite/25_algorithms/copy/4.cc: Likewise.
2016 2004-07-03 Paul Brook <paul@codesourcery.com>
2018 * configure.ac: Set ABI_TWEAKS_SRCDIR.
2019 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
2020 setting atomicity_dir. Override type_cpu for arm based targets.
2021 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
2022 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
2023 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
2024 * libsupc++/vec.cc: Ditto.
2025 * config/cpu/arm/cxxabi_tweaks.h: New file.
2026 * config/cpu/generic/cxxabi_tweaks.h: New file.
2027 * */Makefile.in: Regenerate.
2028 * configure: Regenerate.
2030 2004-07-02 Paolo Carlini <pcarlini@suse.de>
2032 * include/bits/type_traits.h (_Is_normal_iterator): Move...
2033 * include/bits/cpp_type_traits.h: ... here, renamed to
2034 __is_normal_iterator and consistent with the other traits.
2035 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
2036 to the struct __copy_normal and three specializations.
2037 (__copy_backward_output_normal_iterator,
2038 __copy_backward_input_normal_iterator): Likewise, convert to
2039 the struct __copy_backward_normal and three specializations.
2040 (copy, copy_backward): Use the latter.
2041 (__copy_aux, __copy_backward_aux): Very minor tweaks.
2043 2004-07-01 Paolo Carlini <pcarlini@suse.de>
2045 * include/bits/stl_algobase.h (__copy_trivial): Remove.
2046 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
2047 __is_trivially_copyable, __are_same and __copy::copy.
2048 (__copy): Rewrite as a class template and two specializations.
2049 (__copy_ni2): Simplify, just call __copy_aux.
2051 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
2053 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
2054 for destination value type != source value type.
2056 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
2057 Per Bothner <per@bothner.com>
2058 Mohan Embar <gnustuff@thisiscool.com>
2061 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
2062 (__glibcxx_mutex): Encapsulate mutex init function into type for
2063 threaded configurations without __GTHREAD_MUTEX_INIT.
2064 (lock::lock): Make device member a reference.
2065 (lock::~lock): Same.
2066 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
2068 * src/allocator.cc: Same.
2070 2004-06-30 Brad Spencer <spencer@infointeractive.com>
2072 * include/ext/mt_allocator.h: Handle allocations at static
2073 initialization that happen before _S_options is (automatically)
2074 constructed; set _S_init even if _M_force_new is true.
2076 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
2078 * config/linker-map.gnu: Revert new exports.
2080 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
2081 Stuart Anderson <anderson@netsweng.com>
2083 * config/linker-map.gnu: Add destructor exports for abstract base
2084 classes to conform to LSB.
2086 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2087 Paolo Carlini <pcarlini@suse.de>
2089 * include/bits/cpp_type_traits.h: Add __is_pointer and
2090 __is_trivially_copyable.
2091 * include/bits/stl_algobase.h (fill, fill_n): Slightly
2092 tweak to use the latter.
2093 (__copy_backward_dispatch): Remove.
2094 (__copy_backward_aux): Rewrite to use __is_pointer and
2095 __is_trivially_copyable and __copy_backward::copy_b.
2096 (__copy_backward): Rewrite as a class template and two
2099 2004-06-30 Paolo Carlini <pcarlini@suse.de>
2101 * testsuite/25_algorithms/copy.cc: Move to...
2102 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
2103 * testsuite/25_algorithms/copy/2.cc: New.
2104 * testsuite/25_algorithms/copy/3.cc: New.
2105 * testsuite/25_algorithms/copy/4.cc: New.
2107 2004-06-29 Paul Brook <paul@codesourcery.com>
2109 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
2110 element size in the cookie.
2112 2004-06-28 Paolo Carlini <pcarlini@suse.de>
2114 * include/bits/cpp_type_traits.h: Move the additions to
2115 namespace __gnu_internal outside of namespace std; trivial
2118 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
2120 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
2121 Revert -Weffc++ changes that defined copy ctory and or assignment
2123 * libsupc++/tinfo.cc (__upcast_result): Same.
2125 2004-06-28 Paolo Carlini <pcarlini@suse.de>
2127 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
2128 the algorithm used to name the categories.
2130 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
2132 * include/Makefile.am: Give a .gch extension to
2133 the PCH files, not only to the directory.
2134 * include/Makefile.in: Regenerate.
2136 2004-06-28 Paolo Carlini <pcarlini@suse.de>
2138 * config/locale/gnu/monetary_members.cc
2139 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
2140 assignments of _M_decimal_point and _M_thousands_sep.
2142 2004-06-27 Paolo Carlini <pcarlini@suse.de>
2144 * docs/html/17_intro/contribute.html: Update some links.
2145 * docs/html/17_intro/porting-howto.html: Likewise.
2146 * docs/html/17_intro/porting-howto.xml: Likewise.
2147 * docs/html/18_support/howto.html: Likewise.
2148 * docs/html/21_strings/howto.html: Likewise.
2149 * docs/html/27_io/howto.html: Likewise.
2150 * docs/html/configopts.html: Likewise.
2151 * docs/html/ext/howto.html: Likewise.
2152 * docs/html/faq/index.html: Likewise.
2153 * docs/html/install.html: Don't mention 2.x compilers.
2155 2004-06-27 Paolo Carlini <pcarlini@suse.de>
2157 * include/ext/rope: Trivial formatting fixes.
2158 * include/ext/ropeimpl.h: Likewise.
2160 2004-06-26 Paolo Carlini <pcarlini@suse.de>
2163 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
2164 availability of strto(u)ll, not used anymore in the iostreams.
2165 * configure: Regenerate.
2167 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
2170 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
2172 * configure: Regenerate.
2174 2004-06-25 Paul Brook <paul@codesourcery.com>
2176 * libsupc++/cxxabi.h: Define __ARM_EABI__
2178 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
2180 2004-06-25 Paul Brook <paul@codesourcery.com>
2182 * include/bits/concurrence.h: Still create mutex object when
2185 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2187 * include/bits/stl_algobase.h (fill, fill_n): Revert last
2188 change: actually we need to copy construct an object of type
2189 _Tp, not of type iterator_traits<>::value_type, therefore the
2192 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2194 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
2195 dispatch: use iterator_traits<>::value_type, not _Tp.
2197 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2199 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
2200 * testsuite/25_algorithms/fill/2.cc: Likewise.
2202 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
2203 Paolo Carlini <pcarlini@suse.de>
2205 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
2206 for fill and fill_n, respectively: when copying is cheap, use a
2207 temporary to avoid a memory read in each iteration.
2209 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2211 * testsuite/25_algorithms/fill/1.cc: New.
2212 * testsuite/25_algorithms/fill/2.cc: Likewise.
2214 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
2216 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
2217 Remove copy constructor and assignment operator.
2219 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
2221 * include/bits/concurrence.h (__gnu_cxx::lock): New.
2222 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
2223 (__pool_base::_M_get_mutex): New.
2224 * include/bits/allocator.h: Tweak.
2225 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
2226 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
2227 * include/bits/stl_threads.h: Remove.
2228 * include/Makefile.am: Also here.
2229 * include/Makefile.in: Regenerate.
2231 * src/locale_init.cc: Use __gnu_cxx::lock.
2233 * src/allocator.cc: Move all instantiations...
2234 * src/allocator-inst.cc: ...here.
2236 2004-06-23 Andrew Pinski <apinski@apple.com>
2238 * linkage.m4: Remove check for libmx.
2239 * configure: Regenerate.
2241 2004-06-23 Paolo Carlini <pcarlini@suse.de>
2244 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
2245 Don't require the _DefaultConstructibleConcept.
2246 (struct _ForwardIteratorConcept): Require it here.
2248 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
2250 * include/bits/istream.tcc (getline): Make sure arguments passed
2251 to min/max have the same type.
2252 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
2253 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
2255 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
2257 * docs/html/abi.html: Update links.
2259 2004-06-22 Paolo Carlini <pcarlini@suse.de>
2261 * testsuite/26_numerics/complex_inserters_extractors.cc,
2262 complex_value.cc, buggy_complex.cc: Move to...
2263 * testsuite/26_numerics/complex/: ... here.
2264 * testsuite/26_numerics/c99_classification_macros_c++.cc,
2265 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
2266 fabs_inline.cc: Move to...
2267 * testsuite/26_numerics/cmath/: ... here.
2268 * testsuite/26_numerics/binary_closure.cc, slice.cc,
2269 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
2270 valarray_name_lookup.cc, valarray_operators.cc,
2271 valarray_subset_assignment.cc: Move to...
2272 * testsuite/26_numerics/valarray/: ... here (new dir).
2273 * testsuite/26_numerics/sum_diff.cc: Move to...
2274 * testsuite/26_numerics/numeric/: ... here (new dir).
2276 2004-06-22 Paolo Carlini <pcarlini@suse.de>
2278 * include/std/std_istream.h (ignore(streamsize __n = 1,
2279 int_type __delim = traits_type::eof())): Split into...
2280 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2281 int_type __delim)): The first two can be much more simpler
2282 and efficient than the fully general case; also, the last
2283 two can take advantage of the same mechanism already used
2285 * include/bits/istream.tcc (ignore(streamsize __n = 1,
2286 int_type __delim = traits_type::eof()): Remove.
2287 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2288 int_type __delim)): New.
2290 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
2292 * config/linker-map.gnu: Use wildcards for
2293 __basic_file::sys_open(FILE*, _Ios_Openmode).
2295 2004-06-20 Paolo Carlini <pcarlini@suse.de>
2297 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
2299 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2301 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
2302 the alignment requested.
2303 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
2304 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
2305 (__mt_alloc<>::deallocate): Likewise.
2307 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2310 * include/debug/safe_base.h
2311 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
2312 _Safe_sequence_base::operator=): Provide definitions.
2313 * testsuite/23_containers/bitset/cons/16020.cc: New.
2315 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
2317 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
2318 (__pool_base): Remove unused template parameter. Add
2319 protected. Move lock data into __pool_base::_Lock. Remove static
2320 on member functions.
2321 (__pool_base::_M_get_free_list): New.
2322 (__pool_alloc): Move _S_force new here.
2323 * src/allocator.cc: Move out of line __pool_base definitions here.
2324 * config/linker-map.gnu: Export bits from __pool_base.
2326 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2328 * config/locale/gnu/numeric_members.cc
2329 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
2330 assignments of _M_decimal_point and _M_thousands_sep.
2331 * config/locale/gnu/time_members.cc
2332 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
2333 and reformat assignments of date and time fields.
2335 2004-06-16 Paolo Carlini <pcarlini@suse.de>
2337 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
2338 to use _Data_allocate.
2339 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
2340 (rope<>::_S_substring): Likewise.
2341 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
2342 (rope<>::c_str()): Likewise.
2343 (rope<>::replace_with_c_str()): Likewise.
2345 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
2346 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
2348 (_Rope_iterator_base<>::_S_setcache): Likewise.
2349 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
2350 (rope<>::_S_substring): Likewise.
2351 (rope<>::_S_dump): Likewise.
2352 (rope<>::_S_fetch_ptr): Likewise.
2353 (rope<>::_S_compare): Likewise.
2354 (rope<>::replace_with_c_str()): Likewise.
2356 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
2357 * testsuite/ext/rope/2.cc: New.
2359 2004-06-16 Paolo Carlini <pcarlini@suse.de>
2360 Matt Austern <austern@apple.com>
2362 * testsuite/ext/rope/3.cc: New.
2364 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
2366 * acinclude.m4: Remove useless multilib configury.
2367 * Makefile.am: Remove useless multilib rules.
2368 * aclocal.m4: Regenerate.
2369 * Makefile.in: Regenerate.
2370 * configure: Regenerate.
2372 2004-06-15 Paolo Carlini <pcarlini@suse.de>
2374 * include/ext/hashtable.h: Trivial formatting fixes.
2375 * include/ext/rb_tree: Likewise.
2377 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2379 * include/ext/hash_map: Trivial formatting fixes.
2380 * include/ext/hash_set: Likewise.
2381 * include/ext/memory: Likewise.
2382 * include/ext/numeric: Likewise.
2384 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
2386 * Makefile.in: Regenerate with automake 1.8.5.
2388 * include/Makefile.in: Same.
2389 * libmath/Makefile.in: Same.
2390 * libsupc++/Makefile.in: Same.
2391 * po/Makefile.in: Same.
2392 * src/Makefile.in: Same.
2393 * testsuite/Makefile.in: Same.
2395 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2397 * include/ext/slist: Trivial formatting fixes.
2399 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2401 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
2402 Don't use the 'magic number' 10 in the computation of __minlen;
2403 never access __name past __minlen; in the loop over __i3, don't
2404 decrease __nmatches and increase __i3 at once, only either of
2407 2004-06-13 Paolo Carlini <pcarlini@suse.de>
2409 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
2410 time_get<>::do_get_date): Use only once _M_extract_via_format,
2411 instead of going through "%X"/"%x" and calling it two times
2414 2004-06-12 Paolo Carlini <pcarlini@suse.de>
2416 * include/ext/algorithm: Trivial formatting fixes.
2417 * include/ext/functional: Likewise.
2418 * include/ext/hash_fun.h: Likewise.
2419 * include/ext/iterator: Likewise.
2421 2004-06-12 Paolo Carlini <pcarlini@suse.de>
2423 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
2424 size_type)): Reimplement using std::search.
2425 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
2427 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
2429 * testsuite/performance/21_strings/string_find.cc: New.
2431 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
2433 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
2435 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
2437 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
2438 this function return a value.
2440 2004-06-09 Paolo Carlini <pcarlini@suse.de>
2443 * include/bits/stl_deque.h: Consistently with stl_set.h, define
2444 pointer as allocator's pointer, likewise for reference,
2445 const_pointer, and const_reference.
2446 * include/bits/stl_list.h: Likewise.
2447 * include/bits/stl_map.h: Likewise.
2448 * include/bits/stl_multimap.h: Likewise.
2449 * include/bits/stl_vector.h: Likewise.
2451 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
2453 * crossconfig.m4: Remove signbit, signbitf, signbitl.
2454 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
2455 builtin math functions instead of AC_DEFINE_UNQUOTED.
2456 * configure: Regenerate.
2458 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
2460 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
2461 * docs/doxygen/mainpage.html: Remove links.
2463 2004-06-08 Jason Merrill <jason@redhat.com>
2465 * config/linker-map.gnu: Use wildcards for
2466 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
2468 2004-06-08 Paolo Carlini <pcarlini@suse.de>
2470 * include/ext/pool_allocator.h: Convert to a global free-list,
2471 as per the original SGI/HP design: move the implementation
2472 details to struct __pool_base, from which __pool_alloc derives.
2473 * src/allocator.cc: Instantiate __pool_base.
2475 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
2476 Paolo Carlini <pcarlini@suse.de>
2478 * testsuite/testsuite_performance.h
2479 (resource_counter::allocated_memory): Make it return the right
2480 number of bytes requested by the allocators/application. This is
2481 the sbrk+mmaped memory.
2483 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
2485 * include/std/std_complex.h (log): Tidy.
2487 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
2489 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
2490 * testsuite/testsuite_abi.cc: Same.
2491 * configure.ac (libtool_VERSION): Bump to 6:1:0.
2492 * configure: Regenerate.
2493 * aclocal.m4: Regenerate.
2495 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2497 * include/std/std_complex.h (complex<_Tp>): Properly indent
2499 (complex<>::__rep): New.
2500 (__complex_abs): New. Dispatch to built-ins.
2502 (__complex_arg): New. Dispatch to built-ins.
2504 (__complex_cos): New. Dispatch to built-ins.
2506 (__complex_cosh): New. Dispatch to built-ins.
2508 (__complex_exp): New. Dispatch to built-ins.
2510 (__complex_log): New. Dispatch to built-ins.
2512 (__complex_sin): New. Dispatch to built-ins.
2514 (__complex_sinh): New. Dispatch to built-ins.
2516 (__complex_sqrt): New. Dispatch to built-ins.
2518 (__complex_tan): New. Dispatch to built-ins.
2520 (__complex_tanh): New. Dispatch to built-ins.
2522 (__complex_pow): New. Dispatch to built-ins.
2525 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
2526 Benjamin Kosnik <bkoz@redhat.com>
2529 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
2530 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
2531 * config/io/basic_file_stdio.cc (__basic_file::file): New.
2532 * config/io/basic_file_stdio.h: Define.
2534 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
2537 * docs/html/documentation.html: Update doxygen links for 3.4.0.
2539 2004-05-27 Jan Beulich <jbeulich@novell.com>
2541 * scripts/create_testsuite_files: Tweak.
2543 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
2546 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
2547 bits to do the same thing.
2549 2004-05-24 Paolo Carlini <pcarlini@suse.de>
2551 * include/bits/istream.tcc (ignore): Correctly deal with
2552 n == numeric_limits<streamsize>::max().
2553 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
2555 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
2556 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
2557 __n == numeric_limits<>::min().
2559 * include/bits/istream.tcc: Minor tweaks.
2561 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2563 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2565 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2567 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2569 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2571 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2574 Fixups for -Weffc++.
2575 * include/bits/basic_string.h (basic_string::operator=): Return
2576 pointer to this instead of result of assign. Although redundant,
2577 this doesn't impact resultant codegen.
2579 * include/bits/locale_facets.h (__numpunct_cache): Declare
2580 assignment opxserator and copy constructor private.
2581 (__timepunct_cache): Same.
2582 (__moneypunct_cache): Same.
2583 (collate): Use member initialization list for _M_c_locale_collate.
2584 * config/locale/gnu/messages_members.h: Same.
2585 * config/locale/gnu/time_members.h (__timepunct): Same.
2586 * src/codecvt.cc: Use member initialization list to initialize
2587 _M_c_locale_codecvt.
2588 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
2589 * config/os/gnu-linux/ctype_noninline.h: Same.
2590 * src/locale.cc (_Impl): Same.
2591 * src/locale_init.cc: Same.
2592 * src/localename.cc: Same.
2594 * include/bits/basic_ios.h (basic_ios): Complete member
2595 initialization list.
2596 * include/bits/istream.tcc (basic_istream::sentry): Same.
2597 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
2598 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
2599 _M_pback to member initialization list.
2600 * include/std/std_streambuf.h: Same.
2601 * include/std/std_sstream.h: Same, for _M_mode.
2602 * src/ios.cc (ios_base): Same.
2604 * include/ext/rope: Make derived classes match exception
2606 specifications. Add copy constructors and assignment operators.
2608 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
2609 constructor and assignment operator protected.
2610 (_Safe_iterator_base): Same.
2611 * include/debug/formatter.h (_Error_formatter): Define copy
2612 constructor and assignment operator.
2614 * include/backward/strstream: Declare assignment operator and copy
2615 constructor private.
2617 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2619 * testsuite/testsuite_hooks.h (func_callback): Declare copy
2620 constructor and assignment operator private.
2621 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
2622 exception specifications of base class.
2623 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
2624 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
2625 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2627 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2629 * libsupc++/cxxabi.h: Remove duplicated and useless public and
2630 private keywords in class declarations. Format. Use
2631 stddef.h. Expose declarations to "C" compilation.
2632 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
2633 assignment operator.
2634 (__dyncast_result): Same.
2635 * libsupc++/vec.cc (uncatch_exception): Same, use member
2636 initialization list.
2638 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2640 * testsuite/abi_check.cc: Add unistd.h.
2642 2004-05-22 Paolo Carlini <pcarlini@suse.de>
2645 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
2646 __int_to_char(unsigned long long)): Showpos is not relevant
2648 * testsuite/22_locale/num_put/put/char/15565.cc: New.
2649 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
2651 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
2653 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
2654 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
2655 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2656 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
2657 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
2658 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
2660 2004-05-21 Matthias Klose <doko@debian.org>
2662 * docs/doxygen/run_doxygen: Bump required version.
2664 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
2666 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
2667 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
2669 2004-05-21 Paolo Carlini <pcarlini@suse.de>
2671 * include/bits/istream.tcc (ignore): Remove redundant line.
2672 (readsome): Tidy, closely following 27.6.1.3, p30.
2674 2004-05-20 Paolo Carlini <pcarlini@suse.de>
2676 * include/bits/istream.tcc (operator>>(basic_istream<>&,
2677 basic_string<>&)): Use a temporary buffer, thus avoiding
2678 reallocation for common case.
2679 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2681 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2684 * include/bits/istream.tcc: Const-ification of a few variables.
2686 * include/bits/ostream.tcc: Trivial formatting fixes and
2687 const-ification of some variables.
2689 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
2693 * docs/doxygen/Intro.3: Remove Allocators.3.
2694 Add new extension headers, extension namespace list.
2695 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
2696 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
2697 __gnu_debug::. Remove __policy_ renames.
2698 * docs/doxygen/guide.html: Add dot note.
2699 * docs/doxygen/stdheader.cc: Edit, add files.
2700 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
2702 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2704 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
2706 2004-05-18 Jan Beulich <jbeulich@novell.com>
2709 * scripts/create_testsuite_files: Also find source files through
2712 2004-05-18 Jan Beulich <jbeulich@novell.com>
2715 * testsuite/lib/libstdc++.exp: Make test files writable.
2717 2004-05-18 Paolo Carlini <pcarlini@suse.de>
2719 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
2722 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
2724 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
2725 allocation loop which removes blocks from the global free list
2726 from O(N) to O(1) when the required blocks are <= the number
2729 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2731 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
2733 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
2735 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
2736 * testsuite/23_containers/deque/14340.cc: New.
2737 * testsuite/23_containers/list/14340.cc: New.
2738 * testsuite/23_containers/map/14340.cc: New.
2739 * testsuite/23_containers/multimap/14340.cc: New.
2740 * testsuite/23_containers/multiset/14340.cc: New.
2741 * testsuite/23_containers/set/14340.cc: New.
2742 * testsuite/23_containers/vector/14340.cc: New.
2744 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
2747 * include/debug/safe_iterator.h (_Safe_iterator converting
2748 constructor): Only allow declaration to instantiate when the
2749 incoming _Safe_iterator has exactly the right iterator type.
2751 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
2753 * include/bits/boost_concept_check.h: Fix old attribute syntax.
2754 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
2755 to pass concept-checks.
2756 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2757 * testsuite/23_containers/set/modifiers/swap.cc: Same.
2758 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2760 2004-05-16 Paolo Carlini <pcarlini@suse.de>
2762 * include/std/std_bitset.h: Minor formatting fixes.
2764 2004-05-16 Paolo Carlini <pcarlini@suse.de>
2766 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2767 Consistently update __bin._M_free[0].
2768 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
2769 __bin._M_free[0] to simplify the while loop (i.e., the number
2770 of iterations becomes known at the outset).
2772 2004-05-15 Paolo Carlini <pcarlini@suse.de>
2774 * include/std/std_bitset.h: Trivial formatting fixes.
2776 2004-05-14 Paolo Carlini <pcarlini@suse.de>
2777 Ivan Godard <igodard@pacbell.net>
2780 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
2781 * testsuite/23_containers/bitset/ext/15361.cc: New.
2783 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2786 * crossconfig.m4: Add C99 math bits for linux crosses.
2787 * configure: Regenerate.
2789 2004-05-13 Simon Marshall <simon.marshall@misys.com>
2790 Benjamin Kosnik <bkoz@redhat.com>
2793 * include/bits/locale_facets.h: Fix for -fno-for-scope.
2794 * include/debug/safe_sequence.h: Same.
2795 * include/debug/safe_iterator.tcc: Same.
2796 * src/debug.cc: Same.
2797 * src/locale.cc: Same.
2798 * src/locale_init.cc: Same.
2799 * src/localename.cc: Same.
2800 * config/locale/gnu/ctype_members.cc: Same.
2801 * config/locale/gnu/numeric_members.cc: Same.
2802 * testsuite/testsuite_abi.cc: Same.
2803 * testsuite/testsuite_hooks.cc: Same.
2805 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
2807 * docs/html/abi.html: Document effect of -fabi-version on value
2808 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
2811 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2814 * docs/html/faq/index.html: Update docs for libsupc++ usage.
2816 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2819 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
2821 (_GLIBCXX_mutex_address): Same.
2822 (_GLIBCXX_once): Same.
2823 (_GLIBCXX_mutex_init): Same.
2824 (_GLIBCXX_mutex_address_init): Same.
2826 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2828 * docs/html/abi.html: New.
2829 * docs/html/abi.txt: Remove.
2830 * docs/html/documentation.html: Add link.
2831 * testsuite/Makefile.am: Add files.
2832 * testsuite/Makefile.in: Regenerated.
2833 * testsuite/abi_check.cc: Move and modify code into...
2834 * testsuite/testsuite_abi.cc: Add.
2835 * testsuite/testsuite_abi.h: Add.
2837 * docs/html/17_intro/TODO: Update.
2838 * include/bits/stl_pair.h: Format.
2840 2004-05-06 Matthias Klose <doko@debian.org>
2842 * include/backward/iterator.h: Add GPL copyright info,
2843 with exception clause.
2844 * include/bits/boost_concept_check.h: Likewise.
2846 * libsupc++/tinfo.h: Likewise.
2847 * po/string_literals.cc: Likewise.
2849 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
2851 * acinclude.m4: Replace -W with more speaking -Wextra.
2852 * configure: Rebuilt.
2854 2004-05-03 Paolo Carlini <pcarlini@suse.de>
2856 Optimize locale::_M_impl->_M_names for the most common cases:
2857 !_M_names[0] means unnamed; !_M_names[1] means all the categories
2858 the same name (_M_names[0] && _M_names[1] means that the full set
2859 of _M_names must be processed, the general case).
2860 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
2861 Tweak, saving work when !_M_names[1].
2862 (locale::locale(const locale&, _Facet*): Simplify: now just setting
2863 _M_names[0] = 0 means unnamed.
2864 * src/locale.cc (locale::operator==): Deal first with the common,
2865 easy cases, otherwise fall back to locale::name().
2866 (locale::name()): Tweak, if !_M_names[0] just return "*".
2867 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
2868 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
2869 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
2870 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
2871 Simplify when !std::strchr, just updating _M_names[0]; clean up.
2872 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
2873 for the general case (full set of names), then do the usual work;
2876 * src/locale.cc (locale::name()): Reserve space in __ret.
2877 * src/locale_init.cc (locale::global(const locale&)): Save
2878 the name in a temporary.
2879 * src/localename.cc (locale::locale(const char*)): Reserve space
2882 2004-04-29 Paolo Carlini <pcarlini@suse.de>
2884 * src/locale.cc (locale::operator==): Always avoid constructing
2885 locale::name(), directly compare pairs of _M_names.
2887 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2889 * include/bits/istream.tcc: Fix comment.
2891 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2893 * include/bits/stl_vector.h: Trivial formatting fixes.
2894 * include/bits/vector.tcc: Likewise.
2896 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2898 PR libstdc++/15002 (continued again)
2899 * include/bits/istream.tcc (getline(basic_istream<>&,
2900 basic_string<>&, _CharT)): Use a temporary buffer, thus
2901 avoiding reallocation for common case.
2903 * include/bits/basic_string.tcc (_S_construct(_InIterator,
2904 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
2905 of temporary buffer to a power of two.
2907 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
2909 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2911 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2913 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2915 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2917 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2918 Petur Runolfsson <peturr02@ru.is>
2920 PR libstdc++/15002 (continued)
2921 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
2922 streamsize, char_type)): Use traits::find/copy in a loop to speed
2923 up greatly the function in the common case (I/O buffer size >> 1).
2925 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2927 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
2929 * include/bits/istream.tcc (getline(basic_istream<>&,
2930 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
2931 of sbumpc(), consistently with the other functions, thus also
2932 dealing correctly with the case of exceeded string::max_size().
2934 2004-04-24 Matthias Klose <doko@debian.org>
2936 Jonathan Wakely <cow@compsoc.man.ac.uk>
2937 * docs/html/configopts.html: Fix reference to allocator config option.
2939 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
2941 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
2942 * configure: Regenerate.
2944 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
2946 PR libstdc++/15047, libstdc++/11610
2947 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
2948 (libstdc++_init): Don't pass outdir to v3-copy-files.
2950 2004-04-21 Paolo Carlini <pcarlini@suse.de>
2952 * include/bits/deque.tcc: Trivial formatting fixes.
2953 * include/bits/stl_deque.h: Likewise.
2954 * include/bits/stl_list.h: Likewise.
2955 * include/bits/stl_tree.h: Likewise.
2957 2004-04-21 Paolo Carlini <pcarlini@suse.de>
2958 Andrew Pinski <pinskia@physics.uc.edu>
2960 * include/bits/basic_string.tcc (_M_mutate): Don't compute
2961 __src unnecessarily.
2963 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
2965 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
2966 Clarify assertion, set test variable to false before assert.
2967 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
2968 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
2969 * testsuite/27_io/ios_base/storage/2.cc: Same.
2971 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
2973 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
2974 * testsuite/27_io/fpos/14320-3.cc: Same.
2976 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
2977 * testsuite/27_io/fpos/1.cc: Same.
2978 * testsuite/27_io/basic_stringstream/2.cc: Same.
2979 * testsuite/27_io/basic_stringbuf/4.cc: Same.
2980 * testsuite/27_io/basic_stringbuf/1.cc: Same.
2981 * testsuite/27_io/basic_stringbuf/2.cc: Same.
2982 * testsuite/27_io/basic_streambuf/2.cc: Same.
2983 * testsuite/27_io/basic_ostringstream/2.cc: Same.
2984 * testsuite/27_io/basic_ostream/2.cc: Same.
2985 * testsuite/27_io/basic_ofstream/2.cc: Same.
2986 * testsuite/27_io/basic_istringstream/2.cc: Same.
2987 * testsuite/27_io/basic_istream/2.cc: Same.
2988 * testsuite/27_io/basic_iostream/2.cc: Same.
2989 * testsuite/27_io/basic_ios/2.cc: Same.
2990 * testsuite/27_io/basic_ifstream/2.cc: Same.
2991 * testsuite/27_io/basic_fstream/2.cc: Same.
2992 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
2994 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
2995 unsigned against zero.
2996 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
2997 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
2999 * testsuite/18_support/new_delete_placement.cc: Initialize
3000 variables before first use.
3001 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
3002 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
3003 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
3004 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
3006 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
3007 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
3009 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
3010 * testsuite/27_io/types/2.cc: Same.
3012 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
3014 * testsuite/27_io/fpos/14775.cc: Same.
3016 2004-04-19 Paolo Carlini <pcarlini@suse.de>
3018 PR libstdc++/15002 (partial)
3019 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
3020 Special case __n2 == 1, not calling traits_type::assign/copy.
3022 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
3024 * include/bits/stl_bvector.h: Use _M_impl._M_start.
3026 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
3028 * include/bits/c++config (_GLIBCXX_STD): New.
3029 * src/list.cc: Use it.
3030 * include/std/std_bitset.h: Same.
3031 * include/bits/vector.tcc: Same.
3032 * include/bits/stl_set.h: Same.
3033 * include/bits/stl_multiset.h: Same.
3034 * include/bits/stl_multimap.h: Same.
3035 * include/bits/stl_map.h: Same.
3036 * include/bits/stl_list.h: Same.
3037 * include/bits/stl_vector.h: Same.
3038 * include/bits/stl_bvector.h: Same.
3039 * include/bits/stl_deque.h: Same.
3040 * include/bits/deque.tcc: Same.
3041 * include/bits/list.tcc: Same.
3042 * include/debug/vector: Same.
3043 * include/debug/set.h: Same.
3044 * include/debug/multiset.h: Same.
3045 * include/debug/multimap.h: Same.
3046 * include/debug/map.h: Same.
3047 * include/debug/list: Same.
3048 * include/debug/deque: Same.
3049 * include/debug/bitset: Same.
3050 * include/debug/formatter.h (__gnu_debug): Remove using directive.
3051 Add using declaration for std::type_info.
3052 * include/debug/safe_iterator.h: Add using declaration for
3053 std::iterator_traits and std::pair.
3054 * src/debug_list.cc: New.
3055 * src/Makefile.am: Add debug_list.cc.
3056 * src/Makefile.in: Regenerate.
3057 * config/linker-map.gnu: Add _List_node_base exports for std and
3060 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
3061 idiom that other containers use.
3062 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
3064 2004-04-16 Paolo Carlini <pcarlini@suse.de>
3067 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
3069 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
3070 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
3072 2004-04-16 Paolo Carlini <pcarlini@suse.de>
3074 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
3076 * config.h.in: Regenerate.
3078 2004-04-16 Paolo Carlini <pcarlini@suse.de>
3080 * config/locale/generic/monetary_members.cc
3081 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
3082 btowc unnecessarily, just cast to wchar_t (the concerned chars
3083 all belong to the basic character set).
3084 * config/locale/generic/numeric_members.cc
3085 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
3086 * config/locale/gnu/monetary_members.cc
3087 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
3088 * config/locale/gnu/numeric_members.cc
3089 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
3091 2004-04-15 Paolo Carlini <pcarlini@suse.de>
3093 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
3094 avoid constructing unnecessarily this->name().
3096 2004-04-14 Zack Weinberg <zack@codesourcery.com>
3098 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
3099 Change definition of CXX to use $(shell) instead of backticks.
3100 * testsuite/Makefile.in: Regenerate.
3102 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
3104 * testsuite/performance/20_util/allocator/list_sort_search.cc:
3105 Minor formatting fixes.
3106 * testsuite/performance/20_util/allocator/map_mt_find.cc:
3109 2004-04-12 Paolo Carlini <pcarlini@suse.de>
3111 * config/locale/gnu/numeric_members.cc
3112 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
3113 in __uselocale, since btowc is called for chars belonging to
3114 the basic character set.
3116 2004-04-09 Paolo Carlini <pcarlini@suse.de>
3118 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
3119 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
3120 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
3121 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
3122 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
3123 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
3124 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
3125 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
3126 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
3127 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
3128 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
3129 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
3130 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
3131 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
3132 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
3133 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
3134 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
3136 2004-04-07 Paolo Carlini <pcarlini@suse.de>
3138 * config/locale/generic/time_members.cc
3139 (__timepunct<char>::_M_initialize_timepunct,
3140 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
3141 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
3142 * config/locale/gnu/time_members.cc
3143 (__timepunct<char>::_M_initialize_timepunct,
3144 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
3145 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
3146 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
3148 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
3149 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
3150 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
3151 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
3152 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
3153 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
3154 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
3155 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
3156 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
3157 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
3158 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
3159 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
3160 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
3161 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
3162 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
3163 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
3164 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
3165 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
3166 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
3167 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
3168 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
3169 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
3170 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
3171 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
3172 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
3173 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
3174 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
3175 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
3176 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
3177 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
3178 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
3179 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
3180 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
3181 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
3182 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
3183 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
3185 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
3187 2004-04-07 Paolo Carlini <pcarlini@suse.de>
3189 * config/locale/gnu/monetary_members.cc
3190 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
3191 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
3192 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
3193 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
3194 * config/locale/gnu/numeric_members.cc
3195 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
3196 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
3198 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
3200 Fixups for EDG front end.
3201 * include/ext/rope: Instead of non-existent function
3202 _Data_allocate, use allocator's allocate. Use this.
3203 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
3204 enumerations from _Rope_RopeRep here.
3205 * include/ext/ropeimpl.h: Same.
3206 * src/ext-inst.cc (_S_min_len): Fix up definition.
3208 * config/locale/gnu/ctype_members.cc: Qualify base class members
3210 * config/locale/generic/ctype_members.cc: Same.
3211 * config/locale/gnu/messages_members.h: Same.
3212 * config/locale/generic/messages_members.h: Same.
3213 * src/ctype.cc: Same.
3214 * include/bits/codecvt.h: Same.
3216 * include/bits/boost_concept_check.h: Declare.
3217 (__error_type_must_be_an_unsigned_integer_type): Remove this.
3218 (__error_type_must_be_an_integer_type): Remove this.
3219 (__error_type_must_be_a_signed_integer_type): Remove this.
3221 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
3223 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
3224 specification to definition.
3225 (__cxa_allocate_exception): Same.
3226 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
3227 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
3228 (__cxa_get_globals): Same.
3230 * libsupc++/del_op.cc: Add comment about freestanding.
3232 2004-04-05 Paolo Carlini <pcarlini@suse.de>
3234 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3235 The critical section is actually very small, only two assignments.
3237 2004-04-04 Paolo Carlini <pcarlini@suse.de>
3238 Petur Runolfsson <peturr02@ru.is>
3240 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
3241 adapted from libstdc++/11378.
3243 2004-04-03 Paolo Carlini <pcarlini@suse.de>
3245 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
3246 some duplicated code.
3247 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
3248 in the single threaded case.
3249 * testsuite/performance/20_util/allocator/list_sort_search.cc:
3250 Reorder and renumber the tests consistently with the other testfiles.
3251 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3252 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3253 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3255 2004-04-02 Paolo Carlini <pcarlini@suse.de>
3257 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3258 Rearrange arithmetic to avoid computing two divisions at
3261 2004-04-01 Paolo Carlini <pcarlini@suse.de>
3263 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
3264 Streamline the second half, wrapping it in a single
3265 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
3266 conditionals inside loops.
3268 2004-04-01 Paolo Carlini <pcarlini@suse.de>
3271 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
3272 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
3273 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
3274 to _GLIBCXX_RES_LIMITS.
3275 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
3277 * testsuite/testsuite_hooks.h: Declare set_file_limit.
3278 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
3279 and setrlimit(RLIMIT_FSIZE).
3280 * testsuite/27_io/fpos/14775.cc: New.
3281 * config.h.in: Regenerate.
3282 * configure: Likewise.
3284 2004-03-31 Paolo Carlini <pcarlini@suse.de>
3286 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
3287 In v3 uses of sscanf, the special floating-point numbers INF,
3288 INFINITY, etc., cannot occur in input, therefore, if the latter
3289 is too large, ERANGE is always stored in errno, no need of finitel.
3291 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
3294 * include/bits/stl_tree.h: Adjust initialization list order.
3296 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
3298 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
3300 2004-03-29 Paolo Carlini <pcarlini@suse.de>
3302 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
3303 on allocator behavior, the memory pointed by data2 may well be not
3306 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
3309 * include/bits/basic_string.tcc
3310 (basic_string::basic_string(const basic_string&)): Pass to
3311 _Rep::_M_grab the actual allocator of the string being constructed
3312 not the default constructed one.
3314 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
3317 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
3318 (__enc_traits::_M_destroy): New.
3319 (__enc_traits::~__enc_traits): Use it.
3320 (__enc_traits::operator=): Use _M_destroy, _M_init.
3321 (__enc_traits::__enc_traits): Same.
3323 2004-03-27 Petur Runolfsson <peturr02@ru.is>
3325 * testsuite/ext/enc_filebuf/char/13598.cc: New.
3327 2004-03-27 Paolo Carlini <pcarlini@suse.de>
3329 * include/ext/mt_allocator.h: Uglify consistently names of
3330 variables, members and classes; tidy.
3332 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
3334 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3335 Deallocation loop rewrote.
3337 2004-03-26 Paolo Carlini <pcarlini@suse.de>
3339 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3340 __mt_alloc<>::deallocate): Protect two instances of
3341 block->thread_id with __GTHREADS.
3343 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
3345 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
3346 default argument in constructors.
3347 (_Rb_tree::_M_empty_initialize): Remove.
3349 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
3351 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
3352 * testsuite/23_containers/set/operators/1_neg.cc: Same.
3354 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3356 * include/bits/cpp_type_traits.h: Changed __is_pod
3357 completely. Now, it does not use any of the previous type_traits
3358 to detect the pod types, and it also detects function pointers as
3361 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
3362 which encapsulates the internal implementation of an rb_tree. Made
3363 the allocator a base class of this class instead of the rb_tree,
3364 which was not conforming. This _Rb_tree_impl class is also
3365 specialized on whether the _Compare parameter is a POD type or
3366 not. If so, then it maintains the comparison function as a data
3367 member, otherwise it makes the _Compare parameter a base class of
3368 itself. Also, _M_key_compare is now a function instead of a data
3369 member, so that the above trick can work properly. Delegated the
3370 initialization of the other data members to this newly created
3371 class. Also, now other member functions of rb_tree must refer to
3372 _M_key_compare as _M_impl._M_key_compare(). The other data members
3373 (*) can be referenced to as _M_impl.(*), where
3374 (*) includes _M_header, and _M_node_count.
3376 2004-03-25 Paolo Carlini <pcarlini@suse.de>
3378 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
3379 Add _M_min_bin, the size in bytes of the smallest bin.
3380 (__mt_alloc<>::tune()): Tweak accordingly.
3381 (__mt_alloc<>::tune(size_t, ...)): Likewise.
3382 (__mt_alloc<>::block_record): Change to a union: members next
3383 and thread_id are never used at the same time.
3384 (__mt_alloc<>::allocate): Update consistently.
3385 (__mt_alloc<>::deallocate): Likewise.
3386 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
3387 _S_bin_size for the configurable _M_min_size.
3389 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3391 * include/bits/stl_list.h: Created a _List_impl class and made it
3392 derive from the allocator, instead of the list deriving from the
3393 allocator class, which was not conformant. Changed all references
3394 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
3395 as above (changed all references to the concerned variables).
3397 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3399 * include/bits/stl_deque.h: Created a _Deque_impl class and made
3400 it derive from the allocator, instead of the deque deriving from
3401 the allocator class, which was not conformant. Changed all
3402 references to the _M_start, _M_finish, _M_map, and _M_map_size to
3404 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
3405 qualification in 2 places where it was missing.
3406 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
3408 * include/bits/deque.tcc: Same as above (changed all references to
3409 the concerned variables).
3411 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3413 * include/bits/stl_vector.h: Created a _Vector_impl class and made
3414 it derive from the allocator, instead of the _Vector_base class,
3415 deriving from the allocator which was not conformant. Changed all
3416 references to the _M_start, _M_finish, and _M_end_of_storage to
3418 * include/bits/vector.tcc: Same as above (changed all references
3419 to the concerned variables).
3421 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3423 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
3424 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
3425 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
3427 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3429 * include/ext/malloc_allocator.h: Fixed the construct function to
3430 call global placement new instead of assignment. Added a check
3431 after the return from malloc to check whether returned pointer is
3432 NULL, and if so, throw std::bad_alloc().
3433 * include/ext/debug_allocator.h: Added a check in the deallocate
3434 function to check whether the user has passed a NULL pointer or
3437 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
3439 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
3441 2004-03-24 Andreas Schwab <schwab@suse.de>
3443 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
3444 warning from IA64 assembler.
3446 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3448 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
3449 function call __builtin_ctz instead of the while loop.
3450 (allocate) -> If condition has __builtin_expect.
3451 (deallocate) -> Ditto.
3452 Renamed a few left-over variables and typedefs according to the
3453 C++STYLE mentioned in the documentation.
3454 Protected calls to __gthread* by __gthread_active_p(), whose value
3455 is cached in the local variable __threads_active.
3457 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
3459 * testsuite/performance/20_util/allocator/producer_consumer.cc:
3460 Use linear algorithm for producer.
3462 2004-03-24 Paolo Carlini <pcarlini@suse.de>
3464 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3465 __mt_alloc<>::deallocate): Avoid redundant conditionals.
3467 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
3469 * include/bits/locale_facets.h: Tweaks for 80 column.
3470 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
3471 (__moneypunct_cache::_M_cache): Same.
3472 (num_get): Don't inherit from __num_base.
3474 (money_get): Don't inherit from money_base.
3476 (__timepunct::_M_am_pm_format): New.
3477 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
3478 (time_get::_M_extract_name): Same.
3479 (time_get::_M_extract_via_format): Same.
3480 * include/bits/locale_facets.tcc: Tweaks for 80 column.
3481 Use _M_getloc instead of getloc.
3482 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
3483 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
3484 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
3486 2004-03-22 Paolo Carlini <pcarlini@suse.de>
3488 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
3489 * configure: Regenerate.
3490 * config/allocator/pool_allocator_base.h: New.
3491 * include/ext/pool_allocator.h: Convert to a standard-conforming
3493 * src/allocator.cc: Tweak instantiations.
3494 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
3495 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
3496 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
3497 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3498 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3499 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3501 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
3503 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
3504 inline" and attribute-unused. Qualify parameter __mem with
3506 (__exchange_and_add): Ditto. Add back memory clobber to asm.
3508 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3510 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
3512 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
3514 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
3516 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
3518 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
3520 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
3522 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3524 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3526 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
3528 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3531 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3533 * include/std/std_valarray.h: Document DR389 [Ready].
3534 * docs/html/ext/howto.html: Add an entry for DR389.
3536 2004-03-19 Michael Eager <eager@mvista.com>
3538 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
3541 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3543 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
3545 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
3546 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
3547 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
3548 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
3549 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
3550 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
3551 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
3552 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
3553 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
3555 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3556 Petur Runolfsson <peturr02@ru.is>
3559 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
3560 no way to find out the conversion used by the underlying FILE*.
3561 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
3562 * testsuite/27_io/objects/char/9.cc: Tweak.
3564 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3567 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
3568 memory allocation/deallocation calls.
3569 * testsuite/ext/14648.cc: New.
3571 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
3574 * include/backward/bvector.h (bit_vector): Allocator is in std
3577 2004-03-19 Phil Edwards <phil@codesourcery.com>
3579 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
3580 not libiconv. SUBST this variable as well.
3581 * testsuite/Makefile.am (site.exp): New target, based on that
3582 created by automake. Also set libiconv.
3584 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
3585 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
3586 testsuite/Makefile.in: Regenerate.
3588 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
3590 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
3591 new_allocator for all hosts.
3592 * configure: Regenerate.
3594 2004-03-16 Paolo Carlini <pcarlini@suse.de>
3596 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
3597 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
3599 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3601 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3602 Adjust the logic underlying the parsing of symbol to deal
3603 correctly with an optional sign component (i.e., when either
3604 negative_sign or positive_sign is empty)
3605 * testsuite/22_locale/money_get/get/char/19.cc: New.
3606 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
3608 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3610 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3611 Do not accept an incomplete currency symbol.
3612 * testsuite/22_locale/money_get/get/char/18.cc: New.
3613 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
3615 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
3617 * config/allocator: New.
3618 * config/allocator/bitmap_allocator_base.h: New.
3619 * config/allocator/malloc_allocator_base.h: New.
3620 * config/allocator/mt_allocator_base.h: New.
3621 * config/allocator/new_allocator_base.h: New.
3622 * include/bits/allocator.h: Include c++allocator.h.
3623 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
3624 * aclocal.m4: Regenerate.
3625 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
3626 * configure: Regenerate.
3627 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
3628 * include/Makefile.in: Regenerate.
3629 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
3631 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3633 * include/bits/allocator.h: Revert.
3635 2004-03-12 Paolo Carlini <pcarlini@suse.de>
3637 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
3638 * include/bits/gslice_array.h: Add comment about DR 253.
3639 * include/bits/indirect_array.h: Likewise.
3640 * include/bits/mask_array.h: Likewise.
3641 * include/bits/slice_array.h: Likewise.
3643 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3645 * testsuite/20_util/allocator/14176.cc: New.
3646 * include/ext/mt_allocator.h: Formatting fixes.
3648 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
3650 * include/Makefile.am (ext_headers): Add
3651 ${ext_srcdir}/bitmap_allocator.h .
3652 * include/Makefile.in: Regenerate.
3653 * docs/html/ext/ballocator_doc.txt: New file.
3654 * include/ext/bitmap_allocator.h: New file.
3655 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
3657 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
3658 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
3659 test for the bitmap_allocator<>.
3660 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
3661 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
3662 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
3664 2004-03-11 Paolo Carlini <pcarlini@suse.de>
3666 * include/std/std_complex.h (pow(const complex&, const _Tp&),
3667 pow(const _Tp&, const complex&), pow(const complex&,
3668 const complex&)): Fully qualify with std:: a few calls.
3669 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
3671 2004-03-11 Steven Bosscher <stevenb@suse.de>
3674 * include/c_std/cmath.tcc (__cmath_power): Define inline.
3676 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
3678 * configure.ac: Bump AC_PREREQ to 2.59.
3680 2004-03-10 Paolo Carlini <pcarlini@suse.de>
3682 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
3684 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
3685 Paolo Carlini <pcarlini@suse.de>
3688 * include/std/std_complex.h (pow(const complex&, const _Tp&),
3689 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
3690 * testsuite/26_numerics/complex/13450.cc: New.
3692 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
3693 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
3695 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
3698 * include/bits/gslice_array.h (gslice_array()): Make public.
3699 (operator=(gslice_array)): Make public. Implement.
3700 * include/bits/indirect_array.h (indirect_array()): Make public.
3701 * include/bits/mask_array.h (mask_array()): Make public.
3702 (operator=(mask_array)): Make public. Implement.
3703 * include/bits/valarray_array.tcc (__valarray_copy):
3704 Comment. Add versions for gslice_array and mask_array.
3705 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
3707 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
3709 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
3711 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
3712 * testsuite/23_containers/set/modifiers/swap.cc: Same.
3713 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
3714 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
3715 * testsuite/23_containers/map/modifiers/swap.cc: Same.
3716 * testsuite/23_containers/list/modifiers/swap.cc: Same.
3718 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
3720 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
3723 * testsuite/23_containers/deque/modifiers/swap.cc: New.
3724 * testsuite/23_containers/list/modifiers/swap.cc: New.
3725 * testsuite/23_containers/map/modifiers/swap.cc: New.
3726 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
3727 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
3728 * testsuite/23_containers/set/modifiers/swap.cc: New.
3729 * testsuite/23_containers/vector/modifiers/swap.cc: New.
3731 2004-03-08 Petur Runolfsson <peturr02@ru.is>
3734 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
3736 2004-03-08 Paolo Carlini <pcarlini@suse.de>
3738 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
3739 * include/bits/stl_multiset.h: Add comment about DR 103.
3740 * include/bits/stl_set.h: Likewise.
3742 2004-03-08 Paolo Carlini <pcarlini@suse.de>
3744 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3745 The value _space_ indicates that at least one space is required
3747 * testsuite/22_locale/money_get/get/char/17.cc: New.
3748 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
3750 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
3751 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
3753 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
3754 Remove redundant conditional on __str.size().
3756 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
3758 * include/bits/allocator.h: Switch defaults to mt_alloc.
3760 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
3762 * include/ext/mt_allocator.h (_S_initialize): If
3763 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
3765 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
3768 * src/locale_init.cc (locale::locale): Lock critical regions with
3770 (locale::global): Same.
3771 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
3772 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
3773 (__glibcxx_mutex_lock): Same.
3775 * config/cpu/generic/atomicity.h: Remove
3776 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
3777 * src/misc-inst.cc: Move all locking bits out of this file.
3779 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
3780 * src/misc-inst.cc: Same.
3781 * config/cpu/hppa/atomicity.h: Same.
3783 * config/linker-map.gnu: Remove types in the signature of atomic
3784 exports, as they may vary.
3786 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3788 * include/bits/locale_facets.tcc: Tweak the comment preceding
3789 has_facet: doesn't throw.
3791 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3793 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
3794 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3795 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3796 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3797 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3798 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3799 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3800 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3802 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3804 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3805 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
3806 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
3807 * testsuite/testsuite_character.h (struct __gnu_test::character):
3809 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
3812 2004-03-05 Paolo Carlini <pcarlini@suse.de>
3814 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
3816 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
3818 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
3820 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
3822 * testsuite/23_containers/deque/invalidation/4.cc: Same.
3823 * testsuite/23_containers/list/invalidation/1.cc: Same.
3824 * testsuite/23_containers/list/invalidation/2.cc: Same.
3825 * testsuite/23_containers/list/invalidation/3.cc: Same.
3826 * testsuite/23_containers/list/invalidation/4.cc: Same.
3827 * testsuite/23_containers/map/invalidation/2.cc: Same.
3828 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
3829 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3830 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
3831 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3832 * testsuite/23_containers/set/invalidation/1.cc: Same.
3833 * testsuite/23_containers/set/invalidation/2.cc: Same.
3834 * testsuite/23_containers/vector/invalidation/1.cc: Same.
3835 * testsuite/23_containers/vector/invalidation/2.cc: Same.
3836 * testsuite/23_containers/vector/invalidation/3.cc: Same.
3837 * testsuite/23_containers/vector/invalidation/4.cc: Same.
3839 2004-03-04 Paolo Carlini <pcarlini@suse.de>
3841 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
3843 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
3845 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
3846 from the dg-options.
3847 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
3848 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
3849 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
3850 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
3851 * testsuite/23_containers/vector/resize/1.cc: Likewise.
3852 * testsuite/26_numerics/complex_value.cc: Likewise.
3853 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
3854 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
3855 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
3856 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
3857 * testsuite/27_io/objects/char/5.cc: Likewise.
3858 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
3859 * testsuite/backward/11460.cc: Likewise.
3860 * testsuite/thread/pthread7-rope.cc: Likewise.
3862 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
3863 missing test variable.
3864 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
3865 missing test variable.
3867 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
3869 * testsuite/20_util/allocator/1.cc: Provide explicit
3870 instantiations for non-weak systems.
3871 * testsuite/20_util/binders.cc: Same.
3872 * testsuite/20_util/allocator/8230.cc: Same.
3873 * testsuite/20_util/allocator/10378.cc: Same.
3874 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
3875 * testsuite/22_locale/ctype/is/char/2.cc: Same.
3876 * testsuite/thread/pthread7-rope.cc: Same.
3877 * testsuite/thread/pthread6.cc: Same.
3878 * testsuite/thread/pthread5.cc: Same.
3879 * testsuite/thread/pthread4.cc: Same.
3880 * testsuite/thread/pthread1.cc: Same.
3881 * testsuite/ext/rope.cc: Same.
3882 * testsuite/ext/hash_set.cc: Same.
3883 * testsuite/ext/hash_map.cc: Same.
3884 * testsuite/ext/concept_checks.cc: Same.
3885 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
3886 * testsuite/25_algorithms/unique/2.cc: Same.
3887 * testsuite/25_algorithms/unique/1.cc: Same.
3888 * testsuite/25_algorithms/rotate.cc: Same.
3889 * testsuite/25_algorithms/min_max.cc: Same.
3890 * testsuite/25_algorithms/equal.cc: Same.
3891 * testsuite/24_iterators/rel_ops.cc: Same.
3892 * testsuite/24_iterators/iterator.cc: Same.
3893 * testsuite/24_iterators/insert_iterator.cc: Same.
3894 * testsuite/24_iterators/front_insert_iterator.cc: Same.
3895 * testsuite/24_iterators/back_insert_iterator.cc: Same.
3896 * testsuite/23_containers/vector/resize/1.cc: Same.
3897 * testsuite/23_containers/vector/modifiers/2.cc: Same.
3898 * testsuite/23_containers/vector/modifiers/1.cc: Same.
3899 * testsuite/23_containers/vector/invalidation/4.cc: Same.
3900 * testsuite/23_containers/vector/invalidation/3.cc: Same.
3901 * testsuite/23_containers/vector/invalidation/2.cc: Same.
3902 * testsuite/23_containers/vector/invalidation/1.cc: Same.
3903 * testsuite/23_containers/vector/element_access/1.cc: Same.
3904 * testsuite/23_containers/vector/cons/6513.cc: Same.
3905 * testsuite/23_containers/vector/cons/3.cc: Same.
3906 * testsuite/23_containers/vector/cons/2.cc: Same.
3907 * testsuite/23_containers/vector/cons/1.cc: Same.
3908 * testsuite/23_containers/vector/capacity/8230.cc: Same.
3909 * testsuite/23_containers/vector/capacity/1.cc: Same.
3910 * testsuite/23_containers/vector/bool/6886.cc: Same.
3911 * testsuite/23_containers/stack/members/7158.cc: Same.
3912 * testsuite/23_containers/set/invalidation/2.cc: Same.
3913 * testsuite/23_containers/set/invalidation/1.cc: Same.
3914 * testsuite/23_containers/queue/members/7157.cc: Same.
3915 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
3916 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3917 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3918 * testsuite/23_containers/multiset/insert/1.cc: Same.
3919 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3920 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3921 * testsuite/23_containers/map/operators/1.cc: Same.
3922 * testsuite/23_containers/map/invalidation/2.cc: Same.
3923 * testsuite/23_containers/map/invalidation/1.cc: Same.
3924 * testsuite/23_containers/map/insert/1.cc: Same.
3925 * testsuite/23_containers/list/operators/4.cc: Same.
3926 * testsuite/23_containers/list/operators/3.cc: Same.
3927 * testsuite/23_containers/list/operators/2.cc: Same.
3928 * testsuite/23_containers/list/operators/1.cc: Same.
3929 * testsuite/23_containers/list/modifiers/3.cc: Same.
3930 * testsuite/23_containers/list/modifiers/2.cc: Same.
3931 * testsuite/23_containers/list/modifiers/1.cc: Same.
3932 * testsuite/23_containers/list/invalidation/4.cc: Same.
3933 * testsuite/23_containers/list/invalidation/3.cc: Same.
3934 * testsuite/23_containers/list/invalidation/2.cc: Same.
3935 * testsuite/23_containers/list/invalidation/1.cc: Same.
3936 * testsuite/23_containers/list/cons/9.cc: Same.
3937 * testsuite/23_containers/list/cons/8.cc: Same.
3938 * testsuite/23_containers/list/cons/7.cc: Same.
3939 * testsuite/23_containers/list/cons/6.cc: Same.
3940 * testsuite/23_containers/list/cons/5.cc: Same.
3941 * testsuite/23_containers/list/cons/4.cc: Same.
3942 * testsuite/23_containers/list/cons/3.cc: Same.
3943 * testsuite/23_containers/list/cons/2.cc: Same.
3944 * testsuite/23_containers/list/cons/1.cc: Same.
3945 * testsuite/23_containers/list/capacity/1.cc: Same.
3946 * testsuite/23_containers/deque/operators/1.cc: Same.
3947 * testsuite/23_containers/deque/invalidation/4.cc: Same.
3948 * testsuite/23_containers/deque/invalidation/3.cc: Same.
3949 * testsuite/23_containers/deque/invalidation/2.cc: Same.
3950 * testsuite/23_containers/deque/invalidation/1.cc: Same.
3951 * testsuite/23_containers/deque/cons/2.cc: Same.
3952 * testsuite/23_containers/deque/cons/1.cc: Same.
3954 * src/allocator.cc: Add char, wchar_t instantiations
3955 to match extern template declarations in memory.h.
3957 2004-03-03 Paolo Carlini <pcarlini@suse.de>
3959 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3960 Fix warning regression.
3962 2004-03-03 Paolo Carlini <pcarlini@suse.de>
3964 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3965 Deal properly with empty __digits and negative frac_digits,
3968 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
3970 * docs/html/documentation.html: Regenerate.
3972 2004-03-02 Paolo Carlini <pcarlini@suse.de>
3975 * include/bits/postypes.h (class streamoff): Remove, now
3976 streamoff is just typedef a 64 bit signed integer type.
3977 (class fpos): Tweak consistently.
3978 * testsuite/27_io/fpos/14320-1.cc: New.
3979 * testsuite/27_io/fpos/14320-2.cc: New.
3980 * testsuite/27_io/fpos/14320-3.cc: New.
3981 * testsuite/27_io/fpos/14320-4.cc: New.
3982 * testsuite/27_io/fpos/14320-5.cc: New.
3983 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
3985 2004-03-02 Paolo Carlini <pcarlini@suse.de>
3987 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3988 Reorganize a bit the main parsing loop, thus early detecting
3989 an empty value component.
3990 * testsuite/22_locale/money_get/get/char/16.cc: New.
3991 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
3993 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
3995 Support automake 1.8.2
3996 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
3997 * po/Makefile.am (EXTRA_DIST): New.
3998 * po/Makefile.in: Regenerate.
3999 * Makefile.in: Same.
4000 * include/Makefile.in: Same.
4001 * libmath/Makefile.in: Same.
4002 * libsupc++/Makefile.in: Same.
4003 * src/Makefile.in: Same.
4004 * testsuite/Makefile.in: Same.
4006 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
4007 __GXX_WEAK__ instead of SUPPORTS_WEAK.
4008 (${host_builddir}/gthr-default.h): Same.
4009 (${host_builddir}/gthr.h): Same.
4010 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
4011 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
4013 * aclocal.m4: Regenerate.
4014 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
4015 * config.h.in: Regenerate.
4018 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
4020 Support autoconf 2.59
4021 * acinclude.m4: Quote correctly.
4022 * aclocal.m4: Regenerate.
4025 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
4027 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
4029 * docs/html/18_support/howto.html: Add bit about writing to
4030 stderr, mostly by Zack.
4032 2004-03-01 Paolo Carlini <pcarlini@suse.de>
4034 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
4035 money_get<>::do_get(string_type&)): ... and two more.
4037 2004-03-01 Paolo Carlini <pcarlini@suse.de>
4039 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4040 Fix thinkos in the switch from string_type& to string& as last
4043 2004-03-01 Paolo Carlini <pcarlini@suse.de>
4045 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
4046 Also when parsing exponent sign, first look for thousands_sep
4047 and decimal_point; tweak a bit.
4048 * testsuite/22_locale/num_get/get/char/15.cc: New.
4049 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
4051 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4052 num_get<>::_M_extract_int): Reorder some conditionals.
4054 2004-03-01 Paolo Carlini <pcarlini@suse.de>
4056 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4057 Consistently with numpunct, enforce the requirements in
4058 22.2.6.3, p3 for the thousands separators; tweak a bit.
4059 * testsuite/22_locale/money_get/get/char/15.cc: New.
4060 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
4062 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
4064 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
4065 testsuite_files from correct multilib blddir when running
4068 2004-02-29 Phil Edwards <phil@codesourcery.com>
4070 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
4071 the summary file to the logfile.
4072 * testsuite/Makefile.in: Regenerate.
4074 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4076 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
4078 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
4079 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
4081 2004-02-28 Paolo Carlini <pcarlini@suse.de>
4083 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
4084 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
4085 no 'decimal-point' in the middle: in this case too we must fix
4086 up __found_grouping; slightly tweak.
4087 * testsuite/22_locale/num_get/get/char/14.cc: New.
4088 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
4090 2004-02-27 Eric Christopher <echristo@redhat.com>
4091 Phil Edwards <phil@codesourcery.com>
4093 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
4094 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
4095 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
4096 testsuite/22_locale/collate/hash/wchar_t/2.cc,
4097 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
4098 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
4099 testsuite/22_locale/collate/transform/wchar_t/2.cc,
4100 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
4101 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4102 Use dg-require-iconv.
4103 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
4105 2004-02-27 Phil Edwards <phil@codesourcery.com>
4106 Eric Christopher <echristo@redhat.com>
4108 * testsuite/config/default.exp: Update with comments.
4109 (${tool}_target_compile): New wrapper routine.
4110 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
4111 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
4113 (load_gcc_lib, v3track): New routines.
4114 (v3-init): Rename to libstdc++_init.
4115 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
4116 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
4118 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
4120 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
4122 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
4124 * config/os/irix/irix5.2/atomicity.h: Merge..
4125 * config/os/irix/irix6.5/atomicity.h: Merge..
4126 * config/os/irix/atomicity.h: ...into this.
4127 * config/os/irix/atomic_word.h: New.
4128 * configure.host: Set atomic_word_dir for irix.
4130 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
4131 * i386/atomicity.h: Same.
4132 * m68k/atomicity.h: Same.
4133 * sparc/atomicity.h: Same.
4135 2004-02-27 David Edelsohn <edelsohn@gnu.org>
4137 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
4138 static, and inline keywords.
4140 2004-02-27 Paolo Carlini <pcarlini@suse.de>
4142 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4143 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
4144 call reserve on the __tmp_gruping string.
4145 (num_get<>::_M_extract_float): Don't append unnecessarily a
4146 char() to the returned string.
4147 * include/bits/locale_facets.tcc: Trivial reformattings.
4149 2004-02-27 Paolo Carlini <pcarlini@suse.de>
4151 * include/bits/locale_facets.h (money_get<>::_M_extract):
4152 Change signature: now takes a plain string&.
4153 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4154 Update consistently the definition; use the moneypunct cache
4155 to parse the value; use swap to change __units.
4156 (money_get<>::do_get(long double&)): Update call of _M_extract,
4157 avoid ctype::narrow, not correct wrt the standard.
4158 (money_get<>::do_get(string_type&)): Likewise, update call
4159 of _M_extract, use ctype::widen.
4160 * src/locale-inst.cc: Tweak instantiations of _M_extract.
4162 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
4164 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
4165 * testsuite/demangle/abi_examples/02.cc: Likewise.
4166 * testsuite/demangle/regression/cw-11.cc: Likewise.
4167 * testsuite/demangle/regression/cw-16.cc: Change two expected
4168 results to match libiberty demangler output.
4170 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
4173 * libsupc++/Makefile.am: Use libiberty demangler.
4174 (c_sources): Add cp-demangle.c.
4175 * libsupc++/Makefile.in: Regenerate.
4176 * src/Makefile.am (sources): Remove demangle.cc.
4177 * src/Makefile.in: Regenerate.
4178 * include/Makefile.am (bits_headers): Move demangle.h.
4179 (ext_headers): ...here.
4180 * include/Makefile.in: Regenerate.
4181 * include/bits/demangle.h: Move...
4182 * include/ext/demangle.h: ...here.
4183 * src/demangle.cc: Remove.
4185 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
4187 * include/bits/demangle.h: Add type template parameter to all
4188 templates with just an Allocator template parameter.
4190 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
4192 * include/bits/atomicity.h: New, forward declarations for __atomic_add
4193 and __exchange_and_add.
4194 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
4195 * config/cpu/cris/atomic_word.h: Same.
4196 * config/cpu/sparc/atomic_word.h: Same.
4197 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
4198 Qualifiy with __gnu_cxx.
4199 (_Callback_list::_M_add_reference): Same.
4200 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
4201 (locale::facet::_M_remove_reference): Same.
4202 (locale::_Impl::_M_add_reference): Add.
4203 (locale::_Impl::_M_remove_reference): Same.
4204 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
4205 (basic_string::_Rep::_M_dispose): Same.
4206 * src/ios.cc (ios_base::xalloc): Same.
4207 * src/ios_init.cc (ios_base::Init::Init): Same.
4208 (ios_base::Init::~Init): Same.
4209 * src/locale.cc (locale::id::_M_id): Same.
4210 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
4211 static, and inline keywords.
4212 * config/cpu/alpha/atomicity.h: Same.
4213 * config/cpu/cris/atomicity.h: Same.
4214 * config/cpu/generic/atomicity.h: Same.
4215 * config/cpu/hppa/atomicity.h: Same.
4216 * config/cpu/i386/atomicity.h: Same.
4217 * config/cpu/ia64/atomicity.h: Same.
4218 * config/cpu/m68k/atomicity.h: Same.
4219 * config/cpu/mips/atomicity.h: Same.
4220 * config/cpu/powerpc/atomicity.h: Same.
4221 * config/cpu/s390/atomicity.h: Same.
4222 * config/cpu/sparc/atomicity.h: Same.
4224 * src/Makefile.am (host_sources): Add atomicity.cc.
4225 (atomicity.cc): New rule.
4226 * src/Makefile.in: Regenerate.
4227 * include/Makefile.am (host_headers): Remove host atomicity.h.
4228 (host_headers): Add atomic_word.h.
4229 (bits_headers): Add bits atomicity.h.
4230 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
4231 * include/Makefile.in: Regenerate.
4232 * configure.host (atomic_word_dir): Add.
4233 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
4234 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
4235 * configure: Regenerate.
4236 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
4238 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
4239 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
4241 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
4243 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
4244 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
4245 Fix markup, more <link> tags.
4247 2004-02-25 Carlo Wood <carlo@alinoe.com>
4250 namespace __gnu_cxx::demangler
4251 (session<Allocator>::qualifier_list_Allocator): Add
4252 (session<Allocator>::M_qualifier_list_alloc): Add
4253 (session<Allocator>::decode_type_with_postfix):
4254 Use M_qualifier_list_alloc instead of calling operator new/delete.
4256 2004-02-24 Paolo Carlini <pcarlini@suse.de>
4259 * include/bits/postypes.h (class streamoff): Add operator++(),
4260 operator++(int), operator--() and operator--(int).
4261 * testsuite/27_io/fpos/14252.cc: New.
4263 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
4265 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
4266 error in handling of hex constants.
4268 2004-02-24 Paolo Carlini <pcarlini@suse.de>
4270 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4271 Prefer basic_string::append to operator+= and a temporary.
4273 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
4275 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
4276 Only use fputs, not write.
4278 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
4280 * include/ext/malloc_allocator.h: Add operators ==, !=.
4281 * include/ext/new_allocator.h: Add operators ==, !=.
4282 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
4283 (__mt_alloc::_S_get_options): New.
4284 (__mt_alloc::_S_set_options): New.
4285 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
4286 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
4287 Move functions out of line, simplify, format.
4288 * src/allocator.cc: Simplify explicit instantiations.
4289 * include/bits/allocator.h: Tweak.
4291 2004-02-22 Paolo Carlini <pcarlini@suse.de>
4293 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4294 Restructure formatting of value component, first dealing with
4295 the non-decimal digits; use reserve.
4297 2004-02-22 Paolo Carlini <pcarlini@suse.de>
4299 * include/bits/locale_facets.h (class money_get): Inherit
4300 from money_base too; tweak declaration of _M_extract, now
4301 parameterized on _Intl too.
4302 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4303 Update definition to use the cache; call reserve on __res to
4304 avoid multiple reallocations; fix parsing of sign component
4305 according to 22.2.6.1.2, p3.
4306 (money_get<>::do_get(long double&),
4307 money_get<>::do_get(string_type&)): Update calls of _M_extract.
4308 * src/locale-inst.cc: Add instantiations of
4309 money_get::_M_extract<false> and money_get::_M_extract<true>.
4310 * testsuite/22_locale/money_get/get/char/14.cc: New.
4311 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
4313 2004-02-21 Mark Mitchell <mark@codesourcery.com>
4315 * libsupc++/vterminate.cc
4316 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
4318 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
4320 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
4321 not set RLIMIT_AS on HP-UX.
4323 2004-02-21 Mark Mitchell <mark@codesourcery.com>
4325 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
4326 not set RLIMIT_AS on HP-UX.
4328 2004-02-21 Paolo Carlini <pcarlini@suse.de>
4330 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
4331 _S_zero, _S_end } enum, _S_atoms.
4332 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
4333 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
4334 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
4335 (__moneypunct_cache<>::~__moneypunct_cache): Update.
4336 (__moneypunct_cache<>::_M_cache): Fill the cache.
4337 (class moneypunct): Tweak __cache_type typedef.
4338 (class money_put): Inherit from money_base too; tweak declaration
4339 of _M_insert, now parameterized on _Intl.
4340 * include/bits/locale_facets.tcc
4341 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
4342 (money_put<>::_M_insert): Update definition to use the cache;
4343 call reserve on __res to avoid multiple reallocations.
4344 (money_put<>::do_put(long double),
4345 money_put<>::do_put(const string_type&): Update calls of _M_insert.
4346 * config/locale/generic/monetary_members.cc
4347 (moneypunct<char, true>::_M_initialize_moneypunct,
4348 moneypunct<char, false>::_M_initialize_moneypunct,
4349 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
4350 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
4351 * config/locale/gnu/monetary_members.cc: Likewise.
4352 * config/locale/gnu/monetary_members.cc
4353 (moneypunct<wchar_t, true>::~moneypunct(),
4354 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
4355 * src/globals_locale.cc: Tweak fake_money_cache_c.
4356 * src/locale-inst.cc: Add instantiations for
4357 money_put::_M_insert<false> and money_put::_M_insert<true> and
4358 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
4359 * src/locale_facets.cc: Define money_base::_S_atoms.
4360 * src/locale_init.cc: Update placement new of
4361 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
4362 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
4364 * config/locale/generic/numeric_members.cc: Clean up.
4365 * config/locale/gnu/numeric_members.cc: Likewise.
4366 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
4367 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
4368 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
4369 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
4370 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
4371 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
4373 2004-02-20 Mark Mitchell <mark@codesourcery.com>
4375 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
4376 FIFO for writing with ios_base::in|ios_base::out.
4377 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
4378 * testsuite/27_io/objects/char/7.cc: Likewise.
4379 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
4382 2004-02-19 David Edelsohn <edelsohn@gnu.org>
4384 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
4385 from iso-8859-1 to ISO8859-1.
4386 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
4387 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
4388 * 22_locale/collate/hash/wchar_t/2.cc: Same.
4389 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
4390 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
4391 * 22_locale/collate/transform/wchar_t/2.cc: Same.
4392 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
4393 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
4395 2004-02-18 Paolo Carlini <pcarlini@suse.de>
4397 * include/bits/locale_facets.h (money_get<>::_M_extract):
4398 New, helper for do_get.
4399 (money_put<>::_M_insert): Likewise, for do_put.
4400 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
4401 money_put<>::_M_insert): Define.
4402 (money_get<>::do_get(long double&), money_get<>::do_get(
4403 string_type&), money_put::do_put(long double),
4404 money_put::do_put(const string_type&)): Use the helpers.
4406 2004-02-18 Paolo Carlini <pcarlini@suse.de>
4408 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4409 Rewrite, avoiding recursion.
4410 (__gnu_internal::xwrite): Minor tweaks.
4412 2004-02-17 Stefan Olsson <stefan@xapa.se>
4414 * include/ext/mt_allocator.h: Removed the last
4415 pointer. Deallocated blocks are now added to the front of
4416 freelists as proposed by Felix Yen. This gives roughly 10%
4417 performance boost and saves some memory.
4418 * docs/html/ext/mt_allocator.html: Change due to that deallocated
4419 blocks now are added to the front of freelists. The reason to this
4420 approach is also explained.
4422 2004-02-17 Paolo Carlini <pcarlini@suse.de>
4424 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4425 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
4426 grouping fidelity conditional.
4428 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4430 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
4431 Qualify exception with std::.
4432 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
4433 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4434 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4435 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4436 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4438 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4440 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
4441 for now that the catch block is not reached.
4442 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
4444 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4446 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4447 Fix parsing of the remaining sign characters.
4448 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
4449 the input is scanned 'til eof.
4450 * 22_locale/money_get/get/char/4.cc: Likewise.
4451 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
4452 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
4453 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
4454 not do_pos_format: the former is the only one that matters during
4456 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
4458 * 22_locale/money_get/get/char/6.cc: Minor tweak.
4459 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
4461 2004-02-15 David Asher <david.asher@cavium.com>
4464 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
4465 access __olds beyond __oldlen.
4467 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4469 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
4470 sure the exception is actually thrown.
4471 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4472 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4473 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4475 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4478 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
4479 In case of conversion errors, throw ios_failure; simplify.
4480 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
4481 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4482 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
4483 previously we didn't throw in case of conversion errors, instead
4484 just returned eof().
4485 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4486 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4487 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4489 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
4490 Trivial simplification of a conditional.
4492 2004-02-12 Paolo Carlini <pcarlini@suse.de>
4494 PR libstdc++/13731 (final part: writev)
4495 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4496 New, a wrapper around writev() handling partial writes.
4497 (__basic_file<char>::xwrite): Move to __gnu_internal and make
4499 (__basic_file<char>::xsputn): Update call.
4500 (__basic_file<char>::xsputn_2): Likewise.
4501 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4502 Don't declare, now static.
4504 2004-02-11 Stefan Olsson <stefan@xapa.se>
4506 * docs/html/ext/mt_allocator.html: New.
4508 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
4510 * docs/html/20_util/allocator.html: New file, consolidate
4511 allocator information here. Revamp.
4512 * docs/html/documentation.html: Change links.
4513 * docs/html/20_util/howto.html: Same.
4514 * docs/html/ext/howto.html: Same.
4516 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4518 PR libstdc++/13731 (first part: write)
4519 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4521 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
4522 Define it: a wrapper around write() handling partial write.
4523 (__basic_file<char>::xsputn): Use it.
4524 (__basic_file<char>::xsputn_2): Likewise.
4526 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4527 Petur Runolfsson <peturr02@ru.is>
4530 * include/std/std_istream.h (operator>>(__istream_type& (*)
4531 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
4532 operator>>(ios_base& (*)(ios_base&))): Declare inline.
4533 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
4534 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
4535 operator<<(ios_base& (*) (ios_base&))): Likewise.
4536 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
4538 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
4541 * config/linker-map.gnu: Add typeinfo and typeinfo name for
4542 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
4545 * config/linker-map.gnu: Add typeinfo and typeinfo name for
4546 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
4548 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
4550 * include/ext/pool_allocator.h: Include c++config.h.
4552 2004-02-09 Stefan Olsson <stefan@xapa.se>
4554 * include/ext/mt_allocator.h: thread_id is unused in non threaded
4555 applications and now has a ifdef to remove it completely on
4556 compilers without thread support. Include stdlib.h due to a
4557 compiler warning on getenv().
4559 2004-02-09 Paul Brook <paul@codesourcery.com>
4561 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
4563 2004-02-09 Paolo Carlini <pcarlini@suse.de>
4566 * src/locale_init.cc (locale::global(const locale&)): Use
4567 locale::name() in order to decide whether calling setlocale.
4568 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
4570 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
4571 Avoid computing &= unnecessarily.
4573 2004-02-09 James E Wilson <wilson@specifixinc.com>
4576 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
4577 __builtin_extend_pointer.
4579 2004-02-09 Paolo Carlini <pcarlini@suse.de>
4582 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
4583 Don't leave dangling pointers.
4584 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
4585 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
4586 facet is needed in the final test.
4588 2004-02-09 Bernardo Innocenti <bernie@develer.com>
4590 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
4591 * configure: Regenerate.
4593 2004-02-08 Richard Henderson <rth@redhat.com>
4596 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
4597 uncaughtExceptions during nested catch rethrow.
4598 * testsuite/18_support/14026.cc: New.
4600 2004-02-08 Paolo Carlini <pcarlini@suse.de>
4602 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
4603 When working in place remember to set the state to sharable
4604 (otherwise, _M_mutate does it).
4606 2004-02-08 Bernardo Innocenti <bernie@develer.com>
4608 * include/bits/allocator.h, include/bits/basic_ios.h,
4609 include/bits/basic_ios.tcc, include/bits/basic_string.h,
4610 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
4611 include/bits/char_traits.h, include/bits/codecvt.h,
4612 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
4613 include/bits/demangle.h, include/bits/deque.tcc,
4614 include/bits/fstream.tcc, include/bits/functexcept.h,
4615 include/bits/gslice.h, include/bits/gslice_array.h,
4616 include/bits/indirect_array.h, include/bits/ios_base.h,
4617 include/bits/istream.tcc, include/bits/list.tcc,
4618 include/bits/locale_classes.h, include/bits/locale_facets.h,
4619 include/bits/locale_facets.tcc, include/bits/localefwd.h,
4620 include/bits/mask_array.h, include/bits/ostream.tcc,
4621 include/bits/postypes.h, include/bits/slice_array.h,
4622 include/bits/sstream.tcc, include/bits/stl_algo.h,
4623 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
4624 include/bits/stl_construct.h, include/bits/stl_deque.h,
4625 include/bits/stl_function.h, include/bits/stl_heap.h,
4626 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
4627 include/bits/stl_list.h, include/bits/stl_map.h,
4628 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
4629 include/bits/stl_numeric.h, include/bits/stl_pair.h,
4630 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
4631 include/bits/stl_relops.h, include/bits/stl_set.h,
4632 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
4633 include/bits/stl_threads.h, include/bits/stl_tree.h,
4634 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
4635 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
4636 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
4637 include/bits/type_traits.h, include/bits/valarray_after.h,
4638 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
4639 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
4640 trailing whitespace.
4642 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4644 * include/bits/basic_string.h: Fix comment.
4646 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4648 * include/bits/stl_construct.h: Wrap overlong lines, reformat
4649 according to the coding standards.
4650 * include/bits/stl_pair.h: Likewise.
4651 * include/bits/stl_raw_storage_iter.h: Likewise.
4652 * include/bits/stl_stack.h: Likewise.
4653 * include/bits/stl_uninitialized.h: Likewise.
4654 * include/bits/stream_iterator.h: Likewise.
4655 * include/bits/streambuf_iterator.h: Likewise.
4656 * include/bits/type_traits.h: Likewise.
4658 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4660 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4663 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
4665 * scripts/check_performance: Support PCH.
4667 * scripts/check_performance (CXX): Add -DNOTHREAD.
4668 * testsuite/performance/20_util/allocator/insert.cc: Integrate
4669 threaded tests from insert_insert.cc. Tweak iterations,
4670 remove special cases.
4671 * testsuite/performance/20_util/allocator/insert_insert.cc:
4672 Make all tests single-threaded. Tweak iterations.
4673 * testsuite/performance/20_util/allocator/map_thread.cc:
4675 * testsuite/performance/20_util/allocator/producer_consumer.cc:
4678 2004-02-05 Geoffrey Keating <geoffk@apple.com>
4682 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
4683 'gcc-lib'. Add comment about poorly-named variables.
4684 * aclocal.m4: Regenerate.
4685 * configure: Regenerate.
4687 2004-02-05 Paolo Carlini <pcarlini@suse.de>
4689 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4690 Thousands-sep are always optional; thousands-sep are not allowed
4691 after the decimal_point.
4692 * testsuite/22_locale/money_get/get/char/12.cc: New.
4693 * testsuite/22_locale/money_get/get/char/13.cc: New.
4694 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
4695 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
4697 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
4698 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
4699 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
4700 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
4701 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
4702 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
4703 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
4704 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
4706 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
4708 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
4710 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
4712 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
4714 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
4715 it to decide whether FIONREAD should take an off_t or int argument.
4717 2004-02-05 Paolo Carlini <pcarlini@suse.de>
4719 * include/bits/stl_function.h: Minor formatting changes.
4721 2004-02-04 Zack Weinberg <zack@codesourcery.com>
4723 Revert previous change to config/abi/*/baseline_symbols.txt.
4725 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
4726 Zack Weinberg <zack@codesourcery.com>
4728 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
4730 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
4731 (__basic_file<char>::_M_open_mode): Delete.
4732 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
4734 * testsuite/27_io/basic_filebuf/close/char/9964.cc
4735 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4736 Correct flags to filebuf::open calls.
4738 * config/abi/alpha-freebsd5/baseline_symbols.txt
4739 * config/abi/alpha-linux-gnu/baseline_symbols.txt
4740 * config/abi/hppa-linux-gnu/baseline_symbols.txt
4741 * config/abi/i386-freebsd4/baseline_symbols.txt
4742 * config/abi/i386-freebsd5/baseline_symbols.txt
4743 * config/abi/i486-linux-gnu/baseline_symbols.txt
4744 * config/abi/ia64-linux-gnu/baseline_symbols.txt
4745 * config/abi/mips-linux-gnu/baseline_symbols.txt
4746 * config/abi/sparc-freebsd5/baseline_symbols.txt
4747 * config/abi/sparc-linux-gnu/baseline_symbols.txt
4748 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
4749 Remove entry for __basic_file<char>::_M_open_mode.
4751 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
4753 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
4755 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
4757 * testsuite/performance/20_util/producer_consumer.cc: New.
4758 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
4760 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
4762 * testsuite/performance/20_util/allocator.cc: Move to..
4763 * testsuite/performance/20_util/allocator/insert.cc: ...here.
4764 * testsuite/performance/20_util/allocator_thread.cc: Move to...
4765 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
4766 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
4767 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
4769 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
4771 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
4772 * docs/html/faq/index.txt: Regenerate.
4774 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
4776 * include/ext/debug_allocator.h: _M_extra now stands for the
4777 number of extra objects instead of the number of extra bytes.
4778 (debug_allocator::allocate): Adjust.
4779 (debug_allocator::deallocate): Adjust.
4781 * include/ext/pool_allocator.h: Fix typo.
4783 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
4784 Benjamin Kosnik <bkoz@redhat.com>
4786 * testsuite/performance/20_util/allocator.cc: Add map,
4788 * testsuite/performance/20_util/allocator_thread.cc: Same.
4790 2004-02-03 Paolo Carlini <pcarlini@suse.de>
4792 * include/bits/basic_string.h (insert(iterator)): Remove,
4793 non-standard and already scheduled for removal.
4795 2004-02-03 Paolo Carlini <pcarlini@suse.de>
4797 * include/bits/stl_iterator_base_funcs.h: Minor formatting
4798 and indentation tweaks.
4799 * include/bits/stl_iterator_base_types.h: Likewise.
4800 * include/bits/stl_list.h: Likewise.
4801 * include/bits/stl_map.h: Likewise.
4802 * include/bits/stl_tempbuf.h: Likewise.
4804 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
4806 * include/bits/gslice.h, include/bits/gslice_array.h,
4807 include/bits/indirect_array.h, include/bits/mask_array.h,
4808 include/bits/slice_array.h, include/bits/stl_numeric.h,
4809 include/std/std_valarray.h: Update copyright years.
4811 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
4813 * include/bits/gslice.h (gslice): Document.
4814 * include/bits/gslice_array.h (gslice_array): Document.
4815 * include/bits/indirect_array (indirect_array): Document.
4816 * include/bits/mask_array (mask_array): Document.
4817 * include/bits/slice_array.h (slice,slice_array): Document.
4818 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
4819 adjacent_difference): Document
4820 * include/std/std_valarray.h (valarray): Document.
4822 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
4824 * docs/html/19_diagnostics/howto.html: Move verbose terminate
4826 * docs/html/18_support/howto.html: Here.
4827 * docs/html/documentation.html: Add reference here.
4829 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4831 * config/locale/gnu/c++locale_internal.h: Remove prototypes
4832 of no longer used GLIBC thread locale functions.
4834 2004-02-02 Eric Christopher <echristo@redhat.com>
4835 Zack Weinberg <zack@codesourcery.com>
4837 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
4839 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
4840 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
4841 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
4842 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
4843 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
4844 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
4845 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
4846 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4849 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4851 * include/bits/stl_function.h: Additional minor tweaks.
4852 * include/bits/stl_multiset.h: Likewise.
4854 * include/bits/stl_queue.h: Minor tweaks.
4856 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4858 PR libstdc++/13976 (continued)
4859 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
4860 Make the second parameter unnamed, to void unused parameter
4862 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
4864 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4867 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
4868 Make the second parameter unnamed, to void unused parameter
4870 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
4871 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
4873 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4875 * include/bits/stl_algo.h: Additional minor tweaks.
4876 * include/bits/stl_map.h: Likewise.
4877 * include/bits/stl_multimap.h: Likewise.
4878 * include/bits/stl_multiset.h: Likewise.
4879 * include/bits/stl_set.h: Likewise.
4880 * include/bits/stl_tree.h: Likewise.
4882 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4884 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
4887 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4889 * include/bits/stl_function.h: Additional minor tweaks.
4891 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4893 * include/bits/deque.tcc: Wrap overlong lines, constify
4894 a few variables, reformat according to the coding standards.
4895 * include/bits/list.tcc: Likewise.
4896 * include/bits/stl_deque.h: Likewise.
4897 * include/bits/stl_function.h: Likewise.
4898 * include/bits/stl_iterator.h: Likewise.
4899 * include/bits/stl_iterator_base_funcs.h: Likewise.
4900 * include/bits/stl_iterator_base_types.h: Likewise.
4901 * include/bits/stl_list.h: Likewise.
4902 * include/bits/stl_map.h: Likewise.
4903 * include/bits/stl_multimap.h: Likewise.
4904 * include/bits/stl_multiset.h: Likewise.
4905 * include/bits/stl_relops.h: Likewise.
4906 * include/bits/stl_set.h: Likewise.
4908 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4910 * include/bits/stl_bvector.h: Wrap overlong lines, constify
4911 a few variables, reformat according to the coding standards.
4912 * include/bits/stl_tree.h: Likewise.
4914 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4916 * include/bits/stl_algo.h: Minor additional reformat, add
4918 * include/bits/stl_algobase.h: Add copyright year.
4920 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4922 * include/bits/stl_algo.h: Wrap overlong lines, constify
4923 a few variables, reformat according to the coding standards.
4924 * include/bits/stl_algobase.h: Likewise.
4925 * include/bits/stl_heap.h: Likewise.
4927 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4929 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
4931 * include/bits/basic_string.h: Fix two comments.
4933 2004-01-31 Per Bothner <per@bothner.com>
4935 * include/ext/mt_allocator.h
4936 (__mt_alloc::_S_thread_freelist_mutex): Guard with
4937 __GTHREAD_MUTEX_INIT.
4939 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4941 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
4943 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4945 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
4946 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
4947 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
4949 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
4951 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
4952 Don't use clear, but instead assign. Use insert.
4954 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
4956 * src/demangle.cc: Add instantiations.
4957 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
4958 * src/Makefile.in: Regenerate.
4960 2004-01-30 David Edelsohn <edelsohn@gnu.org>
4962 * src/allocator.cc: Protect _S_get_thread_id() and
4963 _S_thread_key_destr() with #ifdef __GTHREADS.
4965 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4967 Reshuffle performance testsuite.
4968 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
4969 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
4970 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
4971 fstream_seek_write.cc, ifstream_extract_float.cc,
4972 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
4973 list_create_fill_sort.cc, map_create_fill.cc,
4974 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
4975 ofstream_insert_float.cc, ofstream_insert_int.cc,
4976 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
4977 wchar_t_out.cc: Split into...
4978 * testsuite/performance/20_util/allocator.cc: New.
4979 * testsuite/performance/20_util/allocator_map_thread.cc: New.
4980 * testsuite/performance/20_util/allocator_thread.cc: New.
4981 * testsuite/performance/21_strings/string_append: New.
4982 * testsuite/performance/22_locale/is_wchar_t.cc: New.
4983 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
4984 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
4985 * testsuite/performance/22_locale/wchar_t_in.cc: New.
4986 * testsuite/performance/22_locale/wchar_t_length.cc: New.
4987 * testsuite/performance/22_locale/wchar_t_out.cc: New.
4988 * testsuite/performance/23_containers/container_benchmark.cc: New.
4989 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
4990 * testsuite/performance/23_containers/map_create_fill.cc: New.
4991 * testsuite/performance/26_numerics/complex_norm.cc: New.
4992 * testsuite/performance/27_io/cout_insert_int.cc: New.
4993 * testsuite/performance/27_io/filebuf_copy.cc: New.
4994 * testsuite/performance/27_io/filebuf_sputc.cc: New.
4995 * testsuite/performance/27_io/fstream_seek_write.cc: New.
4996 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
4997 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
4998 * testsuite/performance/27_io/ifstream_getline.cc: New.
4999 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
5000 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
5002 2004-01-30 Paolo Carlini <pcarlini@suse.de>
5004 * include/bits/basic_string.tcc (_Rep::_S_create):
5005 Never allocate a string bigger than max_size(); always keep
5006 __capacity and __size in sync to avoid memory leaks at
5009 2004-01-30 Paolo Carlini <pcarlini@suse.de>
5011 * include/bits/basic_string.tcc (_S_construct(_InIterator,
5012 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
5013 the double loop, streamline.
5015 * include/bits/basic_string.tcc: Very minor tweaks.
5017 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
5019 * scripts/check_performance: Only compile with $THREAD_FLAG
5020 when test is marked to require it. Allow multiple
5021 compilations/executions of marked tests.
5022 * testsuite/testsuite_performance.h (report_performance):
5023 Report dynamic thread support status.
5024 (report_header): Likewise.
5025 * testsuite/performance/allocator.cc: Stabilize iteration
5026 count. Support more allocators. Mark each allocator test to
5027 run and report independently.
5028 * testsuite/performance/allocator_map_thread.cc: Likewise.
5029 * testsuite/performance/allocator_thread.cc: Likewise.
5031 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
5033 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
5034 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
5035 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
5036 std::get_temporary_buffer() instead of duplicating its code.
5037 Update to C++STYLE conventions.
5038 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
5039 new() instead of std::malloc().
5040 (return_temporary_buffer): Use ::operator delete() instead of
5043 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
5045 * include/bits/allocator.h: Temporary switch to new_allocator as
5046 the default to unjam bootstraps.
5048 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
5050 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
5051 * include/Makefile.in: Regenerate.
5052 * include/bits/allocator_traits.h: Remove.
5053 * include/bits/allocator.h: Remove allocator_traits.h include, and
5055 (allocator): Empty base class, inherit from the underlying allocator.
5056 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
5057 * src/allocator.cc: ...here. New. For the underlying allocators.
5058 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
5059 * config/linker-map.gnu: Remove __pool_alloc bits.
5060 * src/Makefile.am (sources): Add allocator.cc.
5061 * src/Makefile.in: Regenerate.
5062 * testsuite/20_util/allocator/1.cc: Split second test into...
5063 * testsuite/20_util/allocator/8230.cc: ...this.
5064 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
5065 typedef to use std::allocatore. Format.
5066 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
5068 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
5069 __throw_bad_alloc calls. Don't include <memory>.
5070 * include/ext/malloc_allocator.h: Remove <memory> include.
5071 * include/ext/new_allocator.h (new_allocator): Same.
5072 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
5073 declaration. Switch __alloc to _Alloc.
5074 * include/ext/hashtable.h: Remove __alloc.
5075 * include/backward/alloc.h: Only inject allocator, not
5076 implementation details.
5078 * include/ext/mt_allocator.h: Replace free with delete.
5080 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
5082 * src/globals_io.cc: Change to __gnu_internal namespace.
5083 * src/globals_locale.cc: Same.
5084 * src/locale_init.cc: Same.
5085 * src/ios_init.cc: Same.
5087 2004-01-28 Stefan Olsson <stefan@snon.net>
5089 * include/ext/mt_allocator.h: Replaced all malloc() calls with
5090 operator new(). Added support for the env variable
5091 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
5092 one in allocate() as well). Fix typos.
5094 2004-01-28 Paolo Carlini <pcarlini@suse.de>
5096 * include/bits/basic_string.h (_S_create(size_t,
5097 const _Alloc&): Change signature to take two size_type
5099 * include/bits/basic_string.tcc (_S_construct(_InIterator,
5100 _InIterator, const _Alloc&, input_iterator_tag)): Update
5102 (_S_construct(_InIterator, _InIterator, const _Alloc&,
5103 forward_iterator_tag)): Likewise.
5104 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
5105 (_M_mutate(size_type, size_type, size_type)): Don't
5106 implement the exponential growth policy, demand it to
5107 _S_create, update call and simplify.
5108 (_M_clone(const _Alloc&, size_type)): Likewise.
5109 (_S_create(size_type, size_type, const _Alloc&)): Implement
5110 the growth policy, simplify otherwise.
5112 * include/bits/basic_string.h (_Rep::operator[]): Tweak
5113 signature to take a size_type, consistently with the other
5116 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
5118 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
5119 delete declarations, add include and test variable.
5121 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
5123 * include/bits/codecvt.h, include/bits/locale_facets.h,
5124 include/bits/postypes.h, include/bits/stl_bvector.h,
5125 include/bits/stl_multiset.h, include/bits/stl_set.h,
5126 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
5127 include/std/std_complex.h: Document.
5129 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
5132 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
5133 iword/pword selector.
5134 (ios_base::iword, ios_base::pword): Use it.
5135 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
5136 iword or pword member on alloc failure.
5137 * testsuite/27_io/ios_base/storage/11584.cc: New test.
5139 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
5140 PJ Darcy <darcypj@us.ibm.com>
5142 * configure.host: Add support for *-tpf.
5143 * crossconfig.m4: Likewise.
5144 * configure: Regenerate.
5145 * config/os/tpf: New directory.
5146 * config/os/tpf/os_defines.h: New file.
5147 * config/os/tpf/ctype_base.h: Likewise.
5148 * config/os/tpf/ctype_inline.h: Likewise.
5149 * config/os/tpf/ctype_noninline.h: Likewise.
5151 2004-01-27 Paolo Carlini <pcarlini@suse.de>
5154 * include/bits/sstream.tcc: Guard use of extern template.
5156 2004-01-27 Paolo Carlini <pcarlini@suse.de>
5158 * include/bits/basic_string.tcc
5159 (basic_string(const basic_string&, size_type, size_type),
5160 basic_string(const basic_string&, size_type, size_type,
5161 const _Alloc&)): Avoid unnecessarily constructing iterators.
5163 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5165 * config/locale/generic/c_locale.cc: Fix throw messages
5166 to use the __N marker.
5167 * config/locale/gnu/c_locale.cc: Likewise.
5168 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
5170 * docs/html/17_intro/C++STYLE: Likewise.
5171 * include/bits/basic_ios.tcc: Likewise.
5172 * include/bits/fstream.tcc: Likewise.
5173 * include/bits/vector.tcc: Likewise.
5174 * include/ext/ropeimpl.h: Likewise.
5175 * include/std/std_bitset.h: Likewise.
5176 * src/ios.cc: Likewise.
5177 * src/locale.cc: Likewise.
5178 * src/localename.cc: Likewise.
5180 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5182 * include/bits/basic_string.h (_M_replace_aux): Use the
5183 __N marker in throw message.
5184 * include/bits/basic_string.tcc (assign(const _CharT*,
5185 size_type), insert(size_type, const _CharT*, size_type),
5186 replace(size_type, size_type, const _CharT*, size_type),
5187 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
5190 * include/bits/basic_string.h, include/bits/basic_string.tcc:
5191 Fold overlong lines, minor formatting changes.
5193 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5195 * include/bits/basic_string.h (replace(iterator, iterator,
5196 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
5197 (replace(iterator, iterator, const _CharT*)): Ditto.
5198 (replace(iterator, iterator, const _CharT*, size_type)):
5199 Add missing _GLIBCXX_DEBUG_PEDASSERT.
5201 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5203 * include/bits/basic_string.tcc (replace(size_type,
5204 size_type, const _CharT*, size_type)): Implement optimized
5205 in-place algorithm for non-overlapping ranges.
5206 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
5207 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
5209 * include/bits/basic_string.tcc (insert(size_type,
5210 const _CharT*, size_type)): Tweak slightly.
5212 2004-01-26 Andreas Schwab <schwab@suse.de>
5214 * config/locale/gnu/monetary_members.cc: Restore locale before
5215 rethrowing exception.
5217 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5219 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
5221 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
5224 * include/bits/basic_string.tcc: Very minor tweaks.
5226 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5228 * testsuite/performance/string_append.cc: Increase number
5231 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5233 * include/bits/basic_string.h (erase(size_type, size_type),
5234 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
5235 instead, thus avoiding redundant check for length_error.
5237 * include/bits/basic_string.h: Tweak some comments.
5239 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5241 * include/bits/basic_string.tcc (operator+(const _CharT*,
5242 const basic_string&)): No need to go through the append
5243 taking two iterators.
5245 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5247 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
5248 Revert last change to use std::min: machine language is worse.
5249 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
5250 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5251 (find_last_not_of(_CharT, size_type)): Ditto.
5253 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
5254 size_type)): Discard the value returned by _M_check.
5255 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
5256 (append(const basic_string&, size_type, size_type)): Ditto.
5257 (copy(_CharT*, size_type, size_type)): Ditto.
5258 (compare(size_type, size_type, const basic_string&)): Ditto.
5259 (compare(size_type, size_type, const basic_string&,
5260 size_type, size_type)): Ditto.
5261 (compare(size_type, size_type, const _CharT*)): Ditto.
5262 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5264 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5266 * include/bits/basic_string.h (insert(size_type,
5267 const basic_string&, size_type, size_type)): Define inline here.
5268 * include/bits/basic_string.tcc (insert(size_type,
5269 const basic_string&, size_type, size_type)): Move inline.
5271 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5273 * include/bits/basic_string.h (assign(const basic_string&,
5274 size_type, size_type)): Define inline here.
5275 (replace(size_type, size_type, const basic_string&,
5276 size_type, size_type)): Ditto.
5277 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5278 _InputIterator, __false_type)): Only declare.
5279 (_M_replace(iterator, iterator, _InputIterator,
5280 _InputIterator)): Remove.
5281 * include/bits/basic_string.tcc (assign(const basic_string&,
5282 size_type, size_type)): Move inline.
5283 (replace(size_type, size_type, const basic_string&,
5284 size_type, size_type)): Ditto.
5285 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5286 _InputIterator, __false_type)): Define, now does also what
5287 _M_replace did before.
5288 * src/string-inst.cc (_M_replace): Don't instantiate.
5290 * include/bits/basic_string.tcc (find(const _CharT*,
5291 size_type, size_type)): Tidy.
5292 (rfind(_CharT, size_type)): Ditto.
5293 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
5294 (find_first_not_of(_CharT, size_type)): Ditto.
5295 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5296 (find_last_not_of(_CharT, size_type)): Ditto.
5298 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5301 * include/debug/bitset (operator|=): Fix typo.
5302 * testsuite/23_containers/bitset/operations/13838.cc: New.
5304 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5306 * include/bits/basic_string.tcc (insert(size_type,
5307 const _CharT*, size_type __n)): Fix length_error check.
5308 (replace(size_type, size_type, const _CharT*, size_type):
5309 Ditto; call _M_replace_safe.
5310 (_M_replace_aux(size_type, size_type, size_type, _CharT):
5311 Fix length_error check.
5312 (_M_replace(iterator, iterator, _InputIterator,
5313 _InputIterator)): Ditto, tweak.
5314 (_M_replace_safe(size_type, size_type, const _CharT*,
5315 size_type)): Remove length_error check.
5317 * include/bits/basic_string.tcc (append(const basic_string&),
5318 append(const basic_string&, size_type, size_type)): Tweak
5321 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
5322 size_type)): If __n == 0 don't call traits::copy.
5324 2004-01-23 Stefan Olsson <stefan@snon.net>
5326 * include/ext/mt_allocator.h: Reduce lock contention.
5328 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5331 * include/bits/fstream.tcc (underflow): Remove unused
5333 * include/bits/streambuf_iterator.h (equal): Ditto.
5334 * include/bits/locale_facets.h (_M_convert_from_char):
5337 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5340 * config/linker-map.gnu (nan): Delete.
5341 * libmath/mathconf.h (NAN, nan): Delete.
5342 * linkage.m4 (nan): Don't check for it.
5343 * libmath/nan.c: Delete file.
5345 * config.h.in, configure: Regenerate.
5347 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5349 * include/bits/basic_string.h (push_back(_CharT)):
5350 Call _M_replace_aux.
5351 (insert(size_type, const basic_string&)): Trivial tweak.
5352 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
5353 (insert(iterator, _CharT)): Ditto.
5354 (erase(size_type, size_type)): Ditto.
5355 (erase(iterator)): Ditto.
5356 (erase(iterator, iterator)): Ditto.
5357 (replace(size_type, size_type, size_type, _CharT)): Ditto.
5359 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
5362 * testsuite/performance/allocator_map_thread.cc: New test.
5364 2004-01-22 Paolo Carlini <pcarlini@suse.de>
5366 * include/bits/locale_facets.tcc
5367 (money_put::do_put(..., long double)): Use the basic_string
5368 constructor for char arrays, not that for C-strings, to pass
5369 __digits to do_put(..., const string_type&): __ws isn't
5372 2004-01-22 Paolo Carlini <pcarlini@suse.de>
5374 * include/bits/basic_string.h (_M_replace_safe): Change
5375 signatures to take size_types and const _CharT*.
5376 (_M_replace_aux): Likewise, takes size_types instead of
5378 (append(size_type, _CharT)): Update call.
5379 (assign(size_type, _CharT)): Ditto.
5380 (replace(iterator, iterator, size_type, _CharT)): Ditto.
5381 (_M_replace_dispatch(iterator, iterator, _Integer,
5382 _Integer, __true_type)): Ditto.
5383 * include/bits/basic_string.tcc (assign(const _CharT*,
5385 (insert(size_type, const _CharT*, size_type)): Ditto.
5386 (replace(size_type, size_type, const _CharT*,
5388 (_M_replace(iterator, iterator, _InputIterator,
5389 _InputIterator)): Ditto.
5390 (append(const basic_string&)): Ditto.
5391 (append(const basic_string&, size_type, size_type): Ditto.
5392 (append(const _CharT*, size_type): Ditto.
5393 (_M_replace_safe, _M_replace_safe): Change definitions
5394 accordingly, simplify.
5395 * string-inst.cc (_M_replace_safe): Don't instantiate.
5397 2004-01-21 Paolo Carlini <pcarlini@suse.de>
5399 * include/bits/basic_string.tcc (append(const basic_string&)):
5400 Revert previous change.
5401 (append(const basic_string&, size_type, size_type)): Revert
5402 previous change, use _M_check and _M_limit.
5404 2004-01-21 Paolo Carlini <pcarlini@suse.de>
5406 * include/bits/basic_string.h (_M_check): Change to return
5407 a checked __pos and take an additional const char* argument.
5408 (_M_fold): Rename to _M_limit, change to return a size_type,
5409 corresponding to the __off limited to the actual length.
5410 (insert(size_type, size_type, _CharT)): Update call, call
5412 (insert(iterator, _CharT)): Call replace(iterator, iterator,
5413 size_type, _CharT) instead.
5414 (erase(size_type, size_type)): Update calls.
5415 (replace(size_type, size_type, size_type, _CharT)): Ditto.
5416 (substr(size_type, size_type)): Use _M_check.
5417 * include/bits/basic_string.tcc (basic_string(const basic_string&,
5418 size_type, size_type)): Update calls.
5419 (basic_string(const basic_string&, size_type, size_type,
5420 const _Alloc&)): Ditto.
5421 (assign(const basic_string&, size_type, size_type)): Use the
5422 new _M_check and _M_limit.
5423 (insert(size_type, const basic_string&, size_type, size_type):
5425 (insert(size_type, const _CharT*, size_type)): Ditto.
5426 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
5427 (replace(size_type, size_type, const basic_string&,
5428 size_type, size_type)): Ditto.
5429 (append(const basic_string&)): Ditto.
5430 (append(const basic_string&, size_type, size_type)): Ditto.
5431 (copy(_CharT*, size_type, size_type)): Ditto.
5432 (compare(size_type, size_type, const basic_string&)): Ditto.
5433 (compare(size_type, size_type, const basic_string&,size_type,
5435 (compare(size_type, size_type, const _CharT*)): Ditto.
5436 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5438 2004-01-19 Stefan Olsson <stefan@snon.net>
5440 * include/ext/mt_allocator.h: If a thread, when it dies, still has
5441 memory on it's freelist this memory is not returned to global
5442 list. Simplification of deallocate so that memory is always
5443 returned to the calling thread id's freelist instead of to
5444 global. Fix typos. Add volatile where appropriate.
5446 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
5448 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
5449 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
5450 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
5452 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5454 * src/debug.cc: Make sure all the names are prefixed with
5455 double (or single) underscore.
5457 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5459 * src/debug.cc: Trivial formatting change.
5461 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5463 * include/bits/basic_string.tcc (_S_construct(size_type,
5464 _CharT, const _Alloc&)): Remove redundant try/catch.
5465 (_M_mutate(size_type, size_type, size_type)): Ditto.
5466 (_M_clone(const _Alloc&, size_type)): Ditto.
5468 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5470 * include/bits/basic_string.h (c_str()): Simplify, due to
5471 21.3.4 the internal representation is always kept null-terminated.
5472 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
5473 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
5474 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
5477 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5479 * include/bits/basic_string.h (append(size_type, _CharT)):
5480 Moved inline, just call _M_replace_aux, no source iterators at
5481 risk of being clobbered.
5482 (assign(size_type, _CharT)): Call directly _M_replace_aux.
5483 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5484 input_iterator_tag)): Remove fifth unused argument.
5485 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5486 _InputIterator, __false_type)): Update call.
5487 * include/bits/basic_string.tcc (replace(size_type, size_type,
5488 const _CharT*, size_type)): Update call.
5489 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
5490 throw string literal.
5491 (_M_replace_safe(iterator, iterator, _ForwardIterator,
5492 _ForwardIterator)): Likewise.
5493 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5494 input_iterator_tag)): Remove fifth unused argument.
5495 (append(size_type __n, _CharT __c)): Move inline.
5496 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
5497 const C*, const C*, input_iterator_tag)): Remove fifth unused
5500 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
5502 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
5503 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
5505 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
5507 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
5510 2004-01-15 Stefan Olsson <stefan@snon.net>
5512 * include/ext/mt_allocator.h: Reuse thread id's as soon as
5513 possible by changing the behaviour of thread_freelist to do
5514 push_front when threads die instead of push_back.
5516 2004-01-14 Paolo Carlini <pcarlini@suse.de>
5518 * include/bits/locale_facets.h (struct __numpunct_cache):
5519 Add member _M_grouping_size, caching the length of _M_grouping.
5520 (__numpunct_cache<>::_M_cache): Assign the latter.
5521 (__verify_grouping): Move declaration...
5522 * include/bits/locale_facets.tcc (__verify_grouping):
5523 ... here, change signature to take a const char* and a size_t
5524 for the grouping; not a template anymore.
5525 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
5526 Likewise change signature and tweak consistently.
5527 (num_get::_M_extract_float, num_get::_M_extract_int,
5528 num_put::_M_insert_int, num_put::_M_insert_float,
5529 money_get::do_get(string_type&), money_get::do_put(string_type)):
5531 * config/locale/generic/numeric_members.cc
5532 (numpunct<>::_M_initialize_numpunct): Assign the new member.
5533 * config/locale/gnu/numeric_members.cc
5534 (numpunct<>::_M_initialize_numpunct): Likewise.
5535 * src/locale-inst.cc (__add_grouping): Tweak signature.
5536 (__verify_grouping): Don't instantiate, not a template anymore.
5538 * include/bits/locale_facets.h: Rename _M_truename_len ->
5539 _M_truename_size, _M_falsename_len -> _M_falsename_size.
5540 * include/bits/locale_facets.tcc: Likewise.
5541 * config/locale/generic/numeric_members.cc: Likewise.
5542 * config/locale/gnu/numeric_members.cc: Likewise.
5544 2004-01-14 Stefan Olsson <stefan@snon.net>
5546 * include/ext/mt_allocator.h: Fixups.
5547 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
5548 * testsuite/performance/allocator_thread.cc: Same.
5550 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
5552 * testsuite/performance/ifstream_extract_float.cc: Add higher
5554 * testsuite/performance/ofstream_insert_float.cc: Same.
5556 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5558 * src/locale-misc-inst.cc (__convert_from_v(long),
5559 __convert_from_v(unsigned long), __convert_from_v(long long),
5560 __convert_from_v(unsigned long long)): Remove, unused.
5562 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
5564 * testsuite/performance/ifstream_extract_float.cc: New.
5565 * testsuite/performance/ofstream_insert_float.cc: Float generation
5568 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
5569 * 20_util/auto_ptr/1.cc: ...this.
5570 * 20_util/auto_ptr/2.cc: Same.
5571 * 20_util/auto_ptr/3.cc: Same.
5572 * 20_util/auto_ptr/3946.cc: Same.
5573 * 20_util/auto_ptr/4.cc: Same.
5574 * 20_util/auto_ptr/5.cc: Same.
5575 * 20_util/auto_ptr/6.cc: Same.
5576 * 20_util/auto_ptr/7.cc: Same.
5577 * 20_util/auto_ptr/assign_neg.cc
5578 * 20_util/pairs.cc: Break into...
5579 * 20_util/pair/1.cc: ...this.
5580 * 20_util/pair/2.cc: Same.
5581 * 20_util/pair/3.cc: Same.
5582 * 20_util/pair/4.cc: Same.
5584 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5586 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
5587 Set correctly just basefield, the only group that matters.
5589 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5591 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
5592 (_Rope_rep_base): Inherit directly from the rope allocator;
5593 use rebinding instead of _Alloc_traits; pick up data member
5594 from _Rope_rep_alloc_base.
5595 (_Rope_alloc_base): Eliminate.
5596 (_Rope_base): Inherit directly from the rope allocator; use
5597 rebinding instead of _Alloc_traits; pick up data member from
5599 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
5600 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
5602 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5605 * include/bits/basic_string.tcc (compare(size_type, size_type,
5606 const _CharT*, size_type)): Implement correctly the resolution
5607 of DR 5: basically, s is a char array, -not- a C string.
5608 * include/bits/basic_string.h: Tweak some comments.
5609 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
5610 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
5612 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
5614 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
5617 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5619 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
5621 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
5624 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5626 * include/bits/locale_facets.h (struct __numpunct_cache):
5627 Add members _M_truename_len and _M_falsename_len, caching
5628 the lengths of _M_truename and _M_falsename.
5629 (__numpunct_cache<>::_M_cache): Assign the latter.
5630 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
5631 num_put::do_put(bool)): Use the new members, thus avoiding
5632 computing string lengths again and again.
5633 * config/locale/generic/numeric_members.cc
5634 (numpunct<>::_M_initialize_numpunct): Assign the new members.
5635 * config/locale/gnu/numeric_members.cc
5636 (numpunct<>::_M_initialize_numpunct): Likewise.
5638 2004-01-12 Mark Mitchell <mark@codesourcery.com>
5640 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
5641 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
5643 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
5644 and remove Cygwin XFAIL.
5645 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
5646 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
5647 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
5648 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
5650 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
5651 * testsuite/27_io/objects/char/7.cc: Likewise.
5652 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
5653 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
5654 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
5656 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
5658 * include/std/std_complex.h (std::complex<>::real): Return a
5659 reference. Add non-const overload.
5660 (std::complex<>::real): Likewise.
5661 (std::real): Likewise.
5662 (std::imag): Likewise.
5663 (std::operator+): Tidy.
5664 (std::operator-): Likewise.
5665 (std::operator*): Likewise.
5666 (std::operator/): Likewise.
5667 (std::operator>>): Likewise.
5669 2004-01-11 Paolo Carlini <pcarlini@suse.de>
5672 * include/bits/fstream.tcc (imbue): Exploit the external
5673 buffer to imbue 'on the fly' a new locale and convert its
5674 remainder with the new codecvt facet.
5675 (underflow): Tweak slightly to deal with this special case.
5676 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
5677 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
5678 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
5679 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
5680 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
5682 2004-01-10 Paolo Carlini <pcarlini@suse.de>
5684 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
5687 2004-01-10 Paolo Carlini <pcarlini@suse.de>
5690 * include/bits/locale_classes.h (class locale): Fix category
5692 * testsuite/22_locale/locale/13630.cc: Add.
5694 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
5696 * include/bits/locale_facets.h: Make a name really dependent. This
5697 will be needed when Core Issue 224 is implemented.
5699 2004-01-09 Paolo Carlini <pcarlini@suse.de>
5701 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
5702 * testsuite/performance/allocator_thread.cc: Likewise.
5704 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
5706 * crossconfig.m4: Add LFS, io bits to linux cross config.
5707 * acconfig.h: Remove obsolete bits, reorder.
5708 * config.h.in: Regenerate.
5712 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
5714 * include/bits/stl_list.h:
5715 * include/bits/list.tc:
5717 Performance enhancements for destructor, push_front(),
5718 push_back(), pop_front(), pop_back(), sort()
5719 Eliminated static_casts where possible.
5720 Moved code out of header files into new src/list.cc
5721 implementation file for library where possible.
5722 Remove inheritance from iterator class and create separate
5723 classes for non-constant and constant iterators.
5724 * include/bits/stl_tree.h (_Rb_tree class):
5726 Only erase contents in destructor.
5727 Eliminate unnecessary initialization in assignment operator.
5728 Optimize for the nominal case by not checking whether
5729 container is empty in clear().
5730 Re-order test in _M_insert() to improve performance.
5731 Move initialization of new node's left & right pointers to
5732 src/tree.cc to where new node's colour is initialized
5733 and to reduce the amount of inline code.
5734 Use _M_leftmost() and _M_end() to improve readability where
5736 Create separate classes for non-constant and constant
5737 iterators to clarify code, avoid extra template parameters and
5738 casting away constness.
5740 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
5742 * src/Makefile.am (sources): Add list.cc, tree.cc.
5743 * src/stl_tree.cc: Move to...
5744 * src/tree.cc: ...here.
5746 * config/linker-map.gnu: Tweaks.
5747 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
5748 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
5750 * bits/stl_vector.h: Column wrap comments.
5752 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
5754 (re-open) PR libstdc++/12658
5755 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
5756 (locale::global): Likewise.
5758 2004-01-07 Paolo Carlini <pcarlini@suse.de>
5760 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
5761 Remove redundant #include.
5762 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
5763 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
5764 re-enable normal testing.
5765 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
5767 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
5768 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
5770 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
5772 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
5774 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
5776 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
5778 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
5780 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
5782 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
5783 More properly, #include <locale>.
5784 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
5785 Remove redundant #include.
5786 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
5787 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
5788 redundant DejaGnu directive.
5789 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
5792 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
5793 Stefan Olsson <stefan@snon.net>
5795 * scripts/check_performance: Use -pthread.
5796 * testsuite/performance/allocator.cc: Tweaks, add list.
5797 * testsuite/performance/allocator_thread.cc: New.
5799 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
5801 * include/bits/locale_facets.h: Document public classes and
5803 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
5806 2004-01-06 Paolo Carlini <pcarlini@suse.de>
5808 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
5809 Remove redundant #includes.
5810 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
5812 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
5814 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
5815 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
5816 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
5817 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
5818 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
5819 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
5820 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
5821 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
5822 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
5823 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
5824 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
5825 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
5826 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
5827 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
5828 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
5830 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
5832 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
5834 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
5836 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
5838 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
5839 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
5840 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
5842 2004-01-04 Paolo Carlini <pcarlini@suse.de>
5844 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
5845 Remove redundant #includes.
5846 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
5848 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
5850 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
5852 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
5854 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
5856 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
5858 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
5860 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
5862 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
5864 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
5866 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
5868 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
5871 2004-01-04 Mark Mitchell <mark@codesourcery.com>
5874 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
5876 * testsuite/27_io/basic_fstream/4.cc: Likewise.
5877 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
5878 * testsuite/27_io/basic_ios/4.cc: Likewise.
5879 * testsuite/27_io/basic_iostream/4.cc: Likewise.
5880 * testsuite/27_io/basic_istream/4.cc: Likewise.
5881 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
5882 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
5883 * testsuite/27_io/basic_ostream/4.cc: Likewise.
5884 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
5885 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
5886 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
5888 2004-01-04 Paolo Carlini <pcarlini@suse.de>
5890 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
5891 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
5892 always use double underscored names.
5893 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
5895 * include/bits/locale_facets.h (struct __numpunct_cache):
5896 Dimension _M_atoms_out and _M_atoms_in one position smaller.
5897 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out