1 2004-10-25 Geoffrey Keating <geoffk@apple.com>
3 * libsupc++/new_op.cc (new): Make weak.
4 * libsupc++/new_opnt.cc (new): Make weak.
5 * libsupc++/new_opv.cc (new): Make weak.
6 * libsupc++/new_opvnt.cc (new): Make weak.
7 * libsupc++/delete_op.cc (delete): Make weak.
8 * libsupc++/delete_opnt.cc (delete): Make weak.
9 * libsupc++/delete_opv.cc (delete): Make weak.
10 * libsupc++/delete_opvnt.cc (delete): Make weak.
12 2004-10-25 Benjamin Kosnik <bkoz@redhat.com>
14 * testsuite/Makefile.am (GLIBCXX_INCLUDES): Add.
15 (AUTOMAKE_OPTIONS): Add nostdinc.
16 * testsuite/Makefile.in: Regenerate.
17 * scripts/testsuite_flags.in (build-includes): Remove redundant
21 2004-10-25 Benjamin Kosnik <bkoz@redhat.com>
23 * include/Makefile.am (tr1_headers): Add tuple.
24 * include/Makefile.in: Regenerate.
26 2004-10-25 Chris Jefferson <chris@bubblescope.net>
28 * include/tr1/tuple: Implementation of tuple from library TR.
29 * testsuite/tr1/6_containers/tuple/tuple_element.cc: New.
30 * testsuite/tr1/6_containers/tuple/tuple_size.cc: New.
31 * testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc:
33 * testsuite/tr1/6_containers/tuple/cons/assignment.cc: New.
34 * testsuite/tr1/6_containers/tuple/cons/big_tuples.cc: New.
35 * testsuite/tr1/6_containers/tuple/cons/constructor.cc: New.
36 * testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc:
38 * testsuite/tr1/6_containers/tuple/creation_functions/tie.cc: New.
39 * testsuite/tr1/6_containers/tuple/element_access/get.cc: New.
41 2004-10-25 Paolo Carlini <pcarlini@suse.de>
43 * include/bits/basic_string.h (_Rep::_M_is_safe): Move to
44 basic_string as _M_disjunct, adjust to take only __s.
45 * include/bits/basic_string.tcc: Adjust consistently callers.
47 2004-10-25 Paolo Carlini <pcarlini@suse.de>
49 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
50 Adjust bit missing from the previous commit.
52 2004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
55 * testsuite/lib/libstdc++.exp: Accept more than one multilib libgcc.
57 2004-10-25 Paolo Carlini <pcarlini@suse.de>
59 * include/bits/basic_string.h (_Rep::_M_is_safe, _M_check_length,
60 _M_move, _M_copy, _M_assign): New, use througout.
61 (operator+=(_CharT)): Define in terms of push_back.
62 (append(const basic_string&)): Define here, inline, and simplify,
63 don't use the full _M_replace_safe.
64 (append(size_type, _CharT)): Likewise, don't use _M_replace_aux.
65 (push_back): Likewise.
66 (assign(const basic_string&)): Define here, inline.
67 * include/bits/basic_string.tcc (append(const _CharT* s, size_type):
68 Fix: when s points inside the _Rep, upon reallocation (reserve) we
69 were copying from deallocated memory.
70 (append(const basic_string&, size_type, size_type)): Simplify,
71 don't use _M_replace_safe.
72 (replace(size_type, size_type, const _CharT*, size_type)): Slightly
75 * testsuite/21_strings/basic_string/append/char/2.cc: New.
76 * testsuite/21_strings/basic_string/append/char/3.cc: Likewise.
77 * testsuite/21_strings/basic_string/append/wchar_t/2.cc: Likewise.
78 * testsuite/21_strings/basic_string/append/wchar_t/3.cc: Likewise.
80 * testsuite/21_strings/basic_string/assign/char/3.cc: Remove junk.
81 * testsuite/21_strings/basic_string/assign/wchar_t/3.cc: Likewise.
83 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
85 * testsuite/ext/mt_allocator/deallocate_global-2.c:
86 s/value_t/value_type/. s/traits_t/traits_type/.
87 s/policy_t/policy_type/. s/allocator_t/allocator_type/.
88 s/string_t/string_type/. s/list_t/list_type/.
89 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Likewise.
90 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Likewise.
91 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Likewise.
92 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Likewise.
93 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Likewise.
94 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Likewise.
95 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Likewise.
97 2004-10-21 Benjamin Kosnik <bkoz@redhat.com>
99 * include/tr1/array (array): Make safe for zero-sized arrays.
100 (array::end): Return one past the end.
101 (array::at): Use __throw_out_of_range, include functexcept.h.
102 (operator==): Implement.
108 * testsuite/tr1/6_containers/array/capacity/(empty.cc,
109 max_size.cc, size.cc): New.
110 * testsuite/tr1/6_containers/array/comparison_operators/(equal.cc,
111 greater.cc, greater_or_equal.cc, less.cc, less_or_equal.cc,
113 * testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc:
115 * testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc:
117 * testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc: New.
118 * testsuite/tr1/6_containers/array/requirements/(contiguous.cc,
119 instantiate, typedefs, zero_size_arrays): New.
121 2004-10-21 Paolo Carlini <pcarlini@suse.de>
122 Benjamin Kosnik <bkoz@redhat.com>
124 * include/bits/basic_string.h (_M_set_length_and_sharable): New.
125 * include/bits/basic_string.tcc (_S_construct, assign(const _CharT*,
126 size_type), _M_mutate, _M_clone): Use it.
127 (_Rep::_S_create): Don't set/call _M_length/_M_set_sharable here.
129 2004-10-21 Paolo Carlini <pcarlini@suse.de>
130 Dhruv Matani <dhruvbird@gmx.net>
131 Nathan Myers <ncm@cantrip.org>
133 * include/bits/vector.tcc (_M_insert_aux, _M_fill_insert,
134 _M_range_insert): Check at the outset that we are not trying
135 to exceed max_size, then deal properly with __len overflows.
136 * testsuite/23_containers/vector/modifiers/insert/1.cc: New.
138 * testsuite/testsuite_allocator.h: Remove redundant include.
140 2004-10-20 Paolo Carlini <pcarlini@suse.de>
142 * include/ext/bitmap_allocator.h (allocate): Throw std::bad_alloc
144 * include/ext/malloc_allocator.h (allocate): Likewise.
145 * include/ext/mt_allocator.h (allocate): Likewise.
146 * include/ext/new_allocator.h (allocate): Likewise.
147 * include/ext/array_allocator.h: Use __throw_bad_alloc().
148 * include/ext/pool_allocator.h: Use __builtin_expect.
149 * testsuite/ext/array_allocator/check_allocate_max_size.cc: New.
150 * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc: Likewise.
151 * testsuite/ext/malloc_allocator/check_allocate_max_size.cc: Likewise.
152 * testsuite/ext/mt_allocator/check_allocate_max_size.cc: Likewise.
153 * testsuite/ext/new_allocator/check_allocate_max_size.cc: Likewise.
154 * testsuite/ext/pool_allocator/check_allocate_max_size.cc: Likewise.
155 * testsuite/testsuite_allocator.h (check_allocate_max_size): New test.
157 2004-10-19 Paolo Carlini <pcarlini@suse.de>
159 * testsuite/performance/20_util/allocator/list_sort_search.cc:
160 Include <ext/new_allocator.h>.
161 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
163 2004-10-18 Paolo Carlini <pcarlini@suse.de>
165 * include/bits/basic_string.tcc (_M_mutate): Do not reallocate
166 unnecessarily when _M_rep() == &_S_empty_rep() and __new_size
167 == capacity() (== 0): is ok to just leave everything unchanged.
169 * include/bits/basic_string.h: Minor formatting fixes.
170 * include/bits/basic_string.tcc: Likewise.
172 2004-10-17 Benjamin Kosnik <bkoz@redhat.com>
174 * include/ext/mt_allocator.h (__pool::_M_get_align): New.
175 (__mt_alloc::allocate): Use it.
176 * src/mt_allocator.cc (__pool::_M_reclaim_block): Use it.
177 (__pool::_M_reserve_block): Simplify block allocation.
179 2004-10-17 Dhruv Matani <dhruvbird@gmx.net>
180 Paolo Carlini <pcarlini@suse.de>
182 * include/ext/bitmap_allocator.h: Change unsigned int -> size_t: this
183 makes the code 64-bit correct and also fixes (together with using at
184 the beginning a bitmap 2 * size_t bytes wide) alignment issues: now
185 8 is guaranteed, easily tunable to 16 via _BALLOC_ALIGN_BYTES.
186 Fix pthread-rope7.cc fail by nulling out __mini_vector<> destructor.
187 * src/bitmap_allocator.cc: Change to size_t.
188 * config/linker-map.gnu: Adjust.
190 2004-10-16 Benjamin Kosnik <bkoz@redhat.com>
192 * include/tr1/array: Don't use layout_type.
194 2004-10-16 Sashan Govender <sashang@gmail.com>
196 * include/tr1/array (array::end const): Fix casting from iterator
199 2004-10-15 Paolo Carlini <pcarlini@suse.de>
201 * include/ext/bitmap_allocator.h: Qualify ::operator delete.
202 * src/bitmap_allocator.cc: Likewise.
203 * src/mt_allocator.cc: Use ::operator delete, not delete,
204 consistently with ::operator new.
206 * include/ext/bitmap_allocator.h (deallocate): Check for null
208 * testsuite/ext/bitmap_allocator/check_deallocate_null.cc: New.
209 * testsuite/testsuite_allocator.h (check_deallocate_null): Add test.
211 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
213 * include/ext/mt_allocator.h (__mt_alloc::deallocate): Check for
215 * include/ext/pool_allocator.h (debug_allocator::deallocate):
217 * include/ext/debug_allocator.h (debug_allocator::deallocate):
218 Throw exceptions, don't abort.
219 * include/ext/array_allocator.h
220 (array_allocator_base::deallocate): Remove unused parameters.
221 * testsuite/testsuite_allocator.h (check_deallocate_null): New.
222 * testsuite/ext/mt_allocator/check_deallocate_null.cc: New.
223 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: New.
224 * testsuite/ext/array_allocator/check_deallocate_null.cc: New.
225 * testsuite/ext/debug_allocator/check_deallocate_null.cc: New.
226 * testsuite/ext/malloc_allocator/check_deallocate_null.cc: New.
227 * testsuite/ext/new_allocator/check_deallocate_null.cc: New.
228 * testsuite/ext/pool_allocator/check_deallocate_null.cc: New.
230 * testsuite/testsuite_allocator.h (check_new): Add instance argument.
231 * testsuite/ext/array_allocator/check_new.cc: New.
233 2004-10-14 Paolo Carlini <pcarlini@suse.de>
235 * include/ext/bitmap_allocator.h (bitmap_allocator::_Alloc_block):
236 Rename __unused to __M_unused.
238 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
240 * testsuite/ext/headers.cc: Add includes, compile only.
241 * testsuite/ext/hash_map.cc: Move to...
242 * testsuite/ext/hash_map/1.cc: ...here.
243 * testsuite/ext/14648.cc: Move to...
244 * testsuite/ext/hash_map/14648.cc: ...here.
245 * testsuite/ext/hash_map/instantiate.cc: Add.
246 * testsuite/ext/hash_set.cc: Move to...
247 * testsuite/ext/hash_set/1.cc: ...here.
248 * testsuite/ext/hash_set_explicit_instantiation.cc: Move to...
249 * testsuite/ext/hash_set/instantiate.cc: ...here.
250 * testsuite/ext/hash_check_construct_destroy.cc: Move to...
251 * testsuite/ext/hash_set/check_construct_destroy.cc: ...here.
252 * testsuite/ext/slist_check_construct_destroy.cc: Move to...
253 * testsuite/ext/slist/check_construct_destroy.cc: ...here.
254 * testsuite/ext/slist_explicit_instantiation.cc: Move to...
255 * testsuite/ext/slist/instantiate.cc: ...here.
257 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
259 * include/ext/mt_allocator.h: Tweaks.
260 * src/mt_allocator.cc: Same.
262 2004-10-14 Dhruv Matani <dhruvbird@gmx.net>
264 * ext/bitmap_allocator.h: Clean-up add/remove functions.
265 * src/bitmap_allocator.cc: New file. Contains the out-of-line
266 function definitions, static initialization of variables, and
267 explicit instantiations needed for the allocator.
268 * src/Makefile.am: Add.
269 * src/Makefile.in: Regenerate.
270 * config/linker.map.gnu: Add the necessary symbols.
272 2004-10-13 Paolo Carlini <pcarlini@suse.de>
274 * include/bits/basic_string.tcc (_S_create): Use consistently
275 the exponential policy, simplify.
276 * testsuite/performance/21_strings/string_append_2.cc: New.
278 * include/ext/array_allocator.h (allocate): Fix bad_alloc check.
279 * testsuite/ext/array_allocator/2.cc: Fix wrt 64-bit archs (in
280 that case sizeof(_Rep) == 24).
282 2004-10-12 Paolo Carlini <pcarlini@suse.de>
285 * include/bits/stl_tree.h (erase(iterator, iterator)): Revert
286 wrong commit of 2004-10-07.
288 2004-10-12 Scott Snyder <snyder@fnal.gov>
291 * testsuite/23_containers/set/modifiers/17948.cc: New.
293 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
295 * include/bits/stl_deque.h: Correct for over-long lines.
297 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
300 * include/ext/mt_allocator.h (__pool::_M_destroy): New.
301 * src/mt_allocator.cc (__pool::~__pool): Change definitions to
303 * acconfig.h: Remove _GLIBCXX_USE___CXA_ATEXIT.
304 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): Remove.
305 * configure.ac: Remove call to GLIBCXX_ENABLE_CXA_EXIT.
306 * configure: Regenerate.
307 * config/linker-map.gnu: Tweak exports.
308 * docs/html/ext/mt_allocator.html: Update docs.
309 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Fix.
310 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Fix.
311 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Fix.
312 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Fix.
313 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Fix.
314 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Fix.
315 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Fix.
316 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Fix.
318 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
320 PR libstdc++/16614 continued.
321 * include/ext/mt_allocator.h
322 (__per_type_pool_policy::_S_get_pool): Use saner defaults based on
323 specific type characteristics.
324 (__pool_base): Add constructor that takes a _Tune argument.
326 * testsuite/ext/mt_allocator/tune-2.cc: Adjust default.
327 * testsuite/ext/mt_allocator/tune-4.cc: Same.
328 * testsuite/ext/mt_allocator/tune-3.cc: Same.
330 2004-10-11 Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
331 Paolo Carlini <pcarlini@suse.de>
333 * src/pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk):
334 Deal properly with exceptions thrown by ::operator new(size_t).
335 * testsuite/ext/pool_allocator/allocate_chunk.cc: New.
337 * include/ext/pool_allocator.h: Include <cstdlib>.
339 2004-10-10 Benjamin Kosnik <bkoz@redhat.com>
341 * include/bits/functexcept.h: Add guards.
343 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Tweak test.
344 * configure: Regenerate.
346 2004-10-10 Paolo Carlini <pcarlini@suse.de>
348 * config/locale/gnu/monetary_members.cc (_S_construct_pattern):
349 Give __ret a default value, thus avoiding spurious warnings.
351 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Open either
352 words or linux.words, otherwise exit.
353 * testsuite/performance/27_io/ifstream_getline.cc: Slighlty tweak.
355 2004-10-09 Paolo Carlini <pcarlini@suse.de>
357 * include/std/std_memory.h (__get_temporary_buffer): Don't use
358 INT_MAX, prefer numeric_limits<ptrdiff_t>::max(), ok on 64-bit
360 * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust dg-error
363 2004-10-08 Benjamin Kosnik <bkoz@redhat.com>
365 * acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
366 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): New.
367 * configure.ac: Call GLIBCXX_ENABLE_CXA_EXIT.
368 * configure: Regenerate.
369 * src/mt_allocator.cc (__pool::~__pool): Make conditional on
370 _GLIBCXX_USE___CXA_ATEXIT macro.
371 * docs/html/ext/mt_allocator.html: Add note about deallocation.
372 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Guard checks
373 with _GLIBCXX_USE___CXA_ATEXIT.
374 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
375 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
376 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
377 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
378 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
379 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
380 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
382 2004-10-07 Phil Edwards <phil@codesourcery.com>
384 * testsuite/lib/libstdc++.exp: Update list of undefined functions.
386 2004-10-07 Paolo Carlini <pcarlini@suse.de>
388 * include/bits/list.tcc (operator=): Avoid iterator postincrement.
389 * include/bits/stl_tree.h (erase(iterator, iterator)): Likewise.
391 2004-10-07 Benjamin Kosnik <bkoz@redhat.com>
394 * include/tr1/array: New.
395 * include/Makefile.am (tr1_headers): New.
397 (install-headers): New.
398 (allstamped): Add stamp-tr1.
400 * include/ext/array_allocator.h: New.
401 * include/Makefile.am: Add.
402 * include/Makefile.in: Regenerate.
403 * testsuite/ext/array_allocator/1.cc: New.
404 * testsuite/ext/array_allocator/2.cc: New.
406 2004-10-07 Richard Earnshaw <rearnsha@arm.com>
408 * testsuite/lib/libstdc++.exp (libstdc++_exit): New proc.
410 2004-10-07 Roger Sayle <roger@eyesopen.com>
413 * configure.ac: Newlib does not provide strtold.
414 * configure: Regenerate.
416 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
418 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
419 (GLIBCXX_CONFIGURE_TESTSUITE): Use it.
420 * configure: Regenerated.
421 * testsuite/Makefile.am (CLEANFILES): Add TEST for
422 check-performance executables.
425 * testsuite/Makefile.in: Regenerate.
426 * scripts/create_testsuite_files: Filter thread tests.
428 * testsuite/thread/pthread1.cc: Remove macro conditionals: this
429 file will only be run by thread enabled configurations.
430 * testsuite/thread/pthread7-rope.cc: Same, add rope_type typedef.
431 * testsuite/thread/pthread6.cc: Same.
432 * testsuite/thread/pthread5.cc: Same.
433 * testsuite/thread/pthread4.cc: Same.
434 * testsuite/thread/pthread3.cc: Same.
435 * testsuite/thread/pthread2.cc: Same.
437 * testsuite/ext/mt_allocator/instantiate.cc: Add in __GTHREADS guard.
438 * testsuite/ext/mt_allocator/deallocate_global-1.cc: Move to...
439 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: ...here.
440 * testsuite/ext/mt_allocator/deallocate_global-3.cc: Move to...
441 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: ...here.
442 * testsuite/ext/mt_allocator/deallocate_local-1.cc: Move to...
443 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: ...here.
444 * testsuite/ext/mt_allocator/deallocate_local-3.cc: Move to...
445 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: ...here.
447 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
448 Paolo Carlini <pcarlini@suse.de>
451 * src/mt_allocator.cc (__pool<true>::_M_reserve_block): Revert
452 to old locking order.
454 2004-10-06 Paolo Carlini <pcarlini@suse.de>
456 * include/std/std_sstream.h (_M_sync): When the caller is
457 setbuf, don't trust _M_string.capacity() to be the size of
458 the buffer area, use _M_string.size() in this case.
459 * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
460 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.
462 * include/bits/sstream.tcc (overflow): Avoid calling string::assign
463 unnecessarily when the current _M_string is empty.
465 2004-10-06 Paolo Carlini <pcarlini@suse.de>
467 * include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)):
468 Avoid iterator postincrement.
469 (__rotate): Likewise.
471 * include/bits/stl_algo.h: Minor formatting tweaks.
473 2004-10-06 Christopher Jefferson <caj@cs.york.ac.uk>
475 * include/bits/stl_algo.h (__reverse(random_access_iterator_tag)):
476 Avoid iterator postincrement; fix swapping middle element with
477 itself on odd-length inputs.
479 2004-10-05 Benjamin Kosnik <bkoz@redhat.com>
482 * include/ext/mt_allocator.h (__pool_base::_Tune): Add default
483 options as compile-time constant enums.
484 (__pool_base::_Tune::is_default): New.
485 (__pool_base::_Block_address): New.
486 (__pool_base): Rearrange data members.
487 (__pool::_M_reserve_memory): To _M_reserve_block.
488 (__pool::_M_reclaim_memory): To _M_reclaim_block.
489 (__pool::_Bin_record): Add _Block_address data member.
490 (__pool<false>): Add _M_thread_freelist_initial.
491 (__pool::~__pool): Declare.
492 (__common_pool_policy): Move static data member to...
493 (__common_pool_policy::_S_get_pool): ...here, make static local.
494 (__per_type_pool_policy): Move static data member to...
495 (__per_type_pool_policy::_S_get_pool): ...here, make static local.
496 (__mt_alloc::__mt_alloc): Call __policy_type::_S_get_pool.
497 Remove static member definitions. Use define for __default_policy.
498 * src/mt_allocator.cc: Same.
499 * config/linker-map.gnu: Don't export _S_get_pool. Renames.
500 * testsuite/ext/new_allocator: New.
501 * testsuite/ext/new_allocator/instantiate.cc: New.
502 * testsuite/ext/new_allocator/check_new.cc: New.
503 * testsuite/ext/new_allocator/deallocate_global.cc: New.
504 * testsuite/ext/new_allocator/deallocate_local.cc: New.
505 * testsuite/ext/mt_allocator/instantiate.cc: Instantiate all
507 * testsuite/ext/mt_allocator/deallocate_global-1.cc: New.
508 * testsuite/ext/mt_allocator/deallocate_global-2.cc: New.
509 * testsuite/ext/mt_allocator/deallocate_global-3.cc: New.
510 * testsuite/ext/mt_allocator/deallocate_global-4.cc: New.
511 * testsuite/ext/mt_allocator/deallocate_local-1.cc: New.
512 * testsuite/ext/mt_allocator/deallocate_local-2.cc: New.
513 * testsuite/ext/mt_allocator/deallocate_local-3.cc: New.
514 * testsuite/ext/mt_allocator/deallocate_local-4.cc: New.
515 * testsuite/ext/mt_allocator/deallocate.cc: New.
516 * testsuite/ext/malloc_allocator/deallocate.cc: New.
517 * testsuite/ext/malloc_allocator/deallocate_global.cc: New.
518 * testsuite/ext/malloc_allocator/deallocate_local.cc: New.
520 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
522 * configure.host (abi_baseline_pair): Define for s390-*-linux* and
524 * config/abi/s390-linux-gnu/baseline_symbols.txt: Add missing symbols.
525 * config/abi/s390x-linux-gnu/baseline_symbols.txt: New file.
527 2004-10-05 Christopher Jefferson <caj@cs.york.ac.uk>
529 * include/bits/stl_algobase.h (iter_swap): delegate to swap via
530 __iter_swap when iterator's value_types are equal.
531 (struct __iter_swap): New.
533 2004-10-04 Benjamin Kosnik <bkoz@redhat.com>
535 * configure.ac (libtool_VERSION): To 6:3:0.
536 * configure: Regnerate.
537 * testsuite/testsuite_abi.cc (check_version): Add 3.4.3.
539 2004-10-04 Roger Sayle <roger@eyesopen.com>
540 Eric Botcazou <ebotcazou@libertysurf.fr>
543 * config/linker-map.gnu: Synchronize the current list of stub
544 functions from libmath.
546 2004-10-03 Roger Sayle <roger@eyesopen.com>
548 * config/locale/generic/c_locale.cc (__convert_to_v): Use
549 _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
550 Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
551 to check for presence of strtold.
553 2004-10-03 Paolo Carlini <pcarlini@suse.de>
555 * include/bits/stl_list.h: Trivial formatting fixes.
556 * include/bits/stl_tree.h: Likewise.
558 2004-10-03 Paolo Carlini <pcarlini@suse.de>
560 * include/bits/sstream.tcc (seekpos): In case of success, just
563 2004-10-01 Paolo Carlini <pcarlini@suse.de>
565 * include/bits/sstream.tcc (pbackfail): Implement correctly
566 27.7.1.3/2, bullet 2: if mode & ios_base::out is false do not
568 * testsuite/27_io/basic_stringbuf/pbackfail/char/1.cc: New.
569 * testsuite/27_io/basic_stringbuf/pbackfail/char/2.cc: Likewise.
570 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/1.cc: Likewise.
571 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/2.cc: Likewise.
572 * testsuite/27_io/basic_istream/putback/char/1.cc: Tweak consistently.
574 2004-10-01 Paolo Carlini <pcarlini@suse.de>
576 * include/bits/sstream.tcc (seekpos): Minor rearrangement of two
577 conditionals consistently with seekoff.
578 * include/std/std_sstream.h (setbuf): Avoid a string temporary.
579 (_M_sync): Simplify a bit, clean-up comment.
581 2004-09-30 Paolo Carlini <pcarlini@suse.de>
583 PR libstdc++/10975 (DR 453)
584 * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
586 * docs/html/ext/howto.html: Add an entry for DR 453.
587 * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
588 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
589 * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
590 * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
591 * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
592 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
594 * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
595 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
597 * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
599 2004-09-29 Paolo Carlini <pcarlini@suse.de>
601 * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
602 Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
603 (str()): Slightly tweak, protect from pptr() == 0.
604 (_M_update_egptr()): Likewise.
605 * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
606 for an empty buffer use __beg instead of _M_string.capacity().
607 * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
608 * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
610 * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
611 * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
612 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
613 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
615 2004-09-29 Paolo Carlini <pcarlini@suse.de>
616 Benjamin Kosnik <bkoz@redhat.com>
618 * testsuite/testsuite_io.h (class constraint_buf): New, extended
619 and templatized version of constraint_filebuf; add typedefs for
620 streambuf/stringbuf/filebuf and wchar_t counterparts.
622 2004-09-28 Paolo Carlini <pcarlini@suse.de>
625 * include/bits/basic_string.h (_M_dispose, _M_refcopy,
626 basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
627 don't deal with _S_empty_rep.
628 * include/bits/basic_string.tcc (_S_construct, _M_destroy,
629 _M_leak_hard, _M_mutate): Likewise.
630 * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
631 * acconfig.h: Add corresponding undef.
632 * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
633 * docs/html/configopts.html: Document --enable-fully-dynamic-string.
634 * configure: Regenerate.
635 * config.h.in: Likewise.
637 2004-09-28 Benjamin Kosnik <bkoz@redhat.com>
638 Paolo Carlini <pcarlini@suse.de>
640 * testsuite/21_strings/basic_string/operations/char/1.cc: New.
641 * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
642 * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
643 * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc:
646 2004-09-28 Paolo Carlini <pcarlini@suse.de>
648 * README: Remove obsolete entry about include/c_shadow.
650 2004-09-24 H.J. Lu <hongjiu.lu@intel.com>
653 * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
655 2004-09-24 Paolo Carlini <pcarlini@suse.de>
657 * src/localename.cc (locale::locale(const char*)): Minor tweaks:
658 rename a variable, move an assignment.
659 (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
661 2004-09-24 Paul Brook <paul@codesourcery.com>
663 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
665 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
666 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
667 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
668 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
669 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
670 * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
672 2004-09-23 Zack Weinberg <zack@codesourcery.com>
674 * testsuite/20_util/memory/auto_ptr/assign_neg.cc
675 * testsuite/23_containers/map/operators/1_neg.cc
676 * testsuite/23_containers/set/operators/1_neg.cc:
677 Update locations and/or regexps of dg-error markers.
679 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
681 * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
682 Add rule to build ${host_builddir}/gthr-tpf.h.
683 * include/Makefile.in: Regenerate.
685 2004-09-23 Paolo Carlini <pcarlini@suse.de>
686 Magnus Fromreide <magfr@lysator.liu.se>
688 * include/bits/boost_concept_check.h (struct _SequenceConcept):
689 Remove wrong requirement, i.e., not present in Table 67.
691 2004-09-21 Paolo Carlini <pcarlini@suse.de>
693 PR libstdc++/12882 (cont)
694 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
695 * configure: Regenerate.
696 * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
697 _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
698 trivial showmanyc for large files too.
700 2004-09-17 Jonathan Wakely <redi@gcc.gnu.org>
702 * include/bits/stl_algo.h (remove): Remove too restrictive
705 2004-09-17 Paolo Carlini <pcarlini@suse.de>
707 * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
708 as per Nathan's original suggestion.
710 2004-09-17 Paolo Carlini <pcarlini@suse.de>
712 * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
714 * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
715 * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
716 * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
718 2004-09-17 Paolo Carlini <pcarlini@suse.de>
719 Andrea Arcangeli <andrea@suse.de>
721 * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
722 call unnecessarily sync, that is fflush: the library, since 3.4.0
723 does not use buffered fread/fwrite.
724 * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
726 2004-09-15 Mark Mitchell <mark@codesourcery.com>
728 * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
730 * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
732 * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
733 (__cxa_vec_new): Use it.
734 (__cxa_vec_new2): Likewise.
735 (__cxa_vec_new3): Likewise.
736 (__cxa_vec_cdtor): Likewise.
737 (__cxa_vec_cctor): Likeiwse.
738 (__cxa_vec_dtor): Likewise.
739 (__cxa_vec_cleanup): Likewise.
740 (__cxa_vec_delete2): Likewise.
741 (__cxa_vec_delete3): Likewise.
742 * libsupc++/vec.cc (__cxa_vec_new): Likewise.
743 (__cxa_vec_new2): Likewise.
744 (__cxa_vec_new3): Likewise.
745 (__cxa_vec_cdtor): Likewise.
746 (__cxa_vec_cctor): Likeiwse.
747 (__cxa_vec_dtor): Likewise.
748 (__cxa_vec_cleanup): Likewise.
749 (__cxa_vec_delete2): Likewise.
750 (__cxa_vec_delete3): Likewise.
751 (__aeabi_vec_ctor_nocookie_nodtor): New function.
752 (__aeabi_vec_ctor_cookie_nodtor): Likewise.
753 (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
754 (__aeabi_vec_new_cookie_noctor): Likewise.
755 (__aeabi_vec_new_nocookie): Likewise.
756 (__aeabi_vec_new_cookie_nodtor): Likewise.
757 (__aeabi_vec_new_cookie): Likewise.
758 (__aeabi_vec_dtor): Likewise.
759 (__aeabi_vec_dtor_cookie): Likewise.
760 (__aeabi_vec_delete): Likewise.
761 (__aeabi_vec_delete3): Likewise.
762 (__aeabi_vec_delete3_nodtor): Likewise.
763 (__aeabi_atexit): Likewise.
765 2004-09-14 Nathan Myers <ncm@cantrip.org>
767 * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
768 for 11722: copy can replace move; the common case is __avail == 0.
770 2004-09-14 Paolo Carlini <pcarlini@suse.de>
772 * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
773 to __is_scalar, more clear and consistent with "tr1" naming.
774 * include/bits/stl_algobase.h: Update consistently throughout.
776 2004-09-13 Paolo Carlini <pcarlini@suse.de>
779 * include/std/std_fstream.h (xsgetn): Declare only.
780 * include/bits/fstream.tcc (xsgetn): Define, optimize for the
781 always_noconv() case: when __n > __buflen, copy the available
782 buffer and issue a direct read.
783 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
785 * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
788 2004-09-13 Hans-Peter Nilsson <hp@bitrange.com>
790 * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
791 libstdc++_maybe_build_wrapper instead of using local code.
793 2004-09-08 Benjamin Kosnik <bkoz@redhat.com>
795 * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
797 2004-09-03 Jan Beulich <jbeulich@novell.com>
799 * crossconfig.m4: Add NetWare as a target.
800 * configure: Regenerate.
802 2004-09-02 Mark Mitchell <mark@codesourcery.com>
804 * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
807 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
808 Simon Richter <Simon.Richter@hogyros.de>
811 * include/bits/istream.tcc: Add extern template for iostream
812 char and wchar_t instantiations.
814 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
815 Leland Wang <llwang@infor.org>
818 * include/ext/ropeimpl.h (rope::_S_compare): Use
819 _Rope_constants::_S_leaf.
821 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
824 * include/Makefile.am (ext_headers): Remove demangle.h.
825 * include/Makefile.in: Regenerate.
826 * include/ext/demangle.h: Remove.
828 2004-09-01 Benjamin Kosnik <bkoz@redhat.com>
831 * include/ext/mt_allocator.h (__mt_base): Not type dependent,
833 (__pool): New, specialize.
834 (__common_pool): New, static bits here.
835 (__per_type_pool): New, and here.
836 (__mt_alloc_base): New.
837 (__mt_alloc): Add template parameter, inherit from it.
838 * src/allocator.cc: Split this...
839 * src/allocator-inst.cc: And this...
840 * src/pool_allocator.cc: ...into this.
841 * src/mt_allocator.cc: ... and this. Add definitions for
843 * src/Makefile.am (sources): Split allocator.cc to
844 pool_allocator.cc and mt_allocator.cc.
845 * src/Makefile.in: Regenerate.
846 * config/linker-map.gnu: Add symbols.
847 * docs/html/ext/mt_allocator.html: Document new design.
848 * testsuite/ext/mt_allocator/tune-1.cc: New.
849 * testsuite/ext/mt_allocator/tune-2.cc: New.
850 * testsuite/ext/mt_allocator/tune-3.cc: New.
851 * testsuite/ext/mt_allocator/tune-4.cc: New.
853 * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
854 * testsuite/ext/allocators.cc: Use check_new, split into...
855 * testsuite/ext/mt_allocator/check_new.cc: this.
856 * testsuite/ext/pool_allocator/check_new.cc: this.
857 * testsuite/ext/malloc_allocator/check_new.cc: this.
858 * testsuite/ext/debug_allocator/check_new.cc: this.
859 * testsuite/ext/mt_allocator/instantiate.cc: this.
860 * testsuite/ext/pool_allocator/instantiate.cc: this.
861 * testsuite/ext/malloc_allocator/instantiate.cc: this.
862 * testsuite/ext/debug_allocator/instantiate.cc: this.
864 2004-08-30 Phil Edwards <phil@codesourcery.com>
866 * docs/html/install.html: Update locales list (from Paolo).
867 Remove other redundant information and point to the GCC install
870 2004-08-30 Benjamin Kosnik <bkoz@redhat.com>
872 * include/ext/pool_allocator.h: Rename __pool_base to
874 * src/allocator.cc: Same.
875 * config/linker-map.gnu: Same.
877 2004-08-30 Paolo Carlini <pcarlini@suse.de>
878 Kenneth C. Schalk <ken@xorian.net>
881 * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
882 Check the return value of fclose/sync, loop on EINTR.
883 (__basic_file<char>::sys_open): Likewise, for sync.
885 2004-08-29 Paolo Carlini <pcarlini@suse.de>
887 * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
888 case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
889 and 7.23.3.5), two if !_GLIBCXX_USE_C99.
890 * testsuite/22_locale/time_get/get_time/char/4.cc: New.
891 * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
893 2004-08-27 Jason Merrill <jason@redhat.com>
896 * libsupc++/guard.cc (static_mutex): Internal class implementing a
897 recursive mutex which controls initialization of local statics.
898 (__gnu_cxx::recursive_init): New exception class.
899 (__cxa_guard_acquire): Deal with locking and recursion detection.
900 (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
902 2004-08-27 Matthias Klose <doko@debian.org>
904 * configure.host: For mips*-*-linux* update cpu_include_dir
905 after atomicity_dir is set.
907 2004-08-27 Matthias Klose <doko@debian.org>
909 * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
910 * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
911 * configure.host: Set abi_baseline_pair for arm*-*-linux* and
914 2004-08-27 Paolo Carlini <pcarlini@suse.de>
916 * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
917 * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
918 * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
919 * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
920 * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
922 * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
924 * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
925 * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
926 * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
927 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
929 2004-08-25 Paolo Carlini <pcarlini@suse.de>
931 PR libstdc++/17038 (partial)
932 * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
934 * include/bits/locale_facets.h (class __timepunct): Add FIXME
935 comment about _M_put.
936 * config/locale/generic/time_members.cc (_M_put): Always null
938 * config/locale/gnu/time_members.cc (_M_put): Likewise.
939 * testsuite/22_locale/time_put/put/char/17038.cc: New.
940 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
942 2004-08-24 Paolo Carlini <pcarlini@suse.de>
944 * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
945 * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
946 * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
947 * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
948 * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
949 * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
951 * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
953 * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
955 2004-08-22 Matthias Klose <doko@debian.org>
957 * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
958 * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
960 2004-08-23 Paolo Carlini <pcarlini@suse.de>
962 * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
963 * aclocal.m4: Regenerate with automake-1.9.1.
964 * configure: Regenerate.
965 * Makefile.in: Likewise.
966 * include/Makefile.in: Likewise.
967 * libmath/Makefile.in: Likewise.
968 * libsupc++/Makefile.in: Likewise.
969 * po/Makefile.in: Likewise.
970 * src/Makefile.in: Likewise.
971 * testsuite/Makefile.in: Likewise.
973 2004-08-22 Paolo Carlini <pcarlini@suse.de>
975 * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
976 to a signed type, long according to the resolution of DR 359.
977 * testsuite/22_locale/num_put/put/char/9.cc: New.
978 * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
980 * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
981 Simplify a bit: no need to clear showpos.
983 2004-08-21 Paolo Carlini <pcarlini@suse.de>
985 * include/bits/char_traits.h (struct _Char_traits_match): Remove,
988 2004-08-21 Paolo Carlini <pcarlini@suse.de>
990 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
991 wchar_t type for the fill argument; minor formatting tweaks.
992 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
993 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
994 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
995 * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
996 * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
997 * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
999 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1001 * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
1002 with _M_word != _M_local_word two times, redundantly.
1004 2004-08-20 Jason Merrill <jason@redhat.com>
1006 * include/Makefile.am (${host_builddir}/gthr.h): Don't add
1007 _GLIBCXX_ to #pragma lines.
1008 * include/Makefile.in: Update.
1010 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1012 PR libstdc++/7219 (continued)
1013 * include/bits/ios_base.h (class ios_base): Expose Annex D.6
1014 typedefs by default.
1015 * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
1016 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
1018 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1020 2004-08-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1022 * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
1023 barrier to locking asm.
1025 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1027 * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
1028 actually the warning is a front-end bug (c++/17120).
1030 2004-08-20 Matthias Klose <doko@debian.org>
1032 * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
1034 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1036 * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
1037 used as truth value warning.
1039 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1041 * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
1044 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1046 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
1048 2004-08-19 Benjamin Kosnik <bkoz@redhat.com>
1050 * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
1052 * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
1054 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1056 * testsuite/performance/20_util/allocator/insert.cc: For std::map
1057 instantiate the allocator for a correct pair type.
1058 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1059 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1060 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1063 * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
1064 minor formatting fixes.
1065 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1067 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1069 * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
1071 * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
1072 * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
1073 * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
1074 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
1075 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1076 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1077 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1079 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1081 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1083 2004-08-18 Matthias Klose <doko@debian.org>
1085 * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1086 * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
1087 * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
1089 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1091 * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1093 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1095 * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1097 2004-08-17 Benjamin Kosnik <bkoz@redhat.com>
1099 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1101 2004-08-16 Paolo Carlini <pcarlini@suse.de>
1103 * include/bits/indirect_array.h: Trivial formatting fixes.
1104 * include/bits/valarray_after.h: Likewise.
1105 * include/bits/valarray_array.h: Likewise.
1106 * src/valarray-inst.cc: Likewise.
1108 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1110 * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
1111 * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
1112 * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
1114 * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
1115 * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
1116 * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
1117 * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
1118 * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
1120 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1122 * include/bits/deque.tcc: Trivial formatting fixes.
1124 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1126 * include/bits/deque.tcc: Trivial formatting fixes.
1128 * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
1129 Remove unneded typedef.
1131 * include/bits/locale_facets.tcc: Very minor tweaks.
1133 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
1134 type for the fill argument.
1135 * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
1136 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1137 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1138 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1139 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
1140 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
1141 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
1142 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
1144 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1146 * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
1147 memmove is not needed, memcpy suffices.
1149 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1151 * include/std/std_fstream.h (class basic_ifstream,
1152 class basic_ofstream, class basic_fstream): Add const overloads
1153 of is_open, as per DR 365 [WP].
1154 * docs/html/ext/howto.html: Add an entry for DR 365.
1156 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1158 * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
1160 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1163 * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
1164 to the returned value, reorganize a bit.
1165 * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
1166 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
1168 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
1169 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
1170 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
1171 * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
1173 2004-08-12 Paul Brook <paul@codesourcery.com>
1175 * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
1176 _GLIBCXX_CXA_VEC_CTOR_RETURN.
1177 * config/cpu/generic/cxxabi_tweaks.h: Ditto.
1178 * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
1179 __cxa_vec_ctor_return.
1180 * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
1181 Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
1183 2004-08-12 Kelley Cook <kcook@gcc.gnu.org>
1185 * Makefile.in, aclocal.m4, configure, include/Makefile.in,
1186 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1187 src/Makefile.in, testsuite/Makefile.in: Regenerate
1189 2004-08-12 Jan Beulich <jbeulich@novell.com>
1191 * config/locale/generic/ctype_members.cc
1192 (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
1193 initializer for return value, as that is invalid for enumerated types.
1194 * config/locale/gnu/ctype_members.cc
1195 (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
1197 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1199 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
1201 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1203 * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
1205 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
1206 * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
1207 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
1208 * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
1209 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
1210 * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
1211 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
1212 * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
1213 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
1214 * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
1215 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
1216 * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
1217 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
1218 * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
1219 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
1220 * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
1221 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
1222 * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
1223 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
1224 * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
1225 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
1227 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1228 Petur Runolfsson <peturr02@ru.is>
1231 * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
1232 standard streams are constructed.
1233 * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
1235 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1237 * include/bits/stl_bvector.h: Trivial formatting fixes.
1239 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1241 * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
1243 2004-08-07 Jonathan Wakely <redi@gcc.gnu.org>
1244 Paolo Carlini <pcarlini@suse.de>
1246 * src/debug.cc (_Error_formatter::_M_print_string): In order
1247 to print individual words from __string, _M_format_word can't
1248 be called since may be just sprintf, thus ignoring completely
1249 __n: instead, use memmove and append '\0' by hand.
1251 2004-08-07 Paolo Carlini <pcarlini@suse.de>
1253 * config/locale/generic/c_locale.h (__convert_from_v): Don't
1254 use a default for __prec, assume __prec >= 0 and simplify.
1255 * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
1256 * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
1257 Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
1259 2004-08-04 Phil Edwards <phil@codesourcery.com>
1261 * docs/html/configopts.html: Emphasize that options change.
1262 * docs/html/17_intro/configury.html: Update links.
1264 2004-08-03 Paolo Carlini <pcarlini@suse.de>
1266 * include/bits/list.tcc: Trivial formatting fixes.
1268 2004-08-03 Mark Mitchell <mark@codesourcery.com>
1270 * libsupc++/new_op.cc: Update comments.
1271 * libsupc++/del_op.cc: Likewise.
1273 2004-08-02 Mark Mitchell <mark@codesourcery.com>
1275 * libsupc++/cxxabi.h: Make all declarations have default
1277 * libsupc++/exception: Likewise.
1278 * libsupc++/new: Likewise.
1279 * libsupc++/typeinfo: Likewise.
1280 * libsupc++/unwind-cxx.h: Likewise.
1281 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
1282 the __cxxabiv1 namespace.
1283 (__cxa_free_exception): Likewise.
1284 * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
1285 (__cxa_bad_typeid): Likewise.
1286 * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
1287 (__cxa_end_catch): Likewise.
1288 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
1289 (__cxa_get_globals): Likewise.
1290 * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
1291 (__cxa_rethrow): Likewise.
1292 * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
1293 * libsupc++/eh_type.cc: Include <cxxabi.h>.
1295 * Makefile.am (hosted_source): Add libmath and testsuite.
1296 (SUBDIRS): Remove them.
1297 * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
1298 on arm*-*-symbianelf*.
1299 * crossconfig.m4: Add arm*-*-symbianelf* support.
1300 * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
1301 when freestanding. Do not bring names into std:: namespace with
1302 "using" when freestanding. Declare required functions and macros
1304 * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
1306 * libsupc++/del_op.cc: Declare "free" only when freestanding.
1307 * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
1308 (malloc): Declare when freestanding.
1311 (__cxa_allocate_exception): Call malloc, not std::malloc. Likewise
1313 (__cxa_free_exception): Likewise for free.
1314 * libsupc++/new_op.cc: Declare "malloc" when freestanding.
1315 * libsupc++/pure.cc (writestr): Define to nothing when
1317 * libsupc++/vterminate.cc: Do not define anything when
1319 * Makefile.in: Regenerated.
1320 * aclocal.m4: Likewise.
1321 * configure: Likewise.
1322 * include/Makefile.in: Likewise.
1323 * libmath/Makefile.in: Likewise.
1324 * libsupc++/Makefile.in: Likewise.
1325 * po/Makefile.in: Likewise.
1326 * src/Makefile.in: Likewise.
1327 * testsuite/Makefile.in: Likewise.
1329 2004-08-01 Matt Austern <austern@apple.com>
1332 * include/bits/stl_list.h (_M_create_node): Remove unused
1333 zero-argument version.
1334 * include/ext/slist (_M_create_node): Pass two arguments to
1335 allocator's construct() member function.
1336 * testsuite/23_containers/deque/explicit_instantiation.cc: New.
1337 * testsuite/23_containers/list/explicit_instantiation.cc: New.
1338 * testsuite/23_containers/vector/explicit_instantiation.cc: New.
1339 * testsuite/23_containers/map/explicit_instantiation.cc: New.
1340 * testsuite/23_containers/set/explicit_instantiation.cc: New.
1341 * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
1342 * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
1343 * testsuite/ext/hash_set_explicit_instantiation.cc: New.
1344 * testsuite/ext/slist_explicit_instantiation.cc: New.
1346 2004-07-30 Paolo Carlini <pcarlini@suse.de>
1348 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1349 num_get<>::_M_extract_int): In the main parsing loop delay the
1350 life of __q to the actual use point.
1352 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1355 * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
1356 Don't clip the precision passed down to __convert_from_v:
1357 22.2.2.2.2 nowhere says so.
1358 * testsuite/22_locale/num_put/put/char/14220.cc: New.
1359 * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
1361 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1363 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
1365 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1366 Petur Runolfsson <peturr02@ru.is>
1368 PR libstdc++/12658 (continued)
1369 * src/locale_init.cc (locale::locale, locale::global): Use
1370 a single locale_mutex instead of two separate mutexes.
1372 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1375 * include/debug/map.h (insert(_InputIterator, _InputIterator)):
1377 * testsuite/23_containers/map/insert/16813.cc: New.
1379 2004-07-29 Phil Edwards <phil@codesourcery.com>
1381 * docs/html/faq/index.html: Update version references. Make
1382 clear that code from SGI has diverged greatly. Remove references
1383 to library snapshots and what's-new sections.
1384 * docs/html/faq/index.txt: Regenerate.
1386 2004-07-28 Matt Austern <austern@apple.com>
1388 * include/bits/stl_construct.h (_Destroy): New three-argument
1389 overload that takes an allocator argument. Another inline
1390 three-argument overload that takes std::allocator and dispatches
1391 to the two-argument version.
1392 * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
1393 Change return type to void to match uninitialized_fill_n.
1394 (__uninitialized_copy_a_): New function. Like uninitialized_copy
1395 except that it takes an allocator and uses it for construct and
1396 destroy. If the allocator is std::allocator, dispatches to
1398 (__uninitialized_fill_a): Likewise.
1399 (__uninitialized_fill_n_a): Likewise.
1400 (__uninitialized_copy_copy): Give it an allocator argument.
1401 (__uninitialized_fill_copy): Likewise.
1402 (__uninitialized_copy_fill): Likewise.
1403 * include/bits/deque.tcc: Use new forms defined in stl_construct.h
1404 and stl_uninitialized.h. Replace use of single-argument _Construct
1405 and _Destroy with use of allocator's construct and destroy methods.
1406 * include/bits/list.tcc: Likewise.
1407 * include/bits/stl_deque.h: Likewise.
1408 * include/bits/stl_list.h: Likewise.
1409 * include/bits/stl_tree.h: Likewise.
1410 * include/bits/stl_vector.h: Likewise.
1411 * include/bits/vector.tcc: Likewise.
1412 * include/ext/hashtable.h: Use rebind so that allocator_type
1413 has correct type for a container's allocator. Replace use of
1414 single-argument _Construct and _Destroy with use of allocator's
1415 construct and destroy methods.
1416 * include/ext/memory (__uninitialized_copy_n_a): New function.
1417 Like uninitialized_copy_n except that it takes an extra parameter,
1418 an allocator, and uses it for construct and destroy operations.
1419 * include/ext/rope: Use new forms defined in stl_construct.h,
1420 stl_uninitialized.h, and ext/memory. Replace use of single-argument
1421 _Construct and _Destroy with allocator construct and destroy methods.
1422 * include/ext/ropeimpl.h: Likewise.
1423 * include/ext/slist.h: Likewise.
1424 * testsuite/testsuite_allocator.h (check_construct_destroy): New.
1425 * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
1426 * testsuite/23_containers/deque/check_construct_destroy.cc: New.
1427 * testsuite/23_containers/list/check_construct_destroy.cc: New.
1428 * testsuite/23_containers/set/check_construct_destroy.cc: New.
1429 * testsuite/23_containers/vector/check_construct_destroy.cc: New.
1430 * testsuite/ext/hash_check_construct_destroy.cc: New.
1431 * testsuite/ext/slist_check_construct_destroy.cc: New.
1433 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
1435 2003-10-01 Eric Christopher <echristo@redhat.com>
1436 * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
1438 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
1439 * config/cpu/sh/atomicity.h: New. Use movli and movco on SH4a.
1441 2004-07-23 Benjamin Kosnik <bkoz@redhat.com>
1444 * include/bits/locale_facets.tcc: Fix for -Werror.
1446 2004-07-23 Jonathan Wakely <redi@gcc.gnu.org>
1448 * docs/html/debug.html: Say debug mode only available since 3.4.0.
1450 2004-07-21 Benjamin Kosnik <bkoz@redhat.com>
1452 * docs/doxygen/mainpage.html: Clarify links.
1453 * docs/doxygen/stdheader.cc: Add files.
1454 * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
1455 * docs/doxygen/user.cfg.in: New options, wrap.
1457 2004-07-20 Danny Smith <dannysmith@users.sourceforge.net>
1459 * include/c_std/std_cwchar.h (wcsstr): Correct signature.
1461 2004-07-19 Benjamin Kosnik <bkoz@redhat.com>
1464 * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
1466 2004-07-17 Richard Sandiford <rsandifo@redhat.com>
1469 * scripts/create_testsuite_files: Pass -print to find.
1471 2004-07-15 Paolo Carlini <pcarlini@suse.de>
1473 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
1474 * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
1476 2004-07-15 Jakub Jelinek <jakub@redhat.com>
1479 * acinclude.m4 (glibcxx_shared_libgcc): Correct
1480 glibcxx_shared_libgcc test for multilibs.
1481 * configure: Rebuilt.
1483 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1486 * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
1487 the signature to return void, as per 20.4.4.3.
1488 * include/bits/stl_vector.h (vector::vector(size_type,
1489 const value_type&, const allocator_type&), vector::vector(size_type),
1490 vector::_M_initialize_dispatch): Adjust callers.
1491 * include/bits/vector.tcc (vector<>::_M_fill_assign,
1492 vector<>::_M_fill_insert): Likewise.
1493 * testsuite/20_util/memory/16505.cc: New.
1495 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1497 * testsuite/22_locale/locale/cons/12658_thread-1.cc,
1498 12658_thread-2.cc: Use __gnu_test::try_named_locale.
1500 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1502 * docs/html/ext/mt_allocator.html: Add docs for _Tune.
1503 * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
1504 (__mt_alloc::_S_set_options): Same.
1507 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1509 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
1511 * configure: Regenerated.
1513 2004-07-13 Paolo Carlini <pcarlini@suse.de>
1515 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
1516 to 12658_thread-1.cc and xfail.
1517 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
1518 simpler version of 12658_thread-1.cc, still failing on 3_3 and
1519 not failing on 3_4/mainline - both on single processor and
1520 multiprocessor machines.
1522 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
1524 * docs/html/abi.html: Remove non-public qualification.
1526 * include/bits/concurrence.h: Tweak comments.
1528 2004-07-11 Paolo Carlini <pcarlini@suse.de>
1530 Add wchar_t counterparts of the basic_streambbuf<char> tests.
1531 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
1532 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
1534 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
1535 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
1537 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
1538 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
1539 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
1540 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
1541 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
1543 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
1545 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
1547 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
1549 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
1550 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
1552 2004-07-11 Phil Edwards <phil@codesourcery.com>
1554 * acinclude.m4: Cosmetic shell syntax fixes.
1555 * configure.ac: Bring comment inline with reality.
1556 * configure.host: Both of the above. Move 'arm' case to right
1557 place in host_cpu switch.
1558 * aclocal.m4, configure: Regenerate.
1560 2004-07-09 Paolo Carlini <pcarlini@suse.de>
1562 Add wchar_t counterparts of the basic_stringbuf<char> tests.
1563 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
1564 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
1565 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
1566 3599.cc, 9988.cc: Likewise.
1567 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
1569 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
1571 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
1573 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
1575 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
1576 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
1577 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
1578 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
1580 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
1581 9404-1.cc: Likewise.
1582 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
1583 9404-2.cc: Likewise.
1584 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
1586 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
1587 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
1589 2004-07-08 Paolo Carlini <pcarlini@suse.de>
1591 * include/bits/gslice.h: Trivial formatting fixes.
1592 * include/bits/gslice_array.h: Likewise.
1593 * include/bits/indirect_array.h: Likewise.
1594 * include/bits/mask_array.h: Likewise.
1595 * include/bits/slice_array.h: Likewise.
1596 * include/bits/valarray_after.h: Likewise.
1597 * include/bits/valarray_array.h: Likewise.
1598 * include/bits/valarray_before.h: Likewise.
1599 * include/std/std_valarray.h: Likewise.
1601 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
1604 * include/bits/basic_string.h (basic_string::operator=): Revert.
1606 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
1608 * configure.ac (libtool_VERSION): To 6:2:0.
1609 * configure: Regenerated.
1611 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
1613 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
1616 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
1618 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
1620 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
1623 2004-07-07 Paolo Carlini <pcarlini@suse.de>
1626 * include/bits/sstream.tcc (overflow): When reallocating _M_string
1627 use an exponential grow policy.
1628 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
1629 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
1631 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
1634 * crossconfig.m4: Add in bits for djgpp.
1635 * configure: Regenerate.
1637 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
1639 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
1640 instantiation of set and multiset (functor param given as int).
1642 2004-07-04 Paolo Carlini <pcarlini@suse.de>
1644 * include/bits/basic_string.h: Trivial formatting fixes and/or
1645 const-ification of some variables.
1646 * include/bits/deque.tcc: Likewise.
1647 * include/bits/stl_algobase.h: Likewise.
1648 * include/bits/stl_bvector.h: Likewise.
1649 * include/bits/stl_construct.h: Likewise.
1650 * include/bits/stl_deque.h: Likewise.
1651 * include/bits/stl_pair.h: Likewise.
1652 * include/bits/stl_vector.h: Likewise.
1653 * include/bits/vector.tcc: Likewise.
1655 2004-07-04 Paolo Carlini <pcarlini@suse.de>
1657 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
1658 systems with no COMDAT or weak support.
1659 * testsuite/25_algorithms/copy/2.cc: Likewise.
1660 * testsuite/25_algorithms/copy/3.cc: Likewise.
1661 * testsuite/25_algorithms/copy/4.cc: Likewise.
1663 2004-07-03 Paul Brook <paul@codesourcery.com>
1665 * configure.ac: Set ABI_TWEAKS_SRCDIR.
1666 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
1667 setting atomicity_dir. Override type_cpu for arm based targets.
1668 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
1669 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
1670 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
1671 * libsupc++/vec.cc: Ditto.
1672 * config/cpu/arm/cxxabi_tweaks.h: New file.
1673 * config/cpu/generic/cxxabi_tweaks.h: New file.
1674 * */Makefile.in: Regenerate.
1675 * configure: Regenerate.
1677 2004-07-02 Paolo Carlini <pcarlini@suse.de>
1679 * include/bits/type_traits.h (_Is_normal_iterator): Move...
1680 * include/bits/cpp_type_traits.h: ... here, renamed to
1681 __is_normal_iterator and consistent with the other traits.
1682 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
1683 to the struct __copy_normal and three specializations.
1684 (__copy_backward_output_normal_iterator,
1685 __copy_backward_input_normal_iterator): Likewise, convert to
1686 the struct __copy_backward_normal and three specializations.
1687 (copy, copy_backward): Use the latter.
1688 (__copy_aux, __copy_backward_aux): Very minor tweaks.
1690 2004-07-01 Paolo Carlini <pcarlini@suse.de>
1692 * include/bits/stl_algobase.h (__copy_trivial): Remove.
1693 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
1694 __is_trivially_copyable, __are_same and __copy::copy.
1695 (__copy): Rewrite as a class template and two specializations.
1696 (__copy_ni2): Simplify, just call __copy_aux.
1698 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
1700 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
1701 for destination value type != source value type.
1703 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
1704 Per Bothner <per@bothner.com>
1705 Mohan Embar <gnustuff@thisiscool.com>
1708 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
1709 (__glibcxx_mutex): Encapsulate mutex init function into type for
1710 threaded configurations without __GTHREAD_MUTEX_INIT.
1711 (lock::lock): Make device member a reference.
1712 (lock::~lock): Same.
1713 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
1715 * src/allocator.cc: Same.
1717 2004-06-30 Brad Spencer <spencer@infointeractive.com>
1719 * include/ext/mt_allocator.h: Handle allocations at static
1720 initialization that happen before _S_options is (automatically)
1721 constructed; set _S_init even if _M_force_new is true.
1723 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
1725 * config/linker-map.gnu: Revert new exports.
1727 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
1728 Stuart Anderson <anderson@netsweng.com>
1730 * config/linker-map.gnu: Add destructor exports for abstract base
1731 classes to conform to LSB.
1733 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1734 Paolo Carlini <pcarlini@suse.de>
1736 * include/bits/cpp_type_traits.h: Add __is_pointer and
1737 __is_trivially_copyable.
1738 * include/bits/stl_algobase.h (fill, fill_n): Slightly
1739 tweak to use the latter.
1740 (__copy_backward_dispatch): Remove.
1741 (__copy_backward_aux): Rewrite to use __is_pointer and
1742 __is_trivially_copyable and __copy_backward::copy_b.
1743 (__copy_backward): Rewrite as a class template and two
1746 2004-06-30 Paolo Carlini <pcarlini@suse.de>
1748 * testsuite/25_algorithms/copy.cc: Move to...
1749 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
1750 * testsuite/25_algorithms/copy/2.cc: New.
1751 * testsuite/25_algorithms/copy/3.cc: New.
1752 * testsuite/25_algorithms/copy/4.cc: New.
1754 2004-06-29 Paul Brook <paul@codesourcery.com>
1756 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
1757 element size in the cookie.
1759 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1761 * include/bits/cpp_type_traits.h: Move the additions to
1762 namespace __gnu_internal outside of namespace std; trivial
1765 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
1767 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
1768 Revert -Weffc++ changes that defined copy ctory and or assignment
1770 * libsupc++/tinfo.cc (__upcast_result): Same.
1772 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1774 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
1775 the algorithm used to name the categories.
1777 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
1779 * include/Makefile.am: Give a .gch extension to
1780 the PCH files, not only to the directory.
1781 * include/Makefile.in: Regenerate.
1783 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1785 * config/locale/gnu/monetary_members.cc
1786 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
1787 assignments of _M_decimal_point and _M_thousands_sep.
1789 2004-06-27 Paolo Carlini <pcarlini@suse.de>
1791 * docs/html/17_intro/contribute.html: Update some links.
1792 * docs/html/17_intro/porting-howto.html: Likewise.
1793 * docs/html/17_intro/porting-howto.xml: Likewise.
1794 * docs/html/18_support/howto.html: Likewise.
1795 * docs/html/21_strings/howto.html: Likewise.
1796 * docs/html/27_io/howto.html: Likewise.
1797 * docs/html/configopts.html: Likewise.
1798 * docs/html/ext/howto.html: Likewise.
1799 * docs/html/faq/index.html: Likewise.
1800 * docs/html/install.html: Don't mention 2.x compilers.
1802 2004-06-27 Paolo Carlini <pcarlini@suse.de>
1804 * include/ext/rope: Trivial formatting fixes.
1805 * include/ext/ropeimpl.h: Likewise.
1807 2004-06-26 Paolo Carlini <pcarlini@suse.de>
1810 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
1811 availability of strto(u)ll, not used anymore in the iostreams.
1812 * configure: Regenerate.
1814 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
1817 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
1819 * configure: Regenerate.
1821 2004-06-25 Paul Brook <paul@codesourcery.com>
1823 * libsupc++/cxxabi.h: Define __ARM_EABI__
1825 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
1827 2004-06-25 Paul Brook <paul@codesourcery.com>
1829 * include/bits/concurrence.h: Still create mutex object when
1832 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1834 * include/bits/stl_algobase.h (fill, fill_n): Revert last
1835 change: actually we need to copy construct an object of type
1836 _Tp, not of type iterator_traits<>::value_type, therefore the
1839 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1841 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
1842 dispatch: use iterator_traits<>::value_type, not _Tp.
1844 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1846 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
1847 * testsuite/25_algorithms/fill/2.cc: Likewise.
1849 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
1850 Paolo Carlini <pcarlini@suse.de>
1852 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
1853 for fill and fill_n, respectively: when copying is cheap, use a
1854 temporary to avoid a memory read in each iteration.
1856 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1858 * testsuite/25_algorithms/fill/1.cc: New.
1859 * testsuite/25_algorithms/fill/2.cc: Likewise.
1861 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
1863 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
1864 Remove copy constructor and assignment operator.
1866 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
1868 * include/bits/concurrence.h (__gnu_cxx::lock): New.
1869 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
1870 (__pool_base::_M_get_mutex): New.
1871 * include/bits/allocator.h: Tweak.
1872 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
1873 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
1874 * include/bits/stl_threads.h: Remove.
1875 * include/Makefile.am: Also here.
1876 * include/Makefile.in: Regenerate.
1878 * src/locale_init.cc: Use __gnu_cxx::lock.
1880 * src/allocator.cc: Move all instantiations...
1881 * src/allocator-inst.cc: ...here.
1883 2004-06-23 Andrew Pinski <apinski@apple.com>
1885 * linkage.m4: Remove check for libmx.
1886 * configure: Regenerate.
1888 2004-06-23 Paolo Carlini <pcarlini@suse.de>
1891 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
1892 Don't require the _DefaultConstructibleConcept.
1893 (struct _ForwardIteratorConcept): Require it here.
1895 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
1897 * include/bits/istream.tcc (getline): Make sure arguments passed
1898 to min/max have the same type.
1899 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
1900 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
1902 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
1904 * docs/html/abi.html: Update links.
1906 2004-06-22 Paolo Carlini <pcarlini@suse.de>
1908 * testsuite/26_numerics/complex_inserters_extractors.cc,
1909 complex_value.cc, buggy_complex.cc: Move to...
1910 * testsuite/26_numerics/complex/: ... here.
1911 * testsuite/26_numerics/c99_classification_macros_c++.cc,
1912 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
1913 fabs_inline.cc: Move to...
1914 * testsuite/26_numerics/cmath/: ... here.
1915 * testsuite/26_numerics/binary_closure.cc, slice.cc,
1916 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
1917 valarray_name_lookup.cc, valarray_operators.cc,
1918 valarray_subset_assignment.cc: Move to...
1919 * testsuite/26_numerics/valarray/: ... here (new dir).
1920 * testsuite/26_numerics/sum_diff.cc: Move to...
1921 * testsuite/26_numerics/numeric/: ... here (new dir).
1923 2004-06-22 Paolo Carlini <pcarlini@suse.de>
1925 * include/std/std_istream.h (ignore(streamsize __n = 1,
1926 int_type __delim = traits_type::eof())): Split into...
1927 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1928 int_type __delim)): The first two can be much more simpler
1929 and efficient than the fully general case; also, the last
1930 two can take advantage of the same mechanism already used
1932 * include/bits/istream.tcc (ignore(streamsize __n = 1,
1933 int_type __delim = traits_type::eof()): Remove.
1934 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1935 int_type __delim)): New.
1937 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
1939 * config/linker-map.gnu: Use wildcards for
1940 __basic_file::sys_open(FILE*, _Ios_Openmode).
1942 2004-06-20 Paolo Carlini <pcarlini@suse.de>
1944 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
1946 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1948 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
1949 the alignment requested.
1950 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
1951 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
1952 (__mt_alloc<>::deallocate): Likewise.
1954 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1957 * include/debug/safe_base.h
1958 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
1959 _Safe_sequence_base::operator=): Provide definitions.
1960 * testsuite/23_containers/bitset/cons/16020.cc: New.
1962 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
1964 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
1965 (__pool_base): Remove unused template parameter. Add
1966 protected. Move lock data into __pool_base::_Lock. Remove static
1967 on member functions.
1968 (__pool_base::_M_get_free_list): New.
1969 (__pool_alloc): Move _S_force new here.
1970 * src/allocator.cc: Move out of line __pool_base definitions here.
1971 * config/linker-map.gnu: Export bits from __pool_base.
1973 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1975 * config/locale/gnu/numeric_members.cc
1976 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
1977 assignments of _M_decimal_point and _M_thousands_sep.
1978 * config/locale/gnu/time_members.cc
1979 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
1980 and reformat assignments of date and time fields.
1982 2004-06-16 Paolo Carlini <pcarlini@suse.de>
1984 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
1985 to use _Data_allocate.
1986 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
1987 (rope<>::_S_substring): Likewise.
1988 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
1989 (rope<>::c_str()): Likewise.
1990 (rope<>::replace_with_c_str()): Likewise.
1992 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
1993 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
1995 (_Rope_iterator_base<>::_S_setcache): Likewise.
1996 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
1997 (rope<>::_S_substring): Likewise.
1998 (rope<>::_S_dump): Likewise.
1999 (rope<>::_S_fetch_ptr): Likewise.
2000 (rope<>::_S_compare): Likewise.
2001 (rope<>::replace_with_c_str()): Likewise.
2003 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
2004 * testsuite/ext/rope/2.cc: New.
2006 2004-06-16 Paolo Carlini <pcarlini@suse.de>
2007 Matt Austern <austern@apple.com>
2009 * testsuite/ext/rope/3.cc: New.
2011 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
2013 * acinclude.m4: Remove useless multilib configury.
2014 * Makefile.am: Remove useless multilib rules.
2015 * aclocal.m4: Regenerate.
2016 * Makefile.in: Regenerate.
2017 * configure: Regenerate.
2019 2004-06-15 Paolo Carlini <pcarlini@suse.de>
2021 * include/ext/hashtable.h: Trivial formatting fixes.
2022 * include/ext/rb_tree: Likewise.
2024 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2026 * include/ext/hash_map: Trivial formatting fixes.
2027 * include/ext/hash_set: Likewise.
2028 * include/ext/memory: Likewise.
2029 * include/ext/numeric: Likewise.
2031 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
2033 * Makefile.in: Regenerate with automake 1.8.5.
2035 * include/Makefile.in: Same.
2036 * libmath/Makefile.in: Same.
2037 * libsupc++/Makefile.in: Same.
2038 * po/Makefile.in: Same.
2039 * src/Makefile.in: Same.
2040 * testsuite/Makefile.in: Same.
2042 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2044 * include/ext/slist: Trivial formatting fixes.
2046 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2048 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
2049 Don't use the 'magic number' 10 in the computation of __minlen;
2050 never access __name past __minlen; in the loop over __i3, don't
2051 decrease __nmatches and increase __i3 at once, only either of
2054 2004-06-13 Paolo Carlini <pcarlini@suse.de>
2056 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
2057 time_get<>::do_get_date): Use only once _M_extract_via_format,
2058 instead of going through "%X"/"%x" and calling it two times
2061 2004-06-12 Paolo Carlini <pcarlini@suse.de>
2063 * include/ext/algorithm: Trivial formatting fixes.
2064 * include/ext/functional: Likewise.
2065 * include/ext/hash_fun.h: Likewise.
2066 * include/ext/iterator: Likewise.
2068 2004-06-12 Paolo Carlini <pcarlini@suse.de>
2070 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
2071 size_type)): Reimplement using std::search.
2072 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
2074 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
2076 * testsuite/performance/21_strings/string_find.cc: New.
2078 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
2080 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
2082 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
2084 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
2085 this function return a value.
2087 2004-06-09 Paolo Carlini <pcarlini@suse.de>
2090 * include/bits/stl_deque.h: Consistently with stl_set.h, define
2091 pointer as allocator's pointer, likewise for reference,
2092 const_pointer, and const_reference.
2093 * include/bits/stl_list.h: Likewise.
2094 * include/bits/stl_map.h: Likewise.
2095 * include/bits/stl_multimap.h: Likewise.
2096 * include/bits/stl_vector.h: Likewise.
2098 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
2100 * crossconfig.m4: Remove signbit, signbitf, signbitl.
2101 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
2102 builtin math functions instead of AC_DEFINE_UNQUOTED.
2103 * configure: Regenerate.
2105 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
2107 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
2108 * docs/doxygen/mainpage.html: Remove links.
2110 2004-06-08 Jason Merrill <jason@redhat.com>
2112 * config/linker-map.gnu: Use wildcards for
2113 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
2115 2004-06-08 Paolo Carlini <pcarlini@suse.de>
2117 * include/ext/pool_allocator.h: Convert to a global free-list,
2118 as per the original SGI/HP design: move the implementation
2119 details to struct __pool_base, from which __pool_alloc derives.
2120 * src/allocator.cc: Instantiate __pool_base.
2122 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
2123 Paolo Carlini <pcarlini@suse.de>
2125 * testsuite/testsuite_performance.h
2126 (resource_counter::allocated_memory): Make it return the right
2127 number of bytes requested by the allocators/application. This is
2128 the sbrk+mmaped memory.
2130 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
2132 * include/std/std_complex.h (log): Tidy.
2134 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
2136 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
2137 * testsuite/testsuite_abi.cc: Same.
2138 * configure.ac (libtool_VERSION): Bump to 6:1:0.
2139 * configure: Regenerate.
2140 * aclocal.m4: Regenerate.
2142 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2144 * include/std/std_complex.h (complex<_Tp>): Properly indent
2146 (complex<>::__rep): New.
2147 (__complex_abs): New. Dispatch to built-ins.
2149 (__complex_arg): New. Dispatch to built-ins.
2151 (__complex_cos): New. Dispatch to built-ins.
2153 (__complex_cosh): New. Dispatch to built-ins.
2155 (__complex_exp): New. Dispatch to built-ins.
2157 (__complex_log): New. Dispatch to built-ins.
2159 (__complex_sin): New. Dispatch to built-ins.
2161 (__complex_sinh): New. Dispatch to built-ins.
2163 (__complex_sqrt): New. Dispatch to built-ins.
2165 (__complex_tan): New. Dispatch to built-ins.
2167 (__complex_tanh): New. Dispatch to built-ins.
2169 (__complex_pow): New. Dispatch to built-ins.
2172 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
2173 Benjamin Kosnik <bkoz@redhat.com>
2176 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
2177 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
2178 * config/io/basic_file_stdio.cc (__basic_file::file): New.
2179 * config/io/basic_file_stdio.h: Define.
2181 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
2184 * docs/html/documentation.html: Update doxygen links for 3.4.0.
2186 2004-05-27 Jan Beulich <jbeulich@novell.com>
2188 * scripts/create_testsuite_files: Tweak.
2190 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
2193 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
2194 bits to do the same thing.
2196 2004-05-24 Paolo Carlini <pcarlini@suse.de>
2198 * include/bits/istream.tcc (ignore): Correctly deal with
2199 n == numeric_limits<streamsize>::max().
2200 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
2202 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
2203 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
2204 __n == numeric_limits<>::min().
2206 * include/bits/istream.tcc: Minor tweaks.
2208 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2210 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2212 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2214 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2216 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2218 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2221 Fixups for -Weffc++.
2222 * include/bits/basic_string.h (basic_string::operator=): Return
2223 pointer to this instead of result of assign. Although redundant,
2224 this doesn't impact resultant codegen.
2226 * include/bits/locale_facets.h (__numpunct_cache): Declare
2227 assignment opxserator and copy constructor private.
2228 (__timepunct_cache): Same.
2229 (__moneypunct_cache): Same.
2230 (collate): Use member initialization list for _M_c_locale_collate.
2231 * config/locale/gnu/messages_members.h: Same.
2232 * config/locale/gnu/time_members.h (__timepunct): Same.
2233 * src/codecvt.cc: Use member initialization list to initialize
2234 _M_c_locale_codecvt.
2235 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
2236 * config/os/gnu-linux/ctype_noninline.h: Same.
2237 * src/locale.cc (_Impl): Same.
2238 * src/locale_init.cc: Same.
2239 * src/localename.cc: Same.
2241 * include/bits/basic_ios.h (basic_ios): Complete member
2242 initialization list.
2243 * include/bits/istream.tcc (basic_istream::sentry): Same.
2244 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
2245 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
2246 _M_pback to member initialization list.
2247 * include/std/std_streambuf.h: Same.
2248 * include/std/std_sstream.h: Same, for _M_mode.
2249 * src/ios.cc (ios_base): Same.
2251 * include/ext/rope: Make derived classes match exception
2253 specifications. Add copy constructors and assignment operators.
2255 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
2256 constructor and assignment operator protected.
2257 (_Safe_iterator_base): Same.
2258 * include/debug/formatter.h (_Error_formatter): Define copy
2259 constructor and assignment operator.
2261 * include/backward/strstream: Declare assignment operator and copy
2262 constructor private.
2264 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2266 * testsuite/testsuite_hooks.h (func_callback): Declare copy
2267 constructor and assignment operator private.
2268 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
2269 exception specifications of base class.
2270 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
2271 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
2272 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2274 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2276 * libsupc++/cxxabi.h: Remove duplicated and useless public and
2277 private keywords in class declarations. Format. Use
2278 stddef.h. Expose declarations to "C" compilation.
2279 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
2280 assignment operator.
2281 (__dyncast_result): Same.
2282 * libsupc++/vec.cc (uncatch_exception): Same, use member
2283 initialization list.
2285 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2287 * testsuite/abi_check.cc: Add unistd.h.
2289 2004-05-22 Paolo Carlini <pcarlini@suse.de>
2292 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
2293 __int_to_char(unsigned long long)): Showpos is not relevant
2295 * testsuite/22_locale/num_put/put/char/15565.cc: New.
2296 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
2298 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
2300 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
2301 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
2302 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2303 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
2304 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
2305 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
2307 2004-05-21 Matthias Klose <doko@debian.org>
2309 * docs/doxygen/run_doxygen: Bump required version.
2311 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
2313 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
2314 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
2316 2004-05-21 Paolo Carlini <pcarlini@suse.de>
2318 * include/bits/istream.tcc (ignore): Remove redundant line.
2319 (readsome): Tidy, closely following 27.6.1.3, p30.
2321 2004-05-20 Paolo Carlini <pcarlini@suse.de>
2323 * include/bits/istream.tcc (operator>>(basic_istream<>&,
2324 basic_string<>&)): Use a temporary buffer, thus avoiding
2325 reallocation for common case.
2326 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2328 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2331 * include/bits/istream.tcc: Const-ification of a few variables.
2333 * include/bits/ostream.tcc: Trivial formatting fixes and
2334 const-ification of some variables.
2336 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
2340 * docs/doxygen/Intro.3: Remove Allocators.3.
2341 Add new extension headers, extension namespace list.
2342 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
2343 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
2344 __gnu_debug::. Remove __policy_ renames.
2345 * docs/doxygen/guide.html: Add dot note.
2346 * docs/doxygen/stdheader.cc: Edit, add files.
2347 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
2349 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2351 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
2353 2004-05-18 Jan Beulich <jbeulich@novell.com>
2356 * scripts/create_testsuite_files: Also find source files through
2359 2004-05-18 Jan Beulich <jbeulich@novell.com>
2362 * testsuite/lib/libstdc++.exp: Make test files writable.
2364 2004-05-18 Paolo Carlini <pcarlini@suse.de>
2366 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
2369 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
2371 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
2372 allocation loop which removes blocks from the global free list
2373 from O(N) to O(1) when the required blocks are <= the number
2376 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2378 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
2380 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
2382 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
2383 * testsuite/23_containers/deque/14340.cc: New.
2384 * testsuite/23_containers/list/14340.cc: New.
2385 * testsuite/23_containers/map/14340.cc: New.
2386 * testsuite/23_containers/multimap/14340.cc: New.
2387 * testsuite/23_containers/multiset/14340.cc: New.
2388 * testsuite/23_containers/set/14340.cc: New.
2389 * testsuite/23_containers/vector/14340.cc: New.
2391 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
2394 * include/debug/safe_iterator.h (_Safe_iterator converting
2395 constructor): Only allow declaration to instantiate when the
2396 incoming _Safe_iterator has exactly the right iterator type.
2398 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
2400 * include/bits/boost_concept_check.h: Fix old attribute syntax.
2401 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
2402 to pass concept-checks.
2403 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2404 * testsuite/23_containers/set/modifiers/swap.cc: Same.
2405 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2407 2004-05-16 Paolo Carlini <pcarlini@suse.de>
2409 * include/std/std_bitset.h: Minor formatting fixes.
2411 2004-05-16 Paolo Carlini <pcarlini@suse.de>
2413 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2414 Consistently update __bin._M_free[0].
2415 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
2416 __bin._M_free[0] to simplify the while loop (i.e., the number
2417 of iterations becomes known at the outset).
2419 2004-05-15 Paolo Carlini <pcarlini@suse.de>
2421 * include/std/std_bitset.h: Trivial formatting fixes.
2423 2004-05-14 Paolo Carlini <pcarlini@suse.de>
2424 Ivan Godard <igodard@pacbell.net>
2427 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
2428 * testsuite/23_containers/bitset/ext/15361.cc: New.
2430 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2433 * crossconfig.m4: Add C99 math bits for linux crosses.
2434 * configure: Regenerate.
2436 2004-05-13 Simon Marshall <simon.marshall@misys.com>
2437 Benjamin Kosnik <bkoz@redhat.com>
2440 * include/bits/locale_facets.h: Fix for -fno-for-scope.
2441 * include/debug/safe_sequence.h: Same.
2442 * include/debug/safe_iterator.tcc: Same.
2443 * src/debug.cc: Same.
2444 * src/locale.cc: Same.
2445 * src/locale_init.cc: Same.
2446 * src/localename.cc: Same.
2447 * config/locale/gnu/ctype_members.cc: Same.
2448 * config/locale/gnu/numeric_members.cc: Same.
2449 * testsuite/testsuite_abi.cc: Same.
2450 * testsuite/testsuite_hooks.cc: Same.
2452 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
2454 * docs/html/abi.html: Document effect of -fabi-version on value
2455 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
2458 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2461 * docs/html/faq/index.html: Update docs for libsupc++ usage.
2463 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2466 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
2468 (_GLIBCXX_mutex_address): Same.
2469 (_GLIBCXX_once): Same.
2470 (_GLIBCXX_mutex_init): Same.
2471 (_GLIBCXX_mutex_address_init): Same.
2473 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2475 * docs/html/abi.html: New.
2476 * docs/html/abi.txt: Remove.
2477 * docs/html/documentation.html: Add link.
2478 * testsuite/Makefile.am: Add files.
2479 * testsuite/Makefile.in: Regenerated.
2480 * testsuite/abi_check.cc: Move and modify code into...
2481 * testsuite/testsuite_abi.cc: Add.
2482 * testsuite/testsuite_abi.h: Add.
2484 * docs/html/17_intro/TODO: Update.
2485 * include/bits/stl_pair.h: Format.
2487 2004-05-06 Matthias Klose <doko@debian.org>
2489 * include/backward/iterator.h: Add GPL copyright info,
2490 with exception clause.
2491 * include/bits/boost_concept_check.h: Likewise.
2493 * libsupc++/tinfo.h: Likewise.
2494 * po/string_literals.cc: Likewise.
2496 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
2498 * acinclude.m4: Replace -W with more speaking -Wextra.
2499 * configure: Rebuilt.
2501 2004-05-03 Paolo Carlini <pcarlini@suse.de>
2503 Optimize locale::_M_impl->_M_names for the most common cases:
2504 !_M_names[0] means unnamed; !_M_names[1] means all the categories
2505 the same name (_M_names[0] && _M_names[1] means that the full set
2506 of _M_names must be processed, the general case).
2507 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
2508 Tweak, saving work when !_M_names[1].
2509 (locale::locale(const locale&, _Facet*): Simplify: now just setting
2510 _M_names[0] = 0 means unnamed.
2511 * src/locale.cc (locale::operator==): Deal first with the common,
2512 easy cases, otherwise fall back to locale::name().
2513 (locale::name()): Tweak, if !_M_names[0] just return "*".
2514 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
2515 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
2516 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
2517 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
2518 Simplify when !std::strchr, just updating _M_names[0]; clean up.
2519 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
2520 for the general case (full set of names), then do the usual work;
2523 * src/locale.cc (locale::name()): Reserve space in __ret.
2524 * src/locale_init.cc (locale::global(const locale&)): Save
2525 the name in a temporary.
2526 * src/localename.cc (locale::locale(const char*)): Reserve space
2529 2004-04-29 Paolo Carlini <pcarlini@suse.de>
2531 * src/locale.cc (locale::operator==): Always avoid constructing
2532 locale::name(), directly compare pairs of _M_names.
2534 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2536 * include/bits/istream.tcc: Fix comment.
2538 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2540 * include/bits/stl_vector.h: Trivial formatting fixes.
2541 * include/bits/vector.tcc: Likewise.
2543 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2545 PR libstdc++/15002 (continued again)
2546 * include/bits/istream.tcc (getline(basic_istream<>&,
2547 basic_string<>&, _CharT)): Use a temporary buffer, thus
2548 avoiding reallocation for common case.
2550 * include/bits/basic_string.tcc (_S_construct(_InIterator,
2551 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
2552 of temporary buffer to a power of two.
2554 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
2556 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2558 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2560 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2562 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2564 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2565 Petur Runolfsson <peturr02@ru.is>
2567 PR libstdc++/15002 (continued)
2568 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
2569 streamsize, char_type)): Use traits::find/copy in a loop to speed
2570 up greatly the function in the common case (I/O buffer size >> 1).
2572 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2574 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
2576 * include/bits/istream.tcc (getline(basic_istream<>&,
2577 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
2578 of sbumpc(), consistently with the other functions, thus also
2579 dealing correctly with the case of exceeded string::max_size().
2581 2004-04-24 Matthias Klose <doko@debian.org>
2583 Jonathan Wakely <cow@compsoc.man.ac.uk>
2584 * docs/html/configopts.html: Fix reference to allocator config option.
2586 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
2588 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
2589 * configure: Regenerate.
2591 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
2593 PR libstdc++/15047, libstdc++/11610
2594 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
2595 (libstdc++_init): Don't pass outdir to v3-copy-files.
2597 2004-04-21 Paolo Carlini <pcarlini@suse.de>
2599 * include/bits/deque.tcc: Trivial formatting fixes.
2600 * include/bits/stl_deque.h: Likewise.
2601 * include/bits/stl_list.h: Likewise.
2602 * include/bits/stl_tree.h: Likewise.
2604 2004-04-21 Paolo Carlini <pcarlini@suse.de>
2605 Andrew Pinski <pinskia@physics.uc.edu>
2607 * include/bits/basic_string.tcc (_M_mutate): Don't compute
2608 __src unnecessarily.
2610 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
2612 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
2613 Clarify assertion, set test variable to false before assert.
2614 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
2615 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
2616 * testsuite/27_io/ios_base/storage/2.cc: Same.
2618 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
2620 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
2621 * testsuite/27_io/fpos/14320-3.cc: Same.
2623 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
2624 * testsuite/27_io/fpos/1.cc: Same.
2625 * testsuite/27_io/basic_stringstream/2.cc: Same.
2626 * testsuite/27_io/basic_stringbuf/4.cc: Same.
2627 * testsuite/27_io/basic_stringbuf/1.cc: Same.
2628 * testsuite/27_io/basic_stringbuf/2.cc: Same.
2629 * testsuite/27_io/basic_streambuf/2.cc: Same.
2630 * testsuite/27_io/basic_ostringstream/2.cc: Same.
2631 * testsuite/27_io/basic_ostream/2.cc: Same.
2632 * testsuite/27_io/basic_ofstream/2.cc: Same.
2633 * testsuite/27_io/basic_istringstream/2.cc: Same.
2634 * testsuite/27_io/basic_istream/2.cc: Same.
2635 * testsuite/27_io/basic_iostream/2.cc: Same.
2636 * testsuite/27_io/basic_ios/2.cc: Same.
2637 * testsuite/27_io/basic_ifstream/2.cc: Same.
2638 * testsuite/27_io/basic_fstream/2.cc: Same.
2639 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
2641 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
2642 unsigned against zero.
2643 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
2644 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
2646 * testsuite/18_support/new_delete_placement.cc: Initialize
2647 variables before first use.
2648 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
2649 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
2650 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
2651 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
2653 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
2654 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
2656 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
2657 * testsuite/27_io/types/2.cc: Same.
2659 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
2661 * testsuite/27_io/fpos/14775.cc: Same.
2663 2004-04-19 Paolo Carlini <pcarlini@suse.de>
2665 PR libstdc++/15002 (partial)
2666 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2667 Special case __n2 == 1, not calling traits_type::assign/copy.
2669 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
2671 * include/bits/stl_bvector.h: Use _M_impl._M_start.
2673 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
2675 * include/bits/c++config (_GLIBCXX_STD): New.
2676 * src/list.cc: Use it.
2677 * include/std/std_bitset.h: Same.
2678 * include/bits/vector.tcc: Same.
2679 * include/bits/stl_set.h: Same.
2680 * include/bits/stl_multiset.h: Same.
2681 * include/bits/stl_multimap.h: Same.
2682 * include/bits/stl_map.h: Same.
2683 * include/bits/stl_list.h: Same.
2684 * include/bits/stl_vector.h: Same.
2685 * include/bits/stl_bvector.h: Same.
2686 * include/bits/stl_deque.h: Same.
2687 * include/bits/deque.tcc: Same.
2688 * include/bits/list.tcc: Same.
2689 * include/debug/vector: Same.
2690 * include/debug/set.h: Same.
2691 * include/debug/multiset.h: Same.
2692 * include/debug/multimap.h: Same.
2693 * include/debug/map.h: Same.
2694 * include/debug/list: Same.
2695 * include/debug/deque: Same.
2696 * include/debug/bitset: Same.
2697 * include/debug/formatter.h (__gnu_debug): Remove using directive.
2698 Add using declaration for std::type_info.
2699 * include/debug/safe_iterator.h: Add using declaration for
2700 std::iterator_traits and std::pair.
2701 * src/debug_list.cc: New.
2702 * src/Makefile.am: Add debug_list.cc.
2703 * src/Makefile.in: Regenerate.
2704 * config/linker-map.gnu: Add _List_node_base exports for std and
2707 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
2708 idiom that other containers use.
2709 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2711 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2714 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
2716 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
2717 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
2719 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2721 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
2723 * config.h.in: Regenerate.
2725 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2727 * config/locale/generic/monetary_members.cc
2728 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
2729 btowc unnecessarily, just cast to wchar_t (the concerned chars
2730 all belong to the basic character set).
2731 * config/locale/generic/numeric_members.cc
2732 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2733 * config/locale/gnu/monetary_members.cc
2734 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
2735 * config/locale/gnu/numeric_members.cc
2736 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2738 2004-04-15 Paolo Carlini <pcarlini@suse.de>
2740 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
2741 avoid constructing unnecessarily this->name().
2743 2004-04-14 Zack Weinberg <zack@codesourcery.com>
2745 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
2746 Change definition of CXX to use $(shell) instead of backticks.
2747 * testsuite/Makefile.in: Regenerate.
2749 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
2751 * testsuite/performance/20_util/allocator/list_sort_search.cc:
2752 Minor formatting fixes.
2753 * testsuite/performance/20_util/allocator/map_mt_find.cc:
2756 2004-04-12 Paolo Carlini <pcarlini@suse.de>
2758 * config/locale/gnu/numeric_members.cc
2759 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
2760 in __uselocale, since btowc is called for chars belonging to
2761 the basic character set.
2763 2004-04-09 Paolo Carlini <pcarlini@suse.de>
2765 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
2766 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
2767 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
2768 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
2769 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
2770 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
2771 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
2772 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
2773 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
2774 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
2775 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
2776 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
2777 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
2778 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
2779 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
2780 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
2781 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
2783 2004-04-07 Paolo Carlini <pcarlini@suse.de>
2785 * config/locale/generic/time_members.cc
2786 (__timepunct<char>::_M_initialize_timepunct,
2787 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
2788 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
2789 * config/locale/gnu/time_members.cc
2790 (__timepunct<char>::_M_initialize_timepunct,
2791 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
2792 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
2793 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
2795 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
2796 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
2797 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
2798 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
2799 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
2800 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
2801 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
2802 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
2803 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
2804 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
2805 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
2806 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
2807 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
2808 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
2809 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
2810 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
2811 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
2812 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
2813 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
2814 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
2815 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
2816 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
2817 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
2818 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
2819 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
2820 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
2821 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
2822 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
2823 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
2824 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
2825 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
2826 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
2827 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
2828 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
2829 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
2830 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
2832 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
2834 2004-04-07 Paolo Carlini <pcarlini@suse.de>
2836 * config/locale/gnu/monetary_members.cc
2837 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
2838 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
2839 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
2840 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
2841 * config/locale/gnu/numeric_members.cc
2842 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
2843 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
2845 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
2847 Fixups for EDG front end.
2848 * include/ext/rope: Instead of non-existent function
2849 _Data_allocate, use allocator's allocate. Use this.
2850 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
2851 enumerations from _Rope_RopeRep here.
2852 * include/ext/ropeimpl.h: Same.
2853 * src/ext-inst.cc (_S_min_len): Fix up definition.
2855 * config/locale/gnu/ctype_members.cc: Qualify base class members
2857 * config/locale/generic/ctype_members.cc: Same.
2858 * config/locale/gnu/messages_members.h: Same.
2859 * config/locale/generic/messages_members.h: Same.
2860 * src/ctype.cc: Same.
2861 * include/bits/codecvt.h: Same.
2863 * include/bits/boost_concept_check.h: Declare.
2864 (__error_type_must_be_an_unsigned_integer_type): Remove this.
2865 (__error_type_must_be_an_integer_type): Remove this.
2866 (__error_type_must_be_a_signed_integer_type): Remove this.
2868 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
2870 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
2871 specification to definition.
2872 (__cxa_allocate_exception): Same.
2873 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
2874 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
2875 (__cxa_get_globals): Same.
2877 * libsupc++/del_op.cc: Add comment about freestanding.
2879 2004-04-05 Paolo Carlini <pcarlini@suse.de>
2881 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2882 The critical section is actually very small, only two assignments.
2884 2004-04-04 Paolo Carlini <pcarlini@suse.de>
2885 Petur Runolfsson <peturr02@ru.is>
2887 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
2888 adapted from libstdc++/11378.
2890 2004-04-03 Paolo Carlini <pcarlini@suse.de>
2892 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
2893 some duplicated code.
2894 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
2895 in the single threaded case.
2896 * testsuite/performance/20_util/allocator/list_sort_search.cc:
2897 Reorder and renumber the tests consistently with the other testfiles.
2898 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
2899 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
2900 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
2902 2004-04-02 Paolo Carlini <pcarlini@suse.de>
2904 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2905 Rearrange arithmetic to avoid computing two divisions at
2908 2004-04-01 Paolo Carlini <pcarlini@suse.de>
2910 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
2911 Streamline the second half, wrapping it in a single
2912 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
2913 conditionals inside loops.
2915 2004-04-01 Paolo Carlini <pcarlini@suse.de>
2918 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
2919 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
2920 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
2921 to _GLIBCXX_RES_LIMITS.
2922 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
2924 * testsuite/testsuite_hooks.h: Declare set_file_limit.
2925 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
2926 and setrlimit(RLIMIT_FSIZE).
2927 * testsuite/27_io/fpos/14775.cc: New.
2928 * config.h.in: Regenerate.
2929 * configure: Likewise.
2931 2004-03-31 Paolo Carlini <pcarlini@suse.de>
2933 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
2934 In v3 uses of sscanf, the special floating-point numbers INF,
2935 INFINITY, etc., cannot occur in input, therefore, if the latter
2936 is too large, ERANGE is always stored in errno, no need of finitel.
2938 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
2941 * include/bits/stl_tree.h: Adjust initialization list order.
2943 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
2945 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
2947 2004-03-29 Paolo Carlini <pcarlini@suse.de>
2949 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
2950 on allocator behavior, the memory pointed by data2 may well be not
2953 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
2956 * include/bits/basic_string.tcc
2957 (basic_string::basic_string(const basic_string&)): Pass to
2958 _Rep::_M_grab the actual allocator of the string being constructed
2959 not the default constructed one.
2961 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
2964 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
2965 (__enc_traits::_M_destroy): New.
2966 (__enc_traits::~__enc_traits): Use it.
2967 (__enc_traits::operator=): Use _M_destroy, _M_init.
2968 (__enc_traits::__enc_traits): Same.
2970 2004-03-27 Petur Runolfsson <peturr02@ru.is>
2972 * testsuite/ext/enc_filebuf/char/13598.cc: New.
2974 2004-03-27 Paolo Carlini <pcarlini@suse.de>
2976 * include/ext/mt_allocator.h: Uglify consistently names of
2977 variables, members and classes; tidy.
2979 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
2981 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2982 Deallocation loop rewrote.
2984 2004-03-26 Paolo Carlini <pcarlini@suse.de>
2986 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
2987 __mt_alloc<>::deallocate): Protect two instances of
2988 block->thread_id with __GTHREADS.
2990 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
2992 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
2993 default argument in constructors.
2994 (_Rb_tree::_M_empty_initialize): Remove.
2996 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
2998 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
2999 * testsuite/23_containers/set/operators/1_neg.cc: Same.
3001 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3003 * include/bits/cpp_type_traits.h: Changed __is_pod
3004 completely. Now, it does not use any of the previous type_traits
3005 to detect the pod types, and it also detects function pointers as
3008 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
3009 which encapsulates the internal implementation of an rb_tree. Made
3010 the allocator a base class of this class instead of the rb_tree,
3011 which was not conforming. This _Rb_tree_impl class is also
3012 specialized on whether the _Compare parameter is a POD type or
3013 not. If so, then it maintains the comparison function as a data
3014 member, otherwise it makes the _Compare parameter a base class of
3015 itself. Also, _M_key_compare is now a function instead of a data
3016 member, so that the above trick can work properly. Delegated the
3017 initialization of the other data members to this newly created
3018 class. Also, now other member functions of rb_tree must refer to
3019 _M_key_compare as _M_impl._M_key_compare(). The other data members
3020 (*) can be referenced to as _M_impl.(*), where
3021 (*) includes _M_header, and _M_node_count.
3023 2004-03-25 Paolo Carlini <pcarlini@suse.de>
3025 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
3026 Add _M_min_bin, the size in bytes of the smallest bin.
3027 (__mt_alloc<>::tune()): Tweak accordingly.
3028 (__mt_alloc<>::tune(size_t, ...)): Likewise.
3029 (__mt_alloc<>::block_record): Change to a union: members next
3030 and thread_id are never used at the same time.
3031 (__mt_alloc<>::allocate): Update consistently.
3032 (__mt_alloc<>::deallocate): Likewise.
3033 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
3034 _S_bin_size for the configurable _M_min_size.
3036 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3038 * include/bits/stl_list.h: Created a _List_impl class and made it
3039 derive from the allocator, instead of the list deriving from the
3040 allocator class, which was not conformant. Changed all references
3041 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
3042 as above (changed all references to the concerned variables).
3044 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3046 * include/bits/stl_deque.h: Created a _Deque_impl class and made
3047 it derive from the allocator, instead of the deque deriving from
3048 the allocator class, which was not conformant. Changed all
3049 references to the _M_start, _M_finish, _M_map, and _M_map_size to
3051 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
3052 qualification in 2 places where it was missing.
3053 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
3055 * include/bits/deque.tcc: Same as above (changed all references to
3056 the concerned variables).
3058 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3060 * include/bits/stl_vector.h: Created a _Vector_impl class and made
3061 it derive from the allocator, instead of the _Vector_base class,
3062 deriving from the allocator which was not conformant. Changed all
3063 references to the _M_start, _M_finish, and _M_end_of_storage to
3065 * include/bits/vector.tcc: Same as above (changed all references
3066 to the concerned variables).
3068 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3070 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
3071 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
3072 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
3074 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3076 * include/ext/malloc_allocator.h: Fixed the construct function to
3077 call global placement new instead of assignment. Added a check
3078 after the return from malloc to check whether returned pointer is
3079 NULL, and if so, throw std::bad_alloc().
3080 * include/ext/debug_allocator.h: Added a check in the deallocate
3081 function to check whether the user has passed a NULL pointer or
3084 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
3086 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
3088 2004-03-24 Andreas Schwab <schwab@suse.de>
3090 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
3091 warning from IA64 assembler.
3093 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3095 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
3096 function call __builtin_ctz instead of the while loop.
3097 (allocate) -> If condition has __builtin_expect.
3098 (deallocate) -> Ditto.
3099 Renamed a few left-over variables and typedefs according to the
3100 C++STYLE mentioned in the documentation.
3101 Protected calls to __gthread* by __gthread_active_p(), whose value
3102 is cached in the local variable __threads_active.
3104 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
3106 * testsuite/performance/20_util/allocator/producer_consumer.cc:
3107 Use linear algorithm for producer.
3109 2004-03-24 Paolo Carlini <pcarlini@suse.de>
3111 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3112 __mt_alloc<>::deallocate): Avoid redundant conditionals.
3114 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
3116 * include/bits/locale_facets.h: Tweaks for 80 column.
3117 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
3118 (__moneypunct_cache::_M_cache): Same.
3119 (num_get): Don't inherit from __num_base.
3121 (money_get): Don't inherit from money_base.
3123 (__timepunct::_M_am_pm_format): New.
3124 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
3125 (time_get::_M_extract_name): Same.
3126 (time_get::_M_extract_via_format): Same.
3127 * include/bits/locale_facets.tcc: Tweaks for 80 column.
3128 Use _M_getloc instead of getloc.
3129 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
3130 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
3131 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
3133 2004-03-22 Paolo Carlini <pcarlini@suse.de>
3135 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
3136 * configure: Regenerate.
3137 * config/allocator/pool_allocator_base.h: New.
3138 * include/ext/pool_allocator.h: Convert to a standard-conforming
3140 * src/allocator.cc: Tweak instantiations.
3141 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
3142 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
3143 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
3144 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3145 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3146 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3148 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
3150 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
3151 inline" and attribute-unused. Qualify parameter __mem with
3153 (__exchange_and_add): Ditto. Add back memory clobber to asm.
3155 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3157 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
3159 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
3161 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
3163 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
3165 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
3167 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
3169 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3171 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3173 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
3175 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3178 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3180 * include/std/std_valarray.h: Document DR389 [Ready].
3181 * docs/html/ext/howto.html: Add an entry for DR389.
3183 2004-03-19 Michael Eager <eager@mvista.com>
3185 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
3188 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3190 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
3192 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
3193 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
3194 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
3195 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
3196 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
3197 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
3198 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
3199 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
3200 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
3202 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3203 Petur Runolfsson <peturr02@ru.is>
3206 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
3207 no way to find out the conversion used by the underlying FILE*.
3208 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
3209 * testsuite/27_io/objects/char/9.cc: Tweak.
3211 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3214 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
3215 memory allocation/deallocation calls.
3216 * testsuite/ext/14648.cc: New.
3218 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
3221 * include/backward/bvector.h (bit_vector): Allocator is in std
3224 2004-03-19 Phil Edwards <phil@codesourcery.com>
3226 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
3227 not libiconv. SUBST this variable as well.
3228 * testsuite/Makefile.am (site.exp): New target, based on that
3229 created by automake. Also set libiconv.
3231 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
3232 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
3233 testsuite/Makefile.in: Regenerate.
3235 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
3237 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
3238 new_allocator for all hosts.
3239 * configure: Regenerate.
3241 2004-03-16 Paolo Carlini <pcarlini@suse.de>
3243 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
3244 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
3246 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3248 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3249 Adjust the logic underlying the parsing of symbol to deal
3250 correctly with an optional sign component (i.e., when either
3251 negative_sign or positive_sign is empty)
3252 * testsuite/22_locale/money_get/get/char/19.cc: New.
3253 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
3255 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3257 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3258 Do not accept an incomplete currency symbol.
3259 * testsuite/22_locale/money_get/get/char/18.cc: New.
3260 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
3262 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
3264 * config/allocator: New.
3265 * config/allocator/bitmap_allocator_base.h: New.
3266 * config/allocator/malloc_allocator_base.h: New.
3267 * config/allocator/mt_allocator_base.h: New.
3268 * config/allocator/new_allocator_base.h: New.
3269 * include/bits/allocator.h: Include c++allocator.h.
3270 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
3271 * aclocal.m4: Regenerate.
3272 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
3273 * configure: Regenerate.
3274 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
3275 * include/Makefile.in: Regenerate.
3276 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
3278 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3280 * include/bits/allocator.h: Revert.
3282 2004-03-12 Paolo Carlini <pcarlini@suse.de>
3284 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
3285 * include/bits/gslice_array.h: Add comment about DR 253.
3286 * include/bits/indirect_array.h: Likewise.
3287 * include/bits/mask_array.h: Likewise.
3288 * include/bits/slice_array.h: Likewise.
3290 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3292 * testsuite/20_util/allocator/14176.cc: New.
3293 * include/ext/mt_allocator.h: Formatting fixes.
3295 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
3297 * include/Makefile.am (ext_headers): Add
3298 ${ext_srcdir}/bitmap_allocator.h .
3299 * include/Makefile.in: Regenerate.
3300 * docs/html/ext/ballocator_doc.txt: New file.
3301 * include/ext/bitmap_allocator.h: New file.
3302 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
3304 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
3305 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
3306 test for the bitmap_allocator<>.
3307 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
3308 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
3309 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
3311 2004-03-11 Paolo Carlini <pcarlini@suse.de>
3313 * include/std/std_complex.h (pow(const complex&, const _Tp&),
3314 pow(const _Tp&, const complex&), pow(const complex&,
3315 const complex&)): Fully qualify with std:: a few calls.
3316 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
3318 2004-03-11 Steven Bosscher <stevenb@suse.de>
3321 * include/c_std/cmath.tcc (__cmath_power): Define inline.
3323 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
3325 * configure.ac: Bump AC_PREREQ to 2.59.
3327 2004-03-10 Paolo Carlini <pcarlini@suse.de>
3329 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
3331 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
3332 Paolo Carlini <pcarlini@suse.de>
3335 * include/std/std_complex.h (pow(const complex&, const _Tp&),
3336 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
3337 * testsuite/26_numerics/complex/13450.cc: New.
3339 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
3340 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
3342 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
3345 * include/bits/gslice_array.h (gslice_array()): Make public.
3346 (operator=(gslice_array)): Make public. Implement.
3347 * include/bits/indirect_array.h (indirect_array()): Make public.
3348 * include/bits/mask_array.h (mask_array()): Make public.
3349 (operator=(mask_array)): Make public. Implement.
3350 * include/bits/valarray_array.tcc (__valarray_copy):
3351 Comment. Add versions for gslice_array and mask_array.
3352 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
3354 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
3356 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
3358 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
3359 * testsuite/23_containers/set/modifiers/swap.cc: Same.
3360 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
3361 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
3362 * testsuite/23_containers/map/modifiers/swap.cc: Same.
3363 * testsuite/23_containers/list/modifiers/swap.cc: Same.
3365 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
3367 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
3370 * testsuite/23_containers/deque/modifiers/swap.cc: New.
3371 * testsuite/23_containers/list/modifiers/swap.cc: New.
3372 * testsuite/23_containers/map/modifiers/swap.cc: New.
3373 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
3374 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
3375 * testsuite/23_containers/set/modifiers/swap.cc: New.
3376 * testsuite/23_containers/vector/modifiers/swap.cc: New.
3378 2004-03-08 Petur Runolfsson <peturr02@ru.is>
3381 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
3383 2004-03-08 Paolo Carlini <pcarlini@suse.de>
3385 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
3386 * include/bits/stl_multiset.h: Add comment about DR 103.
3387 * include/bits/stl_set.h: Likewise.
3389 2004-03-08 Paolo Carlini <pcarlini@suse.de>
3391 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3392 The value _space_ indicates that at least one space is required
3394 * testsuite/22_locale/money_get/get/char/17.cc: New.
3395 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
3397 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
3398 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
3400 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
3401 Remove redundant conditional on __str.size().
3403 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
3405 * include/bits/allocator.h: Switch defaults to mt_alloc.
3407 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
3409 * include/ext/mt_allocator.h (_S_initialize): If
3410 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
3412 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
3415 * src/locale_init.cc (locale::locale): Lock critical regions with
3417 (locale::global): Same.
3418 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
3419 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
3420 (__glibcxx_mutex_lock): Same.
3422 * config/cpu/generic/atomicity.h: Remove
3423 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
3424 * src/misc-inst.cc: Move all locking bits out of this file.
3426 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
3427 * src/misc-inst.cc: Same.
3428 * config/cpu/hppa/atomicity.h: Same.
3430 * config/linker-map.gnu: Remove types in the signature of atomic
3431 exports, as they may vary.
3433 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3435 * include/bits/locale_facets.tcc: Tweak the comment preceding
3436 has_facet: doesn't throw.
3438 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3440 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
3441 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3442 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3443 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3444 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3445 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3446 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3447 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3449 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3451 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3452 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
3453 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
3454 * testsuite/testsuite_character.h (struct __gnu_test::character):
3456 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
3459 2004-03-05 Paolo Carlini <pcarlini@suse.de>
3461 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
3463 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
3465 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
3467 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
3469 * testsuite/23_containers/deque/invalidation/4.cc: Same.
3470 * testsuite/23_containers/list/invalidation/1.cc: Same.
3471 * testsuite/23_containers/list/invalidation/2.cc: Same.
3472 * testsuite/23_containers/list/invalidation/3.cc: Same.
3473 * testsuite/23_containers/list/invalidation/4.cc: Same.
3474 * testsuite/23_containers/map/invalidation/2.cc: Same.
3475 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
3476 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3477 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
3478 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3479 * testsuite/23_containers/set/invalidation/1.cc: Same.
3480 * testsuite/23_containers/set/invalidation/2.cc: Same.
3481 * testsuite/23_containers/vector/invalidation/1.cc: Same.
3482 * testsuite/23_containers/vector/invalidation/2.cc: Same.
3483 * testsuite/23_containers/vector/invalidation/3.cc: Same.
3484 * testsuite/23_containers/vector/invalidation/4.cc: Same.
3486 2004-03-04 Paolo Carlini <pcarlini@suse.de>
3488 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
3490 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
3492 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
3493 from the dg-options.
3494 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
3495 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
3496 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
3497 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
3498 * testsuite/23_containers/vector/resize/1.cc: Likewise.
3499 * testsuite/26_numerics/complex_value.cc: Likewise.
3500 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
3501 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
3502 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
3503 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
3504 * testsuite/27_io/objects/char/5.cc: Likewise.
3505 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
3506 * testsuite/backward/11460.cc: Likewise.
3507 * testsuite/thread/pthread7-rope.cc: Likewise.
3509 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
3510 missing test variable.
3511 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
3512 missing test variable.
3514 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
3516 * testsuite/20_util/allocator/1.cc: Provide explicit
3517 instantiations for non-weak systems.
3518 * testsuite/20_util/binders.cc: Same.
3519 * testsuite/20_util/allocator/8230.cc: Same.
3520 * testsuite/20_util/allocator/10378.cc: Same.
3521 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
3522 * testsuite/22_locale/ctype/is/char/2.cc: Same.
3523 * testsuite/thread/pthread7-rope.cc: Same.
3524 * testsuite/thread/pthread6.cc: Same.
3525 * testsuite/thread/pthread5.cc: Same.
3526 * testsuite/thread/pthread4.cc: Same.
3527 * testsuite/thread/pthread1.cc: Same.
3528 * testsuite/ext/rope.cc: Same.
3529 * testsuite/ext/hash_set.cc: Same.
3530 * testsuite/ext/hash_map.cc: Same.
3531 * testsuite/ext/concept_checks.cc: Same.
3532 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
3533 * testsuite/25_algorithms/unique/2.cc: Same.
3534 * testsuite/25_algorithms/unique/1.cc: Same.
3535 * testsuite/25_algorithms/rotate.cc: Same.
3536 * testsuite/25_algorithms/min_max.cc: Same.
3537 * testsuite/25_algorithms/equal.cc: Same.
3538 * testsuite/24_iterators/rel_ops.cc: Same.
3539 * testsuite/24_iterators/iterator.cc: Same.
3540 * testsuite/24_iterators/insert_iterator.cc: Same.
3541 * testsuite/24_iterators/front_insert_iterator.cc: Same.
3542 * testsuite/24_iterators/back_insert_iterator.cc: Same.
3543 * testsuite/23_containers/vector/resize/1.cc: Same.
3544 * testsuite/23_containers/vector/modifiers/2.cc: Same.
3545 * testsuite/23_containers/vector/modifiers/1.cc: Same.
3546 * testsuite/23_containers/vector/invalidation/4.cc: Same.
3547 * testsuite/23_containers/vector/invalidation/3.cc: Same.
3548 * testsuite/23_containers/vector/invalidation/2.cc: Same.
3549 * testsuite/23_containers/vector/invalidation/1.cc: Same.
3550 * testsuite/23_containers/vector/element_access/1.cc: Same.
3551 * testsuite/23_containers/vector/cons/6513.cc: Same.
3552 * testsuite/23_containers/vector/cons/3.cc: Same.
3553 * testsuite/23_containers/vector/cons/2.cc: Same.
3554 * testsuite/23_containers/vector/cons/1.cc: Same.
3555 * testsuite/23_containers/vector/capacity/8230.cc: Same.
3556 * testsuite/23_containers/vector/capacity/1.cc: Same.
3557 * testsuite/23_containers/vector/bool/6886.cc: Same.
3558 * testsuite/23_containers/stack/members/7158.cc: Same.
3559 * testsuite/23_containers/set/invalidation/2.cc: Same.
3560 * testsuite/23_containers/set/invalidation/1.cc: Same.
3561 * testsuite/23_containers/queue/members/7157.cc: Same.
3562 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
3563 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3564 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3565 * testsuite/23_containers/multiset/insert/1.cc: Same.
3566 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3567 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3568 * testsuite/23_containers/map/operators/1.cc: Same.
3569 * testsuite/23_containers/map/invalidation/2.cc: Same.
3570 * testsuite/23_containers/map/invalidation/1.cc: Same.
3571 * testsuite/23_containers/map/insert/1.cc: Same.
3572 * testsuite/23_containers/list/operators/4.cc: Same.
3573 * testsuite/23_containers/list/operators/3.cc: Same.
3574 * testsuite/23_containers/list/operators/2.cc: Same.
3575 * testsuite/23_containers/list/operators/1.cc: Same.
3576 * testsuite/23_containers/list/modifiers/3.cc: Same.
3577 * testsuite/23_containers/list/modifiers/2.cc: Same.
3578 * testsuite/23_containers/list/modifiers/1.cc: Same.
3579 * testsuite/23_containers/list/invalidation/4.cc: Same.
3580 * testsuite/23_containers/list/invalidation/3.cc: Same.
3581 * testsuite/23_containers/list/invalidation/2.cc: Same.
3582 * testsuite/23_containers/list/invalidation/1.cc: Same.
3583 * testsuite/23_containers/list/cons/9.cc: Same.
3584 * testsuite/23_containers/list/cons/8.cc: Same.
3585 * testsuite/23_containers/list/cons/7.cc: Same.
3586 * testsuite/23_containers/list/cons/6.cc: Same.
3587 * testsuite/23_containers/list/cons/5.cc: Same.
3588 * testsuite/23_containers/list/cons/4.cc: Same.
3589 * testsuite/23_containers/list/cons/3.cc: Same.
3590 * testsuite/23_containers/list/cons/2.cc: Same.
3591 * testsuite/23_containers/list/cons/1.cc: Same.
3592 * testsuite/23_containers/list/capacity/1.cc: Same.
3593 * testsuite/23_containers/deque/operators/1.cc: Same.
3594 * testsuite/23_containers/deque/invalidation/4.cc: Same.
3595 * testsuite/23_containers/deque/invalidation/3.cc: Same.
3596 * testsuite/23_containers/deque/invalidation/2.cc: Same.
3597 * testsuite/23_containers/deque/invalidation/1.cc: Same.
3598 * testsuite/23_containers/deque/cons/2.cc: Same.
3599 * testsuite/23_containers/deque/cons/1.cc: Same.
3601 * src/allocator.cc: Add char, wchar_t instantiations
3602 to match extern template declarations in memory.h.
3604 2004-03-03 Paolo Carlini <pcarlini@suse.de>
3606 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3607 Fix warning regression.
3609 2004-03-03 Paolo Carlini <pcarlini@suse.de>
3611 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3612 Deal properly with empty __digits and negative frac_digits,
3615 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
3617 * docs/html/documentation.html: Regenerate.
3619 2004-03-02 Paolo Carlini <pcarlini@suse.de>
3622 * include/bits/postypes.h (class streamoff): Remove, now
3623 streamoff is just typedef a 64 bit signed integer type.
3624 (class fpos): Tweak consistently.
3625 * testsuite/27_io/fpos/14320-1.cc: New.
3626 * testsuite/27_io/fpos/14320-2.cc: New.
3627 * testsuite/27_io/fpos/14320-3.cc: New.
3628 * testsuite/27_io/fpos/14320-4.cc: New.
3629 * testsuite/27_io/fpos/14320-5.cc: New.
3630 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
3632 2004-03-02 Paolo Carlini <pcarlini@suse.de>
3634 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3635 Reorganize a bit the main parsing loop, thus early detecting
3636 an empty value component.
3637 * testsuite/22_locale/money_get/get/char/16.cc: New.
3638 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
3640 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
3642 Support automake 1.8.2
3643 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
3644 * po/Makefile.am (EXTRA_DIST): New.
3645 * po/Makefile.in: Regenerate.
3646 * Makefile.in: Same.
3647 * include/Makefile.in: Same.
3648 * libmath/Makefile.in: Same.
3649 * libsupc++/Makefile.in: Same.
3650 * src/Makefile.in: Same.
3651 * testsuite/Makefile.in: Same.
3653 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
3654 __GXX_WEAK__ instead of SUPPORTS_WEAK.
3655 (${host_builddir}/gthr-default.h): Same.
3656 (${host_builddir}/gthr.h): Same.
3657 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
3658 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
3660 * aclocal.m4: Regenerate.
3661 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
3662 * config.h.in: Regenerate.
3665 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
3667 Support autoconf 2.59
3668 * acinclude.m4: Quote correctly.
3669 * aclocal.m4: Regenerate.
3672 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
3674 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
3676 * docs/html/18_support/howto.html: Add bit about writing to
3677 stderr, mostly by Zack.
3679 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3681 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3682 money_get<>::do_get(string_type&)): ... and two more.
3684 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3686 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3687 Fix thinkos in the switch from string_type& to string& as last
3690 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3692 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3693 Also when parsing exponent sign, first look for thousands_sep
3694 and decimal_point; tweak a bit.
3695 * testsuite/22_locale/num_get/get/char/15.cc: New.
3696 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
3698 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3699 num_get<>::_M_extract_int): Reorder some conditionals.
3701 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3703 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3704 Consistently with numpunct, enforce the requirements in
3705 22.2.6.3, p3 for the thousands separators; tweak a bit.
3706 * testsuite/22_locale/money_get/get/char/15.cc: New.
3707 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
3709 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
3711 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
3712 testsuite_files from correct multilib blddir when running
3715 2004-02-29 Phil Edwards <phil@codesourcery.com>
3717 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
3718 the summary file to the logfile.
3719 * testsuite/Makefile.in: Regenerate.
3721 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3723 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
3725 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
3726 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
3728 2004-02-28 Paolo Carlini <pcarlini@suse.de>
3730 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3731 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
3732 no 'decimal-point' in the middle: in this case too we must fix
3733 up __found_grouping; slightly tweak.
3734 * testsuite/22_locale/num_get/get/char/14.cc: New.
3735 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
3737 2004-02-27 Eric Christopher <echristo@redhat.com>
3738 Phil Edwards <phil@codesourcery.com>
3740 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
3741 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
3742 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
3743 testsuite/22_locale/collate/hash/wchar_t/2.cc,
3744 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
3745 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
3746 testsuite/22_locale/collate/transform/wchar_t/2.cc,
3747 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
3748 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3749 Use dg-require-iconv.
3750 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
3752 2004-02-27 Phil Edwards <phil@codesourcery.com>
3753 Eric Christopher <echristo@redhat.com>
3755 * testsuite/config/default.exp: Update with comments.
3756 (${tool}_target_compile): New wrapper routine.
3757 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
3758 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
3760 (load_gcc_lib, v3track): New routines.
3761 (v3-init): Rename to libstdc++_init.
3762 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
3763 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
3765 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
3767 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
3769 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
3771 * config/os/irix/irix5.2/atomicity.h: Merge..
3772 * config/os/irix/irix6.5/atomicity.h: Merge..
3773 * config/os/irix/atomicity.h: ...into this.
3774 * config/os/irix/atomic_word.h: New.
3775 * configure.host: Set atomic_word_dir for irix.
3777 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
3778 * i386/atomicity.h: Same.
3779 * m68k/atomicity.h: Same.
3780 * sparc/atomicity.h: Same.
3782 2004-02-27 David Edelsohn <edelsohn@gnu.org>
3784 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
3785 static, and inline keywords.
3787 2004-02-27 Paolo Carlini <pcarlini@suse.de>
3789 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3790 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
3791 call reserve on the __tmp_gruping string.
3792 (num_get<>::_M_extract_float): Don't append unnecessarily a
3793 char() to the returned string.
3794 * include/bits/locale_facets.tcc: Trivial reformattings.
3796 2004-02-27 Paolo Carlini <pcarlini@suse.de>
3798 * include/bits/locale_facets.h (money_get<>::_M_extract):
3799 Change signature: now takes a plain string&.
3800 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3801 Update consistently the definition; use the moneypunct cache
3802 to parse the value; use swap to change __units.
3803 (money_get<>::do_get(long double&)): Update call of _M_extract,
3804 avoid ctype::narrow, not correct wrt the standard.
3805 (money_get<>::do_get(string_type&)): Likewise, update call
3806 of _M_extract, use ctype::widen.
3807 * src/locale-inst.cc: Tweak instantiations of _M_extract.
3809 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
3811 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
3812 * testsuite/demangle/abi_examples/02.cc: Likewise.
3813 * testsuite/demangle/regression/cw-11.cc: Likewise.
3814 * testsuite/demangle/regression/cw-16.cc: Change two expected
3815 results to match libiberty demangler output.
3817 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
3820 * libsupc++/Makefile.am: Use libiberty demangler.
3821 (c_sources): Add cp-demangle.c.
3822 * libsupc++/Makefile.in: Regenerate.
3823 * src/Makefile.am (sources): Remove demangle.cc.
3824 * src/Makefile.in: Regenerate.
3825 * include/Makefile.am (bits_headers): Move demangle.h.
3826 (ext_headers): ...here.
3827 * include/Makefile.in: Regenerate.
3828 * include/bits/demangle.h: Move...
3829 * include/ext/demangle.h: ...here.
3830 * src/demangle.cc: Remove.
3832 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
3834 * include/bits/demangle.h: Add type template parameter to all
3835 templates with just an Allocator template parameter.
3837 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
3839 * include/bits/atomicity.h: New, forward declarations for __atomic_add
3840 and __exchange_and_add.
3841 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
3842 * config/cpu/cris/atomic_word.h: Same.
3843 * config/cpu/sparc/atomic_word.h: Same.
3844 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
3845 Qualifiy with __gnu_cxx.
3846 (_Callback_list::_M_add_reference): Same.
3847 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
3848 (locale::facet::_M_remove_reference): Same.
3849 (locale::_Impl::_M_add_reference): Add.
3850 (locale::_Impl::_M_remove_reference): Same.
3851 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
3852 (basic_string::_Rep::_M_dispose): Same.
3853 * src/ios.cc (ios_base::xalloc): Same.
3854 * src/ios_init.cc (ios_base::Init::Init): Same.
3855 (ios_base::Init::~Init): Same.
3856 * src/locale.cc (locale::id::_M_id): Same.
3857 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
3858 static, and inline keywords.
3859 * config/cpu/alpha/atomicity.h: Same.
3860 * config/cpu/cris/atomicity.h: Same.
3861 * config/cpu/generic/atomicity.h: Same.
3862 * config/cpu/hppa/atomicity.h: Same.
3863 * config/cpu/i386/atomicity.h: Same.
3864 * config/cpu/ia64/atomicity.h: Same.
3865 * config/cpu/m68k/atomicity.h: Same.
3866 * config/cpu/mips/atomicity.h: Same.
3867 * config/cpu/powerpc/atomicity.h: Same.
3868 * config/cpu/s390/atomicity.h: Same.
3869 * config/cpu/sparc/atomicity.h: Same.
3871 * src/Makefile.am (host_sources): Add atomicity.cc.
3872 (atomicity.cc): New rule.
3873 * src/Makefile.in: Regenerate.
3874 * include/Makefile.am (host_headers): Remove host atomicity.h.
3875 (host_headers): Add atomic_word.h.
3876 (bits_headers): Add bits atomicity.h.
3877 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3878 * include/Makefile.in: Regenerate.
3879 * configure.host (atomic_word_dir): Add.
3880 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
3881 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3882 * configure: Regenerate.
3883 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
3885 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
3886 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3888 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
3890 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
3891 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
3892 Fix markup, more <link> tags.
3894 2004-02-25 Carlo Wood <carlo@alinoe.com>
3897 namespace __gnu_cxx::demangler
3898 (session<Allocator>::qualifier_list_Allocator): Add
3899 (session<Allocator>::M_qualifier_list_alloc): Add
3900 (session<Allocator>::decode_type_with_postfix):
3901 Use M_qualifier_list_alloc instead of calling operator new/delete.
3903 2004-02-24 Paolo Carlini <pcarlini@suse.de>
3906 * include/bits/postypes.h (class streamoff): Add operator++(),
3907 operator++(int), operator--() and operator--(int).
3908 * testsuite/27_io/fpos/14252.cc: New.
3910 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
3912 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
3913 error in handling of hex constants.
3915 2004-02-24 Paolo Carlini <pcarlini@suse.de>
3917 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3918 Prefer basic_string::append to operator+= and a temporary.
3920 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
3922 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
3923 Only use fputs, not write.
3925 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
3927 * include/ext/malloc_allocator.h: Add operators ==, !=.
3928 * include/ext/new_allocator.h: Add operators ==, !=.
3929 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
3930 (__mt_alloc::_S_get_options): New.
3931 (__mt_alloc::_S_set_options): New.
3932 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
3933 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
3934 Move functions out of line, simplify, format.
3935 * src/allocator.cc: Simplify explicit instantiations.
3936 * include/bits/allocator.h: Tweak.
3938 2004-02-22 Paolo Carlini <pcarlini@suse.de>
3940 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3941 Restructure formatting of value component, first dealing with
3942 the non-decimal digits; use reserve.
3944 2004-02-22 Paolo Carlini <pcarlini@suse.de>
3946 * include/bits/locale_facets.h (class money_get): Inherit
3947 from money_base too; tweak declaration of _M_extract, now
3948 parameterized on _Intl too.
3949 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3950 Update definition to use the cache; call reserve on __res to
3951 avoid multiple reallocations; fix parsing of sign component
3952 according to 22.2.6.1.2, p3.
3953 (money_get<>::do_get(long double&),
3954 money_get<>::do_get(string_type&)): Update calls of _M_extract.
3955 * src/locale-inst.cc: Add instantiations of
3956 money_get::_M_extract<false> and money_get::_M_extract<true>.
3957 * testsuite/22_locale/money_get/get/char/14.cc: New.
3958 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
3960 2004-02-21 Mark Mitchell <mark@codesourcery.com>
3962 * libsupc++/vterminate.cc
3963 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
3965 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
3967 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3968 not set RLIMIT_AS on HP-UX.
3970 2004-02-21 Mark Mitchell <mark@codesourcery.com>
3972 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3973 not set RLIMIT_AS on HP-UX.
3975 2004-02-21 Paolo Carlini <pcarlini@suse.de>
3977 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
3978 _S_zero, _S_end } enum, _S_atoms.
3979 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
3980 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
3981 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
3982 (__moneypunct_cache<>::~__moneypunct_cache): Update.
3983 (__moneypunct_cache<>::_M_cache): Fill the cache.
3984 (class moneypunct): Tweak __cache_type typedef.
3985 (class money_put): Inherit from money_base too; tweak declaration
3986 of _M_insert, now parameterized on _Intl.
3987 * include/bits/locale_facets.tcc
3988 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
3989 (money_put<>::_M_insert): Update definition to use the cache;
3990 call reserve on __res to avoid multiple reallocations.
3991 (money_put<>::do_put(long double),
3992 money_put<>::do_put(const string_type&): Update calls of _M_insert.
3993 * config/locale/generic/monetary_members.cc
3994 (moneypunct<char, true>::_M_initialize_moneypunct,
3995 moneypunct<char, false>::_M_initialize_moneypunct,
3996 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
3997 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
3998 * config/locale/gnu/monetary_members.cc: Likewise.
3999 * config/locale/gnu/monetary_members.cc
4000 (moneypunct<wchar_t, true>::~moneypunct(),
4001 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
4002 * src/globals_locale.cc: Tweak fake_money_cache_c.
4003 * src/locale-inst.cc: Add instantiations for
4004 money_put::_M_insert<false> and money_put::_M_insert<true> and
4005 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
4006 * src/locale_facets.cc: Define money_base::_S_atoms.
4007 * src/locale_init.cc: Update placement new of
4008 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
4009 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
4011 * config/locale/generic/numeric_members.cc: Clean up.
4012 * config/locale/gnu/numeric_members.cc: Likewise.
4013 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
4014 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
4015 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
4016 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
4017 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
4018 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
4020 2004-02-20 Mark Mitchell <mark@codesourcery.com>
4022 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
4023 FIFO for writing with ios_base::in|ios_base::out.
4024 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
4025 * testsuite/27_io/objects/char/7.cc: Likewise.
4026 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
4029 2004-02-19 David Edelsohn <edelsohn@gnu.org>
4031 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
4032 from iso-8859-1 to ISO8859-1.
4033 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
4034 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
4035 * 22_locale/collate/hash/wchar_t/2.cc: Same.
4036 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
4037 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
4038 * 22_locale/collate/transform/wchar_t/2.cc: Same.
4039 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
4040 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
4042 2004-02-18 Paolo Carlini <pcarlini@suse.de>
4044 * include/bits/locale_facets.h (money_get<>::_M_extract):
4045 New, helper for do_get.
4046 (money_put<>::_M_insert): Likewise, for do_put.
4047 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
4048 money_put<>::_M_insert): Define.
4049 (money_get<>::do_get(long double&), money_get<>::do_get(
4050 string_type&), money_put::do_put(long double),
4051 money_put::do_put(const string_type&)): Use the helpers.
4053 2004-02-18 Paolo Carlini <pcarlini@suse.de>
4055 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4056 Rewrite, avoiding recursion.
4057 (__gnu_internal::xwrite): Minor tweaks.
4059 2004-02-17 Stefan Olsson <stefan@xapa.se>
4061 * include/ext/mt_allocator.h: Removed the last
4062 pointer. Deallocated blocks are now added to the front of
4063 freelists as proposed by Felix Yen. This gives roughly 10%
4064 performance boost and saves some memory.
4065 * docs/html/ext/mt_allocator.html: Change due to that deallocated
4066 blocks now are added to the front of freelists. The reason to this
4067 approach is also explained.
4069 2004-02-17 Paolo Carlini <pcarlini@suse.de>
4071 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4072 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
4073 grouping fidelity conditional.
4075 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4077 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
4078 Qualify exception with std::.
4079 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
4080 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4081 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4082 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4083 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4085 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4087 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
4088 for now that the catch block is not reached.
4089 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
4091 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4093 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4094 Fix parsing of the remaining sign characters.
4095 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
4096 the input is scanned 'til eof.
4097 * 22_locale/money_get/get/char/4.cc: Likewise.
4098 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
4099 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
4100 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
4101 not do_pos_format: the former is the only one that matters during
4103 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
4105 * 22_locale/money_get/get/char/6.cc: Minor tweak.
4106 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
4108 2004-02-15 David Asher <david.asher@cavium.com>
4111 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
4112 access __olds beyond __oldlen.
4114 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4116 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
4117 sure the exception is actually thrown.
4118 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4119 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4120 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4122 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4125 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
4126 In case of conversion errors, throw ios_failure; simplify.
4127 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
4128 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4129 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
4130 previously we didn't throw in case of conversion errors, instead
4131 just returned eof().
4132 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4133 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4134 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4136 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
4137 Trivial simplification of a conditional.
4139 2004-02-12 Paolo Carlini <pcarlini@suse.de>
4141 PR libstdc++/13731 (final part: writev)
4142 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4143 New, a wrapper around writev() handling partial writes.
4144 (__basic_file<char>::xwrite): Move to __gnu_internal and make
4146 (__basic_file<char>::xsputn): Update call.
4147 (__basic_file<char>::xsputn_2): Likewise.
4148 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4149 Don't declare, now static.
4151 2004-02-11 Stefan Olsson <stefan@xapa.se>
4153 * docs/html/ext/mt_allocator.html: New.
4155 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
4157 * docs/html/20_util/allocator.html: New file, consolidate
4158 allocator information here. Revamp.
4159 * docs/html/documentation.html: Change links.
4160 * docs/html/20_util/howto.html: Same.
4161 * docs/html/ext/howto.html: Same.
4163 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4165 PR libstdc++/13731 (first part: write)
4166 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4168 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
4169 Define it: a wrapper around write() handling partial write.
4170 (__basic_file<char>::xsputn): Use it.
4171 (__basic_file<char>::xsputn_2): Likewise.
4173 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4174 Petur Runolfsson <peturr02@ru.is>
4177 * include/std/std_istream.h (operator>>(__istream_type& (*)
4178 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
4179 operator>>(ios_base& (*)(ios_base&))): Declare inline.
4180 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
4181 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
4182 operator<<(ios_base& (*) (ios_base&))): Likewise.
4183 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
4185 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
4188 * config/linker-map.gnu: Add typeinfo and typeinfo name for
4189 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
4192 * config/linker-map.gnu: Add typeinfo and typeinfo name for
4193 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
4195 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
4197 * include/ext/pool_allocator.h: Include c++config.h.
4199 2004-02-09 Stefan Olsson <stefan@xapa.se>
4201 * include/ext/mt_allocator.h: thread_id is unused in non threaded
4202 applications and now has a ifdef to remove it completely on
4203 compilers without thread support. Include stdlib.h due to a
4204 compiler warning on getenv().
4206 2004-02-09 Paul Brook <paul@codesourcery.com>
4208 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
4210 2004-02-09 Paolo Carlini <pcarlini@suse.de>
4213 * src/locale_init.cc (locale::global(const locale&)): Use
4214 locale::name() in order to decide whether calling setlocale.
4215 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
4217 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
4218 Avoid computing &= unnecessarily.
4220 2004-02-09 James E Wilson <wilson@specifixinc.com>
4223 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
4224 __builtin_extend_pointer.
4226 2004-02-09 Paolo Carlini <pcarlini@suse.de>
4229 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
4230 Don't leave dangling pointers.
4231 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
4232 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
4233 facet is needed in the final test.
4235 2004-02-09 Bernardo Innocenti <bernie@develer.com>
4237 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
4238 * configure: Regenerate.
4240 2004-02-08 Richard Henderson <rth@redhat.com>
4243 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
4244 uncaughtExceptions during nested catch rethrow.
4245 * testsuite/18_support/14026.cc: New.
4247 2004-02-08 Paolo Carlini <pcarlini@suse.de>
4249 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
4250 When working in place remember to set the state to sharable
4251 (otherwise, _M_mutate does it).
4253 2004-02-08 Bernardo Innocenti <bernie@develer.com>
4255 * include/bits/allocator.h, include/bits/basic_ios.h,
4256 include/bits/basic_ios.tcc, include/bits/basic_string.h,
4257 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
4258 include/bits/char_traits.h, include/bits/codecvt.h,
4259 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
4260 include/bits/demangle.h, include/bits/deque.tcc,
4261 include/bits/fstream.tcc, include/bits/functexcept.h,
4262 include/bits/gslice.h, include/bits/gslice_array.h,
4263 include/bits/indirect_array.h, include/bits/ios_base.h,
4264 include/bits/istream.tcc, include/bits/list.tcc,
4265 include/bits/locale_classes.h, include/bits/locale_facets.h,
4266 include/bits/locale_facets.tcc, include/bits/localefwd.h,
4267 include/bits/mask_array.h, include/bits/ostream.tcc,
4268 include/bits/postypes.h, include/bits/slice_array.h,
4269 include/bits/sstream.tcc, include/bits/stl_algo.h,
4270 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
4271 include/bits/stl_construct.h, include/bits/stl_deque.h,
4272 include/bits/stl_function.h, include/bits/stl_heap.h,
4273 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
4274 include/bits/stl_list.h, include/bits/stl_map.h,
4275 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
4276 include/bits/stl_numeric.h, include/bits/stl_pair.h,
4277 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
4278 include/bits/stl_relops.h, include/bits/stl_set.h,
4279 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
4280 include/bits/stl_threads.h, include/bits/stl_tree.h,
4281 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
4282 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
4283 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
4284 include/bits/type_traits.h, include/bits/valarray_after.h,
4285 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
4286 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
4287 trailing whitespace.
4289 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4291 * include/bits/basic_string.h: Fix comment.
4293 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4295 * include/bits/stl_construct.h: Wrap overlong lines, reformat
4296 according to the coding standards.
4297 * include/bits/stl_pair.h: Likewise.
4298 * include/bits/stl_raw_storage_iter.h: Likewise.
4299 * include/bits/stl_stack.h: Likewise.
4300 * include/bits/stl_uninitialized.h: Likewise.
4301 * include/bits/stream_iterator.h: Likewise.
4302 * include/bits/streambuf_iterator.h: Likewise.
4303 * include/bits/type_traits.h: Likewise.
4305 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4307 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4310 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
4312 * scripts/check_performance: Support PCH.
4314 * scripts/check_performance (CXX): Add -DNOTHREAD.
4315 * testsuite/performance/20_util/allocator/insert.cc: Integrate
4316 threaded tests from insert_insert.cc. Tweak iterations,
4317 remove special cases.
4318 * testsuite/performance/20_util/allocator/insert_insert.cc:
4319 Make all tests single-threaded. Tweak iterations.
4320 * testsuite/performance/20_util/allocator/map_thread.cc:
4322 * testsuite/performance/20_util/allocator/producer_consumer.cc:
4325 2004-02-05 Geoffrey Keating <geoffk@apple.com>
4329 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
4330 'gcc-lib'. Add comment about poorly-named variables.
4331 * aclocal.m4: Regenerate.
4332 * configure: Regenerate.
4334 2004-02-05 Paolo Carlini <pcarlini@suse.de>
4336 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4337 Thousands-sep are always optional; thousands-sep are not allowed
4338 after the decimal_point.
4339 * testsuite/22_locale/money_get/get/char/12.cc: New.
4340 * testsuite/22_locale/money_get/get/char/13.cc: New.
4341 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
4342 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
4344 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
4345 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
4346 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
4347 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
4348 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
4349 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
4350 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
4351 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
4353 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
4355 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
4357 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
4359 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
4361 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
4362 it to decide whether FIONREAD should take an off_t or int argument.
4364 2004-02-05 Paolo Carlini <pcarlini@suse.de>
4366 * include/bits/stl_function.h: Minor formatting changes.
4368 2004-02-04 Zack Weinberg <zack@codesourcery.com>
4370 Revert previous change to config/abi/*/baseline_symbols.txt.
4372 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
4373 Zack Weinberg <zack@codesourcery.com>
4375 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
4377 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
4378 (__basic_file<char>::_M_open_mode): Delete.
4379 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
4381 * testsuite/27_io/basic_filebuf/close/char/9964.cc
4382 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4383 Correct flags to filebuf::open calls.
4385 * config/abi/alpha-freebsd5/baseline_symbols.txt
4386 * config/abi/alpha-linux-gnu/baseline_symbols.txt
4387 * config/abi/hppa-linux-gnu/baseline_symbols.txt
4388 * config/abi/i386-freebsd4/baseline_symbols.txt
4389 * config/abi/i386-freebsd5/baseline_symbols.txt
4390 * config/abi/i486-linux-gnu/baseline_symbols.txt
4391 * config/abi/ia64-linux-gnu/baseline_symbols.txt
4392 * config/abi/mips-linux-gnu/baseline_symbols.txt
4393 * config/abi/sparc-freebsd5/baseline_symbols.txt
4394 * config/abi/sparc-linux-gnu/baseline_symbols.txt
4395 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
4396 Remove entry for __basic_file<char>::_M_open_mode.
4398 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
4400 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
4402 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
4404 * testsuite/performance/20_util/producer_consumer.cc: New.
4405 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
4407 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
4409 * testsuite/performance/20_util/allocator.cc: Move to..
4410 * testsuite/performance/20_util/allocator/insert.cc: ...here.
4411 * testsuite/performance/20_util/allocator_thread.cc: Move to...
4412 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
4413 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
4414 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
4416 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
4418 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
4419 * docs/html/faq/index.txt: Regenerate.
4421 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
4423 * include/ext/debug_allocator.h: _M_extra now stands for the
4424 number of extra objects instead of the number of extra bytes.
4425 (debug_allocator::allocate): Adjust.
4426 (debug_allocator::deallocate): Adjust.
4428 * include/ext/pool_allocator.h: Fix typo.
4430 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
4431 Benjamin Kosnik <bkoz@redhat.com>
4433 * testsuite/performance/20_util/allocator.cc: Add map,
4435 * testsuite/performance/20_util/allocator_thread.cc: Same.
4437 2004-02-03 Paolo Carlini <pcarlini@suse.de>
4439 * include/bits/basic_string.h (insert(iterator)): Remove,
4440 non-standard and already scheduled for removal.
4442 2004-02-03 Paolo Carlini <pcarlini@suse.de>
4444 * include/bits/stl_iterator_base_funcs.h: Minor formatting
4445 and indentation tweaks.
4446 * include/bits/stl_iterator_base_types.h: Likewise.
4447 * include/bits/stl_list.h: Likewise.
4448 * include/bits/stl_map.h: Likewise.
4449 * include/bits/stl_tempbuf.h: Likewise.
4451 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
4453 * include/bits/gslice.h, include/bits/gslice_array.h,
4454 include/bits/indirect_array.h, include/bits/mask_array.h,
4455 include/bits/slice_array.h, include/bits/stl_numeric.h,
4456 include/std/std_valarray.h: Update copyright years.
4458 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
4460 * include/bits/gslice.h (gslice): Document.
4461 * include/bits/gslice_array.h (gslice_array): Document.
4462 * include/bits/indirect_array (indirect_array): Document.
4463 * include/bits/mask_array (mask_array): Document.
4464 * include/bits/slice_array.h (slice,slice_array): Document.
4465 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
4466 adjacent_difference): Document
4467 * include/std/std_valarray.h (valarray): Document.
4469 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
4471 * docs/html/19_diagnostics/howto.html: Move verbose terminate
4473 * docs/html/18_support/howto.html: Here.
4474 * docs/html/documentation.html: Add reference here.
4476 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4478 * config/locale/gnu/c++locale_internal.h: Remove prototypes
4479 of no longer used GLIBC thread locale functions.
4481 2004-02-02 Eric Christopher <echristo@redhat.com>
4482 Zack Weinberg <zack@codesourcery.com>
4484 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
4486 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
4487 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
4488 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
4489 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
4490 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
4491 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
4492 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
4493 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4496 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4498 * include/bits/stl_function.h: Additional minor tweaks.
4499 * include/bits/stl_multiset.h: Likewise.
4501 * include/bits/stl_queue.h: Minor tweaks.
4503 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4505 PR libstdc++/13976 (continued)
4506 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
4507 Make the second parameter unnamed, to void unused parameter
4509 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
4511 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4514 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
4515 Make the second parameter unnamed, to void unused parameter
4517 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
4518 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
4520 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4522 * include/bits/stl_algo.h: Additional minor tweaks.
4523 * include/bits/stl_map.h: Likewise.
4524 * include/bits/stl_multimap.h: Likewise.
4525 * include/bits/stl_multiset.h: Likewise.
4526 * include/bits/stl_set.h: Likewise.
4527 * include/bits/stl_tree.h: Likewise.
4529 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4531 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
4534 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4536 * include/bits/stl_function.h: Additional minor tweaks.
4538 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4540 * include/bits/deque.tcc: Wrap overlong lines, constify
4541 a few variables, reformat according to the coding standards.
4542 * include/bits/list.tcc: Likewise.
4543 * include/bits/stl_deque.h: Likewise.
4544 * include/bits/stl_function.h: Likewise.
4545 * include/bits/stl_iterator.h: Likewise.
4546 * include/bits/stl_iterator_base_funcs.h: Likewise.
4547 * include/bits/stl_iterator_base_types.h: Likewise.
4548 * include/bits/stl_list.h: Likewise.
4549 * include/bits/stl_map.h: Likewise.
4550 * include/bits/stl_multimap.h: Likewise.
4551 * include/bits/stl_multiset.h: Likewise.
4552 * include/bits/stl_relops.h: Likewise.
4553 * include/bits/stl_set.h: Likewise.
4555 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4557 * include/bits/stl_bvector.h: Wrap overlong lines, constify
4558 a few variables, reformat according to the coding standards.
4559 * include/bits/stl_tree.h: Likewise.
4561 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4563 * include/bits/stl_algo.h: Minor additional reformat, add
4565 * include/bits/stl_algobase.h: Add copyright year.
4567 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4569 * include/bits/stl_algo.h: Wrap overlong lines, constify
4570 a few variables, reformat according to the coding standards.
4571 * include/bits/stl_algobase.h: Likewise.
4572 * include/bits/stl_heap.h: Likewise.
4574 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4576 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
4578 * include/bits/basic_string.h: Fix two comments.
4580 2004-01-31 Per Bothner <per@bothner.com>
4582 * include/ext/mt_allocator.h
4583 (__mt_alloc::_S_thread_freelist_mutex): Guard with
4584 __GTHREAD_MUTEX_INIT.
4586 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4588 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
4590 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4592 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
4593 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
4594 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
4596 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
4598 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
4599 Don't use clear, but instead assign. Use insert.
4601 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
4603 * src/demangle.cc: Add instantiations.
4604 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
4605 * src/Makefile.in: Regenerate.
4607 2004-01-30 David Edelsohn <edelsohn@gnu.org>
4609 * src/allocator.cc: Protect _S_get_thread_id() and
4610 _S_thread_key_destr() with #ifdef __GTHREADS.
4612 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4614 Reshuffle performance testsuite.
4615 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
4616 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
4617 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
4618 fstream_seek_write.cc, ifstream_extract_float.cc,
4619 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
4620 list_create_fill_sort.cc, map_create_fill.cc,
4621 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
4622 ofstream_insert_float.cc, ofstream_insert_int.cc,
4623 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
4624 wchar_t_out.cc: Split into...
4625 * testsuite/performance/20_util/allocator.cc: New.
4626 * testsuite/performance/20_util/allocator_map_thread.cc: New.
4627 * testsuite/performance/20_util/allocator_thread.cc: New.
4628 * testsuite/performance/21_strings/string_append: New.
4629 * testsuite/performance/22_locale/is_wchar_t.cc: New.
4630 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
4631 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
4632 * testsuite/performance/22_locale/wchar_t_in.cc: New.
4633 * testsuite/performance/22_locale/wchar_t_length.cc: New.
4634 * testsuite/performance/22_locale/wchar_t_out.cc: New.
4635 * testsuite/performance/23_containers/container_benchmark.cc: New.
4636 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
4637 * testsuite/performance/23_containers/map_create_fill.cc: New.
4638 * testsuite/performance/26_numerics/complex_norm.cc: New.
4639 * testsuite/performance/27_io/cout_insert_int.cc: New.
4640 * testsuite/performance/27_io/filebuf_copy.cc: New.
4641 * testsuite/performance/27_io/filebuf_sputc.cc: New.
4642 * testsuite/performance/27_io/fstream_seek_write.cc: New.
4643 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
4644 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
4645 * testsuite/performance/27_io/ifstream_getline.cc: New.
4646 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
4647 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
4649 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4651 * include/bits/basic_string.tcc (_Rep::_S_create):
4652 Never allocate a string bigger than max_size(); always keep
4653 __capacity and __size in sync to avoid memory leaks at
4656 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4658 * include/bits/basic_string.tcc (_S_construct(_InIterator,
4659 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
4660 the double loop, streamline.
4662 * include/bits/basic_string.tcc: Very minor tweaks.
4664 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
4666 * scripts/check_performance: Only compile with $THREAD_FLAG
4667 when test is marked to require it. Allow multiple
4668 compilations/executions of marked tests.
4669 * testsuite/testsuite_performance.h (report_performance):
4670 Report dynamic thread support status.
4671 (report_header): Likewise.
4672 * testsuite/performance/allocator.cc: Stabilize iteration
4673 count. Support more allocators. Mark each allocator test to
4674 run and report independently.
4675 * testsuite/performance/allocator_map_thread.cc: Likewise.
4676 * testsuite/performance/allocator_thread.cc: Likewise.
4678 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
4680 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
4681 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
4682 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
4683 std::get_temporary_buffer() instead of duplicating its code.
4684 Update to C++STYLE conventions.
4685 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
4686 new() instead of std::malloc().
4687 (return_temporary_buffer): Use ::operator delete() instead of
4690 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
4692 * include/bits/allocator.h: Temporary switch to new_allocator as
4693 the default to unjam bootstraps.
4695 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
4697 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
4698 * include/Makefile.in: Regenerate.
4699 * include/bits/allocator_traits.h: Remove.
4700 * include/bits/allocator.h: Remove allocator_traits.h include, and
4702 (allocator): Empty base class, inherit from the underlying allocator.
4703 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
4704 * src/allocator.cc: ...here. New. For the underlying allocators.
4705 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
4706 * config/linker-map.gnu: Remove __pool_alloc bits.
4707 * src/Makefile.am (sources): Add allocator.cc.
4708 * src/Makefile.in: Regenerate.
4709 * testsuite/20_util/allocator/1.cc: Split second test into...
4710 * testsuite/20_util/allocator/8230.cc: ...this.
4711 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
4712 typedef to use std::allocatore. Format.
4713 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
4715 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
4716 __throw_bad_alloc calls. Don't include <memory>.
4717 * include/ext/malloc_allocator.h: Remove <memory> include.
4718 * include/ext/new_allocator.h (new_allocator): Same.
4719 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
4720 declaration. Switch __alloc to _Alloc.
4721 * include/ext/hashtable.h: Remove __alloc.
4722 * include/backward/alloc.h: Only inject allocator, not
4723 implementation details.
4725 * include/ext/mt_allocator.h: Replace free with delete.
4727 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
4729 * src/globals_io.cc: Change to __gnu_internal namespace.
4730 * src/globals_locale.cc: Same.
4731 * src/locale_init.cc: Same.
4732 * src/ios_init.cc: Same.
4734 2004-01-28 Stefan Olsson <stefan@snon.net>
4736 * include/ext/mt_allocator.h: Replaced all malloc() calls with
4737 operator new(). Added support for the env variable
4738 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
4739 one in allocate() as well). Fix typos.
4741 2004-01-28 Paolo Carlini <pcarlini@suse.de>
4743 * include/bits/basic_string.h (_S_create(size_t,
4744 const _Alloc&): Change signature to take two size_type
4746 * include/bits/basic_string.tcc (_S_construct(_InIterator,
4747 _InIterator, const _Alloc&, input_iterator_tag)): Update
4749 (_S_construct(_InIterator, _InIterator, const _Alloc&,
4750 forward_iterator_tag)): Likewise.
4751 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
4752 (_M_mutate(size_type, size_type, size_type)): Don't
4753 implement the exponential growth policy, demand it to
4754 _S_create, update call and simplify.
4755 (_M_clone(const _Alloc&, size_type)): Likewise.
4756 (_S_create(size_type, size_type, const _Alloc&)): Implement
4757 the growth policy, simplify otherwise.
4759 * include/bits/basic_string.h (_Rep::operator[]): Tweak
4760 signature to take a size_type, consistently with the other
4763 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
4765 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
4766 delete declarations, add include and test variable.
4768 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
4770 * include/bits/codecvt.h, include/bits/locale_facets.h,
4771 include/bits/postypes.h, include/bits/stl_bvector.h,
4772 include/bits/stl_multiset.h, include/bits/stl_set.h,
4773 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
4774 include/std/std_complex.h: Document.
4776 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
4779 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
4780 iword/pword selector.
4781 (ios_base::iword, ios_base::pword): Use it.
4782 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
4783 iword or pword member on alloc failure.
4784 * testsuite/27_io/ios_base/storage/11584.cc: New test.
4786 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
4787 PJ Darcy <darcypj@us.ibm.com>
4789 * configure.host: Add support for *-tpf.
4790 * crossconfig.m4: Likewise.
4791 * configure: Regenerate.
4792 * config/os/tpf: New directory.
4793 * config/os/tpf/os_defines.h: New file.
4794 * config/os/tpf/ctype_base.h: Likewise.
4795 * config/os/tpf/ctype_inline.h: Likewise.
4796 * config/os/tpf/ctype_noninline.h: Likewise.
4798 2004-01-27 Paolo Carlini <pcarlini@suse.de>
4801 * include/bits/sstream.tcc: Guard use of extern template.
4803 2004-01-27 Paolo Carlini <pcarlini@suse.de>
4805 * include/bits/basic_string.tcc
4806 (basic_string(const basic_string&, size_type, size_type),
4807 basic_string(const basic_string&, size_type, size_type,
4808 const _Alloc&)): Avoid unnecessarily constructing iterators.
4810 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4812 * config/locale/generic/c_locale.cc: Fix throw messages
4813 to use the __N marker.
4814 * config/locale/gnu/c_locale.cc: Likewise.
4815 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
4817 * docs/html/17_intro/C++STYLE: Likewise.
4818 * include/bits/basic_ios.tcc: Likewise.
4819 * include/bits/fstream.tcc: Likewise.
4820 * include/bits/vector.tcc: Likewise.
4821 * include/ext/ropeimpl.h: Likewise.
4822 * include/std/std_bitset.h: Likewise.
4823 * src/ios.cc: Likewise.
4824 * src/locale.cc: Likewise.
4825 * src/localename.cc: Likewise.
4827 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4829 * include/bits/basic_string.h (_M_replace_aux): Use the
4830 __N marker in throw message.
4831 * include/bits/basic_string.tcc (assign(const _CharT*,
4832 size_type), insert(size_type, const _CharT*, size_type),
4833 replace(size_type, size_type, const _CharT*, size_type),
4834 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
4837 * include/bits/basic_string.h, include/bits/basic_string.tcc:
4838 Fold overlong lines, minor formatting changes.
4840 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4842 * include/bits/basic_string.h (replace(iterator, iterator,
4843 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
4844 (replace(iterator, iterator, const _CharT*)): Ditto.
4845 (replace(iterator, iterator, const _CharT*, size_type)):
4846 Add missing _GLIBCXX_DEBUG_PEDASSERT.
4848 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4850 * include/bits/basic_string.tcc (replace(size_type,
4851 size_type, const _CharT*, size_type)): Implement optimized
4852 in-place algorithm for non-overlapping ranges.
4853 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
4854 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
4856 * include/bits/basic_string.tcc (insert(size_type,
4857 const _CharT*, size_type)): Tweak slightly.
4859 2004-01-26 Andreas Schwab <schwab@suse.de>
4861 * config/locale/gnu/monetary_members.cc: Restore locale before
4862 rethrowing exception.
4864 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4866 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
4868 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
4871 * include/bits/basic_string.tcc: Very minor tweaks.
4873 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4875 * testsuite/performance/string_append.cc: Increase number
4878 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4880 * include/bits/basic_string.h (erase(size_type, size_type),
4881 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
4882 instead, thus avoiding redundant check for length_error.
4884 * include/bits/basic_string.h: Tweak some comments.
4886 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4888 * include/bits/basic_string.tcc (operator+(const _CharT*,
4889 const basic_string&)): No need to go through the append
4890 taking two iterators.
4892 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4894 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
4895 Revert last change to use std::min: machine language is worse.
4896 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
4897 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4898 (find_last_not_of(_CharT, size_type)): Ditto.
4900 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
4901 size_type)): Discard the value returned by _M_check.
4902 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
4903 (append(const basic_string&, size_type, size_type)): Ditto.
4904 (copy(_CharT*, size_type, size_type)): Ditto.
4905 (compare(size_type, size_type, const basic_string&)): Ditto.
4906 (compare(size_type, size_type, const basic_string&,
4907 size_type, size_type)): Ditto.
4908 (compare(size_type, size_type, const _CharT*)): Ditto.
4909 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
4911 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4913 * include/bits/basic_string.h (insert(size_type,
4914 const basic_string&, size_type, size_type)): Define inline here.
4915 * include/bits/basic_string.tcc (insert(size_type,
4916 const basic_string&, size_type, size_type)): Move inline.
4918 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4920 * include/bits/basic_string.h (assign(const basic_string&,
4921 size_type, size_type)): Define inline here.
4922 (replace(size_type, size_type, const basic_string&,
4923 size_type, size_type)): Ditto.
4924 (_M_replace_dispatch(iterator, iterator, _InputIterator,
4925 _InputIterator, __false_type)): Only declare.
4926 (_M_replace(iterator, iterator, _InputIterator,
4927 _InputIterator)): Remove.
4928 * include/bits/basic_string.tcc (assign(const basic_string&,
4929 size_type, size_type)): Move inline.
4930 (replace(size_type, size_type, const basic_string&,
4931 size_type, size_type)): Ditto.
4932 (_M_replace_dispatch(iterator, iterator, _InputIterator,
4933 _InputIterator, __false_type)): Define, now does also what
4934 _M_replace did before.
4935 * src/string-inst.cc (_M_replace): Don't instantiate.
4937 * include/bits/basic_string.tcc (find(const _CharT*,
4938 size_type, size_type)): Tidy.
4939 (rfind(_CharT, size_type)): Ditto.
4940 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
4941 (find_first_not_of(_CharT, size_type)): Ditto.
4942 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4943 (find_last_not_of(_CharT, size_type)): Ditto.
4945 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4948 * include/debug/bitset (operator|=): Fix typo.
4949 * testsuite/23_containers/bitset/operations/13838.cc: New.
4951 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4953 * include/bits/basic_string.tcc (insert(size_type,
4954 const _CharT*, size_type __n)): Fix length_error check.
4955 (replace(size_type, size_type, const _CharT*, size_type):
4956 Ditto; call _M_replace_safe.
4957 (_M_replace_aux(size_type, size_type, size_type, _CharT):
4958 Fix length_error check.
4959 (_M_replace(iterator, iterator, _InputIterator,
4960 _InputIterator)): Ditto, tweak.
4961 (_M_replace_safe(size_type, size_type, const _CharT*,
4962 size_type)): Remove length_error check.
4964 * include/bits/basic_string.tcc (append(const basic_string&),
4965 append(const basic_string&, size_type, size_type)): Tweak
4968 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
4969 size_type)): If __n == 0 don't call traits::copy.
4971 2004-01-23 Stefan Olsson <stefan@snon.net>
4973 * include/ext/mt_allocator.h: Reduce lock contention.
4975 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4978 * include/bits/fstream.tcc (underflow): Remove unused
4980 * include/bits/streambuf_iterator.h (equal): Ditto.
4981 * include/bits/locale_facets.h (_M_convert_from_char):
4984 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4987 * config/linker-map.gnu (nan): Delete.
4988 * libmath/mathconf.h (NAN, nan): Delete.
4989 * linkage.m4 (nan): Don't check for it.
4990 * libmath/nan.c: Delete file.
4992 * config.h.in, configure: Regenerate.
4994 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4996 * include/bits/basic_string.h (push_back(_CharT)):
4997 Call _M_replace_aux.
4998 (insert(size_type, const basic_string&)): Trivial tweak.
4999 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
5000 (insert(iterator, _CharT)): Ditto.
5001 (erase(size_type, size_type)): Ditto.
5002 (erase(iterator)): Ditto.
5003 (erase(iterator, iterator)): Ditto.
5004 (replace(size_type, size_type, size_type, _CharT)): Ditto.
5006 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
5009 * testsuite/performance/allocator_map_thread.cc: New test.
5011 2004-01-22 Paolo Carlini <pcarlini@suse.de>
5013 * include/bits/locale_facets.tcc
5014 (money_put::do_put(..., long double)): Use the basic_string
5015 constructor for char arrays, not that for C-strings, to pass
5016 __digits to do_put(..., const string_type&): __ws isn't
5019 2004-01-22 Paolo Carlini <pcarlini@suse.de>
5021 * include/bits/basic_string.h (_M_replace_safe): Change
5022 signatures to take size_types and const _CharT*.
5023 (_M_replace_aux): Likewise, takes size_types instead of
5025 (append(size_type, _CharT)): Update call.
5026 (assign(size_type, _CharT)): Ditto.
5027 (replace(iterator, iterator, size_type, _CharT)): Ditto.
5028 (_M_replace_dispatch(iterator, iterator, _Integer,
5029 _Integer, __true_type)): Ditto.
5030 * include/bits/basic_string.tcc (assign(const _CharT*,
5032 (insert(size_type, const _CharT*, size_type)): Ditto.
5033 (replace(size_type, size_type, const _CharT*,
5035 (_M_replace(iterator, iterator, _InputIterator,
5036 _InputIterator)): Ditto.
5037 (append(const basic_string&)): Ditto.
5038 (append(const basic_string&, size_type, size_type): Ditto.
5039 (append(const _CharT*, size_type): Ditto.
5040 (_M_replace_safe, _M_replace_safe): Change definitions
5041 accordingly, simplify.
5042 * string-inst.cc (_M_replace_safe): Don't instantiate.
5044 2004-01-21 Paolo Carlini <pcarlini@suse.de>
5046 * include/bits/basic_string.tcc (append(const basic_string&)):
5047 Revert previous change.
5048 (append(const basic_string&, size_type, size_type)): Revert
5049 previous change, use _M_check and _M_limit.
5051 2004-01-21 Paolo Carlini <pcarlini@suse.de>
5053 * include/bits/basic_string.h (_M_check): Change to return
5054 a checked __pos and take an additional const char* argument.
5055 (_M_fold): Rename to _M_limit, change to return a size_type,
5056 corresponding to the __off limited to the actual length.
5057 (insert(size_type, size_type, _CharT)): Update call, call
5059 (insert(iterator, _CharT)): Call replace(iterator, iterator,
5060 size_type, _CharT) instead.
5061 (erase(size_type, size_type)): Update calls.
5062 (replace(size_type, size_type, size_type, _CharT)): Ditto.
5063 (substr(size_type, size_type)): Use _M_check.
5064 * include/bits/basic_string.tcc (basic_string(const basic_string&,
5065 size_type, size_type)): Update calls.
5066 (basic_string(const basic_string&, size_type, size_type,
5067 const _Alloc&)): Ditto.
5068 (assign(const basic_string&, size_type, size_type)): Use the
5069 new _M_check and _M_limit.
5070 (insert(size_type, const basic_string&, size_type, size_type):
5072 (insert(size_type, const _CharT*, size_type)): Ditto.
5073 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
5074 (replace(size_type, size_type, const basic_string&,
5075 size_type, size_type)): Ditto.
5076 (append(const basic_string&)): Ditto.
5077 (append(const basic_string&, size_type, size_type)): Ditto.
5078 (copy(_CharT*, size_type, size_type)): Ditto.
5079 (compare(size_type, size_type, const basic_string&)): Ditto.
5080 (compare(size_type, size_type, const basic_string&,size_type,
5082 (compare(size_type, size_type, const _CharT*)): Ditto.
5083 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5085 2004-01-19 Stefan Olsson <stefan@snon.net>
5087 * include/ext/mt_allocator.h: If a thread, when it dies, still has
5088 memory on it's freelist this memory is not returned to global
5089 list. Simplification of deallocate so that memory is always
5090 returned to the calling thread id's freelist instead of to
5091 global. Fix typos. Add volatile where appropriate.
5093 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
5095 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
5096 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
5097 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
5099 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5101 * src/debug.cc: Make sure all the names are prefixed with
5102 double (or single) underscore.
5104 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5106 * src/debug.cc: Trivial formatting change.
5108 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5110 * include/bits/basic_string.tcc (_S_construct(size_type,
5111 _CharT, const _Alloc&)): Remove redundant try/catch.
5112 (_M_mutate(size_type, size_type, size_type)): Ditto.
5113 (_M_clone(const _Alloc&, size_type)): Ditto.
5115 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5117 * include/bits/basic_string.h (c_str()): Simplify, due to
5118 21.3.4 the internal representation is always kept null-terminated.
5119 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
5120 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
5121 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
5124 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5126 * include/bits/basic_string.h (append(size_type, _CharT)):
5127 Moved inline, just call _M_replace_aux, no source iterators at
5128 risk of being clobbered.
5129 (assign(size_type, _CharT)): Call directly _M_replace_aux.
5130 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5131 input_iterator_tag)): Remove fifth unused argument.
5132 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5133 _InputIterator, __false_type)): Update call.
5134 * include/bits/basic_string.tcc (replace(size_type, size_type,
5135 const _CharT*, size_type)): Update call.
5136 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
5137 throw string literal.
5138 (_M_replace_safe(iterator, iterator, _ForwardIterator,
5139 _ForwardIterator)): Likewise.
5140 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5141 input_iterator_tag)): Remove fifth unused argument.
5142 (append(size_type __n, _CharT __c)): Move inline.
5143 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
5144 const C*, const C*, input_iterator_tag)): Remove fifth unused
5147 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
5149 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
5150 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
5152 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
5154 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
5157 2004-01-15 Stefan Olsson <stefan@snon.net>
5159 * include/ext/mt_allocator.h: Reuse thread id's as soon as
5160 possible by changing the behaviour of thread_freelist to do
5161 push_front when threads die instead of push_back.
5163 2004-01-14 Paolo Carlini <pcarlini@suse.de>
5165 * include/bits/locale_facets.h (struct __numpunct_cache):
5166 Add member _M_grouping_size, caching the length of _M_grouping.
5167 (__numpunct_cache<>::_M_cache): Assign the latter.
5168 (__verify_grouping): Move declaration...
5169 * include/bits/locale_facets.tcc (__verify_grouping):
5170 ... here, change signature to take a const char* and a size_t
5171 for the grouping; not a template anymore.
5172 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
5173 Likewise change signature and tweak consistently.
5174 (num_get::_M_extract_float, num_get::_M_extract_int,
5175 num_put::_M_insert_int, num_put::_M_insert_float,
5176 money_get::do_get(string_type&), money_get::do_put(string_type)):
5178 * config/locale/generic/numeric_members.cc
5179 (numpunct<>::_M_initialize_numpunct): Assign the new member.
5180 * config/locale/gnu/numeric_members.cc
5181 (numpunct<>::_M_initialize_numpunct): Likewise.
5182 * src/locale-inst.cc (__add_grouping): Tweak signature.
5183 (__verify_grouping): Don't instantiate, not a template anymore.
5185 * include/bits/locale_facets.h: Rename _M_truename_len ->
5186 _M_truename_size, _M_falsename_len -> _M_falsename_size.
5187 * include/bits/locale_facets.tcc: Likewise.
5188 * config/locale/generic/numeric_members.cc: Likewise.
5189 * config/locale/gnu/numeric_members.cc: Likewise.
5191 2004-01-14 Stefan Olsson <stefan@snon.net>
5193 * include/ext/mt_allocator.h: Fixups.
5194 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
5195 * testsuite/performance/allocator_thread.cc: Same.
5197 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
5199 * testsuite/performance/ifstream_extract_float.cc: Add higher
5201 * testsuite/performance/ofstream_insert_float.cc: Same.
5203 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5205 * src/locale-misc-inst.cc (__convert_from_v(long),
5206 __convert_from_v(unsigned long), __convert_from_v(long long),
5207 __convert_from_v(unsigned long long)): Remove, unused.
5209 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
5211 * testsuite/performance/ifstream_extract_float.cc: New.
5212 * testsuite/performance/ofstream_insert_float.cc: Float generation
5215 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
5216 * 20_util/auto_ptr/1.cc: ...this.
5217 * 20_util/auto_ptr/2.cc: Same.
5218 * 20_util/auto_ptr/3.cc: Same.
5219 * 20_util/auto_ptr/3946.cc: Same.
5220 * 20_util/auto_ptr/4.cc: Same.
5221 * 20_util/auto_ptr/5.cc: Same.
5222 * 20_util/auto_ptr/6.cc: Same.
5223 * 20_util/auto_ptr/7.cc: Same.
5224 * 20_util/auto_ptr/assign_neg.cc
5225 * 20_util/pairs.cc: Break into...
5226 * 20_util/pair/1.cc: ...this.
5227 * 20_util/pair/2.cc: Same.
5228 * 20_util/pair/3.cc: Same.
5229 * 20_util/pair/4.cc: Same.
5231 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5233 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
5234 Set correctly just basefield, the only group that matters.
5236 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5238 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
5239 (_Rope_rep_base): Inherit directly from the rope allocator;
5240 use rebinding instead of _Alloc_traits; pick up data member
5241 from _Rope_rep_alloc_base.
5242 (_Rope_alloc_base): Eliminate.
5243 (_Rope_base): Inherit directly from the rope allocator; use
5244 rebinding instead of _Alloc_traits; pick up data member from
5246 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
5247 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
5249 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5252 * include/bits/basic_string.tcc (compare(size_type, size_type,
5253 const _CharT*, size_type)): Implement correctly the resolution
5254 of DR 5: basically, s is a char array, -not- a C string.
5255 * include/bits/basic_string.h: Tweak some comments.
5256 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
5257 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
5259 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
5261 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
5264 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5266 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
5268 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
5271 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5273 * include/bits/locale_facets.h (struct __numpunct_cache):
5274 Add members _M_truename_len and _M_falsename_len, caching
5275 the lengths of _M_truename and _M_falsename.
5276 (__numpunct_cache<>::_M_cache): Assign the latter.
5277 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
5278 num_put::do_put(bool)): Use the new members, thus avoiding
5279 computing string lengths again and again.
5280 * config/locale/generic/numeric_members.cc
5281 (numpunct<>::_M_initialize_numpunct): Assign the new members.
5282 * config/locale/gnu/numeric_members.cc
5283 (numpunct<>::_M_initialize_numpunct): Likewise.
5285 2004-01-12 Mark Mitchell <mark@codesourcery.com>
5287 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
5288 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
5290 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
5291 and remove Cygwin XFAIL.
5292 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
5293 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
5294 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
5295 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
5297 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
5298 * testsuite/27_io/objects/char/7.cc: Likewise.
5299 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
5300 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
5301 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
5303 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
5305 * include/std/std_complex.h (std::complex<>::real): Return a
5306 reference. Add non-const overload.
5307 (std::complex<>::real): Likewise.
5308 (std::real): Likewise.
5309 (std::imag): Likewise.
5310 (std::operator+): Tidy.
5311 (std::operator-): Likewise.
5312 (std::operator*): Likewise.
5313 (std::operator/): Likewise.
5314 (std::operator>>): Likewise.
5316 2004-01-11 Paolo Carlini <pcarlini@suse.de>
5319 * include/bits/fstream.tcc (imbue): Exploit the external
5320 buffer to imbue 'on the fly' a new locale and convert its
5321 remainder with the new codecvt facet.
5322 (underflow): Tweak slightly to deal with this special case.
5323 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
5324 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
5325 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
5326 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
5327 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
5329 2004-01-10 Paolo Carlini <pcarlini@suse.de>
5331 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
5334 2004-01-10 Paolo Carlini <pcarlini@suse.de>
5337 * include/bits/locale_classes.h (class locale): Fix category
5339 * testsuite/22_locale/locale/13630.cc: Add.
5341 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
5343 * include/bits/locale_facets.h: Make a name really dependent. This
5344 will be needed when Core Issue 224 is implemented.
5346 2004-01-09 Paolo Carlini <pcarlini@suse.de>
5348 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
5349 * testsuite/performance/allocator_thread.cc: Likewise.
5351 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
5353 * crossconfig.m4: Add LFS, io bits to linux cross config.
5354 * acconfig.h: Remove obsolete bits, reorder.
5355 * config.h.in: Regenerate.
5359 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
5361 * include/bits/stl_list.h:
5362 * include/bits/list.tc:
5364 Performance enhancements for destructor, push_front(),
5365 push_back(), pop_front(), pop_back(), sort()
5366 Eliminated static_casts where possible.
5367 Moved code out of header files into new src/list.cc
5368 implementation file for library where possible.
5369 Remove inheritance from iterator class and create separate
5370 classes for non-constant and constant iterators.
5371 * include/bits/stl_tree.h (_Rb_tree class):
5373 Only erase contents in destructor.
5374 Eliminate unnecessary initialization in assignment operator.
5375 Optimize for the nominal case by not checking whether
5376 container is empty in clear().
5377 Re-order test in _M_insert() to improve performance.
5378 Move initialization of new node's left & right pointers to
5379 src/tree.cc to where new node's colour is initialized
5380 and to reduce the amount of inline code.
5381 Use _M_leftmost() and _M_end() to improve readability where
5383 Create separate classes for non-constant and constant
5384 iterators to clarify code, avoid extra template parameters and
5385 casting away constness.
5387 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
5389 * src/Makefile.am (sources): Add list.cc, tree.cc.
5390 * src/stl_tree.cc: Move to...
5391 * src/tree.cc: ...here.
5393 * config/linker-map.gnu: Tweaks.
5394 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
5395 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
5397 * bits/stl_vector.h: Column wrap comments.
5399 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
5401 (re-open) PR libstdc++/12658
5402 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
5403 (locale::global): Likewise.
5405 2004-01-07 Paolo Carlini <pcarlini@suse.de>
5407 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
5408 Remove redundant #include.
5409 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
5410 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
5411 re-enable normal testing.
5412 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
5414 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
5415 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
5417 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
5419 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
5421 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
5423 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
5425 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
5427 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
5429 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
5430 More properly, #include <locale>.
5431 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
5432 Remove redundant #include.
5433 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
5434 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
5435 redundant DejaGnu directive.
5436 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
5439 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
5440 Stefan Olsson <stefan@snon.net>
5442 * scripts/check_performance: Use -pthread.
5443 * testsuite/performance/allocator.cc: Tweaks, add list.
5444 * testsuite/performance/allocator_thread.cc: New.
5446 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
5448 * include/bits/locale_facets.h: Document public classes and
5450 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
5453 2004-01-06 Paolo Carlini <pcarlini@suse.de>
5455 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
5456 Remove redundant #includes.
5457 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
5459 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
5461 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
5462 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
5463 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
5464 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
5465 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
5466 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
5467 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
5468 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
5469 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
5470 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
5471 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
5472 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
5473 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
5474 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
5475 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
5477 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
5479 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
5481 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
5483 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
5485 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
5486 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
5487 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
5489 2004-01-04 Paolo Carlini <pcarlini@suse.de>
5491 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
5492 Remove redundant #includes.
5493 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
5495 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
5497 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
5499 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
5501 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
5503 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
5505 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
5507 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
5509 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
5511 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
5513 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
5515 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
5518 2004-01-04 Mark Mitchell <mark@codesourcery.com>
5521 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
5523 * testsuite/27_io/basic_fstream/4.cc: Likewise.
5524 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
5525 * testsuite/27_io/basic_ios/4.cc: Likewise.
5526 * testsuite/27_io/basic_iostream/4.cc: Likewise.
5527 * testsuite/27_io/basic_istream/4.cc: Likewise.
5528 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
5529 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
5530 * testsuite/27_io/basic_ostream/4.cc: Likewise.
5531 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
5532 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
5533 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
5535 2004-01-04 Paolo Carlini <pcarlini@suse.de>
5537 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
5538 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
5539 always use double underscored names.
5540 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
5542 * include/bits/locale_facets.h (struct __numpunct_cache):
5543 Dimension _M_atoms_out and _M_atoms_in one position smaller.
5544 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out