1 2004-11-01 Momchil Velikov <velco@fadata.bg>
4 * libsupc++/eh_globals.cc (get_globals_dtor): Delete unhandled
6 * testsuite/thread/18185.cc: New.
8 2004-11-01 Chris Jefferson <chris@bubblescope.net>
11 * include/tr1/tuple (get(pair)): Change occurrences of _I to _Int.
12 (get(const pair)): Likewise.
14 2004-11-01 Paolo Carlini <pcarlini@suse.de>
16 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
17 Evaluate *__beg the exact strict minimum number of times; likewise
18 for __beg != __end; in the main parsing loop, call ++__beg in two
19 places only. The former is also a correctness issue, because,
20 according to the standard (22.2.2.1.2, Stage 2), 'in' shall be
21 dereferenced only one time for each increment.
23 2004-10-31 Benjamin Kosnik <bkoz@redhat.com>
26 * testsuite/23_containers/set/modifiers/16728.cc: New.
28 2004-10-30 Paolo Carlini <pcarlini@suse.de>
30 * include/ext/bitmap_allocator.h (allocate(size_type)): Minor tweak.
32 * testsuite/ext/bitmap_allocator/check_delete.cc: New.
33 * testsuite/ext/bitmap_allocator/check_new.cc: Likewise.
35 2004-10-29 Geoffrey Keating <geoffk@apple.com>
37 * configure.host (darwin*): Set os_include_dir to a separate directory
39 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add a new C locale kind,
41 * config/locale/darwin/ctype_members.cc: New.
42 * config/os/bsd/darwin/ctype_base.h: New.
43 * config/os/bsd/darwin/ctype_inline.h: New.
44 * config/os/bsd/darwin/ctype_noninline.h: New.
45 * config/os/bsd/darwin/os_defines.h: New.
47 * testsuite/22_locale/locale/cons/12658_thread-1.cc: Only xfail
50 2004-10-29 Chris Jefferson <chris@bubblescope.net>
52 * include/bit/stl_algo.h (find_first_of(,,,,pred)):
53 Remove invalid EqualOpConcept.
54 * testsuite/25_algorithms/find_first_of/concept_check_1.cc: New.
56 2004-10-29 Benjamin Kosnik <bkoz@redhat.com>
58 * testsuite/testsuite_allocator.h (check_delete): New.
59 (check_new): Simplify.
60 * testsuite/ext/array_allocator/check_delete.cc: New.
61 * testsuite/ext/array_allocator/check_new.cc: Simplify.
62 * testsuite/ext/debug_allocator/check_delete.cc: New.
63 * testsuite/ext/debug_allocator/check_new.cc: Simplify.
64 * testsuite/ext/malloc_allocator/check_delete.cc: New.
65 * testsuite/ext/malloc_allocator/check_new.cc: Simplify.
66 * testsuite/ext/mt_allocator/check_delete.cc: New.
67 * testsuite/ext/mt_allocator/check_new.cc: Simplify.
68 * testsuite/ext/new_allocator/check_delete.cc: New.
69 * testsuite/ext/new_allocator/check_new.cc: Simplify.
70 * testsuite/ext/pool_allocator/check_delete.cc: New.
71 * testsuite/ext/pool_allocator/check_new.cc: Simplify.
73 2004-10-28 Chris Jefferson <chris@bubblescope.net>
76 * include/tr1/tuple: Fix, change formatting.
78 2004-10-28 Benjamin Kosnik <bkoz@redhat.com>
80 * include/ext/mt_allocator.h (__common_pool_policy): Add template
81 template parameter for pool class type.
82 (__per_type_pool_policy): Same.
83 (__mt_allocator): Don't inherit policy. Qualify policy_type calls.
84 * testsuite/ext/mt_allocator/check_deallocate_null.cc: Fix.
85 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: Same.
86 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
87 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
88 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
89 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
90 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Same.
91 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
92 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
93 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
94 * testsuite/ext/mt_allocator/instantiate.cc: Same.
95 * testsuite/ext/mt_allocator/tune-1.cc: Same.
96 * testsuite/ext/mt_allocator/tune-2.cc: Same.
97 * testsuite/ext/mt_allocator/tune-3.cc: Same.
98 * testsuite/ext/mt_allocator/tune-4.cc: Same.
100 2004-10-28 Paolo Carlini <pcarlini@suse.de>
102 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
103 Cache *__beg in __c when parsing exponent sign too.
104 (num_get<>::do_get(..., bool&)): Cache *__beg.
105 (money_get<>::_M_extract)): Likewise, in money_base::value.
107 2004-10-27 Paolo Carlini <pcarlini@suse.de>
109 * include/bits/basic_string.h (assign(const basic_string&)):
111 * include/bits/basic_string.tcc: ... here.
113 2004-10-27 Paolo Carlini <pcarlini@suse.de>
115 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
117 * include/bits/basic_string.tcc: ... here.
119 2004-10-26 Paolo Carlini <pcarlini@suse.de>
121 * include/bits/basic_string.h (append(const basic_string&),
122 append(size_type, _CharT)): Move out of line...
123 * include/bits/basic_string.tcc: ... here.
125 2004-10-26 Paolo Carlini <pcarlini@suse.de>
127 * include/bits/basic_string.h (erase(size_type, size_type),
128 erase(iterator), erase(iterator, iterator)): Call _M_mutate
129 instead of _M_replace_safe, equivalent when the fourth argument
132 2004-10-26 Benjamin Kosnik <bkoz@redhat.com>
134 * include/ext/array_allocator.h (array::allocate): Check for valid
135 array object, use its size member function directly.
136 * testsuite/ext/array_allocator/3.cc: New.
137 * docs/html/20_util/allocator.html: Add docs.
139 2004-10-25 Geoffrey Keating <geoffk@apple.com>
141 * configure.host (darwin*): Build libstdc++ single module
143 * libsupc++/new_op.cc (new): Make weak.
144 * libsupc++/new_opnt.cc (new): Make weak.
145 * libsupc++/new_opv.cc (new): Make weak.
146 * libsupc++/new_opvnt.cc (new): Make weak.
147 * libsupc++/delete_op.cc (delete): Make weak.
148 * libsupc++/delete_opnt.cc (delete): Make weak.
149 * libsupc++/delete_opv.cc (delete): Make weak.
150 * libsupc++/delete_opvnt.cc (delete): Make weak.
152 2004-10-25 Benjamin Kosnik <bkoz@redhat.com>
154 * testsuite/Makefile.am (GLIBCXX_INCLUDES): Add.
155 (AUTOMAKE_OPTIONS): Add nostdinc.
156 * testsuite/Makefile.in: Regenerate.
157 * scripts/testsuite_flags.in (build-includes): Remove redundant
158 search for libsupc++.
159 * fragment.am: Clean.
161 2004-10-25 Benjamin Kosnik <bkoz@redhat.com>
163 * include/Makefile.am (tr1_headers): Add tuple.
164 * include/Makefile.in: Regenerate.
166 2004-10-25 Chris Jefferson <chris@bubblescope.net>
168 * include/tr1/tuple: Implementation of tuple from library TR.
169 * testsuite/tr1/6_containers/tuple/tuple_element.cc: New.
170 * testsuite/tr1/6_containers/tuple/tuple_size.cc: New.
171 * testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc:
173 * testsuite/tr1/6_containers/tuple/cons/assignment.cc: New.
174 * testsuite/tr1/6_containers/tuple/cons/big_tuples.cc: New.
175 * testsuite/tr1/6_containers/tuple/cons/constructor.cc: New.
176 * testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc:
178 * testsuite/tr1/6_containers/tuple/creation_functions/tie.cc: New.
179 * testsuite/tr1/6_containers/tuple/element_access/get.cc: New.
181 2004-10-25 Paolo Carlini <pcarlini@suse.de>
183 * include/bits/basic_string.h (_Rep::_M_is_safe): Move to
184 basic_string as _M_disjunct, adjust to take only __s.
185 * include/bits/basic_string.tcc: Adjust consistently callers.
187 2004-10-25 Paolo Carlini <pcarlini@suse.de>
189 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
190 Adjust bit missing from the previous commit.
192 2004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
195 * testsuite/lib/libstdc++.exp: Accept more than one multilib libgcc.
197 2004-10-25 Paolo Carlini <pcarlini@suse.de>
199 * include/bits/basic_string.h (_Rep::_M_is_safe, _M_check_length,
200 _M_move, _M_copy, _M_assign): New, use througout.
201 (operator+=(_CharT)): Define in terms of push_back.
202 (append(const basic_string&)): Define here, inline, and simplify,
203 don't use the full _M_replace_safe.
204 (append(size_type, _CharT)): Likewise, don't use _M_replace_aux.
205 (push_back): Likewise.
206 (assign(const basic_string&)): Define here, inline.
207 * include/bits/basic_string.tcc (append(const _CharT* s, size_type):
208 Fix: when s points inside the _Rep, upon reallocation (reserve) we
209 were copying from deallocated memory.
210 (append(const basic_string&, size_type, size_type)): Simplify,
211 don't use _M_replace_safe.
212 (replace(size_type, size_type, const _CharT*, size_type)): Slightly
215 * testsuite/21_strings/basic_string/append/char/2.cc: New.
216 * testsuite/21_strings/basic_string/append/char/3.cc: Likewise.
217 * testsuite/21_strings/basic_string/append/wchar_t/2.cc: Likewise.
218 * testsuite/21_strings/basic_string/append/wchar_t/3.cc: Likewise.
220 * testsuite/21_strings/basic_string/assign/char/3.cc: Remove junk.
221 * testsuite/21_strings/basic_string/assign/wchar_t/3.cc: Likewise.
223 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
225 * testsuite/ext/mt_allocator/deallocate_global-2.c:
226 s/value_t/value_type/. s/traits_t/traits_type/.
227 s/policy_t/policy_type/. s/allocator_t/allocator_type/.
228 s/string_t/string_type/. s/list_t/list_type/.
229 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Likewise.
230 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Likewise.
231 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Likewise.
232 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Likewise.
233 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Likewise.
234 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Likewise.
235 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Likewise.
237 2004-10-21 Benjamin Kosnik <bkoz@redhat.com>
239 * include/tr1/array (array): Make safe for zero-sized arrays.
240 (array::end): Return one past the end.
241 (array::at): Use __throw_out_of_range, include functexcept.h.
242 (operator==): Implement.
248 * testsuite/tr1/6_containers/array/capacity/(empty.cc,
249 max_size.cc, size.cc): New.
250 * testsuite/tr1/6_containers/array/comparison_operators/(equal.cc,
251 greater.cc, greater_or_equal.cc, less.cc, less_or_equal.cc,
253 * testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc:
255 * testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc:
257 * testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc: New.
258 * testsuite/tr1/6_containers/array/requirements/(contiguous.cc,
259 instantiate, typedefs, zero_size_arrays): New.
261 2004-10-21 Paolo Carlini <pcarlini@suse.de>
262 Benjamin Kosnik <bkoz@redhat.com>
264 * include/bits/basic_string.h (_M_set_length_and_sharable): New.
265 * include/bits/basic_string.tcc (_S_construct, assign(const _CharT*,
266 size_type), _M_mutate, _M_clone): Use it.
267 (_Rep::_S_create): Don't set/call _M_length/_M_set_sharable here.
269 2004-10-21 Paolo Carlini <pcarlini@suse.de>
270 Dhruv Matani <dhruvbird@gmx.net>
271 Nathan Myers <ncm@cantrip.org>
273 * include/bits/vector.tcc (_M_insert_aux, _M_fill_insert,
274 _M_range_insert): Check at the outset that we are not trying
275 to exceed max_size, then deal properly with __len overflows.
276 * testsuite/23_containers/vector/modifiers/insert/1.cc: New.
278 * testsuite/testsuite_allocator.h: Remove redundant include.
280 2004-10-20 Paolo Carlini <pcarlini@suse.de>
282 * include/ext/bitmap_allocator.h (allocate): Throw std::bad_alloc
284 * include/ext/malloc_allocator.h (allocate): Likewise.
285 * include/ext/mt_allocator.h (allocate): Likewise.
286 * include/ext/new_allocator.h (allocate): Likewise.
287 * include/ext/array_allocator.h: Use __throw_bad_alloc().
288 * include/ext/pool_allocator.h: Use __builtin_expect.
289 * testsuite/ext/array_allocator/check_allocate_max_size.cc: New.
290 * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc: Likewise.
291 * testsuite/ext/malloc_allocator/check_allocate_max_size.cc: Likewise.
292 * testsuite/ext/mt_allocator/check_allocate_max_size.cc: Likewise.
293 * testsuite/ext/new_allocator/check_allocate_max_size.cc: Likewise.
294 * testsuite/ext/pool_allocator/check_allocate_max_size.cc: Likewise.
295 * testsuite/testsuite_allocator.h (check_allocate_max_size): New test.
297 2004-10-19 Paolo Carlini <pcarlini@suse.de>
299 * testsuite/performance/20_util/allocator/list_sort_search.cc:
300 Include <ext/new_allocator.h>.
301 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
303 2004-10-18 Paolo Carlini <pcarlini@suse.de>
305 * include/bits/basic_string.tcc (_M_mutate): Do not reallocate
306 unnecessarily when _M_rep() == &_S_empty_rep() and __new_size
307 == capacity() (== 0): is ok to just leave everything unchanged.
309 * include/bits/basic_string.h: Minor formatting fixes.
310 * include/bits/basic_string.tcc: Likewise.
312 2004-10-17 Benjamin Kosnik <bkoz@redhat.com>
314 * include/ext/mt_allocator.h (__pool::_M_get_align): New.
315 (__mt_alloc::allocate): Use it.
316 * src/mt_allocator.cc (__pool::_M_reclaim_block): Use it.
317 (__pool::_M_reserve_block): Simplify block allocation.
319 2004-10-17 Dhruv Matani <dhruvbird@gmx.net>
320 Paolo Carlini <pcarlini@suse.de>
322 * include/ext/bitmap_allocator.h: Change unsigned int -> size_t: this
323 makes the code 64-bit correct and also fixes (together with using at
324 the beginning a bitmap 2 * size_t bytes wide) alignment issues: now
325 8 is guaranteed, easily tunable to 16 via _BALLOC_ALIGN_BYTES.
326 Fix pthread-rope7.cc fail by nulling out __mini_vector<> destructor.
327 * src/bitmap_allocator.cc: Change to size_t.
328 * config/linker-map.gnu: Adjust.
330 2004-10-16 Benjamin Kosnik <bkoz@redhat.com>
332 * include/tr1/array: Don't use layout_type.
334 2004-10-16 Sashan Govender <sashang@gmail.com>
336 * include/tr1/array (array::end const): Fix casting from iterator
339 2004-10-15 Paolo Carlini <pcarlini@suse.de>
341 * include/ext/bitmap_allocator.h: Qualify ::operator delete.
342 * src/bitmap_allocator.cc: Likewise.
343 * src/mt_allocator.cc: Use ::operator delete, not delete,
344 consistently with ::operator new.
346 * include/ext/bitmap_allocator.h (deallocate): Check for null
348 * testsuite/ext/bitmap_allocator/check_deallocate_null.cc: New.
349 * testsuite/testsuite_allocator.h (check_deallocate_null): Add test.
351 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
353 * include/ext/mt_allocator.h (__mt_alloc::deallocate): Check for
355 * include/ext/pool_allocator.h (debug_allocator::deallocate):
357 * include/ext/debug_allocator.h (debug_allocator::deallocate):
358 Throw exceptions, don't abort.
359 * include/ext/array_allocator.h
360 (array_allocator_base::deallocate): Remove unused parameters.
361 * testsuite/testsuite_allocator.h (check_deallocate_null): New.
362 * testsuite/ext/mt_allocator/check_deallocate_null.cc: New.
363 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: New.
364 * testsuite/ext/array_allocator/check_deallocate_null.cc: New.
365 * testsuite/ext/debug_allocator/check_deallocate_null.cc: New.
366 * testsuite/ext/malloc_allocator/check_deallocate_null.cc: New.
367 * testsuite/ext/new_allocator/check_deallocate_null.cc: New.
368 * testsuite/ext/pool_allocator/check_deallocate_null.cc: New.
370 * testsuite/testsuite_allocator.h (check_new): Add instance argument.
371 * testsuite/ext/array_allocator/check_new.cc: New.
373 2004-10-14 Paolo Carlini <pcarlini@suse.de>
375 * include/ext/bitmap_allocator.h (bitmap_allocator::_Alloc_block):
376 Rename __unused to __M_unused.
378 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
380 * testsuite/ext/headers.cc: Add includes, compile only.
381 * testsuite/ext/hash_map.cc: Move to...
382 * testsuite/ext/hash_map/1.cc: ...here.
383 * testsuite/ext/14648.cc: Move to...
384 * testsuite/ext/hash_map/14648.cc: ...here.
385 * testsuite/ext/hash_map/instantiate.cc: Add.
386 * testsuite/ext/hash_set.cc: Move to...
387 * testsuite/ext/hash_set/1.cc: ...here.
388 * testsuite/ext/hash_set_explicit_instantiation.cc: Move to...
389 * testsuite/ext/hash_set/instantiate.cc: ...here.
390 * testsuite/ext/hash_check_construct_destroy.cc: Move to...
391 * testsuite/ext/hash_set/check_construct_destroy.cc: ...here.
392 * testsuite/ext/slist_check_construct_destroy.cc: Move to...
393 * testsuite/ext/slist/check_construct_destroy.cc: ...here.
394 * testsuite/ext/slist_explicit_instantiation.cc: Move to...
395 * testsuite/ext/slist/instantiate.cc: ...here.
397 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
399 * include/ext/mt_allocator.h: Tweaks.
400 * src/mt_allocator.cc: Same.
402 2004-10-14 Dhruv Matani <dhruvbird@gmx.net>
404 * ext/bitmap_allocator.h: Clean-up add/remove functions.
405 * src/bitmap_allocator.cc: New file. Contains the out-of-line
406 function definitions, static initialization of variables, and
407 explicit instantiations needed for the allocator.
408 * src/Makefile.am: Add.
409 * src/Makefile.in: Regenerate.
410 * config/linker.map.gnu: Add the necessary symbols.
412 2004-10-13 Paolo Carlini <pcarlini@suse.de>
414 * include/bits/basic_string.tcc (_S_create): Use consistently
415 the exponential policy, simplify.
416 * testsuite/performance/21_strings/string_append_2.cc: New.
418 * include/ext/array_allocator.h (allocate): Fix bad_alloc check.
419 * testsuite/ext/array_allocator/2.cc: Fix wrt 64-bit archs (in
420 that case sizeof(_Rep) == 24).
422 2004-10-12 Paolo Carlini <pcarlini@suse.de>
425 * include/bits/stl_tree.h (erase(iterator, iterator)): Revert
426 wrong commit of 2004-10-07.
428 2004-10-12 Scott Snyder <snyder@fnal.gov>
431 * testsuite/23_containers/set/modifiers/17948.cc: New.
433 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
435 * include/bits/stl_deque.h: Correct for over-long lines.
437 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
440 * include/ext/mt_allocator.h (__pool::_M_destroy): New.
441 * src/mt_allocator.cc (__pool::~__pool): Change definitions to
443 * acconfig.h: Remove _GLIBCXX_USE___CXA_ATEXIT.
444 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): Remove.
445 * configure.ac: Remove call to GLIBCXX_ENABLE_CXA_EXIT.
446 * configure: Regenerate.
447 * config/linker-map.gnu: Tweak exports.
448 * docs/html/ext/mt_allocator.html: Update docs.
449 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Fix.
450 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Fix.
451 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Fix.
452 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Fix.
453 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Fix.
454 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Fix.
455 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Fix.
456 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Fix.
458 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
460 PR libstdc++/16614 continued.
461 * include/ext/mt_allocator.h
462 (__per_type_pool_policy::_S_get_pool): Use saner defaults based on
463 specific type characteristics.
464 (__pool_base): Add constructor that takes a _Tune argument.
466 * testsuite/ext/mt_allocator/tune-2.cc: Adjust default.
467 * testsuite/ext/mt_allocator/tune-4.cc: Same.
468 * testsuite/ext/mt_allocator/tune-3.cc: Same.
470 2004-10-11 Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
471 Paolo Carlini <pcarlini@suse.de>
473 * src/pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk):
474 Deal properly with exceptions thrown by ::operator new(size_t).
475 * testsuite/ext/pool_allocator/allocate_chunk.cc: New.
477 * include/ext/pool_allocator.h: Include <cstdlib>.
479 2004-10-10 Benjamin Kosnik <bkoz@redhat.com>
481 * include/bits/functexcept.h: Add guards.
483 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Tweak test.
484 * configure: Regenerate.
486 2004-10-10 Paolo Carlini <pcarlini@suse.de>
488 * config/locale/gnu/monetary_members.cc (_S_construct_pattern):
489 Give __ret a default value, thus avoiding spurious warnings.
491 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Open either
492 words or linux.words, otherwise exit.
493 * testsuite/performance/27_io/ifstream_getline.cc: Slighlty tweak.
495 2004-10-09 Paolo Carlini <pcarlini@suse.de>
497 * include/std/std_memory.h (__get_temporary_buffer): Don't use
498 INT_MAX, prefer numeric_limits<ptrdiff_t>::max(), ok on 64-bit
500 * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust dg-error
503 2004-10-08 Benjamin Kosnik <bkoz@redhat.com>
505 * acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
506 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): New.
507 * configure.ac: Call GLIBCXX_ENABLE_CXA_EXIT.
508 * configure: Regenerate.
509 * src/mt_allocator.cc (__pool::~__pool): Make conditional on
510 _GLIBCXX_USE___CXA_ATEXIT macro.
511 * docs/html/ext/mt_allocator.html: Add note about deallocation.
512 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Guard checks
513 with _GLIBCXX_USE___CXA_ATEXIT.
514 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
515 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
516 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
517 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
518 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
519 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
520 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
522 2004-10-07 Phil Edwards <phil@codesourcery.com>
524 * testsuite/lib/libstdc++.exp: Update list of undefined functions.
526 2004-10-07 Paolo Carlini <pcarlini@suse.de>
528 * include/bits/list.tcc (operator=): Avoid iterator postincrement.
529 * include/bits/stl_tree.h (erase(iterator, iterator)): Likewise.
531 2004-10-07 Benjamin Kosnik <bkoz@redhat.com>
534 * include/tr1/array: New.
535 * include/Makefile.am (tr1_headers): New.
537 (install-headers): New.
538 (allstamped): Add stamp-tr1.
540 * include/ext/array_allocator.h: New.
541 * include/Makefile.am: Add.
542 * include/Makefile.in: Regenerate.
543 * testsuite/ext/array_allocator/1.cc: New.
544 * testsuite/ext/array_allocator/2.cc: New.
546 2004-10-07 Richard Earnshaw <rearnsha@arm.com>
548 * testsuite/lib/libstdc++.exp (libstdc++_exit): New proc.
550 2004-10-07 Roger Sayle <roger@eyesopen.com>
553 * configure.ac: Newlib does not provide strtold.
554 * configure: Regenerate.
556 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
558 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
559 (GLIBCXX_CONFIGURE_TESTSUITE): Use it.
560 * configure: Regenerated.
561 * testsuite/Makefile.am (CLEANFILES): Add TEST for
562 check-performance executables.
565 * testsuite/Makefile.in: Regenerate.
566 * scripts/create_testsuite_files: Filter thread tests.
568 * testsuite/thread/pthread1.cc: Remove macro conditionals: this
569 file will only be run by thread enabled configurations.
570 * testsuite/thread/pthread7-rope.cc: Same, add rope_type typedef.
571 * testsuite/thread/pthread6.cc: Same.
572 * testsuite/thread/pthread5.cc: Same.
573 * testsuite/thread/pthread4.cc: Same.
574 * testsuite/thread/pthread3.cc: Same.
575 * testsuite/thread/pthread2.cc: Same.
577 * testsuite/ext/mt_allocator/instantiate.cc: Add in __GTHREADS guard.
578 * testsuite/ext/mt_allocator/deallocate_global-1.cc: Move to...
579 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: ...here.
580 * testsuite/ext/mt_allocator/deallocate_global-3.cc: Move to...
581 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: ...here.
582 * testsuite/ext/mt_allocator/deallocate_local-1.cc: Move to...
583 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: ...here.
584 * testsuite/ext/mt_allocator/deallocate_local-3.cc: Move to...
585 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: ...here.
587 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
588 Paolo Carlini <pcarlini@suse.de>
591 * src/mt_allocator.cc (__pool<true>::_M_reserve_block): Revert
592 to old locking order.
594 2004-10-06 Paolo Carlini <pcarlini@suse.de>
596 * include/std/std_sstream.h (_M_sync): When the caller is
597 setbuf, don't trust _M_string.capacity() to be the size of
598 the buffer area, use _M_string.size() in this case.
599 * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
600 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.
602 * include/bits/sstream.tcc (overflow): Avoid calling string::assign
603 unnecessarily when the current _M_string is empty.
605 2004-10-06 Paolo Carlini <pcarlini@suse.de>
607 * include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)):
608 Avoid iterator postincrement.
609 (__rotate): Likewise.
611 * include/bits/stl_algo.h: Minor formatting tweaks.
613 2004-10-06 Christopher Jefferson <caj@cs.york.ac.uk>
615 * include/bits/stl_algo.h (__reverse(random_access_iterator_tag)):
616 Avoid iterator postincrement; fix swapping middle element with
617 itself on odd-length inputs.
619 2004-10-05 Benjamin Kosnik <bkoz@redhat.com>
622 * include/ext/mt_allocator.h (__pool_base::_Tune): Add default
623 options as compile-time constant enums.
624 (__pool_base::_Tune::is_default): New.
625 (__pool_base::_Block_address): New.
626 (__pool_base): Rearrange data members.
627 (__pool::_M_reserve_memory): To _M_reserve_block.
628 (__pool::_M_reclaim_memory): To _M_reclaim_block.
629 (__pool::_Bin_record): Add _Block_address data member.
630 (__pool<false>): Add _M_thread_freelist_initial.
631 (__pool::~__pool): Declare.
632 (__common_pool_policy): Move static data member to...
633 (__common_pool_policy::_S_get_pool): ...here, make static local.
634 (__per_type_pool_policy): Move static data member to...
635 (__per_type_pool_policy::_S_get_pool): ...here, make static local.
636 (__mt_alloc::__mt_alloc): Call __policy_type::_S_get_pool.
637 Remove static member definitions. Use define for __default_policy.
638 * src/mt_allocator.cc: Same.
639 * config/linker-map.gnu: Don't export _S_get_pool. Renames.
640 * testsuite/ext/new_allocator: New.
641 * testsuite/ext/new_allocator/instantiate.cc: New.
642 * testsuite/ext/new_allocator/check_new.cc: New.
643 * testsuite/ext/new_allocator/deallocate_global.cc: New.
644 * testsuite/ext/new_allocator/deallocate_local.cc: New.
645 * testsuite/ext/mt_allocator/instantiate.cc: Instantiate all
647 * testsuite/ext/mt_allocator/deallocate_global-1.cc: New.
648 * testsuite/ext/mt_allocator/deallocate_global-2.cc: New.
649 * testsuite/ext/mt_allocator/deallocate_global-3.cc: New.
650 * testsuite/ext/mt_allocator/deallocate_global-4.cc: New.
651 * testsuite/ext/mt_allocator/deallocate_local-1.cc: New.
652 * testsuite/ext/mt_allocator/deallocate_local-2.cc: New.
653 * testsuite/ext/mt_allocator/deallocate_local-3.cc: New.
654 * testsuite/ext/mt_allocator/deallocate_local-4.cc: New.
655 * testsuite/ext/mt_allocator/deallocate.cc: New.
656 * testsuite/ext/malloc_allocator/deallocate.cc: New.
657 * testsuite/ext/malloc_allocator/deallocate_global.cc: New.
658 * testsuite/ext/malloc_allocator/deallocate_local.cc: New.
660 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
662 * configure.host (abi_baseline_pair): Define for s390-*-linux* and
664 * config/abi/s390-linux-gnu/baseline_symbols.txt: Add missing symbols.
665 * config/abi/s390x-linux-gnu/baseline_symbols.txt: New file.
667 2004-10-05 Christopher Jefferson <caj@cs.york.ac.uk>
669 * include/bits/stl_algobase.h (iter_swap): delegate to swap via
670 __iter_swap when iterator's value_types are equal.
671 (struct __iter_swap): New.
673 2004-10-04 Benjamin Kosnik <bkoz@redhat.com>
675 * configure.ac (libtool_VERSION): To 6:3:0.
676 * configure: Regnerate.
677 * testsuite/testsuite_abi.cc (check_version): Add 3.4.3.
679 2004-10-04 Roger Sayle <roger@eyesopen.com>
680 Eric Botcazou <ebotcazou@libertysurf.fr>
683 * config/linker-map.gnu: Synchronize the current list of stub
684 functions from libmath.
686 2004-10-03 Roger Sayle <roger@eyesopen.com>
688 * config/locale/generic/c_locale.cc (__convert_to_v): Use
689 _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
690 Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
691 to check for presence of strtold.
693 2004-10-03 Paolo Carlini <pcarlini@suse.de>
695 * include/bits/stl_list.h: Trivial formatting fixes.
696 * include/bits/stl_tree.h: Likewise.
698 2004-10-03 Paolo Carlini <pcarlini@suse.de>
700 * include/bits/sstream.tcc (seekpos): In case of success, just
703 2004-10-01 Paolo Carlini <pcarlini@suse.de>
705 * include/bits/sstream.tcc (pbackfail): Implement correctly
706 27.7.1.3/2, bullet 2: if mode & ios_base::out is false do not
708 * testsuite/27_io/basic_stringbuf/pbackfail/char/1.cc: New.
709 * testsuite/27_io/basic_stringbuf/pbackfail/char/2.cc: Likewise.
710 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/1.cc: Likewise.
711 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/2.cc: Likewise.
712 * testsuite/27_io/basic_istream/putback/char/1.cc: Tweak consistently.
714 2004-10-01 Paolo Carlini <pcarlini@suse.de>
716 * include/bits/sstream.tcc (seekpos): Minor rearrangement of two
717 conditionals consistently with seekoff.
718 * include/std/std_sstream.h (setbuf): Avoid a string temporary.
719 (_M_sync): Simplify a bit, clean-up comment.
721 2004-09-30 Paolo Carlini <pcarlini@suse.de>
723 PR libstdc++/10975 (DR 453)
724 * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
726 * docs/html/ext/howto.html: Add an entry for DR 453.
727 * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
728 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
729 * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
730 * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
731 * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
732 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
734 * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
735 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
737 * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
739 2004-09-29 Paolo Carlini <pcarlini@suse.de>
741 * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
742 Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
743 (str()): Slightly tweak, protect from pptr() == 0.
744 (_M_update_egptr()): Likewise.
745 * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
746 for an empty buffer use __beg instead of _M_string.capacity().
747 * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
748 * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
750 * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
751 * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
752 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
753 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
755 2004-09-29 Paolo Carlini <pcarlini@suse.de>
756 Benjamin Kosnik <bkoz@redhat.com>
758 * testsuite/testsuite_io.h (class constraint_buf): New, extended
759 and templatized version of constraint_filebuf; add typedefs for
760 streambuf/stringbuf/filebuf and wchar_t counterparts.
762 2004-09-28 Paolo Carlini <pcarlini@suse.de>
765 * include/bits/basic_string.h (_M_dispose, _M_refcopy,
766 basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
767 don't deal with _S_empty_rep.
768 * include/bits/basic_string.tcc (_S_construct, _M_destroy,
769 _M_leak_hard, _M_mutate): Likewise.
770 * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
771 * acconfig.h: Add corresponding undef.
772 * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
773 * docs/html/configopts.html: Document --enable-fully-dynamic-string.
774 * configure: Regenerate.
775 * config.h.in: Likewise.
777 2004-09-28 Benjamin Kosnik <bkoz@redhat.com>
778 Paolo Carlini <pcarlini@suse.de>
780 * testsuite/21_strings/basic_string/operations/char/1.cc: New.
781 * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
782 * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
783 * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc:
786 2004-09-28 Paolo Carlini <pcarlini@suse.de>
788 * README: Remove obsolete entry about include/c_shadow.
790 2004-09-24 H.J. Lu <hongjiu.lu@intel.com>
793 * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
795 2004-09-24 Paolo Carlini <pcarlini@suse.de>
797 * src/localename.cc (locale::locale(const char*)): Minor tweaks:
798 rename a variable, move an assignment.
799 (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
801 2004-09-24 Paul Brook <paul@codesourcery.com>
803 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
805 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
806 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
807 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
808 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
809 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
810 * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
812 2004-09-23 Zack Weinberg <zack@codesourcery.com>
814 * testsuite/20_util/memory/auto_ptr/assign_neg.cc
815 * testsuite/23_containers/map/operators/1_neg.cc
816 * testsuite/23_containers/set/operators/1_neg.cc:
817 Update locations and/or regexps of dg-error markers.
819 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
821 * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
822 Add rule to build ${host_builddir}/gthr-tpf.h.
823 * include/Makefile.in: Regenerate.
825 2004-09-23 Paolo Carlini <pcarlini@suse.de>
826 Magnus Fromreide <magfr@lysator.liu.se>
828 * include/bits/boost_concept_check.h (struct _SequenceConcept):
829 Remove wrong requirement, i.e., not present in Table 67.
831 2004-09-21 Paolo Carlini <pcarlini@suse.de>
833 PR libstdc++/12882 (cont)
834 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
835 * configure: Regenerate.
836 * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
837 _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
838 trivial showmanyc for large files too.
840 2004-09-17 Jonathan Wakely <redi@gcc.gnu.org>
842 * include/bits/stl_algo.h (remove): Remove too restrictive
845 2004-09-17 Paolo Carlini <pcarlini@suse.de>
847 * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
848 as per Nathan's original suggestion.
850 2004-09-17 Paolo Carlini <pcarlini@suse.de>
852 * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
854 * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
855 * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
856 * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
858 2004-09-17 Paolo Carlini <pcarlini@suse.de>
859 Andrea Arcangeli <andrea@suse.de>
861 * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
862 call unnecessarily sync, that is fflush: the library, since 3.4.0
863 does not use buffered fread/fwrite.
864 * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
866 2004-09-15 Mark Mitchell <mark@codesourcery.com>
868 * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
870 * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
872 * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
873 (__cxa_vec_new): Use it.
874 (__cxa_vec_new2): Likewise.
875 (__cxa_vec_new3): Likewise.
876 (__cxa_vec_cdtor): Likewise.
877 (__cxa_vec_cctor): Likeiwse.
878 (__cxa_vec_dtor): Likewise.
879 (__cxa_vec_cleanup): Likewise.
880 (__cxa_vec_delete2): Likewise.
881 (__cxa_vec_delete3): Likewise.
882 * libsupc++/vec.cc (__cxa_vec_new): Likewise.
883 (__cxa_vec_new2): Likewise.
884 (__cxa_vec_new3): Likewise.
885 (__cxa_vec_cdtor): Likewise.
886 (__cxa_vec_cctor): Likeiwse.
887 (__cxa_vec_dtor): Likewise.
888 (__cxa_vec_cleanup): Likewise.
889 (__cxa_vec_delete2): Likewise.
890 (__cxa_vec_delete3): Likewise.
891 (__aeabi_vec_ctor_nocookie_nodtor): New function.
892 (__aeabi_vec_ctor_cookie_nodtor): Likewise.
893 (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
894 (__aeabi_vec_new_cookie_noctor): Likewise.
895 (__aeabi_vec_new_nocookie): Likewise.
896 (__aeabi_vec_new_cookie_nodtor): Likewise.
897 (__aeabi_vec_new_cookie): Likewise.
898 (__aeabi_vec_dtor): Likewise.
899 (__aeabi_vec_dtor_cookie): Likewise.
900 (__aeabi_vec_delete): Likewise.
901 (__aeabi_vec_delete3): Likewise.
902 (__aeabi_vec_delete3_nodtor): Likewise.
903 (__aeabi_atexit): Likewise.
905 2004-09-14 Nathan Myers <ncm@cantrip.org>
907 * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
908 for 11722: copy can replace move; the common case is __avail == 0.
910 2004-09-14 Paolo Carlini <pcarlini@suse.de>
912 * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
913 to __is_scalar, more clear and consistent with "tr1" naming.
914 * include/bits/stl_algobase.h: Update consistently throughout.
916 2004-09-13 Paolo Carlini <pcarlini@suse.de>
919 * include/std/std_fstream.h (xsgetn): Declare only.
920 * include/bits/fstream.tcc (xsgetn): Define, optimize for the
921 always_noconv() case: when __n > __buflen, copy the available
922 buffer and issue a direct read.
923 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
925 * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
928 2004-09-13 Hans-Peter Nilsson <hp@bitrange.com>
930 * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
931 libstdc++_maybe_build_wrapper instead of using local code.
933 2004-09-08 Benjamin Kosnik <bkoz@redhat.com>
935 * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
937 2004-09-03 Jan Beulich <jbeulich@novell.com>
939 * crossconfig.m4: Add NetWare as a target.
940 * configure: Regenerate.
942 2004-09-02 Mark Mitchell <mark@codesourcery.com>
944 * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
947 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
948 Simon Richter <Simon.Richter@hogyros.de>
951 * include/bits/istream.tcc: Add extern template for iostream
952 char and wchar_t instantiations.
954 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
955 Leland Wang <llwang@infor.org>
958 * include/ext/ropeimpl.h (rope::_S_compare): Use
959 _Rope_constants::_S_leaf.
961 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
964 * include/Makefile.am (ext_headers): Remove demangle.h.
965 * include/Makefile.in: Regenerate.
966 * include/ext/demangle.h: Remove.
968 2004-09-01 Benjamin Kosnik <bkoz@redhat.com>
971 * include/ext/mt_allocator.h (__mt_base): Not type dependent,
973 (__pool): New, specialize.
974 (__common_pool): New, static bits here.
975 (__per_type_pool): New, and here.
976 (__mt_alloc_base): New.
977 (__mt_alloc): Add template parameter, inherit from it.
978 * src/allocator.cc: Split this...
979 * src/allocator-inst.cc: And this...
980 * src/pool_allocator.cc: ...into this.
981 * src/mt_allocator.cc: ... and this. Add definitions for
983 * src/Makefile.am (sources): Split allocator.cc to
984 pool_allocator.cc and mt_allocator.cc.
985 * src/Makefile.in: Regenerate.
986 * config/linker-map.gnu: Add symbols.
987 * docs/html/ext/mt_allocator.html: Document new design.
988 * testsuite/ext/mt_allocator/tune-1.cc: New.
989 * testsuite/ext/mt_allocator/tune-2.cc: New.
990 * testsuite/ext/mt_allocator/tune-3.cc: New.
991 * testsuite/ext/mt_allocator/tune-4.cc: New.
993 * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
994 * testsuite/ext/allocators.cc: Use check_new, split into...
995 * testsuite/ext/mt_allocator/check_new.cc: this.
996 * testsuite/ext/pool_allocator/check_new.cc: this.
997 * testsuite/ext/malloc_allocator/check_new.cc: this.
998 * testsuite/ext/debug_allocator/check_new.cc: this.
999 * testsuite/ext/mt_allocator/instantiate.cc: this.
1000 * testsuite/ext/pool_allocator/instantiate.cc: this.
1001 * testsuite/ext/malloc_allocator/instantiate.cc: this.
1002 * testsuite/ext/debug_allocator/instantiate.cc: this.
1004 2004-08-30 Phil Edwards <phil@codesourcery.com>
1006 * docs/html/install.html: Update locales list (from Paolo).
1007 Remove other redundant information and point to the GCC install
1010 2004-08-30 Benjamin Kosnik <bkoz@redhat.com>
1012 * include/ext/pool_allocator.h: Rename __pool_base to
1014 * src/allocator.cc: Same.
1015 * config/linker-map.gnu: Same.
1017 2004-08-30 Paolo Carlini <pcarlini@suse.de>
1018 Kenneth C. Schalk <ken@xorian.net>
1021 * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
1022 Check the return value of fclose/sync, loop on EINTR.
1023 (__basic_file<char>::sys_open): Likewise, for sync.
1025 2004-08-29 Paolo Carlini <pcarlini@suse.de>
1027 * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
1028 case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
1029 and 7.23.3.5), two if !_GLIBCXX_USE_C99.
1030 * testsuite/22_locale/time_get/get_time/char/4.cc: New.
1031 * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
1033 2004-08-27 Jason Merrill <jason@redhat.com>
1036 * libsupc++/guard.cc (static_mutex): Internal class implementing a
1037 recursive mutex which controls initialization of local statics.
1038 (__gnu_cxx::recursive_init): New exception class.
1039 (__cxa_guard_acquire): Deal with locking and recursion detection.
1040 (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
1042 2004-08-27 Matthias Klose <doko@debian.org>
1044 * configure.host: For mips*-*-linux* update cpu_include_dir
1045 after atomicity_dir is set.
1047 2004-08-27 Matthias Klose <doko@debian.org>
1049 * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
1050 * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1051 * configure.host: Set abi_baseline_pair for arm*-*-linux* and
1054 2004-08-27 Paolo Carlini <pcarlini@suse.de>
1056 * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
1057 * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
1058 * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
1059 * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
1060 * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
1062 * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
1064 * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
1065 * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
1066 * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
1067 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1069 2004-08-25 Paolo Carlini <pcarlini@suse.de>
1071 PR libstdc++/17038 (partial)
1072 * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
1074 * include/bits/locale_facets.h (class __timepunct): Add FIXME
1075 comment about _M_put.
1076 * config/locale/generic/time_members.cc (_M_put): Always null
1078 * config/locale/gnu/time_members.cc (_M_put): Likewise.
1079 * testsuite/22_locale/time_put/put/char/17038.cc: New.
1080 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
1082 2004-08-24 Paolo Carlini <pcarlini@suse.de>
1084 * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
1085 * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
1086 * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
1087 * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
1088 * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
1089 * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
1091 * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
1093 * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
1095 2004-08-22 Matthias Klose <doko@debian.org>
1097 * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
1098 * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1100 2004-08-23 Paolo Carlini <pcarlini@suse.de>
1102 * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
1103 * aclocal.m4: Regenerate with automake-1.9.1.
1104 * configure: Regenerate.
1105 * Makefile.in: Likewise.
1106 * include/Makefile.in: Likewise.
1107 * libmath/Makefile.in: Likewise.
1108 * libsupc++/Makefile.in: Likewise.
1109 * po/Makefile.in: Likewise.
1110 * src/Makefile.in: Likewise.
1111 * testsuite/Makefile.in: Likewise.
1113 2004-08-22 Paolo Carlini <pcarlini@suse.de>
1115 * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
1116 to a signed type, long according to the resolution of DR 359.
1117 * testsuite/22_locale/num_put/put/char/9.cc: New.
1118 * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
1120 * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
1121 Simplify a bit: no need to clear showpos.
1123 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1125 * include/bits/char_traits.h (struct _Char_traits_match): Remove,
1128 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1130 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
1131 wchar_t type for the fill argument; minor formatting tweaks.
1132 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
1133 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
1134 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
1135 * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
1136 * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
1137 * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
1139 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1141 * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
1142 with _M_word != _M_local_word two times, redundantly.
1144 2004-08-20 Jason Merrill <jason@redhat.com>
1146 * include/Makefile.am (${host_builddir}/gthr.h): Don't add
1147 _GLIBCXX_ to #pragma lines.
1148 * include/Makefile.in: Update.
1150 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1152 PR libstdc++/7219 (continued)
1153 * include/bits/ios_base.h (class ios_base): Expose Annex D.6
1154 typedefs by default.
1155 * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
1156 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
1158 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1160 2004-08-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1162 * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
1163 barrier to locking asm.
1165 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1167 * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
1168 actually the warning is a front-end bug (c++/17120).
1170 2004-08-20 Matthias Klose <doko@debian.org>
1172 * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
1174 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1176 * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
1177 used as truth value warning.
1179 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1181 * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
1184 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1186 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
1188 2004-08-19 Benjamin Kosnik <bkoz@redhat.com>
1190 * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
1192 * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
1194 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1196 * testsuite/performance/20_util/allocator/insert.cc: For std::map
1197 instantiate the allocator for a correct pair type.
1198 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1199 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1200 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1203 * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
1204 minor formatting fixes.
1205 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1207 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1209 * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
1211 * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
1212 * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
1213 * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
1214 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
1215 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1216 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1217 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1219 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1221 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1223 2004-08-18 Matthias Klose <doko@debian.org>
1225 * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1226 * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
1227 * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
1229 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1231 * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1233 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1235 * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1237 2004-08-17 Benjamin Kosnik <bkoz@redhat.com>
1239 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1241 2004-08-16 Paolo Carlini <pcarlini@suse.de>
1243 * include/bits/indirect_array.h: Trivial formatting fixes.
1244 * include/bits/valarray_after.h: Likewise.
1245 * include/bits/valarray_array.h: Likewise.
1246 * src/valarray-inst.cc: Likewise.
1248 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1250 * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
1251 * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
1252 * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
1254 * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
1255 * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
1256 * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
1257 * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
1258 * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
1260 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1262 * include/bits/deque.tcc: Trivial formatting fixes.
1264 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1266 * include/bits/deque.tcc: Trivial formatting fixes.
1268 * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
1269 Remove unneded typedef.
1271 * include/bits/locale_facets.tcc: Very minor tweaks.
1273 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
1274 type for the fill argument.
1275 * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
1276 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1277 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1278 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1279 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
1280 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
1281 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
1282 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
1284 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1286 * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
1287 memmove is not needed, memcpy suffices.
1289 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1291 * include/std/std_fstream.h (class basic_ifstream,
1292 class basic_ofstream, class basic_fstream): Add const overloads
1293 of is_open, as per DR 365 [WP].
1294 * docs/html/ext/howto.html: Add an entry for DR 365.
1296 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1298 * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
1300 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1303 * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
1304 to the returned value, reorganize a bit.
1305 * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
1306 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
1308 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
1309 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
1310 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
1311 * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
1313 2004-08-12 Paul Brook <paul@codesourcery.com>
1315 * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
1316 _GLIBCXX_CXA_VEC_CTOR_RETURN.
1317 * config/cpu/generic/cxxabi_tweaks.h: Ditto.
1318 * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
1319 __cxa_vec_ctor_return.
1320 * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
1321 Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
1323 2004-08-12 Kelley Cook <kcook@gcc.gnu.org>
1325 * Makefile.in, aclocal.m4, configure, include/Makefile.in,
1326 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1327 src/Makefile.in, testsuite/Makefile.in: Regenerate
1329 2004-08-12 Jan Beulich <jbeulich@novell.com>
1331 * config/locale/generic/ctype_members.cc
1332 (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
1333 initializer for return value, as that is invalid for enumerated types.
1334 * config/locale/gnu/ctype_members.cc
1335 (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
1337 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1339 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
1341 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1343 * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
1345 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
1346 * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
1347 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
1348 * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
1349 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
1350 * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
1351 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
1352 * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
1353 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
1354 * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
1355 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
1356 * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
1357 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
1358 * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
1359 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
1360 * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
1361 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
1362 * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
1363 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
1364 * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
1365 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
1367 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1368 Petur Runolfsson <peturr02@ru.is>
1371 * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
1372 standard streams are constructed.
1373 * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
1375 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1377 * include/bits/stl_bvector.h: Trivial formatting fixes.
1379 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1381 * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
1383 2004-08-07 Jonathan Wakely <redi@gcc.gnu.org>
1384 Paolo Carlini <pcarlini@suse.de>
1386 * src/debug.cc (_Error_formatter::_M_print_string): In order
1387 to print individual words from __string, _M_format_word can't
1388 be called since may be just sprintf, thus ignoring completely
1389 __n: instead, use memmove and append '\0' by hand.
1391 2004-08-07 Paolo Carlini <pcarlini@suse.de>
1393 * config/locale/generic/c_locale.h (__convert_from_v): Don't
1394 use a default for __prec, assume __prec >= 0 and simplify.
1395 * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
1396 * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
1397 Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
1399 2004-08-04 Phil Edwards <phil@codesourcery.com>
1401 * docs/html/configopts.html: Emphasize that options change.
1402 * docs/html/17_intro/configury.html: Update links.
1404 2004-08-03 Paolo Carlini <pcarlini@suse.de>
1406 * include/bits/list.tcc: Trivial formatting fixes.
1408 2004-08-03 Mark Mitchell <mark@codesourcery.com>
1410 * libsupc++/new_op.cc: Update comments.
1411 * libsupc++/del_op.cc: Likewise.
1413 2004-08-02 Mark Mitchell <mark@codesourcery.com>
1415 * libsupc++/cxxabi.h: Make all declarations have default
1417 * libsupc++/exception: Likewise.
1418 * libsupc++/new: Likewise.
1419 * libsupc++/typeinfo: Likewise.
1420 * libsupc++/unwind-cxx.h: Likewise.
1421 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
1422 the __cxxabiv1 namespace.
1423 (__cxa_free_exception): Likewise.
1424 * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
1425 (__cxa_bad_typeid): Likewise.
1426 * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
1427 (__cxa_end_catch): Likewise.
1428 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
1429 (__cxa_get_globals): Likewise.
1430 * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
1431 (__cxa_rethrow): Likewise.
1432 * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
1433 * libsupc++/eh_type.cc: Include <cxxabi.h>.
1435 * Makefile.am (hosted_source): Add libmath and testsuite.
1436 (SUBDIRS): Remove them.
1437 * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
1438 on arm*-*-symbianelf*.
1439 * crossconfig.m4: Add arm*-*-symbianelf* support.
1440 * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
1441 when freestanding. Do not bring names into std:: namespace with
1442 "using" when freestanding. Declare required functions and macros
1444 * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
1446 * libsupc++/del_op.cc: Declare "free" only when freestanding.
1447 * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
1448 (malloc): Declare when freestanding.
1451 (__cxa_allocate_exception): Call malloc, not std::malloc. Likewise
1453 (__cxa_free_exception): Likewise for free.
1454 * libsupc++/new_op.cc: Declare "malloc" when freestanding.
1455 * libsupc++/pure.cc (writestr): Define to nothing when
1457 * libsupc++/vterminate.cc: Do not define anything when
1459 * Makefile.in: Regenerated.
1460 * aclocal.m4: Likewise.
1461 * configure: Likewise.
1462 * include/Makefile.in: Likewise.
1463 * libmath/Makefile.in: Likewise.
1464 * libsupc++/Makefile.in: Likewise.
1465 * po/Makefile.in: Likewise.
1466 * src/Makefile.in: Likewise.
1467 * testsuite/Makefile.in: Likewise.
1469 2004-08-01 Matt Austern <austern@apple.com>
1472 * include/bits/stl_list.h (_M_create_node): Remove unused
1473 zero-argument version.
1474 * include/ext/slist (_M_create_node): Pass two arguments to
1475 allocator's construct() member function.
1476 * testsuite/23_containers/deque/explicit_instantiation.cc: New.
1477 * testsuite/23_containers/list/explicit_instantiation.cc: New.
1478 * testsuite/23_containers/vector/explicit_instantiation.cc: New.
1479 * testsuite/23_containers/map/explicit_instantiation.cc: New.
1480 * testsuite/23_containers/set/explicit_instantiation.cc: New.
1481 * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
1482 * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
1483 * testsuite/ext/hash_set_explicit_instantiation.cc: New.
1484 * testsuite/ext/slist_explicit_instantiation.cc: New.
1486 2004-07-30 Paolo Carlini <pcarlini@suse.de>
1488 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1489 num_get<>::_M_extract_int): In the main parsing loop delay the
1490 life of __q to the actual use point.
1492 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1495 * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
1496 Don't clip the precision passed down to __convert_from_v:
1497 22.2.2.2.2 nowhere says so.
1498 * testsuite/22_locale/num_put/put/char/14220.cc: New.
1499 * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
1501 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1503 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
1505 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1506 Petur Runolfsson <peturr02@ru.is>
1508 PR libstdc++/12658 (continued)
1509 * src/locale_init.cc (locale::locale, locale::global): Use
1510 a single locale_mutex instead of two separate mutexes.
1512 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1515 * include/debug/map.h (insert(_InputIterator, _InputIterator)):
1517 * testsuite/23_containers/map/insert/16813.cc: New.
1519 2004-07-29 Phil Edwards <phil@codesourcery.com>
1521 * docs/html/faq/index.html: Update version references. Make
1522 clear that code from SGI has diverged greatly. Remove references
1523 to library snapshots and what's-new sections.
1524 * docs/html/faq/index.txt: Regenerate.
1526 2004-07-28 Matt Austern <austern@apple.com>
1528 * include/bits/stl_construct.h (_Destroy): New three-argument
1529 overload that takes an allocator argument. Another inline
1530 three-argument overload that takes std::allocator and dispatches
1531 to the two-argument version.
1532 * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
1533 Change return type to void to match uninitialized_fill_n.
1534 (__uninitialized_copy_a_): New function. Like uninitialized_copy
1535 except that it takes an allocator and uses it for construct and
1536 destroy. If the allocator is std::allocator, dispatches to
1538 (__uninitialized_fill_a): Likewise.
1539 (__uninitialized_fill_n_a): Likewise.
1540 (__uninitialized_copy_copy): Give it an allocator argument.
1541 (__uninitialized_fill_copy): Likewise.
1542 (__uninitialized_copy_fill): Likewise.
1543 * include/bits/deque.tcc: Use new forms defined in stl_construct.h
1544 and stl_uninitialized.h. Replace use of single-argument _Construct
1545 and _Destroy with use of allocator's construct and destroy methods.
1546 * include/bits/list.tcc: Likewise.
1547 * include/bits/stl_deque.h: Likewise.
1548 * include/bits/stl_list.h: Likewise.
1549 * include/bits/stl_tree.h: Likewise.
1550 * include/bits/stl_vector.h: Likewise.
1551 * include/bits/vector.tcc: Likewise.
1552 * include/ext/hashtable.h: Use rebind so that allocator_type
1553 has correct type for a container's allocator. Replace use of
1554 single-argument _Construct and _Destroy with use of allocator's
1555 construct and destroy methods.
1556 * include/ext/memory (__uninitialized_copy_n_a): New function.
1557 Like uninitialized_copy_n except that it takes an extra parameter,
1558 an allocator, and uses it for construct and destroy operations.
1559 * include/ext/rope: Use new forms defined in stl_construct.h,
1560 stl_uninitialized.h, and ext/memory. Replace use of single-argument
1561 _Construct and _Destroy with allocator construct and destroy methods.
1562 * include/ext/ropeimpl.h: Likewise.
1563 * include/ext/slist.h: Likewise.
1564 * testsuite/testsuite_allocator.h (check_construct_destroy): New.
1565 * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
1566 * testsuite/23_containers/deque/check_construct_destroy.cc: New.
1567 * testsuite/23_containers/list/check_construct_destroy.cc: New.
1568 * testsuite/23_containers/set/check_construct_destroy.cc: New.
1569 * testsuite/23_containers/vector/check_construct_destroy.cc: New.
1570 * testsuite/ext/hash_check_construct_destroy.cc: New.
1571 * testsuite/ext/slist_check_construct_destroy.cc: New.
1573 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
1575 2003-10-01 Eric Christopher <echristo@redhat.com>
1576 * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
1578 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
1579 * config/cpu/sh/atomicity.h: New. Use movli and movco on SH4a.
1581 2004-07-23 Benjamin Kosnik <bkoz@redhat.com>
1584 * include/bits/locale_facets.tcc: Fix for -Werror.
1586 2004-07-23 Jonathan Wakely <redi@gcc.gnu.org>
1588 * docs/html/debug.html: Say debug mode only available since 3.4.0.
1590 2004-07-21 Benjamin Kosnik <bkoz@redhat.com>
1592 * docs/doxygen/mainpage.html: Clarify links.
1593 * docs/doxygen/stdheader.cc: Add files.
1594 * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
1595 * docs/doxygen/user.cfg.in: New options, wrap.
1597 2004-07-20 Danny Smith <dannysmith@users.sourceforge.net>
1599 * include/c_std/std_cwchar.h (wcsstr): Correct signature.
1601 2004-07-19 Benjamin Kosnik <bkoz@redhat.com>
1604 * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
1606 2004-07-17 Richard Sandiford <rsandifo@redhat.com>
1609 * scripts/create_testsuite_files: Pass -print to find.
1611 2004-07-15 Paolo Carlini <pcarlini@suse.de>
1613 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
1614 * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
1616 2004-07-15 Jakub Jelinek <jakub@redhat.com>
1619 * acinclude.m4 (glibcxx_shared_libgcc): Correct
1620 glibcxx_shared_libgcc test for multilibs.
1621 * configure: Rebuilt.
1623 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1626 * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
1627 the signature to return void, as per 20.4.4.3.
1628 * include/bits/stl_vector.h (vector::vector(size_type,
1629 const value_type&, const allocator_type&), vector::vector(size_type),
1630 vector::_M_initialize_dispatch): Adjust callers.
1631 * include/bits/vector.tcc (vector<>::_M_fill_assign,
1632 vector<>::_M_fill_insert): Likewise.
1633 * testsuite/20_util/memory/16505.cc: New.
1635 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1637 * testsuite/22_locale/locale/cons/12658_thread-1.cc,
1638 12658_thread-2.cc: Use __gnu_test::try_named_locale.
1640 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1642 * docs/html/ext/mt_allocator.html: Add docs for _Tune.
1643 * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
1644 (__mt_alloc::_S_set_options): Same.
1647 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1649 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
1651 * configure: Regenerated.
1653 2004-07-13 Paolo Carlini <pcarlini@suse.de>
1655 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
1656 to 12658_thread-1.cc and xfail.
1657 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
1658 simpler version of 12658_thread-1.cc, still failing on 3_3 and
1659 not failing on 3_4/mainline - both on single processor and
1660 multiprocessor machines.
1662 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
1664 * docs/html/abi.html: Remove non-public qualification.
1666 * include/bits/concurrence.h: Tweak comments.
1668 2004-07-11 Paolo Carlini <pcarlini@suse.de>
1670 Add wchar_t counterparts of the basic_streambbuf<char> tests.
1671 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
1672 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
1674 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
1675 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
1677 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
1678 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
1679 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
1680 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
1681 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
1683 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
1685 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
1687 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
1689 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
1690 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
1692 2004-07-11 Phil Edwards <phil@codesourcery.com>
1694 * acinclude.m4: Cosmetic shell syntax fixes.
1695 * configure.ac: Bring comment inline with reality.
1696 * configure.host: Both of the above. Move 'arm' case to right
1697 place in host_cpu switch.
1698 * aclocal.m4, configure: Regenerate.
1700 2004-07-09 Paolo Carlini <pcarlini@suse.de>
1702 Add wchar_t counterparts of the basic_stringbuf<char> tests.
1703 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
1704 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
1705 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
1706 3599.cc, 9988.cc: Likewise.
1707 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
1709 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
1711 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
1713 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
1715 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
1716 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
1717 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
1718 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
1720 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
1721 9404-1.cc: Likewise.
1722 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
1723 9404-2.cc: Likewise.
1724 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
1726 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
1727 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
1729 2004-07-08 Paolo Carlini <pcarlini@suse.de>
1731 * include/bits/gslice.h: Trivial formatting fixes.
1732 * include/bits/gslice_array.h: Likewise.
1733 * include/bits/indirect_array.h: Likewise.
1734 * include/bits/mask_array.h: Likewise.
1735 * include/bits/slice_array.h: Likewise.
1736 * include/bits/valarray_after.h: Likewise.
1737 * include/bits/valarray_array.h: Likewise.
1738 * include/bits/valarray_before.h: Likewise.
1739 * include/std/std_valarray.h: Likewise.
1741 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
1744 * include/bits/basic_string.h (basic_string::operator=): Revert.
1746 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
1748 * configure.ac (libtool_VERSION): To 6:2:0.
1749 * configure: Regenerated.
1751 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
1753 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
1756 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
1758 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
1760 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
1763 2004-07-07 Paolo Carlini <pcarlini@suse.de>
1766 * include/bits/sstream.tcc (overflow): When reallocating _M_string
1767 use an exponential grow policy.
1768 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
1769 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
1771 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
1774 * crossconfig.m4: Add in bits for djgpp.
1775 * configure: Regenerate.
1777 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
1779 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
1780 instantiation of set and multiset (functor param given as int).
1782 2004-07-04 Paolo Carlini <pcarlini@suse.de>
1784 * include/bits/basic_string.h: Trivial formatting fixes and/or
1785 const-ification of some variables.
1786 * include/bits/deque.tcc: Likewise.
1787 * include/bits/stl_algobase.h: Likewise.
1788 * include/bits/stl_bvector.h: Likewise.
1789 * include/bits/stl_construct.h: Likewise.
1790 * include/bits/stl_deque.h: Likewise.
1791 * include/bits/stl_pair.h: Likewise.
1792 * include/bits/stl_vector.h: Likewise.
1793 * include/bits/vector.tcc: Likewise.
1795 2004-07-04 Paolo Carlini <pcarlini@suse.de>
1797 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
1798 systems with no COMDAT or weak support.
1799 * testsuite/25_algorithms/copy/2.cc: Likewise.
1800 * testsuite/25_algorithms/copy/3.cc: Likewise.
1801 * testsuite/25_algorithms/copy/4.cc: Likewise.
1803 2004-07-03 Paul Brook <paul@codesourcery.com>
1805 * configure.ac: Set ABI_TWEAKS_SRCDIR.
1806 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
1807 setting atomicity_dir. Override type_cpu for arm based targets.
1808 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
1809 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
1810 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
1811 * libsupc++/vec.cc: Ditto.
1812 * config/cpu/arm/cxxabi_tweaks.h: New file.
1813 * config/cpu/generic/cxxabi_tweaks.h: New file.
1814 * */Makefile.in: Regenerate.
1815 * configure: Regenerate.
1817 2004-07-02 Paolo Carlini <pcarlini@suse.de>
1819 * include/bits/type_traits.h (_Is_normal_iterator): Move...
1820 * include/bits/cpp_type_traits.h: ... here, renamed to
1821 __is_normal_iterator and consistent with the other traits.
1822 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
1823 to the struct __copy_normal and three specializations.
1824 (__copy_backward_output_normal_iterator,
1825 __copy_backward_input_normal_iterator): Likewise, convert to
1826 the struct __copy_backward_normal and three specializations.
1827 (copy, copy_backward): Use the latter.
1828 (__copy_aux, __copy_backward_aux): Very minor tweaks.
1830 2004-07-01 Paolo Carlini <pcarlini@suse.de>
1832 * include/bits/stl_algobase.h (__copy_trivial): Remove.
1833 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
1834 __is_trivially_copyable, __are_same and __copy::copy.
1835 (__copy): Rewrite as a class template and two specializations.
1836 (__copy_ni2): Simplify, just call __copy_aux.
1838 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
1840 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
1841 for destination value type != source value type.
1843 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
1844 Per Bothner <per@bothner.com>
1845 Mohan Embar <gnustuff@thisiscool.com>
1848 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
1849 (__glibcxx_mutex): Encapsulate mutex init function into type for
1850 threaded configurations without __GTHREAD_MUTEX_INIT.
1851 (lock::lock): Make device member a reference.
1852 (lock::~lock): Same.
1853 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
1855 * src/allocator.cc: Same.
1857 2004-06-30 Brad Spencer <spencer@infointeractive.com>
1859 * include/ext/mt_allocator.h: Handle allocations at static
1860 initialization that happen before _S_options is (automatically)
1861 constructed; set _S_init even if _M_force_new is true.
1863 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
1865 * config/linker-map.gnu: Revert new exports.
1867 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
1868 Stuart Anderson <anderson@netsweng.com>
1870 * config/linker-map.gnu: Add destructor exports for abstract base
1871 classes to conform to LSB.
1873 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1874 Paolo Carlini <pcarlini@suse.de>
1876 * include/bits/cpp_type_traits.h: Add __is_pointer and
1877 __is_trivially_copyable.
1878 * include/bits/stl_algobase.h (fill, fill_n): Slightly
1879 tweak to use the latter.
1880 (__copy_backward_dispatch): Remove.
1881 (__copy_backward_aux): Rewrite to use __is_pointer and
1882 __is_trivially_copyable and __copy_backward::copy_b.
1883 (__copy_backward): Rewrite as a class template and two
1886 2004-06-30 Paolo Carlini <pcarlini@suse.de>
1888 * testsuite/25_algorithms/copy.cc: Move to...
1889 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
1890 * testsuite/25_algorithms/copy/2.cc: New.
1891 * testsuite/25_algorithms/copy/3.cc: New.
1892 * testsuite/25_algorithms/copy/4.cc: New.
1894 2004-06-29 Paul Brook <paul@codesourcery.com>
1896 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
1897 element size in the cookie.
1899 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1901 * include/bits/cpp_type_traits.h: Move the additions to
1902 namespace __gnu_internal outside of namespace std; trivial
1905 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
1907 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
1908 Revert -Weffc++ changes that defined copy ctory and or assignment
1910 * libsupc++/tinfo.cc (__upcast_result): Same.
1912 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1914 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
1915 the algorithm used to name the categories.
1917 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
1919 * include/Makefile.am: Give a .gch extension to
1920 the PCH files, not only to the directory.
1921 * include/Makefile.in: Regenerate.
1923 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1925 * config/locale/gnu/monetary_members.cc
1926 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
1927 assignments of _M_decimal_point and _M_thousands_sep.
1929 2004-06-27 Paolo Carlini <pcarlini@suse.de>
1931 * docs/html/17_intro/contribute.html: Update some links.
1932 * docs/html/17_intro/porting-howto.html: Likewise.
1933 * docs/html/17_intro/porting-howto.xml: Likewise.
1934 * docs/html/18_support/howto.html: Likewise.
1935 * docs/html/21_strings/howto.html: Likewise.
1936 * docs/html/27_io/howto.html: Likewise.
1937 * docs/html/configopts.html: Likewise.
1938 * docs/html/ext/howto.html: Likewise.
1939 * docs/html/faq/index.html: Likewise.
1940 * docs/html/install.html: Don't mention 2.x compilers.
1942 2004-06-27 Paolo Carlini <pcarlini@suse.de>
1944 * include/ext/rope: Trivial formatting fixes.
1945 * include/ext/ropeimpl.h: Likewise.
1947 2004-06-26 Paolo Carlini <pcarlini@suse.de>
1950 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
1951 availability of strto(u)ll, not used anymore in the iostreams.
1952 * configure: Regenerate.
1954 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
1957 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
1959 * configure: Regenerate.
1961 2004-06-25 Paul Brook <paul@codesourcery.com>
1963 * libsupc++/cxxabi.h: Define __ARM_EABI__
1965 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
1967 2004-06-25 Paul Brook <paul@codesourcery.com>
1969 * include/bits/concurrence.h: Still create mutex object when
1972 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1974 * include/bits/stl_algobase.h (fill, fill_n): Revert last
1975 change: actually we need to copy construct an object of type
1976 _Tp, not of type iterator_traits<>::value_type, therefore the
1979 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1981 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
1982 dispatch: use iterator_traits<>::value_type, not _Tp.
1984 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1986 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
1987 * testsuite/25_algorithms/fill/2.cc: Likewise.
1989 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
1990 Paolo Carlini <pcarlini@suse.de>
1992 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
1993 for fill and fill_n, respectively: when copying is cheap, use a
1994 temporary to avoid a memory read in each iteration.
1996 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1998 * testsuite/25_algorithms/fill/1.cc: New.
1999 * testsuite/25_algorithms/fill/2.cc: Likewise.
2001 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
2003 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
2004 Remove copy constructor and assignment operator.
2006 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
2008 * include/bits/concurrence.h (__gnu_cxx::lock): New.
2009 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
2010 (__pool_base::_M_get_mutex): New.
2011 * include/bits/allocator.h: Tweak.
2012 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
2013 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
2014 * include/bits/stl_threads.h: Remove.
2015 * include/Makefile.am: Also here.
2016 * include/Makefile.in: Regenerate.
2018 * src/locale_init.cc: Use __gnu_cxx::lock.
2020 * src/allocator.cc: Move all instantiations...
2021 * src/allocator-inst.cc: ...here.
2023 2004-06-23 Andrew Pinski <apinski@apple.com>
2025 * linkage.m4: Remove check for libmx.
2026 * configure: Regenerate.
2028 2004-06-23 Paolo Carlini <pcarlini@suse.de>
2031 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
2032 Don't require the _DefaultConstructibleConcept.
2033 (struct _ForwardIteratorConcept): Require it here.
2035 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
2037 * include/bits/istream.tcc (getline): Make sure arguments passed
2038 to min/max have the same type.
2039 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
2040 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
2042 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
2044 * docs/html/abi.html: Update links.
2046 2004-06-22 Paolo Carlini <pcarlini@suse.de>
2048 * testsuite/26_numerics/complex_inserters_extractors.cc,
2049 complex_value.cc, buggy_complex.cc: Move to...
2050 * testsuite/26_numerics/complex/: ... here.
2051 * testsuite/26_numerics/c99_classification_macros_c++.cc,
2052 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
2053 fabs_inline.cc: Move to...
2054 * testsuite/26_numerics/cmath/: ... here.
2055 * testsuite/26_numerics/binary_closure.cc, slice.cc,
2056 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
2057 valarray_name_lookup.cc, valarray_operators.cc,
2058 valarray_subset_assignment.cc: Move to...
2059 * testsuite/26_numerics/valarray/: ... here (new dir).
2060 * testsuite/26_numerics/sum_diff.cc: Move to...
2061 * testsuite/26_numerics/numeric/: ... here (new dir).
2063 2004-06-22 Paolo Carlini <pcarlini@suse.de>
2065 * include/std/std_istream.h (ignore(streamsize __n = 1,
2066 int_type __delim = traits_type::eof())): Split into...
2067 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2068 int_type __delim)): The first two can be much more simpler
2069 and efficient than the fully general case; also, the last
2070 two can take advantage of the same mechanism already used
2072 * include/bits/istream.tcc (ignore(streamsize __n = 1,
2073 int_type __delim = traits_type::eof()): Remove.
2074 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2075 int_type __delim)): New.
2077 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
2079 * config/linker-map.gnu: Use wildcards for
2080 __basic_file::sys_open(FILE*, _Ios_Openmode).
2082 2004-06-20 Paolo Carlini <pcarlini@suse.de>
2084 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
2086 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2088 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
2089 the alignment requested.
2090 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
2091 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
2092 (__mt_alloc<>::deallocate): Likewise.
2094 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2097 * include/debug/safe_base.h
2098 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
2099 _Safe_sequence_base::operator=): Provide definitions.
2100 * testsuite/23_containers/bitset/cons/16020.cc: New.
2102 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
2104 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
2105 (__pool_base): Remove unused template parameter. Add
2106 protected. Move lock data into __pool_base::_Lock. Remove static
2107 on member functions.
2108 (__pool_base::_M_get_free_list): New.
2109 (__pool_alloc): Move _S_force new here.
2110 * src/allocator.cc: Move out of line __pool_base definitions here.
2111 * config/linker-map.gnu: Export bits from __pool_base.
2113 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2115 * config/locale/gnu/numeric_members.cc
2116 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
2117 assignments of _M_decimal_point and _M_thousands_sep.
2118 * config/locale/gnu/time_members.cc
2119 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
2120 and reformat assignments of date and time fields.
2122 2004-06-16 Paolo Carlini <pcarlini@suse.de>
2124 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
2125 to use _Data_allocate.
2126 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
2127 (rope<>::_S_substring): Likewise.
2128 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
2129 (rope<>::c_str()): Likewise.
2130 (rope<>::replace_with_c_str()): Likewise.
2132 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
2133 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
2135 (_Rope_iterator_base<>::_S_setcache): Likewise.
2136 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
2137 (rope<>::_S_substring): Likewise.
2138 (rope<>::_S_dump): Likewise.
2139 (rope<>::_S_fetch_ptr): Likewise.
2140 (rope<>::_S_compare): Likewise.
2141 (rope<>::replace_with_c_str()): Likewise.
2143 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
2144 * testsuite/ext/rope/2.cc: New.
2146 2004-06-16 Paolo Carlini <pcarlini@suse.de>
2147 Matt Austern <austern@apple.com>
2149 * testsuite/ext/rope/3.cc: New.
2151 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
2153 * acinclude.m4: Remove useless multilib configury.
2154 * Makefile.am: Remove useless multilib rules.
2155 * aclocal.m4: Regenerate.
2156 * Makefile.in: Regenerate.
2157 * configure: Regenerate.
2159 2004-06-15 Paolo Carlini <pcarlini@suse.de>
2161 * include/ext/hashtable.h: Trivial formatting fixes.
2162 * include/ext/rb_tree: Likewise.
2164 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2166 * include/ext/hash_map: Trivial formatting fixes.
2167 * include/ext/hash_set: Likewise.
2168 * include/ext/memory: Likewise.
2169 * include/ext/numeric: Likewise.
2171 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
2173 * Makefile.in: Regenerate with automake 1.8.5.
2175 * include/Makefile.in: Same.
2176 * libmath/Makefile.in: Same.
2177 * libsupc++/Makefile.in: Same.
2178 * po/Makefile.in: Same.
2179 * src/Makefile.in: Same.
2180 * testsuite/Makefile.in: Same.
2182 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2184 * include/ext/slist: Trivial formatting fixes.
2186 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2188 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
2189 Don't use the 'magic number' 10 in the computation of __minlen;
2190 never access __name past __minlen; in the loop over __i3, don't
2191 decrease __nmatches and increase __i3 at once, only either of
2194 2004-06-13 Paolo Carlini <pcarlini@suse.de>
2196 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
2197 time_get<>::do_get_date): Use only once _M_extract_via_format,
2198 instead of going through "%X"/"%x" and calling it two times
2201 2004-06-12 Paolo Carlini <pcarlini@suse.de>
2203 * include/ext/algorithm: Trivial formatting fixes.
2204 * include/ext/functional: Likewise.
2205 * include/ext/hash_fun.h: Likewise.
2206 * include/ext/iterator: Likewise.
2208 2004-06-12 Paolo Carlini <pcarlini@suse.de>
2210 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
2211 size_type)): Reimplement using std::search.
2212 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
2214 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
2216 * testsuite/performance/21_strings/string_find.cc: New.
2218 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
2220 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
2222 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
2224 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
2225 this function return a value.
2227 2004-06-09 Paolo Carlini <pcarlini@suse.de>
2230 * include/bits/stl_deque.h: Consistently with stl_set.h, define
2231 pointer as allocator's pointer, likewise for reference,
2232 const_pointer, and const_reference.
2233 * include/bits/stl_list.h: Likewise.
2234 * include/bits/stl_map.h: Likewise.
2235 * include/bits/stl_multimap.h: Likewise.
2236 * include/bits/stl_vector.h: Likewise.
2238 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
2240 * crossconfig.m4: Remove signbit, signbitf, signbitl.
2241 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
2242 builtin math functions instead of AC_DEFINE_UNQUOTED.
2243 * configure: Regenerate.
2245 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
2247 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
2248 * docs/doxygen/mainpage.html: Remove links.
2250 2004-06-08 Jason Merrill <jason@redhat.com>
2252 * config/linker-map.gnu: Use wildcards for
2253 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
2255 2004-06-08 Paolo Carlini <pcarlini@suse.de>
2257 * include/ext/pool_allocator.h: Convert to a global free-list,
2258 as per the original SGI/HP design: move the implementation
2259 details to struct __pool_base, from which __pool_alloc derives.
2260 * src/allocator.cc: Instantiate __pool_base.
2262 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
2263 Paolo Carlini <pcarlini@suse.de>
2265 * testsuite/testsuite_performance.h
2266 (resource_counter::allocated_memory): Make it return the right
2267 number of bytes requested by the allocators/application. This is
2268 the sbrk+mmaped memory.
2270 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
2272 * include/std/std_complex.h (log): Tidy.
2274 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
2276 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
2277 * testsuite/testsuite_abi.cc: Same.
2278 * configure.ac (libtool_VERSION): Bump to 6:1:0.
2279 * configure: Regenerate.
2280 * aclocal.m4: Regenerate.
2282 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2284 * include/std/std_complex.h (complex<_Tp>): Properly indent
2286 (complex<>::__rep): New.
2287 (__complex_abs): New. Dispatch to built-ins.
2289 (__complex_arg): New. Dispatch to built-ins.
2291 (__complex_cos): New. Dispatch to built-ins.
2293 (__complex_cosh): New. Dispatch to built-ins.
2295 (__complex_exp): New. Dispatch to built-ins.
2297 (__complex_log): New. Dispatch to built-ins.
2299 (__complex_sin): New. Dispatch to built-ins.
2301 (__complex_sinh): New. Dispatch to built-ins.
2303 (__complex_sqrt): New. Dispatch to built-ins.
2305 (__complex_tan): New. Dispatch to built-ins.
2307 (__complex_tanh): New. Dispatch to built-ins.
2309 (__complex_pow): New. Dispatch to built-ins.
2312 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
2313 Benjamin Kosnik <bkoz@redhat.com>
2316 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
2317 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
2318 * config/io/basic_file_stdio.cc (__basic_file::file): New.
2319 * config/io/basic_file_stdio.h: Define.
2321 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
2324 * docs/html/documentation.html: Update doxygen links for 3.4.0.
2326 2004-05-27 Jan Beulich <jbeulich@novell.com>
2328 * scripts/create_testsuite_files: Tweak.
2330 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
2333 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
2334 bits to do the same thing.
2336 2004-05-24 Paolo Carlini <pcarlini@suse.de>
2338 * include/bits/istream.tcc (ignore): Correctly deal with
2339 n == numeric_limits<streamsize>::max().
2340 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
2342 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
2343 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
2344 __n == numeric_limits<>::min().
2346 * include/bits/istream.tcc: Minor tweaks.
2348 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2350 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2352 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2354 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2356 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2358 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2361 Fixups for -Weffc++.
2362 * include/bits/basic_string.h (basic_string::operator=): Return
2363 pointer to this instead of result of assign. Although redundant,
2364 this doesn't impact resultant codegen.
2366 * include/bits/locale_facets.h (__numpunct_cache): Declare
2367 assignment opxserator and copy constructor private.
2368 (__timepunct_cache): Same.
2369 (__moneypunct_cache): Same.
2370 (collate): Use member initialization list for _M_c_locale_collate.
2371 * config/locale/gnu/messages_members.h: Same.
2372 * config/locale/gnu/time_members.h (__timepunct): Same.
2373 * src/codecvt.cc: Use member initialization list to initialize
2374 _M_c_locale_codecvt.
2375 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
2376 * config/os/gnu-linux/ctype_noninline.h: Same.
2377 * src/locale.cc (_Impl): Same.
2378 * src/locale_init.cc: Same.
2379 * src/localename.cc: Same.
2381 * include/bits/basic_ios.h (basic_ios): Complete member
2382 initialization list.
2383 * include/bits/istream.tcc (basic_istream::sentry): Same.
2384 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
2385 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
2386 _M_pback to member initialization list.
2387 * include/std/std_streambuf.h: Same.
2388 * include/std/std_sstream.h: Same, for _M_mode.
2389 * src/ios.cc (ios_base): Same.
2391 * include/ext/rope: Make derived classes match exception
2393 specifications. Add copy constructors and assignment operators.
2395 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
2396 constructor and assignment operator protected.
2397 (_Safe_iterator_base): Same.
2398 * include/debug/formatter.h (_Error_formatter): Define copy
2399 constructor and assignment operator.
2401 * include/backward/strstream: Declare assignment operator and copy
2402 constructor private.
2404 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2406 * testsuite/testsuite_hooks.h (func_callback): Declare copy
2407 constructor and assignment operator private.
2408 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
2409 exception specifications of base class.
2410 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
2411 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
2412 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2414 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2416 * libsupc++/cxxabi.h: Remove duplicated and useless public and
2417 private keywords in class declarations. Format. Use
2418 stddef.h. Expose declarations to "C" compilation.
2419 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
2420 assignment operator.
2421 (__dyncast_result): Same.
2422 * libsupc++/vec.cc (uncatch_exception): Same, use member
2423 initialization list.
2425 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2427 * testsuite/abi_check.cc: Add unistd.h.
2429 2004-05-22 Paolo Carlini <pcarlini@suse.de>
2432 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
2433 __int_to_char(unsigned long long)): Showpos is not relevant
2435 * testsuite/22_locale/num_put/put/char/15565.cc: New.
2436 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
2438 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
2440 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
2441 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
2442 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2443 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
2444 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
2445 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
2447 2004-05-21 Matthias Klose <doko@debian.org>
2449 * docs/doxygen/run_doxygen: Bump required version.
2451 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
2453 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
2454 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
2456 2004-05-21 Paolo Carlini <pcarlini@suse.de>
2458 * include/bits/istream.tcc (ignore): Remove redundant line.
2459 (readsome): Tidy, closely following 27.6.1.3, p30.
2461 2004-05-20 Paolo Carlini <pcarlini@suse.de>
2463 * include/bits/istream.tcc (operator>>(basic_istream<>&,
2464 basic_string<>&)): Use a temporary buffer, thus avoiding
2465 reallocation for common case.
2466 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2468 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2471 * include/bits/istream.tcc: Const-ification of a few variables.
2473 * include/bits/ostream.tcc: Trivial formatting fixes and
2474 const-ification of some variables.
2476 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
2480 * docs/doxygen/Intro.3: Remove Allocators.3.
2481 Add new extension headers, extension namespace list.
2482 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
2483 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
2484 __gnu_debug::. Remove __policy_ renames.
2485 * docs/doxygen/guide.html: Add dot note.
2486 * docs/doxygen/stdheader.cc: Edit, add files.
2487 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
2489 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2491 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
2493 2004-05-18 Jan Beulich <jbeulich@novell.com>
2496 * scripts/create_testsuite_files: Also find source files through
2499 2004-05-18 Jan Beulich <jbeulich@novell.com>
2502 * testsuite/lib/libstdc++.exp: Make test files writable.
2504 2004-05-18 Paolo Carlini <pcarlini@suse.de>
2506 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
2509 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
2511 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
2512 allocation loop which removes blocks from the global free list
2513 from O(N) to O(1) when the required blocks are <= the number
2516 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2518 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
2520 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
2522 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
2523 * testsuite/23_containers/deque/14340.cc: New.
2524 * testsuite/23_containers/list/14340.cc: New.
2525 * testsuite/23_containers/map/14340.cc: New.
2526 * testsuite/23_containers/multimap/14340.cc: New.
2527 * testsuite/23_containers/multiset/14340.cc: New.
2528 * testsuite/23_containers/set/14340.cc: New.
2529 * testsuite/23_containers/vector/14340.cc: New.
2531 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
2534 * include/debug/safe_iterator.h (_Safe_iterator converting
2535 constructor): Only allow declaration to instantiate when the
2536 incoming _Safe_iterator has exactly the right iterator type.
2538 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
2540 * include/bits/boost_concept_check.h: Fix old attribute syntax.
2541 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
2542 to pass concept-checks.
2543 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2544 * testsuite/23_containers/set/modifiers/swap.cc: Same.
2545 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2547 2004-05-16 Paolo Carlini <pcarlini@suse.de>
2549 * include/std/std_bitset.h: Minor formatting fixes.
2551 2004-05-16 Paolo Carlini <pcarlini@suse.de>
2553 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2554 Consistently update __bin._M_free[0].
2555 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
2556 __bin._M_free[0] to simplify the while loop (i.e., the number
2557 of iterations becomes known at the outset).
2559 2004-05-15 Paolo Carlini <pcarlini@suse.de>
2561 * include/std/std_bitset.h: Trivial formatting fixes.
2563 2004-05-14 Paolo Carlini <pcarlini@suse.de>
2564 Ivan Godard <igodard@pacbell.net>
2567 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
2568 * testsuite/23_containers/bitset/ext/15361.cc: New.
2570 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2573 * crossconfig.m4: Add C99 math bits for linux crosses.
2574 * configure: Regenerate.
2576 2004-05-13 Simon Marshall <simon.marshall@misys.com>
2577 Benjamin Kosnik <bkoz@redhat.com>
2580 * include/bits/locale_facets.h: Fix for -fno-for-scope.
2581 * include/debug/safe_sequence.h: Same.
2582 * include/debug/safe_iterator.tcc: Same.
2583 * src/debug.cc: Same.
2584 * src/locale.cc: Same.
2585 * src/locale_init.cc: Same.
2586 * src/localename.cc: Same.
2587 * config/locale/gnu/ctype_members.cc: Same.
2588 * config/locale/gnu/numeric_members.cc: Same.
2589 * testsuite/testsuite_abi.cc: Same.
2590 * testsuite/testsuite_hooks.cc: Same.
2592 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
2594 * docs/html/abi.html: Document effect of -fabi-version on value
2595 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
2598 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2601 * docs/html/faq/index.html: Update docs for libsupc++ usage.
2603 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2606 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
2608 (_GLIBCXX_mutex_address): Same.
2609 (_GLIBCXX_once): Same.
2610 (_GLIBCXX_mutex_init): Same.
2611 (_GLIBCXX_mutex_address_init): Same.
2613 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2615 * docs/html/abi.html: New.
2616 * docs/html/abi.txt: Remove.
2617 * docs/html/documentation.html: Add link.
2618 * testsuite/Makefile.am: Add files.
2619 * testsuite/Makefile.in: Regenerated.
2620 * testsuite/abi_check.cc: Move and modify code into...
2621 * testsuite/testsuite_abi.cc: Add.
2622 * testsuite/testsuite_abi.h: Add.
2624 * docs/html/17_intro/TODO: Update.
2625 * include/bits/stl_pair.h: Format.
2627 2004-05-06 Matthias Klose <doko@debian.org>
2629 * include/backward/iterator.h: Add GPL copyright info,
2630 with exception clause.
2631 * include/bits/boost_concept_check.h: Likewise.
2633 * libsupc++/tinfo.h: Likewise.
2634 * po/string_literals.cc: Likewise.
2636 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
2638 * acinclude.m4: Replace -W with more speaking -Wextra.
2639 * configure: Rebuilt.
2641 2004-05-03 Paolo Carlini <pcarlini@suse.de>
2643 Optimize locale::_M_impl->_M_names for the most common cases:
2644 !_M_names[0] means unnamed; !_M_names[1] means all the categories
2645 the same name (_M_names[0] && _M_names[1] means that the full set
2646 of _M_names must be processed, the general case).
2647 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
2648 Tweak, saving work when !_M_names[1].
2649 (locale::locale(const locale&, _Facet*): Simplify: now just setting
2650 _M_names[0] = 0 means unnamed.
2651 * src/locale.cc (locale::operator==): Deal first with the common,
2652 easy cases, otherwise fall back to locale::name().
2653 (locale::name()): Tweak, if !_M_names[0] just return "*".
2654 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
2655 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
2656 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
2657 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
2658 Simplify when !std::strchr, just updating _M_names[0]; clean up.
2659 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
2660 for the general case (full set of names), then do the usual work;
2663 * src/locale.cc (locale::name()): Reserve space in __ret.
2664 * src/locale_init.cc (locale::global(const locale&)): Save
2665 the name in a temporary.
2666 * src/localename.cc (locale::locale(const char*)): Reserve space
2669 2004-04-29 Paolo Carlini <pcarlini@suse.de>
2671 * src/locale.cc (locale::operator==): Always avoid constructing
2672 locale::name(), directly compare pairs of _M_names.
2674 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2676 * include/bits/istream.tcc: Fix comment.
2678 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2680 * include/bits/stl_vector.h: Trivial formatting fixes.
2681 * include/bits/vector.tcc: Likewise.
2683 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2685 PR libstdc++/15002 (continued again)
2686 * include/bits/istream.tcc (getline(basic_istream<>&,
2687 basic_string<>&, _CharT)): Use a temporary buffer, thus
2688 avoiding reallocation for common case.
2690 * include/bits/basic_string.tcc (_S_construct(_InIterator,
2691 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
2692 of temporary buffer to a power of two.
2694 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
2696 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2698 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2700 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2702 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2704 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2705 Petur Runolfsson <peturr02@ru.is>
2707 PR libstdc++/15002 (continued)
2708 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
2709 streamsize, char_type)): Use traits::find/copy in a loop to speed
2710 up greatly the function in the common case (I/O buffer size >> 1).
2712 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2714 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
2716 * include/bits/istream.tcc (getline(basic_istream<>&,
2717 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
2718 of sbumpc(), consistently with the other functions, thus also
2719 dealing correctly with the case of exceeded string::max_size().
2721 2004-04-24 Matthias Klose <doko@debian.org>
2723 Jonathan Wakely <cow@compsoc.man.ac.uk>
2724 * docs/html/configopts.html: Fix reference to allocator config option.
2726 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
2728 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
2729 * configure: Regenerate.
2731 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
2733 PR libstdc++/15047, libstdc++/11610
2734 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
2735 (libstdc++_init): Don't pass outdir to v3-copy-files.
2737 2004-04-21 Paolo Carlini <pcarlini@suse.de>
2739 * include/bits/deque.tcc: Trivial formatting fixes.
2740 * include/bits/stl_deque.h: Likewise.
2741 * include/bits/stl_list.h: Likewise.
2742 * include/bits/stl_tree.h: Likewise.
2744 2004-04-21 Paolo Carlini <pcarlini@suse.de>
2745 Andrew Pinski <pinskia@physics.uc.edu>
2747 * include/bits/basic_string.tcc (_M_mutate): Don't compute
2748 __src unnecessarily.
2750 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
2752 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
2753 Clarify assertion, set test variable to false before assert.
2754 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
2755 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
2756 * testsuite/27_io/ios_base/storage/2.cc: Same.
2758 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
2760 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
2761 * testsuite/27_io/fpos/14320-3.cc: Same.
2763 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
2764 * testsuite/27_io/fpos/1.cc: Same.
2765 * testsuite/27_io/basic_stringstream/2.cc: Same.
2766 * testsuite/27_io/basic_stringbuf/4.cc: Same.
2767 * testsuite/27_io/basic_stringbuf/1.cc: Same.
2768 * testsuite/27_io/basic_stringbuf/2.cc: Same.
2769 * testsuite/27_io/basic_streambuf/2.cc: Same.
2770 * testsuite/27_io/basic_ostringstream/2.cc: Same.
2771 * testsuite/27_io/basic_ostream/2.cc: Same.
2772 * testsuite/27_io/basic_ofstream/2.cc: Same.
2773 * testsuite/27_io/basic_istringstream/2.cc: Same.
2774 * testsuite/27_io/basic_istream/2.cc: Same.
2775 * testsuite/27_io/basic_iostream/2.cc: Same.
2776 * testsuite/27_io/basic_ios/2.cc: Same.
2777 * testsuite/27_io/basic_ifstream/2.cc: Same.
2778 * testsuite/27_io/basic_fstream/2.cc: Same.
2779 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
2781 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
2782 unsigned against zero.
2783 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
2784 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
2786 * testsuite/18_support/new_delete_placement.cc: Initialize
2787 variables before first use.
2788 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
2789 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
2790 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
2791 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
2793 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
2794 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
2796 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
2797 * testsuite/27_io/types/2.cc: Same.
2799 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
2801 * testsuite/27_io/fpos/14775.cc: Same.
2803 2004-04-19 Paolo Carlini <pcarlini@suse.de>
2805 PR libstdc++/15002 (partial)
2806 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2807 Special case __n2 == 1, not calling traits_type::assign/copy.
2809 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
2811 * include/bits/stl_bvector.h: Use _M_impl._M_start.
2813 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
2815 * include/bits/c++config (_GLIBCXX_STD): New.
2816 * src/list.cc: Use it.
2817 * include/std/std_bitset.h: Same.
2818 * include/bits/vector.tcc: Same.
2819 * include/bits/stl_set.h: Same.
2820 * include/bits/stl_multiset.h: Same.
2821 * include/bits/stl_multimap.h: Same.
2822 * include/bits/stl_map.h: Same.
2823 * include/bits/stl_list.h: Same.
2824 * include/bits/stl_vector.h: Same.
2825 * include/bits/stl_bvector.h: Same.
2826 * include/bits/stl_deque.h: Same.
2827 * include/bits/deque.tcc: Same.
2828 * include/bits/list.tcc: Same.
2829 * include/debug/vector: Same.
2830 * include/debug/set.h: Same.
2831 * include/debug/multiset.h: Same.
2832 * include/debug/multimap.h: Same.
2833 * include/debug/map.h: Same.
2834 * include/debug/list: Same.
2835 * include/debug/deque: Same.
2836 * include/debug/bitset: Same.
2837 * include/debug/formatter.h (__gnu_debug): Remove using directive.
2838 Add using declaration for std::type_info.
2839 * include/debug/safe_iterator.h: Add using declaration for
2840 std::iterator_traits and std::pair.
2841 * src/debug_list.cc: New.
2842 * src/Makefile.am: Add debug_list.cc.
2843 * src/Makefile.in: Regenerate.
2844 * config/linker-map.gnu: Add _List_node_base exports for std and
2847 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
2848 idiom that other containers use.
2849 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2851 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2854 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
2856 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
2857 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
2859 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2861 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
2863 * config.h.in: Regenerate.
2865 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2867 * config/locale/generic/monetary_members.cc
2868 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
2869 btowc unnecessarily, just cast to wchar_t (the concerned chars
2870 all belong to the basic character set).
2871 * config/locale/generic/numeric_members.cc
2872 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2873 * config/locale/gnu/monetary_members.cc
2874 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
2875 * config/locale/gnu/numeric_members.cc
2876 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2878 2004-04-15 Paolo Carlini <pcarlini@suse.de>
2880 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
2881 avoid constructing unnecessarily this->name().
2883 2004-04-14 Zack Weinberg <zack@codesourcery.com>
2885 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
2886 Change definition of CXX to use $(shell) instead of backticks.
2887 * testsuite/Makefile.in: Regenerate.
2889 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
2891 * testsuite/performance/20_util/allocator/list_sort_search.cc:
2892 Minor formatting fixes.
2893 * testsuite/performance/20_util/allocator/map_mt_find.cc:
2896 2004-04-12 Paolo Carlini <pcarlini@suse.de>
2898 * config/locale/gnu/numeric_members.cc
2899 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
2900 in __uselocale, since btowc is called for chars belonging to
2901 the basic character set.
2903 2004-04-09 Paolo Carlini <pcarlini@suse.de>
2905 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
2906 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
2907 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
2908 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
2909 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
2910 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
2911 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
2912 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
2913 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
2914 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
2915 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
2916 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
2917 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
2918 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
2919 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
2920 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
2921 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
2923 2004-04-07 Paolo Carlini <pcarlini@suse.de>
2925 * config/locale/generic/time_members.cc
2926 (__timepunct<char>::_M_initialize_timepunct,
2927 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
2928 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
2929 * config/locale/gnu/time_members.cc
2930 (__timepunct<char>::_M_initialize_timepunct,
2931 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
2932 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
2933 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
2935 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
2936 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
2937 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
2938 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
2939 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
2940 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
2941 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
2942 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
2943 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
2944 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
2945 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
2946 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
2947 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
2948 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
2949 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
2950 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
2951 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
2952 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
2953 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
2954 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
2955 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
2956 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
2957 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
2958 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
2959 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
2960 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
2961 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
2962 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
2963 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
2964 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
2965 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
2966 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
2967 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
2968 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
2969 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
2970 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
2972 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
2974 2004-04-07 Paolo Carlini <pcarlini@suse.de>
2976 * config/locale/gnu/monetary_members.cc
2977 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
2978 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
2979 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
2980 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
2981 * config/locale/gnu/numeric_members.cc
2982 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
2983 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
2985 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
2987 Fixups for EDG front end.
2988 * include/ext/rope: Instead of non-existent function
2989 _Data_allocate, use allocator's allocate. Use this.
2990 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
2991 enumerations from _Rope_RopeRep here.
2992 * include/ext/ropeimpl.h: Same.
2993 * src/ext-inst.cc (_S_min_len): Fix up definition.
2995 * config/locale/gnu/ctype_members.cc: Qualify base class members
2997 * config/locale/generic/ctype_members.cc: Same.
2998 * config/locale/gnu/messages_members.h: Same.
2999 * config/locale/generic/messages_members.h: Same.
3000 * src/ctype.cc: Same.
3001 * include/bits/codecvt.h: Same.
3003 * include/bits/boost_concept_check.h: Declare.
3004 (__error_type_must_be_an_unsigned_integer_type): Remove this.
3005 (__error_type_must_be_an_integer_type): Remove this.
3006 (__error_type_must_be_a_signed_integer_type): Remove this.
3008 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
3010 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
3011 specification to definition.
3012 (__cxa_allocate_exception): Same.
3013 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
3014 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
3015 (__cxa_get_globals): Same.
3017 * libsupc++/del_op.cc: Add comment about freestanding.
3019 2004-04-05 Paolo Carlini <pcarlini@suse.de>
3021 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3022 The critical section is actually very small, only two assignments.
3024 2004-04-04 Paolo Carlini <pcarlini@suse.de>
3025 Petur Runolfsson <peturr02@ru.is>
3027 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
3028 adapted from libstdc++/11378.
3030 2004-04-03 Paolo Carlini <pcarlini@suse.de>
3032 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
3033 some duplicated code.
3034 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
3035 in the single threaded case.
3036 * testsuite/performance/20_util/allocator/list_sort_search.cc:
3037 Reorder and renumber the tests consistently with the other testfiles.
3038 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3039 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3040 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3042 2004-04-02 Paolo Carlini <pcarlini@suse.de>
3044 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3045 Rearrange arithmetic to avoid computing two divisions at
3048 2004-04-01 Paolo Carlini <pcarlini@suse.de>
3050 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
3051 Streamline the second half, wrapping it in a single
3052 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
3053 conditionals inside loops.
3055 2004-04-01 Paolo Carlini <pcarlini@suse.de>
3058 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
3059 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
3060 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
3061 to _GLIBCXX_RES_LIMITS.
3062 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
3064 * testsuite/testsuite_hooks.h: Declare set_file_limit.
3065 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
3066 and setrlimit(RLIMIT_FSIZE).
3067 * testsuite/27_io/fpos/14775.cc: New.
3068 * config.h.in: Regenerate.
3069 * configure: Likewise.
3071 2004-03-31 Paolo Carlini <pcarlini@suse.de>
3073 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
3074 In v3 uses of sscanf, the special floating-point numbers INF,
3075 INFINITY, etc., cannot occur in input, therefore, if the latter
3076 is too large, ERANGE is always stored in errno, no need of finitel.
3078 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
3081 * include/bits/stl_tree.h: Adjust initialization list order.
3083 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
3085 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
3087 2004-03-29 Paolo Carlini <pcarlini@suse.de>
3089 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
3090 on allocator behavior, the memory pointed by data2 may well be not
3093 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
3096 * include/bits/basic_string.tcc
3097 (basic_string::basic_string(const basic_string&)): Pass to
3098 _Rep::_M_grab the actual allocator of the string being constructed
3099 not the default constructed one.
3101 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
3104 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
3105 (__enc_traits::_M_destroy): New.
3106 (__enc_traits::~__enc_traits): Use it.
3107 (__enc_traits::operator=): Use _M_destroy, _M_init.
3108 (__enc_traits::__enc_traits): Same.
3110 2004-03-27 Petur Runolfsson <peturr02@ru.is>
3112 * testsuite/ext/enc_filebuf/char/13598.cc: New.
3114 2004-03-27 Paolo Carlini <pcarlini@suse.de>
3116 * include/ext/mt_allocator.h: Uglify consistently names of
3117 variables, members and classes; tidy.
3119 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
3121 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3122 Deallocation loop rewrote.
3124 2004-03-26 Paolo Carlini <pcarlini@suse.de>
3126 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3127 __mt_alloc<>::deallocate): Protect two instances of
3128 block->thread_id with __GTHREADS.
3130 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
3132 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
3133 default argument in constructors.
3134 (_Rb_tree::_M_empty_initialize): Remove.
3136 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
3138 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
3139 * testsuite/23_containers/set/operators/1_neg.cc: Same.
3141 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3143 * include/bits/cpp_type_traits.h: Changed __is_pod
3144 completely. Now, it does not use any of the previous type_traits
3145 to detect the pod types, and it also detects function pointers as
3148 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
3149 which encapsulates the internal implementation of an rb_tree. Made
3150 the allocator a base class of this class instead of the rb_tree,
3151 which was not conforming. This _Rb_tree_impl class is also
3152 specialized on whether the _Compare parameter is a POD type or
3153 not. If so, then it maintains the comparison function as a data
3154 member, otherwise it makes the _Compare parameter a base class of
3155 itself. Also, _M_key_compare is now a function instead of a data
3156 member, so that the above trick can work properly. Delegated the
3157 initialization of the other data members to this newly created
3158 class. Also, now other member functions of rb_tree must refer to
3159 _M_key_compare as _M_impl._M_key_compare(). The other data members
3160 (*) can be referenced to as _M_impl.(*), where
3161 (*) includes _M_header, and _M_node_count.
3163 2004-03-25 Paolo Carlini <pcarlini@suse.de>
3165 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
3166 Add _M_min_bin, the size in bytes of the smallest bin.
3167 (__mt_alloc<>::tune()): Tweak accordingly.
3168 (__mt_alloc<>::tune(size_t, ...)): Likewise.
3169 (__mt_alloc<>::block_record): Change to a union: members next
3170 and thread_id are never used at the same time.
3171 (__mt_alloc<>::allocate): Update consistently.
3172 (__mt_alloc<>::deallocate): Likewise.
3173 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
3174 _S_bin_size for the configurable _M_min_size.
3176 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3178 * include/bits/stl_list.h: Created a _List_impl class and made it
3179 derive from the allocator, instead of the list deriving from the
3180 allocator class, which was not conformant. Changed all references
3181 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
3182 as above (changed all references to the concerned variables).
3184 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3186 * include/bits/stl_deque.h: Created a _Deque_impl class and made
3187 it derive from the allocator, instead of the deque deriving from
3188 the allocator class, which was not conformant. Changed all
3189 references to the _M_start, _M_finish, _M_map, and _M_map_size to
3191 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
3192 qualification in 2 places where it was missing.
3193 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
3195 * include/bits/deque.tcc: Same as above (changed all references to
3196 the concerned variables).
3198 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3200 * include/bits/stl_vector.h: Created a _Vector_impl class and made
3201 it derive from the allocator, instead of the _Vector_base class,
3202 deriving from the allocator which was not conformant. Changed all
3203 references to the _M_start, _M_finish, and _M_end_of_storage to
3205 * include/bits/vector.tcc: Same as above (changed all references
3206 to the concerned variables).
3208 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3210 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
3211 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
3212 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
3214 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3216 * include/ext/malloc_allocator.h: Fixed the construct function to
3217 call global placement new instead of assignment. Added a check
3218 after the return from malloc to check whether returned pointer is
3219 NULL, and if so, throw std::bad_alloc().
3220 * include/ext/debug_allocator.h: Added a check in the deallocate
3221 function to check whether the user has passed a NULL pointer or
3224 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
3226 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
3228 2004-03-24 Andreas Schwab <schwab@suse.de>
3230 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
3231 warning from IA64 assembler.
3233 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3235 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
3236 function call __builtin_ctz instead of the while loop.
3237 (allocate) -> If condition has __builtin_expect.
3238 (deallocate) -> Ditto.
3239 Renamed a few left-over variables and typedefs according to the
3240 C++STYLE mentioned in the documentation.
3241 Protected calls to __gthread* by __gthread_active_p(), whose value
3242 is cached in the local variable __threads_active.
3244 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
3246 * testsuite/performance/20_util/allocator/producer_consumer.cc:
3247 Use linear algorithm for producer.
3249 2004-03-24 Paolo Carlini <pcarlini@suse.de>
3251 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3252 __mt_alloc<>::deallocate): Avoid redundant conditionals.
3254 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
3256 * include/bits/locale_facets.h: Tweaks for 80 column.
3257 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
3258 (__moneypunct_cache::_M_cache): Same.
3259 (num_get): Don't inherit from __num_base.
3261 (money_get): Don't inherit from money_base.
3263 (__timepunct::_M_am_pm_format): New.
3264 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
3265 (time_get::_M_extract_name): Same.
3266 (time_get::_M_extract_via_format): Same.
3267 * include/bits/locale_facets.tcc: Tweaks for 80 column.
3268 Use _M_getloc instead of getloc.
3269 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
3270 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
3271 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
3273 2004-03-22 Paolo Carlini <pcarlini@suse.de>
3275 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
3276 * configure: Regenerate.
3277 * config/allocator/pool_allocator_base.h: New.
3278 * include/ext/pool_allocator.h: Convert to a standard-conforming
3280 * src/allocator.cc: Tweak instantiations.
3281 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
3282 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
3283 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
3284 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3285 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3286 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3288 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
3290 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
3291 inline" and attribute-unused. Qualify parameter __mem with
3293 (__exchange_and_add): Ditto. Add back memory clobber to asm.
3295 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3297 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
3299 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
3301 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
3303 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
3305 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
3307 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
3309 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3311 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3313 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
3315 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3318 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3320 * include/std/std_valarray.h: Document DR389 [Ready].
3321 * docs/html/ext/howto.html: Add an entry for DR389.
3323 2004-03-19 Michael Eager <eager@mvista.com>
3325 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
3328 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3330 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
3332 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
3333 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
3334 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
3335 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
3336 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
3337 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
3338 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
3339 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
3340 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
3342 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3343 Petur Runolfsson <peturr02@ru.is>
3346 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
3347 no way to find out the conversion used by the underlying FILE*.
3348 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
3349 * testsuite/27_io/objects/char/9.cc: Tweak.
3351 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3354 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
3355 memory allocation/deallocation calls.
3356 * testsuite/ext/14648.cc: New.
3358 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
3361 * include/backward/bvector.h (bit_vector): Allocator is in std
3364 2004-03-19 Phil Edwards <phil@codesourcery.com>
3366 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
3367 not libiconv. SUBST this variable as well.
3368 * testsuite/Makefile.am (site.exp): New target, based on that
3369 created by automake. Also set libiconv.
3371 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
3372 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
3373 testsuite/Makefile.in: Regenerate.
3375 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
3377 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
3378 new_allocator for all hosts.
3379 * configure: Regenerate.
3381 2004-03-16 Paolo Carlini <pcarlini@suse.de>
3383 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
3384 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
3386 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3388 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3389 Adjust the logic underlying the parsing of symbol to deal
3390 correctly with an optional sign component (i.e., when either
3391 negative_sign or positive_sign is empty)
3392 * testsuite/22_locale/money_get/get/char/19.cc: New.
3393 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
3395 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3397 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3398 Do not accept an incomplete currency symbol.
3399 * testsuite/22_locale/money_get/get/char/18.cc: New.
3400 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
3402 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
3404 * config/allocator: New.
3405 * config/allocator/bitmap_allocator_base.h: New.
3406 * config/allocator/malloc_allocator_base.h: New.
3407 * config/allocator/mt_allocator_base.h: New.
3408 * config/allocator/new_allocator_base.h: New.
3409 * include/bits/allocator.h: Include c++allocator.h.
3410 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
3411 * aclocal.m4: Regenerate.
3412 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
3413 * configure: Regenerate.
3414 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
3415 * include/Makefile.in: Regenerate.
3416 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
3418 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3420 * include/bits/allocator.h: Revert.
3422 2004-03-12 Paolo Carlini <pcarlini@suse.de>
3424 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
3425 * include/bits/gslice_array.h: Add comment about DR 253.
3426 * include/bits/indirect_array.h: Likewise.
3427 * include/bits/mask_array.h: Likewise.
3428 * include/bits/slice_array.h: Likewise.
3430 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3432 * testsuite/20_util/allocator/14176.cc: New.
3433 * include/ext/mt_allocator.h: Formatting fixes.
3435 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
3437 * include/Makefile.am (ext_headers): Add
3438 ${ext_srcdir}/bitmap_allocator.h .
3439 * include/Makefile.in: Regenerate.
3440 * docs/html/ext/ballocator_doc.txt: New file.
3441 * include/ext/bitmap_allocator.h: New file.
3442 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
3444 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
3445 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
3446 test for the bitmap_allocator<>.
3447 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
3448 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
3449 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
3451 2004-03-11 Paolo Carlini <pcarlini@suse.de>
3453 * include/std/std_complex.h (pow(const complex&, const _Tp&),
3454 pow(const _Tp&, const complex&), pow(const complex&,
3455 const complex&)): Fully qualify with std:: a few calls.
3456 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
3458 2004-03-11 Steven Bosscher <stevenb@suse.de>
3461 * include/c_std/cmath.tcc (__cmath_power): Define inline.
3463 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
3465 * configure.ac: Bump AC_PREREQ to 2.59.
3467 2004-03-10 Paolo Carlini <pcarlini@suse.de>
3469 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
3471 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
3472 Paolo Carlini <pcarlini@suse.de>
3475 * include/std/std_complex.h (pow(const complex&, const _Tp&),
3476 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
3477 * testsuite/26_numerics/complex/13450.cc: New.
3479 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
3480 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
3482 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
3485 * include/bits/gslice_array.h (gslice_array()): Make public.
3486 (operator=(gslice_array)): Make public. Implement.
3487 * include/bits/indirect_array.h (indirect_array()): Make public.
3488 * include/bits/mask_array.h (mask_array()): Make public.
3489 (operator=(mask_array)): Make public. Implement.
3490 * include/bits/valarray_array.tcc (__valarray_copy):
3491 Comment. Add versions for gslice_array and mask_array.
3492 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
3494 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
3496 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
3498 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
3499 * testsuite/23_containers/set/modifiers/swap.cc: Same.
3500 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
3501 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
3502 * testsuite/23_containers/map/modifiers/swap.cc: Same.
3503 * testsuite/23_containers/list/modifiers/swap.cc: Same.
3505 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
3507 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
3510 * testsuite/23_containers/deque/modifiers/swap.cc: New.
3511 * testsuite/23_containers/list/modifiers/swap.cc: New.
3512 * testsuite/23_containers/map/modifiers/swap.cc: New.
3513 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
3514 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
3515 * testsuite/23_containers/set/modifiers/swap.cc: New.
3516 * testsuite/23_containers/vector/modifiers/swap.cc: New.
3518 2004-03-08 Petur Runolfsson <peturr02@ru.is>
3521 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
3523 2004-03-08 Paolo Carlini <pcarlini@suse.de>
3525 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
3526 * include/bits/stl_multiset.h: Add comment about DR 103.
3527 * include/bits/stl_set.h: Likewise.
3529 2004-03-08 Paolo Carlini <pcarlini@suse.de>
3531 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3532 The value _space_ indicates that at least one space is required
3534 * testsuite/22_locale/money_get/get/char/17.cc: New.
3535 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
3537 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
3538 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
3540 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
3541 Remove redundant conditional on __str.size().
3543 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
3545 * include/bits/allocator.h: Switch defaults to mt_alloc.
3547 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
3549 * include/ext/mt_allocator.h (_S_initialize): If
3550 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
3552 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
3555 * src/locale_init.cc (locale::locale): Lock critical regions with
3557 (locale::global): Same.
3558 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
3559 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
3560 (__glibcxx_mutex_lock): Same.
3562 * config/cpu/generic/atomicity.h: Remove
3563 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
3564 * src/misc-inst.cc: Move all locking bits out of this file.
3566 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
3567 * src/misc-inst.cc: Same.
3568 * config/cpu/hppa/atomicity.h: Same.
3570 * config/linker-map.gnu: Remove types in the signature of atomic
3571 exports, as they may vary.
3573 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3575 * include/bits/locale_facets.tcc: Tweak the comment preceding
3576 has_facet: doesn't throw.
3578 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3580 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
3581 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3582 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3583 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3584 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3585 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3586 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3587 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3589 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3591 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3592 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
3593 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
3594 * testsuite/testsuite_character.h (struct __gnu_test::character):
3596 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
3599 2004-03-05 Paolo Carlini <pcarlini@suse.de>
3601 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
3603 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
3605 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
3607 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
3609 * testsuite/23_containers/deque/invalidation/4.cc: Same.
3610 * testsuite/23_containers/list/invalidation/1.cc: Same.
3611 * testsuite/23_containers/list/invalidation/2.cc: Same.
3612 * testsuite/23_containers/list/invalidation/3.cc: Same.
3613 * testsuite/23_containers/list/invalidation/4.cc: Same.
3614 * testsuite/23_containers/map/invalidation/2.cc: Same.
3615 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
3616 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3617 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
3618 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3619 * testsuite/23_containers/set/invalidation/1.cc: Same.
3620 * testsuite/23_containers/set/invalidation/2.cc: Same.
3621 * testsuite/23_containers/vector/invalidation/1.cc: Same.
3622 * testsuite/23_containers/vector/invalidation/2.cc: Same.
3623 * testsuite/23_containers/vector/invalidation/3.cc: Same.
3624 * testsuite/23_containers/vector/invalidation/4.cc: Same.
3626 2004-03-04 Paolo Carlini <pcarlini@suse.de>
3628 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
3630 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
3632 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
3633 from the dg-options.
3634 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
3635 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
3636 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
3637 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
3638 * testsuite/23_containers/vector/resize/1.cc: Likewise.
3639 * testsuite/26_numerics/complex_value.cc: Likewise.
3640 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
3641 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
3642 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
3643 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
3644 * testsuite/27_io/objects/char/5.cc: Likewise.
3645 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
3646 * testsuite/backward/11460.cc: Likewise.
3647 * testsuite/thread/pthread7-rope.cc: Likewise.
3649 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
3650 missing test variable.
3651 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
3652 missing test variable.
3654 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
3656 * testsuite/20_util/allocator/1.cc: Provide explicit
3657 instantiations for non-weak systems.
3658 * testsuite/20_util/binders.cc: Same.
3659 * testsuite/20_util/allocator/8230.cc: Same.
3660 * testsuite/20_util/allocator/10378.cc: Same.
3661 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
3662 * testsuite/22_locale/ctype/is/char/2.cc: Same.
3663 * testsuite/thread/pthread7-rope.cc: Same.
3664 * testsuite/thread/pthread6.cc: Same.
3665 * testsuite/thread/pthread5.cc: Same.
3666 * testsuite/thread/pthread4.cc: Same.
3667 * testsuite/thread/pthread1.cc: Same.
3668 * testsuite/ext/rope.cc: Same.
3669 * testsuite/ext/hash_set.cc: Same.
3670 * testsuite/ext/hash_map.cc: Same.
3671 * testsuite/ext/concept_checks.cc: Same.
3672 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
3673 * testsuite/25_algorithms/unique/2.cc: Same.
3674 * testsuite/25_algorithms/unique/1.cc: Same.
3675 * testsuite/25_algorithms/rotate.cc: Same.
3676 * testsuite/25_algorithms/min_max.cc: Same.
3677 * testsuite/25_algorithms/equal.cc: Same.
3678 * testsuite/24_iterators/rel_ops.cc: Same.
3679 * testsuite/24_iterators/iterator.cc: Same.
3680 * testsuite/24_iterators/insert_iterator.cc: Same.
3681 * testsuite/24_iterators/front_insert_iterator.cc: Same.
3682 * testsuite/24_iterators/back_insert_iterator.cc: Same.
3683 * testsuite/23_containers/vector/resize/1.cc: Same.
3684 * testsuite/23_containers/vector/modifiers/2.cc: Same.
3685 * testsuite/23_containers/vector/modifiers/1.cc: Same.
3686 * testsuite/23_containers/vector/invalidation/4.cc: Same.
3687 * testsuite/23_containers/vector/invalidation/3.cc: Same.
3688 * testsuite/23_containers/vector/invalidation/2.cc: Same.
3689 * testsuite/23_containers/vector/invalidation/1.cc: Same.
3690 * testsuite/23_containers/vector/element_access/1.cc: Same.
3691 * testsuite/23_containers/vector/cons/6513.cc: Same.
3692 * testsuite/23_containers/vector/cons/3.cc: Same.
3693 * testsuite/23_containers/vector/cons/2.cc: Same.
3694 * testsuite/23_containers/vector/cons/1.cc: Same.
3695 * testsuite/23_containers/vector/capacity/8230.cc: Same.
3696 * testsuite/23_containers/vector/capacity/1.cc: Same.
3697 * testsuite/23_containers/vector/bool/6886.cc: Same.
3698 * testsuite/23_containers/stack/members/7158.cc: Same.
3699 * testsuite/23_containers/set/invalidation/2.cc: Same.
3700 * testsuite/23_containers/set/invalidation/1.cc: Same.
3701 * testsuite/23_containers/queue/members/7157.cc: Same.
3702 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
3703 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3704 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3705 * testsuite/23_containers/multiset/insert/1.cc: Same.
3706 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3707 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3708 * testsuite/23_containers/map/operators/1.cc: Same.
3709 * testsuite/23_containers/map/invalidation/2.cc: Same.
3710 * testsuite/23_containers/map/invalidation/1.cc: Same.
3711 * testsuite/23_containers/map/insert/1.cc: Same.
3712 * testsuite/23_containers/list/operators/4.cc: Same.
3713 * testsuite/23_containers/list/operators/3.cc: Same.
3714 * testsuite/23_containers/list/operators/2.cc: Same.
3715 * testsuite/23_containers/list/operators/1.cc: Same.
3716 * testsuite/23_containers/list/modifiers/3.cc: Same.
3717 * testsuite/23_containers/list/modifiers/2.cc: Same.
3718 * testsuite/23_containers/list/modifiers/1.cc: Same.
3719 * testsuite/23_containers/list/invalidation/4.cc: Same.
3720 * testsuite/23_containers/list/invalidation/3.cc: Same.
3721 * testsuite/23_containers/list/invalidation/2.cc: Same.
3722 * testsuite/23_containers/list/invalidation/1.cc: Same.
3723 * testsuite/23_containers/list/cons/9.cc: Same.
3724 * testsuite/23_containers/list/cons/8.cc: Same.
3725 * testsuite/23_containers/list/cons/7.cc: Same.
3726 * testsuite/23_containers/list/cons/6.cc: Same.
3727 * testsuite/23_containers/list/cons/5.cc: Same.
3728 * testsuite/23_containers/list/cons/4.cc: Same.
3729 * testsuite/23_containers/list/cons/3.cc: Same.
3730 * testsuite/23_containers/list/cons/2.cc: Same.
3731 * testsuite/23_containers/list/cons/1.cc: Same.
3732 * testsuite/23_containers/list/capacity/1.cc: Same.
3733 * testsuite/23_containers/deque/operators/1.cc: Same.
3734 * testsuite/23_containers/deque/invalidation/4.cc: Same.
3735 * testsuite/23_containers/deque/invalidation/3.cc: Same.
3736 * testsuite/23_containers/deque/invalidation/2.cc: Same.
3737 * testsuite/23_containers/deque/invalidation/1.cc: Same.
3738 * testsuite/23_containers/deque/cons/2.cc: Same.
3739 * testsuite/23_containers/deque/cons/1.cc: Same.
3741 * src/allocator.cc: Add char, wchar_t instantiations
3742 to match extern template declarations in memory.h.
3744 2004-03-03 Paolo Carlini <pcarlini@suse.de>
3746 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3747 Fix warning regression.
3749 2004-03-03 Paolo Carlini <pcarlini@suse.de>
3751 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3752 Deal properly with empty __digits and negative frac_digits,
3755 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
3757 * docs/html/documentation.html: Regenerate.
3759 2004-03-02 Paolo Carlini <pcarlini@suse.de>
3762 * include/bits/postypes.h (class streamoff): Remove, now
3763 streamoff is just typedef a 64 bit signed integer type.
3764 (class fpos): Tweak consistently.
3765 * testsuite/27_io/fpos/14320-1.cc: New.
3766 * testsuite/27_io/fpos/14320-2.cc: New.
3767 * testsuite/27_io/fpos/14320-3.cc: New.
3768 * testsuite/27_io/fpos/14320-4.cc: New.
3769 * testsuite/27_io/fpos/14320-5.cc: New.
3770 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
3772 2004-03-02 Paolo Carlini <pcarlini@suse.de>
3774 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3775 Reorganize a bit the main parsing loop, thus early detecting
3776 an empty value component.
3777 * testsuite/22_locale/money_get/get/char/16.cc: New.
3778 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
3780 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
3782 Support automake 1.8.2
3783 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
3784 * po/Makefile.am (EXTRA_DIST): New.
3785 * po/Makefile.in: Regenerate.
3786 * Makefile.in: Same.
3787 * include/Makefile.in: Same.
3788 * libmath/Makefile.in: Same.
3789 * libsupc++/Makefile.in: Same.
3790 * src/Makefile.in: Same.
3791 * testsuite/Makefile.in: Same.
3793 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
3794 __GXX_WEAK__ instead of SUPPORTS_WEAK.
3795 (${host_builddir}/gthr-default.h): Same.
3796 (${host_builddir}/gthr.h): Same.
3797 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
3798 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
3800 * aclocal.m4: Regenerate.
3801 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
3802 * config.h.in: Regenerate.
3805 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
3807 Support autoconf 2.59
3808 * acinclude.m4: Quote correctly.
3809 * aclocal.m4: Regenerate.
3812 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
3814 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
3816 * docs/html/18_support/howto.html: Add bit about writing to
3817 stderr, mostly by Zack.
3819 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3821 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3822 money_get<>::do_get(string_type&)): ... and two more.
3824 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3826 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3827 Fix thinkos in the switch from string_type& to string& as last
3830 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3832 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3833 Also when parsing exponent sign, first look for thousands_sep
3834 and decimal_point; tweak a bit.
3835 * testsuite/22_locale/num_get/get/char/15.cc: New.
3836 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
3838 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3839 num_get<>::_M_extract_int): Reorder some conditionals.
3841 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3843 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3844 Consistently with numpunct, enforce the requirements in
3845 22.2.6.3, p3 for the thousands separators; tweak a bit.
3846 * testsuite/22_locale/money_get/get/char/15.cc: New.
3847 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
3849 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
3851 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
3852 testsuite_files from correct multilib blddir when running
3855 2004-02-29 Phil Edwards <phil@codesourcery.com>
3857 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
3858 the summary file to the logfile.
3859 * testsuite/Makefile.in: Regenerate.
3861 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3863 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
3865 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
3866 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
3868 2004-02-28 Paolo Carlini <pcarlini@suse.de>
3870 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3871 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
3872 no 'decimal-point' in the middle: in this case too we must fix
3873 up __found_grouping; slightly tweak.
3874 * testsuite/22_locale/num_get/get/char/14.cc: New.
3875 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
3877 2004-02-27 Eric Christopher <echristo@redhat.com>
3878 Phil Edwards <phil@codesourcery.com>
3880 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
3881 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
3882 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
3883 testsuite/22_locale/collate/hash/wchar_t/2.cc,
3884 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
3885 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
3886 testsuite/22_locale/collate/transform/wchar_t/2.cc,
3887 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
3888 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3889 Use dg-require-iconv.
3890 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
3892 2004-02-27 Phil Edwards <phil@codesourcery.com>
3893 Eric Christopher <echristo@redhat.com>
3895 * testsuite/config/default.exp: Update with comments.
3896 (${tool}_target_compile): New wrapper routine.
3897 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
3898 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
3900 (load_gcc_lib, v3track): New routines.
3901 (v3-init): Rename to libstdc++_init.
3902 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
3903 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
3905 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
3907 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
3909 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
3911 * config/os/irix/irix5.2/atomicity.h: Merge..
3912 * config/os/irix/irix6.5/atomicity.h: Merge..
3913 * config/os/irix/atomicity.h: ...into this.
3914 * config/os/irix/atomic_word.h: New.
3915 * configure.host: Set atomic_word_dir for irix.
3917 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
3918 * i386/atomicity.h: Same.
3919 * m68k/atomicity.h: Same.
3920 * sparc/atomicity.h: Same.
3922 2004-02-27 David Edelsohn <edelsohn@gnu.org>
3924 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
3925 static, and inline keywords.
3927 2004-02-27 Paolo Carlini <pcarlini@suse.de>
3929 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3930 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
3931 call reserve on the __tmp_gruping string.
3932 (num_get<>::_M_extract_float): Don't append unnecessarily a
3933 char() to the returned string.
3934 * include/bits/locale_facets.tcc: Trivial reformattings.
3936 2004-02-27 Paolo Carlini <pcarlini@suse.de>
3938 * include/bits/locale_facets.h (money_get<>::_M_extract):
3939 Change signature: now takes a plain string&.
3940 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3941 Update consistently the definition; use the moneypunct cache
3942 to parse the value; use swap to change __units.
3943 (money_get<>::do_get(long double&)): Update call of _M_extract,
3944 avoid ctype::narrow, not correct wrt the standard.
3945 (money_get<>::do_get(string_type&)): Likewise, update call
3946 of _M_extract, use ctype::widen.
3947 * src/locale-inst.cc: Tweak instantiations of _M_extract.
3949 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
3951 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
3952 * testsuite/demangle/abi_examples/02.cc: Likewise.
3953 * testsuite/demangle/regression/cw-11.cc: Likewise.
3954 * testsuite/demangle/regression/cw-16.cc: Change two expected
3955 results to match libiberty demangler output.
3957 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
3960 * libsupc++/Makefile.am: Use libiberty demangler.
3961 (c_sources): Add cp-demangle.c.
3962 * libsupc++/Makefile.in: Regenerate.
3963 * src/Makefile.am (sources): Remove demangle.cc.
3964 * src/Makefile.in: Regenerate.
3965 * include/Makefile.am (bits_headers): Move demangle.h.
3966 (ext_headers): ...here.
3967 * include/Makefile.in: Regenerate.
3968 * include/bits/demangle.h: Move...
3969 * include/ext/demangle.h: ...here.
3970 * src/demangle.cc: Remove.
3972 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
3974 * include/bits/demangle.h: Add type template parameter to all
3975 templates with just an Allocator template parameter.
3977 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
3979 * include/bits/atomicity.h: New, forward declarations for __atomic_add
3980 and __exchange_and_add.
3981 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
3982 * config/cpu/cris/atomic_word.h: Same.
3983 * config/cpu/sparc/atomic_word.h: Same.
3984 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
3985 Qualifiy with __gnu_cxx.
3986 (_Callback_list::_M_add_reference): Same.
3987 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
3988 (locale::facet::_M_remove_reference): Same.
3989 (locale::_Impl::_M_add_reference): Add.
3990 (locale::_Impl::_M_remove_reference): Same.
3991 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
3992 (basic_string::_Rep::_M_dispose): Same.
3993 * src/ios.cc (ios_base::xalloc): Same.
3994 * src/ios_init.cc (ios_base::Init::Init): Same.
3995 (ios_base::Init::~Init): Same.
3996 * src/locale.cc (locale::id::_M_id): Same.
3997 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
3998 static, and inline keywords.
3999 * config/cpu/alpha/atomicity.h: Same.
4000 * config/cpu/cris/atomicity.h: Same.
4001 * config/cpu/generic/atomicity.h: Same.
4002 * config/cpu/hppa/atomicity.h: Same.
4003 * config/cpu/i386/atomicity.h: Same.
4004 * config/cpu/ia64/atomicity.h: Same.
4005 * config/cpu/m68k/atomicity.h: Same.
4006 * config/cpu/mips/atomicity.h: Same.
4007 * config/cpu/powerpc/atomicity.h: Same.
4008 * config/cpu/s390/atomicity.h: Same.
4009 * config/cpu/sparc/atomicity.h: Same.
4011 * src/Makefile.am (host_sources): Add atomicity.cc.
4012 (atomicity.cc): New rule.
4013 * src/Makefile.in: Regenerate.
4014 * include/Makefile.am (host_headers): Remove host atomicity.h.
4015 (host_headers): Add atomic_word.h.
4016 (bits_headers): Add bits atomicity.h.
4017 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
4018 * include/Makefile.in: Regenerate.
4019 * configure.host (atomic_word_dir): Add.
4020 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
4021 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
4022 * configure: Regenerate.
4023 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
4025 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
4026 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
4028 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
4030 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
4031 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
4032 Fix markup, more <link> tags.
4034 2004-02-25 Carlo Wood <carlo@alinoe.com>
4037 namespace __gnu_cxx::demangler
4038 (session<Allocator>::qualifier_list_Allocator): Add
4039 (session<Allocator>::M_qualifier_list_alloc): Add
4040 (session<Allocator>::decode_type_with_postfix):
4041 Use M_qualifier_list_alloc instead of calling operator new/delete.
4043 2004-02-24 Paolo Carlini <pcarlini@suse.de>
4046 * include/bits/postypes.h (class streamoff): Add operator++(),
4047 operator++(int), operator--() and operator--(int).
4048 * testsuite/27_io/fpos/14252.cc: New.
4050 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
4052 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
4053 error in handling of hex constants.
4055 2004-02-24 Paolo Carlini <pcarlini@suse.de>
4057 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4058 Prefer basic_string::append to operator+= and a temporary.
4060 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
4062 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
4063 Only use fputs, not write.
4065 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
4067 * include/ext/malloc_allocator.h: Add operators ==, !=.
4068 * include/ext/new_allocator.h: Add operators ==, !=.
4069 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
4070 (__mt_alloc::_S_get_options): New.
4071 (__mt_alloc::_S_set_options): New.
4072 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
4073 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
4074 Move functions out of line, simplify, format.
4075 * src/allocator.cc: Simplify explicit instantiations.
4076 * include/bits/allocator.h: Tweak.
4078 2004-02-22 Paolo Carlini <pcarlini@suse.de>
4080 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4081 Restructure formatting of value component, first dealing with
4082 the non-decimal digits; use reserve.
4084 2004-02-22 Paolo Carlini <pcarlini@suse.de>
4086 * include/bits/locale_facets.h (class money_get): Inherit
4087 from money_base too; tweak declaration of _M_extract, now
4088 parameterized on _Intl too.
4089 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4090 Update definition to use the cache; call reserve on __res to
4091 avoid multiple reallocations; fix parsing of sign component
4092 according to 22.2.6.1.2, p3.
4093 (money_get<>::do_get(long double&),
4094 money_get<>::do_get(string_type&)): Update calls of _M_extract.
4095 * src/locale-inst.cc: Add instantiations of
4096 money_get::_M_extract<false> and money_get::_M_extract<true>.
4097 * testsuite/22_locale/money_get/get/char/14.cc: New.
4098 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
4100 2004-02-21 Mark Mitchell <mark@codesourcery.com>
4102 * libsupc++/vterminate.cc
4103 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
4105 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
4107 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
4108 not set RLIMIT_AS on HP-UX.
4110 2004-02-21 Mark Mitchell <mark@codesourcery.com>
4112 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
4113 not set RLIMIT_AS on HP-UX.
4115 2004-02-21 Paolo Carlini <pcarlini@suse.de>
4117 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
4118 _S_zero, _S_end } enum, _S_atoms.
4119 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
4120 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
4121 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
4122 (__moneypunct_cache<>::~__moneypunct_cache): Update.
4123 (__moneypunct_cache<>::_M_cache): Fill the cache.
4124 (class moneypunct): Tweak __cache_type typedef.
4125 (class money_put): Inherit from money_base too; tweak declaration
4126 of _M_insert, now parameterized on _Intl.
4127 * include/bits/locale_facets.tcc
4128 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
4129 (money_put<>::_M_insert): Update definition to use the cache;
4130 call reserve on __res to avoid multiple reallocations.
4131 (money_put<>::do_put(long double),
4132 money_put<>::do_put(const string_type&): Update calls of _M_insert.
4133 * config/locale/generic/monetary_members.cc
4134 (moneypunct<char, true>::_M_initialize_moneypunct,
4135 moneypunct<char, false>::_M_initialize_moneypunct,
4136 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
4137 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
4138 * config/locale/gnu/monetary_members.cc: Likewise.
4139 * config/locale/gnu/monetary_members.cc
4140 (moneypunct<wchar_t, true>::~moneypunct(),
4141 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
4142 * src/globals_locale.cc: Tweak fake_money_cache_c.
4143 * src/locale-inst.cc: Add instantiations for
4144 money_put::_M_insert<false> and money_put::_M_insert<true> and
4145 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
4146 * src/locale_facets.cc: Define money_base::_S_atoms.
4147 * src/locale_init.cc: Update placement new of
4148 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
4149 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
4151 * config/locale/generic/numeric_members.cc: Clean up.
4152 * config/locale/gnu/numeric_members.cc: Likewise.
4153 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
4154 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
4155 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
4156 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
4157 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
4158 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
4160 2004-02-20 Mark Mitchell <mark@codesourcery.com>
4162 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
4163 FIFO for writing with ios_base::in|ios_base::out.
4164 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
4165 * testsuite/27_io/objects/char/7.cc: Likewise.
4166 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
4169 2004-02-19 David Edelsohn <edelsohn@gnu.org>
4171 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
4172 from iso-8859-1 to ISO8859-1.
4173 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
4174 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
4175 * 22_locale/collate/hash/wchar_t/2.cc: Same.
4176 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
4177 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
4178 * 22_locale/collate/transform/wchar_t/2.cc: Same.
4179 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
4180 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
4182 2004-02-18 Paolo Carlini <pcarlini@suse.de>
4184 * include/bits/locale_facets.h (money_get<>::_M_extract):
4185 New, helper for do_get.
4186 (money_put<>::_M_insert): Likewise, for do_put.
4187 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
4188 money_put<>::_M_insert): Define.
4189 (money_get<>::do_get(long double&), money_get<>::do_get(
4190 string_type&), money_put::do_put(long double),
4191 money_put::do_put(const string_type&)): Use the helpers.
4193 2004-02-18 Paolo Carlini <pcarlini@suse.de>
4195 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4196 Rewrite, avoiding recursion.
4197 (__gnu_internal::xwrite): Minor tweaks.
4199 2004-02-17 Stefan Olsson <stefan@xapa.se>
4201 * include/ext/mt_allocator.h: Removed the last
4202 pointer. Deallocated blocks are now added to the front of
4203 freelists as proposed by Felix Yen. This gives roughly 10%
4204 performance boost and saves some memory.
4205 * docs/html/ext/mt_allocator.html: Change due to that deallocated
4206 blocks now are added to the front of freelists. The reason to this
4207 approach is also explained.
4209 2004-02-17 Paolo Carlini <pcarlini@suse.de>
4211 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4212 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
4213 grouping fidelity conditional.
4215 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4217 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
4218 Qualify exception with std::.
4219 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
4220 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4221 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4222 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4223 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4225 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4227 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
4228 for now that the catch block is not reached.
4229 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
4231 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4233 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4234 Fix parsing of the remaining sign characters.
4235 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
4236 the input is scanned 'til eof.
4237 * 22_locale/money_get/get/char/4.cc: Likewise.
4238 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
4239 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
4240 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
4241 not do_pos_format: the former is the only one that matters during
4243 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
4245 * 22_locale/money_get/get/char/6.cc: Minor tweak.
4246 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
4248 2004-02-15 David Asher <david.asher@cavium.com>
4251 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
4252 access __olds beyond __oldlen.
4254 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4256 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
4257 sure the exception is actually thrown.
4258 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4259 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4260 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4262 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4265 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
4266 In case of conversion errors, throw ios_failure; simplify.
4267 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
4268 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4269 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
4270 previously we didn't throw in case of conversion errors, instead
4271 just returned eof().
4272 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4273 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4274 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4276 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
4277 Trivial simplification of a conditional.
4279 2004-02-12 Paolo Carlini <pcarlini@suse.de>
4281 PR libstdc++/13731 (final part: writev)
4282 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4283 New, a wrapper around writev() handling partial writes.
4284 (__basic_file<char>::xwrite): Move to __gnu_internal and make
4286 (__basic_file<char>::xsputn): Update call.
4287 (__basic_file<char>::xsputn_2): Likewise.
4288 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4289 Don't declare, now static.
4291 2004-02-11 Stefan Olsson <stefan@xapa.se>
4293 * docs/html/ext/mt_allocator.html: New.
4295 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
4297 * docs/html/20_util/allocator.html: New file, consolidate
4298 allocator information here. Revamp.
4299 * docs/html/documentation.html: Change links.
4300 * docs/html/20_util/howto.html: Same.
4301 * docs/html/ext/howto.html: Same.
4303 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4305 PR libstdc++/13731 (first part: write)
4306 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4308 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
4309 Define it: a wrapper around write() handling partial write.
4310 (__basic_file<char>::xsputn): Use it.
4311 (__basic_file<char>::xsputn_2): Likewise.
4313 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4314 Petur Runolfsson <peturr02@ru.is>
4317 * include/std/std_istream.h (operator>>(__istream_type& (*)
4318 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
4319 operator>>(ios_base& (*)(ios_base&))): Declare inline.
4320 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
4321 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
4322 operator<<(ios_base& (*) (ios_base&))): Likewise.
4323 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
4325 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
4328 * config/linker-map.gnu: Add typeinfo and typeinfo name for
4329 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
4332 * config/linker-map.gnu: Add typeinfo and typeinfo name for
4333 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
4335 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
4337 * include/ext/pool_allocator.h: Include c++config.h.
4339 2004-02-09 Stefan Olsson <stefan@xapa.se>
4341 * include/ext/mt_allocator.h: thread_id is unused in non threaded
4342 applications and now has a ifdef to remove it completely on
4343 compilers without thread support. Include stdlib.h due to a
4344 compiler warning on getenv().
4346 2004-02-09 Paul Brook <paul@codesourcery.com>
4348 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
4350 2004-02-09 Paolo Carlini <pcarlini@suse.de>
4353 * src/locale_init.cc (locale::global(const locale&)): Use
4354 locale::name() in order to decide whether calling setlocale.
4355 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
4357 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
4358 Avoid computing &= unnecessarily.
4360 2004-02-09 James E Wilson <wilson@specifixinc.com>
4363 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
4364 __builtin_extend_pointer.
4366 2004-02-09 Paolo Carlini <pcarlini@suse.de>
4369 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
4370 Don't leave dangling pointers.
4371 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
4372 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
4373 facet is needed in the final test.
4375 2004-02-09 Bernardo Innocenti <bernie@develer.com>
4377 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
4378 * configure: Regenerate.
4380 2004-02-08 Richard Henderson <rth@redhat.com>
4383 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
4384 uncaughtExceptions during nested catch rethrow.
4385 * testsuite/18_support/14026.cc: New.
4387 2004-02-08 Paolo Carlini <pcarlini@suse.de>
4389 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
4390 When working in place remember to set the state to sharable
4391 (otherwise, _M_mutate does it).
4393 2004-02-08 Bernardo Innocenti <bernie@develer.com>
4395 * include/bits/allocator.h, include/bits/basic_ios.h,
4396 include/bits/basic_ios.tcc, include/bits/basic_string.h,
4397 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
4398 include/bits/char_traits.h, include/bits/codecvt.h,
4399 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
4400 include/bits/demangle.h, include/bits/deque.tcc,
4401 include/bits/fstream.tcc, include/bits/functexcept.h,
4402 include/bits/gslice.h, include/bits/gslice_array.h,
4403 include/bits/indirect_array.h, include/bits/ios_base.h,
4404 include/bits/istream.tcc, include/bits/list.tcc,
4405 include/bits/locale_classes.h, include/bits/locale_facets.h,
4406 include/bits/locale_facets.tcc, include/bits/localefwd.h,
4407 include/bits/mask_array.h, include/bits/ostream.tcc,
4408 include/bits/postypes.h, include/bits/slice_array.h,
4409 include/bits/sstream.tcc, include/bits/stl_algo.h,
4410 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
4411 include/bits/stl_construct.h, include/bits/stl_deque.h,
4412 include/bits/stl_function.h, include/bits/stl_heap.h,
4413 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
4414 include/bits/stl_list.h, include/bits/stl_map.h,
4415 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
4416 include/bits/stl_numeric.h, include/bits/stl_pair.h,
4417 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
4418 include/bits/stl_relops.h, include/bits/stl_set.h,
4419 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
4420 include/bits/stl_threads.h, include/bits/stl_tree.h,
4421 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
4422 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
4423 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
4424 include/bits/type_traits.h, include/bits/valarray_after.h,
4425 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
4426 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
4427 trailing whitespace.
4429 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4431 * include/bits/basic_string.h: Fix comment.
4433 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4435 * include/bits/stl_construct.h: Wrap overlong lines, reformat
4436 according to the coding standards.
4437 * include/bits/stl_pair.h: Likewise.
4438 * include/bits/stl_raw_storage_iter.h: Likewise.
4439 * include/bits/stl_stack.h: Likewise.
4440 * include/bits/stl_uninitialized.h: Likewise.
4441 * include/bits/stream_iterator.h: Likewise.
4442 * include/bits/streambuf_iterator.h: Likewise.
4443 * include/bits/type_traits.h: Likewise.
4445 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4447 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4450 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
4452 * scripts/check_performance: Support PCH.
4454 * scripts/check_performance (CXX): Add -DNOTHREAD.
4455 * testsuite/performance/20_util/allocator/insert.cc: Integrate
4456 threaded tests from insert_insert.cc. Tweak iterations,
4457 remove special cases.
4458 * testsuite/performance/20_util/allocator/insert_insert.cc:
4459 Make all tests single-threaded. Tweak iterations.
4460 * testsuite/performance/20_util/allocator/map_thread.cc:
4462 * testsuite/performance/20_util/allocator/producer_consumer.cc:
4465 2004-02-05 Geoffrey Keating <geoffk@apple.com>
4469 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
4470 'gcc-lib'. Add comment about poorly-named variables.
4471 * aclocal.m4: Regenerate.
4472 * configure: Regenerate.
4474 2004-02-05 Paolo Carlini <pcarlini@suse.de>
4476 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4477 Thousands-sep are always optional; thousands-sep are not allowed
4478 after the decimal_point.
4479 * testsuite/22_locale/money_get/get/char/12.cc: New.
4480 * testsuite/22_locale/money_get/get/char/13.cc: New.
4481 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
4482 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
4484 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
4485 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
4486 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
4487 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
4488 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
4489 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
4490 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
4491 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
4493 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
4495 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
4497 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
4499 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
4501 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
4502 it to decide whether FIONREAD should take an off_t or int argument.
4504 2004-02-05 Paolo Carlini <pcarlini@suse.de>
4506 * include/bits/stl_function.h: Minor formatting changes.
4508 2004-02-04 Zack Weinberg <zack@codesourcery.com>
4510 Revert previous change to config/abi/*/baseline_symbols.txt.
4512 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
4513 Zack Weinberg <zack@codesourcery.com>
4515 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
4517 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
4518 (__basic_file<char>::_M_open_mode): Delete.
4519 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
4521 * testsuite/27_io/basic_filebuf/close/char/9964.cc
4522 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4523 Correct flags to filebuf::open calls.
4525 * config/abi/alpha-freebsd5/baseline_symbols.txt
4526 * config/abi/alpha-linux-gnu/baseline_symbols.txt
4527 * config/abi/hppa-linux-gnu/baseline_symbols.txt
4528 * config/abi/i386-freebsd4/baseline_symbols.txt
4529 * config/abi/i386-freebsd5/baseline_symbols.txt
4530 * config/abi/i486-linux-gnu/baseline_symbols.txt
4531 * config/abi/ia64-linux-gnu/baseline_symbols.txt
4532 * config/abi/mips-linux-gnu/baseline_symbols.txt
4533 * config/abi/sparc-freebsd5/baseline_symbols.txt
4534 * config/abi/sparc-linux-gnu/baseline_symbols.txt
4535 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
4536 Remove entry for __basic_file<char>::_M_open_mode.
4538 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
4540 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
4542 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
4544 * testsuite/performance/20_util/producer_consumer.cc: New.
4545 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
4547 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
4549 * testsuite/performance/20_util/allocator.cc: Move to..
4550 * testsuite/performance/20_util/allocator/insert.cc: ...here.
4551 * testsuite/performance/20_util/allocator_thread.cc: Move to...
4552 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
4553 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
4554 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
4556 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
4558 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
4559 * docs/html/faq/index.txt: Regenerate.
4561 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
4563 * include/ext/debug_allocator.h: _M_extra now stands for the
4564 number of extra objects instead of the number of extra bytes.
4565 (debug_allocator::allocate): Adjust.
4566 (debug_allocator::deallocate): Adjust.
4568 * include/ext/pool_allocator.h: Fix typo.
4570 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
4571 Benjamin Kosnik <bkoz@redhat.com>
4573 * testsuite/performance/20_util/allocator.cc: Add map,
4575 * testsuite/performance/20_util/allocator_thread.cc: Same.
4577 2004-02-03 Paolo Carlini <pcarlini@suse.de>
4579 * include/bits/basic_string.h (insert(iterator)): Remove,
4580 non-standard and already scheduled for removal.
4582 2004-02-03 Paolo Carlini <pcarlini@suse.de>
4584 * include/bits/stl_iterator_base_funcs.h: Minor formatting
4585 and indentation tweaks.
4586 * include/bits/stl_iterator_base_types.h: Likewise.
4587 * include/bits/stl_list.h: Likewise.
4588 * include/bits/stl_map.h: Likewise.
4589 * include/bits/stl_tempbuf.h: Likewise.
4591 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
4593 * include/bits/gslice.h, include/bits/gslice_array.h,
4594 include/bits/indirect_array.h, include/bits/mask_array.h,
4595 include/bits/slice_array.h, include/bits/stl_numeric.h,
4596 include/std/std_valarray.h: Update copyright years.
4598 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
4600 * include/bits/gslice.h (gslice): Document.
4601 * include/bits/gslice_array.h (gslice_array): Document.
4602 * include/bits/indirect_array (indirect_array): Document.
4603 * include/bits/mask_array (mask_array): Document.
4604 * include/bits/slice_array.h (slice,slice_array): Document.
4605 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
4606 adjacent_difference): Document
4607 * include/std/std_valarray.h (valarray): Document.
4609 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
4611 * docs/html/19_diagnostics/howto.html: Move verbose terminate
4613 * docs/html/18_support/howto.html: Here.
4614 * docs/html/documentation.html: Add reference here.
4616 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4618 * config/locale/gnu/c++locale_internal.h: Remove prototypes
4619 of no longer used GLIBC thread locale functions.
4621 2004-02-02 Eric Christopher <echristo@redhat.com>
4622 Zack Weinberg <zack@codesourcery.com>
4624 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
4626 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
4627 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
4628 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
4629 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
4630 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
4631 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
4632 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
4633 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4636 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4638 * include/bits/stl_function.h: Additional minor tweaks.
4639 * include/bits/stl_multiset.h: Likewise.
4641 * include/bits/stl_queue.h: Minor tweaks.
4643 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4645 PR libstdc++/13976 (continued)
4646 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
4647 Make the second parameter unnamed, to void unused parameter
4649 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
4651 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4654 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
4655 Make the second parameter unnamed, to void unused parameter
4657 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
4658 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
4660 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4662 * include/bits/stl_algo.h: Additional minor tweaks.
4663 * include/bits/stl_map.h: Likewise.
4664 * include/bits/stl_multimap.h: Likewise.
4665 * include/bits/stl_multiset.h: Likewise.
4666 * include/bits/stl_set.h: Likewise.
4667 * include/bits/stl_tree.h: Likewise.
4669 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4671 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
4674 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4676 * include/bits/stl_function.h: Additional minor tweaks.
4678 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4680 * include/bits/deque.tcc: Wrap overlong lines, constify
4681 a few variables, reformat according to the coding standards.
4682 * include/bits/list.tcc: Likewise.
4683 * include/bits/stl_deque.h: Likewise.
4684 * include/bits/stl_function.h: Likewise.
4685 * include/bits/stl_iterator.h: Likewise.
4686 * include/bits/stl_iterator_base_funcs.h: Likewise.
4687 * include/bits/stl_iterator_base_types.h: Likewise.
4688 * include/bits/stl_list.h: Likewise.
4689 * include/bits/stl_map.h: Likewise.
4690 * include/bits/stl_multimap.h: Likewise.
4691 * include/bits/stl_multiset.h: Likewise.
4692 * include/bits/stl_relops.h: Likewise.
4693 * include/bits/stl_set.h: Likewise.
4695 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4697 * include/bits/stl_bvector.h: Wrap overlong lines, constify
4698 a few variables, reformat according to the coding standards.
4699 * include/bits/stl_tree.h: Likewise.
4701 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4703 * include/bits/stl_algo.h: Minor additional reformat, add
4705 * include/bits/stl_algobase.h: Add copyright year.
4707 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4709 * include/bits/stl_algo.h: Wrap overlong lines, constify
4710 a few variables, reformat according to the coding standards.
4711 * include/bits/stl_algobase.h: Likewise.
4712 * include/bits/stl_heap.h: Likewise.
4714 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4716 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
4718 * include/bits/basic_string.h: Fix two comments.
4720 2004-01-31 Per Bothner <per@bothner.com>
4722 * include/ext/mt_allocator.h
4723 (__mt_alloc::_S_thread_freelist_mutex): Guard with
4724 __GTHREAD_MUTEX_INIT.
4726 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4728 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
4730 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4732 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
4733 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
4734 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
4736 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
4738 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
4739 Don't use clear, but instead assign. Use insert.
4741 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
4743 * src/demangle.cc: Add instantiations.
4744 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
4745 * src/Makefile.in: Regenerate.
4747 2004-01-30 David Edelsohn <edelsohn@gnu.org>
4749 * src/allocator.cc: Protect _S_get_thread_id() and
4750 _S_thread_key_destr() with #ifdef __GTHREADS.
4752 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4754 Reshuffle performance testsuite.
4755 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
4756 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
4757 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
4758 fstream_seek_write.cc, ifstream_extract_float.cc,
4759 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
4760 list_create_fill_sort.cc, map_create_fill.cc,
4761 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
4762 ofstream_insert_float.cc, ofstream_insert_int.cc,
4763 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
4764 wchar_t_out.cc: Split into...
4765 * testsuite/performance/20_util/allocator.cc: New.
4766 * testsuite/performance/20_util/allocator_map_thread.cc: New.
4767 * testsuite/performance/20_util/allocator_thread.cc: New.
4768 * testsuite/performance/21_strings/string_append: New.
4769 * testsuite/performance/22_locale/is_wchar_t.cc: New.
4770 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
4771 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
4772 * testsuite/performance/22_locale/wchar_t_in.cc: New.
4773 * testsuite/performance/22_locale/wchar_t_length.cc: New.
4774 * testsuite/performance/22_locale/wchar_t_out.cc: New.
4775 * testsuite/performance/23_containers/container_benchmark.cc: New.
4776 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
4777 * testsuite/performance/23_containers/map_create_fill.cc: New.
4778 * testsuite/performance/26_numerics/complex_norm.cc: New.
4779 * testsuite/performance/27_io/cout_insert_int.cc: New.
4780 * testsuite/performance/27_io/filebuf_copy.cc: New.
4781 * testsuite/performance/27_io/filebuf_sputc.cc: New.
4782 * testsuite/performance/27_io/fstream_seek_write.cc: New.
4783 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
4784 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
4785 * testsuite/performance/27_io/ifstream_getline.cc: New.
4786 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
4787 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
4789 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4791 * include/bits/basic_string.tcc (_Rep::_S_create):
4792 Never allocate a string bigger than max_size(); always keep
4793 __capacity and __size in sync to avoid memory leaks at
4796 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4798 * include/bits/basic_string.tcc (_S_construct(_InIterator,
4799 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
4800 the double loop, streamline.
4802 * include/bits/basic_string.tcc: Very minor tweaks.
4804 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
4806 * scripts/check_performance: Only compile with $THREAD_FLAG
4807 when test is marked to require it. Allow multiple
4808 compilations/executions of marked tests.
4809 * testsuite/testsuite_performance.h (report_performance):
4810 Report dynamic thread support status.
4811 (report_header): Likewise.
4812 * testsuite/performance/allocator.cc: Stabilize iteration
4813 count. Support more allocators. Mark each allocator test to
4814 run and report independently.
4815 * testsuite/performance/allocator_map_thread.cc: Likewise.
4816 * testsuite/performance/allocator_thread.cc: Likewise.
4818 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
4820 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
4821 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
4822 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
4823 std::get_temporary_buffer() instead of duplicating its code.
4824 Update to C++STYLE conventions.
4825 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
4826 new() instead of std::malloc().
4827 (return_temporary_buffer): Use ::operator delete() instead of
4830 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
4832 * include/bits/allocator.h: Temporary switch to new_allocator as
4833 the default to unjam bootstraps.
4835 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
4837 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
4838 * include/Makefile.in: Regenerate.
4839 * include/bits/allocator_traits.h: Remove.
4840 * include/bits/allocator.h: Remove allocator_traits.h include, and
4842 (allocator): Empty base class, inherit from the underlying allocator.
4843 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
4844 * src/allocator.cc: ...here. New. For the underlying allocators.
4845 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
4846 * config/linker-map.gnu: Remove __pool_alloc bits.
4847 * src/Makefile.am (sources): Add allocator.cc.
4848 * src/Makefile.in: Regenerate.
4849 * testsuite/20_util/allocator/1.cc: Split second test into...
4850 * testsuite/20_util/allocator/8230.cc: ...this.
4851 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
4852 typedef to use std::allocatore. Format.
4853 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
4855 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
4856 __throw_bad_alloc calls. Don't include <memory>.
4857 * include/ext/malloc_allocator.h: Remove <memory> include.
4858 * include/ext/new_allocator.h (new_allocator): Same.
4859 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
4860 declaration. Switch __alloc to _Alloc.
4861 * include/ext/hashtable.h: Remove __alloc.
4862 * include/backward/alloc.h: Only inject allocator, not
4863 implementation details.
4865 * include/ext/mt_allocator.h: Replace free with delete.
4867 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
4869 * src/globals_io.cc: Change to __gnu_internal namespace.
4870 * src/globals_locale.cc: Same.
4871 * src/locale_init.cc: Same.
4872 * src/ios_init.cc: Same.
4874 2004-01-28 Stefan Olsson <stefan@snon.net>
4876 * include/ext/mt_allocator.h: Replaced all malloc() calls with
4877 operator new(). Added support for the env variable
4878 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
4879 one in allocate() as well). Fix typos.
4881 2004-01-28 Paolo Carlini <pcarlini@suse.de>
4883 * include/bits/basic_string.h (_S_create(size_t,
4884 const _Alloc&): Change signature to take two size_type
4886 * include/bits/basic_string.tcc (_S_construct(_InIterator,
4887 _InIterator, const _Alloc&, input_iterator_tag)): Update
4889 (_S_construct(_InIterator, _InIterator, const _Alloc&,
4890 forward_iterator_tag)): Likewise.
4891 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
4892 (_M_mutate(size_type, size_type, size_type)): Don't
4893 implement the exponential growth policy, demand it to
4894 _S_create, update call and simplify.
4895 (_M_clone(const _Alloc&, size_type)): Likewise.
4896 (_S_create(size_type, size_type, const _Alloc&)): Implement
4897 the growth policy, simplify otherwise.
4899 * include/bits/basic_string.h (_Rep::operator[]): Tweak
4900 signature to take a size_type, consistently with the other
4903 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
4905 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
4906 delete declarations, add include and test variable.
4908 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
4910 * include/bits/codecvt.h, include/bits/locale_facets.h,
4911 include/bits/postypes.h, include/bits/stl_bvector.h,
4912 include/bits/stl_multiset.h, include/bits/stl_set.h,
4913 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
4914 include/std/std_complex.h: Document.
4916 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
4919 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
4920 iword/pword selector.
4921 (ios_base::iword, ios_base::pword): Use it.
4922 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
4923 iword or pword member on alloc failure.
4924 * testsuite/27_io/ios_base/storage/11584.cc: New test.
4926 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
4927 PJ Darcy <darcypj@us.ibm.com>
4929 * configure.host: Add support for *-tpf.
4930 * crossconfig.m4: Likewise.
4931 * configure: Regenerate.
4932 * config/os/tpf: New directory.
4933 * config/os/tpf/os_defines.h: New file.
4934 * config/os/tpf/ctype_base.h: Likewise.
4935 * config/os/tpf/ctype_inline.h: Likewise.
4936 * config/os/tpf/ctype_noninline.h: Likewise.
4938 2004-01-27 Paolo Carlini <pcarlini@suse.de>
4941 * include/bits/sstream.tcc: Guard use of extern template.
4943 2004-01-27 Paolo Carlini <pcarlini@suse.de>
4945 * include/bits/basic_string.tcc
4946 (basic_string(const basic_string&, size_type, size_type),
4947 basic_string(const basic_string&, size_type, size_type,
4948 const _Alloc&)): Avoid unnecessarily constructing iterators.
4950 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4952 * config/locale/generic/c_locale.cc: Fix throw messages
4953 to use the __N marker.
4954 * config/locale/gnu/c_locale.cc: Likewise.
4955 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
4957 * docs/html/17_intro/C++STYLE: Likewise.
4958 * include/bits/basic_ios.tcc: Likewise.
4959 * include/bits/fstream.tcc: Likewise.
4960 * include/bits/vector.tcc: Likewise.
4961 * include/ext/ropeimpl.h: Likewise.
4962 * include/std/std_bitset.h: Likewise.
4963 * src/ios.cc: Likewise.
4964 * src/locale.cc: Likewise.
4965 * src/localename.cc: Likewise.
4967 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4969 * include/bits/basic_string.h (_M_replace_aux): Use the
4970 __N marker in throw message.
4971 * include/bits/basic_string.tcc (assign(const _CharT*,
4972 size_type), insert(size_type, const _CharT*, size_type),
4973 replace(size_type, size_type, const _CharT*, size_type),
4974 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
4977 * include/bits/basic_string.h, include/bits/basic_string.tcc:
4978 Fold overlong lines, minor formatting changes.
4980 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4982 * include/bits/basic_string.h (replace(iterator, iterator,
4983 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
4984 (replace(iterator, iterator, const _CharT*)): Ditto.
4985 (replace(iterator, iterator, const _CharT*, size_type)):
4986 Add missing _GLIBCXX_DEBUG_PEDASSERT.
4988 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4990 * include/bits/basic_string.tcc (replace(size_type,
4991 size_type, const _CharT*, size_type)): Implement optimized
4992 in-place algorithm for non-overlapping ranges.
4993 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
4994 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
4996 * include/bits/basic_string.tcc (insert(size_type,
4997 const _CharT*, size_type)): Tweak slightly.
4999 2004-01-26 Andreas Schwab <schwab@suse.de>
5001 * config/locale/gnu/monetary_members.cc: Restore locale before
5002 rethrowing exception.
5004 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5006 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
5008 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
5011 * include/bits/basic_string.tcc: Very minor tweaks.
5013 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5015 * testsuite/performance/string_append.cc: Increase number
5018 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5020 * include/bits/basic_string.h (erase(size_type, size_type),
5021 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
5022 instead, thus avoiding redundant check for length_error.
5024 * include/bits/basic_string.h: Tweak some comments.
5026 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5028 * include/bits/basic_string.tcc (operator+(const _CharT*,
5029 const basic_string&)): No need to go through the append
5030 taking two iterators.
5032 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5034 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
5035 Revert last change to use std::min: machine language is worse.
5036 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
5037 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5038 (find_last_not_of(_CharT, size_type)): Ditto.
5040 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
5041 size_type)): Discard the value returned by _M_check.
5042 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
5043 (append(const basic_string&, size_type, size_type)): Ditto.
5044 (copy(_CharT*, size_type, size_type)): Ditto.
5045 (compare(size_type, size_type, const basic_string&)): Ditto.
5046 (compare(size_type, size_type, const basic_string&,
5047 size_type, size_type)): Ditto.
5048 (compare(size_type, size_type, const _CharT*)): Ditto.
5049 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5051 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5053 * include/bits/basic_string.h (insert(size_type,
5054 const basic_string&, size_type, size_type)): Define inline here.
5055 * include/bits/basic_string.tcc (insert(size_type,
5056 const basic_string&, size_type, size_type)): Move inline.
5058 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5060 * include/bits/basic_string.h (assign(const basic_string&,
5061 size_type, size_type)): Define inline here.
5062 (replace(size_type, size_type, const basic_string&,
5063 size_type, size_type)): Ditto.
5064 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5065 _InputIterator, __false_type)): Only declare.
5066 (_M_replace(iterator, iterator, _InputIterator,
5067 _InputIterator)): Remove.
5068 * include/bits/basic_string.tcc (assign(const basic_string&,
5069 size_type, size_type)): Move inline.
5070 (replace(size_type, size_type, const basic_string&,
5071 size_type, size_type)): Ditto.
5072 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5073 _InputIterator, __false_type)): Define, now does also what
5074 _M_replace did before.
5075 * src/string-inst.cc (_M_replace): Don't instantiate.
5077 * include/bits/basic_string.tcc (find(const _CharT*,
5078 size_type, size_type)): Tidy.
5079 (rfind(_CharT, size_type)): Ditto.
5080 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
5081 (find_first_not_of(_CharT, size_type)): Ditto.
5082 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5083 (find_last_not_of(_CharT, size_type)): Ditto.
5085 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5088 * include/debug/bitset (operator|=): Fix typo.
5089 * testsuite/23_containers/bitset/operations/13838.cc: New.
5091 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5093 * include/bits/basic_string.tcc (insert(size_type,
5094 const _CharT*, size_type __n)): Fix length_error check.
5095 (replace(size_type, size_type, const _CharT*, size_type):
5096 Ditto; call _M_replace_safe.
5097 (_M_replace_aux(size_type, size_type, size_type, _CharT):
5098 Fix length_error check.
5099 (_M_replace(iterator, iterator, _InputIterator,
5100 _InputIterator)): Ditto, tweak.
5101 (_M_replace_safe(size_type, size_type, const _CharT*,
5102 size_type)): Remove length_error check.
5104 * include/bits/basic_string.tcc (append(const basic_string&),
5105 append(const basic_string&, size_type, size_type)): Tweak
5108 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
5109 size_type)): If __n == 0 don't call traits::copy.
5111 2004-01-23 Stefan Olsson <stefan@snon.net>
5113 * include/ext/mt_allocator.h: Reduce lock contention.
5115 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5118 * include/bits/fstream.tcc (underflow): Remove unused
5120 * include/bits/streambuf_iterator.h (equal): Ditto.
5121 * include/bits/locale_facets.h (_M_convert_from_char):
5124 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5127 * config/linker-map.gnu (nan): Delete.
5128 * libmath/mathconf.h (NAN, nan): Delete.
5129 * linkage.m4 (nan): Don't check for it.
5130 * libmath/nan.c: Delete file.
5132 * config.h.in, configure: Regenerate.
5134 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5136 * include/bits/basic_string.h (push_back(_CharT)):
5137 Call _M_replace_aux.
5138 (insert(size_type, const basic_string&)): Trivial tweak.
5139 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
5140 (insert(iterator, _CharT)): Ditto.
5141 (erase(size_type, size_type)): Ditto.
5142 (erase(iterator)): Ditto.
5143 (erase(iterator, iterator)): Ditto.
5144 (replace(size_type, size_type, size_type, _CharT)): Ditto.
5146 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
5149 * testsuite/performance/allocator_map_thread.cc: New test.
5151 2004-01-22 Paolo Carlini <pcarlini@suse.de>
5153 * include/bits/locale_facets.tcc
5154 (money_put::do_put(..., long double)): Use the basic_string
5155 constructor for char arrays, not that for C-strings, to pass
5156 __digits to do_put(..., const string_type&): __ws isn't
5159 2004-01-22 Paolo Carlini <pcarlini@suse.de>
5161 * include/bits/basic_string.h (_M_replace_safe): Change
5162 signatures to take size_types and const _CharT*.
5163 (_M_replace_aux): Likewise, takes size_types instead of
5165 (append(size_type, _CharT)): Update call.
5166 (assign(size_type, _CharT)): Ditto.
5167 (replace(iterator, iterator, size_type, _CharT)): Ditto.
5168 (_M_replace_dispatch(iterator, iterator, _Integer,
5169 _Integer, __true_type)): Ditto.
5170 * include/bits/basic_string.tcc (assign(const _CharT*,
5172 (insert(size_type, const _CharT*, size_type)): Ditto.
5173 (replace(size_type, size_type, const _CharT*,
5175 (_M_replace(iterator, iterator, _InputIterator,
5176 _InputIterator)): Ditto.
5177 (append(const basic_string&)): Ditto.
5178 (append(const basic_string&, size_type, size_type): Ditto.
5179 (append(const _CharT*, size_type): Ditto.
5180 (_M_replace_safe, _M_replace_safe): Change definitions
5181 accordingly, simplify.
5182 * string-inst.cc (_M_replace_safe): Don't instantiate.
5184 2004-01-21 Paolo Carlini <pcarlini@suse.de>
5186 * include/bits/basic_string.tcc (append(const basic_string&)):
5187 Revert previous change.
5188 (append(const basic_string&, size_type, size_type)): Revert
5189 previous change, use _M_check and _M_limit.
5191 2004-01-21 Paolo Carlini <pcarlini@suse.de>
5193 * include/bits/basic_string.h (_M_check): Change to return
5194 a checked __pos and take an additional const char* argument.
5195 (_M_fold): Rename to _M_limit, change to return a size_type,
5196 corresponding to the __off limited to the actual length.
5197 (insert(size_type, size_type, _CharT)): Update call, call
5199 (insert(iterator, _CharT)): Call replace(iterator, iterator,
5200 size_type, _CharT) instead.
5201 (erase(size_type, size_type)): Update calls.
5202 (replace(size_type, size_type, size_type, _CharT)): Ditto.
5203 (substr(size_type, size_type)): Use _M_check.
5204 * include/bits/basic_string.tcc (basic_string(const basic_string&,
5205 size_type, size_type)): Update calls.
5206 (basic_string(const basic_string&, size_type, size_type,
5207 const _Alloc&)): Ditto.
5208 (assign(const basic_string&, size_type, size_type)): Use the
5209 new _M_check and _M_limit.
5210 (insert(size_type, const basic_string&, size_type, size_type):
5212 (insert(size_type, const _CharT*, size_type)): Ditto.
5213 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
5214 (replace(size_type, size_type, const basic_string&,
5215 size_type, size_type)): Ditto.
5216 (append(const basic_string&)): Ditto.
5217 (append(const basic_string&, size_type, size_type)): Ditto.
5218 (copy(_CharT*, size_type, size_type)): Ditto.
5219 (compare(size_type, size_type, const basic_string&)): Ditto.
5220 (compare(size_type, size_type, const basic_string&,size_type,
5222 (compare(size_type, size_type, const _CharT*)): Ditto.
5223 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5225 2004-01-19 Stefan Olsson <stefan@snon.net>
5227 * include/ext/mt_allocator.h: If a thread, when it dies, still has
5228 memory on it's freelist this memory is not returned to global
5229 list. Simplification of deallocate so that memory is always
5230 returned to the calling thread id's freelist instead of to
5231 global. Fix typos. Add volatile where appropriate.
5233 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
5235 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
5236 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
5237 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
5239 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5241 * src/debug.cc: Make sure all the names are prefixed with
5242 double (or single) underscore.
5244 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5246 * src/debug.cc: Trivial formatting change.
5248 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5250 * include/bits/basic_string.tcc (_S_construct(size_type,
5251 _CharT, const _Alloc&)): Remove redundant try/catch.
5252 (_M_mutate(size_type, size_type, size_type)): Ditto.
5253 (_M_clone(const _Alloc&, size_type)): Ditto.
5255 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5257 * include/bits/basic_string.h (c_str()): Simplify, due to
5258 21.3.4 the internal representation is always kept null-terminated.
5259 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
5260 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
5261 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
5264 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5266 * include/bits/basic_string.h (append(size_type, _CharT)):
5267 Moved inline, just call _M_replace_aux, no source iterators at
5268 risk of being clobbered.
5269 (assign(size_type, _CharT)): Call directly _M_replace_aux.
5270 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5271 input_iterator_tag)): Remove fifth unused argument.
5272 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5273 _InputIterator, __false_type)): Update call.
5274 * include/bits/basic_string.tcc (replace(size_type, size_type,
5275 const _CharT*, size_type)): Update call.
5276 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
5277 throw string literal.
5278 (_M_replace_safe(iterator, iterator, _ForwardIterator,
5279 _ForwardIterator)): Likewise.
5280 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5281 input_iterator_tag)): Remove fifth unused argument.
5282 (append(size_type __n, _CharT __c)): Move inline.
5283 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
5284 const C*, const C*, input_iterator_tag)): Remove fifth unused
5287 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
5289 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
5290 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
5292 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
5294 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
5297 2004-01-15 Stefan Olsson <stefan@snon.net>
5299 * include/ext/mt_allocator.h: Reuse thread id's as soon as
5300 possible by changing the behaviour of thread_freelist to do
5301 push_front when threads die instead of push_back.
5303 2004-01-14 Paolo Carlini <pcarlini@suse.de>
5305 * include/bits/locale_facets.h (struct __numpunct_cache):
5306 Add member _M_grouping_size, caching the length of _M_grouping.
5307 (__numpunct_cache<>::_M_cache): Assign the latter.
5308 (__verify_grouping): Move declaration...
5309 * include/bits/locale_facets.tcc (__verify_grouping):
5310 ... here, change signature to take a const char* and a size_t
5311 for the grouping; not a template anymore.
5312 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
5313 Likewise change signature and tweak consistently.
5314 (num_get::_M_extract_float, num_get::_M_extract_int,
5315 num_put::_M_insert_int, num_put::_M_insert_float,
5316 money_get::do_get(string_type&), money_get::do_put(string_type)):
5318 * config/locale/generic/numeric_members.cc
5319 (numpunct<>::_M_initialize_numpunct): Assign the new member.
5320 * config/locale/gnu/numeric_members.cc
5321 (numpunct<>::_M_initialize_numpunct): Likewise.
5322 * src/locale-inst.cc (__add_grouping): Tweak signature.
5323 (__verify_grouping): Don't instantiate, not a template anymore.
5325 * include/bits/locale_facets.h: Rename _M_truename_len ->
5326 _M_truename_size, _M_falsename_len -> _M_falsename_size.
5327 * include/bits/locale_facets.tcc: Likewise.
5328 * config/locale/generic/numeric_members.cc: Likewise.
5329 * config/locale/gnu/numeric_members.cc: Likewise.
5331 2004-01-14 Stefan Olsson <stefan@snon.net>
5333 * include/ext/mt_allocator.h: Fixups.
5334 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
5335 * testsuite/performance/allocator_thread.cc: Same.
5337 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
5339 * testsuite/performance/ifstream_extract_float.cc: Add higher
5341 * testsuite/performance/ofstream_insert_float.cc: Same.
5343 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5345 * src/locale-misc-inst.cc (__convert_from_v(long),
5346 __convert_from_v(unsigned long), __convert_from_v(long long),
5347 __convert_from_v(unsigned long long)): Remove, unused.
5349 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
5351 * testsuite/performance/ifstream_extract_float.cc: New.
5352 * testsuite/performance/ofstream_insert_float.cc: Float generation
5355 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
5356 * 20_util/auto_ptr/1.cc: ...this.
5357 * 20_util/auto_ptr/2.cc: Same.
5358 * 20_util/auto_ptr/3.cc: Same.
5359 * 20_util/auto_ptr/3946.cc: Same.
5360 * 20_util/auto_ptr/4.cc: Same.
5361 * 20_util/auto_ptr/5.cc: Same.
5362 * 20_util/auto_ptr/6.cc: Same.
5363 * 20_util/auto_ptr/7.cc: Same.
5364 * 20_util/auto_ptr/assign_neg.cc
5365 * 20_util/pairs.cc: Break into...
5366 * 20_util/pair/1.cc: ...this.
5367 * 20_util/pair/2.cc: Same.
5368 * 20_util/pair/3.cc: Same.
5369 * 20_util/pair/4.cc: Same.
5371 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5373 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
5374 Set correctly just basefield, the only group that matters.
5376 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5378 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
5379 (_Rope_rep_base): Inherit directly from the rope allocator;
5380 use rebinding instead of _Alloc_traits; pick up data member
5381 from _Rope_rep_alloc_base.
5382 (_Rope_alloc_base): Eliminate.
5383 (_Rope_base): Inherit directly from the rope allocator; use
5384 rebinding instead of _Alloc_traits; pick up data member from
5386 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
5387 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
5389 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5392 * include/bits/basic_string.tcc (compare(size_type, size_type,
5393 const _CharT*, size_type)): Implement correctly the resolution
5394 of DR 5: basically, s is a char array, -not- a C string.
5395 * include/bits/basic_string.h: Tweak some comments.
5396 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
5397 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
5399 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
5401 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
5404 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5406 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
5408 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
5411 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5413 * include/bits/locale_facets.h (struct __numpunct_cache):
5414 Add members _M_truename_len and _M_falsename_len, caching
5415 the lengths of _M_truename and _M_falsename.
5416 (__numpunct_cache<>::_M_cache): Assign the latter.
5417 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
5418 num_put::do_put(bool)): Use the new members, thus avoiding
5419 computing string lengths again and again.
5420 * config/locale/generic/numeric_members.cc
5421 (numpunct<>::_M_initialize_numpunct): Assign the new members.
5422 * config/locale/gnu/numeric_members.cc
5423 (numpunct<>::_M_initialize_numpunct): Likewise.
5425 2004-01-12 Mark Mitchell <mark@codesourcery.com>
5427 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
5428 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
5430 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
5431 and remove Cygwin XFAIL.
5432 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
5433 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
5434 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
5435 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
5437 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
5438 * testsuite/27_io/objects/char/7.cc: Likewise.
5439 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
5440 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
5441 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
5443 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
5445 * include/std/std_complex.h (std::complex<>::real): Return a
5446 reference. Add non-const overload.
5447 (std::complex<>::real): Likewise.
5448 (std::real): Likewise.
5449 (std::imag): Likewise.
5450 (std::operator+): Tidy.
5451 (std::operator-): Likewise.
5452 (std::operator*): Likewise.
5453 (std::operator/): Likewise.
5454 (std::operator>>): Likewise.
5456 2004-01-11 Paolo Carlini <pcarlini@suse.de>
5459 * include/bits/fstream.tcc (imbue): Exploit the external
5460 buffer to imbue 'on the fly' a new locale and convert its
5461 remainder with the new codecvt facet.
5462 (underflow): Tweak slightly to deal with this special case.
5463 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
5464 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
5465 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
5466 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
5467 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
5469 2004-01-10 Paolo Carlini <pcarlini@suse.de>
5471 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
5474 2004-01-10 Paolo Carlini <pcarlini@suse.de>
5477 * include/bits/locale_classes.h (class locale): Fix category
5479 * testsuite/22_locale/locale/13630.cc: Add.
5481 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
5483 * include/bits/locale_facets.h: Make a name really dependent. This
5484 will be needed when Core Issue 224 is implemented.
5486 2004-01-09 Paolo Carlini <pcarlini@suse.de>
5488 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
5489 * testsuite/performance/allocator_thread.cc: Likewise.
5491 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
5493 * crossconfig.m4: Add LFS, io bits to linux cross config.
5494 * acconfig.h: Remove obsolete bits, reorder.
5495 * config.h.in: Regenerate.
5499 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
5501 * include/bits/stl_list.h:
5502 * include/bits/list.tc:
5504 Performance enhancements for destructor, push_front(),
5505 push_back(), pop_front(), pop_back(), sort()
5506 Eliminated static_casts where possible.
5507 Moved code out of header files into new src/list.cc
5508 implementation file for library where possible.
5509 Remove inheritance from iterator class and create separate
5510 classes for non-constant and constant iterators.
5511 * include/bits/stl_tree.h (_Rb_tree class):
5513 Only erase contents in destructor.
5514 Eliminate unnecessary initialization in assignment operator.
5515 Optimize for the nominal case by not checking whether
5516 container is empty in clear().
5517 Re-order test in _M_insert() to improve performance.
5518 Move initialization of new node's left & right pointers to
5519 src/tree.cc to where new node's colour is initialized
5520 and to reduce the amount of inline code.
5521 Use _M_leftmost() and _M_end() to improve readability where
5523 Create separate classes for non-constant and constant
5524 iterators to clarify code, avoid extra template parameters and
5525 casting away constness.
5527 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
5529 * src/Makefile.am (sources): Add list.cc, tree.cc.
5530 * src/stl_tree.cc: Move to...
5531 * src/tree.cc: ...here.
5533 * config/linker-map.gnu: Tweaks.
5534 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
5535 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
5537 * bits/stl_vector.h: Column wrap comments.
5539 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
5541 (re-open) PR libstdc++/12658
5542 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
5543 (locale::global): Likewise.
5545 2004-01-07 Paolo Carlini <pcarlini@suse.de>
5547 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
5548 Remove redundant #include.
5549 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
5550 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
5551 re-enable normal testing.
5552 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
5554 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
5555 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
5557 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
5559 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
5561 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
5563 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
5565 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
5567 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
5569 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
5570 More properly, #include <locale>.
5571 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
5572 Remove redundant #include.
5573 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
5574 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
5575 redundant DejaGnu directive.
5576 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
5579 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
5580 Stefan Olsson <stefan@snon.net>
5582 * scripts/check_performance: Use -pthread.
5583 * testsuite/performance/allocator.cc: Tweaks, add list.
5584 * testsuite/performance/allocator_thread.cc: New.
5586 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
5588 * include/bits/locale_facets.h: Document public classes and
5590 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
5593 2004-01-06 Paolo Carlini <pcarlini@suse.de>
5595 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
5596 Remove redundant #includes.
5597 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
5599 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
5601 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
5602 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
5603 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
5604 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
5605 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
5606 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
5607 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
5608 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
5609 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
5610 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
5611 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
5612 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
5613 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
5614 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
5615 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
5617 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
5619 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
5621 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
5623 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
5625 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
5626 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
5627 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
5629 2004-01-04 Paolo Carlini <pcarlini@suse.de>
5631 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
5632 Remove redundant #includes.
5633 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
5635 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
5637 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
5639 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
5641 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
5643 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
5645 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
5647 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
5649 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
5651 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
5653 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
5655 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
5658 2004-01-04 Mark Mitchell <mark@codesourcery.com>
5661 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
5663 * testsuite/27_io/basic_fstream/4.cc: Likewise.
5664 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
5665 * testsuite/27_io/basic_ios/4.cc: Likewise.
5666 * testsuite/27_io/basic_iostream/4.cc: Likewise.
5667 * testsuite/27_io/basic_istream/4.cc: Likewise.
5668 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
5669 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
5670 * testsuite/27_io/basic_ostream/4.cc: Likewise.
5671 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
5672 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
5673 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
5675 2004-01-04 Paolo Carlini <pcarlini@suse.de>
5677 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
5678 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
5679 always use double underscored names.
5680 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
5682 * include/bits/locale_facets.h (struct __numpunct_cache):
5683 Dimension _M_atoms_out and _M_atoms_in one position smaller.
5684 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out