1 2004-10-25 Benjamin Kosnik <bkoz@redhat.com>
3 * testsuite/Makefile.am (GLIBCXX_INCLUDES): Add.
4 (AUTOMAKE_OPTIONS): Add nostdinc.
5 * testsuite/Makefile.in: Regenerate.
6 * scripts/testsuite_flags.in (build-includes): Remove redundant
10 2004-10-25 Benjamin Kosnik <bkoz@redhat.com>
12 * include/Makefile.am (tr1_headers): Add tuple.
13 * include/Makefile.in: Regenerate.
15 2004-10-25 Chris Jefferson <chris@bubblescope.net>
17 * include/tr1/tuple: Implementation of tuple from library TR.
18 * testsuite/tr1/6_containers/tuple/tuple_element.cc: New.
19 * testsuite/tr1/6_containers/tuple/tuple_size.cc: New.
20 * testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc:
22 * testsuite/tr1/6_containers/tuple/cons/assignment.cc: New.
23 * testsuite/tr1/6_containers/tuple/cons/big_tuples.cc: New.
24 * testsuite/tr1/6_containers/tuple/cons/constructor.cc: New.
25 * testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc:
27 * testsuite/tr1/6_containers/tuple/creation_functions/tie.cc: New.
28 * testsuite/tr1/6_containers/tuple/element_access/get.cc: New.
30 2004-10-25 Paolo Carlini <pcarlini@suse.de>
32 * include/bits/basic_string.h (_Rep::_M_is_safe): Move to
33 basic_string as _M_disjunct, adjust to take only __s.
34 * include/bits/basic_string.tcc: Adjust consistently callers.
36 2004-10-25 Paolo Carlini <pcarlini@suse.de>
38 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
39 Adjust bit missing from the previous commit.
41 2004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
44 * testsuite/lib/libstdc++.exp: Accept more than one multilib libgcc.
46 2004-10-25 Paolo Carlini <pcarlini@suse.de>
48 * include/bits/basic_string.h (_Rep::_M_is_safe, _M_check_length,
49 _M_move, _M_copy, _M_assign): New, use througout.
50 (operator+=(_CharT)): Define in terms of push_back.
51 (append(const basic_string&)): Define here, inline, and simplify,
52 don't use the full _M_replace_safe.
53 (append(size_type, _CharT)): Likewise, don't use _M_replace_aux.
54 (push_back): Likewise.
55 (assign(const basic_string&)): Define here, inline.
56 * include/bits/basic_string.tcc (append(const _CharT* s, size_type):
57 Fix: when s points inside the _Rep, upon reallocation (reserve) we
58 were copying from deallocated memory.
59 (append(const basic_string&, size_type, size_type)): Simplify,
60 don't use _M_replace_safe.
61 (replace(size_type, size_type, const _CharT*, size_type)): Slightly
64 * testsuite/21_strings/basic_string/append/char/2.cc: New.
65 * testsuite/21_strings/basic_string/append/char/3.cc: Likewise.
66 * testsuite/21_strings/basic_string/append/wchar_t/2.cc: Likewise.
67 * testsuite/21_strings/basic_string/append/wchar_t/3.cc: Likewise.
69 * testsuite/21_strings/basic_string/assign/char/3.cc: Remove junk.
70 * testsuite/21_strings/basic_string/assign/wchar_t/3.cc: Likewise.
72 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
74 * testsuite/ext/mt_allocator/deallocate_global-2.c:
75 s/value_t/value_type/. s/traits_t/traits_type/.
76 s/policy_t/policy_type/. s/allocator_t/allocator_type/.
77 s/string_t/string_type/. s/list_t/list_type/.
78 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Likewise.
79 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Likewise.
80 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Likewise.
81 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Likewise.
82 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Likewise.
83 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Likewise.
84 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Likewise.
86 2004-10-21 Benjamin Kosnik <bkoz@redhat.com>
88 * include/tr1/array (array): Make safe for zero-sized arrays.
89 (array::end): Return one past the end.
90 (array::at): Use __throw_out_of_range, include functexcept.h.
91 (operator==): Implement.
97 * testsuite/tr1/6_containers/array/capacity/(empty.cc,
98 max_size.cc, size.cc): New.
99 * testsuite/tr1/6_containers/array/comparison_operators/(equal.cc,
100 greater.cc, greater_or_equal.cc, less.cc, less_or_equal.cc,
102 * testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc:
104 * testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc:
106 * testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc: New.
107 * testsuite/tr1/6_containers/array/requirements/(contiguous.cc,
108 instantiate, typedefs, zero_size_arrays): New.
110 2004-10-21 Paolo Carlini <pcarlini@suse.de>
111 Benjamin Kosnik <bkoz@redhat.com>
113 * include/bits/basic_string.h (_M_set_length_and_sharable): New.
114 * include/bits/basic_string.tcc (_S_construct, assign(const _CharT*,
115 size_type), _M_mutate, _M_clone): Use it.
116 (_Rep::_S_create): Don't set/call _M_length/_M_set_sharable here.
118 2004-10-21 Paolo Carlini <pcarlini@suse.de>
119 Dhruv Matani <dhruvbird@gmx.net>
120 Nathan Myers <ncm@cantrip.org>
122 * include/bits/vector.tcc (_M_insert_aux, _M_fill_insert,
123 _M_range_insert): Check at the outset that we are not trying
124 to exceed max_size, then deal properly with __len overflows.
125 * testsuite/23_containers/vector/modifiers/insert/1.cc: New.
127 * testsuite/testsuite_allocator.h: Remove redundant include.
129 2004-10-20 Paolo Carlini <pcarlini@suse.de>
131 * include/ext/bitmap_allocator.h (allocate): Throw std::bad_alloc
133 * include/ext/malloc_allocator.h (allocate): Likewise.
134 * include/ext/mt_allocator.h (allocate): Likewise.
135 * include/ext/new_allocator.h (allocate): Likewise.
136 * include/ext/array_allocator.h: Use __throw_bad_alloc().
137 * include/ext/pool_allocator.h: Use __builtin_expect.
138 * testsuite/ext/array_allocator/check_allocate_max_size.cc: New.
139 * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc: Likewise.
140 * testsuite/ext/malloc_allocator/check_allocate_max_size.cc: Likewise.
141 * testsuite/ext/mt_allocator/check_allocate_max_size.cc: Likewise.
142 * testsuite/ext/new_allocator/check_allocate_max_size.cc: Likewise.
143 * testsuite/ext/pool_allocator/check_allocate_max_size.cc: Likewise.
144 * testsuite/testsuite_allocator.h (check_allocate_max_size): New test.
146 2004-10-19 Paolo Carlini <pcarlini@suse.de>
148 * testsuite/performance/20_util/allocator/list_sort_search.cc:
149 Include <ext/new_allocator.h>.
150 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
152 2004-10-18 Paolo Carlini <pcarlini@suse.de>
154 * include/bits/basic_string.tcc (_M_mutate): Do not reallocate
155 unnecessarily when _M_rep() == &_S_empty_rep() and __new_size
156 == capacity() (== 0): is ok to just leave everything unchanged.
158 * include/bits/basic_string.h: Minor formatting fixes.
159 * include/bits/basic_string.tcc: Likewise.
161 2004-10-17 Benjamin Kosnik <bkoz@redhat.com>
163 * include/ext/mt_allocator.h (__pool::_M_get_align): New.
164 (__mt_alloc::allocate): Use it.
165 * src/mt_allocator.cc (__pool::_M_reclaim_block): Use it.
166 (__pool::_M_reserve_block): Simplify block allocation.
168 2004-10-17 Dhruv Matani <dhruvbird@gmx.net>
169 Paolo Carlini <pcarlini@suse.de>
171 * include/ext/bitmap_allocator.h: Change unsigned int -> size_t: this
172 makes the code 64-bit correct and also fixes (together with using at
173 the beginning a bitmap 2 * size_t bytes wide) alignment issues: now
174 8 is guaranteed, easily tunable to 16 via _BALLOC_ALIGN_BYTES.
175 Fix pthread-rope7.cc fail by nulling out __mini_vector<> destructor.
176 * src/bitmap_allocator.cc: Change to size_t.
177 * config/linker-map.gnu: Adjust.
179 2004-10-16 Benjamin Kosnik <bkoz@redhat.com>
181 * include/tr1/array: Don't use layout_type.
183 2004-10-16 Sashan Govender <sashang@gmail.com>
185 * include/tr1/array (array::end const): Fix casting from iterator
188 2004-10-15 Paolo Carlini <pcarlini@suse.de>
190 * include/ext/bitmap_allocator.h: Qualify ::operator delete.
191 * src/bitmap_allocator.cc: Likewise.
192 * src/mt_allocator.cc: Use ::operator delete, not delete,
193 consistently with ::operator new.
195 * include/ext/bitmap_allocator.h (deallocate): Check for null
197 * testsuite/ext/bitmap_allocator/check_deallocate_null.cc: New.
198 * testsuite/testsuite_allocator.h (check_deallocate_null): Add test.
200 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
202 * include/ext/mt_allocator.h (__mt_alloc::deallocate): Check for
204 * include/ext/pool_allocator.h (debug_allocator::deallocate):
206 * include/ext/debug_allocator.h (debug_allocator::deallocate):
207 Throw exceptions, don't abort.
208 * include/ext/array_allocator.h
209 (array_allocator_base::deallocate): Remove unused parameters.
210 * testsuite/testsuite_allocator.h (check_deallocate_null): New.
211 * testsuite/ext/mt_allocator/check_deallocate_null.cc: New.
212 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: New.
213 * testsuite/ext/array_allocator/check_deallocate_null.cc: New.
214 * testsuite/ext/debug_allocator/check_deallocate_null.cc: New.
215 * testsuite/ext/malloc_allocator/check_deallocate_null.cc: New.
216 * testsuite/ext/new_allocator/check_deallocate_null.cc: New.
217 * testsuite/ext/pool_allocator/check_deallocate_null.cc: New.
219 * testsuite/testsuite_allocator.h (check_new): Add instance argument.
220 * testsuite/ext/array_allocator/check_new.cc: New.
222 2004-10-14 Paolo Carlini <pcarlini@suse.de>
224 * include/ext/bitmap_allocator.h (bitmap_allocator::_Alloc_block):
225 Rename __unused to __M_unused.
227 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
229 * testsuite/ext/headers.cc: Add includes, compile only.
230 * testsuite/ext/hash_map.cc: Move to...
231 * testsuite/ext/hash_map/1.cc: ...here.
232 * testsuite/ext/14648.cc: Move to...
233 * testsuite/ext/hash_map/14648.cc: ...here.
234 * testsuite/ext/hash_map/instantiate.cc: Add.
235 * testsuite/ext/hash_set.cc: Move to...
236 * testsuite/ext/hash_set/1.cc: ...here.
237 * testsuite/ext/hash_set_explicit_instantiation.cc: Move to...
238 * testsuite/ext/hash_set/instantiate.cc: ...here.
239 * testsuite/ext/hash_check_construct_destroy.cc: Move to...
240 * testsuite/ext/hash_set/check_construct_destroy.cc: ...here.
241 * testsuite/ext/slist_check_construct_destroy.cc: Move to...
242 * testsuite/ext/slist/check_construct_destroy.cc: ...here.
243 * testsuite/ext/slist_explicit_instantiation.cc: Move to...
244 * testsuite/ext/slist/instantiate.cc: ...here.
246 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
248 * include/ext/mt_allocator.h: Tweaks.
249 * src/mt_allocator.cc: Same.
251 2004-10-14 Dhruv Matani <dhruvbird@gmx.net>
253 * ext/bitmap_allocator.h: Clean-up add/remove functions.
254 * src/bitmap_allocator.cc: New file. Contains the out-of-line
255 function definitions, static initialization of variables, and
256 explicit instantiations needed for the allocator.
257 * src/Makefile.am: Add.
258 * src/Makefile.in: Regenerate.
259 * config/linker.map.gnu: Add the necessary symbols.
261 2004-10-13 Paolo Carlini <pcarlini@suse.de>
263 * include/bits/basic_string.tcc (_S_create): Use consistently
264 the exponential policy, simplify.
265 * testsuite/performance/21_strings/string_append_2.cc: New.
267 * include/ext/array_allocator.h (allocate): Fix bad_alloc check.
268 * testsuite/ext/array_allocator/2.cc: Fix wrt 64-bit archs (in
269 that case sizeof(_Rep) == 24).
271 2004-10-12 Paolo Carlini <pcarlini@suse.de>
274 * include/bits/stl_tree.h (erase(iterator, iterator)): Revert
275 wrong commit of 2004-10-07.
277 2004-10-12 Scott Snyder <snyder@fnal.gov>
280 * testsuite/23_containers/set/modifiers/17948.cc: New.
282 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
284 * include/bits/stl_deque.h: Correct for over-long lines.
286 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
289 * include/ext/mt_allocator.h (__pool::_M_destroy): New.
290 * src/mt_allocator.cc (__pool::~__pool): Change definitions to
292 * acconfig.h: Remove _GLIBCXX_USE___CXA_ATEXIT.
293 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): Remove.
294 * configure.ac: Remove call to GLIBCXX_ENABLE_CXA_EXIT.
295 * configure: Regenerate.
296 * config/linker-map.gnu: Tweak exports.
297 * docs/html/ext/mt_allocator.html: Update docs.
298 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Fix.
299 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Fix.
300 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Fix.
301 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Fix.
302 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Fix.
303 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Fix.
304 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Fix.
305 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Fix.
307 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
309 PR libstdc++/16614 continued.
310 * include/ext/mt_allocator.h
311 (__per_type_pool_policy::_S_get_pool): Use saner defaults based on
312 specific type characteristics.
313 (__pool_base): Add constructor that takes a _Tune argument.
315 * testsuite/ext/mt_allocator/tune-2.cc: Adjust default.
316 * testsuite/ext/mt_allocator/tune-4.cc: Same.
317 * testsuite/ext/mt_allocator/tune-3.cc: Same.
319 2004-10-11 Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
320 Paolo Carlini <pcarlini@suse.de>
322 * src/pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk):
323 Deal properly with exceptions thrown by ::operator new(size_t).
324 * testsuite/ext/pool_allocator/allocate_chunk.cc: New.
326 * include/ext/pool_allocator.h: Include <cstdlib>.
328 2004-10-10 Benjamin Kosnik <bkoz@redhat.com>
330 * include/bits/functexcept.h: Add guards.
332 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Tweak test.
333 * configure: Regenerate.
335 2004-10-10 Paolo Carlini <pcarlini@suse.de>
337 * config/locale/gnu/monetary_members.cc (_S_construct_pattern):
338 Give __ret a default value, thus avoiding spurious warnings.
340 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Open either
341 words or linux.words, otherwise exit.
342 * testsuite/performance/27_io/ifstream_getline.cc: Slighlty tweak.
344 2004-10-09 Paolo Carlini <pcarlini@suse.de>
346 * include/std/std_memory.h (__get_temporary_buffer): Don't use
347 INT_MAX, prefer numeric_limits<ptrdiff_t>::max(), ok on 64-bit
349 * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust dg-error
352 2004-10-08 Benjamin Kosnik <bkoz@redhat.com>
354 * acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
355 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): New.
356 * configure.ac: Call GLIBCXX_ENABLE_CXA_EXIT.
357 * configure: Regenerate.
358 * src/mt_allocator.cc (__pool::~__pool): Make conditional on
359 _GLIBCXX_USE___CXA_ATEXIT macro.
360 * docs/html/ext/mt_allocator.html: Add note about deallocation.
361 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Guard checks
362 with _GLIBCXX_USE___CXA_ATEXIT.
363 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
364 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
365 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
366 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
367 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
368 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
369 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
371 2004-10-07 Phil Edwards <phil@codesourcery.com>
373 * testsuite/lib/libstdc++.exp: Update list of undefined functions.
375 2004-10-07 Paolo Carlini <pcarlini@suse.de>
377 * include/bits/list.tcc (operator=): Avoid iterator postincrement.
378 * include/bits/stl_tree.h (erase(iterator, iterator)): Likewise.
380 2004-10-07 Benjamin Kosnik <bkoz@redhat.com>
383 * include/tr1/array: New.
384 * include/Makefile.am (tr1_headers): New.
386 (install-headers): New.
387 (allstamped): Add stamp-tr1.
389 * include/ext/array_allocator.h: New.
390 * include/Makefile.am: Add.
391 * include/Makefile.in: Regenerate.
392 * testsuite/ext/array_allocator/1.cc: New.
393 * testsuite/ext/array_allocator/2.cc: New.
395 2004-10-07 Richard Earnshaw <rearnsha@arm.com>
397 * testsuite/lib/libstdc++.exp (libstdc++_exit): New proc.
399 2004-10-07 Roger Sayle <roger@eyesopen.com>
402 * configure.ac: Newlib does not provide strtold.
403 * configure: Regenerate.
405 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
407 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
408 (GLIBCXX_CONFIGURE_TESTSUITE): Use it.
409 * configure: Regenerated.
410 * testsuite/Makefile.am (CLEANFILES): Add TEST for
411 check-performance executables.
414 * testsuite/Makefile.in: Regenerate.
415 * scripts/create_testsuite_files: Filter thread tests.
417 * testsuite/thread/pthread1.cc: Remove macro conditionals: this
418 file will only be run by thread enabled configurations.
419 * testsuite/thread/pthread7-rope.cc: Same, add rope_type typedef.
420 * testsuite/thread/pthread6.cc: Same.
421 * testsuite/thread/pthread5.cc: Same.
422 * testsuite/thread/pthread4.cc: Same.
423 * testsuite/thread/pthread3.cc: Same.
424 * testsuite/thread/pthread2.cc: Same.
426 * testsuite/ext/mt_allocator/instantiate.cc: Add in __GTHREADS guard.
427 * testsuite/ext/mt_allocator/deallocate_global-1.cc: Move to...
428 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: ...here.
429 * testsuite/ext/mt_allocator/deallocate_global-3.cc: Move to...
430 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: ...here.
431 * testsuite/ext/mt_allocator/deallocate_local-1.cc: Move to...
432 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: ...here.
433 * testsuite/ext/mt_allocator/deallocate_local-3.cc: Move to...
434 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: ...here.
436 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
437 Paolo Carlini <pcarlini@suse.de>
440 * src/mt_allocator.cc (__pool<true>::_M_reserve_block): Revert
441 to old locking order.
443 2004-10-06 Paolo Carlini <pcarlini@suse.de>
445 * include/std/std_sstream.h (_M_sync): When the caller is
446 setbuf, don't trust _M_string.capacity() to be the size of
447 the buffer area, use _M_string.size() in this case.
448 * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
449 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.
451 * include/bits/sstream.tcc (overflow): Avoid calling string::assign
452 unnecessarily when the current _M_string is empty.
454 2004-10-06 Paolo Carlini <pcarlini@suse.de>
456 * include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)):
457 Avoid iterator postincrement.
458 (__rotate): Likewise.
460 * include/bits/stl_algo.h: Minor formatting tweaks.
462 2004-10-06 Christopher Jefferson <caj@cs.york.ac.uk>
464 * include/bits/stl_algo.h (__reverse(random_access_iterator_tag)):
465 Avoid iterator postincrement; fix swapping middle element with
466 itself on odd-length inputs.
468 2004-10-05 Benjamin Kosnik <bkoz@redhat.com>
471 * include/ext/mt_allocator.h (__pool_base::_Tune): Add default
472 options as compile-time constant enums.
473 (__pool_base::_Tune::is_default): New.
474 (__pool_base::_Block_address): New.
475 (__pool_base): Rearrange data members.
476 (__pool::_M_reserve_memory): To _M_reserve_block.
477 (__pool::_M_reclaim_memory): To _M_reclaim_block.
478 (__pool::_Bin_record): Add _Block_address data member.
479 (__pool<false>): Add _M_thread_freelist_initial.
480 (__pool::~__pool): Declare.
481 (__common_pool_policy): Move static data member to...
482 (__common_pool_policy::_S_get_pool): ...here, make static local.
483 (__per_type_pool_policy): Move static data member to...
484 (__per_type_pool_policy::_S_get_pool): ...here, make static local.
485 (__mt_alloc::__mt_alloc): Call __policy_type::_S_get_pool.
486 Remove static member definitions. Use define for __default_policy.
487 * src/mt_allocator.cc: Same.
488 * config/linker-map.gnu: Don't export _S_get_pool. Renames.
489 * testsuite/ext/new_allocator: New.
490 * testsuite/ext/new_allocator/instantiate.cc: New.
491 * testsuite/ext/new_allocator/check_new.cc: New.
492 * testsuite/ext/new_allocator/deallocate_global.cc: New.
493 * testsuite/ext/new_allocator/deallocate_local.cc: New.
494 * testsuite/ext/mt_allocator/instantiate.cc: Instantiate all
496 * testsuite/ext/mt_allocator/deallocate_global-1.cc: New.
497 * testsuite/ext/mt_allocator/deallocate_global-2.cc: New.
498 * testsuite/ext/mt_allocator/deallocate_global-3.cc: New.
499 * testsuite/ext/mt_allocator/deallocate_global-4.cc: New.
500 * testsuite/ext/mt_allocator/deallocate_local-1.cc: New.
501 * testsuite/ext/mt_allocator/deallocate_local-2.cc: New.
502 * testsuite/ext/mt_allocator/deallocate_local-3.cc: New.
503 * testsuite/ext/mt_allocator/deallocate_local-4.cc: New.
504 * testsuite/ext/mt_allocator/deallocate.cc: New.
505 * testsuite/ext/malloc_allocator/deallocate.cc: New.
506 * testsuite/ext/malloc_allocator/deallocate_global.cc: New.
507 * testsuite/ext/malloc_allocator/deallocate_local.cc: New.
509 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
511 * configure.host (abi_baseline_pair): Define for s390-*-linux* and
513 * config/abi/s390-linux-gnu/baseline_symbols.txt: Add missing symbols.
514 * config/abi/s390x-linux-gnu/baseline_symbols.txt: New file.
516 2004-10-05 Christopher Jefferson <caj@cs.york.ac.uk>
518 * include/bits/stl_algobase.h (iter_swap): delegate to swap via
519 __iter_swap when iterator's value_types are equal.
520 (struct __iter_swap): New.
522 2004-10-04 Benjamin Kosnik <bkoz@redhat.com>
524 * configure.ac (libtool_VERSION): To 6:3:0.
525 * configure: Regnerate.
526 * testsuite/testsuite_abi.cc (check_version): Add 3.4.3.
528 2004-10-04 Roger Sayle <roger@eyesopen.com>
529 Eric Botcazou <ebotcazou@libertysurf.fr>
532 * config/linker-map.gnu: Synchronize the current list of stub
533 functions from libmath.
535 2004-10-03 Roger Sayle <roger@eyesopen.com>
537 * config/locale/generic/c_locale.cc (__convert_to_v): Use
538 _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
539 Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
540 to check for presence of strtold.
542 2004-10-03 Paolo Carlini <pcarlini@suse.de>
544 * include/bits/stl_list.h: Trivial formatting fixes.
545 * include/bits/stl_tree.h: Likewise.
547 2004-10-03 Paolo Carlini <pcarlini@suse.de>
549 * include/bits/sstream.tcc (seekpos): In case of success, just
552 2004-10-01 Paolo Carlini <pcarlini@suse.de>
554 * include/bits/sstream.tcc (pbackfail): Implement correctly
555 27.7.1.3/2, bullet 2: if mode & ios_base::out is false do not
557 * testsuite/27_io/basic_stringbuf/pbackfail/char/1.cc: New.
558 * testsuite/27_io/basic_stringbuf/pbackfail/char/2.cc: Likewise.
559 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/1.cc: Likewise.
560 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/2.cc: Likewise.
561 * testsuite/27_io/basic_istream/putback/char/1.cc: Tweak consistently.
563 2004-10-01 Paolo Carlini <pcarlini@suse.de>
565 * include/bits/sstream.tcc (seekpos): Minor rearrangement of two
566 conditionals consistently with seekoff.
567 * include/std/std_sstream.h (setbuf): Avoid a string temporary.
568 (_M_sync): Simplify a bit, clean-up comment.
570 2004-09-30 Paolo Carlini <pcarlini@suse.de>
572 PR libstdc++/10975 (DR 453)
573 * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
575 * docs/html/ext/howto.html: Add an entry for DR 453.
576 * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
577 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
578 * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
579 * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
580 * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
581 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
583 * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
584 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
586 * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
588 2004-09-29 Paolo Carlini <pcarlini@suse.de>
590 * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
591 Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
592 (str()): Slightly tweak, protect from pptr() == 0.
593 (_M_update_egptr()): Likewise.
594 * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
595 for an empty buffer use __beg instead of _M_string.capacity().
596 * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
597 * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
599 * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
600 * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
601 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
602 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
604 2004-09-29 Paolo Carlini <pcarlini@suse.de>
605 Benjamin Kosnik <bkoz@redhat.com>
607 * testsuite/testsuite_io.h (class constraint_buf): New, extended
608 and templatized version of constraint_filebuf; add typedefs for
609 streambuf/stringbuf/filebuf and wchar_t counterparts.
611 2004-09-28 Paolo Carlini <pcarlini@suse.de>
614 * include/bits/basic_string.h (_M_dispose, _M_refcopy,
615 basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
616 don't deal with _S_empty_rep.
617 * include/bits/basic_string.tcc (_S_construct, _M_destroy,
618 _M_leak_hard, _M_mutate): Likewise.
619 * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
620 * acconfig.h: Add corresponding undef.
621 * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
622 * docs/html/configopts.html: Document --enable-fully-dynamic-string.
623 * configure: Regenerate.
624 * config.h.in: Likewise.
626 2004-09-28 Benjamin Kosnik <bkoz@redhat.com>
627 Paolo Carlini <pcarlini@suse.de>
629 * testsuite/21_strings/basic_string/operations/char/1.cc: New.
630 * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
631 * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
632 * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc:
635 2004-09-28 Paolo Carlini <pcarlini@suse.de>
637 * README: Remove obsolete entry about include/c_shadow.
639 2004-09-24 H.J. Lu <hongjiu.lu@intel.com>
642 * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
644 2004-09-24 Paolo Carlini <pcarlini@suse.de>
646 * src/localename.cc (locale::locale(const char*)): Minor tweaks:
647 rename a variable, move an assignment.
648 (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
650 2004-09-24 Paul Brook <paul@codesourcery.com>
652 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
654 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
655 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
656 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
657 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
658 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
659 * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
661 2004-09-23 Zack Weinberg <zack@codesourcery.com>
663 * testsuite/20_util/memory/auto_ptr/assign_neg.cc
664 * testsuite/23_containers/map/operators/1_neg.cc
665 * testsuite/23_containers/set/operators/1_neg.cc:
666 Update locations and/or regexps of dg-error markers.
668 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
670 * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
671 Add rule to build ${host_builddir}/gthr-tpf.h.
672 * include/Makefile.in: Regenerate.
674 2004-09-23 Paolo Carlini <pcarlini@suse.de>
675 Magnus Fromreide <magfr@lysator.liu.se>
677 * include/bits/boost_concept_check.h (struct _SequenceConcept):
678 Remove wrong requirement, i.e., not present in Table 67.
680 2004-09-21 Paolo Carlini <pcarlini@suse.de>
682 PR libstdc++/12882 (cont)
683 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
684 * configure: Regenerate.
685 * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
686 _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
687 trivial showmanyc for large files too.
689 2004-09-17 Jonathan Wakely <redi@gcc.gnu.org>
691 * include/bits/stl_algo.h (remove): Remove too restrictive
694 2004-09-17 Paolo Carlini <pcarlini@suse.de>
696 * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
697 as per Nathan's original suggestion.
699 2004-09-17 Paolo Carlini <pcarlini@suse.de>
701 * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
703 * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
704 * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
705 * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
707 2004-09-17 Paolo Carlini <pcarlini@suse.de>
708 Andrea Arcangeli <andrea@suse.de>
710 * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
711 call unnecessarily sync, that is fflush: the library, since 3.4.0
712 does not use buffered fread/fwrite.
713 * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
715 2004-09-15 Mark Mitchell <mark@codesourcery.com>
717 * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
719 * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
721 * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
722 (__cxa_vec_new): Use it.
723 (__cxa_vec_new2): Likewise.
724 (__cxa_vec_new3): Likewise.
725 (__cxa_vec_cdtor): Likewise.
726 (__cxa_vec_cctor): Likeiwse.
727 (__cxa_vec_dtor): Likewise.
728 (__cxa_vec_cleanup): Likewise.
729 (__cxa_vec_delete2): Likewise.
730 (__cxa_vec_delete3): Likewise.
731 * libsupc++/vec.cc (__cxa_vec_new): Likewise.
732 (__cxa_vec_new2): Likewise.
733 (__cxa_vec_new3): Likewise.
734 (__cxa_vec_cdtor): Likewise.
735 (__cxa_vec_cctor): Likeiwse.
736 (__cxa_vec_dtor): Likewise.
737 (__cxa_vec_cleanup): Likewise.
738 (__cxa_vec_delete2): Likewise.
739 (__cxa_vec_delete3): Likewise.
740 (__aeabi_vec_ctor_nocookie_nodtor): New function.
741 (__aeabi_vec_ctor_cookie_nodtor): Likewise.
742 (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
743 (__aeabi_vec_new_cookie_noctor): Likewise.
744 (__aeabi_vec_new_nocookie): Likewise.
745 (__aeabi_vec_new_cookie_nodtor): Likewise.
746 (__aeabi_vec_new_cookie): Likewise.
747 (__aeabi_vec_dtor): Likewise.
748 (__aeabi_vec_dtor_cookie): Likewise.
749 (__aeabi_vec_delete): Likewise.
750 (__aeabi_vec_delete3): Likewise.
751 (__aeabi_vec_delete3_nodtor): Likewise.
752 (__aeabi_atexit): Likewise.
754 2004-09-14 Nathan Myers <ncm@cantrip.org>
756 * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
757 for 11722: copy can replace move; the common case is __avail == 0.
759 2004-09-14 Paolo Carlini <pcarlini@suse.de>
761 * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
762 to __is_scalar, more clear and consistent with "tr1" naming.
763 * include/bits/stl_algobase.h: Update consistently throughout.
765 2004-09-13 Paolo Carlini <pcarlini@suse.de>
768 * include/std/std_fstream.h (xsgetn): Declare only.
769 * include/bits/fstream.tcc (xsgetn): Define, optimize for the
770 always_noconv() case: when __n > __buflen, copy the available
771 buffer and issue a direct read.
772 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
774 * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
777 2004-09-13 Hans-Peter Nilsson <hp@bitrange.com>
779 * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
780 libstdc++_maybe_build_wrapper instead of using local code.
782 2004-09-08 Benjamin Kosnik <bkoz@redhat.com>
784 * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
786 2004-09-03 Jan Beulich <jbeulich@novell.com>
788 * crossconfig.m4: Add NetWare as a target.
789 * configure: Regenerate.
791 2004-09-02 Mark Mitchell <mark@codesourcery.com>
793 * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
796 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
797 Simon Richter <Simon.Richter@hogyros.de>
800 * include/bits/istream.tcc: Add extern template for iostream
801 char and wchar_t instantiations.
803 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
804 Leland Wang <llwang@infor.org>
807 * include/ext/ropeimpl.h (rope::_S_compare): Use
808 _Rope_constants::_S_leaf.
810 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
813 * include/Makefile.am (ext_headers): Remove demangle.h.
814 * include/Makefile.in: Regenerate.
815 * include/ext/demangle.h: Remove.
817 2004-09-01 Benjamin Kosnik <bkoz@redhat.com>
820 * include/ext/mt_allocator.h (__mt_base): Not type dependent,
822 (__pool): New, specialize.
823 (__common_pool): New, static bits here.
824 (__per_type_pool): New, and here.
825 (__mt_alloc_base): New.
826 (__mt_alloc): Add template parameter, inherit from it.
827 * src/allocator.cc: Split this...
828 * src/allocator-inst.cc: And this...
829 * src/pool_allocator.cc: ...into this.
830 * src/mt_allocator.cc: ... and this. Add definitions for
832 * src/Makefile.am (sources): Split allocator.cc to
833 pool_allocator.cc and mt_allocator.cc.
834 * src/Makefile.in: Regenerate.
835 * config/linker-map.gnu: Add symbols.
836 * docs/html/ext/mt_allocator.html: Document new design.
837 * testsuite/ext/mt_allocator/tune-1.cc: New.
838 * testsuite/ext/mt_allocator/tune-2.cc: New.
839 * testsuite/ext/mt_allocator/tune-3.cc: New.
840 * testsuite/ext/mt_allocator/tune-4.cc: New.
842 * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
843 * testsuite/ext/allocators.cc: Use check_new, split into...
844 * testsuite/ext/mt_allocator/check_new.cc: this.
845 * testsuite/ext/pool_allocator/check_new.cc: this.
846 * testsuite/ext/malloc_allocator/check_new.cc: this.
847 * testsuite/ext/debug_allocator/check_new.cc: this.
848 * testsuite/ext/mt_allocator/instantiate.cc: this.
849 * testsuite/ext/pool_allocator/instantiate.cc: this.
850 * testsuite/ext/malloc_allocator/instantiate.cc: this.
851 * testsuite/ext/debug_allocator/instantiate.cc: this.
853 2004-08-30 Phil Edwards <phil@codesourcery.com>
855 * docs/html/install.html: Update locales list (from Paolo).
856 Remove other redundant information and point to the GCC install
859 2004-08-30 Benjamin Kosnik <bkoz@redhat.com>
861 * include/ext/pool_allocator.h: Rename __pool_base to
863 * src/allocator.cc: Same.
864 * config/linker-map.gnu: Same.
866 2004-08-30 Paolo Carlini <pcarlini@suse.de>
867 Kenneth C. Schalk <ken@xorian.net>
870 * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
871 Check the return value of fclose/sync, loop on EINTR.
872 (__basic_file<char>::sys_open): Likewise, for sync.
874 2004-08-29 Paolo Carlini <pcarlini@suse.de>
876 * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
877 case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
878 and 7.23.3.5), two if !_GLIBCXX_USE_C99.
879 * testsuite/22_locale/time_get/get_time/char/4.cc: New.
880 * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
882 2004-08-27 Jason Merrill <jason@redhat.com>
885 * libsupc++/guard.cc (static_mutex): Internal class implementing a
886 recursive mutex which controls initialization of local statics.
887 (__gnu_cxx::recursive_init): New exception class.
888 (__cxa_guard_acquire): Deal with locking and recursion detection.
889 (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
891 2004-08-27 Matthias Klose <doko@debian.org>
893 * configure.host: For mips*-*-linux* update cpu_include_dir
894 after atomicity_dir is set.
896 2004-08-27 Matthias Klose <doko@debian.org>
898 * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
899 * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
900 * configure.host: Set abi_baseline_pair for arm*-*-linux* and
903 2004-08-27 Paolo Carlini <pcarlini@suse.de>
905 * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
906 * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
907 * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
908 * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
909 * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
911 * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
913 * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
914 * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
915 * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
916 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
918 2004-08-25 Paolo Carlini <pcarlini@suse.de>
920 PR libstdc++/17038 (partial)
921 * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
923 * include/bits/locale_facets.h (class __timepunct): Add FIXME
924 comment about _M_put.
925 * config/locale/generic/time_members.cc (_M_put): Always null
927 * config/locale/gnu/time_members.cc (_M_put): Likewise.
928 * testsuite/22_locale/time_put/put/char/17038.cc: New.
929 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
931 2004-08-24 Paolo Carlini <pcarlini@suse.de>
933 * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
934 * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
935 * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
936 * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
937 * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
938 * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
940 * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
942 * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
944 2004-08-22 Matthias Klose <doko@debian.org>
946 * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
947 * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
949 2004-08-23 Paolo Carlini <pcarlini@suse.de>
951 * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
952 * aclocal.m4: Regenerate with automake-1.9.1.
953 * configure: Regenerate.
954 * Makefile.in: Likewise.
955 * include/Makefile.in: Likewise.
956 * libmath/Makefile.in: Likewise.
957 * libsupc++/Makefile.in: Likewise.
958 * po/Makefile.in: Likewise.
959 * src/Makefile.in: Likewise.
960 * testsuite/Makefile.in: Likewise.
962 2004-08-22 Paolo Carlini <pcarlini@suse.de>
964 * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
965 to a signed type, long according to the resolution of DR 359.
966 * testsuite/22_locale/num_put/put/char/9.cc: New.
967 * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
969 * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
970 Simplify a bit: no need to clear showpos.
972 2004-08-21 Paolo Carlini <pcarlini@suse.de>
974 * include/bits/char_traits.h (struct _Char_traits_match): Remove,
977 2004-08-21 Paolo Carlini <pcarlini@suse.de>
979 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
980 wchar_t type for the fill argument; minor formatting tweaks.
981 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
982 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
983 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
984 * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
985 * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
986 * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
988 2004-08-21 Paolo Carlini <pcarlini@suse.de>
990 * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
991 with _M_word != _M_local_word two times, redundantly.
993 2004-08-20 Jason Merrill <jason@redhat.com>
995 * include/Makefile.am (${host_builddir}/gthr.h): Don't add
996 _GLIBCXX_ to #pragma lines.
997 * include/Makefile.in: Update.
999 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1001 PR libstdc++/7219 (continued)
1002 * include/bits/ios_base.h (class ios_base): Expose Annex D.6
1003 typedefs by default.
1004 * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
1005 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
1007 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1009 2004-08-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1011 * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
1012 barrier to locking asm.
1014 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1016 * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
1017 actually the warning is a front-end bug (c++/17120).
1019 2004-08-20 Matthias Klose <doko@debian.org>
1021 * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
1023 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1025 * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
1026 used as truth value warning.
1028 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1030 * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
1033 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1035 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
1037 2004-08-19 Benjamin Kosnik <bkoz@redhat.com>
1039 * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
1041 * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
1043 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1045 * testsuite/performance/20_util/allocator/insert.cc: For std::map
1046 instantiate the allocator for a correct pair type.
1047 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1048 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1049 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1052 * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
1053 minor formatting fixes.
1054 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1056 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1058 * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
1060 * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
1061 * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
1062 * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
1063 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
1064 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1065 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1066 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1068 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1070 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1072 2004-08-18 Matthias Klose <doko@debian.org>
1074 * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1075 * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
1076 * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
1078 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1080 * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1082 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1084 * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1086 2004-08-17 Benjamin Kosnik <bkoz@redhat.com>
1088 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1090 2004-08-16 Paolo Carlini <pcarlini@suse.de>
1092 * include/bits/indirect_array.h: Trivial formatting fixes.
1093 * include/bits/valarray_after.h: Likewise.
1094 * include/bits/valarray_array.h: Likewise.
1095 * src/valarray-inst.cc: Likewise.
1097 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1099 * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
1100 * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
1101 * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
1103 * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
1104 * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
1105 * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
1106 * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
1107 * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
1109 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1111 * include/bits/deque.tcc: Trivial formatting fixes.
1113 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1115 * include/bits/deque.tcc: Trivial formatting fixes.
1117 * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
1118 Remove unneded typedef.
1120 * include/bits/locale_facets.tcc: Very minor tweaks.
1122 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
1123 type for the fill argument.
1124 * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
1125 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1126 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1127 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1128 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
1129 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
1130 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
1131 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
1133 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1135 * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
1136 memmove is not needed, memcpy suffices.
1138 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1140 * include/std/std_fstream.h (class basic_ifstream,
1141 class basic_ofstream, class basic_fstream): Add const overloads
1142 of is_open, as per DR 365 [WP].
1143 * docs/html/ext/howto.html: Add an entry for DR 365.
1145 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1147 * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
1149 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1152 * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
1153 to the returned value, reorganize a bit.
1154 * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
1155 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
1157 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
1158 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
1159 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
1160 * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
1162 2004-08-12 Paul Brook <paul@codesourcery.com>
1164 * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
1165 _GLIBCXX_CXA_VEC_CTOR_RETURN.
1166 * config/cpu/generic/cxxabi_tweaks.h: Ditto.
1167 * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
1168 __cxa_vec_ctor_return.
1169 * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
1170 Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
1172 2004-08-12 Kelley Cook <kcook@gcc.gnu.org>
1174 * Makefile.in, aclocal.m4, configure, include/Makefile.in,
1175 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1176 src/Makefile.in, testsuite/Makefile.in: Regenerate
1178 2004-08-12 Jan Beulich <jbeulich@novell.com>
1180 * config/locale/generic/ctype_members.cc
1181 (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
1182 initializer for return value, as that is invalid for enumerated types.
1183 * config/locale/gnu/ctype_members.cc
1184 (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
1186 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1188 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
1190 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1192 * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
1194 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
1195 * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
1196 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
1197 * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
1198 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
1199 * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
1200 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
1201 * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
1202 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
1203 * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
1204 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
1205 * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
1206 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
1207 * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
1208 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
1209 * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
1210 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
1211 * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
1212 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
1213 * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
1214 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
1216 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1217 Petur Runolfsson <peturr02@ru.is>
1220 * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
1221 standard streams are constructed.
1222 * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
1224 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1226 * include/bits/stl_bvector.h: Trivial formatting fixes.
1228 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1230 * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
1232 2004-08-07 Jonathan Wakely <redi@gcc.gnu.org>
1233 Paolo Carlini <pcarlini@suse.de>
1235 * src/debug.cc (_Error_formatter::_M_print_string): In order
1236 to print individual words from __string, _M_format_word can't
1237 be called since may be just sprintf, thus ignoring completely
1238 __n: instead, use memmove and append '\0' by hand.
1240 2004-08-07 Paolo Carlini <pcarlini@suse.de>
1242 * config/locale/generic/c_locale.h (__convert_from_v): Don't
1243 use a default for __prec, assume __prec >= 0 and simplify.
1244 * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
1245 * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
1246 Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
1248 2004-08-04 Phil Edwards <phil@codesourcery.com>
1250 * docs/html/configopts.html: Emphasize that options change.
1251 * docs/html/17_intro/configury.html: Update links.
1253 2004-08-03 Paolo Carlini <pcarlini@suse.de>
1255 * include/bits/list.tcc: Trivial formatting fixes.
1257 2004-08-03 Mark Mitchell <mark@codesourcery.com>
1259 * libsupc++/new_op.cc: Update comments.
1260 * libsupc++/del_op.cc: Likewise.
1262 2004-08-02 Mark Mitchell <mark@codesourcery.com>
1264 * libsupc++/cxxabi.h: Make all declarations have default
1266 * libsupc++/exception: Likewise.
1267 * libsupc++/new: Likewise.
1268 * libsupc++/typeinfo: Likewise.
1269 * libsupc++/unwind-cxx.h: Likewise.
1270 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
1271 the __cxxabiv1 namespace.
1272 (__cxa_free_exception): Likewise.
1273 * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
1274 (__cxa_bad_typeid): Likewise.
1275 * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
1276 (__cxa_end_catch): Likewise.
1277 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
1278 (__cxa_get_globals): Likewise.
1279 * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
1280 (__cxa_rethrow): Likewise.
1281 * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
1282 * libsupc++/eh_type.cc: Include <cxxabi.h>.
1284 * Makefile.am (hosted_source): Add libmath and testsuite.
1285 (SUBDIRS): Remove them.
1286 * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
1287 on arm*-*-symbianelf*.
1288 * crossconfig.m4: Add arm*-*-symbianelf* support.
1289 * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
1290 when freestanding. Do not bring names into std:: namespace with
1291 "using" when freestanding. Declare required functions and macros
1293 * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
1295 * libsupc++/del_op.cc: Declare "free" only when freestanding.
1296 * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
1297 (malloc): Declare when freestanding.
1300 (__cxa_allocate_exception): Call malloc, not std::malloc. Likewise
1302 (__cxa_free_exception): Likewise for free.
1303 * libsupc++/new_op.cc: Declare "malloc" when freestanding.
1304 * libsupc++/pure.cc (writestr): Define to nothing when
1306 * libsupc++/vterminate.cc: Do not define anything when
1308 * Makefile.in: Regenerated.
1309 * aclocal.m4: Likewise.
1310 * configure: Likewise.
1311 * include/Makefile.in: Likewise.
1312 * libmath/Makefile.in: Likewise.
1313 * libsupc++/Makefile.in: Likewise.
1314 * po/Makefile.in: Likewise.
1315 * src/Makefile.in: Likewise.
1316 * testsuite/Makefile.in: Likewise.
1318 2004-08-01 Matt Austern <austern@apple.com>
1321 * include/bits/stl_list.h (_M_create_node): Remove unused
1322 zero-argument version.
1323 * include/ext/slist (_M_create_node): Pass two arguments to
1324 allocator's construct() member function.
1325 * testsuite/23_containers/deque/explicit_instantiation.cc: New.
1326 * testsuite/23_containers/list/explicit_instantiation.cc: New.
1327 * testsuite/23_containers/vector/explicit_instantiation.cc: New.
1328 * testsuite/23_containers/map/explicit_instantiation.cc: New.
1329 * testsuite/23_containers/set/explicit_instantiation.cc: New.
1330 * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
1331 * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
1332 * testsuite/ext/hash_set_explicit_instantiation.cc: New.
1333 * testsuite/ext/slist_explicit_instantiation.cc: New.
1335 2004-07-30 Paolo Carlini <pcarlini@suse.de>
1337 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1338 num_get<>::_M_extract_int): In the main parsing loop delay the
1339 life of __q to the actual use point.
1341 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1344 * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
1345 Don't clip the precision passed down to __convert_from_v:
1346 22.2.2.2.2 nowhere says so.
1347 * testsuite/22_locale/num_put/put/char/14220.cc: New.
1348 * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
1350 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1352 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
1354 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1355 Petur Runolfsson <peturr02@ru.is>
1357 PR libstdc++/12658 (continued)
1358 * src/locale_init.cc (locale::locale, locale::global): Use
1359 a single locale_mutex instead of two separate mutexes.
1361 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1364 * include/debug/map.h (insert(_InputIterator, _InputIterator)):
1366 * testsuite/23_containers/map/insert/16813.cc: New.
1368 2004-07-29 Phil Edwards <phil@codesourcery.com>
1370 * docs/html/faq/index.html: Update version references. Make
1371 clear that code from SGI has diverged greatly. Remove references
1372 to library snapshots and what's-new sections.
1373 * docs/html/faq/index.txt: Regenerate.
1375 2004-07-28 Matt Austern <austern@apple.com>
1377 * include/bits/stl_construct.h (_Destroy): New three-argument
1378 overload that takes an allocator argument. Another inline
1379 three-argument overload that takes std::allocator and dispatches
1380 to the two-argument version.
1381 * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
1382 Change return type to void to match uninitialized_fill_n.
1383 (__uninitialized_copy_a_): New function. Like uninitialized_copy
1384 except that it takes an allocator and uses it for construct and
1385 destroy. If the allocator is std::allocator, dispatches to
1387 (__uninitialized_fill_a): Likewise.
1388 (__uninitialized_fill_n_a): Likewise.
1389 (__uninitialized_copy_copy): Give it an allocator argument.
1390 (__uninitialized_fill_copy): Likewise.
1391 (__uninitialized_copy_fill): Likewise.
1392 * include/bits/deque.tcc: Use new forms defined in stl_construct.h
1393 and stl_uninitialized.h. Replace use of single-argument _Construct
1394 and _Destroy with use of allocator's construct and destroy methods.
1395 * include/bits/list.tcc: Likewise.
1396 * include/bits/stl_deque.h: Likewise.
1397 * include/bits/stl_list.h: Likewise.
1398 * include/bits/stl_tree.h: Likewise.
1399 * include/bits/stl_vector.h: Likewise.
1400 * include/bits/vector.tcc: Likewise.
1401 * include/ext/hashtable.h: Use rebind so that allocator_type
1402 has correct type for a container's allocator. Replace use of
1403 single-argument _Construct and _Destroy with use of allocator's
1404 construct and destroy methods.
1405 * include/ext/memory (__uninitialized_copy_n_a): New function.
1406 Like uninitialized_copy_n except that it takes an extra parameter,
1407 an allocator, and uses it for construct and destroy operations.
1408 * include/ext/rope: Use new forms defined in stl_construct.h,
1409 stl_uninitialized.h, and ext/memory. Replace use of single-argument
1410 _Construct and _Destroy with allocator construct and destroy methods.
1411 * include/ext/ropeimpl.h: Likewise.
1412 * include/ext/slist.h: Likewise.
1413 * testsuite/testsuite_allocator.h (check_construct_destroy): New.
1414 * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
1415 * testsuite/23_containers/deque/check_construct_destroy.cc: New.
1416 * testsuite/23_containers/list/check_construct_destroy.cc: New.
1417 * testsuite/23_containers/set/check_construct_destroy.cc: New.
1418 * testsuite/23_containers/vector/check_construct_destroy.cc: New.
1419 * testsuite/ext/hash_check_construct_destroy.cc: New.
1420 * testsuite/ext/slist_check_construct_destroy.cc: New.
1422 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
1424 2003-10-01 Eric Christopher <echristo@redhat.com>
1425 * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
1427 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
1428 * config/cpu/sh/atomicity.h: New. Use movli and movco on SH4a.
1430 2004-07-23 Benjamin Kosnik <bkoz@redhat.com>
1433 * include/bits/locale_facets.tcc: Fix for -Werror.
1435 2004-07-23 Jonathan Wakely <redi@gcc.gnu.org>
1437 * docs/html/debug.html: Say debug mode only available since 3.4.0.
1439 2004-07-21 Benjamin Kosnik <bkoz@redhat.com>
1441 * docs/doxygen/mainpage.html: Clarify links.
1442 * docs/doxygen/stdheader.cc: Add files.
1443 * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
1444 * docs/doxygen/user.cfg.in: New options, wrap.
1446 2004-07-20 Danny Smith <dannysmith@users.sourceforge.net>
1448 * include/c_std/std_cwchar.h (wcsstr): Correct signature.
1450 2004-07-19 Benjamin Kosnik <bkoz@redhat.com>
1453 * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
1455 2004-07-17 Richard Sandiford <rsandifo@redhat.com>
1458 * scripts/create_testsuite_files: Pass -print to find.
1460 2004-07-15 Paolo Carlini <pcarlini@suse.de>
1462 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
1463 * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
1465 2004-07-15 Jakub Jelinek <jakub@redhat.com>
1468 * acinclude.m4 (glibcxx_shared_libgcc): Correct
1469 glibcxx_shared_libgcc test for multilibs.
1470 * configure: Rebuilt.
1472 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1475 * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
1476 the signature to return void, as per 20.4.4.3.
1477 * include/bits/stl_vector.h (vector::vector(size_type,
1478 const value_type&, const allocator_type&), vector::vector(size_type),
1479 vector::_M_initialize_dispatch): Adjust callers.
1480 * include/bits/vector.tcc (vector<>::_M_fill_assign,
1481 vector<>::_M_fill_insert): Likewise.
1482 * testsuite/20_util/memory/16505.cc: New.
1484 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1486 * testsuite/22_locale/locale/cons/12658_thread-1.cc,
1487 12658_thread-2.cc: Use __gnu_test::try_named_locale.
1489 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1491 * docs/html/ext/mt_allocator.html: Add docs for _Tune.
1492 * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
1493 (__mt_alloc::_S_set_options): Same.
1496 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1498 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
1500 * configure: Regenerated.
1502 2004-07-13 Paolo Carlini <pcarlini@suse.de>
1504 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
1505 to 12658_thread-1.cc and xfail.
1506 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
1507 simpler version of 12658_thread-1.cc, still failing on 3_3 and
1508 not failing on 3_4/mainline - both on single processor and
1509 multiprocessor machines.
1511 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
1513 * docs/html/abi.html: Remove non-public qualification.
1515 * include/bits/concurrence.h: Tweak comments.
1517 2004-07-11 Paolo Carlini <pcarlini@suse.de>
1519 Add wchar_t counterparts of the basic_streambbuf<char> tests.
1520 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
1521 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
1523 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
1524 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
1526 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
1527 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
1528 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
1529 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
1530 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
1532 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
1534 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
1536 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
1538 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
1539 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
1541 2004-07-11 Phil Edwards <phil@codesourcery.com>
1543 * acinclude.m4: Cosmetic shell syntax fixes.
1544 * configure.ac: Bring comment inline with reality.
1545 * configure.host: Both of the above. Move 'arm' case to right
1546 place in host_cpu switch.
1547 * aclocal.m4, configure: Regenerate.
1549 2004-07-09 Paolo Carlini <pcarlini@suse.de>
1551 Add wchar_t counterparts of the basic_stringbuf<char> tests.
1552 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
1553 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
1554 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
1555 3599.cc, 9988.cc: Likewise.
1556 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
1558 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
1560 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
1562 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
1564 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
1565 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
1566 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
1567 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
1569 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
1570 9404-1.cc: Likewise.
1571 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
1572 9404-2.cc: Likewise.
1573 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
1575 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
1576 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
1578 2004-07-08 Paolo Carlini <pcarlini@suse.de>
1580 * include/bits/gslice.h: Trivial formatting fixes.
1581 * include/bits/gslice_array.h: Likewise.
1582 * include/bits/indirect_array.h: Likewise.
1583 * include/bits/mask_array.h: Likewise.
1584 * include/bits/slice_array.h: Likewise.
1585 * include/bits/valarray_after.h: Likewise.
1586 * include/bits/valarray_array.h: Likewise.
1587 * include/bits/valarray_before.h: Likewise.
1588 * include/std/std_valarray.h: Likewise.
1590 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
1593 * include/bits/basic_string.h (basic_string::operator=): Revert.
1595 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
1597 * configure.ac (libtool_VERSION): To 6:2:0.
1598 * configure: Regenerated.
1600 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
1602 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
1605 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
1607 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
1609 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
1612 2004-07-07 Paolo Carlini <pcarlini@suse.de>
1615 * include/bits/sstream.tcc (overflow): When reallocating _M_string
1616 use an exponential grow policy.
1617 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
1618 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
1620 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
1623 * crossconfig.m4: Add in bits for djgpp.
1624 * configure: Regenerate.
1626 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
1628 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
1629 instantiation of set and multiset (functor param given as int).
1631 2004-07-04 Paolo Carlini <pcarlini@suse.de>
1633 * include/bits/basic_string.h: Trivial formatting fixes and/or
1634 const-ification of some variables.
1635 * include/bits/deque.tcc: Likewise.
1636 * include/bits/stl_algobase.h: Likewise.
1637 * include/bits/stl_bvector.h: Likewise.
1638 * include/bits/stl_construct.h: Likewise.
1639 * include/bits/stl_deque.h: Likewise.
1640 * include/bits/stl_pair.h: Likewise.
1641 * include/bits/stl_vector.h: Likewise.
1642 * include/bits/vector.tcc: Likewise.
1644 2004-07-04 Paolo Carlini <pcarlini@suse.de>
1646 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
1647 systems with no COMDAT or weak support.
1648 * testsuite/25_algorithms/copy/2.cc: Likewise.
1649 * testsuite/25_algorithms/copy/3.cc: Likewise.
1650 * testsuite/25_algorithms/copy/4.cc: Likewise.
1652 2004-07-03 Paul Brook <paul@codesourcery.com>
1654 * configure.ac: Set ABI_TWEAKS_SRCDIR.
1655 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
1656 setting atomicity_dir. Override type_cpu for arm based targets.
1657 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
1658 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
1659 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
1660 * libsupc++/vec.cc: Ditto.
1661 * config/cpu/arm/cxxabi_tweaks.h: New file.
1662 * config/cpu/generic/cxxabi_tweaks.h: New file.
1663 * */Makefile.in: Regenerate.
1664 * configure: Regenerate.
1666 2004-07-02 Paolo Carlini <pcarlini@suse.de>
1668 * include/bits/type_traits.h (_Is_normal_iterator): Move...
1669 * include/bits/cpp_type_traits.h: ... here, renamed to
1670 __is_normal_iterator and consistent with the other traits.
1671 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
1672 to the struct __copy_normal and three specializations.
1673 (__copy_backward_output_normal_iterator,
1674 __copy_backward_input_normal_iterator): Likewise, convert to
1675 the struct __copy_backward_normal and three specializations.
1676 (copy, copy_backward): Use the latter.
1677 (__copy_aux, __copy_backward_aux): Very minor tweaks.
1679 2004-07-01 Paolo Carlini <pcarlini@suse.de>
1681 * include/bits/stl_algobase.h (__copy_trivial): Remove.
1682 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
1683 __is_trivially_copyable, __are_same and __copy::copy.
1684 (__copy): Rewrite as a class template and two specializations.
1685 (__copy_ni2): Simplify, just call __copy_aux.
1687 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
1689 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
1690 for destination value type != source value type.
1692 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
1693 Per Bothner <per@bothner.com>
1694 Mohan Embar <gnustuff@thisiscool.com>
1697 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
1698 (__glibcxx_mutex): Encapsulate mutex init function into type for
1699 threaded configurations without __GTHREAD_MUTEX_INIT.
1700 (lock::lock): Make device member a reference.
1701 (lock::~lock): Same.
1702 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
1704 * src/allocator.cc: Same.
1706 2004-06-30 Brad Spencer <spencer@infointeractive.com>
1708 * include/ext/mt_allocator.h: Handle allocations at static
1709 initialization that happen before _S_options is (automatically)
1710 constructed; set _S_init even if _M_force_new is true.
1712 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
1714 * config/linker-map.gnu: Revert new exports.
1716 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
1717 Stuart Anderson <anderson@netsweng.com>
1719 * config/linker-map.gnu: Add destructor exports for abstract base
1720 classes to conform to LSB.
1722 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1723 Paolo Carlini <pcarlini@suse.de>
1725 * include/bits/cpp_type_traits.h: Add __is_pointer and
1726 __is_trivially_copyable.
1727 * include/bits/stl_algobase.h (fill, fill_n): Slightly
1728 tweak to use the latter.
1729 (__copy_backward_dispatch): Remove.
1730 (__copy_backward_aux): Rewrite to use __is_pointer and
1731 __is_trivially_copyable and __copy_backward::copy_b.
1732 (__copy_backward): Rewrite as a class template and two
1735 2004-06-30 Paolo Carlini <pcarlini@suse.de>
1737 * testsuite/25_algorithms/copy.cc: Move to...
1738 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
1739 * testsuite/25_algorithms/copy/2.cc: New.
1740 * testsuite/25_algorithms/copy/3.cc: New.
1741 * testsuite/25_algorithms/copy/4.cc: New.
1743 2004-06-29 Paul Brook <paul@codesourcery.com>
1745 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
1746 element size in the cookie.
1748 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1750 * include/bits/cpp_type_traits.h: Move the additions to
1751 namespace __gnu_internal outside of namespace std; trivial
1754 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
1756 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
1757 Revert -Weffc++ changes that defined copy ctory and or assignment
1759 * libsupc++/tinfo.cc (__upcast_result): Same.
1761 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1763 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
1764 the algorithm used to name the categories.
1766 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
1768 * include/Makefile.am: Give a .gch extension to
1769 the PCH files, not only to the directory.
1770 * include/Makefile.in: Regenerate.
1772 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1774 * config/locale/gnu/monetary_members.cc
1775 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
1776 assignments of _M_decimal_point and _M_thousands_sep.
1778 2004-06-27 Paolo Carlini <pcarlini@suse.de>
1780 * docs/html/17_intro/contribute.html: Update some links.
1781 * docs/html/17_intro/porting-howto.html: Likewise.
1782 * docs/html/17_intro/porting-howto.xml: Likewise.
1783 * docs/html/18_support/howto.html: Likewise.
1784 * docs/html/21_strings/howto.html: Likewise.
1785 * docs/html/27_io/howto.html: Likewise.
1786 * docs/html/configopts.html: Likewise.
1787 * docs/html/ext/howto.html: Likewise.
1788 * docs/html/faq/index.html: Likewise.
1789 * docs/html/install.html: Don't mention 2.x compilers.
1791 2004-06-27 Paolo Carlini <pcarlini@suse.de>
1793 * include/ext/rope: Trivial formatting fixes.
1794 * include/ext/ropeimpl.h: Likewise.
1796 2004-06-26 Paolo Carlini <pcarlini@suse.de>
1799 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
1800 availability of strto(u)ll, not used anymore in the iostreams.
1801 * configure: Regenerate.
1803 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
1806 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
1808 * configure: Regenerate.
1810 2004-06-25 Paul Brook <paul@codesourcery.com>
1812 * libsupc++/cxxabi.h: Define __ARM_EABI__
1814 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
1816 2004-06-25 Paul Brook <paul@codesourcery.com>
1818 * include/bits/concurrence.h: Still create mutex object when
1821 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1823 * include/bits/stl_algobase.h (fill, fill_n): Revert last
1824 change: actually we need to copy construct an object of type
1825 _Tp, not of type iterator_traits<>::value_type, therefore the
1828 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1830 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
1831 dispatch: use iterator_traits<>::value_type, not _Tp.
1833 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1835 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
1836 * testsuite/25_algorithms/fill/2.cc: Likewise.
1838 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
1839 Paolo Carlini <pcarlini@suse.de>
1841 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
1842 for fill and fill_n, respectively: when copying is cheap, use a
1843 temporary to avoid a memory read in each iteration.
1845 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1847 * testsuite/25_algorithms/fill/1.cc: New.
1848 * testsuite/25_algorithms/fill/2.cc: Likewise.
1850 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
1852 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
1853 Remove copy constructor and assignment operator.
1855 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
1857 * include/bits/concurrence.h (__gnu_cxx::lock): New.
1858 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
1859 (__pool_base::_M_get_mutex): New.
1860 * include/bits/allocator.h: Tweak.
1861 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
1862 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
1863 * include/bits/stl_threads.h: Remove.
1864 * include/Makefile.am: Also here.
1865 * include/Makefile.in: Regenerate.
1867 * src/locale_init.cc: Use __gnu_cxx::lock.
1869 * src/allocator.cc: Move all instantiations...
1870 * src/allocator-inst.cc: ...here.
1872 2004-06-23 Andrew Pinski <apinski@apple.com>
1874 * linkage.m4: Remove check for libmx.
1875 * configure: Regenerate.
1877 2004-06-23 Paolo Carlini <pcarlini@suse.de>
1880 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
1881 Don't require the _DefaultConstructibleConcept.
1882 (struct _ForwardIteratorConcept): Require it here.
1884 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
1886 * include/bits/istream.tcc (getline): Make sure arguments passed
1887 to min/max have the same type.
1888 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
1889 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
1891 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
1893 * docs/html/abi.html: Update links.
1895 2004-06-22 Paolo Carlini <pcarlini@suse.de>
1897 * testsuite/26_numerics/complex_inserters_extractors.cc,
1898 complex_value.cc, buggy_complex.cc: Move to...
1899 * testsuite/26_numerics/complex/: ... here.
1900 * testsuite/26_numerics/c99_classification_macros_c++.cc,
1901 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
1902 fabs_inline.cc: Move to...
1903 * testsuite/26_numerics/cmath/: ... here.
1904 * testsuite/26_numerics/binary_closure.cc, slice.cc,
1905 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
1906 valarray_name_lookup.cc, valarray_operators.cc,
1907 valarray_subset_assignment.cc: Move to...
1908 * testsuite/26_numerics/valarray/: ... here (new dir).
1909 * testsuite/26_numerics/sum_diff.cc: Move to...
1910 * testsuite/26_numerics/numeric/: ... here (new dir).
1912 2004-06-22 Paolo Carlini <pcarlini@suse.de>
1914 * include/std/std_istream.h (ignore(streamsize __n = 1,
1915 int_type __delim = traits_type::eof())): Split into...
1916 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1917 int_type __delim)): The first two can be much more simpler
1918 and efficient than the fully general case; also, the last
1919 two can take advantage of the same mechanism already used
1921 * include/bits/istream.tcc (ignore(streamsize __n = 1,
1922 int_type __delim = traits_type::eof()): Remove.
1923 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1924 int_type __delim)): New.
1926 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
1928 * config/linker-map.gnu: Use wildcards for
1929 __basic_file::sys_open(FILE*, _Ios_Openmode).
1931 2004-06-20 Paolo Carlini <pcarlini@suse.de>
1933 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
1935 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1937 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
1938 the alignment requested.
1939 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
1940 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
1941 (__mt_alloc<>::deallocate): Likewise.
1943 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1946 * include/debug/safe_base.h
1947 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
1948 _Safe_sequence_base::operator=): Provide definitions.
1949 * testsuite/23_containers/bitset/cons/16020.cc: New.
1951 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
1953 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
1954 (__pool_base): Remove unused template parameter. Add
1955 protected. Move lock data into __pool_base::_Lock. Remove static
1956 on member functions.
1957 (__pool_base::_M_get_free_list): New.
1958 (__pool_alloc): Move _S_force new here.
1959 * src/allocator.cc: Move out of line __pool_base definitions here.
1960 * config/linker-map.gnu: Export bits from __pool_base.
1962 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1964 * config/locale/gnu/numeric_members.cc
1965 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
1966 assignments of _M_decimal_point and _M_thousands_sep.
1967 * config/locale/gnu/time_members.cc
1968 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
1969 and reformat assignments of date and time fields.
1971 2004-06-16 Paolo Carlini <pcarlini@suse.de>
1973 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
1974 to use _Data_allocate.
1975 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
1976 (rope<>::_S_substring): Likewise.
1977 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
1978 (rope<>::c_str()): Likewise.
1979 (rope<>::replace_with_c_str()): Likewise.
1981 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
1982 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
1984 (_Rope_iterator_base<>::_S_setcache): Likewise.
1985 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
1986 (rope<>::_S_substring): Likewise.
1987 (rope<>::_S_dump): Likewise.
1988 (rope<>::_S_fetch_ptr): Likewise.
1989 (rope<>::_S_compare): Likewise.
1990 (rope<>::replace_with_c_str()): Likewise.
1992 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
1993 * testsuite/ext/rope/2.cc: New.
1995 2004-06-16 Paolo Carlini <pcarlini@suse.de>
1996 Matt Austern <austern@apple.com>
1998 * testsuite/ext/rope/3.cc: New.
2000 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
2002 * acinclude.m4: Remove useless multilib configury.
2003 * Makefile.am: Remove useless multilib rules.
2004 * aclocal.m4: Regenerate.
2005 * Makefile.in: Regenerate.
2006 * configure: Regenerate.
2008 2004-06-15 Paolo Carlini <pcarlini@suse.de>
2010 * include/ext/hashtable.h: Trivial formatting fixes.
2011 * include/ext/rb_tree: Likewise.
2013 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2015 * include/ext/hash_map: Trivial formatting fixes.
2016 * include/ext/hash_set: Likewise.
2017 * include/ext/memory: Likewise.
2018 * include/ext/numeric: Likewise.
2020 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
2022 * Makefile.in: Regenerate with automake 1.8.5.
2024 * include/Makefile.in: Same.
2025 * libmath/Makefile.in: Same.
2026 * libsupc++/Makefile.in: Same.
2027 * po/Makefile.in: Same.
2028 * src/Makefile.in: Same.
2029 * testsuite/Makefile.in: Same.
2031 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2033 * include/ext/slist: Trivial formatting fixes.
2035 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2037 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
2038 Don't use the 'magic number' 10 in the computation of __minlen;
2039 never access __name past __minlen; in the loop over __i3, don't
2040 decrease __nmatches and increase __i3 at once, only either of
2043 2004-06-13 Paolo Carlini <pcarlini@suse.de>
2045 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
2046 time_get<>::do_get_date): Use only once _M_extract_via_format,
2047 instead of going through "%X"/"%x" and calling it two times
2050 2004-06-12 Paolo Carlini <pcarlini@suse.de>
2052 * include/ext/algorithm: Trivial formatting fixes.
2053 * include/ext/functional: Likewise.
2054 * include/ext/hash_fun.h: Likewise.
2055 * include/ext/iterator: Likewise.
2057 2004-06-12 Paolo Carlini <pcarlini@suse.de>
2059 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
2060 size_type)): Reimplement using std::search.
2061 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
2063 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
2065 * testsuite/performance/21_strings/string_find.cc: New.
2067 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
2069 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
2071 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
2073 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
2074 this function return a value.
2076 2004-06-09 Paolo Carlini <pcarlini@suse.de>
2079 * include/bits/stl_deque.h: Consistently with stl_set.h, define
2080 pointer as allocator's pointer, likewise for reference,
2081 const_pointer, and const_reference.
2082 * include/bits/stl_list.h: Likewise.
2083 * include/bits/stl_map.h: Likewise.
2084 * include/bits/stl_multimap.h: Likewise.
2085 * include/bits/stl_vector.h: Likewise.
2087 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
2089 * crossconfig.m4: Remove signbit, signbitf, signbitl.
2090 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
2091 builtin math functions instead of AC_DEFINE_UNQUOTED.
2092 * configure: Regenerate.
2094 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
2096 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
2097 * docs/doxygen/mainpage.html: Remove links.
2099 2004-06-08 Jason Merrill <jason@redhat.com>
2101 * config/linker-map.gnu: Use wildcards for
2102 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
2104 2004-06-08 Paolo Carlini <pcarlini@suse.de>
2106 * include/ext/pool_allocator.h: Convert to a global free-list,
2107 as per the original SGI/HP design: move the implementation
2108 details to struct __pool_base, from which __pool_alloc derives.
2109 * src/allocator.cc: Instantiate __pool_base.
2111 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
2112 Paolo Carlini <pcarlini@suse.de>
2114 * testsuite/testsuite_performance.h
2115 (resource_counter::allocated_memory): Make it return the right
2116 number of bytes requested by the allocators/application. This is
2117 the sbrk+mmaped memory.
2119 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
2121 * include/std/std_complex.h (log): Tidy.
2123 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
2125 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
2126 * testsuite/testsuite_abi.cc: Same.
2127 * configure.ac (libtool_VERSION): Bump to 6:1:0.
2128 * configure: Regenerate.
2129 * aclocal.m4: Regenerate.
2131 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2133 * include/std/std_complex.h (complex<_Tp>): Properly indent
2135 (complex<>::__rep): New.
2136 (__complex_abs): New. Dispatch to built-ins.
2138 (__complex_arg): New. Dispatch to built-ins.
2140 (__complex_cos): New. Dispatch to built-ins.
2142 (__complex_cosh): New. Dispatch to built-ins.
2144 (__complex_exp): New. Dispatch to built-ins.
2146 (__complex_log): New. Dispatch to built-ins.
2148 (__complex_sin): New. Dispatch to built-ins.
2150 (__complex_sinh): New. Dispatch to built-ins.
2152 (__complex_sqrt): New. Dispatch to built-ins.
2154 (__complex_tan): New. Dispatch to built-ins.
2156 (__complex_tanh): New. Dispatch to built-ins.
2158 (__complex_pow): New. Dispatch to built-ins.
2161 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
2162 Benjamin Kosnik <bkoz@redhat.com>
2165 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
2166 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
2167 * config/io/basic_file_stdio.cc (__basic_file::file): New.
2168 * config/io/basic_file_stdio.h: Define.
2170 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
2173 * docs/html/documentation.html: Update doxygen links for 3.4.0.
2175 2004-05-27 Jan Beulich <jbeulich@novell.com>
2177 * scripts/create_testsuite_files: Tweak.
2179 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
2182 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
2183 bits to do the same thing.
2185 2004-05-24 Paolo Carlini <pcarlini@suse.de>
2187 * include/bits/istream.tcc (ignore): Correctly deal with
2188 n == numeric_limits<streamsize>::max().
2189 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
2191 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
2192 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
2193 __n == numeric_limits<>::min().
2195 * include/bits/istream.tcc: Minor tweaks.
2197 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2199 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2201 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2203 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2205 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2207 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2210 Fixups for -Weffc++.
2211 * include/bits/basic_string.h (basic_string::operator=): Return
2212 pointer to this instead of result of assign. Although redundant,
2213 this doesn't impact resultant codegen.
2215 * include/bits/locale_facets.h (__numpunct_cache): Declare
2216 assignment opxserator and copy constructor private.
2217 (__timepunct_cache): Same.
2218 (__moneypunct_cache): Same.
2219 (collate): Use member initialization list for _M_c_locale_collate.
2220 * config/locale/gnu/messages_members.h: Same.
2221 * config/locale/gnu/time_members.h (__timepunct): Same.
2222 * src/codecvt.cc: Use member initialization list to initialize
2223 _M_c_locale_codecvt.
2224 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
2225 * config/os/gnu-linux/ctype_noninline.h: Same.
2226 * src/locale.cc (_Impl): Same.
2227 * src/locale_init.cc: Same.
2228 * src/localename.cc: Same.
2230 * include/bits/basic_ios.h (basic_ios): Complete member
2231 initialization list.
2232 * include/bits/istream.tcc (basic_istream::sentry): Same.
2233 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
2234 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
2235 _M_pback to member initialization list.
2236 * include/std/std_streambuf.h: Same.
2237 * include/std/std_sstream.h: Same, for _M_mode.
2238 * src/ios.cc (ios_base): Same.
2240 * include/ext/rope: Make derived classes match exception
2242 specifications. Add copy constructors and assignment operators.
2244 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
2245 constructor and assignment operator protected.
2246 (_Safe_iterator_base): Same.
2247 * include/debug/formatter.h (_Error_formatter): Define copy
2248 constructor and assignment operator.
2250 * include/backward/strstream: Declare assignment operator and copy
2251 constructor private.
2253 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2255 * testsuite/testsuite_hooks.h (func_callback): Declare copy
2256 constructor and assignment operator private.
2257 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
2258 exception specifications of base class.
2259 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
2260 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
2261 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2263 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2265 * libsupc++/cxxabi.h: Remove duplicated and useless public and
2266 private keywords in class declarations. Format. Use
2267 stddef.h. Expose declarations to "C" compilation.
2268 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
2269 assignment operator.
2270 (__dyncast_result): Same.
2271 * libsupc++/vec.cc (uncatch_exception): Same, use member
2272 initialization list.
2274 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2276 * testsuite/abi_check.cc: Add unistd.h.
2278 2004-05-22 Paolo Carlini <pcarlini@suse.de>
2281 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
2282 __int_to_char(unsigned long long)): Showpos is not relevant
2284 * testsuite/22_locale/num_put/put/char/15565.cc: New.
2285 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
2287 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
2289 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
2290 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
2291 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2292 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
2293 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
2294 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
2296 2004-05-21 Matthias Klose <doko@debian.org>
2298 * docs/doxygen/run_doxygen: Bump required version.
2300 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
2302 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
2303 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
2305 2004-05-21 Paolo Carlini <pcarlini@suse.de>
2307 * include/bits/istream.tcc (ignore): Remove redundant line.
2308 (readsome): Tidy, closely following 27.6.1.3, p30.
2310 2004-05-20 Paolo Carlini <pcarlini@suse.de>
2312 * include/bits/istream.tcc (operator>>(basic_istream<>&,
2313 basic_string<>&)): Use a temporary buffer, thus avoiding
2314 reallocation for common case.
2315 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2317 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2320 * include/bits/istream.tcc: Const-ification of a few variables.
2322 * include/bits/ostream.tcc: Trivial formatting fixes and
2323 const-ification of some variables.
2325 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
2329 * docs/doxygen/Intro.3: Remove Allocators.3.
2330 Add new extension headers, extension namespace list.
2331 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
2332 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
2333 __gnu_debug::. Remove __policy_ renames.
2334 * docs/doxygen/guide.html: Add dot note.
2335 * docs/doxygen/stdheader.cc: Edit, add files.
2336 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
2338 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2340 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
2342 2004-05-18 Jan Beulich <jbeulich@novell.com>
2345 * scripts/create_testsuite_files: Also find source files through
2348 2004-05-18 Jan Beulich <jbeulich@novell.com>
2351 * testsuite/lib/libstdc++.exp: Make test files writable.
2353 2004-05-18 Paolo Carlini <pcarlini@suse.de>
2355 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
2358 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
2360 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
2361 allocation loop which removes blocks from the global free list
2362 from O(N) to O(1) when the required blocks are <= the number
2365 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2367 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
2369 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
2371 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
2372 * testsuite/23_containers/deque/14340.cc: New.
2373 * testsuite/23_containers/list/14340.cc: New.
2374 * testsuite/23_containers/map/14340.cc: New.
2375 * testsuite/23_containers/multimap/14340.cc: New.
2376 * testsuite/23_containers/multiset/14340.cc: New.
2377 * testsuite/23_containers/set/14340.cc: New.
2378 * testsuite/23_containers/vector/14340.cc: New.
2380 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
2383 * include/debug/safe_iterator.h (_Safe_iterator converting
2384 constructor): Only allow declaration to instantiate when the
2385 incoming _Safe_iterator has exactly the right iterator type.
2387 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
2389 * include/bits/boost_concept_check.h: Fix old attribute syntax.
2390 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
2391 to pass concept-checks.
2392 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2393 * testsuite/23_containers/set/modifiers/swap.cc: Same.
2394 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2396 2004-05-16 Paolo Carlini <pcarlini@suse.de>
2398 * include/std/std_bitset.h: Minor formatting fixes.
2400 2004-05-16 Paolo Carlini <pcarlini@suse.de>
2402 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2403 Consistently update __bin._M_free[0].
2404 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
2405 __bin._M_free[0] to simplify the while loop (i.e., the number
2406 of iterations becomes known at the outset).
2408 2004-05-15 Paolo Carlini <pcarlini@suse.de>
2410 * include/std/std_bitset.h: Trivial formatting fixes.
2412 2004-05-14 Paolo Carlini <pcarlini@suse.de>
2413 Ivan Godard <igodard@pacbell.net>
2416 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
2417 * testsuite/23_containers/bitset/ext/15361.cc: New.
2419 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2422 * crossconfig.m4: Add C99 math bits for linux crosses.
2423 * configure: Regenerate.
2425 2004-05-13 Simon Marshall <simon.marshall@misys.com>
2426 Benjamin Kosnik <bkoz@redhat.com>
2429 * include/bits/locale_facets.h: Fix for -fno-for-scope.
2430 * include/debug/safe_sequence.h: Same.
2431 * include/debug/safe_iterator.tcc: Same.
2432 * src/debug.cc: Same.
2433 * src/locale.cc: Same.
2434 * src/locale_init.cc: Same.
2435 * src/localename.cc: Same.
2436 * config/locale/gnu/ctype_members.cc: Same.
2437 * config/locale/gnu/numeric_members.cc: Same.
2438 * testsuite/testsuite_abi.cc: Same.
2439 * testsuite/testsuite_hooks.cc: Same.
2441 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
2443 * docs/html/abi.html: Document effect of -fabi-version on value
2444 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
2447 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2450 * docs/html/faq/index.html: Update docs for libsupc++ usage.
2452 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2455 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
2457 (_GLIBCXX_mutex_address): Same.
2458 (_GLIBCXX_once): Same.
2459 (_GLIBCXX_mutex_init): Same.
2460 (_GLIBCXX_mutex_address_init): Same.
2462 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2464 * docs/html/abi.html: New.
2465 * docs/html/abi.txt: Remove.
2466 * docs/html/documentation.html: Add link.
2467 * testsuite/Makefile.am: Add files.
2468 * testsuite/Makefile.in: Regenerated.
2469 * testsuite/abi_check.cc: Move and modify code into...
2470 * testsuite/testsuite_abi.cc: Add.
2471 * testsuite/testsuite_abi.h: Add.
2473 * docs/html/17_intro/TODO: Update.
2474 * include/bits/stl_pair.h: Format.
2476 2004-05-06 Matthias Klose <doko@debian.org>
2478 * include/backward/iterator.h: Add GPL copyright info,
2479 with exception clause.
2480 * include/bits/boost_concept_check.h: Likewise.
2482 * libsupc++/tinfo.h: Likewise.
2483 * po/string_literals.cc: Likewise.
2485 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
2487 * acinclude.m4: Replace -W with more speaking -Wextra.
2488 * configure: Rebuilt.
2490 2004-05-03 Paolo Carlini <pcarlini@suse.de>
2492 Optimize locale::_M_impl->_M_names for the most common cases:
2493 !_M_names[0] means unnamed; !_M_names[1] means all the categories
2494 the same name (_M_names[0] && _M_names[1] means that the full set
2495 of _M_names must be processed, the general case).
2496 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
2497 Tweak, saving work when !_M_names[1].
2498 (locale::locale(const locale&, _Facet*): Simplify: now just setting
2499 _M_names[0] = 0 means unnamed.
2500 * src/locale.cc (locale::operator==): Deal first with the common,
2501 easy cases, otherwise fall back to locale::name().
2502 (locale::name()): Tweak, if !_M_names[0] just return "*".
2503 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
2504 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
2505 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
2506 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
2507 Simplify when !std::strchr, just updating _M_names[0]; clean up.
2508 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
2509 for the general case (full set of names), then do the usual work;
2512 * src/locale.cc (locale::name()): Reserve space in __ret.
2513 * src/locale_init.cc (locale::global(const locale&)): Save
2514 the name in a temporary.
2515 * src/localename.cc (locale::locale(const char*)): Reserve space
2518 2004-04-29 Paolo Carlini <pcarlini@suse.de>
2520 * src/locale.cc (locale::operator==): Always avoid constructing
2521 locale::name(), directly compare pairs of _M_names.
2523 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2525 * include/bits/istream.tcc: Fix comment.
2527 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2529 * include/bits/stl_vector.h: Trivial formatting fixes.
2530 * include/bits/vector.tcc: Likewise.
2532 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2534 PR libstdc++/15002 (continued again)
2535 * include/bits/istream.tcc (getline(basic_istream<>&,
2536 basic_string<>&, _CharT)): Use a temporary buffer, thus
2537 avoiding reallocation for common case.
2539 * include/bits/basic_string.tcc (_S_construct(_InIterator,
2540 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
2541 of temporary buffer to a power of two.
2543 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
2545 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2547 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2549 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2551 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2553 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2554 Petur Runolfsson <peturr02@ru.is>
2556 PR libstdc++/15002 (continued)
2557 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
2558 streamsize, char_type)): Use traits::find/copy in a loop to speed
2559 up greatly the function in the common case (I/O buffer size >> 1).
2561 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2563 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
2565 * include/bits/istream.tcc (getline(basic_istream<>&,
2566 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
2567 of sbumpc(), consistently with the other functions, thus also
2568 dealing correctly with the case of exceeded string::max_size().
2570 2004-04-24 Matthias Klose <doko@debian.org>
2572 Jonathan Wakely <cow@compsoc.man.ac.uk>
2573 * docs/html/configopts.html: Fix reference to allocator config option.
2575 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
2577 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
2578 * configure: Regenerate.
2580 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
2582 PR libstdc++/15047, libstdc++/11610
2583 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
2584 (libstdc++_init): Don't pass outdir to v3-copy-files.
2586 2004-04-21 Paolo Carlini <pcarlini@suse.de>
2588 * include/bits/deque.tcc: Trivial formatting fixes.
2589 * include/bits/stl_deque.h: Likewise.
2590 * include/bits/stl_list.h: Likewise.
2591 * include/bits/stl_tree.h: Likewise.
2593 2004-04-21 Paolo Carlini <pcarlini@suse.de>
2594 Andrew Pinski <pinskia@physics.uc.edu>
2596 * include/bits/basic_string.tcc (_M_mutate): Don't compute
2597 __src unnecessarily.
2599 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
2601 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
2602 Clarify assertion, set test variable to false before assert.
2603 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
2604 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
2605 * testsuite/27_io/ios_base/storage/2.cc: Same.
2607 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
2609 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
2610 * testsuite/27_io/fpos/14320-3.cc: Same.
2612 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
2613 * testsuite/27_io/fpos/1.cc: Same.
2614 * testsuite/27_io/basic_stringstream/2.cc: Same.
2615 * testsuite/27_io/basic_stringbuf/4.cc: Same.
2616 * testsuite/27_io/basic_stringbuf/1.cc: Same.
2617 * testsuite/27_io/basic_stringbuf/2.cc: Same.
2618 * testsuite/27_io/basic_streambuf/2.cc: Same.
2619 * testsuite/27_io/basic_ostringstream/2.cc: Same.
2620 * testsuite/27_io/basic_ostream/2.cc: Same.
2621 * testsuite/27_io/basic_ofstream/2.cc: Same.
2622 * testsuite/27_io/basic_istringstream/2.cc: Same.
2623 * testsuite/27_io/basic_istream/2.cc: Same.
2624 * testsuite/27_io/basic_iostream/2.cc: Same.
2625 * testsuite/27_io/basic_ios/2.cc: Same.
2626 * testsuite/27_io/basic_ifstream/2.cc: Same.
2627 * testsuite/27_io/basic_fstream/2.cc: Same.
2628 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
2630 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
2631 unsigned against zero.
2632 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
2633 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
2635 * testsuite/18_support/new_delete_placement.cc: Initialize
2636 variables before first use.
2637 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
2638 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
2639 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
2640 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
2642 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
2643 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
2645 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
2646 * testsuite/27_io/types/2.cc: Same.
2648 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
2650 * testsuite/27_io/fpos/14775.cc: Same.
2652 2004-04-19 Paolo Carlini <pcarlini@suse.de>
2654 PR libstdc++/15002 (partial)
2655 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2656 Special case __n2 == 1, not calling traits_type::assign/copy.
2658 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
2660 * include/bits/stl_bvector.h: Use _M_impl._M_start.
2662 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
2664 * include/bits/c++config (_GLIBCXX_STD): New.
2665 * src/list.cc: Use it.
2666 * include/std/std_bitset.h: Same.
2667 * include/bits/vector.tcc: Same.
2668 * include/bits/stl_set.h: Same.
2669 * include/bits/stl_multiset.h: Same.
2670 * include/bits/stl_multimap.h: Same.
2671 * include/bits/stl_map.h: Same.
2672 * include/bits/stl_list.h: Same.
2673 * include/bits/stl_vector.h: Same.
2674 * include/bits/stl_bvector.h: Same.
2675 * include/bits/stl_deque.h: Same.
2676 * include/bits/deque.tcc: Same.
2677 * include/bits/list.tcc: Same.
2678 * include/debug/vector: Same.
2679 * include/debug/set.h: Same.
2680 * include/debug/multiset.h: Same.
2681 * include/debug/multimap.h: Same.
2682 * include/debug/map.h: Same.
2683 * include/debug/list: Same.
2684 * include/debug/deque: Same.
2685 * include/debug/bitset: Same.
2686 * include/debug/formatter.h (__gnu_debug): Remove using directive.
2687 Add using declaration for std::type_info.
2688 * include/debug/safe_iterator.h: Add using declaration for
2689 std::iterator_traits and std::pair.
2690 * src/debug_list.cc: New.
2691 * src/Makefile.am: Add debug_list.cc.
2692 * src/Makefile.in: Regenerate.
2693 * config/linker-map.gnu: Add _List_node_base exports for std and
2696 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
2697 idiom that other containers use.
2698 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2700 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2703 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
2705 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
2706 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
2708 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2710 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
2712 * config.h.in: Regenerate.
2714 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2716 * config/locale/generic/monetary_members.cc
2717 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
2718 btowc unnecessarily, just cast to wchar_t (the concerned chars
2719 all belong to the basic character set).
2720 * config/locale/generic/numeric_members.cc
2721 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2722 * config/locale/gnu/monetary_members.cc
2723 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
2724 * config/locale/gnu/numeric_members.cc
2725 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2727 2004-04-15 Paolo Carlini <pcarlini@suse.de>
2729 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
2730 avoid constructing unnecessarily this->name().
2732 2004-04-14 Zack Weinberg <zack@codesourcery.com>
2734 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
2735 Change definition of CXX to use $(shell) instead of backticks.
2736 * testsuite/Makefile.in: Regenerate.
2738 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
2740 * testsuite/performance/20_util/allocator/list_sort_search.cc:
2741 Minor formatting fixes.
2742 * testsuite/performance/20_util/allocator/map_mt_find.cc:
2745 2004-04-12 Paolo Carlini <pcarlini@suse.de>
2747 * config/locale/gnu/numeric_members.cc
2748 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
2749 in __uselocale, since btowc is called for chars belonging to
2750 the basic character set.
2752 2004-04-09 Paolo Carlini <pcarlini@suse.de>
2754 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
2755 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
2756 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
2757 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
2758 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
2759 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
2760 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
2761 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
2762 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
2763 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
2764 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
2765 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
2766 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
2767 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
2768 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
2769 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
2770 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
2772 2004-04-07 Paolo Carlini <pcarlini@suse.de>
2774 * config/locale/generic/time_members.cc
2775 (__timepunct<char>::_M_initialize_timepunct,
2776 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
2777 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
2778 * config/locale/gnu/time_members.cc
2779 (__timepunct<char>::_M_initialize_timepunct,
2780 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
2781 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
2782 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
2784 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
2785 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
2786 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
2787 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
2788 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
2789 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
2790 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
2791 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
2792 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
2793 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
2794 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
2795 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
2796 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
2797 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
2798 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
2799 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
2800 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
2801 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
2802 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
2803 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
2804 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
2805 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
2806 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
2807 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
2808 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
2809 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
2810 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
2811 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
2812 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
2813 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
2814 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
2815 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
2816 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
2817 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
2818 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
2819 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
2821 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
2823 2004-04-07 Paolo Carlini <pcarlini@suse.de>
2825 * config/locale/gnu/monetary_members.cc
2826 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
2827 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
2828 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
2829 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
2830 * config/locale/gnu/numeric_members.cc
2831 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
2832 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
2834 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
2836 Fixups for EDG front end.
2837 * include/ext/rope: Instead of non-existent function
2838 _Data_allocate, use allocator's allocate. Use this.
2839 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
2840 enumerations from _Rope_RopeRep here.
2841 * include/ext/ropeimpl.h: Same.
2842 * src/ext-inst.cc (_S_min_len): Fix up definition.
2844 * config/locale/gnu/ctype_members.cc: Qualify base class members
2846 * config/locale/generic/ctype_members.cc: Same.
2847 * config/locale/gnu/messages_members.h: Same.
2848 * config/locale/generic/messages_members.h: Same.
2849 * src/ctype.cc: Same.
2850 * include/bits/codecvt.h: Same.
2852 * include/bits/boost_concept_check.h: Declare.
2853 (__error_type_must_be_an_unsigned_integer_type): Remove this.
2854 (__error_type_must_be_an_integer_type): Remove this.
2855 (__error_type_must_be_a_signed_integer_type): Remove this.
2857 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
2859 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
2860 specification to definition.
2861 (__cxa_allocate_exception): Same.
2862 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
2863 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
2864 (__cxa_get_globals): Same.
2866 * libsupc++/del_op.cc: Add comment about freestanding.
2868 2004-04-05 Paolo Carlini <pcarlini@suse.de>
2870 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2871 The critical section is actually very small, only two assignments.
2873 2004-04-04 Paolo Carlini <pcarlini@suse.de>
2874 Petur Runolfsson <peturr02@ru.is>
2876 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
2877 adapted from libstdc++/11378.
2879 2004-04-03 Paolo Carlini <pcarlini@suse.de>
2881 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
2882 some duplicated code.
2883 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
2884 in the single threaded case.
2885 * testsuite/performance/20_util/allocator/list_sort_search.cc:
2886 Reorder and renumber the tests consistently with the other testfiles.
2887 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
2888 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
2889 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
2891 2004-04-02 Paolo Carlini <pcarlini@suse.de>
2893 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2894 Rearrange arithmetic to avoid computing two divisions at
2897 2004-04-01 Paolo Carlini <pcarlini@suse.de>
2899 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
2900 Streamline the second half, wrapping it in a single
2901 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
2902 conditionals inside loops.
2904 2004-04-01 Paolo Carlini <pcarlini@suse.de>
2907 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
2908 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
2909 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
2910 to _GLIBCXX_RES_LIMITS.
2911 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
2913 * testsuite/testsuite_hooks.h: Declare set_file_limit.
2914 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
2915 and setrlimit(RLIMIT_FSIZE).
2916 * testsuite/27_io/fpos/14775.cc: New.
2917 * config.h.in: Regenerate.
2918 * configure: Likewise.
2920 2004-03-31 Paolo Carlini <pcarlini@suse.de>
2922 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
2923 In v3 uses of sscanf, the special floating-point numbers INF,
2924 INFINITY, etc., cannot occur in input, therefore, if the latter
2925 is too large, ERANGE is always stored in errno, no need of finitel.
2927 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
2930 * include/bits/stl_tree.h: Adjust initialization list order.
2932 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
2934 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
2936 2004-03-29 Paolo Carlini <pcarlini@suse.de>
2938 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
2939 on allocator behavior, the memory pointed by data2 may well be not
2942 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
2945 * include/bits/basic_string.tcc
2946 (basic_string::basic_string(const basic_string&)): Pass to
2947 _Rep::_M_grab the actual allocator of the string being constructed
2948 not the default constructed one.
2950 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
2953 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
2954 (__enc_traits::_M_destroy): New.
2955 (__enc_traits::~__enc_traits): Use it.
2956 (__enc_traits::operator=): Use _M_destroy, _M_init.
2957 (__enc_traits::__enc_traits): Same.
2959 2004-03-27 Petur Runolfsson <peturr02@ru.is>
2961 * testsuite/ext/enc_filebuf/char/13598.cc: New.
2963 2004-03-27 Paolo Carlini <pcarlini@suse.de>
2965 * include/ext/mt_allocator.h: Uglify consistently names of
2966 variables, members and classes; tidy.
2968 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
2970 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2971 Deallocation loop rewrote.
2973 2004-03-26 Paolo Carlini <pcarlini@suse.de>
2975 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
2976 __mt_alloc<>::deallocate): Protect two instances of
2977 block->thread_id with __GTHREADS.
2979 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
2981 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
2982 default argument in constructors.
2983 (_Rb_tree::_M_empty_initialize): Remove.
2985 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
2987 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
2988 * testsuite/23_containers/set/operators/1_neg.cc: Same.
2990 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2992 * include/bits/cpp_type_traits.h: Changed __is_pod
2993 completely. Now, it does not use any of the previous type_traits
2994 to detect the pod types, and it also detects function pointers as
2997 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
2998 which encapsulates the internal implementation of an rb_tree. Made
2999 the allocator a base class of this class instead of the rb_tree,
3000 which was not conforming. This _Rb_tree_impl class is also
3001 specialized on whether the _Compare parameter is a POD type or
3002 not. If so, then it maintains the comparison function as a data
3003 member, otherwise it makes the _Compare parameter a base class of
3004 itself. Also, _M_key_compare is now a function instead of a data
3005 member, so that the above trick can work properly. Delegated the
3006 initialization of the other data members to this newly created
3007 class. Also, now other member functions of rb_tree must refer to
3008 _M_key_compare as _M_impl._M_key_compare(). The other data members
3009 (*) can be referenced to as _M_impl.(*), where
3010 (*) includes _M_header, and _M_node_count.
3012 2004-03-25 Paolo Carlini <pcarlini@suse.de>
3014 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
3015 Add _M_min_bin, the size in bytes of the smallest bin.
3016 (__mt_alloc<>::tune()): Tweak accordingly.
3017 (__mt_alloc<>::tune(size_t, ...)): Likewise.
3018 (__mt_alloc<>::block_record): Change to a union: members next
3019 and thread_id are never used at the same time.
3020 (__mt_alloc<>::allocate): Update consistently.
3021 (__mt_alloc<>::deallocate): Likewise.
3022 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
3023 _S_bin_size for the configurable _M_min_size.
3025 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3027 * include/bits/stl_list.h: Created a _List_impl class and made it
3028 derive from the allocator, instead of the list deriving from the
3029 allocator class, which was not conformant. Changed all references
3030 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
3031 as above (changed all references to the concerned variables).
3033 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3035 * include/bits/stl_deque.h: Created a _Deque_impl class and made
3036 it derive from the allocator, instead of the deque deriving from
3037 the allocator class, which was not conformant. Changed all
3038 references to the _M_start, _M_finish, _M_map, and _M_map_size to
3040 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
3041 qualification in 2 places where it was missing.
3042 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
3044 * include/bits/deque.tcc: Same as above (changed all references to
3045 the concerned variables).
3047 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3049 * include/bits/stl_vector.h: Created a _Vector_impl class and made
3050 it derive from the allocator, instead of the _Vector_base class,
3051 deriving from the allocator which was not conformant. Changed all
3052 references to the _M_start, _M_finish, and _M_end_of_storage to
3054 * include/bits/vector.tcc: Same as above (changed all references
3055 to the concerned variables).
3057 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3059 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
3060 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
3061 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
3063 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3065 * include/ext/malloc_allocator.h: Fixed the construct function to
3066 call global placement new instead of assignment. Added a check
3067 after the return from malloc to check whether returned pointer is
3068 NULL, and if so, throw std::bad_alloc().
3069 * include/ext/debug_allocator.h: Added a check in the deallocate
3070 function to check whether the user has passed a NULL pointer or
3073 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
3075 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
3077 2004-03-24 Andreas Schwab <schwab@suse.de>
3079 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
3080 warning from IA64 assembler.
3082 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3084 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
3085 function call __builtin_ctz instead of the while loop.
3086 (allocate) -> If condition has __builtin_expect.
3087 (deallocate) -> Ditto.
3088 Renamed a few left-over variables and typedefs according to the
3089 C++STYLE mentioned in the documentation.
3090 Protected calls to __gthread* by __gthread_active_p(), whose value
3091 is cached in the local variable __threads_active.
3093 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
3095 * testsuite/performance/20_util/allocator/producer_consumer.cc:
3096 Use linear algorithm for producer.
3098 2004-03-24 Paolo Carlini <pcarlini@suse.de>
3100 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3101 __mt_alloc<>::deallocate): Avoid redundant conditionals.
3103 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
3105 * include/bits/locale_facets.h: Tweaks for 80 column.
3106 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
3107 (__moneypunct_cache::_M_cache): Same.
3108 (num_get): Don't inherit from __num_base.
3110 (money_get): Don't inherit from money_base.
3112 (__timepunct::_M_am_pm_format): New.
3113 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
3114 (time_get::_M_extract_name): Same.
3115 (time_get::_M_extract_via_format): Same.
3116 * include/bits/locale_facets.tcc: Tweaks for 80 column.
3117 Use _M_getloc instead of getloc.
3118 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
3119 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
3120 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
3122 2004-03-22 Paolo Carlini <pcarlini@suse.de>
3124 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
3125 * configure: Regenerate.
3126 * config/allocator/pool_allocator_base.h: New.
3127 * include/ext/pool_allocator.h: Convert to a standard-conforming
3129 * src/allocator.cc: Tweak instantiations.
3130 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
3131 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
3132 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
3133 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3134 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3135 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3137 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
3139 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
3140 inline" and attribute-unused. Qualify parameter __mem with
3142 (__exchange_and_add): Ditto. Add back memory clobber to asm.
3144 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3146 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
3148 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
3150 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
3152 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
3154 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
3156 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
3158 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3160 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3162 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
3164 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3167 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3169 * include/std/std_valarray.h: Document DR389 [Ready].
3170 * docs/html/ext/howto.html: Add an entry for DR389.
3172 2004-03-19 Michael Eager <eager@mvista.com>
3174 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
3177 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3179 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
3181 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
3182 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
3183 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
3184 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
3185 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
3186 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
3187 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
3188 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
3189 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
3191 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3192 Petur Runolfsson <peturr02@ru.is>
3195 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
3196 no way to find out the conversion used by the underlying FILE*.
3197 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
3198 * testsuite/27_io/objects/char/9.cc: Tweak.
3200 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3203 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
3204 memory allocation/deallocation calls.
3205 * testsuite/ext/14648.cc: New.
3207 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
3210 * include/backward/bvector.h (bit_vector): Allocator is in std
3213 2004-03-19 Phil Edwards <phil@codesourcery.com>
3215 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
3216 not libiconv. SUBST this variable as well.
3217 * testsuite/Makefile.am (site.exp): New target, based on that
3218 created by automake. Also set libiconv.
3220 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
3221 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
3222 testsuite/Makefile.in: Regenerate.
3224 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
3226 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
3227 new_allocator for all hosts.
3228 * configure: Regenerate.
3230 2004-03-16 Paolo Carlini <pcarlini@suse.de>
3232 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
3233 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
3235 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3237 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3238 Adjust the logic underlying the parsing of symbol to deal
3239 correctly with an optional sign component (i.e., when either
3240 negative_sign or positive_sign is empty)
3241 * testsuite/22_locale/money_get/get/char/19.cc: New.
3242 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
3244 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3246 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3247 Do not accept an incomplete currency symbol.
3248 * testsuite/22_locale/money_get/get/char/18.cc: New.
3249 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
3251 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
3253 * config/allocator: New.
3254 * config/allocator/bitmap_allocator_base.h: New.
3255 * config/allocator/malloc_allocator_base.h: New.
3256 * config/allocator/mt_allocator_base.h: New.
3257 * config/allocator/new_allocator_base.h: New.
3258 * include/bits/allocator.h: Include c++allocator.h.
3259 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
3260 * aclocal.m4: Regenerate.
3261 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
3262 * configure: Regenerate.
3263 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
3264 * include/Makefile.in: Regenerate.
3265 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
3267 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3269 * include/bits/allocator.h: Revert.
3271 2004-03-12 Paolo Carlini <pcarlini@suse.de>
3273 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
3274 * include/bits/gslice_array.h: Add comment about DR 253.
3275 * include/bits/indirect_array.h: Likewise.
3276 * include/bits/mask_array.h: Likewise.
3277 * include/bits/slice_array.h: Likewise.
3279 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3281 * testsuite/20_util/allocator/14176.cc: New.
3282 * include/ext/mt_allocator.h: Formatting fixes.
3284 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
3286 * include/Makefile.am (ext_headers): Add
3287 ${ext_srcdir}/bitmap_allocator.h .
3288 * include/Makefile.in: Regenerate.
3289 * docs/html/ext/ballocator_doc.txt: New file.
3290 * include/ext/bitmap_allocator.h: New file.
3291 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
3293 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
3294 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
3295 test for the bitmap_allocator<>.
3296 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
3297 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
3298 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
3300 2004-03-11 Paolo Carlini <pcarlini@suse.de>
3302 * include/std/std_complex.h (pow(const complex&, const _Tp&),
3303 pow(const _Tp&, const complex&), pow(const complex&,
3304 const complex&)): Fully qualify with std:: a few calls.
3305 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
3307 2004-03-11 Steven Bosscher <stevenb@suse.de>
3310 * include/c_std/cmath.tcc (__cmath_power): Define inline.
3312 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
3314 * configure.ac: Bump AC_PREREQ to 2.59.
3316 2004-03-10 Paolo Carlini <pcarlini@suse.de>
3318 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
3320 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
3321 Paolo Carlini <pcarlini@suse.de>
3324 * include/std/std_complex.h (pow(const complex&, const _Tp&),
3325 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
3326 * testsuite/26_numerics/complex/13450.cc: New.
3328 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
3329 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
3331 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
3334 * include/bits/gslice_array.h (gslice_array()): Make public.
3335 (operator=(gslice_array)): Make public. Implement.
3336 * include/bits/indirect_array.h (indirect_array()): Make public.
3337 * include/bits/mask_array.h (mask_array()): Make public.
3338 (operator=(mask_array)): Make public. Implement.
3339 * include/bits/valarray_array.tcc (__valarray_copy):
3340 Comment. Add versions for gslice_array and mask_array.
3341 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
3343 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
3345 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
3347 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
3348 * testsuite/23_containers/set/modifiers/swap.cc: Same.
3349 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
3350 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
3351 * testsuite/23_containers/map/modifiers/swap.cc: Same.
3352 * testsuite/23_containers/list/modifiers/swap.cc: Same.
3354 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
3356 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
3359 * testsuite/23_containers/deque/modifiers/swap.cc: New.
3360 * testsuite/23_containers/list/modifiers/swap.cc: New.
3361 * testsuite/23_containers/map/modifiers/swap.cc: New.
3362 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
3363 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
3364 * testsuite/23_containers/set/modifiers/swap.cc: New.
3365 * testsuite/23_containers/vector/modifiers/swap.cc: New.
3367 2004-03-08 Petur Runolfsson <peturr02@ru.is>
3370 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
3372 2004-03-08 Paolo Carlini <pcarlini@suse.de>
3374 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
3375 * include/bits/stl_multiset.h: Add comment about DR 103.
3376 * include/bits/stl_set.h: Likewise.
3378 2004-03-08 Paolo Carlini <pcarlini@suse.de>
3380 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3381 The value _space_ indicates that at least one space is required
3383 * testsuite/22_locale/money_get/get/char/17.cc: New.
3384 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
3386 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
3387 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
3389 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
3390 Remove redundant conditional on __str.size().
3392 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
3394 * include/bits/allocator.h: Switch defaults to mt_alloc.
3396 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
3398 * include/ext/mt_allocator.h (_S_initialize): If
3399 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
3401 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
3404 * src/locale_init.cc (locale::locale): Lock critical regions with
3406 (locale::global): Same.
3407 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
3408 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
3409 (__glibcxx_mutex_lock): Same.
3411 * config/cpu/generic/atomicity.h: Remove
3412 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
3413 * src/misc-inst.cc: Move all locking bits out of this file.
3415 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
3416 * src/misc-inst.cc: Same.
3417 * config/cpu/hppa/atomicity.h: Same.
3419 * config/linker-map.gnu: Remove types in the signature of atomic
3420 exports, as they may vary.
3422 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3424 * include/bits/locale_facets.tcc: Tweak the comment preceding
3425 has_facet: doesn't throw.
3427 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3429 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
3430 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3431 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3432 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3433 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3434 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3435 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3436 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3438 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3440 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3441 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
3442 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
3443 * testsuite/testsuite_character.h (struct __gnu_test::character):
3445 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
3448 2004-03-05 Paolo Carlini <pcarlini@suse.de>
3450 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
3452 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
3454 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
3456 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
3458 * testsuite/23_containers/deque/invalidation/4.cc: Same.
3459 * testsuite/23_containers/list/invalidation/1.cc: Same.
3460 * testsuite/23_containers/list/invalidation/2.cc: Same.
3461 * testsuite/23_containers/list/invalidation/3.cc: Same.
3462 * testsuite/23_containers/list/invalidation/4.cc: Same.
3463 * testsuite/23_containers/map/invalidation/2.cc: Same.
3464 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
3465 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3466 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
3467 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3468 * testsuite/23_containers/set/invalidation/1.cc: Same.
3469 * testsuite/23_containers/set/invalidation/2.cc: Same.
3470 * testsuite/23_containers/vector/invalidation/1.cc: Same.
3471 * testsuite/23_containers/vector/invalidation/2.cc: Same.
3472 * testsuite/23_containers/vector/invalidation/3.cc: Same.
3473 * testsuite/23_containers/vector/invalidation/4.cc: Same.
3475 2004-03-04 Paolo Carlini <pcarlini@suse.de>
3477 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
3479 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
3481 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
3482 from the dg-options.
3483 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
3484 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
3485 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
3486 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
3487 * testsuite/23_containers/vector/resize/1.cc: Likewise.
3488 * testsuite/26_numerics/complex_value.cc: Likewise.
3489 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
3490 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
3491 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
3492 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
3493 * testsuite/27_io/objects/char/5.cc: Likewise.
3494 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
3495 * testsuite/backward/11460.cc: Likewise.
3496 * testsuite/thread/pthread7-rope.cc: Likewise.
3498 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
3499 missing test variable.
3500 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
3501 missing test variable.
3503 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
3505 * testsuite/20_util/allocator/1.cc: Provide explicit
3506 instantiations for non-weak systems.
3507 * testsuite/20_util/binders.cc: Same.
3508 * testsuite/20_util/allocator/8230.cc: Same.
3509 * testsuite/20_util/allocator/10378.cc: Same.
3510 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
3511 * testsuite/22_locale/ctype/is/char/2.cc: Same.
3512 * testsuite/thread/pthread7-rope.cc: Same.
3513 * testsuite/thread/pthread6.cc: Same.
3514 * testsuite/thread/pthread5.cc: Same.
3515 * testsuite/thread/pthread4.cc: Same.
3516 * testsuite/thread/pthread1.cc: Same.
3517 * testsuite/ext/rope.cc: Same.
3518 * testsuite/ext/hash_set.cc: Same.
3519 * testsuite/ext/hash_map.cc: Same.
3520 * testsuite/ext/concept_checks.cc: Same.
3521 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
3522 * testsuite/25_algorithms/unique/2.cc: Same.
3523 * testsuite/25_algorithms/unique/1.cc: Same.
3524 * testsuite/25_algorithms/rotate.cc: Same.
3525 * testsuite/25_algorithms/min_max.cc: Same.
3526 * testsuite/25_algorithms/equal.cc: Same.
3527 * testsuite/24_iterators/rel_ops.cc: Same.
3528 * testsuite/24_iterators/iterator.cc: Same.
3529 * testsuite/24_iterators/insert_iterator.cc: Same.
3530 * testsuite/24_iterators/front_insert_iterator.cc: Same.
3531 * testsuite/24_iterators/back_insert_iterator.cc: Same.
3532 * testsuite/23_containers/vector/resize/1.cc: Same.
3533 * testsuite/23_containers/vector/modifiers/2.cc: Same.
3534 * testsuite/23_containers/vector/modifiers/1.cc: Same.
3535 * testsuite/23_containers/vector/invalidation/4.cc: Same.
3536 * testsuite/23_containers/vector/invalidation/3.cc: Same.
3537 * testsuite/23_containers/vector/invalidation/2.cc: Same.
3538 * testsuite/23_containers/vector/invalidation/1.cc: Same.
3539 * testsuite/23_containers/vector/element_access/1.cc: Same.
3540 * testsuite/23_containers/vector/cons/6513.cc: Same.
3541 * testsuite/23_containers/vector/cons/3.cc: Same.
3542 * testsuite/23_containers/vector/cons/2.cc: Same.
3543 * testsuite/23_containers/vector/cons/1.cc: Same.
3544 * testsuite/23_containers/vector/capacity/8230.cc: Same.
3545 * testsuite/23_containers/vector/capacity/1.cc: Same.
3546 * testsuite/23_containers/vector/bool/6886.cc: Same.
3547 * testsuite/23_containers/stack/members/7158.cc: Same.
3548 * testsuite/23_containers/set/invalidation/2.cc: Same.
3549 * testsuite/23_containers/set/invalidation/1.cc: Same.
3550 * testsuite/23_containers/queue/members/7157.cc: Same.
3551 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
3552 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3553 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3554 * testsuite/23_containers/multiset/insert/1.cc: Same.
3555 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3556 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3557 * testsuite/23_containers/map/operators/1.cc: Same.
3558 * testsuite/23_containers/map/invalidation/2.cc: Same.
3559 * testsuite/23_containers/map/invalidation/1.cc: Same.
3560 * testsuite/23_containers/map/insert/1.cc: Same.
3561 * testsuite/23_containers/list/operators/4.cc: Same.
3562 * testsuite/23_containers/list/operators/3.cc: Same.
3563 * testsuite/23_containers/list/operators/2.cc: Same.
3564 * testsuite/23_containers/list/operators/1.cc: Same.
3565 * testsuite/23_containers/list/modifiers/3.cc: Same.
3566 * testsuite/23_containers/list/modifiers/2.cc: Same.
3567 * testsuite/23_containers/list/modifiers/1.cc: Same.
3568 * testsuite/23_containers/list/invalidation/4.cc: Same.
3569 * testsuite/23_containers/list/invalidation/3.cc: Same.
3570 * testsuite/23_containers/list/invalidation/2.cc: Same.
3571 * testsuite/23_containers/list/invalidation/1.cc: Same.
3572 * testsuite/23_containers/list/cons/9.cc: Same.
3573 * testsuite/23_containers/list/cons/8.cc: Same.
3574 * testsuite/23_containers/list/cons/7.cc: Same.
3575 * testsuite/23_containers/list/cons/6.cc: Same.
3576 * testsuite/23_containers/list/cons/5.cc: Same.
3577 * testsuite/23_containers/list/cons/4.cc: Same.
3578 * testsuite/23_containers/list/cons/3.cc: Same.
3579 * testsuite/23_containers/list/cons/2.cc: Same.
3580 * testsuite/23_containers/list/cons/1.cc: Same.
3581 * testsuite/23_containers/list/capacity/1.cc: Same.
3582 * testsuite/23_containers/deque/operators/1.cc: Same.
3583 * testsuite/23_containers/deque/invalidation/4.cc: Same.
3584 * testsuite/23_containers/deque/invalidation/3.cc: Same.
3585 * testsuite/23_containers/deque/invalidation/2.cc: Same.
3586 * testsuite/23_containers/deque/invalidation/1.cc: Same.
3587 * testsuite/23_containers/deque/cons/2.cc: Same.
3588 * testsuite/23_containers/deque/cons/1.cc: Same.
3590 * src/allocator.cc: Add char, wchar_t instantiations
3591 to match extern template declarations in memory.h.
3593 2004-03-03 Paolo Carlini <pcarlini@suse.de>
3595 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3596 Fix warning regression.
3598 2004-03-03 Paolo Carlini <pcarlini@suse.de>
3600 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3601 Deal properly with empty __digits and negative frac_digits,
3604 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
3606 * docs/html/documentation.html: Regenerate.
3608 2004-03-02 Paolo Carlini <pcarlini@suse.de>
3611 * include/bits/postypes.h (class streamoff): Remove, now
3612 streamoff is just typedef a 64 bit signed integer type.
3613 (class fpos): Tweak consistently.
3614 * testsuite/27_io/fpos/14320-1.cc: New.
3615 * testsuite/27_io/fpos/14320-2.cc: New.
3616 * testsuite/27_io/fpos/14320-3.cc: New.
3617 * testsuite/27_io/fpos/14320-4.cc: New.
3618 * testsuite/27_io/fpos/14320-5.cc: New.
3619 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
3621 2004-03-02 Paolo Carlini <pcarlini@suse.de>
3623 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3624 Reorganize a bit the main parsing loop, thus early detecting
3625 an empty value component.
3626 * testsuite/22_locale/money_get/get/char/16.cc: New.
3627 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
3629 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
3631 Support automake 1.8.2
3632 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
3633 * po/Makefile.am (EXTRA_DIST): New.
3634 * po/Makefile.in: Regenerate.
3635 * Makefile.in: Same.
3636 * include/Makefile.in: Same.
3637 * libmath/Makefile.in: Same.
3638 * libsupc++/Makefile.in: Same.
3639 * src/Makefile.in: Same.
3640 * testsuite/Makefile.in: Same.
3642 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
3643 __GXX_WEAK__ instead of SUPPORTS_WEAK.
3644 (${host_builddir}/gthr-default.h): Same.
3645 (${host_builddir}/gthr.h): Same.
3646 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
3647 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
3649 * aclocal.m4: Regenerate.
3650 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
3651 * config.h.in: Regenerate.
3654 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
3656 Support autoconf 2.59
3657 * acinclude.m4: Quote correctly.
3658 * aclocal.m4: Regenerate.
3661 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
3663 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
3665 * docs/html/18_support/howto.html: Add bit about writing to
3666 stderr, mostly by Zack.
3668 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3670 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3671 money_get<>::do_get(string_type&)): ... and two more.
3673 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3675 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3676 Fix thinkos in the switch from string_type& to string& as last
3679 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3681 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3682 Also when parsing exponent sign, first look for thousands_sep
3683 and decimal_point; tweak a bit.
3684 * testsuite/22_locale/num_get/get/char/15.cc: New.
3685 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
3687 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3688 num_get<>::_M_extract_int): Reorder some conditionals.
3690 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3692 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3693 Consistently with numpunct, enforce the requirements in
3694 22.2.6.3, p3 for the thousands separators; tweak a bit.
3695 * testsuite/22_locale/money_get/get/char/15.cc: New.
3696 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
3698 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
3700 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
3701 testsuite_files from correct multilib blddir when running
3704 2004-02-29 Phil Edwards <phil@codesourcery.com>
3706 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
3707 the summary file to the logfile.
3708 * testsuite/Makefile.in: Regenerate.
3710 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3712 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
3714 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
3715 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
3717 2004-02-28 Paolo Carlini <pcarlini@suse.de>
3719 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3720 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
3721 no 'decimal-point' in the middle: in this case too we must fix
3722 up __found_grouping; slightly tweak.
3723 * testsuite/22_locale/num_get/get/char/14.cc: New.
3724 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
3726 2004-02-27 Eric Christopher <echristo@redhat.com>
3727 Phil Edwards <phil@codesourcery.com>
3729 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
3730 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
3731 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
3732 testsuite/22_locale/collate/hash/wchar_t/2.cc,
3733 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
3734 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
3735 testsuite/22_locale/collate/transform/wchar_t/2.cc,
3736 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
3737 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3738 Use dg-require-iconv.
3739 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
3741 2004-02-27 Phil Edwards <phil@codesourcery.com>
3742 Eric Christopher <echristo@redhat.com>
3744 * testsuite/config/default.exp: Update with comments.
3745 (${tool}_target_compile): New wrapper routine.
3746 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
3747 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
3749 (load_gcc_lib, v3track): New routines.
3750 (v3-init): Rename to libstdc++_init.
3751 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
3752 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
3754 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
3756 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
3758 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
3760 * config/os/irix/irix5.2/atomicity.h: Merge..
3761 * config/os/irix/irix6.5/atomicity.h: Merge..
3762 * config/os/irix/atomicity.h: ...into this.
3763 * config/os/irix/atomic_word.h: New.
3764 * configure.host: Set atomic_word_dir for irix.
3766 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
3767 * i386/atomicity.h: Same.
3768 * m68k/atomicity.h: Same.
3769 * sparc/atomicity.h: Same.
3771 2004-02-27 David Edelsohn <edelsohn@gnu.org>
3773 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
3774 static, and inline keywords.
3776 2004-02-27 Paolo Carlini <pcarlini@suse.de>
3778 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3779 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
3780 call reserve on the __tmp_gruping string.
3781 (num_get<>::_M_extract_float): Don't append unnecessarily a
3782 char() to the returned string.
3783 * include/bits/locale_facets.tcc: Trivial reformattings.
3785 2004-02-27 Paolo Carlini <pcarlini@suse.de>
3787 * include/bits/locale_facets.h (money_get<>::_M_extract):
3788 Change signature: now takes a plain string&.
3789 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3790 Update consistently the definition; use the moneypunct cache
3791 to parse the value; use swap to change __units.
3792 (money_get<>::do_get(long double&)): Update call of _M_extract,
3793 avoid ctype::narrow, not correct wrt the standard.
3794 (money_get<>::do_get(string_type&)): Likewise, update call
3795 of _M_extract, use ctype::widen.
3796 * src/locale-inst.cc: Tweak instantiations of _M_extract.
3798 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
3800 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
3801 * testsuite/demangle/abi_examples/02.cc: Likewise.
3802 * testsuite/demangle/regression/cw-11.cc: Likewise.
3803 * testsuite/demangle/regression/cw-16.cc: Change two expected
3804 results to match libiberty demangler output.
3806 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
3809 * libsupc++/Makefile.am: Use libiberty demangler.
3810 (c_sources): Add cp-demangle.c.
3811 * libsupc++/Makefile.in: Regenerate.
3812 * src/Makefile.am (sources): Remove demangle.cc.
3813 * src/Makefile.in: Regenerate.
3814 * include/Makefile.am (bits_headers): Move demangle.h.
3815 (ext_headers): ...here.
3816 * include/Makefile.in: Regenerate.
3817 * include/bits/demangle.h: Move...
3818 * include/ext/demangle.h: ...here.
3819 * src/demangle.cc: Remove.
3821 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
3823 * include/bits/demangle.h: Add type template parameter to all
3824 templates with just an Allocator template parameter.
3826 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
3828 * include/bits/atomicity.h: New, forward declarations for __atomic_add
3829 and __exchange_and_add.
3830 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
3831 * config/cpu/cris/atomic_word.h: Same.
3832 * config/cpu/sparc/atomic_word.h: Same.
3833 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
3834 Qualifiy with __gnu_cxx.
3835 (_Callback_list::_M_add_reference): Same.
3836 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
3837 (locale::facet::_M_remove_reference): Same.
3838 (locale::_Impl::_M_add_reference): Add.
3839 (locale::_Impl::_M_remove_reference): Same.
3840 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
3841 (basic_string::_Rep::_M_dispose): Same.
3842 * src/ios.cc (ios_base::xalloc): Same.
3843 * src/ios_init.cc (ios_base::Init::Init): Same.
3844 (ios_base::Init::~Init): Same.
3845 * src/locale.cc (locale::id::_M_id): Same.
3846 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
3847 static, and inline keywords.
3848 * config/cpu/alpha/atomicity.h: Same.
3849 * config/cpu/cris/atomicity.h: Same.
3850 * config/cpu/generic/atomicity.h: Same.
3851 * config/cpu/hppa/atomicity.h: Same.
3852 * config/cpu/i386/atomicity.h: Same.
3853 * config/cpu/ia64/atomicity.h: Same.
3854 * config/cpu/m68k/atomicity.h: Same.
3855 * config/cpu/mips/atomicity.h: Same.
3856 * config/cpu/powerpc/atomicity.h: Same.
3857 * config/cpu/s390/atomicity.h: Same.
3858 * config/cpu/sparc/atomicity.h: Same.
3860 * src/Makefile.am (host_sources): Add atomicity.cc.
3861 (atomicity.cc): New rule.
3862 * src/Makefile.in: Regenerate.
3863 * include/Makefile.am (host_headers): Remove host atomicity.h.
3864 (host_headers): Add atomic_word.h.
3865 (bits_headers): Add bits atomicity.h.
3866 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3867 * include/Makefile.in: Regenerate.
3868 * configure.host (atomic_word_dir): Add.
3869 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
3870 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3871 * configure: Regenerate.
3872 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
3874 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
3875 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3877 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
3879 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
3880 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
3881 Fix markup, more <link> tags.
3883 2004-02-25 Carlo Wood <carlo@alinoe.com>
3886 namespace __gnu_cxx::demangler
3887 (session<Allocator>::qualifier_list_Allocator): Add
3888 (session<Allocator>::M_qualifier_list_alloc): Add
3889 (session<Allocator>::decode_type_with_postfix):
3890 Use M_qualifier_list_alloc instead of calling operator new/delete.
3892 2004-02-24 Paolo Carlini <pcarlini@suse.de>
3895 * include/bits/postypes.h (class streamoff): Add operator++(),
3896 operator++(int), operator--() and operator--(int).
3897 * testsuite/27_io/fpos/14252.cc: New.
3899 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
3901 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
3902 error in handling of hex constants.
3904 2004-02-24 Paolo Carlini <pcarlini@suse.de>
3906 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3907 Prefer basic_string::append to operator+= and a temporary.
3909 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
3911 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
3912 Only use fputs, not write.
3914 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
3916 * include/ext/malloc_allocator.h: Add operators ==, !=.
3917 * include/ext/new_allocator.h: Add operators ==, !=.
3918 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
3919 (__mt_alloc::_S_get_options): New.
3920 (__mt_alloc::_S_set_options): New.
3921 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
3922 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
3923 Move functions out of line, simplify, format.
3924 * src/allocator.cc: Simplify explicit instantiations.
3925 * include/bits/allocator.h: Tweak.
3927 2004-02-22 Paolo Carlini <pcarlini@suse.de>
3929 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3930 Restructure formatting of value component, first dealing with
3931 the non-decimal digits; use reserve.
3933 2004-02-22 Paolo Carlini <pcarlini@suse.de>
3935 * include/bits/locale_facets.h (class money_get): Inherit
3936 from money_base too; tweak declaration of _M_extract, now
3937 parameterized on _Intl too.
3938 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3939 Update definition to use the cache; call reserve on __res to
3940 avoid multiple reallocations; fix parsing of sign component
3941 according to 22.2.6.1.2, p3.
3942 (money_get<>::do_get(long double&),
3943 money_get<>::do_get(string_type&)): Update calls of _M_extract.
3944 * src/locale-inst.cc: Add instantiations of
3945 money_get::_M_extract<false> and money_get::_M_extract<true>.
3946 * testsuite/22_locale/money_get/get/char/14.cc: New.
3947 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
3949 2004-02-21 Mark Mitchell <mark@codesourcery.com>
3951 * libsupc++/vterminate.cc
3952 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
3954 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
3956 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3957 not set RLIMIT_AS on HP-UX.
3959 2004-02-21 Mark Mitchell <mark@codesourcery.com>
3961 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3962 not set RLIMIT_AS on HP-UX.
3964 2004-02-21 Paolo Carlini <pcarlini@suse.de>
3966 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
3967 _S_zero, _S_end } enum, _S_atoms.
3968 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
3969 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
3970 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
3971 (__moneypunct_cache<>::~__moneypunct_cache): Update.
3972 (__moneypunct_cache<>::_M_cache): Fill the cache.
3973 (class moneypunct): Tweak __cache_type typedef.
3974 (class money_put): Inherit from money_base too; tweak declaration
3975 of _M_insert, now parameterized on _Intl.
3976 * include/bits/locale_facets.tcc
3977 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
3978 (money_put<>::_M_insert): Update definition to use the cache;
3979 call reserve on __res to avoid multiple reallocations.
3980 (money_put<>::do_put(long double),
3981 money_put<>::do_put(const string_type&): Update calls of _M_insert.
3982 * config/locale/generic/monetary_members.cc
3983 (moneypunct<char, true>::_M_initialize_moneypunct,
3984 moneypunct<char, false>::_M_initialize_moneypunct,
3985 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
3986 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
3987 * config/locale/gnu/monetary_members.cc: Likewise.
3988 * config/locale/gnu/monetary_members.cc
3989 (moneypunct<wchar_t, true>::~moneypunct(),
3990 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
3991 * src/globals_locale.cc: Tweak fake_money_cache_c.
3992 * src/locale-inst.cc: Add instantiations for
3993 money_put::_M_insert<false> and money_put::_M_insert<true> and
3994 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
3995 * src/locale_facets.cc: Define money_base::_S_atoms.
3996 * src/locale_init.cc: Update placement new of
3997 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
3998 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
4000 * config/locale/generic/numeric_members.cc: Clean up.
4001 * config/locale/gnu/numeric_members.cc: Likewise.
4002 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
4003 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
4004 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
4005 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
4006 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
4007 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
4009 2004-02-20 Mark Mitchell <mark@codesourcery.com>
4011 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
4012 FIFO for writing with ios_base::in|ios_base::out.
4013 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
4014 * testsuite/27_io/objects/char/7.cc: Likewise.
4015 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
4018 2004-02-19 David Edelsohn <edelsohn@gnu.org>
4020 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
4021 from iso-8859-1 to ISO8859-1.
4022 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
4023 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
4024 * 22_locale/collate/hash/wchar_t/2.cc: Same.
4025 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
4026 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
4027 * 22_locale/collate/transform/wchar_t/2.cc: Same.
4028 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
4029 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
4031 2004-02-18 Paolo Carlini <pcarlini@suse.de>
4033 * include/bits/locale_facets.h (money_get<>::_M_extract):
4034 New, helper for do_get.
4035 (money_put<>::_M_insert): Likewise, for do_put.
4036 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
4037 money_put<>::_M_insert): Define.
4038 (money_get<>::do_get(long double&), money_get<>::do_get(
4039 string_type&), money_put::do_put(long double),
4040 money_put::do_put(const string_type&)): Use the helpers.
4042 2004-02-18 Paolo Carlini <pcarlini@suse.de>
4044 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4045 Rewrite, avoiding recursion.
4046 (__gnu_internal::xwrite): Minor tweaks.
4048 2004-02-17 Stefan Olsson <stefan@xapa.se>
4050 * include/ext/mt_allocator.h: Removed the last
4051 pointer. Deallocated blocks are now added to the front of
4052 freelists as proposed by Felix Yen. This gives roughly 10%
4053 performance boost and saves some memory.
4054 * docs/html/ext/mt_allocator.html: Change due to that deallocated
4055 blocks now are added to the front of freelists. The reason to this
4056 approach is also explained.
4058 2004-02-17 Paolo Carlini <pcarlini@suse.de>
4060 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4061 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
4062 grouping fidelity conditional.
4064 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4066 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
4067 Qualify exception with std::.
4068 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
4069 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4070 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4071 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4072 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4074 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4076 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
4077 for now that the catch block is not reached.
4078 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
4080 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4082 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4083 Fix parsing of the remaining sign characters.
4084 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
4085 the input is scanned 'til eof.
4086 * 22_locale/money_get/get/char/4.cc: Likewise.
4087 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
4088 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
4089 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
4090 not do_pos_format: the former is the only one that matters during
4092 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
4094 * 22_locale/money_get/get/char/6.cc: Minor tweak.
4095 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
4097 2004-02-15 David Asher <david.asher@cavium.com>
4100 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
4101 access __olds beyond __oldlen.
4103 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4105 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
4106 sure the exception is actually thrown.
4107 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4108 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4109 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4111 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4114 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
4115 In case of conversion errors, throw ios_failure; simplify.
4116 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
4117 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4118 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
4119 previously we didn't throw in case of conversion errors, instead
4120 just returned eof().
4121 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4122 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4123 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4125 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
4126 Trivial simplification of a conditional.
4128 2004-02-12 Paolo Carlini <pcarlini@suse.de>
4130 PR libstdc++/13731 (final part: writev)
4131 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4132 New, a wrapper around writev() handling partial writes.
4133 (__basic_file<char>::xwrite): Move to __gnu_internal and make
4135 (__basic_file<char>::xsputn): Update call.
4136 (__basic_file<char>::xsputn_2): Likewise.
4137 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4138 Don't declare, now static.
4140 2004-02-11 Stefan Olsson <stefan@xapa.se>
4142 * docs/html/ext/mt_allocator.html: New.
4144 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
4146 * docs/html/20_util/allocator.html: New file, consolidate
4147 allocator information here. Revamp.
4148 * docs/html/documentation.html: Change links.
4149 * docs/html/20_util/howto.html: Same.
4150 * docs/html/ext/howto.html: Same.
4152 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4154 PR libstdc++/13731 (first part: write)
4155 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4157 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
4158 Define it: a wrapper around write() handling partial write.
4159 (__basic_file<char>::xsputn): Use it.
4160 (__basic_file<char>::xsputn_2): Likewise.
4162 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4163 Petur Runolfsson <peturr02@ru.is>
4166 * include/std/std_istream.h (operator>>(__istream_type& (*)
4167 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
4168 operator>>(ios_base& (*)(ios_base&))): Declare inline.
4169 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
4170 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
4171 operator<<(ios_base& (*) (ios_base&))): Likewise.
4172 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
4174 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
4177 * config/linker-map.gnu: Add typeinfo and typeinfo name for
4178 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
4181 * config/linker-map.gnu: Add typeinfo and typeinfo name for
4182 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
4184 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
4186 * include/ext/pool_allocator.h: Include c++config.h.
4188 2004-02-09 Stefan Olsson <stefan@xapa.se>
4190 * include/ext/mt_allocator.h: thread_id is unused in non threaded
4191 applications and now has a ifdef to remove it completely on
4192 compilers without thread support. Include stdlib.h due to a
4193 compiler warning on getenv().
4195 2004-02-09 Paul Brook <paul@codesourcery.com>
4197 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
4199 2004-02-09 Paolo Carlini <pcarlini@suse.de>
4202 * src/locale_init.cc (locale::global(const locale&)): Use
4203 locale::name() in order to decide whether calling setlocale.
4204 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
4206 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
4207 Avoid computing &= unnecessarily.
4209 2004-02-09 James E Wilson <wilson@specifixinc.com>
4212 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
4213 __builtin_extend_pointer.
4215 2004-02-09 Paolo Carlini <pcarlini@suse.de>
4218 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
4219 Don't leave dangling pointers.
4220 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
4221 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
4222 facet is needed in the final test.
4224 2004-02-09 Bernardo Innocenti <bernie@develer.com>
4226 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
4227 * configure: Regenerate.
4229 2004-02-08 Richard Henderson <rth@redhat.com>
4232 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
4233 uncaughtExceptions during nested catch rethrow.
4234 * testsuite/18_support/14026.cc: New.
4236 2004-02-08 Paolo Carlini <pcarlini@suse.de>
4238 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
4239 When working in place remember to set the state to sharable
4240 (otherwise, _M_mutate does it).
4242 2004-02-08 Bernardo Innocenti <bernie@develer.com>
4244 * include/bits/allocator.h, include/bits/basic_ios.h,
4245 include/bits/basic_ios.tcc, include/bits/basic_string.h,
4246 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
4247 include/bits/char_traits.h, include/bits/codecvt.h,
4248 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
4249 include/bits/demangle.h, include/bits/deque.tcc,
4250 include/bits/fstream.tcc, include/bits/functexcept.h,
4251 include/bits/gslice.h, include/bits/gslice_array.h,
4252 include/bits/indirect_array.h, include/bits/ios_base.h,
4253 include/bits/istream.tcc, include/bits/list.tcc,
4254 include/bits/locale_classes.h, include/bits/locale_facets.h,
4255 include/bits/locale_facets.tcc, include/bits/localefwd.h,
4256 include/bits/mask_array.h, include/bits/ostream.tcc,
4257 include/bits/postypes.h, include/bits/slice_array.h,
4258 include/bits/sstream.tcc, include/bits/stl_algo.h,
4259 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
4260 include/bits/stl_construct.h, include/bits/stl_deque.h,
4261 include/bits/stl_function.h, include/bits/stl_heap.h,
4262 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
4263 include/bits/stl_list.h, include/bits/stl_map.h,
4264 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
4265 include/bits/stl_numeric.h, include/bits/stl_pair.h,
4266 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
4267 include/bits/stl_relops.h, include/bits/stl_set.h,
4268 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
4269 include/bits/stl_threads.h, include/bits/stl_tree.h,
4270 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
4271 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
4272 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
4273 include/bits/type_traits.h, include/bits/valarray_after.h,
4274 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
4275 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
4276 trailing whitespace.
4278 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4280 * include/bits/basic_string.h: Fix comment.
4282 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4284 * include/bits/stl_construct.h: Wrap overlong lines, reformat
4285 according to the coding standards.
4286 * include/bits/stl_pair.h: Likewise.
4287 * include/bits/stl_raw_storage_iter.h: Likewise.
4288 * include/bits/stl_stack.h: Likewise.
4289 * include/bits/stl_uninitialized.h: Likewise.
4290 * include/bits/stream_iterator.h: Likewise.
4291 * include/bits/streambuf_iterator.h: Likewise.
4292 * include/bits/type_traits.h: Likewise.
4294 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4296 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4299 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
4301 * scripts/check_performance: Support PCH.
4303 * scripts/check_performance (CXX): Add -DNOTHREAD.
4304 * testsuite/performance/20_util/allocator/insert.cc: Integrate
4305 threaded tests from insert_insert.cc. Tweak iterations,
4306 remove special cases.
4307 * testsuite/performance/20_util/allocator/insert_insert.cc:
4308 Make all tests single-threaded. Tweak iterations.
4309 * testsuite/performance/20_util/allocator/map_thread.cc:
4311 * testsuite/performance/20_util/allocator/producer_consumer.cc:
4314 2004-02-05 Geoffrey Keating <geoffk@apple.com>
4318 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
4319 'gcc-lib'. Add comment about poorly-named variables.
4320 * aclocal.m4: Regenerate.
4321 * configure: Regenerate.
4323 2004-02-05 Paolo Carlini <pcarlini@suse.de>
4325 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4326 Thousands-sep are always optional; thousands-sep are not allowed
4327 after the decimal_point.
4328 * testsuite/22_locale/money_get/get/char/12.cc: New.
4329 * testsuite/22_locale/money_get/get/char/13.cc: New.
4330 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
4331 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
4333 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
4334 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
4335 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
4336 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
4337 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
4338 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
4339 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
4340 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
4342 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
4344 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
4346 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
4348 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
4350 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
4351 it to decide whether FIONREAD should take an off_t or int argument.
4353 2004-02-05 Paolo Carlini <pcarlini@suse.de>
4355 * include/bits/stl_function.h: Minor formatting changes.
4357 2004-02-04 Zack Weinberg <zack@codesourcery.com>
4359 Revert previous change to config/abi/*/baseline_symbols.txt.
4361 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
4362 Zack Weinberg <zack@codesourcery.com>
4364 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
4366 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
4367 (__basic_file<char>::_M_open_mode): Delete.
4368 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
4370 * testsuite/27_io/basic_filebuf/close/char/9964.cc
4371 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4372 Correct flags to filebuf::open calls.
4374 * config/abi/alpha-freebsd5/baseline_symbols.txt
4375 * config/abi/alpha-linux-gnu/baseline_symbols.txt
4376 * config/abi/hppa-linux-gnu/baseline_symbols.txt
4377 * config/abi/i386-freebsd4/baseline_symbols.txt
4378 * config/abi/i386-freebsd5/baseline_symbols.txt
4379 * config/abi/i486-linux-gnu/baseline_symbols.txt
4380 * config/abi/ia64-linux-gnu/baseline_symbols.txt
4381 * config/abi/mips-linux-gnu/baseline_symbols.txt
4382 * config/abi/sparc-freebsd5/baseline_symbols.txt
4383 * config/abi/sparc-linux-gnu/baseline_symbols.txt
4384 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
4385 Remove entry for __basic_file<char>::_M_open_mode.
4387 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
4389 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
4391 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
4393 * testsuite/performance/20_util/producer_consumer.cc: New.
4394 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
4396 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
4398 * testsuite/performance/20_util/allocator.cc: Move to..
4399 * testsuite/performance/20_util/allocator/insert.cc: ...here.
4400 * testsuite/performance/20_util/allocator_thread.cc: Move to...
4401 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
4402 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
4403 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
4405 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
4407 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
4408 * docs/html/faq/index.txt: Regenerate.
4410 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
4412 * include/ext/debug_allocator.h: _M_extra now stands for the
4413 number of extra objects instead of the number of extra bytes.
4414 (debug_allocator::allocate): Adjust.
4415 (debug_allocator::deallocate): Adjust.
4417 * include/ext/pool_allocator.h: Fix typo.
4419 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
4420 Benjamin Kosnik <bkoz@redhat.com>
4422 * testsuite/performance/20_util/allocator.cc: Add map,
4424 * testsuite/performance/20_util/allocator_thread.cc: Same.
4426 2004-02-03 Paolo Carlini <pcarlini@suse.de>
4428 * include/bits/basic_string.h (insert(iterator)): Remove,
4429 non-standard and already scheduled for removal.
4431 2004-02-03 Paolo Carlini <pcarlini@suse.de>
4433 * include/bits/stl_iterator_base_funcs.h: Minor formatting
4434 and indentation tweaks.
4435 * include/bits/stl_iterator_base_types.h: Likewise.
4436 * include/bits/stl_list.h: Likewise.
4437 * include/bits/stl_map.h: Likewise.
4438 * include/bits/stl_tempbuf.h: Likewise.
4440 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
4442 * include/bits/gslice.h, include/bits/gslice_array.h,
4443 include/bits/indirect_array.h, include/bits/mask_array.h,
4444 include/bits/slice_array.h, include/bits/stl_numeric.h,
4445 include/std/std_valarray.h: Update copyright years.
4447 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
4449 * include/bits/gslice.h (gslice): Document.
4450 * include/bits/gslice_array.h (gslice_array): Document.
4451 * include/bits/indirect_array (indirect_array): Document.
4452 * include/bits/mask_array (mask_array): Document.
4453 * include/bits/slice_array.h (slice,slice_array): Document.
4454 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
4455 adjacent_difference): Document
4456 * include/std/std_valarray.h (valarray): Document.
4458 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
4460 * docs/html/19_diagnostics/howto.html: Move verbose terminate
4462 * docs/html/18_support/howto.html: Here.
4463 * docs/html/documentation.html: Add reference here.
4465 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4467 * config/locale/gnu/c++locale_internal.h: Remove prototypes
4468 of no longer used GLIBC thread locale functions.
4470 2004-02-02 Eric Christopher <echristo@redhat.com>
4471 Zack Weinberg <zack@codesourcery.com>
4473 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
4475 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
4476 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
4477 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
4478 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
4479 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
4480 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
4481 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
4482 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4485 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4487 * include/bits/stl_function.h: Additional minor tweaks.
4488 * include/bits/stl_multiset.h: Likewise.
4490 * include/bits/stl_queue.h: Minor tweaks.
4492 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4494 PR libstdc++/13976 (continued)
4495 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
4496 Make the second parameter unnamed, to void unused parameter
4498 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
4500 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4503 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
4504 Make the second parameter unnamed, to void unused parameter
4506 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
4507 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
4509 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4511 * include/bits/stl_algo.h: Additional minor tweaks.
4512 * include/bits/stl_map.h: Likewise.
4513 * include/bits/stl_multimap.h: Likewise.
4514 * include/bits/stl_multiset.h: Likewise.
4515 * include/bits/stl_set.h: Likewise.
4516 * include/bits/stl_tree.h: Likewise.
4518 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4520 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
4523 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4525 * include/bits/stl_function.h: Additional minor tweaks.
4527 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4529 * include/bits/deque.tcc: Wrap overlong lines, constify
4530 a few variables, reformat according to the coding standards.
4531 * include/bits/list.tcc: Likewise.
4532 * include/bits/stl_deque.h: Likewise.
4533 * include/bits/stl_function.h: Likewise.
4534 * include/bits/stl_iterator.h: Likewise.
4535 * include/bits/stl_iterator_base_funcs.h: Likewise.
4536 * include/bits/stl_iterator_base_types.h: Likewise.
4537 * include/bits/stl_list.h: Likewise.
4538 * include/bits/stl_map.h: Likewise.
4539 * include/bits/stl_multimap.h: Likewise.
4540 * include/bits/stl_multiset.h: Likewise.
4541 * include/bits/stl_relops.h: Likewise.
4542 * include/bits/stl_set.h: Likewise.
4544 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4546 * include/bits/stl_bvector.h: Wrap overlong lines, constify
4547 a few variables, reformat according to the coding standards.
4548 * include/bits/stl_tree.h: Likewise.
4550 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4552 * include/bits/stl_algo.h: Minor additional reformat, add
4554 * include/bits/stl_algobase.h: Add copyright year.
4556 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4558 * include/bits/stl_algo.h: Wrap overlong lines, constify
4559 a few variables, reformat according to the coding standards.
4560 * include/bits/stl_algobase.h: Likewise.
4561 * include/bits/stl_heap.h: Likewise.
4563 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4565 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
4567 * include/bits/basic_string.h: Fix two comments.
4569 2004-01-31 Per Bothner <per@bothner.com>
4571 * include/ext/mt_allocator.h
4572 (__mt_alloc::_S_thread_freelist_mutex): Guard with
4573 __GTHREAD_MUTEX_INIT.
4575 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4577 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
4579 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4581 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
4582 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
4583 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
4585 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
4587 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
4588 Don't use clear, but instead assign. Use insert.
4590 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
4592 * src/demangle.cc: Add instantiations.
4593 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
4594 * src/Makefile.in: Regenerate.
4596 2004-01-30 David Edelsohn <edelsohn@gnu.org>
4598 * src/allocator.cc: Protect _S_get_thread_id() and
4599 _S_thread_key_destr() with #ifdef __GTHREADS.
4601 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4603 Reshuffle performance testsuite.
4604 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
4605 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
4606 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
4607 fstream_seek_write.cc, ifstream_extract_float.cc,
4608 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
4609 list_create_fill_sort.cc, map_create_fill.cc,
4610 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
4611 ofstream_insert_float.cc, ofstream_insert_int.cc,
4612 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
4613 wchar_t_out.cc: Split into...
4614 * testsuite/performance/20_util/allocator.cc: New.
4615 * testsuite/performance/20_util/allocator_map_thread.cc: New.
4616 * testsuite/performance/20_util/allocator_thread.cc: New.
4617 * testsuite/performance/21_strings/string_append: New.
4618 * testsuite/performance/22_locale/is_wchar_t.cc: New.
4619 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
4620 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
4621 * testsuite/performance/22_locale/wchar_t_in.cc: New.
4622 * testsuite/performance/22_locale/wchar_t_length.cc: New.
4623 * testsuite/performance/22_locale/wchar_t_out.cc: New.
4624 * testsuite/performance/23_containers/container_benchmark.cc: New.
4625 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
4626 * testsuite/performance/23_containers/map_create_fill.cc: New.
4627 * testsuite/performance/26_numerics/complex_norm.cc: New.
4628 * testsuite/performance/27_io/cout_insert_int.cc: New.
4629 * testsuite/performance/27_io/filebuf_copy.cc: New.
4630 * testsuite/performance/27_io/filebuf_sputc.cc: New.
4631 * testsuite/performance/27_io/fstream_seek_write.cc: New.
4632 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
4633 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
4634 * testsuite/performance/27_io/ifstream_getline.cc: New.
4635 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
4636 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
4638 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4640 * include/bits/basic_string.tcc (_Rep::_S_create):
4641 Never allocate a string bigger than max_size(); always keep
4642 __capacity and __size in sync to avoid memory leaks at
4645 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4647 * include/bits/basic_string.tcc (_S_construct(_InIterator,
4648 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
4649 the double loop, streamline.
4651 * include/bits/basic_string.tcc: Very minor tweaks.
4653 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
4655 * scripts/check_performance: Only compile with $THREAD_FLAG
4656 when test is marked to require it. Allow multiple
4657 compilations/executions of marked tests.
4658 * testsuite/testsuite_performance.h (report_performance):
4659 Report dynamic thread support status.
4660 (report_header): Likewise.
4661 * testsuite/performance/allocator.cc: Stabilize iteration
4662 count. Support more allocators. Mark each allocator test to
4663 run and report independently.
4664 * testsuite/performance/allocator_map_thread.cc: Likewise.
4665 * testsuite/performance/allocator_thread.cc: Likewise.
4667 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
4669 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
4670 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
4671 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
4672 std::get_temporary_buffer() instead of duplicating its code.
4673 Update to C++STYLE conventions.
4674 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
4675 new() instead of std::malloc().
4676 (return_temporary_buffer): Use ::operator delete() instead of
4679 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
4681 * include/bits/allocator.h: Temporary switch to new_allocator as
4682 the default to unjam bootstraps.
4684 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
4686 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
4687 * include/Makefile.in: Regenerate.
4688 * include/bits/allocator_traits.h: Remove.
4689 * include/bits/allocator.h: Remove allocator_traits.h include, and
4691 (allocator): Empty base class, inherit from the underlying allocator.
4692 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
4693 * src/allocator.cc: ...here. New. For the underlying allocators.
4694 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
4695 * config/linker-map.gnu: Remove __pool_alloc bits.
4696 * src/Makefile.am (sources): Add allocator.cc.
4697 * src/Makefile.in: Regenerate.
4698 * testsuite/20_util/allocator/1.cc: Split second test into...
4699 * testsuite/20_util/allocator/8230.cc: ...this.
4700 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
4701 typedef to use std::allocatore. Format.
4702 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
4704 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
4705 __throw_bad_alloc calls. Don't include <memory>.
4706 * include/ext/malloc_allocator.h: Remove <memory> include.
4707 * include/ext/new_allocator.h (new_allocator): Same.
4708 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
4709 declaration. Switch __alloc to _Alloc.
4710 * include/ext/hashtable.h: Remove __alloc.
4711 * include/backward/alloc.h: Only inject allocator, not
4712 implementation details.
4714 * include/ext/mt_allocator.h: Replace free with delete.
4716 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
4718 * src/globals_io.cc: Change to __gnu_internal namespace.
4719 * src/globals_locale.cc: Same.
4720 * src/locale_init.cc: Same.
4721 * src/ios_init.cc: Same.
4723 2004-01-28 Stefan Olsson <stefan@snon.net>
4725 * include/ext/mt_allocator.h: Replaced all malloc() calls with
4726 operator new(). Added support for the env variable
4727 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
4728 one in allocate() as well). Fix typos.
4730 2004-01-28 Paolo Carlini <pcarlini@suse.de>
4732 * include/bits/basic_string.h (_S_create(size_t,
4733 const _Alloc&): Change signature to take two size_type
4735 * include/bits/basic_string.tcc (_S_construct(_InIterator,
4736 _InIterator, const _Alloc&, input_iterator_tag)): Update
4738 (_S_construct(_InIterator, _InIterator, const _Alloc&,
4739 forward_iterator_tag)): Likewise.
4740 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
4741 (_M_mutate(size_type, size_type, size_type)): Don't
4742 implement the exponential growth policy, demand it to
4743 _S_create, update call and simplify.
4744 (_M_clone(const _Alloc&, size_type)): Likewise.
4745 (_S_create(size_type, size_type, const _Alloc&)): Implement
4746 the growth policy, simplify otherwise.
4748 * include/bits/basic_string.h (_Rep::operator[]): Tweak
4749 signature to take a size_type, consistently with the other
4752 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
4754 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
4755 delete declarations, add include and test variable.
4757 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
4759 * include/bits/codecvt.h, include/bits/locale_facets.h,
4760 include/bits/postypes.h, include/bits/stl_bvector.h,
4761 include/bits/stl_multiset.h, include/bits/stl_set.h,
4762 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
4763 include/std/std_complex.h: Document.
4765 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
4768 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
4769 iword/pword selector.
4770 (ios_base::iword, ios_base::pword): Use it.
4771 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
4772 iword or pword member on alloc failure.
4773 * testsuite/27_io/ios_base/storage/11584.cc: New test.
4775 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
4776 PJ Darcy <darcypj@us.ibm.com>
4778 * configure.host: Add support for *-tpf.
4779 * crossconfig.m4: Likewise.
4780 * configure: Regenerate.
4781 * config/os/tpf: New directory.
4782 * config/os/tpf/os_defines.h: New file.
4783 * config/os/tpf/ctype_base.h: Likewise.
4784 * config/os/tpf/ctype_inline.h: Likewise.
4785 * config/os/tpf/ctype_noninline.h: Likewise.
4787 2004-01-27 Paolo Carlini <pcarlini@suse.de>
4790 * include/bits/sstream.tcc: Guard use of extern template.
4792 2004-01-27 Paolo Carlini <pcarlini@suse.de>
4794 * include/bits/basic_string.tcc
4795 (basic_string(const basic_string&, size_type, size_type),
4796 basic_string(const basic_string&, size_type, size_type,
4797 const _Alloc&)): Avoid unnecessarily constructing iterators.
4799 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4801 * config/locale/generic/c_locale.cc: Fix throw messages
4802 to use the __N marker.
4803 * config/locale/gnu/c_locale.cc: Likewise.
4804 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
4806 * docs/html/17_intro/C++STYLE: Likewise.
4807 * include/bits/basic_ios.tcc: Likewise.
4808 * include/bits/fstream.tcc: Likewise.
4809 * include/bits/vector.tcc: Likewise.
4810 * include/ext/ropeimpl.h: Likewise.
4811 * include/std/std_bitset.h: Likewise.
4812 * src/ios.cc: Likewise.
4813 * src/locale.cc: Likewise.
4814 * src/localename.cc: Likewise.
4816 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4818 * include/bits/basic_string.h (_M_replace_aux): Use the
4819 __N marker in throw message.
4820 * include/bits/basic_string.tcc (assign(const _CharT*,
4821 size_type), insert(size_type, const _CharT*, size_type),
4822 replace(size_type, size_type, const _CharT*, size_type),
4823 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
4826 * include/bits/basic_string.h, include/bits/basic_string.tcc:
4827 Fold overlong lines, minor formatting changes.
4829 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4831 * include/bits/basic_string.h (replace(iterator, iterator,
4832 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
4833 (replace(iterator, iterator, const _CharT*)): Ditto.
4834 (replace(iterator, iterator, const _CharT*, size_type)):
4835 Add missing _GLIBCXX_DEBUG_PEDASSERT.
4837 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4839 * include/bits/basic_string.tcc (replace(size_type,
4840 size_type, const _CharT*, size_type)): Implement optimized
4841 in-place algorithm for non-overlapping ranges.
4842 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
4843 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
4845 * include/bits/basic_string.tcc (insert(size_type,
4846 const _CharT*, size_type)): Tweak slightly.
4848 2004-01-26 Andreas Schwab <schwab@suse.de>
4850 * config/locale/gnu/monetary_members.cc: Restore locale before
4851 rethrowing exception.
4853 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4855 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
4857 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
4860 * include/bits/basic_string.tcc: Very minor tweaks.
4862 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4864 * testsuite/performance/string_append.cc: Increase number
4867 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4869 * include/bits/basic_string.h (erase(size_type, size_type),
4870 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
4871 instead, thus avoiding redundant check for length_error.
4873 * include/bits/basic_string.h: Tweak some comments.
4875 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4877 * include/bits/basic_string.tcc (operator+(const _CharT*,
4878 const basic_string&)): No need to go through the append
4879 taking two iterators.
4881 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4883 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
4884 Revert last change to use std::min: machine language is worse.
4885 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
4886 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4887 (find_last_not_of(_CharT, size_type)): Ditto.
4889 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
4890 size_type)): Discard the value returned by _M_check.
4891 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
4892 (append(const basic_string&, size_type, size_type)): Ditto.
4893 (copy(_CharT*, size_type, size_type)): Ditto.
4894 (compare(size_type, size_type, const basic_string&)): Ditto.
4895 (compare(size_type, size_type, const basic_string&,
4896 size_type, size_type)): Ditto.
4897 (compare(size_type, size_type, const _CharT*)): Ditto.
4898 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
4900 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4902 * include/bits/basic_string.h (insert(size_type,
4903 const basic_string&, size_type, size_type)): Define inline here.
4904 * include/bits/basic_string.tcc (insert(size_type,
4905 const basic_string&, size_type, size_type)): Move inline.
4907 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4909 * include/bits/basic_string.h (assign(const basic_string&,
4910 size_type, size_type)): Define inline here.
4911 (replace(size_type, size_type, const basic_string&,
4912 size_type, size_type)): Ditto.
4913 (_M_replace_dispatch(iterator, iterator, _InputIterator,
4914 _InputIterator, __false_type)): Only declare.
4915 (_M_replace(iterator, iterator, _InputIterator,
4916 _InputIterator)): Remove.
4917 * include/bits/basic_string.tcc (assign(const basic_string&,
4918 size_type, size_type)): Move inline.
4919 (replace(size_type, size_type, const basic_string&,
4920 size_type, size_type)): Ditto.
4921 (_M_replace_dispatch(iterator, iterator, _InputIterator,
4922 _InputIterator, __false_type)): Define, now does also what
4923 _M_replace did before.
4924 * src/string-inst.cc (_M_replace): Don't instantiate.
4926 * include/bits/basic_string.tcc (find(const _CharT*,
4927 size_type, size_type)): Tidy.
4928 (rfind(_CharT, size_type)): Ditto.
4929 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
4930 (find_first_not_of(_CharT, size_type)): Ditto.
4931 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4932 (find_last_not_of(_CharT, size_type)): Ditto.
4934 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4937 * include/debug/bitset (operator|=): Fix typo.
4938 * testsuite/23_containers/bitset/operations/13838.cc: New.
4940 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4942 * include/bits/basic_string.tcc (insert(size_type,
4943 const _CharT*, size_type __n)): Fix length_error check.
4944 (replace(size_type, size_type, const _CharT*, size_type):
4945 Ditto; call _M_replace_safe.
4946 (_M_replace_aux(size_type, size_type, size_type, _CharT):
4947 Fix length_error check.
4948 (_M_replace(iterator, iterator, _InputIterator,
4949 _InputIterator)): Ditto, tweak.
4950 (_M_replace_safe(size_type, size_type, const _CharT*,
4951 size_type)): Remove length_error check.
4953 * include/bits/basic_string.tcc (append(const basic_string&),
4954 append(const basic_string&, size_type, size_type)): Tweak
4957 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
4958 size_type)): If __n == 0 don't call traits::copy.
4960 2004-01-23 Stefan Olsson <stefan@snon.net>
4962 * include/ext/mt_allocator.h: Reduce lock contention.
4964 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4967 * include/bits/fstream.tcc (underflow): Remove unused
4969 * include/bits/streambuf_iterator.h (equal): Ditto.
4970 * include/bits/locale_facets.h (_M_convert_from_char):
4973 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4976 * config/linker-map.gnu (nan): Delete.
4977 * libmath/mathconf.h (NAN, nan): Delete.
4978 * linkage.m4 (nan): Don't check for it.
4979 * libmath/nan.c: Delete file.
4981 * config.h.in, configure: Regenerate.
4983 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4985 * include/bits/basic_string.h (push_back(_CharT)):
4986 Call _M_replace_aux.
4987 (insert(size_type, const basic_string&)): Trivial tweak.
4988 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
4989 (insert(iterator, _CharT)): Ditto.
4990 (erase(size_type, size_type)): Ditto.
4991 (erase(iterator)): Ditto.
4992 (erase(iterator, iterator)): Ditto.
4993 (replace(size_type, size_type, size_type, _CharT)): Ditto.
4995 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
4998 * testsuite/performance/allocator_map_thread.cc: New test.
5000 2004-01-22 Paolo Carlini <pcarlini@suse.de>
5002 * include/bits/locale_facets.tcc
5003 (money_put::do_put(..., long double)): Use the basic_string
5004 constructor for char arrays, not that for C-strings, to pass
5005 __digits to do_put(..., const string_type&): __ws isn't
5008 2004-01-22 Paolo Carlini <pcarlini@suse.de>
5010 * include/bits/basic_string.h (_M_replace_safe): Change
5011 signatures to take size_types and const _CharT*.
5012 (_M_replace_aux): Likewise, takes size_types instead of
5014 (append(size_type, _CharT)): Update call.
5015 (assign(size_type, _CharT)): Ditto.
5016 (replace(iterator, iterator, size_type, _CharT)): Ditto.
5017 (_M_replace_dispatch(iterator, iterator, _Integer,
5018 _Integer, __true_type)): Ditto.
5019 * include/bits/basic_string.tcc (assign(const _CharT*,
5021 (insert(size_type, const _CharT*, size_type)): Ditto.
5022 (replace(size_type, size_type, const _CharT*,
5024 (_M_replace(iterator, iterator, _InputIterator,
5025 _InputIterator)): Ditto.
5026 (append(const basic_string&)): Ditto.
5027 (append(const basic_string&, size_type, size_type): Ditto.
5028 (append(const _CharT*, size_type): Ditto.
5029 (_M_replace_safe, _M_replace_safe): Change definitions
5030 accordingly, simplify.
5031 * string-inst.cc (_M_replace_safe): Don't instantiate.
5033 2004-01-21 Paolo Carlini <pcarlini@suse.de>
5035 * include/bits/basic_string.tcc (append(const basic_string&)):
5036 Revert previous change.
5037 (append(const basic_string&, size_type, size_type)): Revert
5038 previous change, use _M_check and _M_limit.
5040 2004-01-21 Paolo Carlini <pcarlini@suse.de>
5042 * include/bits/basic_string.h (_M_check): Change to return
5043 a checked __pos and take an additional const char* argument.
5044 (_M_fold): Rename to _M_limit, change to return a size_type,
5045 corresponding to the __off limited to the actual length.
5046 (insert(size_type, size_type, _CharT)): Update call, call
5048 (insert(iterator, _CharT)): Call replace(iterator, iterator,
5049 size_type, _CharT) instead.
5050 (erase(size_type, size_type)): Update calls.
5051 (replace(size_type, size_type, size_type, _CharT)): Ditto.
5052 (substr(size_type, size_type)): Use _M_check.
5053 * include/bits/basic_string.tcc (basic_string(const basic_string&,
5054 size_type, size_type)): Update calls.
5055 (basic_string(const basic_string&, size_type, size_type,
5056 const _Alloc&)): Ditto.
5057 (assign(const basic_string&, size_type, size_type)): Use the
5058 new _M_check and _M_limit.
5059 (insert(size_type, const basic_string&, size_type, size_type):
5061 (insert(size_type, const _CharT*, size_type)): Ditto.
5062 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
5063 (replace(size_type, size_type, const basic_string&,
5064 size_type, size_type)): Ditto.
5065 (append(const basic_string&)): Ditto.
5066 (append(const basic_string&, size_type, size_type)): Ditto.
5067 (copy(_CharT*, size_type, size_type)): Ditto.
5068 (compare(size_type, size_type, const basic_string&)): Ditto.
5069 (compare(size_type, size_type, const basic_string&,size_type,
5071 (compare(size_type, size_type, const _CharT*)): Ditto.
5072 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5074 2004-01-19 Stefan Olsson <stefan@snon.net>
5076 * include/ext/mt_allocator.h: If a thread, when it dies, still has
5077 memory on it's freelist this memory is not returned to global
5078 list. Simplification of deallocate so that memory is always
5079 returned to the calling thread id's freelist instead of to
5080 global. Fix typos. Add volatile where appropriate.
5082 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
5084 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
5085 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
5086 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
5088 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5090 * src/debug.cc: Make sure all the names are prefixed with
5091 double (or single) underscore.
5093 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5095 * src/debug.cc: Trivial formatting change.
5097 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5099 * include/bits/basic_string.tcc (_S_construct(size_type,
5100 _CharT, const _Alloc&)): Remove redundant try/catch.
5101 (_M_mutate(size_type, size_type, size_type)): Ditto.
5102 (_M_clone(const _Alloc&, size_type)): Ditto.
5104 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5106 * include/bits/basic_string.h (c_str()): Simplify, due to
5107 21.3.4 the internal representation is always kept null-terminated.
5108 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
5109 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
5110 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
5113 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5115 * include/bits/basic_string.h (append(size_type, _CharT)):
5116 Moved inline, just call _M_replace_aux, no source iterators at
5117 risk of being clobbered.
5118 (assign(size_type, _CharT)): Call directly _M_replace_aux.
5119 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5120 input_iterator_tag)): Remove fifth unused argument.
5121 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5122 _InputIterator, __false_type)): Update call.
5123 * include/bits/basic_string.tcc (replace(size_type, size_type,
5124 const _CharT*, size_type)): Update call.
5125 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
5126 throw string literal.
5127 (_M_replace_safe(iterator, iterator, _ForwardIterator,
5128 _ForwardIterator)): Likewise.
5129 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5130 input_iterator_tag)): Remove fifth unused argument.
5131 (append(size_type __n, _CharT __c)): Move inline.
5132 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
5133 const C*, const C*, input_iterator_tag)): Remove fifth unused
5136 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
5138 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
5139 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
5141 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
5143 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
5146 2004-01-15 Stefan Olsson <stefan@snon.net>
5148 * include/ext/mt_allocator.h: Reuse thread id's as soon as
5149 possible by changing the behaviour of thread_freelist to do
5150 push_front when threads die instead of push_back.
5152 2004-01-14 Paolo Carlini <pcarlini@suse.de>
5154 * include/bits/locale_facets.h (struct __numpunct_cache):
5155 Add member _M_grouping_size, caching the length of _M_grouping.
5156 (__numpunct_cache<>::_M_cache): Assign the latter.
5157 (__verify_grouping): Move declaration...
5158 * include/bits/locale_facets.tcc (__verify_grouping):
5159 ... here, change signature to take a const char* and a size_t
5160 for the grouping; not a template anymore.
5161 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
5162 Likewise change signature and tweak consistently.
5163 (num_get::_M_extract_float, num_get::_M_extract_int,
5164 num_put::_M_insert_int, num_put::_M_insert_float,
5165 money_get::do_get(string_type&), money_get::do_put(string_type)):
5167 * config/locale/generic/numeric_members.cc
5168 (numpunct<>::_M_initialize_numpunct): Assign the new member.
5169 * config/locale/gnu/numeric_members.cc
5170 (numpunct<>::_M_initialize_numpunct): Likewise.
5171 * src/locale-inst.cc (__add_grouping): Tweak signature.
5172 (__verify_grouping): Don't instantiate, not a template anymore.
5174 * include/bits/locale_facets.h: Rename _M_truename_len ->
5175 _M_truename_size, _M_falsename_len -> _M_falsename_size.
5176 * include/bits/locale_facets.tcc: Likewise.
5177 * config/locale/generic/numeric_members.cc: Likewise.
5178 * config/locale/gnu/numeric_members.cc: Likewise.
5180 2004-01-14 Stefan Olsson <stefan@snon.net>
5182 * include/ext/mt_allocator.h: Fixups.
5183 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
5184 * testsuite/performance/allocator_thread.cc: Same.
5186 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
5188 * testsuite/performance/ifstream_extract_float.cc: Add higher
5190 * testsuite/performance/ofstream_insert_float.cc: Same.
5192 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5194 * src/locale-misc-inst.cc (__convert_from_v(long),
5195 __convert_from_v(unsigned long), __convert_from_v(long long),
5196 __convert_from_v(unsigned long long)): Remove, unused.
5198 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
5200 * testsuite/performance/ifstream_extract_float.cc: New.
5201 * testsuite/performance/ofstream_insert_float.cc: Float generation
5204 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
5205 * 20_util/auto_ptr/1.cc: ...this.
5206 * 20_util/auto_ptr/2.cc: Same.
5207 * 20_util/auto_ptr/3.cc: Same.
5208 * 20_util/auto_ptr/3946.cc: Same.
5209 * 20_util/auto_ptr/4.cc: Same.
5210 * 20_util/auto_ptr/5.cc: Same.
5211 * 20_util/auto_ptr/6.cc: Same.
5212 * 20_util/auto_ptr/7.cc: Same.
5213 * 20_util/auto_ptr/assign_neg.cc
5214 * 20_util/pairs.cc: Break into...
5215 * 20_util/pair/1.cc: ...this.
5216 * 20_util/pair/2.cc: Same.
5217 * 20_util/pair/3.cc: Same.
5218 * 20_util/pair/4.cc: Same.
5220 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5222 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
5223 Set correctly just basefield, the only group that matters.
5225 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5227 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
5228 (_Rope_rep_base): Inherit directly from the rope allocator;
5229 use rebinding instead of _Alloc_traits; pick up data member
5230 from _Rope_rep_alloc_base.
5231 (_Rope_alloc_base): Eliminate.
5232 (_Rope_base): Inherit directly from the rope allocator; use
5233 rebinding instead of _Alloc_traits; pick up data member from
5235 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
5236 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
5238 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5241 * include/bits/basic_string.tcc (compare(size_type, size_type,
5242 const _CharT*, size_type)): Implement correctly the resolution
5243 of DR 5: basically, s is a char array, -not- a C string.
5244 * include/bits/basic_string.h: Tweak some comments.
5245 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
5246 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
5248 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
5250 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
5253 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5255 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
5257 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
5260 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5262 * include/bits/locale_facets.h (struct __numpunct_cache):
5263 Add members _M_truename_len and _M_falsename_len, caching
5264 the lengths of _M_truename and _M_falsename.
5265 (__numpunct_cache<>::_M_cache): Assign the latter.
5266 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
5267 num_put::do_put(bool)): Use the new members, thus avoiding
5268 computing string lengths again and again.
5269 * config/locale/generic/numeric_members.cc
5270 (numpunct<>::_M_initialize_numpunct): Assign the new members.
5271 * config/locale/gnu/numeric_members.cc
5272 (numpunct<>::_M_initialize_numpunct): Likewise.
5274 2004-01-12 Mark Mitchell <mark@codesourcery.com>
5276 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
5277 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
5279 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
5280 and remove Cygwin XFAIL.
5281 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
5282 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
5283 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
5284 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
5286 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
5287 * testsuite/27_io/objects/char/7.cc: Likewise.
5288 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
5289 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
5290 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
5292 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
5294 * include/std/std_complex.h (std::complex<>::real): Return a
5295 reference. Add non-const overload.
5296 (std::complex<>::real): Likewise.
5297 (std::real): Likewise.
5298 (std::imag): Likewise.
5299 (std::operator+): Tidy.
5300 (std::operator-): Likewise.
5301 (std::operator*): Likewise.
5302 (std::operator/): Likewise.
5303 (std::operator>>): Likewise.
5305 2004-01-11 Paolo Carlini <pcarlini@suse.de>
5308 * include/bits/fstream.tcc (imbue): Exploit the external
5309 buffer to imbue 'on the fly' a new locale and convert its
5310 remainder with the new codecvt facet.
5311 (underflow): Tweak slightly to deal with this special case.
5312 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
5313 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
5314 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
5315 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
5316 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
5318 2004-01-10 Paolo Carlini <pcarlini@suse.de>
5320 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
5323 2004-01-10 Paolo Carlini <pcarlini@suse.de>
5326 * include/bits/locale_classes.h (class locale): Fix category
5328 * testsuite/22_locale/locale/13630.cc: Add.
5330 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
5332 * include/bits/locale_facets.h: Make a name really dependent. This
5333 will be needed when Core Issue 224 is implemented.
5335 2004-01-09 Paolo Carlini <pcarlini@suse.de>
5337 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
5338 * testsuite/performance/allocator_thread.cc: Likewise.
5340 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
5342 * crossconfig.m4: Add LFS, io bits to linux cross config.
5343 * acconfig.h: Remove obsolete bits, reorder.
5344 * config.h.in: Regenerate.
5348 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
5350 * include/bits/stl_list.h:
5351 * include/bits/list.tc:
5353 Performance enhancements for destructor, push_front(),
5354 push_back(), pop_front(), pop_back(), sort()
5355 Eliminated static_casts where possible.
5356 Moved code out of header files into new src/list.cc
5357 implementation file for library where possible.
5358 Remove inheritance from iterator class and create separate
5359 classes for non-constant and constant iterators.
5360 * include/bits/stl_tree.h (_Rb_tree class):
5362 Only erase contents in destructor.
5363 Eliminate unnecessary initialization in assignment operator.
5364 Optimize for the nominal case by not checking whether
5365 container is empty in clear().
5366 Re-order test in _M_insert() to improve performance.
5367 Move initialization of new node's left & right pointers to
5368 src/tree.cc to where new node's colour is initialized
5369 and to reduce the amount of inline code.
5370 Use _M_leftmost() and _M_end() to improve readability where
5372 Create separate classes for non-constant and constant
5373 iterators to clarify code, avoid extra template parameters and
5374 casting away constness.
5376 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
5378 * src/Makefile.am (sources): Add list.cc, tree.cc.
5379 * src/stl_tree.cc: Move to...
5380 * src/tree.cc: ...here.
5382 * config/linker-map.gnu: Tweaks.
5383 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
5384 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
5386 * bits/stl_vector.h: Column wrap comments.
5388 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
5390 (re-open) PR libstdc++/12658
5391 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
5392 (locale::global): Likewise.
5394 2004-01-07 Paolo Carlini <pcarlini@suse.de>
5396 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
5397 Remove redundant #include.
5398 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
5399 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
5400 re-enable normal testing.
5401 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
5403 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
5404 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
5406 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
5408 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
5410 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
5412 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
5414 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
5416 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
5418 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
5419 More properly, #include <locale>.
5420 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
5421 Remove redundant #include.
5422 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
5423 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
5424 redundant DejaGnu directive.
5425 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
5428 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
5429 Stefan Olsson <stefan@snon.net>
5431 * scripts/check_performance: Use -pthread.
5432 * testsuite/performance/allocator.cc: Tweaks, add list.
5433 * testsuite/performance/allocator_thread.cc: New.
5435 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
5437 * include/bits/locale_facets.h: Document public classes and
5439 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
5442 2004-01-06 Paolo Carlini <pcarlini@suse.de>
5444 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
5445 Remove redundant #includes.
5446 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
5448 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
5450 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
5451 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
5452 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
5453 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
5454 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
5455 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
5456 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
5457 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
5458 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
5459 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
5460 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
5461 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
5462 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
5463 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
5464 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
5466 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
5468 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
5470 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
5472 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
5474 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
5475 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
5476 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
5478 2004-01-04 Paolo Carlini <pcarlini@suse.de>
5480 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
5481 Remove redundant #includes.
5482 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
5484 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
5486 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
5488 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
5490 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
5492 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
5494 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
5496 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
5498 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
5500 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
5502 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
5504 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
5507 2004-01-04 Mark Mitchell <mark@codesourcery.com>
5510 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
5512 * testsuite/27_io/basic_fstream/4.cc: Likewise.
5513 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
5514 * testsuite/27_io/basic_ios/4.cc: Likewise.
5515 * testsuite/27_io/basic_iostream/4.cc: Likewise.
5516 * testsuite/27_io/basic_istream/4.cc: Likewise.
5517 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
5518 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
5519 * testsuite/27_io/basic_ostream/4.cc: Likewise.
5520 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
5521 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
5522 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
5524 2004-01-04 Paolo Carlini <pcarlini@suse.de>
5526 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
5527 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
5528 always use double underscored names.
5529 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
5531 * include/bits/locale_facets.h (struct __numpunct_cache):
5532 Dimension _M_atoms_out and _M_atoms_in one position smaller.
5533 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out