1 2004-11-02 Benjamin Kosnik <bkoz@redhat.com>
2 Lothar Werzinger <lothar@xcerla.com>
5 * src/debug.cc: Include concurrence, use mutexes.
6 (_Safe_iterator_base::_M_attach): Here.
7 (_Safe_iterator_base::_M_detach): Here.
9 2004-11-02 Benjamin Kosnik <bkoz@redhat.com>
12 * include/bits/ios_base.h : Add enum values.
13 * testsuite/testsuite_hooks.h (bitmask_operators): Add function.
14 * testsuite/27_io/ios_base/types/fmtflags/bitmask_operators.cc: New.
15 * testsuite/27_io/ios_base/types/fmtflags/case_label.cc: New.
16 * testsuite/27_io/ios_base/types/iostate/bitmask_operators.cc: New.
17 * testsuite/27_io/ios_base/types/iostate/case_label.cc: New.
18 * testsuite/27_io/ios_base/types/openmode/bitmask_operators.cc: New.
19 * testsuite/27_io/ios_base/types/openmode/case_label.cc: New.
20 * testsuite/27_io/ios_base/types/seekdir/case_label.cc: New.
22 * config/io/c_io_stdio.h (__ios_flags): Mark deprecated.
25 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
26 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
28 2004-11-01 Momchil Velikov <velco@fadata.bg>
31 * libsupc++/eh_globals.cc (get_globals_dtor): Delete unhandled
33 * testsuite/thread/18185.cc: New.
35 2004-11-01 Chris Jefferson <chris@bubblescope.net>
38 * include/tr1/tuple (get(pair)): Change occurrences of _I to _Int.
39 (get(const pair)): Likewise.
41 2004-11-01 Paolo Carlini <pcarlini@suse.de>
43 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
44 Evaluate *__beg the exact strict minimum number of times; likewise
45 for __beg != __end; in the main parsing loop, call ++__beg in two
46 places only. The former is also a correctness issue, because,
47 according to the standard (22.2.2.1.2, Stage 2), 'in' shall be
48 dereferenced only one time for each increment.
50 2004-10-31 Benjamin Kosnik <bkoz@redhat.com>
53 * testsuite/23_containers/set/modifiers/16728.cc: New.
55 2004-10-30 Paolo Carlini <pcarlini@suse.de>
57 * include/ext/bitmap_allocator.h (allocate(size_type)): Minor tweak.
59 * testsuite/ext/bitmap_allocator/check_delete.cc: New.
60 * testsuite/ext/bitmap_allocator/check_new.cc: Likewise.
62 2004-10-29 Geoffrey Keating <geoffk@apple.com>
64 * configure.host (darwin*): Set os_include_dir to a separate directory
66 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add a new C locale kind,
68 * config/locale/darwin/ctype_members.cc: New.
69 * config/os/bsd/darwin/ctype_base.h: New.
70 * config/os/bsd/darwin/ctype_inline.h: New.
71 * config/os/bsd/darwin/ctype_noninline.h: New.
72 * config/os/bsd/darwin/os_defines.h: New.
74 * testsuite/22_locale/locale/cons/12658_thread-1.cc: Only xfail
77 2004-10-29 Chris Jefferson <chris@bubblescope.net>
79 * include/bit/stl_algo.h (find_first_of(,,,,pred)):
80 Remove invalid EqualOpConcept.
81 * testsuite/25_algorithms/find_first_of/concept_check_1.cc: New.
83 2004-10-29 Benjamin Kosnik <bkoz@redhat.com>
85 * testsuite/testsuite_allocator.h (check_delete): New.
86 (check_new): Simplify.
87 * testsuite/ext/array_allocator/check_delete.cc: New.
88 * testsuite/ext/array_allocator/check_new.cc: Simplify.
89 * testsuite/ext/debug_allocator/check_delete.cc: New.
90 * testsuite/ext/debug_allocator/check_new.cc: Simplify.
91 * testsuite/ext/malloc_allocator/check_delete.cc: New.
92 * testsuite/ext/malloc_allocator/check_new.cc: Simplify.
93 * testsuite/ext/mt_allocator/check_delete.cc: New.
94 * testsuite/ext/mt_allocator/check_new.cc: Simplify.
95 * testsuite/ext/new_allocator/check_delete.cc: New.
96 * testsuite/ext/new_allocator/check_new.cc: Simplify.
97 * testsuite/ext/pool_allocator/check_delete.cc: New.
98 * testsuite/ext/pool_allocator/check_new.cc: Simplify.
100 2004-10-28 Chris Jefferson <chris@bubblescope.net>
103 * include/tr1/tuple: Fix, change formatting.
105 2004-10-28 Benjamin Kosnik <bkoz@redhat.com>
107 * include/ext/mt_allocator.h (__common_pool_policy): Add template
108 template parameter for pool class type.
109 (__per_type_pool_policy): Same.
110 (__mt_allocator): Don't inherit policy. Qualify policy_type calls.
111 * testsuite/ext/mt_allocator/check_deallocate_null.cc: Fix.
112 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: Same.
113 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
114 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
115 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
116 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
117 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Same.
118 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
119 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
120 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
121 * testsuite/ext/mt_allocator/instantiate.cc: Same.
122 * testsuite/ext/mt_allocator/tune-1.cc: Same.
123 * testsuite/ext/mt_allocator/tune-2.cc: Same.
124 * testsuite/ext/mt_allocator/tune-3.cc: Same.
125 * testsuite/ext/mt_allocator/tune-4.cc: Same.
127 2004-10-28 Paolo Carlini <pcarlini@suse.de>
129 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
130 Cache *__beg in __c when parsing exponent sign too.
131 (num_get<>::do_get(..., bool&)): Cache *__beg.
132 (money_get<>::_M_extract)): Likewise, in money_base::value.
134 2004-10-27 Paolo Carlini <pcarlini@suse.de>
136 * include/bits/basic_string.h (assign(const basic_string&)):
138 * include/bits/basic_string.tcc: ... here.
140 2004-10-27 Paolo Carlini <pcarlini@suse.de>
142 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
144 * include/bits/basic_string.tcc: ... here.
146 2004-10-26 Paolo Carlini <pcarlini@suse.de>
148 * include/bits/basic_string.h (append(const basic_string&),
149 append(size_type, _CharT)): Move out of line...
150 * include/bits/basic_string.tcc: ... here.
152 2004-10-26 Paolo Carlini <pcarlini@suse.de>
154 * include/bits/basic_string.h (erase(size_type, size_type),
155 erase(iterator), erase(iterator, iterator)): Call _M_mutate
156 instead of _M_replace_safe, equivalent when the fourth argument
159 2004-10-26 Benjamin Kosnik <bkoz@redhat.com>
161 * include/ext/array_allocator.h (array::allocate): Check for valid
162 array object, use its size member function directly.
163 * testsuite/ext/array_allocator/3.cc: New.
164 * docs/html/20_util/allocator.html: Add docs.
166 2004-10-25 Geoffrey Keating <geoffk@apple.com>
168 * configure.host (darwin*): Build libstdc++ single module
170 * libsupc++/new_op.cc (new): Make weak.
171 * libsupc++/new_opnt.cc (new): Make weak.
172 * libsupc++/new_opv.cc (new): Make weak.
173 * libsupc++/new_opvnt.cc (new): Make weak.
174 * libsupc++/delete_op.cc (delete): Make weak.
175 * libsupc++/delete_opnt.cc (delete): Make weak.
176 * libsupc++/delete_opv.cc (delete): Make weak.
177 * libsupc++/delete_opvnt.cc (delete): Make weak.
179 2004-10-25 Benjamin Kosnik <bkoz@redhat.com>
181 * testsuite/Makefile.am (GLIBCXX_INCLUDES): Add.
182 (AUTOMAKE_OPTIONS): Add nostdinc.
183 * testsuite/Makefile.in: Regenerate.
184 * scripts/testsuite_flags.in (build-includes): Remove redundant
185 search for libsupc++.
186 * fragment.am: Clean.
188 2004-10-25 Benjamin Kosnik <bkoz@redhat.com>
190 * include/Makefile.am (tr1_headers): Add tuple.
191 * include/Makefile.in: Regenerate.
193 2004-10-25 Chris Jefferson <chris@bubblescope.net>
195 * include/tr1/tuple: Implementation of tuple from library TR.
196 * testsuite/tr1/6_containers/tuple/tuple_element.cc: New.
197 * testsuite/tr1/6_containers/tuple/tuple_size.cc: New.
198 * testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc:
200 * testsuite/tr1/6_containers/tuple/cons/assignment.cc: New.
201 * testsuite/tr1/6_containers/tuple/cons/big_tuples.cc: New.
202 * testsuite/tr1/6_containers/tuple/cons/constructor.cc: New.
203 * testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc:
205 * testsuite/tr1/6_containers/tuple/creation_functions/tie.cc: New.
206 * testsuite/tr1/6_containers/tuple/element_access/get.cc: New.
208 2004-10-25 Paolo Carlini <pcarlini@suse.de>
210 * include/bits/basic_string.h (_Rep::_M_is_safe): Move to
211 basic_string as _M_disjunct, adjust to take only __s.
212 * include/bits/basic_string.tcc: Adjust consistently callers.
214 2004-10-25 Paolo Carlini <pcarlini@suse.de>
216 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
217 Adjust bit missing from the previous commit.
219 2004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
222 * testsuite/lib/libstdc++.exp: Accept more than one multilib libgcc.
224 2004-10-25 Paolo Carlini <pcarlini@suse.de>
226 * include/bits/basic_string.h (_Rep::_M_is_safe, _M_check_length,
227 _M_move, _M_copy, _M_assign): New, use througout.
228 (operator+=(_CharT)): Define in terms of push_back.
229 (append(const basic_string&)): Define here, inline, and simplify,
230 don't use the full _M_replace_safe.
231 (append(size_type, _CharT)): Likewise, don't use _M_replace_aux.
232 (push_back): Likewise.
233 (assign(const basic_string&)): Define here, inline.
234 * include/bits/basic_string.tcc (append(const _CharT* s, size_type):
235 Fix: when s points inside the _Rep, upon reallocation (reserve) we
236 were copying from deallocated memory.
237 (append(const basic_string&, size_type, size_type)): Simplify,
238 don't use _M_replace_safe.
239 (replace(size_type, size_type, const _CharT*, size_type)): Slightly
242 * testsuite/21_strings/basic_string/append/char/2.cc: New.
243 * testsuite/21_strings/basic_string/append/char/3.cc: Likewise.
244 * testsuite/21_strings/basic_string/append/wchar_t/2.cc: Likewise.
245 * testsuite/21_strings/basic_string/append/wchar_t/3.cc: Likewise.
247 * testsuite/21_strings/basic_string/assign/char/3.cc: Remove junk.
248 * testsuite/21_strings/basic_string/assign/wchar_t/3.cc: Likewise.
250 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
252 * testsuite/ext/mt_allocator/deallocate_global-2.c:
253 s/value_t/value_type/. s/traits_t/traits_type/.
254 s/policy_t/policy_type/. s/allocator_t/allocator_type/.
255 s/string_t/string_type/. s/list_t/list_type/.
256 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Likewise.
257 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Likewise.
258 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Likewise.
259 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Likewise.
260 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Likewise.
261 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Likewise.
262 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Likewise.
264 2004-10-21 Benjamin Kosnik <bkoz@redhat.com>
266 * include/tr1/array (array): Make safe for zero-sized arrays.
267 (array::end): Return one past the end.
268 (array::at): Use __throw_out_of_range, include functexcept.h.
269 (operator==): Implement.
275 * testsuite/tr1/6_containers/array/capacity/(empty.cc,
276 max_size.cc, size.cc): New.
277 * testsuite/tr1/6_containers/array/comparison_operators/(equal.cc,
278 greater.cc, greater_or_equal.cc, less.cc, less_or_equal.cc,
280 * testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc:
282 * testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc:
284 * testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc: New.
285 * testsuite/tr1/6_containers/array/requirements/(contiguous.cc,
286 instantiate, typedefs, zero_size_arrays): New.
288 2004-10-21 Paolo Carlini <pcarlini@suse.de>
289 Benjamin Kosnik <bkoz@redhat.com>
291 * include/bits/basic_string.h (_M_set_length_and_sharable): New.
292 * include/bits/basic_string.tcc (_S_construct, assign(const _CharT*,
293 size_type), _M_mutate, _M_clone): Use it.
294 (_Rep::_S_create): Don't set/call _M_length/_M_set_sharable here.
296 2004-10-21 Paolo Carlini <pcarlini@suse.de>
297 Dhruv Matani <dhruvbird@gmx.net>
298 Nathan Myers <ncm@cantrip.org>
300 * include/bits/vector.tcc (_M_insert_aux, _M_fill_insert,
301 _M_range_insert): Check at the outset that we are not trying
302 to exceed max_size, then deal properly with __len overflows.
303 * testsuite/23_containers/vector/modifiers/insert/1.cc: New.
305 * testsuite/testsuite_allocator.h: Remove redundant include.
307 2004-10-20 Paolo Carlini <pcarlini@suse.de>
309 * include/ext/bitmap_allocator.h (allocate): Throw std::bad_alloc
311 * include/ext/malloc_allocator.h (allocate): Likewise.
312 * include/ext/mt_allocator.h (allocate): Likewise.
313 * include/ext/new_allocator.h (allocate): Likewise.
314 * include/ext/array_allocator.h: Use __throw_bad_alloc().
315 * include/ext/pool_allocator.h: Use __builtin_expect.
316 * testsuite/ext/array_allocator/check_allocate_max_size.cc: New.
317 * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc: Likewise.
318 * testsuite/ext/malloc_allocator/check_allocate_max_size.cc: Likewise.
319 * testsuite/ext/mt_allocator/check_allocate_max_size.cc: Likewise.
320 * testsuite/ext/new_allocator/check_allocate_max_size.cc: Likewise.
321 * testsuite/ext/pool_allocator/check_allocate_max_size.cc: Likewise.
322 * testsuite/testsuite_allocator.h (check_allocate_max_size): New test.
324 2004-10-19 Paolo Carlini <pcarlini@suse.de>
326 * testsuite/performance/20_util/allocator/list_sort_search.cc:
327 Include <ext/new_allocator.h>.
328 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
330 2004-10-18 Paolo Carlini <pcarlini@suse.de>
332 * include/bits/basic_string.tcc (_M_mutate): Do not reallocate
333 unnecessarily when _M_rep() == &_S_empty_rep() and __new_size
334 == capacity() (== 0): is ok to just leave everything unchanged.
336 * include/bits/basic_string.h: Minor formatting fixes.
337 * include/bits/basic_string.tcc: Likewise.
339 2004-10-17 Benjamin Kosnik <bkoz@redhat.com>
341 * include/ext/mt_allocator.h (__pool::_M_get_align): New.
342 (__mt_alloc::allocate): Use it.
343 * src/mt_allocator.cc (__pool::_M_reclaim_block): Use it.
344 (__pool::_M_reserve_block): Simplify block allocation.
346 2004-10-17 Dhruv Matani <dhruvbird@gmx.net>
347 Paolo Carlini <pcarlini@suse.de>
349 * include/ext/bitmap_allocator.h: Change unsigned int -> size_t: this
350 makes the code 64-bit correct and also fixes (together with using at
351 the beginning a bitmap 2 * size_t bytes wide) alignment issues: now
352 8 is guaranteed, easily tunable to 16 via _BALLOC_ALIGN_BYTES.
353 Fix pthread-rope7.cc fail by nulling out __mini_vector<> destructor.
354 * src/bitmap_allocator.cc: Change to size_t.
355 * config/linker-map.gnu: Adjust.
357 2004-10-16 Benjamin Kosnik <bkoz@redhat.com>
359 * include/tr1/array: Don't use layout_type.
361 2004-10-16 Sashan Govender <sashang@gmail.com>
363 * include/tr1/array (array::end const): Fix casting from iterator
366 2004-10-15 Paolo Carlini <pcarlini@suse.de>
368 * include/ext/bitmap_allocator.h: Qualify ::operator delete.
369 * src/bitmap_allocator.cc: Likewise.
370 * src/mt_allocator.cc: Use ::operator delete, not delete,
371 consistently with ::operator new.
373 * include/ext/bitmap_allocator.h (deallocate): Check for null
375 * testsuite/ext/bitmap_allocator/check_deallocate_null.cc: New.
376 * testsuite/testsuite_allocator.h (check_deallocate_null): Add test.
378 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
380 * include/ext/mt_allocator.h (__mt_alloc::deallocate): Check for
382 * include/ext/pool_allocator.h (debug_allocator::deallocate):
384 * include/ext/debug_allocator.h (debug_allocator::deallocate):
385 Throw exceptions, don't abort.
386 * include/ext/array_allocator.h
387 (array_allocator_base::deallocate): Remove unused parameters.
388 * testsuite/testsuite_allocator.h (check_deallocate_null): New.
389 * testsuite/ext/mt_allocator/check_deallocate_null.cc: New.
390 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: New.
391 * testsuite/ext/array_allocator/check_deallocate_null.cc: New.
392 * testsuite/ext/debug_allocator/check_deallocate_null.cc: New.
393 * testsuite/ext/malloc_allocator/check_deallocate_null.cc: New.
394 * testsuite/ext/new_allocator/check_deallocate_null.cc: New.
395 * testsuite/ext/pool_allocator/check_deallocate_null.cc: New.
397 * testsuite/testsuite_allocator.h (check_new): Add instance argument.
398 * testsuite/ext/array_allocator/check_new.cc: New.
400 2004-10-14 Paolo Carlini <pcarlini@suse.de>
402 * include/ext/bitmap_allocator.h (bitmap_allocator::_Alloc_block):
403 Rename __unused to __M_unused.
405 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
407 * testsuite/ext/headers.cc: Add includes, compile only.
408 * testsuite/ext/hash_map.cc: Move to...
409 * testsuite/ext/hash_map/1.cc: ...here.
410 * testsuite/ext/14648.cc: Move to...
411 * testsuite/ext/hash_map/14648.cc: ...here.
412 * testsuite/ext/hash_map/instantiate.cc: Add.
413 * testsuite/ext/hash_set.cc: Move to...
414 * testsuite/ext/hash_set/1.cc: ...here.
415 * testsuite/ext/hash_set_explicit_instantiation.cc: Move to...
416 * testsuite/ext/hash_set/instantiate.cc: ...here.
417 * testsuite/ext/hash_check_construct_destroy.cc: Move to...
418 * testsuite/ext/hash_set/check_construct_destroy.cc: ...here.
419 * testsuite/ext/slist_check_construct_destroy.cc: Move to...
420 * testsuite/ext/slist/check_construct_destroy.cc: ...here.
421 * testsuite/ext/slist_explicit_instantiation.cc: Move to...
422 * testsuite/ext/slist/instantiate.cc: ...here.
424 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
426 * include/ext/mt_allocator.h: Tweaks.
427 * src/mt_allocator.cc: Same.
429 2004-10-14 Dhruv Matani <dhruvbird@gmx.net>
431 * ext/bitmap_allocator.h: Clean-up add/remove functions.
432 * src/bitmap_allocator.cc: New file. Contains the out-of-line
433 function definitions, static initialization of variables, and
434 explicit instantiations needed for the allocator.
435 * src/Makefile.am: Add.
436 * src/Makefile.in: Regenerate.
437 * config/linker.map.gnu: Add the necessary symbols.
439 2004-10-13 Paolo Carlini <pcarlini@suse.de>
441 * include/bits/basic_string.tcc (_S_create): Use consistently
442 the exponential policy, simplify.
443 * testsuite/performance/21_strings/string_append_2.cc: New.
445 * include/ext/array_allocator.h (allocate): Fix bad_alloc check.
446 * testsuite/ext/array_allocator/2.cc: Fix wrt 64-bit archs (in
447 that case sizeof(_Rep) == 24).
449 2004-10-12 Paolo Carlini <pcarlini@suse.de>
452 * include/bits/stl_tree.h (erase(iterator, iterator)): Revert
453 wrong commit of 2004-10-07.
455 2004-10-12 Scott Snyder <snyder@fnal.gov>
458 * testsuite/23_containers/set/modifiers/17948.cc: New.
460 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
462 * include/bits/stl_deque.h: Correct for over-long lines.
464 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
467 * include/ext/mt_allocator.h (__pool::_M_destroy): New.
468 * src/mt_allocator.cc (__pool::~__pool): Change definitions to
470 * acconfig.h: Remove _GLIBCXX_USE___CXA_ATEXIT.
471 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): Remove.
472 * configure.ac: Remove call to GLIBCXX_ENABLE_CXA_EXIT.
473 * configure: Regenerate.
474 * config/linker-map.gnu: Tweak exports.
475 * docs/html/ext/mt_allocator.html: Update docs.
476 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Fix.
477 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Fix.
478 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Fix.
479 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Fix.
480 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Fix.
481 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Fix.
482 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Fix.
483 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Fix.
485 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
487 PR libstdc++/16614 continued.
488 * include/ext/mt_allocator.h
489 (__per_type_pool_policy::_S_get_pool): Use saner defaults based on
490 specific type characteristics.
491 (__pool_base): Add constructor that takes a _Tune argument.
493 * testsuite/ext/mt_allocator/tune-2.cc: Adjust default.
494 * testsuite/ext/mt_allocator/tune-4.cc: Same.
495 * testsuite/ext/mt_allocator/tune-3.cc: Same.
497 2004-10-11 Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
498 Paolo Carlini <pcarlini@suse.de>
500 * src/pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk):
501 Deal properly with exceptions thrown by ::operator new(size_t).
502 * testsuite/ext/pool_allocator/allocate_chunk.cc: New.
504 * include/ext/pool_allocator.h: Include <cstdlib>.
506 2004-10-10 Benjamin Kosnik <bkoz@redhat.com>
508 * include/bits/functexcept.h: Add guards.
510 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Tweak test.
511 * configure: Regenerate.
513 2004-10-10 Paolo Carlini <pcarlini@suse.de>
515 * config/locale/gnu/monetary_members.cc (_S_construct_pattern):
516 Give __ret a default value, thus avoiding spurious warnings.
518 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Open either
519 words or linux.words, otherwise exit.
520 * testsuite/performance/27_io/ifstream_getline.cc: Slighlty tweak.
522 2004-10-09 Paolo Carlini <pcarlini@suse.de>
524 * include/std/std_memory.h (__get_temporary_buffer): Don't use
525 INT_MAX, prefer numeric_limits<ptrdiff_t>::max(), ok on 64-bit
527 * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust dg-error
530 2004-10-08 Benjamin Kosnik <bkoz@redhat.com>
532 * acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
533 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): New.
534 * configure.ac: Call GLIBCXX_ENABLE_CXA_EXIT.
535 * configure: Regenerate.
536 * src/mt_allocator.cc (__pool::~__pool): Make conditional on
537 _GLIBCXX_USE___CXA_ATEXIT macro.
538 * docs/html/ext/mt_allocator.html: Add note about deallocation.
539 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Guard checks
540 with _GLIBCXX_USE___CXA_ATEXIT.
541 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
542 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
543 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
544 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
545 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
546 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
547 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
549 2004-10-07 Phil Edwards <phil@codesourcery.com>
551 * testsuite/lib/libstdc++.exp: Update list of undefined functions.
553 2004-10-07 Paolo Carlini <pcarlini@suse.de>
555 * include/bits/list.tcc (operator=): Avoid iterator postincrement.
556 * include/bits/stl_tree.h (erase(iterator, iterator)): Likewise.
558 2004-10-07 Benjamin Kosnik <bkoz@redhat.com>
561 * include/tr1/array: New.
562 * include/Makefile.am (tr1_headers): New.
564 (install-headers): New.
565 (allstamped): Add stamp-tr1.
567 * include/ext/array_allocator.h: New.
568 * include/Makefile.am: Add.
569 * include/Makefile.in: Regenerate.
570 * testsuite/ext/array_allocator/1.cc: New.
571 * testsuite/ext/array_allocator/2.cc: New.
573 2004-10-07 Richard Earnshaw <rearnsha@arm.com>
575 * testsuite/lib/libstdc++.exp (libstdc++_exit): New proc.
577 2004-10-07 Roger Sayle <roger@eyesopen.com>
580 * configure.ac: Newlib does not provide strtold.
581 * configure: Regenerate.
583 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
585 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
586 (GLIBCXX_CONFIGURE_TESTSUITE): Use it.
587 * configure: Regenerated.
588 * testsuite/Makefile.am (CLEANFILES): Add TEST for
589 check-performance executables.
592 * testsuite/Makefile.in: Regenerate.
593 * scripts/create_testsuite_files: Filter thread tests.
595 * testsuite/thread/pthread1.cc: Remove macro conditionals: this
596 file will only be run by thread enabled configurations.
597 * testsuite/thread/pthread7-rope.cc: Same, add rope_type typedef.
598 * testsuite/thread/pthread6.cc: Same.
599 * testsuite/thread/pthread5.cc: Same.
600 * testsuite/thread/pthread4.cc: Same.
601 * testsuite/thread/pthread3.cc: Same.
602 * testsuite/thread/pthread2.cc: Same.
604 * testsuite/ext/mt_allocator/instantiate.cc: Add in __GTHREADS guard.
605 * testsuite/ext/mt_allocator/deallocate_global-1.cc: Move to...
606 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: ...here.
607 * testsuite/ext/mt_allocator/deallocate_global-3.cc: Move to...
608 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: ...here.
609 * testsuite/ext/mt_allocator/deallocate_local-1.cc: Move to...
610 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: ...here.
611 * testsuite/ext/mt_allocator/deallocate_local-3.cc: Move to...
612 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: ...here.
614 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
615 Paolo Carlini <pcarlini@suse.de>
618 * src/mt_allocator.cc (__pool<true>::_M_reserve_block): Revert
619 to old locking order.
621 2004-10-06 Paolo Carlini <pcarlini@suse.de>
623 * include/std/std_sstream.h (_M_sync): When the caller is
624 setbuf, don't trust _M_string.capacity() to be the size of
625 the buffer area, use _M_string.size() in this case.
626 * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
627 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.
629 * include/bits/sstream.tcc (overflow): Avoid calling string::assign
630 unnecessarily when the current _M_string is empty.
632 2004-10-06 Paolo Carlini <pcarlini@suse.de>
634 * include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)):
635 Avoid iterator postincrement.
636 (__rotate): Likewise.
638 * include/bits/stl_algo.h: Minor formatting tweaks.
640 2004-10-06 Christopher Jefferson <caj@cs.york.ac.uk>
642 * include/bits/stl_algo.h (__reverse(random_access_iterator_tag)):
643 Avoid iterator postincrement; fix swapping middle element with
644 itself on odd-length inputs.
646 2004-10-05 Benjamin Kosnik <bkoz@redhat.com>
649 * include/ext/mt_allocator.h (__pool_base::_Tune): Add default
650 options as compile-time constant enums.
651 (__pool_base::_Tune::is_default): New.
652 (__pool_base::_Block_address): New.
653 (__pool_base): Rearrange data members.
654 (__pool::_M_reserve_memory): To _M_reserve_block.
655 (__pool::_M_reclaim_memory): To _M_reclaim_block.
656 (__pool::_Bin_record): Add _Block_address data member.
657 (__pool<false>): Add _M_thread_freelist_initial.
658 (__pool::~__pool): Declare.
659 (__common_pool_policy): Move static data member to...
660 (__common_pool_policy::_S_get_pool): ...here, make static local.
661 (__per_type_pool_policy): Move static data member to...
662 (__per_type_pool_policy::_S_get_pool): ...here, make static local.
663 (__mt_alloc::__mt_alloc): Call __policy_type::_S_get_pool.
664 Remove static member definitions. Use define for __default_policy.
665 * src/mt_allocator.cc: Same.
666 * config/linker-map.gnu: Don't export _S_get_pool. Renames.
667 * testsuite/ext/new_allocator: New.
668 * testsuite/ext/new_allocator/instantiate.cc: New.
669 * testsuite/ext/new_allocator/check_new.cc: New.
670 * testsuite/ext/new_allocator/deallocate_global.cc: New.
671 * testsuite/ext/new_allocator/deallocate_local.cc: New.
672 * testsuite/ext/mt_allocator/instantiate.cc: Instantiate all
674 * testsuite/ext/mt_allocator/deallocate_global-1.cc: New.
675 * testsuite/ext/mt_allocator/deallocate_global-2.cc: New.
676 * testsuite/ext/mt_allocator/deallocate_global-3.cc: New.
677 * testsuite/ext/mt_allocator/deallocate_global-4.cc: New.
678 * testsuite/ext/mt_allocator/deallocate_local-1.cc: New.
679 * testsuite/ext/mt_allocator/deallocate_local-2.cc: New.
680 * testsuite/ext/mt_allocator/deallocate_local-3.cc: New.
681 * testsuite/ext/mt_allocator/deallocate_local-4.cc: New.
682 * testsuite/ext/mt_allocator/deallocate.cc: New.
683 * testsuite/ext/malloc_allocator/deallocate.cc: New.
684 * testsuite/ext/malloc_allocator/deallocate_global.cc: New.
685 * testsuite/ext/malloc_allocator/deallocate_local.cc: New.
687 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
689 * configure.host (abi_baseline_pair): Define for s390-*-linux* and
691 * config/abi/s390-linux-gnu/baseline_symbols.txt: Add missing symbols.
692 * config/abi/s390x-linux-gnu/baseline_symbols.txt: New file.
694 2004-10-05 Christopher Jefferson <caj@cs.york.ac.uk>
696 * include/bits/stl_algobase.h (iter_swap): delegate to swap via
697 __iter_swap when iterator's value_types are equal.
698 (struct __iter_swap): New.
700 2004-10-04 Benjamin Kosnik <bkoz@redhat.com>
702 * configure.ac (libtool_VERSION): To 6:3:0.
703 * configure: Regnerate.
704 * testsuite/testsuite_abi.cc (check_version): Add 3.4.3.
706 2004-10-04 Roger Sayle <roger@eyesopen.com>
707 Eric Botcazou <ebotcazou@libertysurf.fr>
710 * config/linker-map.gnu: Synchronize the current list of stub
711 functions from libmath.
713 2004-10-03 Roger Sayle <roger@eyesopen.com>
715 * config/locale/generic/c_locale.cc (__convert_to_v): Use
716 _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
717 Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
718 to check for presence of strtold.
720 2004-10-03 Paolo Carlini <pcarlini@suse.de>
722 * include/bits/stl_list.h: Trivial formatting fixes.
723 * include/bits/stl_tree.h: Likewise.
725 2004-10-03 Paolo Carlini <pcarlini@suse.de>
727 * include/bits/sstream.tcc (seekpos): In case of success, just
730 2004-10-01 Paolo Carlini <pcarlini@suse.de>
732 * include/bits/sstream.tcc (pbackfail): Implement correctly
733 27.7.1.3/2, bullet 2: if mode & ios_base::out is false do not
735 * testsuite/27_io/basic_stringbuf/pbackfail/char/1.cc: New.
736 * testsuite/27_io/basic_stringbuf/pbackfail/char/2.cc: Likewise.
737 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/1.cc: Likewise.
738 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/2.cc: Likewise.
739 * testsuite/27_io/basic_istream/putback/char/1.cc: Tweak consistently.
741 2004-10-01 Paolo Carlini <pcarlini@suse.de>
743 * include/bits/sstream.tcc (seekpos): Minor rearrangement of two
744 conditionals consistently with seekoff.
745 * include/std/std_sstream.h (setbuf): Avoid a string temporary.
746 (_M_sync): Simplify a bit, clean-up comment.
748 2004-09-30 Paolo Carlini <pcarlini@suse.de>
750 PR libstdc++/10975 (DR 453)
751 * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
753 * docs/html/ext/howto.html: Add an entry for DR 453.
754 * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
755 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
756 * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
757 * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
758 * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
759 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
761 * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
762 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
764 * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
766 2004-09-29 Paolo Carlini <pcarlini@suse.de>
768 * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
769 Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
770 (str()): Slightly tweak, protect from pptr() == 0.
771 (_M_update_egptr()): Likewise.
772 * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
773 for an empty buffer use __beg instead of _M_string.capacity().
774 * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
775 * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
777 * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
778 * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
779 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
780 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
782 2004-09-29 Paolo Carlini <pcarlini@suse.de>
783 Benjamin Kosnik <bkoz@redhat.com>
785 * testsuite/testsuite_io.h (class constraint_buf): New, extended
786 and templatized version of constraint_filebuf; add typedefs for
787 streambuf/stringbuf/filebuf and wchar_t counterparts.
789 2004-09-28 Paolo Carlini <pcarlini@suse.de>
792 * include/bits/basic_string.h (_M_dispose, _M_refcopy,
793 basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
794 don't deal with _S_empty_rep.
795 * include/bits/basic_string.tcc (_S_construct, _M_destroy,
796 _M_leak_hard, _M_mutate): Likewise.
797 * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
798 * acconfig.h: Add corresponding undef.
799 * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
800 * docs/html/configopts.html: Document --enable-fully-dynamic-string.
801 * configure: Regenerate.
802 * config.h.in: Likewise.
804 2004-09-28 Benjamin Kosnik <bkoz@redhat.com>
805 Paolo Carlini <pcarlini@suse.de>
807 * testsuite/21_strings/basic_string/operations/char/1.cc: New.
808 * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
809 * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
810 * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc:
813 2004-09-28 Paolo Carlini <pcarlini@suse.de>
815 * README: Remove obsolete entry about include/c_shadow.
817 2004-09-24 H.J. Lu <hongjiu.lu@intel.com>
820 * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
822 2004-09-24 Paolo Carlini <pcarlini@suse.de>
824 * src/localename.cc (locale::locale(const char*)): Minor tweaks:
825 rename a variable, move an assignment.
826 (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
828 2004-09-24 Paul Brook <paul@codesourcery.com>
830 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
832 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
833 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
834 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
835 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
836 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
837 * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
839 2004-09-23 Zack Weinberg <zack@codesourcery.com>
841 * testsuite/20_util/memory/auto_ptr/assign_neg.cc
842 * testsuite/23_containers/map/operators/1_neg.cc
843 * testsuite/23_containers/set/operators/1_neg.cc:
844 Update locations and/or regexps of dg-error markers.
846 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
848 * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
849 Add rule to build ${host_builddir}/gthr-tpf.h.
850 * include/Makefile.in: Regenerate.
852 2004-09-23 Paolo Carlini <pcarlini@suse.de>
853 Magnus Fromreide <magfr@lysator.liu.se>
855 * include/bits/boost_concept_check.h (struct _SequenceConcept):
856 Remove wrong requirement, i.e., not present in Table 67.
858 2004-09-21 Paolo Carlini <pcarlini@suse.de>
860 PR libstdc++/12882 (cont)
861 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
862 * configure: Regenerate.
863 * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
864 _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
865 trivial showmanyc for large files too.
867 2004-09-17 Jonathan Wakely <redi@gcc.gnu.org>
869 * include/bits/stl_algo.h (remove): Remove too restrictive
872 2004-09-17 Paolo Carlini <pcarlini@suse.de>
874 * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
875 as per Nathan's original suggestion.
877 2004-09-17 Paolo Carlini <pcarlini@suse.de>
879 * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
881 * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
882 * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
883 * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
885 2004-09-17 Paolo Carlini <pcarlini@suse.de>
886 Andrea Arcangeli <andrea@suse.de>
888 * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
889 call unnecessarily sync, that is fflush: the library, since 3.4.0
890 does not use buffered fread/fwrite.
891 * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
893 2004-09-15 Mark Mitchell <mark@codesourcery.com>
895 * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
897 * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
899 * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
900 (__cxa_vec_new): Use it.
901 (__cxa_vec_new2): Likewise.
902 (__cxa_vec_new3): Likewise.
903 (__cxa_vec_cdtor): Likewise.
904 (__cxa_vec_cctor): Likeiwse.
905 (__cxa_vec_dtor): Likewise.
906 (__cxa_vec_cleanup): Likewise.
907 (__cxa_vec_delete2): Likewise.
908 (__cxa_vec_delete3): Likewise.
909 * libsupc++/vec.cc (__cxa_vec_new): Likewise.
910 (__cxa_vec_new2): Likewise.
911 (__cxa_vec_new3): Likewise.
912 (__cxa_vec_cdtor): Likewise.
913 (__cxa_vec_cctor): Likeiwse.
914 (__cxa_vec_dtor): Likewise.
915 (__cxa_vec_cleanup): Likewise.
916 (__cxa_vec_delete2): Likewise.
917 (__cxa_vec_delete3): Likewise.
918 (__aeabi_vec_ctor_nocookie_nodtor): New function.
919 (__aeabi_vec_ctor_cookie_nodtor): Likewise.
920 (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
921 (__aeabi_vec_new_cookie_noctor): Likewise.
922 (__aeabi_vec_new_nocookie): Likewise.
923 (__aeabi_vec_new_cookie_nodtor): Likewise.
924 (__aeabi_vec_new_cookie): Likewise.
925 (__aeabi_vec_dtor): Likewise.
926 (__aeabi_vec_dtor_cookie): Likewise.
927 (__aeabi_vec_delete): Likewise.
928 (__aeabi_vec_delete3): Likewise.
929 (__aeabi_vec_delete3_nodtor): Likewise.
930 (__aeabi_atexit): Likewise.
932 2004-09-14 Nathan Myers <ncm@cantrip.org>
934 * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
935 for 11722: copy can replace move; the common case is __avail == 0.
937 2004-09-14 Paolo Carlini <pcarlini@suse.de>
939 * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
940 to __is_scalar, more clear and consistent with "tr1" naming.
941 * include/bits/stl_algobase.h: Update consistently throughout.
943 2004-09-13 Paolo Carlini <pcarlini@suse.de>
946 * include/std/std_fstream.h (xsgetn): Declare only.
947 * include/bits/fstream.tcc (xsgetn): Define, optimize for the
948 always_noconv() case: when __n > __buflen, copy the available
949 buffer and issue a direct read.
950 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
952 * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
955 2004-09-13 Hans-Peter Nilsson <hp@bitrange.com>
957 * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
958 libstdc++_maybe_build_wrapper instead of using local code.
960 2004-09-08 Benjamin Kosnik <bkoz@redhat.com>
962 * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
964 2004-09-03 Jan Beulich <jbeulich@novell.com>
966 * crossconfig.m4: Add NetWare as a target.
967 * configure: Regenerate.
969 2004-09-02 Mark Mitchell <mark@codesourcery.com>
971 * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
974 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
975 Simon Richter <Simon.Richter@hogyros.de>
978 * include/bits/istream.tcc: Add extern template for iostream
979 char and wchar_t instantiations.
981 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
982 Leland Wang <llwang@infor.org>
985 * include/ext/ropeimpl.h (rope::_S_compare): Use
986 _Rope_constants::_S_leaf.
988 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
991 * include/Makefile.am (ext_headers): Remove demangle.h.
992 * include/Makefile.in: Regenerate.
993 * include/ext/demangle.h: Remove.
995 2004-09-01 Benjamin Kosnik <bkoz@redhat.com>
998 * include/ext/mt_allocator.h (__mt_base): Not type dependent,
1000 (__pool): New, specialize.
1001 (__common_pool): New, static bits here.
1002 (__per_type_pool): New, and here.
1003 (__mt_alloc_base): New.
1004 (__mt_alloc): Add template parameter, inherit from it.
1005 * src/allocator.cc: Split this...
1006 * src/allocator-inst.cc: And this...
1007 * src/pool_allocator.cc: ...into this.
1008 * src/mt_allocator.cc: ... and this. Add definitions for
1010 * src/Makefile.am (sources): Split allocator.cc to
1011 pool_allocator.cc and mt_allocator.cc.
1012 * src/Makefile.in: Regenerate.
1013 * config/linker-map.gnu: Add symbols.
1014 * docs/html/ext/mt_allocator.html: Document new design.
1015 * testsuite/ext/mt_allocator/tune-1.cc: New.
1016 * testsuite/ext/mt_allocator/tune-2.cc: New.
1017 * testsuite/ext/mt_allocator/tune-3.cc: New.
1018 * testsuite/ext/mt_allocator/tune-4.cc: New.
1020 * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
1021 * testsuite/ext/allocators.cc: Use check_new, split into...
1022 * testsuite/ext/mt_allocator/check_new.cc: this.
1023 * testsuite/ext/pool_allocator/check_new.cc: this.
1024 * testsuite/ext/malloc_allocator/check_new.cc: this.
1025 * testsuite/ext/debug_allocator/check_new.cc: this.
1026 * testsuite/ext/mt_allocator/instantiate.cc: this.
1027 * testsuite/ext/pool_allocator/instantiate.cc: this.
1028 * testsuite/ext/malloc_allocator/instantiate.cc: this.
1029 * testsuite/ext/debug_allocator/instantiate.cc: this.
1031 2004-08-30 Phil Edwards <phil@codesourcery.com>
1033 * docs/html/install.html: Update locales list (from Paolo).
1034 Remove other redundant information and point to the GCC install
1037 2004-08-30 Benjamin Kosnik <bkoz@redhat.com>
1039 * include/ext/pool_allocator.h: Rename __pool_base to
1041 * src/allocator.cc: Same.
1042 * config/linker-map.gnu: Same.
1044 2004-08-30 Paolo Carlini <pcarlini@suse.de>
1045 Kenneth C. Schalk <ken@xorian.net>
1048 * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
1049 Check the return value of fclose/sync, loop on EINTR.
1050 (__basic_file<char>::sys_open): Likewise, for sync.
1052 2004-08-29 Paolo Carlini <pcarlini@suse.de>
1054 * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
1055 case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
1056 and 7.23.3.5), two if !_GLIBCXX_USE_C99.
1057 * testsuite/22_locale/time_get/get_time/char/4.cc: New.
1058 * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
1060 2004-08-27 Jason Merrill <jason@redhat.com>
1063 * libsupc++/guard.cc (static_mutex): Internal class implementing a
1064 recursive mutex which controls initialization of local statics.
1065 (__gnu_cxx::recursive_init): New exception class.
1066 (__cxa_guard_acquire): Deal with locking and recursion detection.
1067 (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
1069 2004-08-27 Matthias Klose <doko@debian.org>
1071 * configure.host: For mips*-*-linux* update cpu_include_dir
1072 after atomicity_dir is set.
1074 2004-08-27 Matthias Klose <doko@debian.org>
1076 * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
1077 * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1078 * configure.host: Set abi_baseline_pair for arm*-*-linux* and
1081 2004-08-27 Paolo Carlini <pcarlini@suse.de>
1083 * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
1084 * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
1085 * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
1086 * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
1087 * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
1089 * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
1091 * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
1092 * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
1093 * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
1094 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1096 2004-08-25 Paolo Carlini <pcarlini@suse.de>
1098 PR libstdc++/17038 (partial)
1099 * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
1101 * include/bits/locale_facets.h (class __timepunct): Add FIXME
1102 comment about _M_put.
1103 * config/locale/generic/time_members.cc (_M_put): Always null
1105 * config/locale/gnu/time_members.cc (_M_put): Likewise.
1106 * testsuite/22_locale/time_put/put/char/17038.cc: New.
1107 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
1109 2004-08-24 Paolo Carlini <pcarlini@suse.de>
1111 * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
1112 * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
1113 * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
1114 * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
1115 * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
1116 * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
1118 * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
1120 * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
1122 2004-08-22 Matthias Klose <doko@debian.org>
1124 * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
1125 * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1127 2004-08-23 Paolo Carlini <pcarlini@suse.de>
1129 * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
1130 * aclocal.m4: Regenerate with automake-1.9.1.
1131 * configure: Regenerate.
1132 * Makefile.in: Likewise.
1133 * include/Makefile.in: Likewise.
1134 * libmath/Makefile.in: Likewise.
1135 * libsupc++/Makefile.in: Likewise.
1136 * po/Makefile.in: Likewise.
1137 * src/Makefile.in: Likewise.
1138 * testsuite/Makefile.in: Likewise.
1140 2004-08-22 Paolo Carlini <pcarlini@suse.de>
1142 * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
1143 to a signed type, long according to the resolution of DR 359.
1144 * testsuite/22_locale/num_put/put/char/9.cc: New.
1145 * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
1147 * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
1148 Simplify a bit: no need to clear showpos.
1150 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1152 * include/bits/char_traits.h (struct _Char_traits_match): Remove,
1155 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1157 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
1158 wchar_t type for the fill argument; minor formatting tweaks.
1159 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
1160 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
1161 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
1162 * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
1163 * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
1164 * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
1166 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1168 * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
1169 with _M_word != _M_local_word two times, redundantly.
1171 2004-08-20 Jason Merrill <jason@redhat.com>
1173 * include/Makefile.am (${host_builddir}/gthr.h): Don't add
1174 _GLIBCXX_ to #pragma lines.
1175 * include/Makefile.in: Update.
1177 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1179 PR libstdc++/7219 (continued)
1180 * include/bits/ios_base.h (class ios_base): Expose Annex D.6
1181 typedefs by default.
1182 * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
1183 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
1185 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1187 2004-08-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1189 * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
1190 barrier to locking asm.
1192 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1194 * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
1195 actually the warning is a front-end bug (c++/17120).
1197 2004-08-20 Matthias Klose <doko@debian.org>
1199 * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
1201 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1203 * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
1204 used as truth value warning.
1206 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1208 * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
1211 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1213 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
1215 2004-08-19 Benjamin Kosnik <bkoz@redhat.com>
1217 * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
1219 * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
1221 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1223 * testsuite/performance/20_util/allocator/insert.cc: For std::map
1224 instantiate the allocator for a correct pair type.
1225 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1226 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1227 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1230 * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
1231 minor formatting fixes.
1232 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1234 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1236 * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
1238 * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
1239 * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
1240 * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
1241 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
1242 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1243 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1244 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1246 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1248 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1250 2004-08-18 Matthias Klose <doko@debian.org>
1252 * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1253 * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
1254 * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
1256 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1258 * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1260 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1262 * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1264 2004-08-17 Benjamin Kosnik <bkoz@redhat.com>
1266 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1268 2004-08-16 Paolo Carlini <pcarlini@suse.de>
1270 * include/bits/indirect_array.h: Trivial formatting fixes.
1271 * include/bits/valarray_after.h: Likewise.
1272 * include/bits/valarray_array.h: Likewise.
1273 * src/valarray-inst.cc: Likewise.
1275 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1277 * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
1278 * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
1279 * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
1281 * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
1282 * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
1283 * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
1284 * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
1285 * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
1287 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1289 * include/bits/deque.tcc: Trivial formatting fixes.
1291 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1293 * include/bits/deque.tcc: Trivial formatting fixes.
1295 * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
1296 Remove unneded typedef.
1298 * include/bits/locale_facets.tcc: Very minor tweaks.
1300 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
1301 type for the fill argument.
1302 * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
1303 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1304 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1305 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1306 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
1307 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
1308 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
1309 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
1311 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1313 * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
1314 memmove is not needed, memcpy suffices.
1316 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1318 * include/std/std_fstream.h (class basic_ifstream,
1319 class basic_ofstream, class basic_fstream): Add const overloads
1320 of is_open, as per DR 365 [WP].
1321 * docs/html/ext/howto.html: Add an entry for DR 365.
1323 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1325 * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
1327 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1330 * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
1331 to the returned value, reorganize a bit.
1332 * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
1333 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
1335 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
1336 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
1337 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
1338 * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
1340 2004-08-12 Paul Brook <paul@codesourcery.com>
1342 * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
1343 _GLIBCXX_CXA_VEC_CTOR_RETURN.
1344 * config/cpu/generic/cxxabi_tweaks.h: Ditto.
1345 * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
1346 __cxa_vec_ctor_return.
1347 * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
1348 Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
1350 2004-08-12 Kelley Cook <kcook@gcc.gnu.org>
1352 * Makefile.in, aclocal.m4, configure, include/Makefile.in,
1353 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1354 src/Makefile.in, testsuite/Makefile.in: Regenerate
1356 2004-08-12 Jan Beulich <jbeulich@novell.com>
1358 * config/locale/generic/ctype_members.cc
1359 (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
1360 initializer for return value, as that is invalid for enumerated types.
1361 * config/locale/gnu/ctype_members.cc
1362 (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
1364 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1366 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
1368 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1370 * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
1372 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
1373 * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
1374 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
1375 * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
1376 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
1377 * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
1378 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
1379 * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
1380 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
1381 * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
1382 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
1383 * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
1384 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
1385 * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
1386 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
1387 * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
1388 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
1389 * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
1390 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
1391 * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
1392 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
1394 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1395 Petur Runolfsson <peturr02@ru.is>
1398 * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
1399 standard streams are constructed.
1400 * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
1402 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1404 * include/bits/stl_bvector.h: Trivial formatting fixes.
1406 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1408 * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
1410 2004-08-07 Jonathan Wakely <redi@gcc.gnu.org>
1411 Paolo Carlini <pcarlini@suse.de>
1413 * src/debug.cc (_Error_formatter::_M_print_string): In order
1414 to print individual words from __string, _M_format_word can't
1415 be called since may be just sprintf, thus ignoring completely
1416 __n: instead, use memmove and append '\0' by hand.
1418 2004-08-07 Paolo Carlini <pcarlini@suse.de>
1420 * config/locale/generic/c_locale.h (__convert_from_v): Don't
1421 use a default for __prec, assume __prec >= 0 and simplify.
1422 * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
1423 * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
1424 Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
1426 2004-08-04 Phil Edwards <phil@codesourcery.com>
1428 * docs/html/configopts.html: Emphasize that options change.
1429 * docs/html/17_intro/configury.html: Update links.
1431 2004-08-03 Paolo Carlini <pcarlini@suse.de>
1433 * include/bits/list.tcc: Trivial formatting fixes.
1435 2004-08-03 Mark Mitchell <mark@codesourcery.com>
1437 * libsupc++/new_op.cc: Update comments.
1438 * libsupc++/del_op.cc: Likewise.
1440 2004-08-02 Mark Mitchell <mark@codesourcery.com>
1442 * libsupc++/cxxabi.h: Make all declarations have default
1444 * libsupc++/exception: Likewise.
1445 * libsupc++/new: Likewise.
1446 * libsupc++/typeinfo: Likewise.
1447 * libsupc++/unwind-cxx.h: Likewise.
1448 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
1449 the __cxxabiv1 namespace.
1450 (__cxa_free_exception): Likewise.
1451 * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
1452 (__cxa_bad_typeid): Likewise.
1453 * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
1454 (__cxa_end_catch): Likewise.
1455 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
1456 (__cxa_get_globals): Likewise.
1457 * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
1458 (__cxa_rethrow): Likewise.
1459 * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
1460 * libsupc++/eh_type.cc: Include <cxxabi.h>.
1462 * Makefile.am (hosted_source): Add libmath and testsuite.
1463 (SUBDIRS): Remove them.
1464 * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
1465 on arm*-*-symbianelf*.
1466 * crossconfig.m4: Add arm*-*-symbianelf* support.
1467 * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
1468 when freestanding. Do not bring names into std:: namespace with
1469 "using" when freestanding. Declare required functions and macros
1471 * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
1473 * libsupc++/del_op.cc: Declare "free" only when freestanding.
1474 * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
1475 (malloc): Declare when freestanding.
1478 (__cxa_allocate_exception): Call malloc, not std::malloc. Likewise
1480 (__cxa_free_exception): Likewise for free.
1481 * libsupc++/new_op.cc: Declare "malloc" when freestanding.
1482 * libsupc++/pure.cc (writestr): Define to nothing when
1484 * libsupc++/vterminate.cc: Do not define anything when
1486 * Makefile.in: Regenerated.
1487 * aclocal.m4: Likewise.
1488 * configure: Likewise.
1489 * include/Makefile.in: Likewise.
1490 * libmath/Makefile.in: Likewise.
1491 * libsupc++/Makefile.in: Likewise.
1492 * po/Makefile.in: Likewise.
1493 * src/Makefile.in: Likewise.
1494 * testsuite/Makefile.in: Likewise.
1496 2004-08-01 Matt Austern <austern@apple.com>
1499 * include/bits/stl_list.h (_M_create_node): Remove unused
1500 zero-argument version.
1501 * include/ext/slist (_M_create_node): Pass two arguments to
1502 allocator's construct() member function.
1503 * testsuite/23_containers/deque/explicit_instantiation.cc: New.
1504 * testsuite/23_containers/list/explicit_instantiation.cc: New.
1505 * testsuite/23_containers/vector/explicit_instantiation.cc: New.
1506 * testsuite/23_containers/map/explicit_instantiation.cc: New.
1507 * testsuite/23_containers/set/explicit_instantiation.cc: New.
1508 * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
1509 * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
1510 * testsuite/ext/hash_set_explicit_instantiation.cc: New.
1511 * testsuite/ext/slist_explicit_instantiation.cc: New.
1513 2004-07-30 Paolo Carlini <pcarlini@suse.de>
1515 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1516 num_get<>::_M_extract_int): In the main parsing loop delay the
1517 life of __q to the actual use point.
1519 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1522 * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
1523 Don't clip the precision passed down to __convert_from_v:
1524 22.2.2.2.2 nowhere says so.
1525 * testsuite/22_locale/num_put/put/char/14220.cc: New.
1526 * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
1528 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1530 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
1532 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1533 Petur Runolfsson <peturr02@ru.is>
1535 PR libstdc++/12658 (continued)
1536 * src/locale_init.cc (locale::locale, locale::global): Use
1537 a single locale_mutex instead of two separate mutexes.
1539 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1542 * include/debug/map.h (insert(_InputIterator, _InputIterator)):
1544 * testsuite/23_containers/map/insert/16813.cc: New.
1546 2004-07-29 Phil Edwards <phil@codesourcery.com>
1548 * docs/html/faq/index.html: Update version references. Make
1549 clear that code from SGI has diverged greatly. Remove references
1550 to library snapshots and what's-new sections.
1551 * docs/html/faq/index.txt: Regenerate.
1553 2004-07-28 Matt Austern <austern@apple.com>
1555 * include/bits/stl_construct.h (_Destroy): New three-argument
1556 overload that takes an allocator argument. Another inline
1557 three-argument overload that takes std::allocator and dispatches
1558 to the two-argument version.
1559 * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
1560 Change return type to void to match uninitialized_fill_n.
1561 (__uninitialized_copy_a_): New function. Like uninitialized_copy
1562 except that it takes an allocator and uses it for construct and
1563 destroy. If the allocator is std::allocator, dispatches to
1565 (__uninitialized_fill_a): Likewise.
1566 (__uninitialized_fill_n_a): Likewise.
1567 (__uninitialized_copy_copy): Give it an allocator argument.
1568 (__uninitialized_fill_copy): Likewise.
1569 (__uninitialized_copy_fill): Likewise.
1570 * include/bits/deque.tcc: Use new forms defined in stl_construct.h
1571 and stl_uninitialized.h. Replace use of single-argument _Construct
1572 and _Destroy with use of allocator's construct and destroy methods.
1573 * include/bits/list.tcc: Likewise.
1574 * include/bits/stl_deque.h: Likewise.
1575 * include/bits/stl_list.h: Likewise.
1576 * include/bits/stl_tree.h: Likewise.
1577 * include/bits/stl_vector.h: Likewise.
1578 * include/bits/vector.tcc: Likewise.
1579 * include/ext/hashtable.h: Use rebind so that allocator_type
1580 has correct type for a container's allocator. Replace use of
1581 single-argument _Construct and _Destroy with use of allocator's
1582 construct and destroy methods.
1583 * include/ext/memory (__uninitialized_copy_n_a): New function.
1584 Like uninitialized_copy_n except that it takes an extra parameter,
1585 an allocator, and uses it for construct and destroy operations.
1586 * include/ext/rope: Use new forms defined in stl_construct.h,
1587 stl_uninitialized.h, and ext/memory. Replace use of single-argument
1588 _Construct and _Destroy with allocator construct and destroy methods.
1589 * include/ext/ropeimpl.h: Likewise.
1590 * include/ext/slist.h: Likewise.
1591 * testsuite/testsuite_allocator.h (check_construct_destroy): New.
1592 * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
1593 * testsuite/23_containers/deque/check_construct_destroy.cc: New.
1594 * testsuite/23_containers/list/check_construct_destroy.cc: New.
1595 * testsuite/23_containers/set/check_construct_destroy.cc: New.
1596 * testsuite/23_containers/vector/check_construct_destroy.cc: New.
1597 * testsuite/ext/hash_check_construct_destroy.cc: New.
1598 * testsuite/ext/slist_check_construct_destroy.cc: New.
1600 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
1602 2003-10-01 Eric Christopher <echristo@redhat.com>
1603 * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
1605 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
1606 * config/cpu/sh/atomicity.h: New. Use movli and movco on SH4a.
1608 2004-07-23 Benjamin Kosnik <bkoz@redhat.com>
1611 * include/bits/locale_facets.tcc: Fix for -Werror.
1613 2004-07-23 Jonathan Wakely <redi@gcc.gnu.org>
1615 * docs/html/debug.html: Say debug mode only available since 3.4.0.
1617 2004-07-21 Benjamin Kosnik <bkoz@redhat.com>
1619 * docs/doxygen/mainpage.html: Clarify links.
1620 * docs/doxygen/stdheader.cc: Add files.
1621 * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
1622 * docs/doxygen/user.cfg.in: New options, wrap.
1624 2004-07-20 Danny Smith <dannysmith@users.sourceforge.net>
1626 * include/c_std/std_cwchar.h (wcsstr): Correct signature.
1628 2004-07-19 Benjamin Kosnik <bkoz@redhat.com>
1631 * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
1633 2004-07-17 Richard Sandiford <rsandifo@redhat.com>
1636 * scripts/create_testsuite_files: Pass -print to find.
1638 2004-07-15 Paolo Carlini <pcarlini@suse.de>
1640 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
1641 * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
1643 2004-07-15 Jakub Jelinek <jakub@redhat.com>
1646 * acinclude.m4 (glibcxx_shared_libgcc): Correct
1647 glibcxx_shared_libgcc test for multilibs.
1648 * configure: Rebuilt.
1650 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1653 * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
1654 the signature to return void, as per 20.4.4.3.
1655 * include/bits/stl_vector.h (vector::vector(size_type,
1656 const value_type&, const allocator_type&), vector::vector(size_type),
1657 vector::_M_initialize_dispatch): Adjust callers.
1658 * include/bits/vector.tcc (vector<>::_M_fill_assign,
1659 vector<>::_M_fill_insert): Likewise.
1660 * testsuite/20_util/memory/16505.cc: New.
1662 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1664 * testsuite/22_locale/locale/cons/12658_thread-1.cc,
1665 12658_thread-2.cc: Use __gnu_test::try_named_locale.
1667 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1669 * docs/html/ext/mt_allocator.html: Add docs for _Tune.
1670 * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
1671 (__mt_alloc::_S_set_options): Same.
1674 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1676 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
1678 * configure: Regenerated.
1680 2004-07-13 Paolo Carlini <pcarlini@suse.de>
1682 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
1683 to 12658_thread-1.cc and xfail.
1684 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
1685 simpler version of 12658_thread-1.cc, still failing on 3_3 and
1686 not failing on 3_4/mainline - both on single processor and
1687 multiprocessor machines.
1689 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
1691 * docs/html/abi.html: Remove non-public qualification.
1693 * include/bits/concurrence.h: Tweak comments.
1695 2004-07-11 Paolo Carlini <pcarlini@suse.de>
1697 Add wchar_t counterparts of the basic_streambbuf<char> tests.
1698 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
1699 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
1701 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
1702 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
1704 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
1705 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
1706 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
1707 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
1708 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
1710 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
1712 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
1714 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
1716 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
1717 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
1719 2004-07-11 Phil Edwards <phil@codesourcery.com>
1721 * acinclude.m4: Cosmetic shell syntax fixes.
1722 * configure.ac: Bring comment inline with reality.
1723 * configure.host: Both of the above. Move 'arm' case to right
1724 place in host_cpu switch.
1725 * aclocal.m4, configure: Regenerate.
1727 2004-07-09 Paolo Carlini <pcarlini@suse.de>
1729 Add wchar_t counterparts of the basic_stringbuf<char> tests.
1730 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
1731 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
1732 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
1733 3599.cc, 9988.cc: Likewise.
1734 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
1736 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
1738 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
1740 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
1742 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
1743 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
1744 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
1745 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
1747 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
1748 9404-1.cc: Likewise.
1749 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
1750 9404-2.cc: Likewise.
1751 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
1753 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
1754 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
1756 2004-07-08 Paolo Carlini <pcarlini@suse.de>
1758 * include/bits/gslice.h: Trivial formatting fixes.
1759 * include/bits/gslice_array.h: Likewise.
1760 * include/bits/indirect_array.h: Likewise.
1761 * include/bits/mask_array.h: Likewise.
1762 * include/bits/slice_array.h: Likewise.
1763 * include/bits/valarray_after.h: Likewise.
1764 * include/bits/valarray_array.h: Likewise.
1765 * include/bits/valarray_before.h: Likewise.
1766 * include/std/std_valarray.h: Likewise.
1768 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
1771 * include/bits/basic_string.h (basic_string::operator=): Revert.
1773 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
1775 * configure.ac (libtool_VERSION): To 6:2:0.
1776 * configure: Regenerated.
1778 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
1780 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
1783 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
1785 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
1787 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
1790 2004-07-07 Paolo Carlini <pcarlini@suse.de>
1793 * include/bits/sstream.tcc (overflow): When reallocating _M_string
1794 use an exponential grow policy.
1795 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
1796 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
1798 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
1801 * crossconfig.m4: Add in bits for djgpp.
1802 * configure: Regenerate.
1804 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
1806 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
1807 instantiation of set and multiset (functor param given as int).
1809 2004-07-04 Paolo Carlini <pcarlini@suse.de>
1811 * include/bits/basic_string.h: Trivial formatting fixes and/or
1812 const-ification of some variables.
1813 * include/bits/deque.tcc: Likewise.
1814 * include/bits/stl_algobase.h: Likewise.
1815 * include/bits/stl_bvector.h: Likewise.
1816 * include/bits/stl_construct.h: Likewise.
1817 * include/bits/stl_deque.h: Likewise.
1818 * include/bits/stl_pair.h: Likewise.
1819 * include/bits/stl_vector.h: Likewise.
1820 * include/bits/vector.tcc: Likewise.
1822 2004-07-04 Paolo Carlini <pcarlini@suse.de>
1824 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
1825 systems with no COMDAT or weak support.
1826 * testsuite/25_algorithms/copy/2.cc: Likewise.
1827 * testsuite/25_algorithms/copy/3.cc: Likewise.
1828 * testsuite/25_algorithms/copy/4.cc: Likewise.
1830 2004-07-03 Paul Brook <paul@codesourcery.com>
1832 * configure.ac: Set ABI_TWEAKS_SRCDIR.
1833 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
1834 setting atomicity_dir. Override type_cpu for arm based targets.
1835 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
1836 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
1837 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
1838 * libsupc++/vec.cc: Ditto.
1839 * config/cpu/arm/cxxabi_tweaks.h: New file.
1840 * config/cpu/generic/cxxabi_tweaks.h: New file.
1841 * */Makefile.in: Regenerate.
1842 * configure: Regenerate.
1844 2004-07-02 Paolo Carlini <pcarlini@suse.de>
1846 * include/bits/type_traits.h (_Is_normal_iterator): Move...
1847 * include/bits/cpp_type_traits.h: ... here, renamed to
1848 __is_normal_iterator and consistent with the other traits.
1849 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
1850 to the struct __copy_normal and three specializations.
1851 (__copy_backward_output_normal_iterator,
1852 __copy_backward_input_normal_iterator): Likewise, convert to
1853 the struct __copy_backward_normal and three specializations.
1854 (copy, copy_backward): Use the latter.
1855 (__copy_aux, __copy_backward_aux): Very minor tweaks.
1857 2004-07-01 Paolo Carlini <pcarlini@suse.de>
1859 * include/bits/stl_algobase.h (__copy_trivial): Remove.
1860 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
1861 __is_trivially_copyable, __are_same and __copy::copy.
1862 (__copy): Rewrite as a class template and two specializations.
1863 (__copy_ni2): Simplify, just call __copy_aux.
1865 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
1867 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
1868 for destination value type != source value type.
1870 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
1871 Per Bothner <per@bothner.com>
1872 Mohan Embar <gnustuff@thisiscool.com>
1875 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
1876 (__glibcxx_mutex): Encapsulate mutex init function into type for
1877 threaded configurations without __GTHREAD_MUTEX_INIT.
1878 (lock::lock): Make device member a reference.
1879 (lock::~lock): Same.
1880 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
1882 * src/allocator.cc: Same.
1884 2004-06-30 Brad Spencer <spencer@infointeractive.com>
1886 * include/ext/mt_allocator.h: Handle allocations at static
1887 initialization that happen before _S_options is (automatically)
1888 constructed; set _S_init even if _M_force_new is true.
1890 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
1892 * config/linker-map.gnu: Revert new exports.
1894 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
1895 Stuart Anderson <anderson@netsweng.com>
1897 * config/linker-map.gnu: Add destructor exports for abstract base
1898 classes to conform to LSB.
1900 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1901 Paolo Carlini <pcarlini@suse.de>
1903 * include/bits/cpp_type_traits.h: Add __is_pointer and
1904 __is_trivially_copyable.
1905 * include/bits/stl_algobase.h (fill, fill_n): Slightly
1906 tweak to use the latter.
1907 (__copy_backward_dispatch): Remove.
1908 (__copy_backward_aux): Rewrite to use __is_pointer and
1909 __is_trivially_copyable and __copy_backward::copy_b.
1910 (__copy_backward): Rewrite as a class template and two
1913 2004-06-30 Paolo Carlini <pcarlini@suse.de>
1915 * testsuite/25_algorithms/copy.cc: Move to...
1916 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
1917 * testsuite/25_algorithms/copy/2.cc: New.
1918 * testsuite/25_algorithms/copy/3.cc: New.
1919 * testsuite/25_algorithms/copy/4.cc: New.
1921 2004-06-29 Paul Brook <paul@codesourcery.com>
1923 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
1924 element size in the cookie.
1926 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1928 * include/bits/cpp_type_traits.h: Move the additions to
1929 namespace __gnu_internal outside of namespace std; trivial
1932 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
1934 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
1935 Revert -Weffc++ changes that defined copy ctory and or assignment
1937 * libsupc++/tinfo.cc (__upcast_result): Same.
1939 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1941 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
1942 the algorithm used to name the categories.
1944 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
1946 * include/Makefile.am: Give a .gch extension to
1947 the PCH files, not only to the directory.
1948 * include/Makefile.in: Regenerate.
1950 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1952 * config/locale/gnu/monetary_members.cc
1953 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
1954 assignments of _M_decimal_point and _M_thousands_sep.
1956 2004-06-27 Paolo Carlini <pcarlini@suse.de>
1958 * docs/html/17_intro/contribute.html: Update some links.
1959 * docs/html/17_intro/porting-howto.html: Likewise.
1960 * docs/html/17_intro/porting-howto.xml: Likewise.
1961 * docs/html/18_support/howto.html: Likewise.
1962 * docs/html/21_strings/howto.html: Likewise.
1963 * docs/html/27_io/howto.html: Likewise.
1964 * docs/html/configopts.html: Likewise.
1965 * docs/html/ext/howto.html: Likewise.
1966 * docs/html/faq/index.html: Likewise.
1967 * docs/html/install.html: Don't mention 2.x compilers.
1969 2004-06-27 Paolo Carlini <pcarlini@suse.de>
1971 * include/ext/rope: Trivial formatting fixes.
1972 * include/ext/ropeimpl.h: Likewise.
1974 2004-06-26 Paolo Carlini <pcarlini@suse.de>
1977 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
1978 availability of strto(u)ll, not used anymore in the iostreams.
1979 * configure: Regenerate.
1981 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
1984 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
1986 * configure: Regenerate.
1988 2004-06-25 Paul Brook <paul@codesourcery.com>
1990 * libsupc++/cxxabi.h: Define __ARM_EABI__
1992 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
1994 2004-06-25 Paul Brook <paul@codesourcery.com>
1996 * include/bits/concurrence.h: Still create mutex object when
1999 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2001 * include/bits/stl_algobase.h (fill, fill_n): Revert last
2002 change: actually we need to copy construct an object of type
2003 _Tp, not of type iterator_traits<>::value_type, therefore the
2006 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2008 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
2009 dispatch: use iterator_traits<>::value_type, not _Tp.
2011 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2013 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
2014 * testsuite/25_algorithms/fill/2.cc: Likewise.
2016 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
2017 Paolo Carlini <pcarlini@suse.de>
2019 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
2020 for fill and fill_n, respectively: when copying is cheap, use a
2021 temporary to avoid a memory read in each iteration.
2023 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2025 * testsuite/25_algorithms/fill/1.cc: New.
2026 * testsuite/25_algorithms/fill/2.cc: Likewise.
2028 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
2030 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
2031 Remove copy constructor and assignment operator.
2033 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
2035 * include/bits/concurrence.h (__gnu_cxx::lock): New.
2036 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
2037 (__pool_base::_M_get_mutex): New.
2038 * include/bits/allocator.h: Tweak.
2039 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
2040 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
2041 * include/bits/stl_threads.h: Remove.
2042 * include/Makefile.am: Also here.
2043 * include/Makefile.in: Regenerate.
2045 * src/locale_init.cc: Use __gnu_cxx::lock.
2047 * src/allocator.cc: Move all instantiations...
2048 * src/allocator-inst.cc: ...here.
2050 2004-06-23 Andrew Pinski <apinski@apple.com>
2052 * linkage.m4: Remove check for libmx.
2053 * configure: Regenerate.
2055 2004-06-23 Paolo Carlini <pcarlini@suse.de>
2058 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
2059 Don't require the _DefaultConstructibleConcept.
2060 (struct _ForwardIteratorConcept): Require it here.
2062 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
2064 * include/bits/istream.tcc (getline): Make sure arguments passed
2065 to min/max have the same type.
2066 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
2067 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
2069 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
2071 * docs/html/abi.html: Update links.
2073 2004-06-22 Paolo Carlini <pcarlini@suse.de>
2075 * testsuite/26_numerics/complex_inserters_extractors.cc,
2076 complex_value.cc, buggy_complex.cc: Move to...
2077 * testsuite/26_numerics/complex/: ... here.
2078 * testsuite/26_numerics/c99_classification_macros_c++.cc,
2079 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
2080 fabs_inline.cc: Move to...
2081 * testsuite/26_numerics/cmath/: ... here.
2082 * testsuite/26_numerics/binary_closure.cc, slice.cc,
2083 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
2084 valarray_name_lookup.cc, valarray_operators.cc,
2085 valarray_subset_assignment.cc: Move to...
2086 * testsuite/26_numerics/valarray/: ... here (new dir).
2087 * testsuite/26_numerics/sum_diff.cc: Move to...
2088 * testsuite/26_numerics/numeric/: ... here (new dir).
2090 2004-06-22 Paolo Carlini <pcarlini@suse.de>
2092 * include/std/std_istream.h (ignore(streamsize __n = 1,
2093 int_type __delim = traits_type::eof())): Split into...
2094 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2095 int_type __delim)): The first two can be much more simpler
2096 and efficient than the fully general case; also, the last
2097 two can take advantage of the same mechanism already used
2099 * include/bits/istream.tcc (ignore(streamsize __n = 1,
2100 int_type __delim = traits_type::eof()): Remove.
2101 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2102 int_type __delim)): New.
2104 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
2106 * config/linker-map.gnu: Use wildcards for
2107 __basic_file::sys_open(FILE*, _Ios_Openmode).
2109 2004-06-20 Paolo Carlini <pcarlini@suse.de>
2111 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
2113 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2115 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
2116 the alignment requested.
2117 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
2118 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
2119 (__mt_alloc<>::deallocate): Likewise.
2121 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2124 * include/debug/safe_base.h
2125 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
2126 _Safe_sequence_base::operator=): Provide definitions.
2127 * testsuite/23_containers/bitset/cons/16020.cc: New.
2129 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
2131 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
2132 (__pool_base): Remove unused template parameter. Add
2133 protected. Move lock data into __pool_base::_Lock. Remove static
2134 on member functions.
2135 (__pool_base::_M_get_free_list): New.
2136 (__pool_alloc): Move _S_force new here.
2137 * src/allocator.cc: Move out of line __pool_base definitions here.
2138 * config/linker-map.gnu: Export bits from __pool_base.
2140 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2142 * config/locale/gnu/numeric_members.cc
2143 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
2144 assignments of _M_decimal_point and _M_thousands_sep.
2145 * config/locale/gnu/time_members.cc
2146 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
2147 and reformat assignments of date and time fields.
2149 2004-06-16 Paolo Carlini <pcarlini@suse.de>
2151 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
2152 to use _Data_allocate.
2153 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
2154 (rope<>::_S_substring): Likewise.
2155 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
2156 (rope<>::c_str()): Likewise.
2157 (rope<>::replace_with_c_str()): Likewise.
2159 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
2160 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
2162 (_Rope_iterator_base<>::_S_setcache): Likewise.
2163 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
2164 (rope<>::_S_substring): Likewise.
2165 (rope<>::_S_dump): Likewise.
2166 (rope<>::_S_fetch_ptr): Likewise.
2167 (rope<>::_S_compare): Likewise.
2168 (rope<>::replace_with_c_str()): Likewise.
2170 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
2171 * testsuite/ext/rope/2.cc: New.
2173 2004-06-16 Paolo Carlini <pcarlini@suse.de>
2174 Matt Austern <austern@apple.com>
2176 * testsuite/ext/rope/3.cc: New.
2178 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
2180 * acinclude.m4: Remove useless multilib configury.
2181 * Makefile.am: Remove useless multilib rules.
2182 * aclocal.m4: Regenerate.
2183 * Makefile.in: Regenerate.
2184 * configure: Regenerate.
2186 2004-06-15 Paolo Carlini <pcarlini@suse.de>
2188 * include/ext/hashtable.h: Trivial formatting fixes.
2189 * include/ext/rb_tree: Likewise.
2191 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2193 * include/ext/hash_map: Trivial formatting fixes.
2194 * include/ext/hash_set: Likewise.
2195 * include/ext/memory: Likewise.
2196 * include/ext/numeric: Likewise.
2198 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
2200 * Makefile.in: Regenerate with automake 1.8.5.
2202 * include/Makefile.in: Same.
2203 * libmath/Makefile.in: Same.
2204 * libsupc++/Makefile.in: Same.
2205 * po/Makefile.in: Same.
2206 * src/Makefile.in: Same.
2207 * testsuite/Makefile.in: Same.
2209 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2211 * include/ext/slist: Trivial formatting fixes.
2213 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2215 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
2216 Don't use the 'magic number' 10 in the computation of __minlen;
2217 never access __name past __minlen; in the loop over __i3, don't
2218 decrease __nmatches and increase __i3 at once, only either of
2221 2004-06-13 Paolo Carlini <pcarlini@suse.de>
2223 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
2224 time_get<>::do_get_date): Use only once _M_extract_via_format,
2225 instead of going through "%X"/"%x" and calling it two times
2228 2004-06-12 Paolo Carlini <pcarlini@suse.de>
2230 * include/ext/algorithm: Trivial formatting fixes.
2231 * include/ext/functional: Likewise.
2232 * include/ext/hash_fun.h: Likewise.
2233 * include/ext/iterator: Likewise.
2235 2004-06-12 Paolo Carlini <pcarlini@suse.de>
2237 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
2238 size_type)): Reimplement using std::search.
2239 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
2241 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
2243 * testsuite/performance/21_strings/string_find.cc: New.
2245 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
2247 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
2249 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
2251 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
2252 this function return a value.
2254 2004-06-09 Paolo Carlini <pcarlini@suse.de>
2257 * include/bits/stl_deque.h: Consistently with stl_set.h, define
2258 pointer as allocator's pointer, likewise for reference,
2259 const_pointer, and const_reference.
2260 * include/bits/stl_list.h: Likewise.
2261 * include/bits/stl_map.h: Likewise.
2262 * include/bits/stl_multimap.h: Likewise.
2263 * include/bits/stl_vector.h: Likewise.
2265 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
2267 * crossconfig.m4: Remove signbit, signbitf, signbitl.
2268 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
2269 builtin math functions instead of AC_DEFINE_UNQUOTED.
2270 * configure: Regenerate.
2272 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
2274 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
2275 * docs/doxygen/mainpage.html: Remove links.
2277 2004-06-08 Jason Merrill <jason@redhat.com>
2279 * config/linker-map.gnu: Use wildcards for
2280 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
2282 2004-06-08 Paolo Carlini <pcarlini@suse.de>
2284 * include/ext/pool_allocator.h: Convert to a global free-list,
2285 as per the original SGI/HP design: move the implementation
2286 details to struct __pool_base, from which __pool_alloc derives.
2287 * src/allocator.cc: Instantiate __pool_base.
2289 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
2290 Paolo Carlini <pcarlini@suse.de>
2292 * testsuite/testsuite_performance.h
2293 (resource_counter::allocated_memory): Make it return the right
2294 number of bytes requested by the allocators/application. This is
2295 the sbrk+mmaped memory.
2297 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
2299 * include/std/std_complex.h (log): Tidy.
2301 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
2303 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
2304 * testsuite/testsuite_abi.cc: Same.
2305 * configure.ac (libtool_VERSION): Bump to 6:1:0.
2306 * configure: Regenerate.
2307 * aclocal.m4: Regenerate.
2309 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2311 * include/std/std_complex.h (complex<_Tp>): Properly indent
2313 (complex<>::__rep): New.
2314 (__complex_abs): New. Dispatch to built-ins.
2316 (__complex_arg): New. Dispatch to built-ins.
2318 (__complex_cos): New. Dispatch to built-ins.
2320 (__complex_cosh): New. Dispatch to built-ins.
2322 (__complex_exp): New. Dispatch to built-ins.
2324 (__complex_log): New. Dispatch to built-ins.
2326 (__complex_sin): New. Dispatch to built-ins.
2328 (__complex_sinh): New. Dispatch to built-ins.
2330 (__complex_sqrt): New. Dispatch to built-ins.
2332 (__complex_tan): New. Dispatch to built-ins.
2334 (__complex_tanh): New. Dispatch to built-ins.
2336 (__complex_pow): New. Dispatch to built-ins.
2339 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
2340 Benjamin Kosnik <bkoz@redhat.com>
2343 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
2344 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
2345 * config/io/basic_file_stdio.cc (__basic_file::file): New.
2346 * config/io/basic_file_stdio.h: Define.
2348 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
2351 * docs/html/documentation.html: Update doxygen links for 3.4.0.
2353 2004-05-27 Jan Beulich <jbeulich@novell.com>
2355 * scripts/create_testsuite_files: Tweak.
2357 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
2360 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
2361 bits to do the same thing.
2363 2004-05-24 Paolo Carlini <pcarlini@suse.de>
2365 * include/bits/istream.tcc (ignore): Correctly deal with
2366 n == numeric_limits<streamsize>::max().
2367 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
2369 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
2370 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
2371 __n == numeric_limits<>::min().
2373 * include/bits/istream.tcc: Minor tweaks.
2375 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2377 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2379 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2381 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2383 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2385 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2388 Fixups for -Weffc++.
2389 * include/bits/basic_string.h (basic_string::operator=): Return
2390 pointer to this instead of result of assign. Although redundant,
2391 this doesn't impact resultant codegen.
2393 * include/bits/locale_facets.h (__numpunct_cache): Declare
2394 assignment opxserator and copy constructor private.
2395 (__timepunct_cache): Same.
2396 (__moneypunct_cache): Same.
2397 (collate): Use member initialization list for _M_c_locale_collate.
2398 * config/locale/gnu/messages_members.h: Same.
2399 * config/locale/gnu/time_members.h (__timepunct): Same.
2400 * src/codecvt.cc: Use member initialization list to initialize
2401 _M_c_locale_codecvt.
2402 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
2403 * config/os/gnu-linux/ctype_noninline.h: Same.
2404 * src/locale.cc (_Impl): Same.
2405 * src/locale_init.cc: Same.
2406 * src/localename.cc: Same.
2408 * include/bits/basic_ios.h (basic_ios): Complete member
2409 initialization list.
2410 * include/bits/istream.tcc (basic_istream::sentry): Same.
2411 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
2412 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
2413 _M_pback to member initialization list.
2414 * include/std/std_streambuf.h: Same.
2415 * include/std/std_sstream.h: Same, for _M_mode.
2416 * src/ios.cc (ios_base): Same.
2418 * include/ext/rope: Make derived classes match exception
2420 specifications. Add copy constructors and assignment operators.
2422 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
2423 constructor and assignment operator protected.
2424 (_Safe_iterator_base): Same.
2425 * include/debug/formatter.h (_Error_formatter): Define copy
2426 constructor and assignment operator.
2428 * include/backward/strstream: Declare assignment operator and copy
2429 constructor private.
2431 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2433 * testsuite/testsuite_hooks.h (func_callback): Declare copy
2434 constructor and assignment operator private.
2435 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
2436 exception specifications of base class.
2437 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
2438 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
2439 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2441 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2443 * libsupc++/cxxabi.h: Remove duplicated and useless public and
2444 private keywords in class declarations. Format. Use
2445 stddef.h. Expose declarations to "C" compilation.
2446 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
2447 assignment operator.
2448 (__dyncast_result): Same.
2449 * libsupc++/vec.cc (uncatch_exception): Same, use member
2450 initialization list.
2452 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2454 * testsuite/abi_check.cc: Add unistd.h.
2456 2004-05-22 Paolo Carlini <pcarlini@suse.de>
2459 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
2460 __int_to_char(unsigned long long)): Showpos is not relevant
2462 * testsuite/22_locale/num_put/put/char/15565.cc: New.
2463 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
2465 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
2467 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
2468 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
2469 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2470 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
2471 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
2472 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
2474 2004-05-21 Matthias Klose <doko@debian.org>
2476 * docs/doxygen/run_doxygen: Bump required version.
2478 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
2480 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
2481 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
2483 2004-05-21 Paolo Carlini <pcarlini@suse.de>
2485 * include/bits/istream.tcc (ignore): Remove redundant line.
2486 (readsome): Tidy, closely following 27.6.1.3, p30.
2488 2004-05-20 Paolo Carlini <pcarlini@suse.de>
2490 * include/bits/istream.tcc (operator>>(basic_istream<>&,
2491 basic_string<>&)): Use a temporary buffer, thus avoiding
2492 reallocation for common case.
2493 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2495 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2498 * include/bits/istream.tcc: Const-ification of a few variables.
2500 * include/bits/ostream.tcc: Trivial formatting fixes and
2501 const-ification of some variables.
2503 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
2507 * docs/doxygen/Intro.3: Remove Allocators.3.
2508 Add new extension headers, extension namespace list.
2509 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
2510 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
2511 __gnu_debug::. Remove __policy_ renames.
2512 * docs/doxygen/guide.html: Add dot note.
2513 * docs/doxygen/stdheader.cc: Edit, add files.
2514 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
2516 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2518 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
2520 2004-05-18 Jan Beulich <jbeulich@novell.com>
2523 * scripts/create_testsuite_files: Also find source files through
2526 2004-05-18 Jan Beulich <jbeulich@novell.com>
2529 * testsuite/lib/libstdc++.exp: Make test files writable.
2531 2004-05-18 Paolo Carlini <pcarlini@suse.de>
2533 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
2536 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
2538 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
2539 allocation loop which removes blocks from the global free list
2540 from O(N) to O(1) when the required blocks are <= the number
2543 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2545 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
2547 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
2549 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
2550 * testsuite/23_containers/deque/14340.cc: New.
2551 * testsuite/23_containers/list/14340.cc: New.
2552 * testsuite/23_containers/map/14340.cc: New.
2553 * testsuite/23_containers/multimap/14340.cc: New.
2554 * testsuite/23_containers/multiset/14340.cc: New.
2555 * testsuite/23_containers/set/14340.cc: New.
2556 * testsuite/23_containers/vector/14340.cc: New.
2558 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
2561 * include/debug/safe_iterator.h (_Safe_iterator converting
2562 constructor): Only allow declaration to instantiate when the
2563 incoming _Safe_iterator has exactly the right iterator type.
2565 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
2567 * include/bits/boost_concept_check.h: Fix old attribute syntax.
2568 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
2569 to pass concept-checks.
2570 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2571 * testsuite/23_containers/set/modifiers/swap.cc: Same.
2572 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2574 2004-05-16 Paolo Carlini <pcarlini@suse.de>
2576 * include/std/std_bitset.h: Minor formatting fixes.
2578 2004-05-16 Paolo Carlini <pcarlini@suse.de>
2580 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2581 Consistently update __bin._M_free[0].
2582 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
2583 __bin._M_free[0] to simplify the while loop (i.e., the number
2584 of iterations becomes known at the outset).
2586 2004-05-15 Paolo Carlini <pcarlini@suse.de>
2588 * include/std/std_bitset.h: Trivial formatting fixes.
2590 2004-05-14 Paolo Carlini <pcarlini@suse.de>
2591 Ivan Godard <igodard@pacbell.net>
2594 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
2595 * testsuite/23_containers/bitset/ext/15361.cc: New.
2597 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2600 * crossconfig.m4: Add C99 math bits for linux crosses.
2601 * configure: Regenerate.
2603 2004-05-13 Simon Marshall <simon.marshall@misys.com>
2604 Benjamin Kosnik <bkoz@redhat.com>
2607 * include/bits/locale_facets.h: Fix for -fno-for-scope.
2608 * include/debug/safe_sequence.h: Same.
2609 * include/debug/safe_iterator.tcc: Same.
2610 * src/debug.cc: Same.
2611 * src/locale.cc: Same.
2612 * src/locale_init.cc: Same.
2613 * src/localename.cc: Same.
2614 * config/locale/gnu/ctype_members.cc: Same.
2615 * config/locale/gnu/numeric_members.cc: Same.
2616 * testsuite/testsuite_abi.cc: Same.
2617 * testsuite/testsuite_hooks.cc: Same.
2619 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
2621 * docs/html/abi.html: Document effect of -fabi-version on value
2622 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
2625 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2628 * docs/html/faq/index.html: Update docs for libsupc++ usage.
2630 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2633 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
2635 (_GLIBCXX_mutex_address): Same.
2636 (_GLIBCXX_once): Same.
2637 (_GLIBCXX_mutex_init): Same.
2638 (_GLIBCXX_mutex_address_init): Same.
2640 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2642 * docs/html/abi.html: New.
2643 * docs/html/abi.txt: Remove.
2644 * docs/html/documentation.html: Add link.
2645 * testsuite/Makefile.am: Add files.
2646 * testsuite/Makefile.in: Regenerated.
2647 * testsuite/abi_check.cc: Move and modify code into...
2648 * testsuite/testsuite_abi.cc: Add.
2649 * testsuite/testsuite_abi.h: Add.
2651 * docs/html/17_intro/TODO: Update.
2652 * include/bits/stl_pair.h: Format.
2654 2004-05-06 Matthias Klose <doko@debian.org>
2656 * include/backward/iterator.h: Add GPL copyright info,
2657 with exception clause.
2658 * include/bits/boost_concept_check.h: Likewise.
2660 * libsupc++/tinfo.h: Likewise.
2661 * po/string_literals.cc: Likewise.
2663 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
2665 * acinclude.m4: Replace -W with more speaking -Wextra.
2666 * configure: Rebuilt.
2668 2004-05-03 Paolo Carlini <pcarlini@suse.de>
2670 Optimize locale::_M_impl->_M_names for the most common cases:
2671 !_M_names[0] means unnamed; !_M_names[1] means all the categories
2672 the same name (_M_names[0] && _M_names[1] means that the full set
2673 of _M_names must be processed, the general case).
2674 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
2675 Tweak, saving work when !_M_names[1].
2676 (locale::locale(const locale&, _Facet*): Simplify: now just setting
2677 _M_names[0] = 0 means unnamed.
2678 * src/locale.cc (locale::operator==): Deal first with the common,
2679 easy cases, otherwise fall back to locale::name().
2680 (locale::name()): Tweak, if !_M_names[0] just return "*".
2681 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
2682 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
2683 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
2684 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
2685 Simplify when !std::strchr, just updating _M_names[0]; clean up.
2686 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
2687 for the general case (full set of names), then do the usual work;
2690 * src/locale.cc (locale::name()): Reserve space in __ret.
2691 * src/locale_init.cc (locale::global(const locale&)): Save
2692 the name in a temporary.
2693 * src/localename.cc (locale::locale(const char*)): Reserve space
2696 2004-04-29 Paolo Carlini <pcarlini@suse.de>
2698 * src/locale.cc (locale::operator==): Always avoid constructing
2699 locale::name(), directly compare pairs of _M_names.
2701 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2703 * include/bits/istream.tcc: Fix comment.
2705 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2707 * include/bits/stl_vector.h: Trivial formatting fixes.
2708 * include/bits/vector.tcc: Likewise.
2710 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2712 PR libstdc++/15002 (continued again)
2713 * include/bits/istream.tcc (getline(basic_istream<>&,
2714 basic_string<>&, _CharT)): Use a temporary buffer, thus
2715 avoiding reallocation for common case.
2717 * include/bits/basic_string.tcc (_S_construct(_InIterator,
2718 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
2719 of temporary buffer to a power of two.
2721 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
2723 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2725 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2727 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2729 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2731 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2732 Petur Runolfsson <peturr02@ru.is>
2734 PR libstdc++/15002 (continued)
2735 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
2736 streamsize, char_type)): Use traits::find/copy in a loop to speed
2737 up greatly the function in the common case (I/O buffer size >> 1).
2739 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2741 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
2743 * include/bits/istream.tcc (getline(basic_istream<>&,
2744 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
2745 of sbumpc(), consistently with the other functions, thus also
2746 dealing correctly with the case of exceeded string::max_size().
2748 2004-04-24 Matthias Klose <doko@debian.org>
2750 Jonathan Wakely <cow@compsoc.man.ac.uk>
2751 * docs/html/configopts.html: Fix reference to allocator config option.
2753 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
2755 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
2756 * configure: Regenerate.
2758 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
2760 PR libstdc++/15047, libstdc++/11610
2761 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
2762 (libstdc++_init): Don't pass outdir to v3-copy-files.
2764 2004-04-21 Paolo Carlini <pcarlini@suse.de>
2766 * include/bits/deque.tcc: Trivial formatting fixes.
2767 * include/bits/stl_deque.h: Likewise.
2768 * include/bits/stl_list.h: Likewise.
2769 * include/bits/stl_tree.h: Likewise.
2771 2004-04-21 Paolo Carlini <pcarlini@suse.de>
2772 Andrew Pinski <pinskia@physics.uc.edu>
2774 * include/bits/basic_string.tcc (_M_mutate): Don't compute
2775 __src unnecessarily.
2777 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
2779 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
2780 Clarify assertion, set test variable to false before assert.
2781 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
2782 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
2783 * testsuite/27_io/ios_base/storage/2.cc: Same.
2785 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
2787 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
2788 * testsuite/27_io/fpos/14320-3.cc: Same.
2790 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
2791 * testsuite/27_io/fpos/1.cc: Same.
2792 * testsuite/27_io/basic_stringstream/2.cc: Same.
2793 * testsuite/27_io/basic_stringbuf/4.cc: Same.
2794 * testsuite/27_io/basic_stringbuf/1.cc: Same.
2795 * testsuite/27_io/basic_stringbuf/2.cc: Same.
2796 * testsuite/27_io/basic_streambuf/2.cc: Same.
2797 * testsuite/27_io/basic_ostringstream/2.cc: Same.
2798 * testsuite/27_io/basic_ostream/2.cc: Same.
2799 * testsuite/27_io/basic_ofstream/2.cc: Same.
2800 * testsuite/27_io/basic_istringstream/2.cc: Same.
2801 * testsuite/27_io/basic_istream/2.cc: Same.
2802 * testsuite/27_io/basic_iostream/2.cc: Same.
2803 * testsuite/27_io/basic_ios/2.cc: Same.
2804 * testsuite/27_io/basic_ifstream/2.cc: Same.
2805 * testsuite/27_io/basic_fstream/2.cc: Same.
2806 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
2808 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
2809 unsigned against zero.
2810 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
2811 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
2813 * testsuite/18_support/new_delete_placement.cc: Initialize
2814 variables before first use.
2815 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
2816 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
2817 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
2818 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
2820 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
2821 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
2823 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
2824 * testsuite/27_io/types/2.cc: Same.
2826 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
2828 * testsuite/27_io/fpos/14775.cc: Same.
2830 2004-04-19 Paolo Carlini <pcarlini@suse.de>
2832 PR libstdc++/15002 (partial)
2833 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2834 Special case __n2 == 1, not calling traits_type::assign/copy.
2836 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
2838 * include/bits/stl_bvector.h: Use _M_impl._M_start.
2840 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
2842 * include/bits/c++config (_GLIBCXX_STD): New.
2843 * src/list.cc: Use it.
2844 * include/std/std_bitset.h: Same.
2845 * include/bits/vector.tcc: Same.
2846 * include/bits/stl_set.h: Same.
2847 * include/bits/stl_multiset.h: Same.
2848 * include/bits/stl_multimap.h: Same.
2849 * include/bits/stl_map.h: Same.
2850 * include/bits/stl_list.h: Same.
2851 * include/bits/stl_vector.h: Same.
2852 * include/bits/stl_bvector.h: Same.
2853 * include/bits/stl_deque.h: Same.
2854 * include/bits/deque.tcc: Same.
2855 * include/bits/list.tcc: Same.
2856 * include/debug/vector: Same.
2857 * include/debug/set.h: Same.
2858 * include/debug/multiset.h: Same.
2859 * include/debug/multimap.h: Same.
2860 * include/debug/map.h: Same.
2861 * include/debug/list: Same.
2862 * include/debug/deque: Same.
2863 * include/debug/bitset: Same.
2864 * include/debug/formatter.h (__gnu_debug): Remove using directive.
2865 Add using declaration for std::type_info.
2866 * include/debug/safe_iterator.h: Add using declaration for
2867 std::iterator_traits and std::pair.
2868 * src/debug_list.cc: New.
2869 * src/Makefile.am: Add debug_list.cc.
2870 * src/Makefile.in: Regenerate.
2871 * config/linker-map.gnu: Add _List_node_base exports for std and
2874 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
2875 idiom that other containers use.
2876 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2878 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2881 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
2883 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
2884 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
2886 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2888 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
2890 * config.h.in: Regenerate.
2892 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2894 * config/locale/generic/monetary_members.cc
2895 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
2896 btowc unnecessarily, just cast to wchar_t (the concerned chars
2897 all belong to the basic character set).
2898 * config/locale/generic/numeric_members.cc
2899 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2900 * config/locale/gnu/monetary_members.cc
2901 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
2902 * config/locale/gnu/numeric_members.cc
2903 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2905 2004-04-15 Paolo Carlini <pcarlini@suse.de>
2907 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
2908 avoid constructing unnecessarily this->name().
2910 2004-04-14 Zack Weinberg <zack@codesourcery.com>
2912 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
2913 Change definition of CXX to use $(shell) instead of backticks.
2914 * testsuite/Makefile.in: Regenerate.
2916 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
2918 * testsuite/performance/20_util/allocator/list_sort_search.cc:
2919 Minor formatting fixes.
2920 * testsuite/performance/20_util/allocator/map_mt_find.cc:
2923 2004-04-12 Paolo Carlini <pcarlini@suse.de>
2925 * config/locale/gnu/numeric_members.cc
2926 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
2927 in __uselocale, since btowc is called for chars belonging to
2928 the basic character set.
2930 2004-04-09 Paolo Carlini <pcarlini@suse.de>
2932 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
2933 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
2934 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
2935 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
2936 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
2937 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
2938 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
2939 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
2940 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
2941 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
2942 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
2943 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
2944 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
2945 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
2946 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
2947 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
2948 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
2950 2004-04-07 Paolo Carlini <pcarlini@suse.de>
2952 * config/locale/generic/time_members.cc
2953 (__timepunct<char>::_M_initialize_timepunct,
2954 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
2955 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
2956 * config/locale/gnu/time_members.cc
2957 (__timepunct<char>::_M_initialize_timepunct,
2958 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
2959 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
2960 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
2962 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
2963 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
2964 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
2965 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
2966 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
2967 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
2968 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
2969 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
2970 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
2971 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
2972 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
2973 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
2974 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
2975 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
2976 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
2977 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
2978 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
2979 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
2980 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
2981 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
2982 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
2983 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
2984 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
2985 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
2986 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
2987 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
2988 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
2989 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
2990 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
2991 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
2992 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
2993 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
2994 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
2995 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
2996 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
2997 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
2999 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
3001 2004-04-07 Paolo Carlini <pcarlini@suse.de>
3003 * config/locale/gnu/monetary_members.cc
3004 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
3005 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
3006 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
3007 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
3008 * config/locale/gnu/numeric_members.cc
3009 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
3010 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
3012 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
3014 Fixups for EDG front end.
3015 * include/ext/rope: Instead of non-existent function
3016 _Data_allocate, use allocator's allocate. Use this.
3017 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
3018 enumerations from _Rope_RopeRep here.
3019 * include/ext/ropeimpl.h: Same.
3020 * src/ext-inst.cc (_S_min_len): Fix up definition.
3022 * config/locale/gnu/ctype_members.cc: Qualify base class members
3024 * config/locale/generic/ctype_members.cc: Same.
3025 * config/locale/gnu/messages_members.h: Same.
3026 * config/locale/generic/messages_members.h: Same.
3027 * src/ctype.cc: Same.
3028 * include/bits/codecvt.h: Same.
3030 * include/bits/boost_concept_check.h: Declare.
3031 (__error_type_must_be_an_unsigned_integer_type): Remove this.
3032 (__error_type_must_be_an_integer_type): Remove this.
3033 (__error_type_must_be_a_signed_integer_type): Remove this.
3035 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
3037 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
3038 specification to definition.
3039 (__cxa_allocate_exception): Same.
3040 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
3041 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
3042 (__cxa_get_globals): Same.
3044 * libsupc++/del_op.cc: Add comment about freestanding.
3046 2004-04-05 Paolo Carlini <pcarlini@suse.de>
3048 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3049 The critical section is actually very small, only two assignments.
3051 2004-04-04 Paolo Carlini <pcarlini@suse.de>
3052 Petur Runolfsson <peturr02@ru.is>
3054 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
3055 adapted from libstdc++/11378.
3057 2004-04-03 Paolo Carlini <pcarlini@suse.de>
3059 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
3060 some duplicated code.
3061 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
3062 in the single threaded case.
3063 * testsuite/performance/20_util/allocator/list_sort_search.cc:
3064 Reorder and renumber the tests consistently with the other testfiles.
3065 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3066 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3067 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3069 2004-04-02 Paolo Carlini <pcarlini@suse.de>
3071 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3072 Rearrange arithmetic to avoid computing two divisions at
3075 2004-04-01 Paolo Carlini <pcarlini@suse.de>
3077 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
3078 Streamline the second half, wrapping it in a single
3079 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
3080 conditionals inside loops.
3082 2004-04-01 Paolo Carlini <pcarlini@suse.de>
3085 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
3086 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
3087 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
3088 to _GLIBCXX_RES_LIMITS.
3089 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
3091 * testsuite/testsuite_hooks.h: Declare set_file_limit.
3092 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
3093 and setrlimit(RLIMIT_FSIZE).
3094 * testsuite/27_io/fpos/14775.cc: New.
3095 * config.h.in: Regenerate.
3096 * configure: Likewise.
3098 2004-03-31 Paolo Carlini <pcarlini@suse.de>
3100 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
3101 In v3 uses of sscanf, the special floating-point numbers INF,
3102 INFINITY, etc., cannot occur in input, therefore, if the latter
3103 is too large, ERANGE is always stored in errno, no need of finitel.
3105 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
3108 * include/bits/stl_tree.h: Adjust initialization list order.
3110 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
3112 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
3114 2004-03-29 Paolo Carlini <pcarlini@suse.de>
3116 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
3117 on allocator behavior, the memory pointed by data2 may well be not
3120 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
3123 * include/bits/basic_string.tcc
3124 (basic_string::basic_string(const basic_string&)): Pass to
3125 _Rep::_M_grab the actual allocator of the string being constructed
3126 not the default constructed one.
3128 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
3131 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
3132 (__enc_traits::_M_destroy): New.
3133 (__enc_traits::~__enc_traits): Use it.
3134 (__enc_traits::operator=): Use _M_destroy, _M_init.
3135 (__enc_traits::__enc_traits): Same.
3137 2004-03-27 Petur Runolfsson <peturr02@ru.is>
3139 * testsuite/ext/enc_filebuf/char/13598.cc: New.
3141 2004-03-27 Paolo Carlini <pcarlini@suse.de>
3143 * include/ext/mt_allocator.h: Uglify consistently names of
3144 variables, members and classes; tidy.
3146 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
3148 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3149 Deallocation loop rewrote.
3151 2004-03-26 Paolo Carlini <pcarlini@suse.de>
3153 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3154 __mt_alloc<>::deallocate): Protect two instances of
3155 block->thread_id with __GTHREADS.
3157 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
3159 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
3160 default argument in constructors.
3161 (_Rb_tree::_M_empty_initialize): Remove.
3163 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
3165 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
3166 * testsuite/23_containers/set/operators/1_neg.cc: Same.
3168 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3170 * include/bits/cpp_type_traits.h: Changed __is_pod
3171 completely. Now, it does not use any of the previous type_traits
3172 to detect the pod types, and it also detects function pointers as
3175 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
3176 which encapsulates the internal implementation of an rb_tree. Made
3177 the allocator a base class of this class instead of the rb_tree,
3178 which was not conforming. This _Rb_tree_impl class is also
3179 specialized on whether the _Compare parameter is a POD type or
3180 not. If so, then it maintains the comparison function as a data
3181 member, otherwise it makes the _Compare parameter a base class of
3182 itself. Also, _M_key_compare is now a function instead of a data
3183 member, so that the above trick can work properly. Delegated the
3184 initialization of the other data members to this newly created
3185 class. Also, now other member functions of rb_tree must refer to
3186 _M_key_compare as _M_impl._M_key_compare(). The other data members
3187 (*) can be referenced to as _M_impl.(*), where
3188 (*) includes _M_header, and _M_node_count.
3190 2004-03-25 Paolo Carlini <pcarlini@suse.de>
3192 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
3193 Add _M_min_bin, the size in bytes of the smallest bin.
3194 (__mt_alloc<>::tune()): Tweak accordingly.
3195 (__mt_alloc<>::tune(size_t, ...)): Likewise.
3196 (__mt_alloc<>::block_record): Change to a union: members next
3197 and thread_id are never used at the same time.
3198 (__mt_alloc<>::allocate): Update consistently.
3199 (__mt_alloc<>::deallocate): Likewise.
3200 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
3201 _S_bin_size for the configurable _M_min_size.
3203 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3205 * include/bits/stl_list.h: Created a _List_impl class and made it
3206 derive from the allocator, instead of the list deriving from the
3207 allocator class, which was not conformant. Changed all references
3208 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
3209 as above (changed all references to the concerned variables).
3211 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3213 * include/bits/stl_deque.h: Created a _Deque_impl class and made
3214 it derive from the allocator, instead of the deque deriving from
3215 the allocator class, which was not conformant. Changed all
3216 references to the _M_start, _M_finish, _M_map, and _M_map_size to
3218 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
3219 qualification in 2 places where it was missing.
3220 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
3222 * include/bits/deque.tcc: Same as above (changed all references to
3223 the concerned variables).
3225 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3227 * include/bits/stl_vector.h: Created a _Vector_impl class and made
3228 it derive from the allocator, instead of the _Vector_base class,
3229 deriving from the allocator which was not conformant. Changed all
3230 references to the _M_start, _M_finish, and _M_end_of_storage to
3232 * include/bits/vector.tcc: Same as above (changed all references
3233 to the concerned variables).
3235 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3237 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
3238 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
3239 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
3241 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3243 * include/ext/malloc_allocator.h: Fixed the construct function to
3244 call global placement new instead of assignment. Added a check
3245 after the return from malloc to check whether returned pointer is
3246 NULL, and if so, throw std::bad_alloc().
3247 * include/ext/debug_allocator.h: Added a check in the deallocate
3248 function to check whether the user has passed a NULL pointer or
3251 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
3253 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
3255 2004-03-24 Andreas Schwab <schwab@suse.de>
3257 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
3258 warning from IA64 assembler.
3260 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3262 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
3263 function call __builtin_ctz instead of the while loop.
3264 (allocate) -> If condition has __builtin_expect.
3265 (deallocate) -> Ditto.
3266 Renamed a few left-over variables and typedefs according to the
3267 C++STYLE mentioned in the documentation.
3268 Protected calls to __gthread* by __gthread_active_p(), whose value
3269 is cached in the local variable __threads_active.
3271 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
3273 * testsuite/performance/20_util/allocator/producer_consumer.cc:
3274 Use linear algorithm for producer.
3276 2004-03-24 Paolo Carlini <pcarlini@suse.de>
3278 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3279 __mt_alloc<>::deallocate): Avoid redundant conditionals.
3281 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
3283 * include/bits/locale_facets.h: Tweaks for 80 column.
3284 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
3285 (__moneypunct_cache::_M_cache): Same.
3286 (num_get): Don't inherit from __num_base.
3288 (money_get): Don't inherit from money_base.
3290 (__timepunct::_M_am_pm_format): New.
3291 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
3292 (time_get::_M_extract_name): Same.
3293 (time_get::_M_extract_via_format): Same.
3294 * include/bits/locale_facets.tcc: Tweaks for 80 column.
3295 Use _M_getloc instead of getloc.
3296 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
3297 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
3298 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
3300 2004-03-22 Paolo Carlini <pcarlini@suse.de>
3302 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
3303 * configure: Regenerate.
3304 * config/allocator/pool_allocator_base.h: New.
3305 * include/ext/pool_allocator.h: Convert to a standard-conforming
3307 * src/allocator.cc: Tweak instantiations.
3308 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
3309 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
3310 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
3311 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3312 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3313 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3315 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
3317 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
3318 inline" and attribute-unused. Qualify parameter __mem with
3320 (__exchange_and_add): Ditto. Add back memory clobber to asm.
3322 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3324 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
3326 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
3328 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc: