1 2004-11-03 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3 * config/os/bsd/darwin/os_defines.h
4 (_GLIBCXX_WEAK_DEFINITION): Define.
5 * include/bits/c++config (_GLIBCXX_WEAK_DEFINITION): Define.
6 * libsupc++/del_op.cc (operator delete(void *)): Use
7 _GLIBCXX_WEAK_DEFINITION.
8 * libsupc++/del_opnt.cc
9 (operator delete(void *, const std::nothrow_t&)): Same.
10 * libsupc++/del_opv.cc (operator delete[](void *)): Same.
11 * libsupc++/del_opvnt.cc
12 (operator delete[](void *, const std::nothrow_t&)): Same.
13 * libsupc++/new_op.cc (operator new(std::size_t)): Same.
14 * libsupc++/new_opnt.cc
15 (operator new(std::size_t, const std::nothrow_t&)): Same
16 * libsupc++/new_opv.cc (operator new[](std::size_t)): Same.
17 * libsupc++/new_opvnt.cc
18 (operator new[](std::size_t, const std::nothrow_t&)): Same.
20 2004-11-02 Paolo Carlini <pcarlini@suse.de>
22 * include/bits/locale_facets.tcc (num_get<>::_M_extract_int):
23 Evaluate *__beg the exact strict minimum number of times; likewise
24 for __beg != __end; slightly simplify main parsing loop.
26 2004-11-02 Benjamin Kosnik <bkoz@redhat.com>
27 Lothar Werzinger <lothar@xcerla.com>
30 * src/debug.cc: Include concurrence, use mutexes.
31 (_Safe_iterator_base::_M_attach): Here.
32 (_Safe_iterator_base::_M_detach): Here.
34 2004-11-02 Benjamin Kosnik <bkoz@redhat.com>
37 * include/bits/ios_base.h : Add enum values.
38 * testsuite/testsuite_hooks.h (bitmask_operators): Add function.
39 * testsuite/27_io/ios_base/types/fmtflags/bitmask_operators.cc: New.
40 * testsuite/27_io/ios_base/types/fmtflags/case_label.cc: New.
41 * testsuite/27_io/ios_base/types/iostate/bitmask_operators.cc: New.
42 * testsuite/27_io/ios_base/types/iostate/case_label.cc: New.
43 * testsuite/27_io/ios_base/types/openmode/bitmask_operators.cc: New.
44 * testsuite/27_io/ios_base/types/openmode/case_label.cc: New.
45 * testsuite/27_io/ios_base/types/seekdir/case_label.cc: New.
47 * config/io/c_io_stdio.h (__ios_flags): Mark deprecated.
50 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
51 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
53 2004-11-01 Momchil Velikov <velco@fadata.bg>
56 * libsupc++/eh_globals.cc (get_globals_dtor): Delete unhandled
58 * testsuite/thread/18185.cc: New.
60 2004-11-01 Chris Jefferson <chris@bubblescope.net>
63 * include/tr1/tuple (get(pair)): Change occurrences of _I to _Int.
64 (get(const pair)): Likewise.
66 2004-11-01 Paolo Carlini <pcarlini@suse.de>
68 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
69 Evaluate *__beg the exact strict minimum number of times; likewise
70 for __beg != __end; in the main parsing loop, call ++__beg in two
71 places only. The former is also a correctness issue, because,
72 according to the standard (22.2.2.1.2, Stage 2), 'in' shall be
73 dereferenced only one time for each increment.
75 2004-10-31 Benjamin Kosnik <bkoz@redhat.com>
78 * testsuite/23_containers/set/modifiers/16728.cc: New.
80 2004-10-30 Paolo Carlini <pcarlini@suse.de>
82 * include/ext/bitmap_allocator.h (allocate(size_type)): Minor tweak.
84 * testsuite/ext/bitmap_allocator/check_delete.cc: New.
85 * testsuite/ext/bitmap_allocator/check_new.cc: Likewise.
87 2004-10-29 Geoffrey Keating <geoffk@apple.com>
89 * configure.host (darwin*): Set os_include_dir to a separate directory
91 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add a new C locale kind,
93 * config/locale/darwin/ctype_members.cc: New.
94 * config/os/bsd/darwin/ctype_base.h: New.
95 * config/os/bsd/darwin/ctype_inline.h: New.
96 * config/os/bsd/darwin/ctype_noninline.h: New.
97 * config/os/bsd/darwin/os_defines.h: New.
99 * testsuite/22_locale/locale/cons/12658_thread-1.cc: Only xfail
102 2004-10-29 Chris Jefferson <chris@bubblescope.net>
104 * include/bit/stl_algo.h (find_first_of(,,,,pred)):
105 Remove invalid EqualOpConcept.
106 * testsuite/25_algorithms/find_first_of/concept_check_1.cc: New.
108 2004-10-29 Benjamin Kosnik <bkoz@redhat.com>
110 * testsuite/testsuite_allocator.h (check_delete): New.
111 (check_new): Simplify.
112 * testsuite/ext/array_allocator/check_delete.cc: New.
113 * testsuite/ext/array_allocator/check_new.cc: Simplify.
114 * testsuite/ext/debug_allocator/check_delete.cc: New.
115 * testsuite/ext/debug_allocator/check_new.cc: Simplify.
116 * testsuite/ext/malloc_allocator/check_delete.cc: New.
117 * testsuite/ext/malloc_allocator/check_new.cc: Simplify.
118 * testsuite/ext/mt_allocator/check_delete.cc: New.
119 * testsuite/ext/mt_allocator/check_new.cc: Simplify.
120 * testsuite/ext/new_allocator/check_delete.cc: New.
121 * testsuite/ext/new_allocator/check_new.cc: Simplify.
122 * testsuite/ext/pool_allocator/check_delete.cc: New.
123 * testsuite/ext/pool_allocator/check_new.cc: Simplify.
125 2004-10-28 Chris Jefferson <chris@bubblescope.net>
128 * include/tr1/tuple: Fix, change formatting.
130 2004-10-28 Benjamin Kosnik <bkoz@redhat.com>
132 * include/ext/mt_allocator.h (__common_pool_policy): Add template
133 template parameter for pool class type.
134 (__per_type_pool_policy): Same.
135 (__mt_allocator): Don't inherit policy. Qualify policy_type calls.
136 * testsuite/ext/mt_allocator/check_deallocate_null.cc: Fix.
137 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: Same.
138 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
139 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
140 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
141 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
142 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Same.
143 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
144 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
145 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
146 * testsuite/ext/mt_allocator/instantiate.cc: Same.
147 * testsuite/ext/mt_allocator/tune-1.cc: Same.
148 * testsuite/ext/mt_allocator/tune-2.cc: Same.
149 * testsuite/ext/mt_allocator/tune-3.cc: Same.
150 * testsuite/ext/mt_allocator/tune-4.cc: Same.
152 2004-10-28 Paolo Carlini <pcarlini@suse.de>
154 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
155 Cache *__beg in __c when parsing exponent sign too.
156 (num_get<>::do_get(..., bool&)): Cache *__beg.
157 (money_get<>::_M_extract)): Likewise, in money_base::value.
159 2004-10-27 Paolo Carlini <pcarlini@suse.de>
161 * include/bits/basic_string.h (assign(const basic_string&)):
163 * include/bits/basic_string.tcc: ... here.
165 2004-10-27 Paolo Carlini <pcarlini@suse.de>
167 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
169 * include/bits/basic_string.tcc: ... here.
171 2004-10-26 Paolo Carlini <pcarlini@suse.de>
173 * include/bits/basic_string.h (append(const basic_string&),
174 append(size_type, _CharT)): Move out of line...
175 * include/bits/basic_string.tcc: ... here.
177 2004-10-26 Paolo Carlini <pcarlini@suse.de>
179 * include/bits/basic_string.h (erase(size_type, size_type),
180 erase(iterator), erase(iterator, iterator)): Call _M_mutate
181 instead of _M_replace_safe, equivalent when the fourth argument
184 2004-10-26 Benjamin Kosnik <bkoz@redhat.com>
186 * include/ext/array_allocator.h (array::allocate): Check for valid
187 array object, use its size member function directly.
188 * testsuite/ext/array_allocator/3.cc: New.
189 * docs/html/20_util/allocator.html: Add docs.
191 2004-10-25 Geoffrey Keating <geoffk@apple.com>
193 * configure.host (darwin*): Build libstdc++ single module
195 * libsupc++/new_op.cc (new): Make weak.
196 * libsupc++/new_opnt.cc (new): Make weak.
197 * libsupc++/new_opv.cc (new): Make weak.
198 * libsupc++/new_opvnt.cc (new): Make weak.
199 * libsupc++/delete_op.cc (delete): Make weak.
200 * libsupc++/delete_opnt.cc (delete): Make weak.
201 * libsupc++/delete_opv.cc (delete): Make weak.
202 * libsupc++/delete_opvnt.cc (delete): Make weak.
204 2004-10-25 Benjamin Kosnik <bkoz@redhat.com>
206 * testsuite/Makefile.am (GLIBCXX_INCLUDES): Add.
207 (AUTOMAKE_OPTIONS): Add nostdinc.
208 * testsuite/Makefile.in: Regenerate.
209 * scripts/testsuite_flags.in (build-includes): Remove redundant
210 search for libsupc++.
211 * fragment.am: Clean.
213 2004-10-25 Benjamin Kosnik <bkoz@redhat.com>
215 * include/Makefile.am (tr1_headers): Add tuple.
216 * include/Makefile.in: Regenerate.
218 2004-10-25 Chris Jefferson <chris@bubblescope.net>
220 * include/tr1/tuple: Implementation of tuple from library TR.
221 * testsuite/tr1/6_containers/tuple/tuple_element.cc: New.
222 * testsuite/tr1/6_containers/tuple/tuple_size.cc: New.
223 * testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc:
225 * testsuite/tr1/6_containers/tuple/cons/assignment.cc: New.
226 * testsuite/tr1/6_containers/tuple/cons/big_tuples.cc: New.
227 * testsuite/tr1/6_containers/tuple/cons/constructor.cc: New.
228 * testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc:
230 * testsuite/tr1/6_containers/tuple/creation_functions/tie.cc: New.
231 * testsuite/tr1/6_containers/tuple/element_access/get.cc: New.
233 2004-10-25 Paolo Carlini <pcarlini@suse.de>
235 * include/bits/basic_string.h (_Rep::_M_is_safe): Move to
236 basic_string as _M_disjunct, adjust to take only __s.
237 * include/bits/basic_string.tcc: Adjust consistently callers.
239 2004-10-25 Paolo Carlini <pcarlini@suse.de>
241 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
242 Adjust bit missing from the previous commit.
244 2004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
247 * testsuite/lib/libstdc++.exp: Accept more than one multilib libgcc.
249 2004-10-25 Paolo Carlini <pcarlini@suse.de>
251 * include/bits/basic_string.h (_Rep::_M_is_safe, _M_check_length,
252 _M_move, _M_copy, _M_assign): New, use througout.
253 (operator+=(_CharT)): Define in terms of push_back.
254 (append(const basic_string&)): Define here, inline, and simplify,
255 don't use the full _M_replace_safe.
256 (append(size_type, _CharT)): Likewise, don't use _M_replace_aux.
257 (push_back): Likewise.
258 (assign(const basic_string&)): Define here, inline.
259 * include/bits/basic_string.tcc (append(const _CharT* s, size_type):
260 Fix: when s points inside the _Rep, upon reallocation (reserve) we
261 were copying from deallocated memory.
262 (append(const basic_string&, size_type, size_type)): Simplify,
263 don't use _M_replace_safe.
264 (replace(size_type, size_type, const _CharT*, size_type)): Slightly
267 * testsuite/21_strings/basic_string/append/char/2.cc: New.
268 * testsuite/21_strings/basic_string/append/char/3.cc: Likewise.
269 * testsuite/21_strings/basic_string/append/wchar_t/2.cc: Likewise.
270 * testsuite/21_strings/basic_string/append/wchar_t/3.cc: Likewise.
272 * testsuite/21_strings/basic_string/assign/char/3.cc: Remove junk.
273 * testsuite/21_strings/basic_string/assign/wchar_t/3.cc: Likewise.
275 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
277 * testsuite/ext/mt_allocator/deallocate_global-2.c:
278 s/value_t/value_type/. s/traits_t/traits_type/.
279 s/policy_t/policy_type/. s/allocator_t/allocator_type/.
280 s/string_t/string_type/. s/list_t/list_type/.
281 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Likewise.
282 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Likewise.
283 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Likewise.
284 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Likewise.
285 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Likewise.
286 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Likewise.
287 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Likewise.
289 2004-10-21 Benjamin Kosnik <bkoz@redhat.com>
291 * include/tr1/array (array): Make safe for zero-sized arrays.
292 (array::end): Return one past the end.
293 (array::at): Use __throw_out_of_range, include functexcept.h.
294 (operator==): Implement.
300 * testsuite/tr1/6_containers/array/capacity/(empty.cc,
301 max_size.cc, size.cc): New.
302 * testsuite/tr1/6_containers/array/comparison_operators/(equal.cc,
303 greater.cc, greater_or_equal.cc, less.cc, less_or_equal.cc,
305 * testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc:
307 * testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc:
309 * testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc: New.
310 * testsuite/tr1/6_containers/array/requirements/(contiguous.cc,
311 instantiate, typedefs, zero_size_arrays): New.
313 2004-10-21 Paolo Carlini <pcarlini@suse.de>
314 Benjamin Kosnik <bkoz@redhat.com>
316 * include/bits/basic_string.h (_M_set_length_and_sharable): New.
317 * include/bits/basic_string.tcc (_S_construct, assign(const _CharT*,
318 size_type), _M_mutate, _M_clone): Use it.
319 (_Rep::_S_create): Don't set/call _M_length/_M_set_sharable here.
321 2004-10-21 Paolo Carlini <pcarlini@suse.de>
322 Dhruv Matani <dhruvbird@gmx.net>
323 Nathan Myers <ncm@cantrip.org>
325 * include/bits/vector.tcc (_M_insert_aux, _M_fill_insert,
326 _M_range_insert): Check at the outset that we are not trying
327 to exceed max_size, then deal properly with __len overflows.
328 * testsuite/23_containers/vector/modifiers/insert/1.cc: New.
330 * testsuite/testsuite_allocator.h: Remove redundant include.
332 2004-10-20 Paolo Carlini <pcarlini@suse.de>
334 * include/ext/bitmap_allocator.h (allocate): Throw std::bad_alloc
336 * include/ext/malloc_allocator.h (allocate): Likewise.
337 * include/ext/mt_allocator.h (allocate): Likewise.
338 * include/ext/new_allocator.h (allocate): Likewise.
339 * include/ext/array_allocator.h: Use __throw_bad_alloc().
340 * include/ext/pool_allocator.h: Use __builtin_expect.
341 * testsuite/ext/array_allocator/check_allocate_max_size.cc: New.
342 * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc: Likewise.
343 * testsuite/ext/malloc_allocator/check_allocate_max_size.cc: Likewise.
344 * testsuite/ext/mt_allocator/check_allocate_max_size.cc: Likewise.
345 * testsuite/ext/new_allocator/check_allocate_max_size.cc: Likewise.
346 * testsuite/ext/pool_allocator/check_allocate_max_size.cc: Likewise.
347 * testsuite/testsuite_allocator.h (check_allocate_max_size): New test.
349 2004-10-19 Paolo Carlini <pcarlini@suse.de>
351 * testsuite/performance/20_util/allocator/list_sort_search.cc:
352 Include <ext/new_allocator.h>.
353 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
355 2004-10-18 Paolo Carlini <pcarlini@suse.de>
357 * include/bits/basic_string.tcc (_M_mutate): Do not reallocate
358 unnecessarily when _M_rep() == &_S_empty_rep() and __new_size
359 == capacity() (== 0): is ok to just leave everything unchanged.
361 * include/bits/basic_string.h: Minor formatting fixes.
362 * include/bits/basic_string.tcc: Likewise.
364 2004-10-17 Benjamin Kosnik <bkoz@redhat.com>
366 * include/ext/mt_allocator.h (__pool::_M_get_align): New.
367 (__mt_alloc::allocate): Use it.
368 * src/mt_allocator.cc (__pool::_M_reclaim_block): Use it.
369 (__pool::_M_reserve_block): Simplify block allocation.
371 2004-10-17 Dhruv Matani <dhruvbird@gmx.net>
372 Paolo Carlini <pcarlini@suse.de>
374 * include/ext/bitmap_allocator.h: Change unsigned int -> size_t: this
375 makes the code 64-bit correct and also fixes (together with using at
376 the beginning a bitmap 2 * size_t bytes wide) alignment issues: now
377 8 is guaranteed, easily tunable to 16 via _BALLOC_ALIGN_BYTES.
378 Fix pthread-rope7.cc fail by nulling out __mini_vector<> destructor.
379 * src/bitmap_allocator.cc: Change to size_t.
380 * config/linker-map.gnu: Adjust.
382 2004-10-16 Benjamin Kosnik <bkoz@redhat.com>
384 * include/tr1/array: Don't use layout_type.
386 2004-10-16 Sashan Govender <sashang@gmail.com>
388 * include/tr1/array (array::end const): Fix casting from iterator
391 2004-10-15 Paolo Carlini <pcarlini@suse.de>
393 * include/ext/bitmap_allocator.h: Qualify ::operator delete.
394 * src/bitmap_allocator.cc: Likewise.
395 * src/mt_allocator.cc: Use ::operator delete, not delete,
396 consistently with ::operator new.
398 * include/ext/bitmap_allocator.h (deallocate): Check for null
400 * testsuite/ext/bitmap_allocator/check_deallocate_null.cc: New.
401 * testsuite/testsuite_allocator.h (check_deallocate_null): Add test.
403 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
405 * include/ext/mt_allocator.h (__mt_alloc::deallocate): Check for
407 * include/ext/pool_allocator.h (debug_allocator::deallocate):
409 * include/ext/debug_allocator.h (debug_allocator::deallocate):
410 Throw exceptions, don't abort.
411 * include/ext/array_allocator.h
412 (array_allocator_base::deallocate): Remove unused parameters.
413 * testsuite/testsuite_allocator.h (check_deallocate_null): New.
414 * testsuite/ext/mt_allocator/check_deallocate_null.cc: New.
415 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: New.
416 * testsuite/ext/array_allocator/check_deallocate_null.cc: New.
417 * testsuite/ext/debug_allocator/check_deallocate_null.cc: New.
418 * testsuite/ext/malloc_allocator/check_deallocate_null.cc: New.
419 * testsuite/ext/new_allocator/check_deallocate_null.cc: New.
420 * testsuite/ext/pool_allocator/check_deallocate_null.cc: New.
422 * testsuite/testsuite_allocator.h (check_new): Add instance argument.
423 * testsuite/ext/array_allocator/check_new.cc: New.
425 2004-10-14 Paolo Carlini <pcarlini@suse.de>
427 * include/ext/bitmap_allocator.h (bitmap_allocator::_Alloc_block):
428 Rename __unused to __M_unused.
430 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
432 * testsuite/ext/headers.cc: Add includes, compile only.
433 * testsuite/ext/hash_map.cc: Move to...
434 * testsuite/ext/hash_map/1.cc: ...here.
435 * testsuite/ext/14648.cc: Move to...
436 * testsuite/ext/hash_map/14648.cc: ...here.
437 * testsuite/ext/hash_map/instantiate.cc: Add.
438 * testsuite/ext/hash_set.cc: Move to...
439 * testsuite/ext/hash_set/1.cc: ...here.
440 * testsuite/ext/hash_set_explicit_instantiation.cc: Move to...
441 * testsuite/ext/hash_set/instantiate.cc: ...here.
442 * testsuite/ext/hash_check_construct_destroy.cc: Move to...
443 * testsuite/ext/hash_set/check_construct_destroy.cc: ...here.
444 * testsuite/ext/slist_check_construct_destroy.cc: Move to...
445 * testsuite/ext/slist/check_construct_destroy.cc: ...here.
446 * testsuite/ext/slist_explicit_instantiation.cc: Move to...
447 * testsuite/ext/slist/instantiate.cc: ...here.
449 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
451 * include/ext/mt_allocator.h: Tweaks.
452 * src/mt_allocator.cc: Same.
454 2004-10-14 Dhruv Matani <dhruvbird@gmx.net>
456 * ext/bitmap_allocator.h: Clean-up add/remove functions.
457 * src/bitmap_allocator.cc: New file. Contains the out-of-line
458 function definitions, static initialization of variables, and
459 explicit instantiations needed for the allocator.
460 * src/Makefile.am: Add.
461 * src/Makefile.in: Regenerate.
462 * config/linker.map.gnu: Add the necessary symbols.
464 2004-10-13 Paolo Carlini <pcarlini@suse.de>
466 * include/bits/basic_string.tcc (_S_create): Use consistently
467 the exponential policy, simplify.
468 * testsuite/performance/21_strings/string_append_2.cc: New.
470 * include/ext/array_allocator.h (allocate): Fix bad_alloc check.
471 * testsuite/ext/array_allocator/2.cc: Fix wrt 64-bit archs (in
472 that case sizeof(_Rep) == 24).
474 2004-10-12 Paolo Carlini <pcarlini@suse.de>
477 * include/bits/stl_tree.h (erase(iterator, iterator)): Revert
478 wrong commit of 2004-10-07.
480 2004-10-12 Scott Snyder <snyder@fnal.gov>
483 * testsuite/23_containers/set/modifiers/17948.cc: New.
485 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
487 * include/bits/stl_deque.h: Correct for over-long lines.
489 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
492 * include/ext/mt_allocator.h (__pool::_M_destroy): New.
493 * src/mt_allocator.cc (__pool::~__pool): Change definitions to
495 * acconfig.h: Remove _GLIBCXX_USE___CXA_ATEXIT.
496 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): Remove.
497 * configure.ac: Remove call to GLIBCXX_ENABLE_CXA_EXIT.
498 * configure: Regenerate.
499 * config/linker-map.gnu: Tweak exports.
500 * docs/html/ext/mt_allocator.html: Update docs.
501 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Fix.
502 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Fix.
503 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Fix.
504 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Fix.
505 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Fix.
506 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Fix.
507 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Fix.
508 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Fix.
510 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
512 PR libstdc++/16614 continued.
513 * include/ext/mt_allocator.h
514 (__per_type_pool_policy::_S_get_pool): Use saner defaults based on
515 specific type characteristics.
516 (__pool_base): Add constructor that takes a _Tune argument.
518 * testsuite/ext/mt_allocator/tune-2.cc: Adjust default.
519 * testsuite/ext/mt_allocator/tune-4.cc: Same.
520 * testsuite/ext/mt_allocator/tune-3.cc: Same.
522 2004-10-11 Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
523 Paolo Carlini <pcarlini@suse.de>
525 * src/pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk):
526 Deal properly with exceptions thrown by ::operator new(size_t).
527 * testsuite/ext/pool_allocator/allocate_chunk.cc: New.
529 * include/ext/pool_allocator.h: Include <cstdlib>.
531 2004-10-10 Benjamin Kosnik <bkoz@redhat.com>
533 * include/bits/functexcept.h: Add guards.
535 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Tweak test.
536 * configure: Regenerate.
538 2004-10-10 Paolo Carlini <pcarlini@suse.de>
540 * config/locale/gnu/monetary_members.cc (_S_construct_pattern):
541 Give __ret a default value, thus avoiding spurious warnings.
543 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Open either
544 words or linux.words, otherwise exit.
545 * testsuite/performance/27_io/ifstream_getline.cc: Slighlty tweak.
547 2004-10-09 Paolo Carlini <pcarlini@suse.de>
549 * include/std/std_memory.h (__get_temporary_buffer): Don't use
550 INT_MAX, prefer numeric_limits<ptrdiff_t>::max(), ok on 64-bit
552 * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust dg-error
555 2004-10-08 Benjamin Kosnik <bkoz@redhat.com>
557 * acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
558 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): New.
559 * configure.ac: Call GLIBCXX_ENABLE_CXA_EXIT.
560 * configure: Regenerate.
561 * src/mt_allocator.cc (__pool::~__pool): Make conditional on
562 _GLIBCXX_USE___CXA_ATEXIT macro.
563 * docs/html/ext/mt_allocator.html: Add note about deallocation.
564 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Guard checks
565 with _GLIBCXX_USE___CXA_ATEXIT.
566 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
567 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
568 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
569 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
570 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
571 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
572 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
574 2004-10-07 Phil Edwards <phil@codesourcery.com>
576 * testsuite/lib/libstdc++.exp: Update list of undefined functions.
578 2004-10-07 Paolo Carlini <pcarlini@suse.de>
580 * include/bits/list.tcc (operator=): Avoid iterator postincrement.
581 * include/bits/stl_tree.h (erase(iterator, iterator)): Likewise.
583 2004-10-07 Benjamin Kosnik <bkoz@redhat.com>
586 * include/tr1/array: New.
587 * include/Makefile.am (tr1_headers): New.
589 (install-headers): New.
590 (allstamped): Add stamp-tr1.
592 * include/ext/array_allocator.h: New.
593 * include/Makefile.am: Add.
594 * include/Makefile.in: Regenerate.
595 * testsuite/ext/array_allocator/1.cc: New.
596 * testsuite/ext/array_allocator/2.cc: New.
598 2004-10-07 Richard Earnshaw <rearnsha@arm.com>
600 * testsuite/lib/libstdc++.exp (libstdc++_exit): New proc.
602 2004-10-07 Roger Sayle <roger@eyesopen.com>
605 * configure.ac: Newlib does not provide strtold.
606 * configure: Regenerate.
608 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
610 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
611 (GLIBCXX_CONFIGURE_TESTSUITE): Use it.
612 * configure: Regenerated.
613 * testsuite/Makefile.am (CLEANFILES): Add TEST for
614 check-performance executables.
617 * testsuite/Makefile.in: Regenerate.
618 * scripts/create_testsuite_files: Filter thread tests.
620 * testsuite/thread/pthread1.cc: Remove macro conditionals: this
621 file will only be run by thread enabled configurations.
622 * testsuite/thread/pthread7-rope.cc: Same, add rope_type typedef.
623 * testsuite/thread/pthread6.cc: Same.
624 * testsuite/thread/pthread5.cc: Same.
625 * testsuite/thread/pthread4.cc: Same.
626 * testsuite/thread/pthread3.cc: Same.
627 * testsuite/thread/pthread2.cc: Same.
629 * testsuite/ext/mt_allocator/instantiate.cc: Add in __GTHREADS guard.
630 * testsuite/ext/mt_allocator/deallocate_global-1.cc: Move to...
631 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: ...here.
632 * testsuite/ext/mt_allocator/deallocate_global-3.cc: Move to...
633 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: ...here.
634 * testsuite/ext/mt_allocator/deallocate_local-1.cc: Move to...
635 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: ...here.
636 * testsuite/ext/mt_allocator/deallocate_local-3.cc: Move to...
637 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: ...here.
639 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
640 Paolo Carlini <pcarlini@suse.de>
643 * src/mt_allocator.cc (__pool<true>::_M_reserve_block): Revert
644 to old locking order.
646 2004-10-06 Paolo Carlini <pcarlini@suse.de>
648 * include/std/std_sstream.h (_M_sync): When the caller is
649 setbuf, don't trust _M_string.capacity() to be the size of
650 the buffer area, use _M_string.size() in this case.
651 * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
652 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.
654 * include/bits/sstream.tcc (overflow): Avoid calling string::assign
655 unnecessarily when the current _M_string is empty.
657 2004-10-06 Paolo Carlini <pcarlini@suse.de>
659 * include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)):
660 Avoid iterator postincrement.
661 (__rotate): Likewise.
663 * include/bits/stl_algo.h: Minor formatting tweaks.
665 2004-10-06 Christopher Jefferson <caj@cs.york.ac.uk>
667 * include/bits/stl_algo.h (__reverse(random_access_iterator_tag)):
668 Avoid iterator postincrement; fix swapping middle element with
669 itself on odd-length inputs.
671 2004-10-05 Benjamin Kosnik <bkoz@redhat.com>
674 * include/ext/mt_allocator.h (__pool_base::_Tune): Add default
675 options as compile-time constant enums.
676 (__pool_base::_Tune::is_default): New.
677 (__pool_base::_Block_address): New.
678 (__pool_base): Rearrange data members.
679 (__pool::_M_reserve_memory): To _M_reserve_block.
680 (__pool::_M_reclaim_memory): To _M_reclaim_block.
681 (__pool::_Bin_record): Add _Block_address data member.
682 (__pool<false>): Add _M_thread_freelist_initial.
683 (__pool::~__pool): Declare.
684 (__common_pool_policy): Move static data member to...
685 (__common_pool_policy::_S_get_pool): ...here, make static local.
686 (__per_type_pool_policy): Move static data member to...
687 (__per_type_pool_policy::_S_get_pool): ...here, make static local.
688 (__mt_alloc::__mt_alloc): Call __policy_type::_S_get_pool.
689 Remove static member definitions. Use define for __default_policy.
690 * src/mt_allocator.cc: Same.
691 * config/linker-map.gnu: Don't export _S_get_pool. Renames.
692 * testsuite/ext/new_allocator: New.
693 * testsuite/ext/new_allocator/instantiate.cc: New.
694 * testsuite/ext/new_allocator/check_new.cc: New.
695 * testsuite/ext/new_allocator/deallocate_global.cc: New.
696 * testsuite/ext/new_allocator/deallocate_local.cc: New.
697 * testsuite/ext/mt_allocator/instantiate.cc: Instantiate all
699 * testsuite/ext/mt_allocator/deallocate_global-1.cc: New.
700 * testsuite/ext/mt_allocator/deallocate_global-2.cc: New.
701 * testsuite/ext/mt_allocator/deallocate_global-3.cc: New.
702 * testsuite/ext/mt_allocator/deallocate_global-4.cc: New.
703 * testsuite/ext/mt_allocator/deallocate_local-1.cc: New.
704 * testsuite/ext/mt_allocator/deallocate_local-2.cc: New.
705 * testsuite/ext/mt_allocator/deallocate_local-3.cc: New.
706 * testsuite/ext/mt_allocator/deallocate_local-4.cc: New.
707 * testsuite/ext/mt_allocator/deallocate.cc: New.
708 * testsuite/ext/malloc_allocator/deallocate.cc: New.
709 * testsuite/ext/malloc_allocator/deallocate_global.cc: New.
710 * testsuite/ext/malloc_allocator/deallocate_local.cc: New.
712 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
714 * configure.host (abi_baseline_pair): Define for s390-*-linux* and
716 * config/abi/s390-linux-gnu/baseline_symbols.txt: Add missing symbols.
717 * config/abi/s390x-linux-gnu/baseline_symbols.txt: New file.
719 2004-10-05 Christopher Jefferson <caj@cs.york.ac.uk>
721 * include/bits/stl_algobase.h (iter_swap): delegate to swap via
722 __iter_swap when iterator's value_types are equal.
723 (struct __iter_swap): New.
725 2004-10-04 Benjamin Kosnik <bkoz@redhat.com>
727 * configure.ac (libtool_VERSION): To 6:3:0.
728 * configure: Regnerate.
729 * testsuite/testsuite_abi.cc (check_version): Add 3.4.3.
731 2004-10-04 Roger Sayle <roger@eyesopen.com>
732 Eric Botcazou <ebotcazou@libertysurf.fr>
735 * config/linker-map.gnu: Synchronize the current list of stub
736 functions from libmath.
738 2004-10-03 Roger Sayle <roger@eyesopen.com>
740 * config/locale/generic/c_locale.cc (__convert_to_v): Use
741 _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
742 Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
743 to check for presence of strtold.
745 2004-10-03 Paolo Carlini <pcarlini@suse.de>
747 * include/bits/stl_list.h: Trivial formatting fixes.
748 * include/bits/stl_tree.h: Likewise.
750 2004-10-03 Paolo Carlini <pcarlini@suse.de>
752 * include/bits/sstream.tcc (seekpos): In case of success, just
755 2004-10-01 Paolo Carlini <pcarlini@suse.de>
757 * include/bits/sstream.tcc (pbackfail): Implement correctly
758 27.7.1.3/2, bullet 2: if mode & ios_base::out is false do not
760 * testsuite/27_io/basic_stringbuf/pbackfail/char/1.cc: New.
761 * testsuite/27_io/basic_stringbuf/pbackfail/char/2.cc: Likewise.
762 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/1.cc: Likewise.
763 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/2.cc: Likewise.
764 * testsuite/27_io/basic_istream/putback/char/1.cc: Tweak consistently.
766 2004-10-01 Paolo Carlini <pcarlini@suse.de>
768 * include/bits/sstream.tcc (seekpos): Minor rearrangement of two
769 conditionals consistently with seekoff.
770 * include/std/std_sstream.h (setbuf): Avoid a string temporary.
771 (_M_sync): Simplify a bit, clean-up comment.
773 2004-09-30 Paolo Carlini <pcarlini@suse.de>
775 PR libstdc++/10975 (DR 453)
776 * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
778 * docs/html/ext/howto.html: Add an entry for DR 453.
779 * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
780 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
781 * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
782 * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
783 * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
784 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
786 * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
787 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
789 * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
791 2004-09-29 Paolo Carlini <pcarlini@suse.de>
793 * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
794 Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
795 (str()): Slightly tweak, protect from pptr() == 0.
796 (_M_update_egptr()): Likewise.
797 * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
798 for an empty buffer use __beg instead of _M_string.capacity().
799 * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
800 * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
802 * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
803 * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
804 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
805 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
807 2004-09-29 Paolo Carlini <pcarlini@suse.de>
808 Benjamin Kosnik <bkoz@redhat.com>
810 * testsuite/testsuite_io.h (class constraint_buf): New, extended
811 and templatized version of constraint_filebuf; add typedefs for
812 streambuf/stringbuf/filebuf and wchar_t counterparts.
814 2004-09-28 Paolo Carlini <pcarlini@suse.de>
817 * include/bits/basic_string.h (_M_dispose, _M_refcopy,
818 basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
819 don't deal with _S_empty_rep.
820 * include/bits/basic_string.tcc (_S_construct, _M_destroy,
821 _M_leak_hard, _M_mutate): Likewise.
822 * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
823 * acconfig.h: Add corresponding undef.
824 * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
825 * docs/html/configopts.html: Document --enable-fully-dynamic-string.
826 * configure: Regenerate.
827 * config.h.in: Likewise.
829 2004-09-28 Benjamin Kosnik <bkoz@redhat.com>
830 Paolo Carlini <pcarlini@suse.de>
832 * testsuite/21_strings/basic_string/operations/char/1.cc: New.
833 * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
834 * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
835 * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc:
838 2004-09-28 Paolo Carlini <pcarlini@suse.de>
840 * README: Remove obsolete entry about include/c_shadow.
842 2004-09-24 H.J. Lu <hongjiu.lu@intel.com>
845 * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
847 2004-09-24 Paolo Carlini <pcarlini@suse.de>
849 * src/localename.cc (locale::locale(const char*)): Minor tweaks:
850 rename a variable, move an assignment.
851 (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
853 2004-09-24 Paul Brook <paul@codesourcery.com>
855 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
857 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
858 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
859 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
860 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
861 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
862 * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
864 2004-09-23 Zack Weinberg <zack@codesourcery.com>
866 * testsuite/20_util/memory/auto_ptr/assign_neg.cc
867 * testsuite/23_containers/map/operators/1_neg.cc
868 * testsuite/23_containers/set/operators/1_neg.cc:
869 Update locations and/or regexps of dg-error markers.
871 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
873 * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
874 Add rule to build ${host_builddir}/gthr-tpf.h.
875 * include/Makefile.in: Regenerate.
877 2004-09-23 Paolo Carlini <pcarlini@suse.de>
878 Magnus Fromreide <magfr@lysator.liu.se>
880 * include/bits/boost_concept_check.h (struct _SequenceConcept):
881 Remove wrong requirement, i.e., not present in Table 67.
883 2004-09-21 Paolo Carlini <pcarlini@suse.de>
885 PR libstdc++/12882 (cont)
886 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
887 * configure: Regenerate.
888 * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
889 _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
890 trivial showmanyc for large files too.
892 2004-09-17 Jonathan Wakely <redi@gcc.gnu.org>
894 * include/bits/stl_algo.h (remove): Remove too restrictive
897 2004-09-17 Paolo Carlini <pcarlini@suse.de>
899 * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
900 as per Nathan's original suggestion.
902 2004-09-17 Paolo Carlini <pcarlini@suse.de>
904 * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
906 * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
907 * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
908 * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
910 2004-09-17 Paolo Carlini <pcarlini@suse.de>
911 Andrea Arcangeli <andrea@suse.de>
913 * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
914 call unnecessarily sync, that is fflush: the library, since 3.4.0
915 does not use buffered fread/fwrite.
916 * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
918 2004-09-15 Mark Mitchell <mark@codesourcery.com>
920 * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
922 * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
924 * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
925 (__cxa_vec_new): Use it.
926 (__cxa_vec_new2): Likewise.
927 (__cxa_vec_new3): Likewise.
928 (__cxa_vec_cdtor): Likewise.
929 (__cxa_vec_cctor): Likeiwse.
930 (__cxa_vec_dtor): Likewise.
931 (__cxa_vec_cleanup): Likewise.
932 (__cxa_vec_delete2): Likewise.
933 (__cxa_vec_delete3): Likewise.
934 * libsupc++/vec.cc (__cxa_vec_new): Likewise.
935 (__cxa_vec_new2): Likewise.
936 (__cxa_vec_new3): Likewise.
937 (__cxa_vec_cdtor): Likewise.
938 (__cxa_vec_cctor): Likeiwse.
939 (__cxa_vec_dtor): Likewise.
940 (__cxa_vec_cleanup): Likewise.
941 (__cxa_vec_delete2): Likewise.
942 (__cxa_vec_delete3): Likewise.
943 (__aeabi_vec_ctor_nocookie_nodtor): New function.
944 (__aeabi_vec_ctor_cookie_nodtor): Likewise.
945 (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
946 (__aeabi_vec_new_cookie_noctor): Likewise.
947 (__aeabi_vec_new_nocookie): Likewise.
948 (__aeabi_vec_new_cookie_nodtor): Likewise.
949 (__aeabi_vec_new_cookie): Likewise.
950 (__aeabi_vec_dtor): Likewise.
951 (__aeabi_vec_dtor_cookie): Likewise.
952 (__aeabi_vec_delete): Likewise.
953 (__aeabi_vec_delete3): Likewise.
954 (__aeabi_vec_delete3_nodtor): Likewise.
955 (__aeabi_atexit): Likewise.
957 2004-09-14 Nathan Myers <ncm@cantrip.org>
959 * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
960 for 11722: copy can replace move; the common case is __avail == 0.
962 2004-09-14 Paolo Carlini <pcarlini@suse.de>
964 * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
965 to __is_scalar, more clear and consistent with "tr1" naming.
966 * include/bits/stl_algobase.h: Update consistently throughout.
968 2004-09-13 Paolo Carlini <pcarlini@suse.de>
971 * include/std/std_fstream.h (xsgetn): Declare only.
972 * include/bits/fstream.tcc (xsgetn): Define, optimize for the
973 always_noconv() case: when __n > __buflen, copy the available
974 buffer and issue a direct read.
975 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
977 * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
980 2004-09-13 Hans-Peter Nilsson <hp@bitrange.com>
982 * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
983 libstdc++_maybe_build_wrapper instead of using local code.
985 2004-09-08 Benjamin Kosnik <bkoz@redhat.com>
987 * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
989 2004-09-03 Jan Beulich <jbeulich@novell.com>
991 * crossconfig.m4: Add NetWare as a target.
992 * configure: Regenerate.
994 2004-09-02 Mark Mitchell <mark@codesourcery.com>
996 * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
999 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
1000 Simon Richter <Simon.Richter@hogyros.de>
1003 * include/bits/istream.tcc: Add extern template for iostream
1004 char and wchar_t instantiations.
1006 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
1007 Leland Wang <llwang@infor.org>
1010 * include/ext/ropeimpl.h (rope::_S_compare): Use
1011 _Rope_constants::_S_leaf.
1013 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
1016 * include/Makefile.am (ext_headers): Remove demangle.h.
1017 * include/Makefile.in: Regenerate.
1018 * include/ext/demangle.h: Remove.
1020 2004-09-01 Benjamin Kosnik <bkoz@redhat.com>
1023 * include/ext/mt_allocator.h (__mt_base): Not type dependent,
1025 (__pool): New, specialize.
1026 (__common_pool): New, static bits here.
1027 (__per_type_pool): New, and here.
1028 (__mt_alloc_base): New.
1029 (__mt_alloc): Add template parameter, inherit from it.
1030 * src/allocator.cc: Split this...
1031 * src/allocator-inst.cc: And this...
1032 * src/pool_allocator.cc: ...into this.
1033 * src/mt_allocator.cc: ... and this. Add definitions for
1035 * src/Makefile.am (sources): Split allocator.cc to
1036 pool_allocator.cc and mt_allocator.cc.
1037 * src/Makefile.in: Regenerate.
1038 * config/linker-map.gnu: Add symbols.
1039 * docs/html/ext/mt_allocator.html: Document new design.
1040 * testsuite/ext/mt_allocator/tune-1.cc: New.
1041 * testsuite/ext/mt_allocator/tune-2.cc: New.
1042 * testsuite/ext/mt_allocator/tune-3.cc: New.
1043 * testsuite/ext/mt_allocator/tune-4.cc: New.
1045 * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
1046 * testsuite/ext/allocators.cc: Use check_new, split into...
1047 * testsuite/ext/mt_allocator/check_new.cc: this.
1048 * testsuite/ext/pool_allocator/check_new.cc: this.
1049 * testsuite/ext/malloc_allocator/check_new.cc: this.
1050 * testsuite/ext/debug_allocator/check_new.cc: this.
1051 * testsuite/ext/mt_allocator/instantiate.cc: this.
1052 * testsuite/ext/pool_allocator/instantiate.cc: this.
1053 * testsuite/ext/malloc_allocator/instantiate.cc: this.
1054 * testsuite/ext/debug_allocator/instantiate.cc: this.
1056 2004-08-30 Phil Edwards <phil@codesourcery.com>
1058 * docs/html/install.html: Update locales list (from Paolo).
1059 Remove other redundant information and point to the GCC install
1062 2004-08-30 Benjamin Kosnik <bkoz@redhat.com>
1064 * include/ext/pool_allocator.h: Rename __pool_base to
1066 * src/allocator.cc: Same.
1067 * config/linker-map.gnu: Same.
1069 2004-08-30 Paolo Carlini <pcarlini@suse.de>
1070 Kenneth C. Schalk <ken@xorian.net>
1073 * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
1074 Check the return value of fclose/sync, loop on EINTR.
1075 (__basic_file<char>::sys_open): Likewise, for sync.
1077 2004-08-29 Paolo Carlini <pcarlini@suse.de>
1079 * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
1080 case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
1081 and 7.23.3.5), two if !_GLIBCXX_USE_C99.
1082 * testsuite/22_locale/time_get/get_time/char/4.cc: New.
1083 * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
1085 2004-08-27 Jason Merrill <jason@redhat.com>
1088 * libsupc++/guard.cc (static_mutex): Internal class implementing a
1089 recursive mutex which controls initialization of local statics.
1090 (__gnu_cxx::recursive_init): New exception class.
1091 (__cxa_guard_acquire): Deal with locking and recursion detection.
1092 (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
1094 2004-08-27 Matthias Klose <doko@debian.org>
1096 * configure.host: For mips*-*-linux* update cpu_include_dir
1097 after atomicity_dir is set.
1099 2004-08-27 Matthias Klose <doko@debian.org>
1101 * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
1102 * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1103 * configure.host: Set abi_baseline_pair for arm*-*-linux* and
1106 2004-08-27 Paolo Carlini <pcarlini@suse.de>
1108 * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
1109 * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
1110 * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
1111 * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
1112 * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
1114 * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
1116 * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
1117 * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
1118 * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
1119 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1121 2004-08-25 Paolo Carlini <pcarlini@suse.de>
1123 PR libstdc++/17038 (partial)
1124 * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
1126 * include/bits/locale_facets.h (class __timepunct): Add FIXME
1127 comment about _M_put.
1128 * config/locale/generic/time_members.cc (_M_put): Always null
1130 * config/locale/gnu/time_members.cc (_M_put): Likewise.
1131 * testsuite/22_locale/time_put/put/char/17038.cc: New.
1132 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
1134 2004-08-24 Paolo Carlini <pcarlini@suse.de>
1136 * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
1137 * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
1138 * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
1139 * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
1140 * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
1141 * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
1143 * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
1145 * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
1147 2004-08-22 Matthias Klose <doko@debian.org>
1149 * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
1150 * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1152 2004-08-23 Paolo Carlini <pcarlini@suse.de>
1154 * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
1155 * aclocal.m4: Regenerate with automake-1.9.1.
1156 * configure: Regenerate.
1157 * Makefile.in: Likewise.
1158 * include/Makefile.in: Likewise.
1159 * libmath/Makefile.in: Likewise.
1160 * libsupc++/Makefile.in: Likewise.
1161 * po/Makefile.in: Likewise.
1162 * src/Makefile.in: Likewise.
1163 * testsuite/Makefile.in: Likewise.
1165 2004-08-22 Paolo Carlini <pcarlini@suse.de>
1167 * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
1168 to a signed type, long according to the resolution of DR 359.
1169 * testsuite/22_locale/num_put/put/char/9.cc: New.
1170 * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
1172 * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
1173 Simplify a bit: no need to clear showpos.
1175 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1177 * include/bits/char_traits.h (struct _Char_traits_match): Remove,
1180 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1182 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
1183 wchar_t type for the fill argument; minor formatting tweaks.
1184 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
1185 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
1186 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
1187 * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
1188 * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
1189 * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
1191 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1193 * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
1194 with _M_word != _M_local_word two times, redundantly.
1196 2004-08-20 Jason Merrill <jason@redhat.com>
1198 * include/Makefile.am (${host_builddir}/gthr.h): Don't add
1199 _GLIBCXX_ to #pragma lines.
1200 * include/Makefile.in: Update.
1202 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1204 PR libstdc++/7219 (continued)
1205 * include/bits/ios_base.h (class ios_base): Expose Annex D.6
1206 typedefs by default.
1207 * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
1208 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
1210 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1212 2004-08-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1214 * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
1215 barrier to locking asm.
1217 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1219 * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
1220 actually the warning is a front-end bug (c++/17120).
1222 2004-08-20 Matthias Klose <doko@debian.org>
1224 * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
1226 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1228 * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
1229 used as truth value warning.
1231 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1233 * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
1236 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1238 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
1240 2004-08-19 Benjamin Kosnik <bkoz@redhat.com>
1242 * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
1244 * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
1246 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1248 * testsuite/performance/20_util/allocator/insert.cc: For std::map
1249 instantiate the allocator for a correct pair type.
1250 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1251 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1252 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1255 * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
1256 minor formatting fixes.
1257 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1259 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1261 * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
1263 * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
1264 * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
1265 * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
1266 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
1267 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1268 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1269 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1271 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1273 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1275 2004-08-18 Matthias Klose <doko@debian.org>
1277 * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1278 * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
1279 * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
1281 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1283 * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1285 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1287 * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1289 2004-08-17 Benjamin Kosnik <bkoz@redhat.com>
1291 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1293 2004-08-16 Paolo Carlini <pcarlini@suse.de>
1295 * include/bits/indirect_array.h: Trivial formatting fixes.
1296 * include/bits/valarray_after.h: Likewise.
1297 * include/bits/valarray_array.h: Likewise.
1298 * src/valarray-inst.cc: Likewise.
1300 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1302 * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
1303 * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
1304 * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
1306 * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
1307 * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
1308 * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
1309 * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
1310 * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
1312 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1314 * include/bits/deque.tcc: Trivial formatting fixes.
1316 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1318 * include/bits/deque.tcc: Trivial formatting fixes.
1320 * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
1321 Remove unneded typedef.
1323 * include/bits/locale_facets.tcc: Very minor tweaks.
1325 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
1326 type for the fill argument.
1327 * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
1328 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1329 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1330 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1331 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
1332 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
1333 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
1334 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
1336 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1338 * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
1339 memmove is not needed, memcpy suffices.
1341 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1343 * include/std/std_fstream.h (class basic_ifstream,
1344 class basic_ofstream, class basic_fstream): Add const overloads
1345 of is_open, as per DR 365 [WP].
1346 * docs/html/ext/howto.html: Add an entry for DR 365.
1348 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1350 * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
1352 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1355 * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
1356 to the returned value, reorganize a bit.
1357 * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
1358 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
1360 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
1361 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
1362 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
1363 * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
1365 2004-08-12 Paul Brook <paul@codesourcery.com>
1367 * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
1368 _GLIBCXX_CXA_VEC_CTOR_RETURN.
1369 * config/cpu/generic/cxxabi_tweaks.h: Ditto.
1370 * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
1371 __cxa_vec_ctor_return.
1372 * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
1373 Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
1375 2004-08-12 Kelley Cook <kcook@gcc.gnu.org>
1377 * Makefile.in, aclocal.m4, configure, include/Makefile.in,
1378 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1379 src/Makefile.in, testsuite/Makefile.in: Regenerate
1381 2004-08-12 Jan Beulich <jbeulich@novell.com>
1383 * config/locale/generic/ctype_members.cc
1384 (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
1385 initializer for return value, as that is invalid for enumerated types.
1386 * config/locale/gnu/ctype_members.cc
1387 (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
1389 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1391 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
1393 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1395 * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
1397 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
1398 * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
1399 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
1400 * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
1401 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
1402 * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
1403 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
1404 * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
1405 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
1406 * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
1407 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
1408 * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
1409 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
1410 * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
1411 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
1412 * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
1413 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
1414 * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
1415 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
1416 * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
1417 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
1419 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1420 Petur Runolfsson <peturr02@ru.is>
1423 * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
1424 standard streams are constructed.
1425 * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
1427 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1429 * include/bits/stl_bvector.h: Trivial formatting fixes.
1431 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1433 * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
1435 2004-08-07 Jonathan Wakely <redi@gcc.gnu.org>
1436 Paolo Carlini <pcarlini@suse.de>
1438 * src/debug.cc (_Error_formatter::_M_print_string): In order
1439 to print individual words from __string, _M_format_word can't
1440 be called since may be just sprintf, thus ignoring completely
1441 __n: instead, use memmove and append '\0' by hand.
1443 2004-08-07 Paolo Carlini <pcarlini@suse.de>
1445 * config/locale/generic/c_locale.h (__convert_from_v): Don't
1446 use a default for __prec, assume __prec >= 0 and simplify.
1447 * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
1448 * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
1449 Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
1451 2004-08-04 Phil Edwards <phil@codesourcery.com>
1453 * docs/html/configopts.html: Emphasize that options change.
1454 * docs/html/17_intro/configury.html: Update links.
1456 2004-08-03 Paolo Carlini <pcarlini@suse.de>
1458 * include/bits/list.tcc: Trivial formatting fixes.
1460 2004-08-03 Mark Mitchell <mark@codesourcery.com>
1462 * libsupc++/new_op.cc: Update comments.
1463 * libsupc++/del_op.cc: Likewise.
1465 2004-08-02 Mark Mitchell <mark@codesourcery.com>
1467 * libsupc++/cxxabi.h: Make all declarations have default
1469 * libsupc++/exception: Likewise.
1470 * libsupc++/new: Likewise.
1471 * libsupc++/typeinfo: Likewise.
1472 * libsupc++/unwind-cxx.h: Likewise.
1473 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
1474 the __cxxabiv1 namespace.
1475 (__cxa_free_exception): Likewise.
1476 * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
1477 (__cxa_bad_typeid): Likewise.
1478 * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
1479 (__cxa_end_catch): Likewise.
1480 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
1481 (__cxa_get_globals): Likewise.
1482 * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
1483 (__cxa_rethrow): Likewise.
1484 * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
1485 * libsupc++/eh_type.cc: Include <cxxabi.h>.
1487 * Makefile.am (hosted_source): Add libmath and testsuite.
1488 (SUBDIRS): Remove them.
1489 * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
1490 on arm*-*-symbianelf*.
1491 * crossconfig.m4: Add arm*-*-symbianelf* support.
1492 * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
1493 when freestanding. Do not bring names into std:: namespace with
1494 "using" when freestanding. Declare required functions and macros
1496 * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
1498 * libsupc++/del_op.cc: Declare "free" only when freestanding.
1499 * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
1500 (malloc): Declare when freestanding.
1503 (__cxa_allocate_exception): Call malloc, not std::malloc. Likewise
1505 (__cxa_free_exception): Likewise for free.
1506 * libsupc++/new_op.cc: Declare "malloc" when freestanding.
1507 * libsupc++/pure.cc (writestr): Define to nothing when
1509 * libsupc++/vterminate.cc: Do not define anything when
1511 * Makefile.in: Regenerated.
1512 * aclocal.m4: Likewise.
1513 * configure: Likewise.
1514 * include/Makefile.in: Likewise.
1515 * libmath/Makefile.in: Likewise.
1516 * libsupc++/Makefile.in: Likewise.
1517 * po/Makefile.in: Likewise.
1518 * src/Makefile.in: Likewise.
1519 * testsuite/Makefile.in: Likewise.
1521 2004-08-01 Matt Austern <austern@apple.com>
1524 * include/bits/stl_list.h (_M_create_node): Remove unused
1525 zero-argument version.
1526 * include/ext/slist (_M_create_node): Pass two arguments to
1527 allocator's construct() member function.
1528 * testsuite/23_containers/deque/explicit_instantiation.cc: New.
1529 * testsuite/23_containers/list/explicit_instantiation.cc: New.
1530 * testsuite/23_containers/vector/explicit_instantiation.cc: New.
1531 * testsuite/23_containers/map/explicit_instantiation.cc: New.
1532 * testsuite/23_containers/set/explicit_instantiation.cc: New.
1533 * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
1534 * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
1535 * testsuite/ext/hash_set_explicit_instantiation.cc: New.
1536 * testsuite/ext/slist_explicit_instantiation.cc: New.
1538 2004-07-30 Paolo Carlini <pcarlini@suse.de>
1540 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1541 num_get<>::_M_extract_int): In the main parsing loop delay the
1542 life of __q to the actual use point.
1544 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1547 * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
1548 Don't clip the precision passed down to __convert_from_v:
1549 22.2.2.2.2 nowhere says so.
1550 * testsuite/22_locale/num_put/put/char/14220.cc: New.
1551 * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
1553 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1555 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
1557 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1558 Petur Runolfsson <peturr02@ru.is>
1560 PR libstdc++/12658 (continued)
1561 * src/locale_init.cc (locale::locale, locale::global): Use
1562 a single locale_mutex instead of two separate mutexes.
1564 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1567 * include/debug/map.h (insert(_InputIterator, _InputIterator)):
1569 * testsuite/23_containers/map/insert/16813.cc: New.
1571 2004-07-29 Phil Edwards <phil@codesourcery.com>
1573 * docs/html/faq/index.html: Update version references. Make
1574 clear that code from SGI has diverged greatly. Remove references
1575 to library snapshots and what's-new sections.
1576 * docs/html/faq/index.txt: Regenerate.
1578 2004-07-28 Matt Austern <austern@apple.com>
1580 * include/bits/stl_construct.h (_Destroy): New three-argument
1581 overload that takes an allocator argument. Another inline
1582 three-argument overload that takes std::allocator and dispatches
1583 to the two-argument version.
1584 * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
1585 Change return type to void to match uninitialized_fill_n.
1586 (__uninitialized_copy_a_): New function. Like uninitialized_copy
1587 except that it takes an allocator and uses it for construct and
1588 destroy. If the allocator is std::allocator, dispatches to
1590 (__uninitialized_fill_a): Likewise.
1591 (__uninitialized_fill_n_a): Likewise.
1592 (__uninitialized_copy_copy): Give it an allocator argument.
1593 (__uninitialized_fill_copy): Likewise.
1594 (__uninitialized_copy_fill): Likewise.
1595 * include/bits/deque.tcc: Use new forms defined in stl_construct.h
1596 and stl_uninitialized.h. Replace use of single-argument _Construct
1597 and _Destroy with use of allocator's construct and destroy methods.
1598 * include/bits/list.tcc: Likewise.
1599 * include/bits/stl_deque.h: Likewise.
1600 * include/bits/stl_list.h: Likewise.
1601 * include/bits/stl_tree.h: Likewise.
1602 * include/bits/stl_vector.h: Likewise.
1603 * include/bits/vector.tcc: Likewise.
1604 * include/ext/hashtable.h: Use rebind so that allocator_type
1605 has correct type for a container's allocator. Replace use of
1606 single-argument _Construct and _Destroy with use of allocator's
1607 construct and destroy methods.
1608 * include/ext/memory (__uninitialized_copy_n_a): New function.
1609 Like uninitialized_copy_n except that it takes an extra parameter,
1610 an allocator, and uses it for construct and destroy operations.
1611 * include/ext/rope: Use new forms defined in stl_construct.h,
1612 stl_uninitialized.h, and ext/memory. Replace use of single-argument
1613 _Construct and _Destroy with allocator construct and destroy methods.
1614 * include/ext/ropeimpl.h: Likewise.
1615 * include/ext/slist.h: Likewise.
1616 * testsuite/testsuite_allocator.h (check_construct_destroy): New.
1617 * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
1618 * testsuite/23_containers/deque/check_construct_destroy.cc: New.
1619 * testsuite/23_containers/list/check_construct_destroy.cc: New.
1620 * testsuite/23_containers/set/check_construct_destroy.cc: New.
1621 * testsuite/23_containers/vector/check_construct_destroy.cc: New.
1622 * testsuite/ext/hash_check_construct_destroy.cc: New.
1623 * testsuite/ext/slist_check_construct_destroy.cc: New.
1625 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
1627 2003-10-01 Eric Christopher <echristo@redhat.com>
1628 * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
1630 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
1631 * config/cpu/sh/atomicity.h: New. Use movli and movco on SH4a.
1633 2004-07-23 Benjamin Kosnik <bkoz@redhat.com>
1636 * include/bits/locale_facets.tcc: Fix for -Werror.
1638 2004-07-23 Jonathan Wakely <redi@gcc.gnu.org>
1640 * docs/html/debug.html: Say debug mode only available since 3.4.0.
1642 2004-07-21 Benjamin Kosnik <bkoz@redhat.com>
1644 * docs/doxygen/mainpage.html: Clarify links.
1645 * docs/doxygen/stdheader.cc: Add files.
1646 * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
1647 * docs/doxygen/user.cfg.in: New options, wrap.
1649 2004-07-20 Danny Smith <dannysmith@users.sourceforge.net>
1651 * include/c_std/std_cwchar.h (wcsstr): Correct signature.
1653 2004-07-19 Benjamin Kosnik <bkoz@redhat.com>
1656 * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
1658 2004-07-17 Richard Sandiford <rsandifo@redhat.com>
1661 * scripts/create_testsuite_files: Pass -print to find.
1663 2004-07-15 Paolo Carlini <pcarlini@suse.de>
1665 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
1666 * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
1668 2004-07-15 Jakub Jelinek <jakub@redhat.com>
1671 * acinclude.m4 (glibcxx_shared_libgcc): Correct
1672 glibcxx_shared_libgcc test for multilibs.
1673 * configure: Rebuilt.
1675 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1678 * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
1679 the signature to return void, as per 20.4.4.3.
1680 * include/bits/stl_vector.h (vector::vector(size_type,
1681 const value_type&, const allocator_type&), vector::vector(size_type),
1682 vector::_M_initialize_dispatch): Adjust callers.
1683 * include/bits/vector.tcc (vector<>::_M_fill_assign,
1684 vector<>::_M_fill_insert): Likewise.
1685 * testsuite/20_util/memory/16505.cc: New.
1687 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1689 * testsuite/22_locale/locale/cons/12658_thread-1.cc,
1690 12658_thread-2.cc: Use __gnu_test::try_named_locale.
1692 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1694 * docs/html/ext/mt_allocator.html: Add docs for _Tune.
1695 * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
1696 (__mt_alloc::_S_set_options): Same.
1699 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1701 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
1703 * configure: Regenerated.
1705 2004-07-13 Paolo Carlini <pcarlini@suse.de>
1707 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
1708 to 12658_thread-1.cc and xfail.
1709 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
1710 simpler version of 12658_thread-1.cc, still failing on 3_3 and
1711 not failing on 3_4/mainline - both on single processor and
1712 multiprocessor machines.
1714 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
1716 * docs/html/abi.html: Remove non-public qualification.
1718 * include/bits/concurrence.h: Tweak comments.
1720 2004-07-11 Paolo Carlini <pcarlini@suse.de>
1722 Add wchar_t counterparts of the basic_streambbuf<char> tests.
1723 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
1724 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
1726 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
1727 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
1729 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
1730 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
1731 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
1732 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
1733 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
1735 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
1737 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
1739 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
1741 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
1742 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
1744 2004-07-11 Phil Edwards <phil@codesourcery.com>
1746 * acinclude.m4: Cosmetic shell syntax fixes.
1747 * configure.ac: Bring comment inline with reality.
1748 * configure.host: Both of the above. Move 'arm' case to right
1749 place in host_cpu switch.
1750 * aclocal.m4, configure: Regenerate.
1752 2004-07-09 Paolo Carlini <pcarlini@suse.de>
1754 Add wchar_t counterparts of the basic_stringbuf<char> tests.
1755 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
1756 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
1757 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
1758 3599.cc, 9988.cc: Likewise.
1759 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
1761 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
1763 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
1765 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
1767 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
1768 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
1769 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
1770 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
1772 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
1773 9404-1.cc: Likewise.
1774 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
1775 9404-2.cc: Likewise.
1776 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
1778 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
1779 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
1781 2004-07-08 Paolo Carlini <pcarlini@suse.de>
1783 * include/bits/gslice.h: Trivial formatting fixes.
1784 * include/bits/gslice_array.h: Likewise.
1785 * include/bits/indirect_array.h: Likewise.
1786 * include/bits/mask_array.h: Likewise.
1787 * include/bits/slice_array.h: Likewise.
1788 * include/bits/valarray_after.h: Likewise.
1789 * include/bits/valarray_array.h: Likewise.
1790 * include/bits/valarray_before.h: Likewise.
1791 * include/std/std_valarray.h: Likewise.
1793 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
1796 * include/bits/basic_string.h (basic_string::operator=): Revert.
1798 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
1800 * configure.ac (libtool_VERSION): To 6:2:0.
1801 * configure: Regenerated.
1803 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
1805 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
1808 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
1810 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
1812 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
1815 2004-07-07 Paolo Carlini <pcarlini@suse.de>
1818 * include/bits/sstream.tcc (overflow): When reallocating _M_string
1819 use an exponential grow policy.
1820 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
1821 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
1823 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
1826 * crossconfig.m4: Add in bits for djgpp.
1827 * configure: Regenerate.
1829 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
1831 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
1832 instantiation of set and multiset (functor param given as int).
1834 2004-07-04 Paolo Carlini <pcarlini@suse.de>
1836 * include/bits/basic_string.h: Trivial formatting fixes and/or
1837 const-ification of some variables.
1838 * include/bits/deque.tcc: Likewise.
1839 * include/bits/stl_algobase.h: Likewise.
1840 * include/bits/stl_bvector.h: Likewise.
1841 * include/bits/stl_construct.h: Likewise.
1842 * include/bits/stl_deque.h: Likewise.
1843 * include/bits/stl_pair.h: Likewise.
1844 * include/bits/stl_vector.h: Likewise.
1845 * include/bits/vector.tcc: Likewise.
1847 2004-07-04 Paolo Carlini <pcarlini@suse.de>
1849 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
1850 systems with no COMDAT or weak support.
1851 * testsuite/25_algorithms/copy/2.cc: Likewise.
1852 * testsuite/25_algorithms/copy/3.cc: Likewise.
1853 * testsuite/25_algorithms/copy/4.cc: Likewise.
1855 2004-07-03 Paul Brook <paul@codesourcery.com>
1857 * configure.ac: Set ABI_TWEAKS_SRCDIR.
1858 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
1859 setting atomicity_dir. Override type_cpu for arm based targets.
1860 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
1861 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
1862 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
1863 * libsupc++/vec.cc: Ditto.
1864 * config/cpu/arm/cxxabi_tweaks.h: New file.
1865 * config/cpu/generic/cxxabi_tweaks.h: New file.
1866 * */Makefile.in: Regenerate.
1867 * configure: Regenerate.
1869 2004-07-02 Paolo Carlini <pcarlini@suse.de>
1871 * include/bits/type_traits.h (_Is_normal_iterator): Move...
1872 * include/bits/cpp_type_traits.h: ... here, renamed to
1873 __is_normal_iterator and consistent with the other traits.
1874 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
1875 to the struct __copy_normal and three specializations.
1876 (__copy_backward_output_normal_iterator,
1877 __copy_backward_input_normal_iterator): Likewise, convert to
1878 the struct __copy_backward_normal and three specializations.
1879 (copy, copy_backward): Use the latter.
1880 (__copy_aux, __copy_backward_aux): Very minor tweaks.
1882 2004-07-01 Paolo Carlini <pcarlini@suse.de>
1884 * include/bits/stl_algobase.h (__copy_trivial): Remove.
1885 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
1886 __is_trivially_copyable, __are_same and __copy::copy.
1887 (__copy): Rewrite as a class template and two specializations.
1888 (__copy_ni2): Simplify, just call __copy_aux.
1890 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
1892 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
1893 for destination value type != source value type.
1895 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
1896 Per Bothner <per@bothner.com>
1897 Mohan Embar <gnustuff@thisiscool.com>
1900 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
1901 (__glibcxx_mutex): Encapsulate mutex init function into type for
1902 threaded configurations without __GTHREAD_MUTEX_INIT.
1903 (lock::lock): Make device member a reference.
1904 (lock::~lock): Same.
1905 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
1907 * src/allocator.cc: Same.
1909 2004-06-30 Brad Spencer <spencer@infointeractive.com>
1911 * include/ext/mt_allocator.h: Handle allocations at static
1912 initialization that happen before _S_options is (automatically)
1913 constructed; set _S_init even if _M_force_new is true.
1915 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
1917 * config/linker-map.gnu: Revert new exports.
1919 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
1920 Stuart Anderson <anderson@netsweng.com>
1922 * config/linker-map.gnu: Add destructor exports for abstract base
1923 classes to conform to LSB.
1925 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1926 Paolo Carlini <pcarlini@suse.de>
1928 * include/bits/cpp_type_traits.h: Add __is_pointer and
1929 __is_trivially_copyable.
1930 * include/bits/stl_algobase.h (fill, fill_n): Slightly
1931 tweak to use the latter.
1932 (__copy_backward_dispatch): Remove.
1933 (__copy_backward_aux): Rewrite to use __is_pointer and
1934 __is_trivially_copyable and __copy_backward::copy_b.
1935 (__copy_backward): Rewrite as a class template and two
1938 2004-06-30 Paolo Carlini <pcarlini@suse.de>
1940 * testsuite/25_algorithms/copy.cc: Move to...
1941 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
1942 * testsuite/25_algorithms/copy/2.cc: New.
1943 * testsuite/25_algorithms/copy/3.cc: New.
1944 * testsuite/25_algorithms/copy/4.cc: New.
1946 2004-06-29 Paul Brook <paul@codesourcery.com>
1948 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
1949 element size in the cookie.
1951 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1953 * include/bits/cpp_type_traits.h: Move the additions to
1954 namespace __gnu_internal outside of namespace std; trivial
1957 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
1959 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
1960 Revert -Weffc++ changes that defined copy ctory and or assignment
1962 * libsupc++/tinfo.cc (__upcast_result): Same.
1964 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1966 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
1967 the algorithm used to name the categories.
1969 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
1971 * include/Makefile.am: Give a .gch extension to
1972 the PCH files, not only to the directory.
1973 * include/Makefile.in: Regenerate.
1975 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1977 * config/locale/gnu/monetary_members.cc
1978 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
1979 assignments of _M_decimal_point and _M_thousands_sep.
1981 2004-06-27 Paolo Carlini <pcarlini@suse.de>
1983 * docs/html/17_intro/contribute.html: Update some links.
1984 * docs/html/17_intro/porting-howto.html: Likewise.
1985 * docs/html/17_intro/porting-howto.xml: Likewise.
1986 * docs/html/18_support/howto.html: Likewise.
1987 * docs/html/21_strings/howto.html: Likewise.
1988 * docs/html/27_io/howto.html: Likewise.
1989 * docs/html/configopts.html: Likewise.
1990 * docs/html/ext/howto.html: Likewise.
1991 * docs/html/faq/index.html: Likewise.
1992 * docs/html/install.html: Don't mention 2.x compilers.
1994 2004-06-27 Paolo Carlini <pcarlini@suse.de>
1996 * include/ext/rope: Trivial formatting fixes.
1997 * include/ext/ropeimpl.h: Likewise.
1999 2004-06-26 Paolo Carlini <pcarlini@suse.de>
2002 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
2003 availability of strto(u)ll, not used anymore in the iostreams.
2004 * configure: Regenerate.
2006 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
2009 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
2011 * configure: Regenerate.
2013 2004-06-25 Paul Brook <paul@codesourcery.com>
2015 * libsupc++/cxxabi.h: Define __ARM_EABI__
2017 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
2019 2004-06-25 Paul Brook <paul@codesourcery.com>
2021 * include/bits/concurrence.h: Still create mutex object when
2024 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2026 * include/bits/stl_algobase.h (fill, fill_n): Revert last
2027 change: actually we need to copy construct an object of type
2028 _Tp, not of type iterator_traits<>::value_type, therefore the
2031 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2033 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
2034 dispatch: use iterator_traits<>::value_type, not _Tp.
2036 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2038 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
2039 * testsuite/25_algorithms/fill/2.cc: Likewise.
2041 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
2042 Paolo Carlini <pcarlini@suse.de>
2044 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
2045 for fill and fill_n, respectively: when copying is cheap, use a
2046 temporary to avoid a memory read in each iteration.
2048 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2050 * testsuite/25_algorithms/fill/1.cc: New.
2051 * testsuite/25_algorithms/fill/2.cc: Likewise.
2053 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
2055 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
2056 Remove copy constructor and assignment operator.
2058 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
2060 * include/bits/concurrence.h (__gnu_cxx::lock): New.
2061 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
2062 (__pool_base::_M_get_mutex): New.
2063 * include/bits/allocator.h: Tweak.
2064 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
2065 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
2066 * include/bits/stl_threads.h: Remove.
2067 * include/Makefile.am: Also here.
2068 * include/Makefile.in: Regenerate.
2070 * src/locale_init.cc: Use __gnu_cxx::lock.
2072 * src/allocator.cc: Move all instantiations...
2073 * src/allocator-inst.cc: ...here.
2075 2004-06-23 Andrew Pinski <apinski@apple.com>
2077 * linkage.m4: Remove check for libmx.
2078 * configure: Regenerate.
2080 2004-06-23 Paolo Carlini <pcarlini@suse.de>
2083 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
2084 Don't require the _DefaultConstructibleConcept.
2085 (struct _ForwardIteratorConcept): Require it here.
2087 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
2089 * include/bits/istream.tcc (getline): Make sure arguments passed
2090 to min/max have the same type.
2091 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
2092 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
2094 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
2096 * docs/html/abi.html: Update links.
2098 2004-06-22 Paolo Carlini <pcarlini@suse.de>
2100 * testsuite/26_numerics/complex_inserters_extractors.cc,
2101 complex_value.cc, buggy_complex.cc: Move to...
2102 * testsuite/26_numerics/complex/: ... here.
2103 * testsuite/26_numerics/c99_classification_macros_c++.cc,
2104 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
2105 fabs_inline.cc: Move to...
2106 * testsuite/26_numerics/cmath/: ... here.
2107 * testsuite/26_numerics/binary_closure.cc, slice.cc,
2108 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
2109 valarray_name_lookup.cc, valarray_operators.cc,
2110 valarray_subset_assignment.cc: Move to...
2111 * testsuite/26_numerics/valarray/: ... here (new dir).
2112 * testsuite/26_numerics/sum_diff.cc: Move to...
2113 * testsuite/26_numerics/numeric/: ... here (new dir).
2115 2004-06-22 Paolo Carlini <pcarlini@suse.de>
2117 * include/std/std_istream.h (ignore(streamsize __n = 1,
2118 int_type __delim = traits_type::eof())): Split into...
2119 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2120 int_type __delim)): The first two can be much more simpler
2121 and efficient than the fully general case; also, the last
2122 two can take advantage of the same mechanism already used
2124 * include/bits/istream.tcc (ignore(streamsize __n = 1,
2125 int_type __delim = traits_type::eof()): Remove.
2126 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2127 int_type __delim)): New.
2129 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
2131 * config/linker-map.gnu: Use wildcards for
2132 __basic_file::sys_open(FILE*, _Ios_Openmode).
2134 2004-06-20 Paolo Carlini <pcarlini@suse.de>
2136 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
2138 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2140 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
2141 the alignment requested.
2142 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
2143 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
2144 (__mt_alloc<>::deallocate): Likewise.
2146 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2149 * include/debug/safe_base.h
2150 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
2151 _Safe_sequence_base::operator=): Provide definitions.
2152 * testsuite/23_containers/bitset/cons/16020.cc: New.
2154 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
2156 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
2157 (__pool_base): Remove unused template parameter. Add
2158 protected. Move lock data into __pool_base::_Lock. Remove static
2159 on member functions.
2160 (__pool_base::_M_get_free_list): New.
2161 (__pool_alloc): Move _S_force new here.
2162 * src/allocator.cc: Move out of line __pool_base definitions here.
2163 * config/linker-map.gnu: Export bits from __pool_base.
2165 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2167 * config/locale/gnu/numeric_members.cc
2168 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
2169 assignments of _M_decimal_point and _M_thousands_sep.
2170 * config/locale/gnu/time_members.cc
2171 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
2172 and reformat assignments of date and time fields.
2174 2004-06-16 Paolo Carlini <pcarlini@suse.de>
2176 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
2177 to use _Data_allocate.
2178 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
2179 (rope<>::_S_substring): Likewise.
2180 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
2181 (rope<>::c_str()): Likewise.
2182 (rope<>::replace_with_c_str()): Likewise.
2184 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
2185 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
2187 (_Rope_iterator_base<>::_S_setcache): Likewise.
2188 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
2189 (rope<>::_S_substring): Likewise.
2190 (rope<>::_S_dump): Likewise.
2191 (rope<>::_S_fetch_ptr): Likewise.
2192 (rope<>::_S_compare): Likewise.
2193 (rope<>::replace_with_c_str()): Likewise.
2195 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
2196 * testsuite/ext/rope/2.cc: New.
2198 2004-06-16 Paolo Carlini <pcarlini@suse.de>
2199 Matt Austern <austern@apple.com>
2201 * testsuite/ext/rope/3.cc: New.
2203 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
2205 * acinclude.m4: Remove useless multilib configury.
2206 * Makefile.am: Remove useless multilib rules.
2207 * aclocal.m4: Regenerate.
2208 * Makefile.in: Regenerate.
2209 * configure: Regenerate.
2211 2004-06-15 Paolo Carlini <pcarlini@suse.de>
2213 * include/ext/hashtable.h: Trivial formatting fixes.
2214 * include/ext/rb_tree: Likewise.
2216 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2218 * include/ext/hash_map: Trivial formatting fixes.
2219 * include/ext/hash_set: Likewise.
2220 * include/ext/memory: Likewise.
2221 * include/ext/numeric: Likewise.
2223 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
2225 * Makefile.in: Regenerate with automake 1.8.5.
2227 * include/Makefile.in: Same.
2228 * libmath/Makefile.in: Same.
2229 * libsupc++/Makefile.in: Same.
2230 * po/Makefile.in: Same.
2231 * src/Makefile.in: Same.
2232 * testsuite/Makefile.in: Same.
2234 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2236 * include/ext/slist: Trivial formatting fixes.
2238 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2240 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
2241 Don't use the 'magic number' 10 in the computation of __minlen;
2242 never access __name past __minlen; in the loop over __i3, don't
2243 decrease __nmatches and increase __i3 at once, only either of
2246 2004-06-13 Paolo Carlini <pcarlini@suse.de>
2248 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
2249 time_get<>::do_get_date): Use only once _M_extract_via_format,
2250 instead of going through "%X"/"%x" and calling it two times
2253 2004-06-12 Paolo Carlini <pcarlini@suse.de>
2255 * include/ext/algorithm: Trivial formatting fixes.
2256 * include/ext/functional: Likewise.
2257 * include/ext/hash_fun.h: Likewise.
2258 * include/ext/iterator: Likewise.
2260 2004-06-12 Paolo Carlini <pcarlini@suse.de>
2262 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
2263 size_type)): Reimplement using std::search.
2264 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
2266 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
2268 * testsuite/performance/21_strings/string_find.cc: New.
2270 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
2272 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
2274 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
2276 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
2277 this function return a value.
2279 2004-06-09 Paolo Carlini <pcarlini@suse.de>
2282 * include/bits/stl_deque.h: Consistently with stl_set.h, define
2283 pointer as allocator's pointer, likewise for reference,
2284 const_pointer, and const_reference.
2285 * include/bits/stl_list.h: Likewise.
2286 * include/bits/stl_map.h: Likewise.
2287 * include/bits/stl_multimap.h: Likewise.
2288 * include/bits/stl_vector.h: Likewise.
2290 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
2292 * crossconfig.m4: Remove signbit, signbitf, signbitl.
2293 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
2294 builtin math functions instead of AC_DEFINE_UNQUOTED.
2295 * configure: Regenerate.
2297 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
2299 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
2300 * docs/doxygen/mainpage.html: Remove links.
2302 2004-06-08 Jason Merrill <jason@redhat.com>
2304 * config/linker-map.gnu: Use wildcards for
2305 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
2307 2004-06-08 Paolo Carlini <pcarlini@suse.de>
2309 * include/ext/pool_allocator.h: Convert to a global free-list,
2310 as per the original SGI/HP design: move the implementation
2311 details to struct __pool_base, from which __pool_alloc derives.
2312 * src/allocator.cc: Instantiate __pool_base.
2314 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
2315 Paolo Carlini <pcarlini@suse.de>
2317 * testsuite/testsuite_performance.h
2318 (resource_counter::allocated_memory): Make it return the right
2319 number of bytes requested by the allocators/application. This is
2320 the sbrk+mmaped memory.
2322 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
2324 * include/std/std_complex.h (log): Tidy.
2326 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
2328 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
2329 * testsuite/testsuite_abi.cc: Same.
2330 * configure.ac (libtool_VERSION): Bump to 6:1:0.
2331 * configure: Regenerate.
2332 * aclocal.m4: Regenerate.
2334 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2336 * include/std/std_complex.h (complex<_Tp>): Properly indent
2338 (complex<>::__rep): New.
2339 (__complex_abs): New. Dispatch to built-ins.
2341 (__complex_arg): New. Dispatch to built-ins.
2343 (__complex_cos): New. Dispatch to built-ins.
2345 (__complex_cosh): New. Dispatch to built-ins.
2347 (__complex_exp): New. Dispatch to built-ins.
2349 (__complex_log): New. Dispatch to built-ins.
2351 (__complex_sin): New. Dispatch to built-ins.
2353 (__complex_sinh): New. Dispatch to built-ins.
2355 (__complex_sqrt): New. Dispatch to built-ins.
2357 (__complex_tan): New. Dispatch to built-ins.
2359 (__complex_tanh): New. Dispatch to built-ins.
2361 (__complex_pow): New. Dispatch to built-ins.
2364 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
2365 Benjamin Kosnik <bkoz@redhat.com>
2368 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
2369 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
2370 * config/io/basic_file_stdio.cc (__basic_file::file): New.
2371 * config/io/basic_file_stdio.h: Define.
2373 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
2376 * docs/html/documentation.html: Update doxygen links for 3.4.0.
2378 2004-05-27 Jan Beulich <jbeulich@novell.com>
2380 * scripts/create_testsuite_files: Tweak.
2382 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
2385 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
2386 bits to do the same thing.
2388 2004-05-24 Paolo Carlini <pcarlini@suse.de>
2390 * include/bits/istream.tcc (ignore): Correctly deal with
2391 n == numeric_limits<streamsize>::max().
2392 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
2394 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
2395 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
2396 __n == numeric_limits<>::min().
2398 * include/bits/istream.tcc: Minor tweaks.
2400 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2402 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2404 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2406 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2408 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2410 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2413 Fixups for -Weffc++.
2414 * include/bits/basic_string.h (basic_string::operator=): Return
2415 pointer to this instead of result of assign. Although redundant,
2416 this doesn't impact resultant codegen.
2418 * include/bits/locale_facets.h (__numpunct_cache): Declare
2419 assignment opxserator and copy constructor private.
2420 (__timepunct_cache): Same.
2421 (__moneypunct_cache): Same.
2422 (collate): Use member initialization list for _M_c_locale_collate.
2423 * config/locale/gnu/messages_members.h: Same.
2424 * config/locale/gnu/time_members.h (__timepunct): Same.
2425 * src/codecvt.cc: Use member initialization list to initialize
2426 _M_c_locale_codecvt.
2427 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
2428 * config/os/gnu-linux/ctype_noninline.h: Same.
2429 * src/locale.cc (_Impl): Same.
2430 * src/locale_init.cc: Same.
2431 * src/localename.cc: Same.
2433 * include/bits/basic_ios.h (basic_ios): Complete member
2434 initialization list.
2435 * include/bits/istream.tcc (basic_istream::sentry): Same.
2436 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
2437 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
2438 _M_pback to member initialization list.
2439 * include/std/std_streambuf.h: Same.
2440 * include/std/std_sstream.h: Same, for _M_mode.
2441 * src/ios.cc (ios_base): Same.
2443 * include/ext/rope: Make derived classes match exception
2445 specifications. Add copy constructors and assignment operators.
2447 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
2448 constructor and assignment operator protected.
2449 (_Safe_iterator_base): Same.
2450 * include/debug/formatter.h (_Error_formatter): Define copy
2451 constructor and assignment operator.
2453 * include/backward/strstream: Declare assignment operator and copy
2454 constructor private.
2456 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2458 * testsuite/testsuite_hooks.h (func_callback): Declare copy
2459 constructor and assignment operator private.
2460 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
2461 exception specifications of base class.
2462 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
2463 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
2464 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2466 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2468 * libsupc++/cxxabi.h: Remove duplicated and useless public and
2469 private keywords in class declarations. Format. Use
2470 stddef.h. Expose declarations to "C" compilation.
2471 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
2472 assignment operator.
2473 (__dyncast_result): Same.
2474 * libsupc++/vec.cc (uncatch_exception): Same, use member
2475 initialization list.
2477 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2479 * testsuite/abi_check.cc: Add unistd.h.
2481 2004-05-22 Paolo Carlini <pcarlini@suse.de>
2484 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
2485 __int_to_char(unsigned long long)): Showpos is not relevant
2487 * testsuite/22_locale/num_put/put/char/15565.cc: New.
2488 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
2490 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
2492 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
2493 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
2494 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2495 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
2496 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
2497 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
2499 2004-05-21 Matthias Klose <doko@debian.org>
2501 * docs/doxygen/run_doxygen: Bump required version.
2503 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
2505 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
2506 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
2508 2004-05-21 Paolo Carlini <pcarlini@suse.de>
2510 * include/bits/istream.tcc (ignore): Remove redundant line.
2511 (readsome): Tidy, closely following 27.6.1.3, p30.
2513 2004-05-20 Paolo Carlini <pcarlini@suse.de>
2515 * include/bits/istream.tcc (operator>>(basic_istream<>&,
2516 basic_string<>&)): Use a temporary buffer, thus avoiding
2517 reallocation for common case.
2518 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2520 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2523 * include/bits/istream.tcc: Const-ification of a few variables.
2525 * include/bits/ostream.tcc: Trivial formatting fixes and
2526 const-ification of some variables.
2528 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
2532 * docs/doxygen/Intro.3: Remove Allocators.3.
2533 Add new extension headers, extension namespace list.
2534 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
2535 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
2536 __gnu_debug::. Remove __policy_ renames.
2537 * docs/doxygen/guide.html: Add dot note.
2538 * docs/doxygen/stdheader.cc: Edit, add files.
2539 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
2541 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2543 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
2545 2004-05-18 Jan Beulich <jbeulich@novell.com>
2548 * scripts/create_testsuite_files: Also find source files through
2551 2004-05-18 Jan Beulich <jbeulich@novell.com>
2554 * testsuite/lib/libstdc++.exp: Make test files writable.
2556 2004-05-18 Paolo Carlini <pcarlini@suse.de>
2558 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
2561 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
2563 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
2564 allocation loop which removes blocks from the global free list
2565 from O(N) to O(1) when the required blocks are <= the number
2568 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2570 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
2572 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
2574 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
2575 * testsuite/23_containers/deque/14340.cc: New.
2576 * testsuite/23_containers/list/14340.cc: New.
2577 * testsuite/23_containers/map/14340.cc: New.
2578 * testsuite/23_containers/multimap/14340.cc: New.
2579 * testsuite/23_containers/multiset/14340.cc: New.
2580 * testsuite/23_containers/set/14340.cc: New.
2581 * testsuite/23_containers/vector/14340.cc: New.
2583 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
2586 * include/debug/safe_iterator.h (_Safe_iterator converting
2587 constructor): Only allow declaration to instantiate when the
2588 incoming _Safe_iterator has exactly the right iterator type.
2590 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
2592 * include/bits/boost_concept_check.h: Fix old attribute syntax.
2593 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
2594 to pass concept-checks.
2595 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2596 * testsuite/23_containers/set/modifiers/swap.cc: Same.
2597 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2599 2004-05-16 Paolo Carlini <pcarlini@suse.de>
2601 * include/std/std_bitset.h: Minor formatting fixes.
2603 2004-05-16 Paolo Carlini <pcarlini@suse.de>
2605 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2606 Consistently update __bin._M_free[0].
2607 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
2608 __bin._M_free[0] to simplify the while loop (i.e., the number
2609 of iterations becomes known at the outset).
2611 2004-05-15 Paolo Carlini <pcarlini@suse.de>
2613 * include/std/std_bitset.h: Trivial formatting fixes.
2615 2004-05-14 Paolo Carlini <pcarlini@suse.de>
2616 Ivan Godard <igodard@pacbell.net>
2619 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
2620 * testsuite/23_containers/bitset/ext/15361.cc: New.
2622 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2625 * crossconfig.m4: Add C99 math bits for linux crosses.
2626 * configure: Regenerate.
2628 2004-05-13 Simon Marshall <simon.marshall@misys.com>
2629 Benjamin Kosnik <bkoz@redhat.com>
2632 * include/bits/locale_facets.h: Fix for -fno-for-scope.
2633 * include/debug/safe_sequence.h: Same.
2634 * include/debug/safe_iterator.tcc: Same.
2635 * src/debug.cc: Same.
2636 * src/locale.cc: Same.
2637 * src/locale_init.cc: Same.
2638 * src/localename.cc: Same.
2639 * config/locale/gnu/ctype_members.cc: Same.
2640 * config/locale/gnu/numeric_members.cc: Same.
2641 * testsuite/testsuite_abi.cc: Same.
2642 * testsuite/testsuite_hooks.cc: Same.
2644 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
2646 * docs/html/abi.html: Document effect of -fabi-version on value
2647 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
2650 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2653 * docs/html/faq/index.html: Update docs for libsupc++ usage.
2655 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2658 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
2660 (_GLIBCXX_mutex_address): Same.
2661 (_GLIBCXX_once): Same.
2662 (_GLIBCXX_mutex_init): Same.
2663 (_GLIBCXX_mutex_address_init): Same.
2665 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2667 * docs/html/abi.html: New.
2668 * docs/html/abi.txt: Remove.
2669 * docs/html/documentation.html: Add link.
2670 * testsuite/Makefile.am: Add files.
2671 * testsuite/Makefile.in: Regenerated.
2672 * testsuite/abi_check.cc: Move and modify code into...
2673 * testsuite/testsuite_abi.cc: Add.
2674 * testsuite/testsuite_abi.h: Add.
2676 * docs/html/17_intro/TODO: Update.
2677 * include/bits/stl_pair.h: Format.
2679 2004-05-06 Matthias Klose <doko@debian.org>
2681 * include/backward/iterator.h: Add GPL copyright info,
2682 with exception clause.
2683 * include/bits/boost_concept_check.h: Likewise.
2685 * libsupc++/tinfo.h: Likewise.
2686 * po/string_literals.cc: Likewise.
2688 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
2690 * acinclude.m4: Replace -W with more speaking -Wextra.
2691 * configure: Rebuilt.
2693 2004-05-03 Paolo Carlini <pcarlini@suse.de>
2695 Optimize locale::_M_impl->_M_names for the most common cases:
2696 !_M_names[0] means unnamed; !_M_names[1] means all the categories
2697 the same name (_M_names[0] && _M_names[1] means that the full set
2698 of _M_names must be processed, the general case).
2699 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
2700 Tweak, saving work when !_M_names[1].
2701 (locale::locale(const locale&, _Facet*): Simplify: now just setting
2702 _M_names[0] = 0 means unnamed.
2703 * src/locale.cc (locale::operator==): Deal first with the common,
2704 easy cases, otherwise fall back to locale::name().
2705 (locale::name()): Tweak, if !_M_names[0] just return "*".
2706 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
2707 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
2708 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
2709 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
2710 Simplify when !std::strchr, just updating _M_names[0]; clean up.
2711 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
2712 for the general case (full set of names), then do the usual work;
2715 * src/locale.cc (locale::name()): Reserve space in __ret.
2716 * src/locale_init.cc (locale::global(const locale&)): Save
2717 the name in a temporary.
2718 * src/localename.cc (locale::locale(const char*)): Reserve space
2721 2004-04-29 Paolo Carlini <pcarlini@suse.de>
2723 * src/locale.cc (locale::operator==): Always avoid constructing
2724 locale::name(), directly compare pairs of _M_names.
2726 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2728 * include/bits/istream.tcc: Fix comment.
2730 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2732 * include/bits/stl_vector.h: Trivial formatting fixes.
2733 * include/bits/vector.tcc: Likewise.
2735 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2737 PR libstdc++/15002 (continued again)
2738 * include/bits/istream.tcc (getline(basic_istream<>&,
2739 basic_string<>&, _CharT)): Use a temporary buffer, thus
2740 avoiding reallocation for common case.
2742 * include/bits/basic_string.tcc (_S_construct(_InIterator,
2743 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
2744 of temporary buffer to a power of two.
2746 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
2748 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2750 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2752 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2754 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2756 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2757 Petur Runolfsson <peturr02@ru.is>
2759 PR libstdc++/15002 (continued)
2760 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
2761 streamsize, char_type)): Use traits::find/copy in a loop to speed
2762 up greatly the function in the common case (I/O buffer size >> 1).
2764 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2766 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
2768 * include/bits/istream.tcc (getline(basic_istream<>&,
2769 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
2770 of sbumpc(), consistently with the other functions, thus also
2771 dealing correctly with the case of exceeded string::max_size().
2773 2004-04-24 Matthias Klose <doko@debian.org>
2775 Jonathan Wakely <cow@compsoc.man.ac.uk>
2776 * docs/html/configopts.html: Fix reference to allocator config option.
2778 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
2780 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
2781 * configure: Regenerate.
2783 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
2785 PR libstdc++/15047, libstdc++/11610
2786 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
2787 (libstdc++_init): Don't pass outdir to v3-copy-files.
2789 2004-04-21 Paolo Carlini <pcarlini@suse.de>
2791 * include/bits/deque.tcc: Trivial formatting fixes.
2792 * include/bits/stl_deque.h: Likewise.
2793 * include/bits/stl_list.h: Likewise.
2794 * include/bits/stl_tree.h: Likewise.
2796 2004-04-21 Paolo Carlini <pcarlini@suse.de>
2797 Andrew Pinski <pinskia@physics.uc.edu>
2799 * include/bits/basic_string.tcc (_M_mutate): Don't compute
2800 __src unnecessarily.
2802 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
2804 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
2805 Clarify assertion, set test variable to false before assert.
2806 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
2807 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
2808 * testsuite/27_io/ios_base/storage/2.cc: Same.
2810 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
2812 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
2813 * testsuite/27_io/fpos/14320-3.cc: Same.
2815 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
2816 * testsuite/27_io/fpos/1.cc: Same.
2817 * testsuite/27_io/basic_stringstream/2.cc: Same.
2818 * testsuite/27_io/basic_stringbuf/4.cc: Same.
2819 * testsuite/27_io/basic_stringbuf/1.cc: Same.
2820 * testsuite/27_io/basic_stringbuf/2.cc: Same.
2821 * testsuite/27_io/basic_streambuf/2.cc: Same.
2822 * testsuite/27_io/basic_ostringstream/2.cc: Same.
2823 * testsuite/27_io/basic_ostream/2.cc: Same.
2824 * testsuite/27_io/basic_ofstream/2.cc: Same.
2825 * testsuite/27_io/basic_istringstream/2.cc: Same.
2826 * testsuite/27_io/basic_istream/2.cc: Same.
2827 * testsuite/27_io/basic_iostream/2.cc: Same.
2828 * testsuite/27_io/basic_ios/2.cc: Same.
2829 * testsuite/27_io/basic_ifstream/2.cc: Same.
2830 * testsuite/27_io/basic_fstream/2.cc: Same.
2831 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
2833 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
2834 unsigned against zero.
2835 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
2836 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
2838 * testsuite/18_support/new_delete_placement.cc: Initialize
2839 variables before first use.
2840 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
2841 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
2842 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
2843 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
2845 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
2846 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
2848 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
2849 * testsuite/27_io/types/2.cc: Same.
2851 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
2853 * testsuite/27_io/fpos/14775.cc: Same.
2855 2004-04-19 Paolo Carlini <pcarlini@suse.de>
2857 PR libstdc++/15002 (partial)
2858 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2859 Special case __n2 == 1, not calling traits_type::assign/copy.
2861 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
2863 * include/bits/stl_bvector.h: Use _M_impl._M_start.
2865 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
2867 * include/bits/c++config (_GLIBCXX_STD): New.
2868 * src/list.cc: Use it.
2869 * include/std/std_bitset.h: Same.
2870 * include/bits/vector.tcc: Same.
2871 * include/bits/stl_set.h: Same.
2872 * include/bits/stl_multiset.h: Same.
2873 * include/bits/stl_multimap.h: Same.
2874 * include/bits/stl_map.h: Same.
2875 * include/bits/stl_list.h: Same.
2876 * include/bits/stl_vector.h: Same.
2877 * include/bits/stl_bvector.h: Same.
2878 * include/bits/stl_deque.h: Same.
2879 * include/bits/deque.tcc: Same.
2880 * include/bits/list.tcc: Same.
2881 * include/debug/vector: Same.
2882 * include/debug/set.h: Same.
2883 * include/debug/multiset.h: Same.
2884 * include/debug/multimap.h: Same.
2885 * include/debug/map.h: Same.
2886 * include/debug/list: Same.
2887 * include/debug/deque: Same.
2888 * include/debug/bitset: Same.
2889 * include/debug/formatter.h (__gnu_debug): Remove using directive.
2890 Add using declaration for std::type_info.
2891 * include/debug/safe_iterator.h: Add using declaration for
2892 std::iterator_traits and std::pair.
2893 * src/debug_list.cc: New.
2894 * src/Makefile.am: Add debug_list.cc.
2895 * src/Makefile.in: Regenerate.
2896 * config/linker-map.gnu: Add _List_node_base exports for std and
2899 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
2900 idiom that other containers use.
2901 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2903 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2906 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
2908 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
2909 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
2911 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2913 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
2915 * config.h.in: Regenerate.
2917 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2919 * config/locale/generic/monetary_members.cc
2920 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
2921 btowc unnecessarily, just cast to wchar_t (the concerned chars
2922 all belong to the basic character set).
2923 * config/locale/generic/numeric_members.cc
2924 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2925 * config/locale/gnu/monetary_members.cc
2926 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
2927 * config/locale/gnu/numeric_members.cc
2928 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2930 2004-04-15 Paolo Carlini <pcarlini@suse.de>
2932 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
2933 avoid constructing unnecessarily this->name().
2935 2004-04-14 Zack Weinberg <zack@codesourcery.com>
2937 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
2938 Change definition of CXX to use $(shell) instead of backticks.
2939 * testsuite/Makefile.in: Regenerate.
2941 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
2943 * testsuite/performance/20_util/allocator/list_sort_search.cc:
2944 Minor formatting fixes.
2945 * testsuite/performance/20_util/allocator/map_mt_find.cc:
2948 2004-04-12 Paolo Carlini <pcarlini@suse.de>
2950 * config/locale/gnu/numeric_members.cc
2951 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
2952 in __uselocale, since btowc is called for chars belonging to
2953 the basic character set.
2955 2004-04-09 Paolo Carlini <pcarlini@suse.de>
2957 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
2958 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
2959 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
2960 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
2961 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
2962 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
2963 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
2964 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
2965 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
2966 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
2967 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
2968 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
2969 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
2970 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
2971 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
2972 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
2973 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
2975 2004-04-07 Paolo Carlini <pcarlini@suse.de>
2977 * config/locale/generic/time_members.cc
2978 (__timepunct<char>::_M_initialize_timepunct,
2979 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
2980 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
2981 * config/locale/gnu/time_members.cc
2982 (__timepunct<char>::_M_initialize_timepunct,
2983 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
2984 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
2985 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
2987 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
2988 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
2989 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
2990 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
2991 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
2992 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
2993 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
2994 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
2995 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
2996 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
2997 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
2998 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
2999 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
3000 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
3001 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
3002 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
3003 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
3004 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
3005 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
3006 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
3007 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
3008 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
3009 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
3010 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
3011 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
3012 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
3013 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
3014 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
3015 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
3016 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
3017 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
3018 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
3019 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
3020 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
3021 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
3022 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
3024 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
3026 2004-04-07 Paolo Carlini <pcarlini@suse.de>
3028 * config/locale/gnu/monetary_members.cc
3029 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
3030 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
3031 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
3032 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
3033 * config/locale/gnu/numeric_members.cc
3034 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
3035 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
3037 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
3039 Fixups for EDG front end.
3040 * include/ext/rope: Instead of non-existent function
3041 _Data_allocate, use allocator's allocate. Use this.
3042 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
3043 enumerations from _Rope_RopeRep here.
3044 * include/ext/ropeimpl.h: Same.
3045 * src/ext-inst.cc (_S_min_len): Fix up definition.
3047 * config/locale/gnu/ctype_members.cc: Qualify base class members
3049 * config/locale/generic/ctype_members.cc: Same.
3050 * config/locale/gnu/messages_members.h: Same.
3051 * config/locale/generic/messages_members.h: Same.
3052 * src/ctype.cc: Same.
3053 * include/bits/codecvt.h: Same.
3055 * include/bits/boost_concept_check.h: Declare.
3056 (__error_type_must_be_an_unsigned_integer_type): Remove this.
3057 (__error_type_must_be_an_integer_type): Remove this.
3058 (__error_type_must_be_a_signed_integer_type): Remove this.
3060 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
3062 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
3063 specification to definition.
3064 (__cxa_allocate_exception): Same.
3065 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
3066 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
3067 (__cxa_get_globals): Same.
3069 * libsupc++/del_op.cc: Add comment about freestanding.
3071 2004-04-05 Paolo Carlini <pcarlini@suse.de>
3073 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3074 The critical section is actually very small, only two assignments.
3076 2004-04-04 Paolo Carlini <pcarlini@suse.de>
3077 Petur Runolfsson <peturr02@ru.is>
3079 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
3080 adapted from libstdc++/11378.
3082 2004-04-03 Paolo Carlini <pcarlini@suse.de>
3084 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
3085 some duplicated code.
3086 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
3087 in the single threaded case.
3088 * testsuite/performance/20_util/allocator/list_sort_search.cc:
3089 Reorder and renumber the tests consistently with the other testfiles.
3090 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3091 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3092 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3094 2004-04-02 Paolo Carlini <pcarlini@suse.de>
3096 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3097 Rearrange arithmetic to avoid computing two divisions at
3100 2004-04-01 Paolo Carlini <pcarlini@suse.de>
3102 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
3103 Streamline the second half, wrapping it in a single
3104 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
3105 conditionals inside loops.
3107 2004-04-01 Paolo Carlini <pcarlini@suse.de>
3110 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
3111 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
3112 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
3113 to _GLIBCXX_RES_LIMITS.
3114 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
3116 * testsuite/testsuite_hooks.h: Declare set_file_limit.
3117 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
3118 and setrlimit(RLIMIT_FSIZE).
3119 * testsuite/27_io/fpos/14775.cc: New.
3120 * config.h.in: Regenerate.
3121 * configure: Likewise.
3123 2004-03-31 Paolo Carlini <pcarlini@suse.de>
3125 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
3126 In v3 uses of sscanf, the special floating-point numbers INF,
3127 INFINITY, etc., cannot occur in input, therefore, if the latter
3128 is too large, ERANGE is always stored in errno, no need of finitel.
3130 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
3133 * include/bits/stl_tree.h: Adjust initialization list order.
3135 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
3137 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
3139 2004-03-29 Paolo Carlini <pcarlini@suse.de>
3141 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
3142 on allocator behavior, the memory pointed by data2 may well be not
3145 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
3148 * include/bits/basic_string.tcc
3149 (basic_string::basic_string(const basic_string&)): Pass to
3150 _Rep::_M_grab the actual allocator of the string being constructed
3151 not the default constructed one.
3153 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
3156 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
3157 (__enc_traits::_M_destroy): New.
3158 (__enc_traits::~__enc_traits): Use it.
3159 (__enc_traits::operator=): Use _M_destroy, _M_init.
3160 (__enc_traits::__enc_traits): Same.
3162 2004-03-27 Petur Runolfsson <peturr02@ru.is>
3164 * testsuite/ext/enc_filebuf/char/13598.cc: New.
3166 2004-03-27 Paolo Carlini <pcarlini@suse.de>
3168 * include/ext/mt_allocator.h: Uglify consistently names of
3169 variables, members and classes; tidy.
3171 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
3173 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3174 Deallocation loop rewrote.
3176 2004-03-26 Paolo Carlini <pcarlini@suse.de>
3178 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3179 __mt_alloc<>::deallocate): Protect two instances of
3180 block->thread_id with __GTHREADS.
3182 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
3184 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
3185 default argument in constructors.
3186 (_Rb_tree::_M_empty_initialize): Remove.
3188 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
3190 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
3191 * testsuite/23_containers/set/operators/1_neg.cc: Same.
3193 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3195 * include/bits/cpp_type_traits.h: Changed __is_pod
3196 completely. Now, it does not use any of the previous type_traits
3197 to detect the pod types, and it also detects function pointers as
3200 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
3201 which encapsulates the internal implementation of an rb_tree. Made
3202 the allocator a base class of this class instead of the rb_tree,
3203 which was not conforming. This _Rb_tree_impl class is also
3204 specialized on whether the _Compare parameter is a POD type or
3205 not. If so, then it maintains the comparison function as a data
3206 member, otherwise it makes the _Compare parameter a base class of
3207 itself. Also, _M_key_compare is now a function instead of a data
3208 member, so that the above trick can work properly. Delegated the
3209 initialization of the other data members to this newly created
3210 class. Also, now other member functions of rb_tree must refer to
3211 _M_key_compare as _M_impl._M_key_compare(). The other data members
3212 (*) can be referenced to as _M_impl.(*), where
3213 (*) includes _M_header, and _M_node_count.
3215 2004-03-25 Paolo Carlini <pcarlini@suse.de>
3217 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
3218 Add _M_min_bin, the size in bytes of the smallest bin.
3219 (__mt_alloc<>::tune()): Tweak accordingly.
3220 (__mt_alloc<>::tune(size_t, ...)): Likewise.
3221 (__mt_alloc<>::block_record): Change to a union: members next
3222 and thread_id are never used at the same time.
3223 (__mt_alloc<>::allocate): Update consistently.
3224 (__mt_alloc<>::deallocate): Likewise.
3225 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
3226 _S_bin_size for the configurable _M_min_size.
3228 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3230 * include/bits/stl_list.h: Created a _List_impl class and made it
3231 derive from the allocator, instead of the list deriving from the
3232 allocator class, which was not conformant. Changed all references
3233 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
3234 as above (changed all references to the concerned variables).
3236 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3238 * include/bits/stl_deque.h: Created a _Deque_impl class and made
3239 it derive from the allocator, instead of the deque deriving from
3240 the allocator class, which was not conformant. Changed all
3241 references to the _M_start, _M_finish, _M_map, and _M_map_size to
3243 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
3244 qualification in 2 places where it was missing.
3245 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
3247 * include/bits/deque.tcc: Same as above (changed all references to
3248 the concerned variables).
3250 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3252 * include/bits/stl_vector.h: Created a _Vector_impl class and made
3253 it derive from the allocator, instead of the _Vector_base class,
3254 deriving from the allocator which was not conformant. Changed all
3255 references to the _M_start, _M_finish, and _M_end_of_storage to
3257 * include/bits/vector.tcc: Same as above (changed all references
3258 to the concerned variables).
3260 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3262 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
3263 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
3264 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
3266 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3268 * include/ext/malloc_allocator.h: Fixed the construct function to
3269 call global placement new instead of assignment. Added a check
3270 after the return from malloc to check whether returned pointer is
3271 NULL, and if so, throw std::bad_alloc().
3272 * include/ext/debug_allocator.h: Added a check in the deallocate
3273 function to check whether the user has passed a NULL pointer or
3276 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
3278 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
3280 2004-03-24 Andreas Schwab <schwab@suse.de>
3282 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
3283 warning from IA64 assembler.
3285 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3287 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
3288 function call __builtin_ctz instead of the while loop.
3289 (allocate) -> If condition has __builtin_expect.
3290 (deallocate) -> Ditto.
3291 Renamed a few left-over variables and typedefs according to the
3292 C++STYLE mentioned in the documentation.
3293 Protected calls to __gthread* by __gthread_active_p(), whose value
3294 is cached in the local variable __threads_active.
3296 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
3298 * testsuite/performance/20_util/allocator/producer_consumer.cc:
3299 Use linear algorithm for producer.
3301 2004-03-24 Paolo Carlini <pcarlini@suse.de>
3303 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3304 __mt_alloc<>::deallocate): Avoid redundant conditionals.
3306 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
3308 * include/bits/locale_facets.h: Tweaks for 80 column.
3309 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
3310 (__moneypunct_cache::_M_cache): Same.
3311 (num_get): Don't inherit from __num_base.
3313 (money_get): Don't inherit from money_base.
3315 (__timepunct::_M_am_pm_format): New.
3316 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
3317 (time_get::_M_extract_name): Same.
3318 (time_get::_M_extract_via_format): Same.
3319 * include/bits/locale_facets.tcc: Tweaks for 80 column.
3320 Use _M_getloc instead of getloc.
3321 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
3322 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
3323 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
3325 2004-03-22 Paolo Carlini <pcarlini@suse.de>
3327 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
3328 * configure: Regenerate.
3329 * config/allocator/pool_allocator_base.h: New.
3330 * include/ext/pool_allocator.h: Convert to a standard-conforming
3332 * src/allocator.cc: Tweak instantiations.
3333 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
3334 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
3335 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
3336 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3337 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3338 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3340 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
3342 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
3343 inline" and attribute-unused. Qualify parameter __mem with
3345 (__exchange_and_add): Ditto. Add back memory clobber to asm.
3347 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3349 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
3351 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
3353 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
3355 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
3357 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
3359 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
3361 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3363 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3365 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
3367 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3370 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3372 * include/std/std_valarray.h: Document DR389 [Ready].
3373 * docs/html/ext/howto.html: Add an entry for DR389.
3375 2004-03-19 Michael Eager <eager@mvista.com>
3377 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
3380 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3382 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
3384 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
3385 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
3386 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
3387 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
3388 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
3389 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
3390 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
3391 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
3392 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
3394 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3395 Petur Runolfsson <peturr02@ru.is>
3398 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
3399 no way to find out the conversion used by the underlying FILE*.
3400 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
3401 * testsuite/27_io/objects/char/9.cc: Tweak.
3403 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3406 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
3407 memory allocation/deallocation calls.
3408 * testsuite/ext/14648.cc: New.
3410 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
3413 * include/backward/bvector.h (bit_vector): Allocator is in std
3416 2004-03-19 Phil Edwards <phil@codesourcery.com>
3418 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
3419 not libiconv. SUBST this variable as well.
3420 * testsuite/Makefile.am (site.exp): New target, based on that
3421 created by automake. Also set libiconv.
3423 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
3424 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
3425 testsuite/Makefile.in: Regenerate.
3427 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
3429 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
3430 new_allocator for all hosts.
3431 * configure: Regenerate.
3433 2004-03-16 Paolo Carlini <pcarlini@suse.de>
3435 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
3436 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
3438 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3440 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3441 Adjust the logic underlying the parsing of symbol to deal
3442 correctly with an optional sign component (i.e., when either
3443 negative_sign or positive_sign is empty)
3444 * testsuite/22_locale/money_get/get/char/19.cc: New.
3445 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
3447 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3449 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3450 Do not accept an incomplete currency symbol.
3451 * testsuite/22_locale/money_get/get/char/18.cc: New.
3452 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
3454 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
3456 * config/allocator: New.
3457 * config/allocator/bitmap_allocator_base.h: New.
3458 * config/allocator/malloc_allocator_base.h: New.
3459 * config/allocator/mt_allocator_base.h: New.
3460 * config/allocator/new_allocator_base.h: New.
3461 * include/bits/allocator.h: Include c++allocator.h.
3462 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
3463 * aclocal.m4: Regenerate.
3464 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
3465 * configure: Regenerate.
3466 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
3467 * include/Makefile.in: Regenerate.
3468 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
3470 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3472 * include/bits/allocator.h: Revert.
3474 2004-03-12 Paolo Carlini <pcarlini@suse.de>
3476 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
3477 * include/bits/gslice_array.h: Add comment about DR 253.
3478 * include/bits/indirect_array.h: Likewise.
3479 * include/bits/mask_array.h: Likewise.
3480 * include/bits/slice_array.h: Likewise.
3482 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3484 * testsuite/20_util/allocator/14176.cc: New.
3485 * include/ext/mt_allocator.h: Formatting fixes.
3487 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
3489 * include/Makefile.am (ext_headers): Add
3490 ${ext_srcdir}/bitmap_allocator.h .
3491 * include/Makefile.in: Regenerate.
3492 * docs/html/ext/ballocator_doc.txt: New file.
3493 * include/ext/bitmap_allocator.h: New file.
3494 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
3496 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
3497 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
3498 test for the bitmap_allocator<>.
3499 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
3500 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
3501 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
3503 2004-03-11 Paolo Carlini <pcarlini@suse.de>
3505 * include/std/std_complex.h (pow(const complex&, const _Tp&),
3506 pow(const _Tp&, const complex&), pow(const complex&,
3507 const complex&)): Fully qualify with std:: a few calls.
3508 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
3510 2004-03-11 Steven Bosscher <stevenb@suse.de>
3513 * include/c_std/cmath.tcc (__cmath_power): Define inline.
3515 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
3517 * configure.ac: Bump AC_PREREQ to 2.59.
3519 2004-03-10 Paolo Carlini <pcarlini@suse.de>
3521 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
3523 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
3524 Paolo Carlini <pcarlini@suse.de>
3527 * include/std/std_complex.h (pow(const complex&, const _Tp&),
3528 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
3529 * testsuite/26_numerics/complex/13450.cc: New.
3531 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
3532 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
3534 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
3537 * include/bits/gslice_array.h (gslice_array()): Make public.
3538 (operator=(gslice_array)): Make public. Implement.
3539 * include/bits/indirect_array.h (indirect_array()): Make public.
3540 * include/bits/mask_array.h (mask_array()): Make public.
3541 (operator=(mask_array)): Make public. Implement.
3542 * include/bits/valarray_array.tcc (__valarray_copy):
3543 Comment. Add versions for gslice_array and mask_array.
3544 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
3546 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
3548 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
3550 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
3551 * testsuite/23_containers/set/modifiers/swap.cc: Same.
3552 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
3553 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
3554 * testsuite/23_containers/map/modifiers/swap.cc: Same.
3555 * testsuite/23_containers/list/modifiers/swap.cc: Same.
3557 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
3559 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
3562 * testsuite/23_containers/deque/modifiers/swap.cc: New.
3563 * testsuite/23_containers/list/modifiers/swap.cc: New.
3564 * testsuite/23_containers/map/modifiers/swap.cc: New.
3565 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
3566 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
3567 * testsuite/23_containers/set/modifiers/swap.cc: New.
3568 * testsuite/23_containers/vector/modifiers/swap.cc: New.
3570 2004-03-08 Petur Runolfsson <peturr02@ru.is>
3573 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
3575 2004-03-08 Paolo Carlini <pcarlini@suse.de>
3577 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
3578 * include/bits/stl_multiset.h: Add comment about DR 103.
3579 * include/bits/stl_set.h: Likewise.
3581 2004-03-08 Paolo Carlini <pcarlini@suse.de>
3583 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3584 The value _space_ indicates that at least one space is required
3586 * testsuite/22_locale/money_get/get/char/17.cc: New.
3587 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
3589 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
3590 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
3592 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
3593 Remove redundant conditional on __str.size().
3595 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
3597 * include/bits/allocator.h: Switch defaults to mt_alloc.
3599 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
3601 * include/ext/mt_allocator.h (_S_initialize): If
3602 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
3604 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
3607 * src/locale_init.cc (locale::locale): Lock critical regions with
3609 (locale::global): Same.
3610 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
3611 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
3612 (__glibcxx_mutex_lock): Same.
3614 * config/cpu/generic/atomicity.h: Remove
3615 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
3616 * src/misc-inst.cc: Move all locking bits out of this file.
3618 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
3619 * src/misc-inst.cc: Same.
3620 * config/cpu/hppa/atomicity.h: Same.
3622 * config/linker-map.gnu: Remove types in the signature of atomic
3623 exports, as they may vary.
3625 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3627 * include/bits/locale_facets.tcc: Tweak the comment preceding
3628 has_facet: doesn't throw.
3630 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3632 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
3633 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3634 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3635 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3636 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3637 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3638 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3639 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3641 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3643 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3644 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
3645 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
3646 * testsuite/testsuite_character.h (struct __gnu_test::character):
3648 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
3651 2004-03-05 Paolo Carlini <pcarlini@suse.de>
3653 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
3655 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
3657 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
3659 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
3661 * testsuite/23_containers/deque/invalidation/4.cc: Same.
3662 * testsuite/23_containers/list/invalidation/1.cc: Same.
3663 * testsuite/23_containers/list/invalidation/2.cc: Same.
3664 * testsuite/23_containers/list/invalidation/3.cc: Same.
3665 * testsuite/23_containers/list/invalidation/4.cc: Same.
3666 * testsuite/23_containers/map/invalidation/2.cc: Same.
3667 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
3668 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3669 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
3670 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3671 * testsuite/23_containers/set/invalidation/1.cc: Same.
3672 * testsuite/23_containers/set/invalidation/2.cc: Same.
3673 * testsuite/23_containers/vector/invalidation/1.cc: Same.
3674 * testsuite/23_containers/vector/invalidation/2.cc: Same.
3675 * testsuite/23_containers/vector/invalidation/3.cc: Same.
3676 * testsuite/23_containers/vector/invalidation/4.cc: Same.
3678 2004-03-04 Paolo Carlini <pcarlini@suse.de>
3680 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
3682 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
3684 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
3685 from the dg-options.
3686 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
3687 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
3688 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
3689 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
3690 * testsuite/23_containers/vector/resize/1.cc: Likewise.
3691 * testsuite/26_numerics/complex_value.cc: Likewise.
3692 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
3693 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
3694 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
3695 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
3696 * testsuite/27_io/objects/char/5.cc: Likewise.
3697 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
3698 * testsuite/backward/11460.cc: Likewise.
3699 * testsuite/thread/pthread7-rope.cc: Likewise.
3701 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
3702 missing test variable.
3703 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
3704 missing test variable.
3706 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
3708 * testsuite/20_util/allocator/1.cc: Provide explicit
3709 instantiations for non-weak systems.
3710 * testsuite/20_util/binders.cc: Same.
3711 * testsuite/20_util/allocator/8230.cc: Same.
3712 * testsuite/20_util/allocator/10378.cc: Same.
3713 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
3714 * testsuite/22_locale/ctype/is/char/2.cc: Same.
3715 * testsuite/thread/pthread7-rope.cc: Same.
3716 * testsuite/thread/pthread6.cc: Same.
3717 * testsuite/thread/pthread5.cc: Same.
3718 * testsuite/thread/pthread4.cc: Same.
3719 * testsuite/thread/pthread1.cc: Same.
3720 * testsuite/ext/rope.cc: Same.
3721 * testsuite/ext/hash_set.cc: Same.
3722 * testsuite/ext/hash_map.cc: Same.
3723 * testsuite/ext/concept_checks.cc: Same.
3724 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
3725 * testsuite/25_algorithms/unique/2.cc: Same.
3726 * testsuite/25_algorithms/unique/1.cc: Same.
3727 * testsuite/25_algorithms/rotate.cc: Same.
3728 * testsuite/25_algorithms/min_max.cc: Same.
3729 * testsuite/25_algorithms/equal.cc: Same.
3730 * testsuite/24_iterators/rel_ops.cc: Same.
3731 * testsuite/24_iterators/iterator.cc: Same.
3732 * testsuite/24_iterators/insert_iterator.cc: Same.
3733 * testsuite/24_iterators/front_insert_iterator.cc: Same.
3734 * testsuite/24_iterators/back_insert_iterator.cc: Same.
3735 * testsuite/23_containers/vector/resize/1.cc: Same.
3736 * testsuite/23_containers/vector/modifiers/2.cc: Same.
3737 * testsuite/23_containers/vector/modifiers/1.cc: Same.
3738 * testsuite/23_containers/vector/invalidation/4.cc: Same.
3739 * testsuite/23_containers/vector/invalidation/3.cc: Same.
3740 * testsuite/23_containers/vector/invalidation/2.cc: Same.
3741 * testsuite/23_containers/vector/invalidation/1.cc: Same.
3742 * testsuite/23_containers/vector/element_access/1.cc: Same.
3743 * testsuite/23_containers/vector/cons/6513.cc: Same.
3744 * testsuite/23_containers/vector/cons/3.cc: Same.
3745 * testsuite/23_containers/vector/cons/2.cc: Same.
3746 * testsuite/23_containers/vector/cons/1.cc: Same.
3747 * testsuite/23_containers/vector/capacity/8230.cc: Same.
3748 * testsuite/23_containers/vector/capacity/1.cc: Same.
3749 * testsuite/23_containers/vector/bool/6886.cc: Same.
3750 * testsuite/23_containers/stack/members/7158.cc: Same.
3751 * testsuite/23_containers/set/invalidation/2.cc: Same.
3752 * testsuite/23_containers/set/invalidation/1.cc: Same.
3753 * testsuite/23_containers/queue/members/7157.cc: Same.
3754 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
3755 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3756 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3757 * testsuite/23_containers/multiset/insert/1.cc: Same.
3758 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3759 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3760 * testsuite/23_containers/map/operators/1.cc: Same.
3761 * testsuite/23_containers/map/invalidation/2.cc: Same.
3762 * testsuite/23_containers/map/invalidation/1.cc: Same.
3763 * testsuite/23_containers/map/insert/1.cc: Same.
3764 * testsuite/23_containers/list/operators/4.cc: Same.
3765 * testsuite/23_containers/list/operators/3.cc: Same.
3766 * testsuite/23_containers/list/operators/2.cc: Same.
3767 * testsuite/23_containers/list/operators/1.cc: Same.
3768 * testsuite/23_containers/list/modifiers/3.cc: Same.
3769 * testsuite/23_containers/list/modifiers/2.cc: Same.
3770 * testsuite/23_containers/list/modifiers/1.cc: Same.
3771 * testsuite/23_containers/list/invalidation/4.cc: Same.
3772 * testsuite/23_containers/list/invalidation/3.cc: Same.
3773 * testsuite/23_containers/list/invalidation/2.cc: Same.
3774 * testsuite/23_containers/list/invalidation/1.cc: Same.
3775 * testsuite/23_containers/list/cons/9.cc: Same.
3776 * testsuite/23_containers/list/cons/8.cc: Same.
3777 * testsuite/23_containers/list/cons/7.cc: Same.
3778 * testsuite/23_containers/list/cons/6.cc: Same.
3779 * testsuite/23_containers/list/cons/5.cc: Same.
3780 * testsuite/23_containers/list/cons/4.cc: Same.
3781 * testsuite/23_containers/list/cons/3.cc: Same.
3782 * testsuite/23_containers/list/cons/2.cc: Same.
3783 * testsuite/23_containers/list/cons/1.cc: Same.
3784 * testsuite/23_containers/list/capacity/1.cc: Same.
3785 * testsuite/23_containers/deque/operators/1.cc: Same.
3786 * testsuite/23_containers/deque/invalidation/4.cc: Same.
3787 * testsuite/23_containers/deque/invalidation/3.cc: Same.
3788 * testsuite/23_containers/deque/invalidation/2.cc: Same.
3789 * testsuite/23_containers/deque/invalidation/1.cc: Same.
3790 * testsuite/23_containers/deque/cons/2.cc: Same.
3791 * testsuite/23_containers/deque/cons/1.cc: Same.
3793 * src/allocator.cc: Add char, wchar_t instantiations
3794 to match extern template declarations in memory.h.
3796 2004-03-03 Paolo Carlini <pcarlini@suse.de>
3798 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3799 Fix warning regression.
3801 2004-03-03 Paolo Carlini <pcarlini@suse.de>
3803 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3804 Deal properly with empty __digits and negative frac_digits,
3807 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
3809 * docs/html/documentation.html: Regenerate.
3811 2004-03-02 Paolo Carlini <pcarlini@suse.de>
3814 * include/bits/postypes.h (class streamoff): Remove, now
3815 streamoff is just typedef a 64 bit signed integer type.
3816 (class fpos): Tweak consistently.
3817 * testsuite/27_io/fpos/14320-1.cc: New.
3818 * testsuite/27_io/fpos/14320-2.cc: New.
3819 * testsuite/27_io/fpos/14320-3.cc: New.
3820 * testsuite/27_io/fpos/14320-4.cc: New.
3821 * testsuite/27_io/fpos/14320-5.cc: New.
3822 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
3824 2004-03-02 Paolo Carlini <pcarlini@suse.de>
3826 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3827 Reorganize a bit the main parsing loop, thus early detecting
3828 an empty value component.
3829 * testsuite/22_locale/money_get/get/char/16.cc: New.
3830 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
3832 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
3834 Support automake 1.8.2
3835 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
3836 * po/Makefile.am (EXTRA_DIST): New.
3837 * po/Makefile.in: Regenerate.
3838 * Makefile.in: Same.
3839 * include/Makefile.in: Same.
3840 * libmath/Makefile.in: Same.
3841 * libsupc++/Makefile.in: Same.
3842 * src/Makefile.in: Same.
3843 * testsuite/Makefile.in: Same.
3845 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
3846 __GXX_WEAK__ instead of SUPPORTS_WEAK.
3847 (${host_builddir}/gthr-default.h): Same.
3848 (${host_builddir}/gthr.h): Same.
3849 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
3850 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
3852 * aclocal.m4: Regenerate.
3853 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
3854 * config.h.in: Regenerate.
3857 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
3859 Support autoconf 2.59
3860 * acinclude.m4: Quote correctly.
3861 * aclocal.m4: Regenerate.
3864 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
3866 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
3868 * docs/html/18_support/howto.html: Add bit about writing to
3869 stderr, mostly by Zack.
3871 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3873 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3874 money_get<>::do_get(string_type&)): ... and two more.
3876 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3878 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3879 Fix thinkos in the switch from string_type& to string& as last
3882 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3884 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3885 Also when parsing exponent sign, first look for thousands_sep
3886 and decimal_point; tweak a bit.
3887 * testsuite/22_locale/num_get/get/char/15.cc: New.
3888 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
3890 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3891 num_get<>::_M_extract_int): Reorder some conditionals.
3893 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3895 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3896 Consistently with numpunct, enforce the requirements in
3897 22.2.6.3, p3 for the thousands separators; tweak a bit.
3898 * testsuite/22_locale/money_get/get/char/15.cc: New.
3899 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
3901 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
3903 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
3904 testsuite_files from correct multilib blddir when running
3907 2004-02-29 Phil Edwards <phil@codesourcery.com>
3909 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
3910 the summary file to the logfile.
3911 * testsuite/Makefile.in: Regenerate.
3913 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3915 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
3917 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
3918 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
3920 2004-02-28 Paolo Carlini <pcarlini@suse.de>
3922 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3923 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
3924 no 'decimal-point' in the middle: in this case too we must fix
3925 up __found_grouping; slightly tweak.
3926 * testsuite/22_locale/num_get/get/char/14.cc: New.
3927 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
3929 2004-02-27 Eric Christopher <echristo@redhat.com>
3930 Phil Edwards <phil@codesourcery.com>
3932 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
3933 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
3934 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
3935 testsuite/22_locale/collate/hash/wchar_t/2.cc,
3936 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
3937 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
3938 testsuite/22_locale/collate/transform/wchar_t/2.cc,
3939 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
3940 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3941 Use dg-require-iconv.
3942 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
3944 2004-02-27 Phil Edwards <phil@codesourcery.com>
3945 Eric Christopher <echristo@redhat.com>
3947 * testsuite/config/default.exp: Update with comments.
3948 (${tool}_target_compile): New wrapper routine.
3949 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
3950 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
3952 (load_gcc_lib, v3track): New routines.
3953 (v3-init): Rename to libstdc++_init.
3954 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
3955 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
3957 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
3959 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
3961 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
3963 * config/os/irix/irix5.2/atomicity.h: Merge..
3964 * config/os/irix/irix6.5/atomicity.h: Merge..
3965 * config/os/irix/atomicity.h: ...into this.
3966 * config/os/irix/atomic_word.h: New.
3967 * configure.host: Set atomic_word_dir for irix.
3969 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
3970 * i386/atomicity.h: Same.
3971 * m68k/atomicity.h: Same.
3972 * sparc/atomicity.h: Same.
3974 2004-02-27 David Edelsohn <edelsohn@gnu.org>
3976 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
3977 static, and inline keywords.
3979 2004-02-27 Paolo Carlini <pcarlini@suse.de>
3981 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3982 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
3983 call reserve on the __tmp_gruping string.
3984 (num_get<>::_M_extract_float): Don't append unnecessarily a
3985 char() to the returned string.
3986 * include/bits/locale_facets.tcc: Trivial reformattings.
3988 2004-02-27 Paolo Carlini <pcarlini@suse.de>
3990 * include/bits/locale_facets.h (money_get<>::_M_extract):
3991 Change signature: now takes a plain string&.
3992 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3993 Update consistently the definition; use the moneypunct cache
3994 to parse the value; use swap to change __units.
3995 (money_get<>::do_get(long double&)): Update call of _M_extract,
3996 avoid ctype::narrow, not correct wrt the standard.
3997 (money_get<>::do_get(string_type&)): Likewise, update call
3998 of _M_extract, use ctype::widen.
3999 * src/locale-inst.cc: Tweak instantiations of _M_extract.
4001 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
4003 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
4004 * testsuite/demangle/abi_examples/02.cc: Likewise.
4005 * testsuite/demangle/regression/cw-11.cc: Likewise.
4006 * testsuite/demangle/regression/cw-16.cc: Change two expected
4007 results to match libiberty demangler output.
4009 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
4012 * libsupc++/Makefile.am: Use libiberty demangler.
4013 (c_sources): Add cp-demangle.c.
4014 * libsupc++/Makefile.in: Regenerate.
4015 * src/Makefile.am (sources): Remove demangle.cc.
4016 * src/Makefile.in: Regenerate.
4017 * include/Makefile.am (bits_headers): Move demangle.h.
4018 (ext_headers): ...here.
4019 * include/Makefile.in: Regenerate.
4020 * include/bits/demangle.h: Move...
4021 * include/ext/demangle.h: ...here.
4022 * src/demangle.cc: Remove.
4024 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
4026 * include/bits/demangle.h: Add type template parameter to all
4027 templates with just an Allocator template parameter.
4029 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
4031 * include/bits/atomicity.h: New, forward declarations for __atomic_add
4032 and __exchange_and_add.
4033 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
4034 * config/cpu/cris/atomic_word.h: Same.
4035 * config/cpu/sparc/atomic_word.h: Same.
4036 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
4037 Qualifiy with __gnu_cxx.
4038 (_Callback_list::_M_add_reference): Same.
4039 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
4040 (locale::facet::_M_remove_reference): Same.
4041 (locale::_Impl::_M_add_reference): Add.
4042 (locale::_Impl::_M_remove_reference): Same.
4043 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
4044 (basic_string::_Rep::_M_dispose): Same.
4045 * src/ios.cc (ios_base::xalloc): Same.
4046 * src/ios_init.cc (ios_base::Init::Init): Same.
4047 (ios_base::Init::~Init): Same.
4048 * src/locale.cc (locale::id::_M_id): Same.
4049 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
4050 static, and inline keywords.
4051 * config/cpu/alpha/atomicity.h: Same.
4052 * config/cpu/cris/atomicity.h: Same.
4053 * config/cpu/generic/atomicity.h: Same.
4054 * config/cpu/hppa/atomicity.h: Same.
4055 * config/cpu/i386/atomicity.h: Same.
4056 * config/cpu/ia64/atomicity.h: Same.
4057 * config/cpu/m68k/atomicity.h: Same.
4058 * config/cpu/mips/atomicity.h: Same.
4059 * config/cpu/powerpc/atomicity.h: Same.
4060 * config/cpu/s390/atomicity.h: Same.
4061 * config/cpu/sparc/atomicity.h: Same.
4063 * src/Makefile.am (host_sources): Add atomicity.cc.
4064 (atomicity.cc): New rule.
4065 * src/Makefile.in: Regenerate.
4066 * include/Makefile.am (host_headers): Remove host atomicity.h.
4067 (host_headers): Add atomic_word.h.
4068 (bits_headers): Add bits atomicity.h.
4069 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
4070 * include/Makefile.in: Regenerate.
4071 * configure.host (atomic_word_dir): Add.
4072 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
4073 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
4074 * configure: Regenerate.
4075 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
4077 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
4078 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
4080 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
4082 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
4083 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
4084 Fix markup, more <link> tags.
4086 2004-02-25 Carlo Wood <carlo@alinoe.com>
4089 namespace __gnu_cxx::demangler
4090 (session<Allocator>::qualifier_list_Allocator): Add
4091 (session<Allocator>::M_qualifier_list_alloc): Add
4092 (session<Allocator>::decode_type_with_postfix):
4093 Use M_qualifier_list_alloc instead of calling operator new/delete.
4095 2004-02-24 Paolo Carlini <pcarlini@suse.de>
4098 * include/bits/postypes.h (class streamoff): Add operator++(),
4099 operator++(int), operator--() and operator--(int).
4100 * testsuite/27_io/fpos/14252.cc: New.
4102 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
4104 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
4105 error in handling of hex constants.
4107 2004-02-24 Paolo Carlini <pcarlini@suse.de>
4109 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4110 Prefer basic_string::append to operator+= and a temporary.
4112 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
4114 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
4115 Only use fputs, not write.
4117 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
4119 * include/ext/malloc_allocator.h: Add operators ==, !=.
4120 * include/ext/new_allocator.h: Add operators ==, !=.
4121 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
4122 (__mt_alloc::_S_get_options): New.
4123 (__mt_alloc::_S_set_options): New.
4124 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
4125 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
4126 Move functions out of line, simplify, format.
4127 * src/allocator.cc: Simplify explicit instantiations.
4128 * include/bits/allocator.h: Tweak.
4130 2004-02-22 Paolo Carlini <pcarlini@suse.de>
4132 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4133 Restructure formatting of value component, first dealing with
4134 the non-decimal digits; use reserve.
4136 2004-02-22 Paolo Carlini <pcarlini@suse.de>
4138 * include/bits/locale_facets.h (class money_get): Inherit
4139 from money_base too; tweak declaration of _M_extract, now
4140 parameterized on _Intl too.
4141 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4142 Update definition to use the cache; call reserve on __res to
4143 avoid multiple reallocations; fix parsing of sign component
4144 according to 22.2.6.1.2, p3.
4145 (money_get<>::do_get(long double&),
4146 money_get<>::do_get(string_type&)): Update calls of _M_extract.
4147 * src/locale-inst.cc: Add instantiations of
4148 money_get::_M_extract<false> and money_get::_M_extract<true>.
4149 * testsuite/22_locale/money_get/get/char/14.cc: New.
4150 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
4152 2004-02-21 Mark Mitchell <mark@codesourcery.com>
4154 * libsupc++/vterminate.cc
4155 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
4157 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
4159 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
4160 not set RLIMIT_AS on HP-UX.
4162 2004-02-21 Mark Mitchell <mark@codesourcery.com>
4164 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
4165 not set RLIMIT_AS on HP-UX.
4167 2004-02-21 Paolo Carlini <pcarlini@suse.de>
4169 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
4170 _S_zero, _S_end } enum, _S_atoms.
4171 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
4172 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
4173 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
4174 (__moneypunct_cache<>::~__moneypunct_cache): Update.
4175 (__moneypunct_cache<>::_M_cache): Fill the cache.
4176 (class moneypunct): Tweak __cache_type typedef.
4177 (class money_put): Inherit from money_base too; tweak declaration
4178 of _M_insert, now parameterized on _Intl.
4179 * include/bits/locale_facets.tcc
4180 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
4181 (money_put<>::_M_insert): Update definition to use the cache;
4182 call reserve on __res to avoid multiple reallocations.
4183 (money_put<>::do_put(long double),
4184 money_put<>::do_put(const string_type&): Update calls of _M_insert.
4185 * config/locale/generic/monetary_members.cc
4186 (moneypunct<char, true>::_M_initialize_moneypunct,
4187 moneypunct<char, false>::_M_initialize_moneypunct,
4188 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
4189 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
4190 * config/locale/gnu/monetary_members.cc: Likewise.
4191 * config/locale/gnu/monetary_members.cc
4192 (moneypunct<wchar_t, true>::~moneypunct(),
4193 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
4194 * src/globals_locale.cc: Tweak fake_money_cache_c.
4195 * src/locale-inst.cc: Add instantiations for
4196 money_put::_M_insert<false> and money_put::_M_insert<true> and
4197 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
4198 * src/locale_facets.cc: Define money_base::_S_atoms.
4199 * src/locale_init.cc: Update placement new of
4200 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
4201 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
4203 * config/locale/generic/numeric_members.cc: Clean up.
4204 * config/locale/gnu/numeric_members.cc: Likewise.
4205 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
4206 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
4207 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
4208 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
4209 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
4210 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
4212 2004-02-20 Mark Mitchell <mark@codesourcery.com>
4214 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
4215 FIFO for writing with ios_base::in|ios_base::out.
4216 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
4217 * testsuite/27_io/objects/char/7.cc: Likewise.
4218 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
4221 2004-02-19 David Edelsohn <edelsohn@gnu.org>
4223 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
4224 from iso-8859-1 to ISO8859-1.
4225 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
4226 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
4227 * 22_locale/collate/hash/wchar_t/2.cc: Same.
4228 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
4229 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
4230 * 22_locale/collate/transform/wchar_t/2.cc: Same.
4231 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
4232 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
4234 2004-02-18 Paolo Carlini <pcarlini@suse.de>
4236 * include/bits/locale_facets.h (money_get<>::_M_extract):
4237 New, helper for do_get.
4238 (money_put<>::_M_insert): Likewise, for do_put.
4239 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
4240 money_put<>::_M_insert): Define.
4241 (money_get<>::do_get(long double&), money_get<>::do_get(
4242 string_type&), money_put::do_put(long double),
4243 money_put::do_put(const string_type&)): Use the helpers.
4245 2004-02-18 Paolo Carlini <pcarlini@suse.de>
4247 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4248 Rewrite, avoiding recursion.
4249 (__gnu_internal::xwrite): Minor tweaks.
4251 2004-02-17 Stefan Olsson <stefan@xapa.se>
4253 * include/ext/mt_allocator.h: Removed the last
4254 pointer. Deallocated blocks are now added to the front of
4255 freelists as proposed by Felix Yen. This gives roughly 10%
4256 performance boost and saves some memory.
4257 * docs/html/ext/mt_allocator.html: Change due to that deallocated
4258 blocks now are added to the front of freelists. The reason to this
4259 approach is also explained.
4261 2004-02-17 Paolo Carlini <pcarlini@suse.de>
4263 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4264 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
4265 grouping fidelity conditional.
4267 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4269 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
4270 Qualify exception with std::.
4271 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
4272 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4273 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4274 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4275 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4277 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4279 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
4280 for now that the catch block is not reached.
4281 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
4283 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4285 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4286 Fix parsing of the remaining sign characters.
4287 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
4288 the input is scanned 'til eof.
4289 * 22_locale/money_get/get/char/4.cc: Likewise.
4290 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
4291 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
4292 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
4293 not do_pos_format: the former is the only one that matters during
4295 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
4297 * 22_locale/money_get/get/char/6.cc: Minor tweak.
4298 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
4300 2004-02-15 David Asher <david.asher@cavium.com>
4303 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
4304 access __olds beyond __oldlen.
4306 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4308 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
4309 sure the exception is actually thrown.
4310 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4311 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4312 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4314 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4317 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
4318 In case of conversion errors, throw ios_failure; simplify.
4319 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
4320 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4321 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
4322 previously we didn't throw in case of conversion errors, instead
4323 just returned eof().
4324 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4325 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4326 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4328 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
4329 Trivial simplification of a conditional.
4331 2004-02-12 Paolo Carlini <pcarlini@suse.de>
4333 PR libstdc++/13731 (final part: writev)
4334 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4335 New, a wrapper around writev() handling partial writes.
4336 (__basic_file<char>::xwrite): Move to __gnu_internal and make
4338 (__basic_file<char>::xsputn): Update call.
4339 (__basic_file<char>::xsputn_2): Likewise.
4340 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4341 Don't declare, now static.
4343 2004-02-11 Stefan Olsson <stefan@xapa.se>
4345 * docs/html/ext/mt_allocator.html: New.
4347 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
4349 * docs/html/20_util/allocator.html: New file, consolidate
4350 allocator information here. Revamp.
4351 * docs/html/documentation.html: Change links.
4352 * docs/html/20_util/howto.html: Same.
4353 * docs/html/ext/howto.html: Same.
4355 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4357 PR libstdc++/13731 (first part: write)
4358 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4360 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
4361 Define it: a wrapper around write() handling partial write.
4362 (__basic_file<char>::xsputn): Use it.
4363 (__basic_file<char>::xsputn_2): Likewise.
4365 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4366 Petur Runolfsson <peturr02@ru.is>
4369 * include/std/std_istream.h (operator>>(__istream_type& (*)
4370 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
4371 operator>>(ios_base& (*)(ios_base&))): Declare inline.
4372 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
4373 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
4374 operator<<(ios_base& (*) (ios_base&))): Likewise.
4375 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
4377 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
4380 * config/linker-map.gnu: Add typeinfo and typeinfo name for
4381 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
4384 * config/linker-map.gnu: Add typeinfo and typeinfo name for
4385 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
4387 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
4389 * include/ext/pool_allocator.h: Include c++config.h.
4391 2004-02-09 Stefan Olsson <stefan@xapa.se>
4393 * include/ext/mt_allocator.h: thread_id is unused in non threaded
4394 applications and now has a ifdef to remove it completely on
4395 compilers without thread support. Include stdlib.h due to a
4396 compiler warning on getenv().
4398 2004-02-09 Paul Brook <paul@codesourcery.com>
4400 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
4402 2004-02-09 Paolo Carlini <pcarlini@suse.de>
4405 * src/locale_init.cc (locale::global(const locale&)): Use
4406 locale::name() in order to decide whether calling setlocale.
4407 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
4409 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
4410 Avoid computing &= unnecessarily.
4412 2004-02-09 James E Wilson <wilson@specifixinc.com>
4415 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
4416 __builtin_extend_pointer.
4418 2004-02-09 Paolo Carlini <pcarlini@suse.de>
4421 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
4422 Don't leave dangling pointers.
4423 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
4424 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
4425 facet is needed in the final test.
4427 2004-02-09 Bernardo Innocenti <bernie@develer.com>
4429 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
4430 * configure: Regenerate.
4432 2004-02-08 Richard Henderson <rth@redhat.com>
4435 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
4436 uncaughtExceptions during nested catch rethrow.
4437 * testsuite/18_support/14026.cc: New.
4439 2004-02-08 Paolo Carlini <pcarlini@suse.de>
4441 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
4442 When working in place remember to set the state to sharable
4443 (otherwise, _M_mutate does it).
4445 2004-02-08 Bernardo Innocenti <bernie@develer.com>
4447 * include/bits/allocator.h, include/bits/basic_ios.h,
4448 include/bits/basic_ios.tcc, include/bits/basic_string.h,
4449 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
4450 include/bits/char_traits.h, include/bits/codecvt.h,
4451 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
4452 include/bits/demangle.h, include/bits/deque.tcc,
4453 include/bits/fstream.tcc, include/bits/functexcept.h,
4454 include/bits/gslice.h, include/bits/gslice_array.h,
4455 include/bits/indirect_array.h, include/bits/ios_base.h,
4456 include/bits/istream.tcc, include/bits/list.tcc,
4457 include/bits/locale_classes.h, include/bits/locale_facets.h,
4458 include/bits/locale_facets.tcc, include/bits/localefwd.h,
4459 include/bits/mask_array.h, include/bits/ostream.tcc,
4460 include/bits/postypes.h, include/bits/slice_array.h,
4461 include/bits/sstream.tcc, include/bits/stl_algo.h,
4462 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
4463 include/bits/stl_construct.h, include/bits/stl_deque.h,
4464 include/bits/stl_function.h, include/bits/stl_heap.h,
4465 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
4466 include/bits/stl_list.h, include/bits/stl_map.h,
4467 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
4468 include/bits/stl_numeric.h, include/bits/stl_pair.h,
4469 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
4470 include/bits/stl_relops.h, include/bits/stl_set.h,
4471 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
4472 include/bits/stl_threads.h, include/bits/stl_tree.h,
4473 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
4474 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
4475 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
4476 include/bits/type_traits.h, include/bits/valarray_after.h,
4477 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
4478 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
4479 trailing whitespace.
4481 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4483 * include/bits/basic_string.h: Fix comment.
4485 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4487 * include/bits/stl_construct.h: Wrap overlong lines, reformat
4488 according to the coding standards.
4489 * include/bits/stl_pair.h: Likewise.
4490 * include/bits/stl_raw_storage_iter.h: Likewise.
4491 * include/bits/stl_stack.h: Likewise.
4492 * include/bits/stl_uninitialized.h: Likewise.
4493 * include/bits/stream_iterator.h: Likewise.
4494 * include/bits/streambuf_iterator.h: Likewise.
4495 * include/bits/type_traits.h: Likewise.
4497 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4499 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4502 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
4504 * scripts/check_performance: Support PCH.
4506 * scripts/check_performance (CXX): Add -DNOTHREAD.
4507 * testsuite/performance/20_util/allocator/insert.cc: Integrate
4508 threaded tests from insert_insert.cc. Tweak iterations,
4509 remove special cases.
4510 * testsuite/performance/20_util/allocator/insert_insert.cc:
4511 Make all tests single-threaded. Tweak iterations.
4512 * testsuite/performance/20_util/allocator/map_thread.cc:
4514 * testsuite/performance/20_util/allocator/producer_consumer.cc:
4517 2004-02-05 Geoffrey Keating <geoffk@apple.com>
4521 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
4522 'gcc-lib'. Add comment about poorly-named variables.
4523 * aclocal.m4: Regenerate.
4524 * configure: Regenerate.
4526 2004-02-05 Paolo Carlini <pcarlini@suse.de>
4528 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4529 Thousands-sep are always optional; thousands-sep are not allowed
4530 after the decimal_point.
4531 * testsuite/22_locale/money_get/get/char/12.cc: New.
4532 * testsuite/22_locale/money_get/get/char/13.cc: New.
4533 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
4534 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
4536 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
4537 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
4538 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
4539 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
4540 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
4541 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
4542 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
4543 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
4545 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
4547 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
4549 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
4551 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
4553 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
4554 it to decide whether FIONREAD should take an off_t or int argument.
4556 2004-02-05 Paolo Carlini <pcarlini@suse.de>
4558 * include/bits/stl_function.h: Minor formatting changes.
4560 2004-02-04 Zack Weinberg <zack@codesourcery.com>
4562 Revert previous change to config/abi/*/baseline_symbols.txt.
4564 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
4565 Zack Weinberg <zack@codesourcery.com>
4567 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
4569 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
4570 (__basic_file<char>::_M_open_mode): Delete.
4571 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
4573 * testsuite/27_io/basic_filebuf/close/char/9964.cc
4574 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4575 Correct flags to filebuf::open calls.
4577 * config/abi/alpha-freebsd5/baseline_symbols.txt
4578 * config/abi/alpha-linux-gnu/baseline_symbols.txt
4579 * config/abi/hppa-linux-gnu/baseline_symbols.txt
4580 * config/abi/i386-freebsd4/baseline_symbols.txt
4581 * config/abi/i386-freebsd5/baseline_symbols.txt
4582 * config/abi/i486-linux-gnu/baseline_symbols.txt
4583 * config/abi/ia64-linux-gnu/baseline_symbols.txt
4584 * config/abi/mips-linux-gnu/baseline_symbols.txt
4585 * config/abi/sparc-freebsd5/baseline_symbols.txt
4586 * config/abi/sparc-linux-gnu/baseline_symbols.txt
4587 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
4588 Remove entry for __basic_file<char>::_M_open_mode.
4590 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
4592 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
4594 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
4596 * testsuite/performance/20_util/producer_consumer.cc: New.
4597 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
4599 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
4601 * testsuite/performance/20_util/allocator.cc: Move to..
4602 * testsuite/performance/20_util/allocator/insert.cc: ...here.
4603 * testsuite/performance/20_util/allocator_thread.cc: Move to...
4604 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
4605 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
4606 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
4608 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
4610 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
4611 * docs/html/faq/index.txt: Regenerate.
4613 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
4615 * include/ext/debug_allocator.h: _M_extra now stands for the
4616 number of extra objects instead of the number of extra bytes.
4617 (debug_allocator::allocate): Adjust.
4618 (debug_allocator::deallocate): Adjust.
4620 * include/ext/pool_allocator.h: Fix typo.
4622 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
4623 Benjamin Kosnik <bkoz@redhat.com>
4625 * testsuite/performance/20_util/allocator.cc: Add map,
4627 * testsuite/performance/20_util/allocator_thread.cc: Same.
4629 2004-02-03 Paolo Carlini <pcarlini@suse.de>
4631 * include/bits/basic_string.h (insert(iterator)): Remove,
4632 non-standard and already scheduled for removal.
4634 2004-02-03 Paolo Carlini <pcarlini@suse.de>
4636 * include/bits/stl_iterator_base_funcs.h: Minor formatting
4637 and indentation tweaks.
4638 * include/bits/stl_iterator_base_types.h: Likewise.
4639 * include/bits/stl_list.h: Likewise.
4640 * include/bits/stl_map.h: Likewise.
4641 * include/bits/stl_tempbuf.h: Likewise.
4643 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
4645 * include/bits/gslice.h, include/bits/gslice_array.h,
4646 include/bits/indirect_array.h, include/bits/mask_array.h,
4647 include/bits/slice_array.h, include/bits/stl_numeric.h,
4648 include/std/std_valarray.h: Update copyright years.
4650 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
4652 * include/bits/gslice.h (gslice): Document.
4653 * include/bits/gslice_array.h (gslice_array): Document.
4654 * include/bits/indirect_array (indirect_array): Document.
4655 * include/bits/mask_array (mask_array): Document.
4656 * include/bits/slice_array.h (slice,slice_array): Document.
4657 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
4658 adjacent_difference): Document
4659 * include/std/std_valarray.h (valarray): Document.
4661 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
4663 * docs/html/19_diagnostics/howto.html: Move verbose terminate
4665 * docs/html/18_support/howto.html: Here.
4666 * docs/html/documentation.html: Add reference here.
4668 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4670 * config/locale/gnu/c++locale_internal.h: Remove prototypes
4671 of no longer used GLIBC thread locale functions.
4673 2004-02-02 Eric Christopher <echristo@redhat.com>
4674 Zack Weinberg <zack@codesourcery.com>
4676 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
4678 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
4679 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
4680 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
4681 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
4682 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
4683 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
4684 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
4685 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4688 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4690 * include/bits/stl_function.h: Additional minor tweaks.
4691 * include/bits/stl_multiset.h: Likewise.
4693 * include/bits/stl_queue.h: Minor tweaks.
4695 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4697 PR libstdc++/13976 (continued)
4698 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
4699 Make the second parameter unnamed, to void unused parameter
4701 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
4703 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4706 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
4707 Make the second parameter unnamed, to void unused parameter
4709 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
4710 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
4712 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4714 * include/bits/stl_algo.h: Additional minor tweaks.
4715 * include/bits/stl_map.h: Likewise.
4716 * include/bits/stl_multimap.h: Likewise.
4717 * include/bits/stl_multiset.h: Likewise.
4718 * include/bits/stl_set.h: Likewise.
4719 * include/bits/stl_tree.h: Likewise.
4721 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4723 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
4726 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4728 * include/bits/stl_function.h: Additional minor tweaks.
4730 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4732 * include/bits/deque.tcc: Wrap overlong lines, constify
4733 a few variables, reformat according to the coding standards.
4734 * include/bits/list.tcc: Likewise.
4735 * include/bits/stl_deque.h: Likewise.
4736 * include/bits/stl_function.h: Likewise.
4737 * include/bits/stl_iterator.h: Likewise.
4738 * include/bits/stl_iterator_base_funcs.h: Likewise.
4739 * include/bits/stl_iterator_base_types.h: Likewise.
4740 * include/bits/stl_list.h: Likewise.
4741 * include/bits/stl_map.h: Likewise.
4742 * include/bits/stl_multimap.h: Likewise.
4743 * include/bits/stl_multiset.h: Likewise.
4744 * include/bits/stl_relops.h: Likewise.
4745 * include/bits/stl_set.h: Likewise.
4747 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4749 * include/bits/stl_bvector.h: Wrap overlong lines, constify
4750 a few variables, reformat according to the coding standards.
4751 * include/bits/stl_tree.h: Likewise.
4753 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4755 * include/bits/stl_algo.h: Minor additional reformat, add
4757 * include/bits/stl_algobase.h: Add copyright year.
4759 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4761 * include/bits/stl_algo.h: Wrap overlong lines, constify
4762 a few variables, reformat according to the coding standards.
4763 * include/bits/stl_algobase.h: Likewise.
4764 * include/bits/stl_heap.h: Likewise.
4766 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4768 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
4770 * include/bits/basic_string.h: Fix two comments.
4772 2004-01-31 Per Bothner <per@bothner.com>
4774 * include/ext/mt_allocator.h
4775 (__mt_alloc::_S_thread_freelist_mutex): Guard with
4776 __GTHREAD_MUTEX_INIT.
4778 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4780 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
4782 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4784 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
4785 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
4786 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
4788 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
4790 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
4791 Don't use clear, but instead assign. Use insert.
4793 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
4795 * src/demangle.cc: Add instantiations.
4796 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
4797 * src/Makefile.in: Regenerate.
4799 2004-01-30 David Edelsohn <edelsohn@gnu.org>
4801 * src/allocator.cc: Protect _S_get_thread_id() and
4802 _S_thread_key_destr() with #ifdef __GTHREADS.
4804 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4806 Reshuffle performance testsuite.
4807 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
4808 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
4809 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
4810 fstream_seek_write.cc, ifstream_extract_float.cc,
4811 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
4812 list_create_fill_sort.cc, map_create_fill.cc,
4813 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
4814 ofstream_insert_float.cc, ofstream_insert_int.cc,
4815 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
4816 wchar_t_out.cc: Split into...
4817 * testsuite/performance/20_util/allocator.cc: New.
4818 * testsuite/performance/20_util/allocator_map_thread.cc: New.
4819 * testsuite/performance/20_util/allocator_thread.cc: New.
4820 * testsuite/performance/21_strings/string_append: New.
4821 * testsuite/performance/22_locale/is_wchar_t.cc: New.
4822 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
4823 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
4824 * testsuite/performance/22_locale/wchar_t_in.cc: New.
4825 * testsuite/performance/22_locale/wchar_t_length.cc: New.
4826 * testsuite/performance/22_locale/wchar_t_out.cc: New.
4827 * testsuite/performance/23_containers/container_benchmark.cc: New.
4828 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
4829 * testsuite/performance/23_containers/map_create_fill.cc: New.
4830 * testsuite/performance/26_numerics/complex_norm.cc: New.
4831 * testsuite/performance/27_io/cout_insert_int.cc: New.
4832 * testsuite/performance/27_io/filebuf_copy.cc: New.
4833 * testsuite/performance/27_io/filebuf_sputc.cc: New.
4834 * testsuite/performance/27_io/fstream_seek_write.cc: New.
4835 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
4836 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
4837 * testsuite/performance/27_io/ifstream_getline.cc: New.
4838 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
4839 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
4841 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4843 * include/bits/basic_string.tcc (_Rep::_S_create):
4844 Never allocate a string bigger than max_size(); always keep
4845 __capacity and __size in sync to avoid memory leaks at
4848 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4850 * include/bits/basic_string.tcc (_S_construct(_InIterator,
4851 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
4852 the double loop, streamline.
4854 * include/bits/basic_string.tcc: Very minor tweaks.
4856 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
4858 * scripts/check_performance: Only compile with $THREAD_FLAG
4859 when test is marked to require it. Allow multiple
4860 compilations/executions of marked tests.
4861 * testsuite/testsuite_performance.h (report_performance):
4862 Report dynamic thread support status.
4863 (report_header): Likewise.
4864 * testsuite/performance/allocator.cc: Stabilize iteration
4865 count. Support more allocators. Mark each allocator test to
4866 run and report independently.
4867 * testsuite/performance/allocator_map_thread.cc: Likewise.
4868 * testsuite/performance/allocator_thread.cc: Likewise.
4870 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
4872 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
4873 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
4874 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
4875 std::get_temporary_buffer() instead of duplicating its code.
4876 Update to C++STYLE conventions.
4877 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
4878 new() instead of std::malloc().
4879 (return_temporary_buffer): Use ::operator delete() instead of
4882 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
4884 * include/bits/allocator.h: Temporary switch to new_allocator as
4885 the default to unjam bootstraps.
4887 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
4889 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
4890 * include/Makefile.in: Regenerate.
4891 * include/bits/allocator_traits.h: Remove.
4892 * include/bits/allocator.h: Remove allocator_traits.h include, and
4894 (allocator): Empty base class, inherit from the underlying allocator.
4895 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
4896 * src/allocator.cc: ...here. New. For the underlying allocators.
4897 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
4898 * config/linker-map.gnu: Remove __pool_alloc bits.
4899 * src/Makefile.am (sources): Add allocator.cc.
4900 * src/Makefile.in: Regenerate.
4901 * testsuite/20_util/allocator/1.cc: Split second test into...
4902 * testsuite/20_util/allocator/8230.cc: ...this.
4903 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
4904 typedef to use std::allocatore. Format.
4905 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
4907 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
4908 __throw_bad_alloc calls. Don't include <memory>.
4909 * include/ext/malloc_allocator.h: Remove <memory> include.
4910 * include/ext/new_allocator.h (new_allocator): Same.
4911 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
4912 declaration. Switch __alloc to _Alloc.
4913 * include/ext/hashtable.h: Remove __alloc.
4914 * include/backward/alloc.h: Only inject allocator, not
4915 implementation details.
4917 * include/ext/mt_allocator.h: Replace free with delete.
4919 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
4921 * src/globals_io.cc: Change to __gnu_internal namespace.
4922 * src/globals_locale.cc: Same.
4923 * src/locale_init.cc: Same.
4924 * src/ios_init.cc: Same.
4926 2004-01-28 Stefan Olsson <stefan@snon.net>
4928 * include/ext/mt_allocator.h: Replaced all malloc() calls with
4929 operator new(). Added support for the env variable
4930 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
4931 one in allocate() as well). Fix typos.
4933 2004-01-28 Paolo Carlini <pcarlini@suse.de>
4935 * include/bits/basic_string.h (_S_create(size_t,
4936 const _Alloc&): Change signature to take two size_type
4938 * include/bits/basic_string.tcc (_S_construct(_InIterator,
4939 _InIterator, const _Alloc&, input_iterator_tag)): Update
4941 (_S_construct(_InIterator, _InIterator, const _Alloc&,
4942 forward_iterator_tag)): Likewise.
4943 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
4944 (_M_mutate(size_type, size_type, size_type)): Don't
4945 implement the exponential growth policy, demand it to
4946 _S_create, update call and simplify.
4947 (_M_clone(const _Alloc&, size_type)): Likewise.
4948 (_S_create(size_type, size_type, const _Alloc&)): Implement
4949 the growth policy, simplify otherwise.
4951 * include/bits/basic_string.h (_Rep::operator[]): Tweak
4952 signature to take a size_type, consistently with the other
4955 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
4957 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
4958 delete declarations, add include and test variable.
4960 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
4962 * include/bits/codecvt.h, include/bits/locale_facets.h,
4963 include/bits/postypes.h, include/bits/stl_bvector.h,
4964 include/bits/stl_multiset.h, include/bits/stl_set.h,
4965 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
4966 include/std/std_complex.h: Document.
4968 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
4971 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
4972 iword/pword selector.
4973 (ios_base::iword, ios_base::pword): Use it.
4974 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
4975 iword or pword member on alloc failure.
4976 * testsuite/27_io/ios_base/storage/11584.cc: New test.
4978 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
4979 PJ Darcy <darcypj@us.ibm.com>
4981 * configure.host: Add support for *-tpf.
4982 * crossconfig.m4: Likewise.
4983 * configure: Regenerate.
4984 * config/os/tpf: New directory.
4985 * config/os/tpf/os_defines.h: New file.
4986 * config/os/tpf/ctype_base.h: Likewise.
4987 * config/os/tpf/ctype_inline.h: Likewise.
4988 * config/os/tpf/ctype_noninline.h: Likewise.
4990 2004-01-27 Paolo Carlini <pcarlini@suse.de>
4993 * include/bits/sstream.tcc: Guard use of extern template.
4995 2004-01-27 Paolo Carlini <pcarlini@suse.de>
4997 * include/bits/basic_string.tcc
4998 (basic_string(const basic_string&, size_type, size_type),
4999 basic_string(const basic_string&, size_type, size_type,
5000 const _Alloc&)): Avoid unnecessarily constructing iterators.
5002 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5004 * config/locale/generic/c_locale.cc: Fix throw messages
5005 to use the __N marker.
5006 * config/locale/gnu/c_locale.cc: Likewise.
5007 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
5009 * docs/html/17_intro/C++STYLE: Likewise.
5010 * include/bits/basic_ios.tcc: Likewise.
5011 * include/bits/fstream.tcc: Likewise.
5012 * include/bits/vector.tcc: Likewise.
5013 * include/ext/ropeimpl.h: Likewise.
5014 * include/std/std_bitset.h: Likewise.
5015 * src/ios.cc: Likewise.
5016 * src/locale.cc: Likewise.
5017 * src/localename.cc: Likewise.
5019 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5021 * include/bits/basic_string.h (_M_replace_aux): Use the
5022 __N marker in throw message.
5023 * include/bits/basic_string.tcc (assign(const _CharT*,
5024 size_type), insert(size_type, const _CharT*, size_type),
5025 replace(size_type, size_type, const _CharT*, size_type),
5026 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
5029 * include/bits/basic_string.h, include/bits/basic_string.tcc:
5030 Fold overlong lines, minor formatting changes.
5032 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5034 * include/bits/basic_string.h (replace(iterator, iterator,
5035 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
5036 (replace(iterator, iterator, const _CharT*)): Ditto.
5037 (replace(iterator, iterator, const _CharT*, size_type)):
5038 Add missing _GLIBCXX_DEBUG_PEDASSERT.
5040 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5042 * include/bits/basic_string.tcc (replace(size_type,
5043 size_type, const _CharT*, size_type)): Implement optimized
5044 in-place algorithm for non-overlapping ranges.
5045 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
5046 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
5048 * include/bits/basic_string.tcc (insert(size_type,
5049 const _CharT*, size_type)): Tweak slightly.
5051 2004-01-26 Andreas Schwab <schwab@suse.de>
5053 * config/locale/gnu/monetary_members.cc: Restore locale before
5054 rethrowing exception.
5056 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5058 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
5060 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
5063 * include/bits/basic_string.tcc: Very minor tweaks.
5065 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5067 * testsuite/performance/string_append.cc: Increase number
5070 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5072 * include/bits/basic_string.h (erase(size_type, size_type),
5073 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
5074 instead, thus avoiding redundant check for length_error.
5076 * include/bits/basic_string.h: Tweak some comments.
5078 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5080 * include/bits/basic_string.tcc (operator+(const _CharT*,
5081 const basic_string&)): No need to go through the append
5082 taking two iterators.
5084 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5086 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
5087 Revert last change to use std::min: machine language is worse.
5088 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
5089 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5090 (find_last_not_of(_CharT, size_type)): Ditto.
5092 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
5093 size_type)): Discard the value returned by _M_check.
5094 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
5095 (append(const basic_string&, size_type, size_type)): Ditto.
5096 (copy(_CharT*, size_type, size_type)): Ditto.
5097 (compare(size_type, size_type, const basic_string&)): Ditto.
5098 (compare(size_type, size_type, const basic_string&,
5099 size_type, size_type)): Ditto.
5100 (compare(size_type, size_type, const _CharT*)): Ditto.
5101 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5103 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5105 * include/bits/basic_string.h (insert(size_type,
5106 const basic_string&, size_type, size_type)): Define inline here.
5107 * include/bits/basic_string.tcc (insert(size_type,
5108 const basic_string&, size_type, size_type)): Move inline.
5110 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5112 * include/bits/basic_string.h (assign(const basic_string&,
5113 size_type, size_type)): Define inline here.
5114 (replace(size_type, size_type, const basic_string&,
5115 size_type, size_type)): Ditto.
5116 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5117 _InputIterator, __false_type)): Only declare.
5118 (_M_replace(iterator, iterator, _InputIterator,
5119 _InputIterator)): Remove.
5120 * include/bits/basic_string.tcc (assign(const basic_string&,
5121 size_type, size_type)): Move inline.
5122 (replace(size_type, size_type, const basic_string&,
5123 size_type, size_type)): Ditto.
5124 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5125 _InputIterator, __false_type)): Define, now does also what
5126 _M_replace did before.
5127 * src/string-inst.cc (_M_replace): Don't instantiate.
5129 * include/bits/basic_string.tcc (find(const _CharT*,
5130 size_type, size_type)): Tidy.
5131 (rfind(_CharT, size_type)): Ditto.
5132 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
5133 (find_first_not_of(_CharT, size_type)): Ditto.
5134 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5135 (find_last_not_of(_CharT, size_type)): Ditto.
5137 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5140 * include/debug/bitset (operator|=): Fix typo.
5141 * testsuite/23_containers/bitset/operations/13838.cc: New.
5143 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5145 * include/bits/basic_string.tcc (insert(size_type,
5146 const _CharT*, size_type __n)): Fix length_error check.
5147 (replace(size_type, size_type, const _CharT*, size_type):
5148 Ditto; call _M_replace_safe.
5149 (_M_replace_aux(size_type, size_type, size_type, _CharT):
5150 Fix length_error check.
5151 (_M_replace(iterator, iterator, _InputIterator,
5152 _InputIterator)): Ditto, tweak.
5153 (_M_replace_safe(size_type, size_type, const _CharT*,
5154 size_type)): Remove length_error check.
5156 * include/bits/basic_string.tcc (append(const basic_string&),
5157 append(const basic_string&, size_type, size_type)): Tweak
5160 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
5161 size_type)): If __n == 0 don't call traits::copy.
5163 2004-01-23 Stefan Olsson <stefan@snon.net>
5165 * include/ext/mt_allocator.h: Reduce lock contention.
5167 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5170 * include/bits/fstream.tcc (underflow): Remove unused
5172 * include/bits/streambuf_iterator.h (equal): Ditto.
5173 * include/bits/locale_facets.h (_M_convert_from_char):
5176 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5179 * config/linker-map.gnu (nan): Delete.
5180 * libmath/mathconf.h (NAN, nan): Delete.
5181 * linkage.m4 (nan): Don't check for it.
5182 * libmath/nan.c: Delete file.
5184 * config.h.in, configure: Regenerate.
5186 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5188 * include/bits/basic_string.h (push_back(_CharT)):
5189 Call _M_replace_aux.
5190 (insert(size_type, const basic_string&)): Trivial tweak.
5191 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
5192 (insert(iterator, _CharT)): Ditto.
5193 (erase(size_type, size_type)): Ditto.
5194 (erase(iterator)): Ditto.
5195 (erase(iterator, iterator)): Ditto.
5196 (replace(size_type, size_type, size_type, _CharT)): Ditto.
5198 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
5201 * testsuite/performance/allocator_map_thread.cc: New test.
5203 2004-01-22 Paolo Carlini <pcarlini@suse.de>
5205 * include/bits/locale_facets.tcc
5206 (money_put::do_put(..., long double)): Use the basic_string
5207 constructor for char arrays, not that for C-strings, to pass
5208 __digits to do_put(..., const string_type&): __ws isn't
5211 2004-01-22 Paolo Carlini <pcarlini@suse.de>
5213 * include/bits/basic_string.h (_M_replace_safe): Change
5214 signatures to take size_types and const _CharT*.
5215 (_M_replace_aux): Likewise, takes size_types instead of
5217 (append(size_type, _CharT)): Update call.
5218 (assign(size_type, _CharT)): Ditto.
5219 (replace(iterator, iterator, size_type, _CharT)): Ditto.
5220 (_M_replace_dispatch(iterator, iterator, _Integer,
5221 _Integer, __true_type)): Ditto.
5222 * include/bits/basic_string.tcc (assign(const _CharT*,
5224 (insert(size_type, const _CharT*, size_type)): Ditto.
5225 (replace(size_type, size_type, const _CharT*,
5227 (_M_replace(iterator, iterator, _InputIterator,
5228 _InputIterator)): Ditto.
5229 (append(const basic_string&)): Ditto.
5230 (append(const basic_string&, size_type, size_type): Ditto.
5231 (append(const _CharT*, size_type): Ditto.
5232 (_M_replace_safe, _M_replace_safe): Change definitions
5233 accordingly, simplify.
5234 * string-inst.cc (_M_replace_safe): Don't instantiate.
5236 2004-01-21 Paolo Carlini <pcarlini@suse.de>
5238 * include/bits/basic_string.tcc (append(const basic_string&)):
5239 Revert previous change.
5240 (append(const basic_string&, size_type, size_type)): Revert
5241 previous change, use _M_check and _M_limit.
5243 2004-01-21 Paolo Carlini <pcarlini@suse.de>
5245 * include/bits/basic_string.h (_M_check): Change to return
5246 a checked __pos and take an additional const char* argument.
5247 (_M_fold): Rename to _M_limit, change to return a size_type,
5248 corresponding to the __off limited to the actual length.
5249 (insert(size_type, size_type, _CharT)): Update call, call
5251 (insert(iterator, _CharT)): Call replace(iterator, iterator,
5252 size_type, _CharT) instead.
5253 (erase(size_type, size_type)): Update calls.
5254 (replace(size_type, size_type, size_type, _CharT)): Ditto.
5255 (substr(size_type, size_type)): Use _M_check.
5256 * include/bits/basic_string.tcc (basic_string(const basic_string&,
5257 size_type, size_type)): Update calls.
5258 (basic_string(const basic_string&, size_type, size_type,
5259 const _Alloc&)): Ditto.
5260 (assign(const basic_string&, size_type, size_type)): Use the
5261 new _M_check and _M_limit.
5262 (insert(size_type, const basic_string&, size_type, size_type):
5264 (insert(size_type, const _CharT*, size_type)): Ditto.
5265 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
5266 (replace(size_type, size_type, const basic_string&,
5267 size_type, size_type)): Ditto.
5268 (append(const basic_string&)): Ditto.
5269 (append(const basic_string&, size_type, size_type)): Ditto.
5270 (copy(_CharT*, size_type, size_type)): Ditto.
5271 (compare(size_type, size_type, const basic_string&)): Ditto.
5272 (compare(size_type, size_type, const basic_string&,size_type,
5274 (compare(size_type, size_type, const _CharT*)): Ditto.
5275 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5277 2004-01-19 Stefan Olsson <stefan@snon.net>
5279 * include/ext/mt_allocator.h: If a thread, when it dies, still has
5280 memory on it's freelist this memory is not returned to global
5281 list. Simplification of deallocate so that memory is always
5282 returned to the calling thread id's freelist instead of to
5283 global. Fix typos. Add volatile where appropriate.
5285 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
5287 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
5288 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
5289 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
5291 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5293 * src/debug.cc: Make sure all the names are prefixed with
5294 double (or single) underscore.
5296 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5298 * src/debug.cc: Trivial formatting change.
5300 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5302 * include/bits/basic_string.tcc (_S_construct(size_type,
5303 _CharT, const _Alloc&)): Remove redundant try/catch.
5304 (_M_mutate(size_type, size_type, size_type)): Ditto.
5305 (_M_clone(const _Alloc&, size_type)): Ditto.
5307 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5309 * include/bits/basic_string.h (c_str()): Simplify, due to
5310 21.3.4 the internal representation is always kept null-terminated.
5311 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
5312 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
5313 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
5316 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5318 * include/bits/basic_string.h (append(size_type, _CharT)):
5319 Moved inline, just call _M_replace_aux, no source iterators at
5320 risk of being clobbered.
5321 (assign(size_type, _CharT)): Call directly _M_replace_aux.
5322 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5323 input_iterator_tag)): Remove fifth unused argument.
5324 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5325 _InputIterator, __false_type)): Update call.
5326 * include/bits/basic_string.tcc (replace(size_type, size_type,
5327 const _CharT*, size_type)): Update call.
5328 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
5329 throw string literal.
5330 (_M_replace_safe(iterator, iterator, _ForwardIterator,
5331 _ForwardIterator)): Likewise.
5332 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5333 input_iterator_tag)): Remove fifth unused argument.
5334 (append(size_type __n, _CharT __c)): Move inline.
5335 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
5336 const C*, const C*, input_iterator_tag)): Remove fifth unused
5339 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
5341 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
5342 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
5344 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
5346 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
5349 2004-01-15 Stefan Olsson <stefan@snon.net>
5351 * include/ext/mt_allocator.h: Reuse thread id's as soon as
5352 possible by changing the behaviour of thread_freelist to do
5353 push_front when threads die instead of push_back.
5355 2004-01-14 Paolo Carlini <pcarlini@suse.de>
5357 * include/bits/locale_facets.h (struct __numpunct_cache):
5358 Add member _M_grouping_size, caching the length of _M_grouping.
5359 (__numpunct_cache<>::_M_cache): Assign the latter.
5360 (__verify_grouping): Move declaration...
5361 * include/bits/locale_facets.tcc (__verify_grouping):
5362 ... here, change signature to take a const char* and a size_t
5363 for the grouping; not a template anymore.
5364 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
5365 Likewise change signature and tweak consistently.
5366 (num_get::_M_extract_float, num_get::_M_extract_int,
5367 num_put::_M_insert_int, num_put::_M_insert_float,
5368 money_get::do_get(string_type&), money_get::do_put(string_type)):
5370 * config/locale/generic/numeric_members.cc
5371 (numpunct<>::_M_initialize_numpunct): Assign the new member.
5372 * config/locale/gnu/numeric_members.cc
5373 (numpunct<>::_M_initialize_numpunct): Likewise.
5374 * src/locale-inst.cc (__add_grouping): Tweak signature.
5375 (__verify_grouping): Don't instantiate, not a template anymore.
5377 * include/bits/locale_facets.h: Rename _M_truename_len ->
5378 _M_truename_size, _M_falsename_len -> _M_falsename_size.
5379 * include/bits/locale_facets.tcc: Likewise.
5380 * config/locale/generic/numeric_members.cc: Likewise.
5381 * config/locale/gnu/numeric_members.cc: Likewise.
5383 2004-01-14 Stefan Olsson <stefan@snon.net>
5385 * include/ext/mt_allocator.h: Fixups.
5386 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
5387 * testsuite/performance/allocator_thread.cc: Same.
5389 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
5391 * testsuite/performance/ifstream_extract_float.cc: Add higher
5393 * testsuite/performance/ofstream_insert_float.cc: Same.
5395 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5397 * src/locale-misc-inst.cc (__convert_from_v(long),
5398 __convert_from_v(unsigned long), __convert_from_v(long long),
5399 __convert_from_v(unsigned long long)): Remove, unused.
5401 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
5403 * testsuite/performance/ifstream_extract_float.cc: New.
5404 * testsuite/performance/ofstream_insert_float.cc: Float generation
5407 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
5408 * 20_util/auto_ptr/1.cc: ...this.
5409 * 20_util/auto_ptr/2.cc: Same.
5410 * 20_util/auto_ptr/3.cc: Same.
5411 * 20_util/auto_ptr/3946.cc: Same.
5412 * 20_util/auto_ptr/4.cc: Same.
5413 * 20_util/auto_ptr/5.cc: Same.
5414 * 20_util/auto_ptr/6.cc: Same.
5415 * 20_util/auto_ptr/7.cc: Same.
5416 * 20_util/auto_ptr/assign_neg.cc
5417 * 20_util/pairs.cc: Break into...
5418 * 20_util/pair/1.cc: ...this.
5419 * 20_util/pair/2.cc: Same.
5420 * 20_util/pair/3.cc: Same.
5421 * 20_util/pair/4.cc: Same.
5423 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5425 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
5426 Set correctly just basefield, the only group that matters.
5428 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5430 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
5431 (_Rope_rep_base): Inherit directly from the rope allocator;
5432 use rebinding instead of _Alloc_traits; pick up data member
5433 from _Rope_rep_alloc_base.
5434 (_Rope_alloc_base): Eliminate.
5435 (_Rope_base): Inherit directly from the rope allocator; use
5436 rebinding instead of _Alloc_traits; pick up data member from
5438 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
5439 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
5441 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5444 * include/bits/basic_string.tcc (compare(size_type, size_type,
5445 const _CharT*, size_type)): Implement correctly the resolution
5446 of DR 5: basically, s is a char array, -not- a C string.
5447 * include/bits/basic_string.h: Tweak some comments.
5448 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
5449 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
5451 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
5453 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
5456 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5458 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
5460 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
5463 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5465 * include/bits/locale_facets.h (struct __numpunct_cache):
5466 Add members _M_truename_len and _M_falsename_len, caching
5467 the lengths of _M_truename and _M_falsename.
5468 (__numpunct_cache<>::_M_cache): Assign the latter.
5469 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
5470 num_put::do_put(bool)): Use the new members, thus avoiding
5471 computing string lengths again and again.
5472 * config/locale/generic/numeric_members.cc
5473 (numpunct<>::_M_initialize_numpunct): Assign the new members.
5474 * config/locale/gnu/numeric_members.cc
5475 (numpunct<>::_M_initialize_numpunct): Likewise.
5477 2004-01-12 Mark Mitchell <mark@codesourcery.com>
5479 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
5480 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
5482 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
5483 and remove Cygwin XFAIL.
5484 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
5485 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
5486 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
5487 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
5489 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
5490 * testsuite/27_io/objects/char/7.cc: Likewise.
5491 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
5492 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
5493 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
5495 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
5497 * include/std/std_complex.h (std::complex<>::real): Return a
5498 reference. Add non-const overload.
5499 (std::complex<>::real): Likewise.
5500 (std::real): Likewise.
5501 (std::imag): Likewise.
5502 (std::operator+): Tidy.
5503 (std::operator-): Likewise.
5504 (std::operator*): Likewise.
5505 (std::operator/): Likewise.
5506 (std::operator>>): Likewise.
5508 2004-01-11 Paolo Carlini <pcarlini@suse.de>
5511 * include/bits/fstream.tcc (imbue): Exploit the external
5512 buffer to imbue 'on the fly' a new locale and convert its
5513 remainder with the new codecvt facet.
5514 (underflow): Tweak slightly to deal with this special case.
5515 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
5516 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
5517 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
5518 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
5519 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
5521 2004-01-10 Paolo Carlini <pcarlini@suse.de>
5523 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
5526 2004-01-10 Paolo Carlini <pcarlini@suse.de>
5529 * include/bits/locale_classes.h (class locale): Fix category
5531 * testsuite/22_locale/locale/13630.cc: Add.
5533 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
5535 * include/bits/locale_facets.h: Make a name really dependent. This
5536 will be needed when Core Issue 224 is implemented.
5538 2004-01-09 Paolo Carlini <pcarlini@suse.de>
5540 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
5541 * testsuite/performance/allocator_thread.cc: Likewise.
5543 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
5545 * crossconfig.m4: Add LFS, io bits to linux cross config.
5546 * acconfig.h: Remove obsolete bits, reorder.
5547 * config.h.in: Regenerate.
5551 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
5553 * include/bits/stl_list.h:
5554 * include/bits/list.tc:
5556 Performance enhancements for destructor, push_front(),
5557 push_back(), pop_front(), pop_back(), sort()
5558 Eliminated static_casts where possible.
5559 Moved code out of header files into new src/list.cc
5560 implementation file for library where possible.
5561 Remove inheritance from iterator class and create separate
5562 classes for non-constant and constant iterators.
5563 * include/bits/stl_tree.h (_Rb_tree class):
5565 Only erase contents in destructor.
5566 Eliminate unnecessary initialization in assignment operator.
5567 Optimize for the nominal case by not checking whether
5568 container is empty in clear().
5569 Re-order test in _M_insert() to improve performance.
5570 Move initialization of new node's left & right pointers to
5571 src/tree.cc to where new node's colour is initialized
5572 and to reduce the amount of inline code.
5573 Use _M_leftmost() and _M_end() to improve readability where
5575 Create separate classes for non-constant and constant
5576 iterators to clarify code, avoid extra template parameters and
5577 casting away constness.
5579 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
5581 * src/Makefile.am (sources): Add list.cc, tree.cc.
5582 * src/stl_tree.cc: Move to...
5583 * src/tree.cc: ...here.
5585 * config/linker-map.gnu: Tweaks.
5586 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
5587 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
5589 * bits/stl_vector.h: Column wrap comments.
5591 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
5593 (re-open) PR libstdc++/12658
5594 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
5595 (locale::global): Likewise.
5597 2004-01-07 Paolo Carlini <pcarlini@suse.de>
5599 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
5600 Remove redundant #include.
5601 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
5602 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
5603 re-enable normal testing.
5604 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
5606 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
5607 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
5609 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
5611 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
5613 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
5615 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
5617 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
5619 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
5621 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
5622 More properly, #include <locale>.
5623 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
5624 Remove redundant #include.
5625 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
5626 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
5627 redundant DejaGnu directive.
5628 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
5631 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
5632 Stefan Olsson <stefan@snon.net>
5634 * scripts/check_performance: Use -pthread.
5635 * testsuite/performance/allocator.cc: Tweaks, add list.
5636 * testsuite/performance/allocator_thread.cc: New.
5638 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
5640 * include/bits/locale_facets.h: Document public classes and
5642 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
5645 2004-01-06 Paolo Carlini <pcarlini@suse.de>
5647 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
5648 Remove redundant #includes.
5649 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
5651 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
5653 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
5654 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
5655 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
5656 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
5657 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
5658 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
5659 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
5660 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
5661 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
5662 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
5663 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
5664 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
5665 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
5666 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
5667 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
5669 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
5671 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
5673 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
5675 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
5677 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
5678 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
5679 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
5681 2004-01-04 Paolo Carlini <pcarlini@suse.de>
5683 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
5684 Remove redundant #includes.
5685 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
5687 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
5689 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
5691 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
5693 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
5695 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
5697 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
5699 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
5701 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
5703 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
5705 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
5707 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
5710 2004-01-04 Mark Mitchell <mark@codesourcery.com>
5713 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
5715 * testsuite/27_io/basic_fstream/4.cc: Likewise.
5716 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
5717 * testsuite/27_io/basic_ios/4.cc: Likewise.
5718 * testsuite/27_io/basic_iostream/4.cc: Likewise.
5719 * testsuite/27_io/basic_istream/4.cc: Likewise.
5720 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
5721 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
5722 * testsuite/27_io/basic_ostream/4.cc: Likewise.
5723 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
5724 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
5725 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
5727 2004-01-04 Paolo Carlini <pcarlini@suse.de>
5729 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
5730 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
5731 always use double underscored names.
5732 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
5734 * include/bits/locale_facets.h (struct __numpunct_cache):
5735 Dimension _M_atoms_out and _M_atoms_in one position smaller.
5736 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out