1 2004-10-25 Paolo Carlini <pcarlini@suse.de>
3 * include/bits/basic_string.h (_Rep::_M_is_safe, _M_check_length,
4 _M_move, _M_copy, _M_assign): New, use througout.
5 (operator+=(_CharT)): Define in terms of push_back.
6 (append(const basic_string&)): Define here, inline, and simplify,
7 don't use the full _M_replace_safe.
8 (append(size_type, _CharT)): Likewise, don't use _M_replace_aux.
10 (assign(const basic_string&)): Define here, inline.
11 * include/bits/basic_string.tcc (append(const _CharT* s, size_type):
12 Fix: when s points inside the _Rep, upon reallocation (reserve) we
13 were copying from deallocated memory.
14 (append(const basic_string&, size_type, size_type)): Simplify,
15 don't use _M_replace_safe.
16 (replace(size_type, size_type, const _CharT*, size_type)): Slightly
19 * testsuite/21_strings/basic_string/append/char/2.cc: New.
20 * testsuite/21_strings/basic_string/append/char/3.cc: Likewise.
21 * testsuite/21_strings/basic_string/append/wchar_t/2.cc: Likewise.
22 * testsuite/21_strings/basic_string/append/wchar_t/3.cc: Likewise.
24 * testsuite/21_strings/basic_string/assign/char/3.cc: Remove junk.
25 * testsuite/21_strings/basic_string/assign/wchar_t/3.cc: Likewise.
27 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
29 * testsuite/ext/mt_allocator/deallocate_global-2.c:
30 s/value_t/value_type/. s/traits_t/traits_type/.
31 s/policy_t/policy_type/. s/allocator_t/allocator_type/.
32 s/string_t/string_type/. s/list_t/list_type/.
33 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Likewise.
34 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Likewise.
35 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Likewise.
36 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Likewise.
37 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Likewise.
38 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Likewise.
39 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Likewise.
41 2004-10-21 Benjamin Kosnik <bkoz@redhat.com>
43 * include/tr1/array (array): Make safe for zero-sized arrays.
44 (array::end): Return one past the end.
45 (array::at): Use __throw_out_of_range, include functexcept.h.
46 (operator==): Implement.
52 * testsuite/tr1/6_containers/array/capacity/(empty.cc,
53 max_size.cc, size.cc): New.
54 * testsuite/tr1/6_containers/array/comparison_operators/(equal.cc,
55 greater.cc, greater_or_equal.cc, less.cc, less_or_equal.cc,
57 * testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc:
59 * testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc:
61 * testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc: New.
62 * testsuite/tr1/6_containers/array/requirements/(contiguous.cc,
63 instantiate, typedefs, zero_size_arrays): New.
65 2004-10-21 Paolo Carlini <pcarlini@suse.de>
66 Benjamin Kosnik <bkoz@redhat.com>
68 * include/bits/basic_string.h (_M_set_length_and_sharable): New.
69 * include/bits/basic_string.tcc (_S_construct, assign(const _CharT*,
70 size_type), _M_mutate, _M_clone): Use it.
71 (_Rep::_S_create): Don't set/call _M_length/_M_set_sharable here.
73 2004-10-21 Paolo Carlini <pcarlini@suse.de>
74 Dhruv Matani <dhruvbird@gmx.net>
75 Nathan Myers <ncm@cantrip.org>
77 * include/bits/vector.tcc (_M_insert_aux, _M_fill_insert,
78 _M_range_insert): Check at the outset that we are not trying
79 to exceed max_size, then deal properly with __len overflows.
80 * testsuite/23_containers/vector/modifiers/insert/1.cc: New.
82 * testsuite/testsuite_allocator.h: Remove redundant include.
84 2004-10-20 Paolo Carlini <pcarlini@suse.de>
86 * include/ext/bitmap_allocator.h (allocate): Throw std::bad_alloc
88 * include/ext/malloc_allocator.h (allocate): Likewise.
89 * include/ext/mt_allocator.h (allocate): Likewise.
90 * include/ext/new_allocator.h (allocate): Likewise.
91 * include/ext/array_allocator.h: Use __throw_bad_alloc().
92 * include/ext/pool_allocator.h: Use __builtin_expect.
93 * testsuite/ext/array_allocator/check_allocate_max_size.cc: New.
94 * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc: Likewise.
95 * testsuite/ext/malloc_allocator/check_allocate_max_size.cc: Likewise.
96 * testsuite/ext/mt_allocator/check_allocate_max_size.cc: Likewise.
97 * testsuite/ext/new_allocator/check_allocate_max_size.cc: Likewise.
98 * testsuite/ext/pool_allocator/check_allocate_max_size.cc: Likewise.
99 * testsuite/testsuite_allocator.h (check_allocate_max_size): New test.
101 2004-10-19 Paolo Carlini <pcarlini@suse.de>
103 * testsuite/performance/20_util/allocator/list_sort_search.cc:
104 Include <ext/new_allocator.h>.
105 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
107 2004-10-18 Paolo Carlini <pcarlini@suse.de>
109 * include/bits/basic_string.tcc (_M_mutate): Do not reallocate
110 unnecessarily when _M_rep() == &_S_empty_rep() and __new_size
111 == capacity() (== 0): is ok to just leave everything unchanged.
113 * include/bits/basic_string.h: Minor formatting fixes.
114 * include/bits/basic_string.tcc: Likewise.
116 2004-10-17 Benjamin Kosnik <bkoz@redhat.com>
118 * include/ext/mt_allocator.h (__pool::_M_get_align): New.
119 (__mt_alloc::allocate): Use it.
120 * src/mt_allocator.cc (__pool::_M_reclaim_block): Use it.
121 (__pool::_M_reserve_block): Simplify block allocation.
123 2004-10-17 Dhruv Matani <dhruvbird@gmx.net>
124 Paolo Carlini <pcarlini@suse.de>
126 * include/ext/bitmap_allocator.h: Change unsigned int -> size_t: this
127 makes the code 64-bit correct and also fixes (together with using at
128 the beginning a bitmap 2 * size_t bytes wide) alignment issues: now
129 8 is guaranteed, easily tunable to 16 via _BALLOC_ALIGN_BYTES.
130 Fix pthread-rope7.cc fail by nulling out __mini_vector<> destructor.
131 * src/bitmap_allocator.cc: Change to size_t.
132 * config/linker-map.gnu: Adjust.
134 2004-10-16 Benjamin Kosnik <bkoz@redhat.com>
136 * include/tr1/array: Don't use layout_type.
138 2004-10-16 Sashan Govender <sashang@gmail.com>
140 * include/tr1/array (array::end const): Fix casting from iterator
143 2004-10-15 Paolo Carlini <pcarlini@suse.de>
145 * include/ext/bitmap_allocator.h: Qualify ::operator delete.
146 * src/bitmap_allocator.cc: Likewise.
147 * src/mt_allocator.cc: Use ::operator delete, not delete,
148 consistently with ::operator new.
150 * include/ext/bitmap_allocator.h (deallocate): Check for null
152 * testsuite/ext/bitmap_allocator/check_deallocate_null.cc: New.
153 * testsuite/testsuite_allocator.h (check_deallocate_null): Add test.
155 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
157 * include/ext/mt_allocator.h (__mt_alloc::deallocate): Check for
159 * include/ext/pool_allocator.h (debug_allocator::deallocate):
161 * include/ext/debug_allocator.h (debug_allocator::deallocate):
162 Throw exceptions, don't abort.
163 * include/ext/array_allocator.h
164 (array_allocator_base::deallocate): Remove unused parameters.
165 * testsuite/testsuite_allocator.h (check_deallocate_null): New.
166 * testsuite/ext/mt_allocator/check_deallocate_null.cc: New.
167 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: New.
168 * testsuite/ext/array_allocator/check_deallocate_null.cc: New.
169 * testsuite/ext/debug_allocator/check_deallocate_null.cc: New.
170 * testsuite/ext/malloc_allocator/check_deallocate_null.cc: New.
171 * testsuite/ext/new_allocator/check_deallocate_null.cc: New.
172 * testsuite/ext/pool_allocator/check_deallocate_null.cc: New.
174 * testsuite/testsuite_allocator.h (check_new): Add instance argument.
175 * testsuite/ext/array_allocator/check_new.cc: New.
177 2004-10-14 Paolo Carlini <pcarlini@suse.de>
179 * include/ext/bitmap_allocator.h (bitmap_allocator::_Alloc_block):
180 Rename __unused to __M_unused.
182 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
184 * testsuite/ext/headers.cc: Add includes, compile only.
185 * testsuite/ext/hash_map.cc: Move to...
186 * testsuite/ext/hash_map/1.cc: ...here.
187 * testsuite/ext/14648.cc: Move to...
188 * testsuite/ext/hash_map/14648.cc: ...here.
189 * testsuite/ext/hash_map/instantiate.cc: Add.
190 * testsuite/ext/hash_set.cc: Move to...
191 * testsuite/ext/hash_set/1.cc: ...here.
192 * testsuite/ext/hash_set_explicit_instantiation.cc: Move to...
193 * testsuite/ext/hash_set/instantiate.cc: ...here.
194 * testsuite/ext/hash_check_construct_destroy.cc: Move to...
195 * testsuite/ext/hash_set/check_construct_destroy.cc: ...here.
196 * testsuite/ext/slist_check_construct_destroy.cc: Move to...
197 * testsuite/ext/slist/check_construct_destroy.cc: ...here.
198 * testsuite/ext/slist_explicit_instantiation.cc: Move to...
199 * testsuite/ext/slist/instantiate.cc: ...here.
201 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
203 * include/ext/mt_allocator.h: Tweaks.
204 * src/mt_allocator.cc: Same.
206 2004-10-14 Dhruv Matani <dhruvbird@gmx.net>
208 * ext/bitmap_allocator.h: Clean-up add/remove functions.
209 * src/bitmap_allocator.cc: New file. Contains the out-of-line
210 function definitions, static initialization of variables, and
211 explicit instantiations needed for the allocator.
212 * src/Makefile.am: Add.
213 * src/Makefile.in: Regenerate.
214 * config/linker.map.gnu: Add the necessary symbols.
216 2004-10-13 Paolo Carlini <pcarlini@suse.de>
218 * include/bits/basic_string.tcc (_S_create): Use consistently
219 the exponential policy, simplify.
220 * testsuite/performance/21_strings/string_append_2.cc: New.
222 * include/ext/array_allocator.h (allocate): Fix bad_alloc check.
223 * testsuite/ext/array_allocator/2.cc: Fix wrt 64-bit archs (in
224 that case sizeof(_Rep) == 24).
226 2004-10-12 Paolo Carlini <pcarlini@suse.de>
229 * include/bits/stl_tree.h (erase(iterator, iterator)): Revert
230 wrong commit of 2004-10-07.
232 2004-10-12 Scott Snyder <snyder@fnal.gov>
235 * testsuite/23_containers/set/modifiers/17948.cc: New.
237 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
239 * include/bits/stl_deque.h: Correct for over-long lines.
241 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
244 * include/ext/mt_allocator.h (__pool::_M_destroy): New.
245 * src/mt_allocator.cc (__pool::~__pool): Change definitions to
247 * acconfig.h: Remove _GLIBCXX_USE___CXA_ATEXIT.
248 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): Remove.
249 * configure.ac: Remove call to GLIBCXX_ENABLE_CXA_EXIT.
250 * configure: Regenerate.
251 * config/linker-map.gnu: Tweak exports.
252 * docs/html/ext/mt_allocator.html: Update docs.
253 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Fix.
254 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Fix.
255 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Fix.
256 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Fix.
257 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Fix.
258 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Fix.
259 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Fix.
260 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Fix.
262 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
264 PR libstdc++/16614 continued.
265 * include/ext/mt_allocator.h
266 (__per_type_pool_policy::_S_get_pool): Use saner defaults based on
267 specific type characteristics.
268 (__pool_base): Add constructor that takes a _Tune argument.
270 * testsuite/ext/mt_allocator/tune-2.cc: Adjust default.
271 * testsuite/ext/mt_allocator/tune-4.cc: Same.
272 * testsuite/ext/mt_allocator/tune-3.cc: Same.
274 2004-10-11 Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
275 Paolo Carlini <pcarlini@suse.de>
277 * src/pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk):
278 Deal properly with exceptions thrown by ::operator new(size_t).
279 * testsuite/ext/pool_allocator/allocate_chunk.cc: New.
281 * include/ext/pool_allocator.h: Include <cstdlib>.
283 2004-10-10 Benjamin Kosnik <bkoz@redhat.com>
285 * include/bits/functexcept.h: Add guards.
287 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Tweak test.
288 * configure: Regenerate.
290 2004-10-10 Paolo Carlini <pcarlini@suse.de>
292 * config/locale/gnu/monetary_members.cc (_S_construct_pattern):
293 Give __ret a default value, thus avoiding spurious warnings.
295 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Open either
296 words or linux.words, otherwise exit.
297 * testsuite/performance/27_io/ifstream_getline.cc: Slighlty tweak.
299 2004-10-09 Paolo Carlini <pcarlini@suse.de>
301 * include/std/std_memory.h (__get_temporary_buffer): Don't use
302 INT_MAX, prefer numeric_limits<ptrdiff_t>::max(), ok on 64-bit
304 * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust dg-error
307 2004-10-08 Benjamin Kosnik <bkoz@redhat.com>
309 * acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
310 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): New.
311 * configure.ac: Call GLIBCXX_ENABLE_CXA_EXIT.
312 * configure: Regenerate.
313 * src/mt_allocator.cc (__pool::~__pool): Make conditional on
314 _GLIBCXX_USE___CXA_ATEXIT macro.
315 * docs/html/ext/mt_allocator.html: Add note about deallocation.
316 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Guard checks
317 with _GLIBCXX_USE___CXA_ATEXIT.
318 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
319 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
320 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
321 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
322 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
323 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
324 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
326 2004-10-07 Phil Edwards <phil@codesourcery.com>
328 * testsuite/lib/libstdc++.exp: Update list of undefined functions.
330 2004-10-07 Paolo Carlini <pcarlini@suse.de>
332 * include/bits/list.tcc (operator=): Avoid iterator postincrement.
333 * include/bits/stl_tree.h (erase(iterator, iterator)): Likewise.
335 2004-10-07 Benjamin Kosnik <bkoz@redhat.com>
338 * include/tr1/array: New.
339 * include/Makefile.am (tr1_headers): New.
341 (install-headers): New.
342 (allstamped): Add stamp-tr1.
344 * include/ext/array_allocator.h: New.
345 * include/Makefile.am: Add.
346 * include/Makefile.in: Regenerate.
347 * testsuite/ext/array_allocator/1.cc: New.
348 * testsuite/ext/array_allocator/2.cc: New.
350 2004-10-07 Richard Earnshaw <rearnsha@arm.com>
352 * testsuite/lib/libstdc++.exp (libstdc++_exit): New proc.
354 2004-10-07 Roger Sayle <roger@eyesopen.com>
357 * configure.ac: Newlib does not provide strtold.
358 * configure: Regenerate.
360 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
362 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
363 (GLIBCXX_CONFIGURE_TESTSUITE): Use it.
364 * configure: Regenerated.
365 * testsuite/Makefile.am (CLEANFILES): Add TEST for
366 check-performance executables.
369 * testsuite/Makefile.in: Regenerate.
370 * scripts/create_testsuite_files: Filter thread tests.
372 * testsuite/thread/pthread1.cc: Remove macro conditionals: this
373 file will only be run by thread enabled configurations.
374 * testsuite/thread/pthread7-rope.cc: Same, add rope_type typedef.
375 * testsuite/thread/pthread6.cc: Same.
376 * testsuite/thread/pthread5.cc: Same.
377 * testsuite/thread/pthread4.cc: Same.
378 * testsuite/thread/pthread3.cc: Same.
379 * testsuite/thread/pthread2.cc: Same.
381 * testsuite/ext/mt_allocator/instantiate.cc: Add in __GTHREADS guard.
382 * testsuite/ext/mt_allocator/deallocate_global-1.cc: Move to...
383 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: ...here.
384 * testsuite/ext/mt_allocator/deallocate_global-3.cc: Move to...
385 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: ...here.
386 * testsuite/ext/mt_allocator/deallocate_local-1.cc: Move to...
387 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: ...here.
388 * testsuite/ext/mt_allocator/deallocate_local-3.cc: Move to...
389 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: ...here.
391 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
392 Paolo Carlini <pcarlini@suse.de>
395 * src/mt_allocator.cc (__pool<true>::_M_reserve_block): Revert
396 to old locking order.
398 2004-10-06 Paolo Carlini <pcarlini@suse.de>
400 * include/std/std_sstream.h (_M_sync): When the caller is
401 setbuf, don't trust _M_string.capacity() to be the size of
402 the buffer area, use _M_string.size() in this case.
403 * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
404 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.
406 * include/bits/sstream.tcc (overflow): Avoid calling string::assign
407 unnecessarily when the current _M_string is empty.
409 2004-10-06 Paolo Carlini <pcarlini@suse.de>
411 * include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)):
412 Avoid iterator postincrement.
413 (__rotate): Likewise.
415 * include/bits/stl_algo.h: Minor formatting tweaks.
417 2004-10-06 Christopher Jefferson <caj@cs.york.ac.uk>
419 * include/bits/stl_algo.h (__reverse(random_access_iterator_tag)):
420 Avoid iterator postincrement; fix swapping middle element with
421 itself on odd-length inputs.
423 2004-10-05 Benjamin Kosnik <bkoz@redhat.com>
426 * include/ext/mt_allocator.h (__pool_base::_Tune): Add default
427 options as compile-time constant enums.
428 (__pool_base::_Tune::is_default): New.
429 (__pool_base::_Block_address): New.
430 (__pool_base): Rearrange data members.
431 (__pool::_M_reserve_memory): To _M_reserve_block.
432 (__pool::_M_reclaim_memory): To _M_reclaim_block.
433 (__pool::_Bin_record): Add _Block_address data member.
434 (__pool<false>): Add _M_thread_freelist_initial.
435 (__pool::~__pool): Declare.
436 (__common_pool_policy): Move static data member to...
437 (__common_pool_policy::_S_get_pool): ...here, make static local.
438 (__per_type_pool_policy): Move static data member to...
439 (__per_type_pool_policy::_S_get_pool): ...here, make static local.
440 (__mt_alloc::__mt_alloc): Call __policy_type::_S_get_pool.
441 Remove static member definitions. Use define for __default_policy.
442 * src/mt_allocator.cc: Same.
443 * config/linker-map.gnu: Don't export _S_get_pool. Renames.
444 * testsuite/ext/new_allocator: New.
445 * testsuite/ext/new_allocator/instantiate.cc: New.
446 * testsuite/ext/new_allocator/check_new.cc: New.
447 * testsuite/ext/new_allocator/deallocate_global.cc: New.
448 * testsuite/ext/new_allocator/deallocate_local.cc: New.
449 * testsuite/ext/mt_allocator/instantiate.cc: Instantiate all
451 * testsuite/ext/mt_allocator/deallocate_global-1.cc: New.
452 * testsuite/ext/mt_allocator/deallocate_global-2.cc: New.
453 * testsuite/ext/mt_allocator/deallocate_global-3.cc: New.
454 * testsuite/ext/mt_allocator/deallocate_global-4.cc: New.
455 * testsuite/ext/mt_allocator/deallocate_local-1.cc: New.
456 * testsuite/ext/mt_allocator/deallocate_local-2.cc: New.
457 * testsuite/ext/mt_allocator/deallocate_local-3.cc: New.
458 * testsuite/ext/mt_allocator/deallocate_local-4.cc: New.
459 * testsuite/ext/mt_allocator/deallocate.cc: New.
460 * testsuite/ext/malloc_allocator/deallocate.cc: New.
461 * testsuite/ext/malloc_allocator/deallocate_global.cc: New.
462 * testsuite/ext/malloc_allocator/deallocate_local.cc: New.
464 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
466 * configure.host (abi_baseline_pair): Define for s390-*-linux* and
468 * config/abi/s390-linux-gnu/baseline_symbols.txt: Add missing symbols.
469 * config/abi/s390x-linux-gnu/baseline_symbols.txt: New file.
471 2004-10-05 Christopher Jefferson <caj@cs.york.ac.uk>
473 * include/bits/stl_algobase.h (iter_swap): delegate to swap via
474 __iter_swap when iterator's value_types are equal.
475 (struct __iter_swap): New.
477 2004-10-04 Benjamin Kosnik <bkoz@redhat.com>
479 * configure.ac (libtool_VERSION): To 6:3:0.
480 * configure: Regnerate.
481 * testsuite/testsuite_abi.cc (check_version): Add 3.4.3.
483 2004-10-04 Roger Sayle <roger@eyesopen.com>
484 Eric Botcazou <ebotcazou@libertysurf.fr>
487 * config/linker-map.gnu: Synchronize the current list of stub
488 functions from libmath.
490 2004-10-03 Roger Sayle <roger@eyesopen.com>
492 * config/locale/generic/c_locale.cc (__convert_to_v): Use
493 _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
494 Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
495 to check for presence of strtold.
497 2004-10-03 Paolo Carlini <pcarlini@suse.de>
499 * include/bits/stl_list.h: Trivial formatting fixes.
500 * include/bits/stl_tree.h: Likewise.
502 2004-10-03 Paolo Carlini <pcarlini@suse.de>
504 * include/bits/sstream.tcc (seekpos): In case of success, just
507 2004-10-01 Paolo Carlini <pcarlini@suse.de>
509 * include/bits/sstream.tcc (pbackfail): Implement correctly
510 27.7.1.3/2, bullet 2: if mode & ios_base::out is false do not
512 * testsuite/27_io/basic_stringbuf/pbackfail/char/1.cc: New.
513 * testsuite/27_io/basic_stringbuf/pbackfail/char/2.cc: Likewise.
514 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/1.cc: Likewise.
515 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/2.cc: Likewise.
516 * testsuite/27_io/basic_istream/putback/char/1.cc: Tweak consistently.
518 2004-10-01 Paolo Carlini <pcarlini@suse.de>
520 * include/bits/sstream.tcc (seekpos): Minor rearrangement of two
521 conditionals consistently with seekoff.
522 * include/std/std_sstream.h (setbuf): Avoid a string temporary.
523 (_M_sync): Simplify a bit, clean-up comment.
525 2004-09-30 Paolo Carlini <pcarlini@suse.de>
527 PR libstdc++/10975 (DR 453)
528 * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
530 * docs/html/ext/howto.html: Add an entry for DR 453.
531 * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
532 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
533 * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
534 * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
535 * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
536 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
538 * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
539 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
541 * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
543 2004-09-29 Paolo Carlini <pcarlini@suse.de>
545 * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
546 Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
547 (str()): Slightly tweak, protect from pptr() == 0.
548 (_M_update_egptr()): Likewise.
549 * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
550 for an empty buffer use __beg instead of _M_string.capacity().
551 * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
552 * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
554 * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
555 * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
556 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
557 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
559 2004-09-29 Paolo Carlini <pcarlini@suse.de>
560 Benjamin Kosnik <bkoz@redhat.com>
562 * testsuite/testsuite_io.h (class constraint_buf): New, extended
563 and templatized version of constraint_filebuf; add typedefs for
564 streambuf/stringbuf/filebuf and wchar_t counterparts.
566 2004-09-28 Paolo Carlini <pcarlini@suse.de>
569 * include/bits/basic_string.h (_M_dispose, _M_refcopy,
570 basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
571 don't deal with _S_empty_rep.
572 * include/bits/basic_string.tcc (_S_construct, _M_destroy,
573 _M_leak_hard, _M_mutate): Likewise.
574 * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
575 * acconfig.h: Add corresponding undef.
576 * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
577 * docs/html/configopts.html: Document --enable-fully-dynamic-string.
578 * configure: Regenerate.
579 * config.h.in: Likewise.
581 2004-09-28 Benjamin Kosnik <bkoz@redhat.com>
582 Paolo Carlini <pcarlini@suse.de>
584 * testsuite/21_strings/basic_string/operations/char/1.cc: New.
585 * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
586 * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
587 * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc:
590 2004-09-28 Paolo Carlini <pcarlini@suse.de>
592 * README: Remove obsolete entry about include/c_shadow.
594 2004-09-24 H.J. Lu <hongjiu.lu@intel.com>
597 * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
599 2004-09-24 Paolo Carlini <pcarlini@suse.de>
601 * src/localename.cc (locale::locale(const char*)): Minor tweaks:
602 rename a variable, move an assignment.
603 (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
605 2004-09-24 Paul Brook <paul@codesourcery.com>
607 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
609 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
610 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
611 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
612 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
613 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
614 * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
616 2004-09-23 Zack Weinberg <zack@codesourcery.com>
618 * testsuite/20_util/memory/auto_ptr/assign_neg.cc
619 * testsuite/23_containers/map/operators/1_neg.cc
620 * testsuite/23_containers/set/operators/1_neg.cc:
621 Update locations and/or regexps of dg-error markers.
623 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
625 * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
626 Add rule to build ${host_builddir}/gthr-tpf.h.
627 * include/Makefile.in: Regenerate.
629 2004-09-23 Paolo Carlini <pcarlini@suse.de>
630 Magnus Fromreide <magfr@lysator.liu.se>
632 * include/bits/boost_concept_check.h (struct _SequenceConcept):
633 Remove wrong requirement, i.e., not present in Table 67.
635 2004-09-21 Paolo Carlini <pcarlini@suse.de>
637 PR libstdc++/12882 (cont)
638 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
639 * configure: Regenerate.
640 * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
641 _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
642 trivial showmanyc for large files too.
644 2004-09-17 Jonathan Wakely <redi@gcc.gnu.org>
646 * include/bits/stl_algo.h (remove): Remove too restrictive
649 2004-09-17 Paolo Carlini <pcarlini@suse.de>
651 * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
652 as per Nathan's original suggestion.
654 2004-09-17 Paolo Carlini <pcarlini@suse.de>
656 * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
658 * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
659 * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
660 * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
662 2004-09-17 Paolo Carlini <pcarlini@suse.de>
663 Andrea Arcangeli <andrea@suse.de>
665 * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
666 call unnecessarily sync, that is fflush: the library, since 3.4.0
667 does not use buffered fread/fwrite.
668 * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
670 2004-09-15 Mark Mitchell <mark@codesourcery.com>
672 * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
674 * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
676 * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
677 (__cxa_vec_new): Use it.
678 (__cxa_vec_new2): Likewise.
679 (__cxa_vec_new3): Likewise.
680 (__cxa_vec_cdtor): Likewise.
681 (__cxa_vec_cctor): Likeiwse.
682 (__cxa_vec_dtor): Likewise.
683 (__cxa_vec_cleanup): Likewise.
684 (__cxa_vec_delete2): Likewise.
685 (__cxa_vec_delete3): Likewise.
686 * libsupc++/vec.cc (__cxa_vec_new): Likewise.
687 (__cxa_vec_new2): Likewise.
688 (__cxa_vec_new3): Likewise.
689 (__cxa_vec_cdtor): Likewise.
690 (__cxa_vec_cctor): Likeiwse.
691 (__cxa_vec_dtor): Likewise.
692 (__cxa_vec_cleanup): Likewise.
693 (__cxa_vec_delete2): Likewise.
694 (__cxa_vec_delete3): Likewise.
695 (__aeabi_vec_ctor_nocookie_nodtor): New function.
696 (__aeabi_vec_ctor_cookie_nodtor): Likewise.
697 (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
698 (__aeabi_vec_new_cookie_noctor): Likewise.
699 (__aeabi_vec_new_nocookie): Likewise.
700 (__aeabi_vec_new_cookie_nodtor): Likewise.
701 (__aeabi_vec_new_cookie): Likewise.
702 (__aeabi_vec_dtor): Likewise.
703 (__aeabi_vec_dtor_cookie): Likewise.
704 (__aeabi_vec_delete): Likewise.
705 (__aeabi_vec_delete3): Likewise.
706 (__aeabi_vec_delete3_nodtor): Likewise.
707 (__aeabi_atexit): Likewise.
709 2004-09-14 Nathan Myers <ncm@cantrip.org>
711 * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
712 for 11722: copy can replace move; the common case is __avail == 0.
714 2004-09-14 Paolo Carlini <pcarlini@suse.de>
716 * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
717 to __is_scalar, more clear and consistent with "tr1" naming.
718 * include/bits/stl_algobase.h: Update consistently throughout.
720 2004-09-13 Paolo Carlini <pcarlini@suse.de>
723 * include/std/std_fstream.h (xsgetn): Declare only.
724 * include/bits/fstream.tcc (xsgetn): Define, optimize for the
725 always_noconv() case: when __n > __buflen, copy the available
726 buffer and issue a direct read.
727 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
729 * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
732 2004-09-13 Hans-Peter Nilsson <hp@bitrange.com>
734 * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
735 libstdc++_maybe_build_wrapper instead of using local code.
737 2004-09-08 Benjamin Kosnik <bkoz@redhat.com>
739 * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
741 2004-09-03 Jan Beulich <jbeulich@novell.com>
743 * crossconfig.m4: Add NetWare as a target.
744 * configure: Regenerate.
746 2004-09-02 Mark Mitchell <mark@codesourcery.com>
748 * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
751 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
752 Simon Richter <Simon.Richter@hogyros.de>
755 * include/bits/istream.tcc: Add extern template for iostream
756 char and wchar_t instantiations.
758 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
759 Leland Wang <llwang@infor.org>
762 * include/ext/ropeimpl.h (rope::_S_compare): Use
763 _Rope_constants::_S_leaf.
765 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
768 * include/Makefile.am (ext_headers): Remove demangle.h.
769 * include/Makefile.in: Regenerate.
770 * include/ext/demangle.h: Remove.
772 2004-09-01 Benjamin Kosnik <bkoz@redhat.com>
775 * include/ext/mt_allocator.h (__mt_base): Not type dependent,
777 (__pool): New, specialize.
778 (__common_pool): New, static bits here.
779 (__per_type_pool): New, and here.
780 (__mt_alloc_base): New.
781 (__mt_alloc): Add template parameter, inherit from it.
782 * src/allocator.cc: Split this...
783 * src/allocator-inst.cc: And this...
784 * src/pool_allocator.cc: ...into this.
785 * src/mt_allocator.cc: ... and this. Add definitions for
787 * src/Makefile.am (sources): Split allocator.cc to
788 pool_allocator.cc and mt_allocator.cc.
789 * src/Makefile.in: Regenerate.
790 * config/linker-map.gnu: Add symbols.
791 * docs/html/ext/mt_allocator.html: Document new design.
792 * testsuite/ext/mt_allocator/tune-1.cc: New.
793 * testsuite/ext/mt_allocator/tune-2.cc: New.
794 * testsuite/ext/mt_allocator/tune-3.cc: New.
795 * testsuite/ext/mt_allocator/tune-4.cc: New.
797 * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
798 * testsuite/ext/allocators.cc: Use check_new, split into...
799 * testsuite/ext/mt_allocator/check_new.cc: this.
800 * testsuite/ext/pool_allocator/check_new.cc: this.
801 * testsuite/ext/malloc_allocator/check_new.cc: this.
802 * testsuite/ext/debug_allocator/check_new.cc: this.
803 * testsuite/ext/mt_allocator/instantiate.cc: this.
804 * testsuite/ext/pool_allocator/instantiate.cc: this.
805 * testsuite/ext/malloc_allocator/instantiate.cc: this.
806 * testsuite/ext/debug_allocator/instantiate.cc: this.
808 2004-08-30 Phil Edwards <phil@codesourcery.com>
810 * docs/html/install.html: Update locales list (from Paolo).
811 Remove other redundant information and point to the GCC install
814 2004-08-30 Benjamin Kosnik <bkoz@redhat.com>
816 * include/ext/pool_allocator.h: Rename __pool_base to
818 * src/allocator.cc: Same.
819 * config/linker-map.gnu: Same.
821 2004-08-30 Paolo Carlini <pcarlini@suse.de>
822 Kenneth C. Schalk <ken@xorian.net>
825 * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
826 Check the return value of fclose/sync, loop on EINTR.
827 (__basic_file<char>::sys_open): Likewise, for sync.
829 2004-08-29 Paolo Carlini <pcarlini@suse.de>
831 * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
832 case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
833 and 7.23.3.5), two if !_GLIBCXX_USE_C99.
834 * testsuite/22_locale/time_get/get_time/char/4.cc: New.
835 * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
837 2004-08-27 Jason Merrill <jason@redhat.com>
840 * libsupc++/guard.cc (static_mutex): Internal class implementing a
841 recursive mutex which controls initialization of local statics.
842 (__gnu_cxx::recursive_init): New exception class.
843 (__cxa_guard_acquire): Deal with locking and recursion detection.
844 (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
846 2004-08-27 Matthias Klose <doko@debian.org>
848 * configure.host: For mips*-*-linux* update cpu_include_dir
849 after atomicity_dir is set.
851 2004-08-27 Matthias Klose <doko@debian.org>
853 * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
854 * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
855 * configure.host: Set abi_baseline_pair for arm*-*-linux* and
858 2004-08-27 Paolo Carlini <pcarlini@suse.de>
860 * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
861 * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
862 * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
863 * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
864 * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
866 * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
868 * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
869 * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
870 * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
871 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
873 2004-08-25 Paolo Carlini <pcarlini@suse.de>
875 PR libstdc++/17038 (partial)
876 * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
878 * include/bits/locale_facets.h (class __timepunct): Add FIXME
879 comment about _M_put.
880 * config/locale/generic/time_members.cc (_M_put): Always null
882 * config/locale/gnu/time_members.cc (_M_put): Likewise.
883 * testsuite/22_locale/time_put/put/char/17038.cc: New.
884 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
886 2004-08-24 Paolo Carlini <pcarlini@suse.de>
888 * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
889 * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
890 * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
891 * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
892 * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
893 * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
895 * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
897 * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
899 2004-08-22 Matthias Klose <doko@debian.org>
901 * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
902 * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
904 2004-08-23 Paolo Carlini <pcarlini@suse.de>
906 * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
907 * aclocal.m4: Regenerate with automake-1.9.1.
908 * configure: Regenerate.
909 * Makefile.in: Likewise.
910 * include/Makefile.in: Likewise.
911 * libmath/Makefile.in: Likewise.
912 * libsupc++/Makefile.in: Likewise.
913 * po/Makefile.in: Likewise.
914 * src/Makefile.in: Likewise.
915 * testsuite/Makefile.in: Likewise.
917 2004-08-22 Paolo Carlini <pcarlini@suse.de>
919 * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
920 to a signed type, long according to the resolution of DR 359.
921 * testsuite/22_locale/num_put/put/char/9.cc: New.
922 * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
924 * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
925 Simplify a bit: no need to clear showpos.
927 2004-08-21 Paolo Carlini <pcarlini@suse.de>
929 * include/bits/char_traits.h (struct _Char_traits_match): Remove,
932 2004-08-21 Paolo Carlini <pcarlini@suse.de>
934 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
935 wchar_t type for the fill argument; minor formatting tweaks.
936 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
937 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
938 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
939 * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
940 * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
941 * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
943 2004-08-21 Paolo Carlini <pcarlini@suse.de>
945 * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
946 with _M_word != _M_local_word two times, redundantly.
948 2004-08-20 Jason Merrill <jason@redhat.com>
950 * include/Makefile.am (${host_builddir}/gthr.h): Don't add
951 _GLIBCXX_ to #pragma lines.
952 * include/Makefile.in: Update.
954 2004-08-20 Paolo Carlini <pcarlini@suse.de>
956 PR libstdc++/7219 (continued)
957 * include/bits/ios_base.h (class ios_base): Expose Annex D.6
959 * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
960 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
962 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
964 2004-08-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
966 * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
967 barrier to locking asm.
969 2004-08-20 Paolo Carlini <pcarlini@suse.de>
971 * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
972 actually the warning is a front-end bug (c++/17120).
974 2004-08-20 Matthias Klose <doko@debian.org>
976 * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
978 2004-08-20 Paolo Carlini <pcarlini@suse.de>
980 * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
981 used as truth value warning.
983 2004-08-20 Paolo Carlini <pcarlini@suse.de>
985 * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
988 2004-08-20 Paolo Carlini <pcarlini@suse.de>
990 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
992 2004-08-19 Benjamin Kosnik <bkoz@redhat.com>
994 * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
996 * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
998 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1000 * testsuite/performance/20_util/allocator/insert.cc: For std::map
1001 instantiate the allocator for a correct pair type.
1002 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1003 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1004 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1007 * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
1008 minor formatting fixes.
1009 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1011 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1013 * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
1015 * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
1016 * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
1017 * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
1018 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
1019 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1020 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1021 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1023 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1025 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1027 2004-08-18 Matthias Klose <doko@debian.org>
1029 * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1030 * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
1031 * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
1033 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1035 * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1037 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1039 * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1041 2004-08-17 Benjamin Kosnik <bkoz@redhat.com>
1043 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1045 2004-08-16 Paolo Carlini <pcarlini@suse.de>
1047 * include/bits/indirect_array.h: Trivial formatting fixes.
1048 * include/bits/valarray_after.h: Likewise.
1049 * include/bits/valarray_array.h: Likewise.
1050 * src/valarray-inst.cc: Likewise.
1052 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1054 * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
1055 * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
1056 * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
1058 * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
1059 * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
1060 * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
1061 * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
1062 * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
1064 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1066 * include/bits/deque.tcc: Trivial formatting fixes.
1068 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1070 * include/bits/deque.tcc: Trivial formatting fixes.
1072 * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
1073 Remove unneded typedef.
1075 * include/bits/locale_facets.tcc: Very minor tweaks.
1077 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
1078 type for the fill argument.
1079 * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
1080 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1081 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1082 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1083 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
1084 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
1085 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
1086 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
1088 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1090 * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
1091 memmove is not needed, memcpy suffices.
1093 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1095 * include/std/std_fstream.h (class basic_ifstream,
1096 class basic_ofstream, class basic_fstream): Add const overloads
1097 of is_open, as per DR 365 [WP].
1098 * docs/html/ext/howto.html: Add an entry for DR 365.
1100 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1102 * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
1104 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1107 * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
1108 to the returned value, reorganize a bit.
1109 * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
1110 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
1112 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
1113 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
1114 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
1115 * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
1117 2004-08-12 Paul Brook <paul@codesourcery.com>
1119 * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
1120 _GLIBCXX_CXA_VEC_CTOR_RETURN.
1121 * config/cpu/generic/cxxabi_tweaks.h: Ditto.
1122 * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
1123 __cxa_vec_ctor_return.
1124 * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
1125 Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
1127 2004-08-12 Kelley Cook <kcook@gcc.gnu.org>
1129 * Makefile.in, aclocal.m4, configure, include/Makefile.in,
1130 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1131 src/Makefile.in, testsuite/Makefile.in: Regenerate
1133 2004-08-12 Jan Beulich <jbeulich@novell.com>
1135 * config/locale/generic/ctype_members.cc
1136 (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
1137 initializer for return value, as that is invalid for enumerated types.
1138 * config/locale/gnu/ctype_members.cc
1139 (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
1141 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1143 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
1145 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1147 * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
1149 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
1150 * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
1151 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
1152 * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
1153 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
1154 * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
1155 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
1156 * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
1157 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
1158 * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
1159 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
1160 * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
1161 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
1162 * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
1163 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
1164 * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
1165 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
1166 * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
1167 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
1168 * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
1169 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
1171 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1172 Petur Runolfsson <peturr02@ru.is>
1175 * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
1176 standard streams are constructed.
1177 * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
1179 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1181 * include/bits/stl_bvector.h: Trivial formatting fixes.
1183 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1185 * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
1187 2004-08-07 Jonathan Wakely <redi@gcc.gnu.org>
1188 Paolo Carlini <pcarlini@suse.de>
1190 * src/debug.cc (_Error_formatter::_M_print_string): In order
1191 to print individual words from __string, _M_format_word can't
1192 be called since may be just sprintf, thus ignoring completely
1193 __n: instead, use memmove and append '\0' by hand.
1195 2004-08-07 Paolo Carlini <pcarlini@suse.de>
1197 * config/locale/generic/c_locale.h (__convert_from_v): Don't
1198 use a default for __prec, assume __prec >= 0 and simplify.
1199 * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
1200 * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
1201 Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
1203 2004-08-04 Phil Edwards <phil@codesourcery.com>
1205 * docs/html/configopts.html: Emphasize that options change.
1206 * docs/html/17_intro/configury.html: Update links.
1208 2004-08-03 Paolo Carlini <pcarlini@suse.de>
1210 * include/bits/list.tcc: Trivial formatting fixes.
1212 2004-08-03 Mark Mitchell <mark@codesourcery.com>
1214 * libsupc++/new_op.cc: Update comments.
1215 * libsupc++/del_op.cc: Likewise.
1217 2004-08-02 Mark Mitchell <mark@codesourcery.com>
1219 * libsupc++/cxxabi.h: Make all declarations have default
1221 * libsupc++/exception: Likewise.
1222 * libsupc++/new: Likewise.
1223 * libsupc++/typeinfo: Likewise.
1224 * libsupc++/unwind-cxx.h: Likewise.
1225 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
1226 the __cxxabiv1 namespace.
1227 (__cxa_free_exception): Likewise.
1228 * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
1229 (__cxa_bad_typeid): Likewise.
1230 * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
1231 (__cxa_end_catch): Likewise.
1232 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
1233 (__cxa_get_globals): Likewise.
1234 * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
1235 (__cxa_rethrow): Likewise.
1236 * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
1237 * libsupc++/eh_type.cc: Include <cxxabi.h>.
1239 * Makefile.am (hosted_source): Add libmath and testsuite.
1240 (SUBDIRS): Remove them.
1241 * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
1242 on arm*-*-symbianelf*.
1243 * crossconfig.m4: Add arm*-*-symbianelf* support.
1244 * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
1245 when freestanding. Do not bring names into std:: namespace with
1246 "using" when freestanding. Declare required functions and macros
1248 * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
1250 * libsupc++/del_op.cc: Declare "free" only when freestanding.
1251 * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
1252 (malloc): Declare when freestanding.
1255 (__cxa_allocate_exception): Call malloc, not std::malloc. Likewise
1257 (__cxa_free_exception): Likewise for free.
1258 * libsupc++/new_op.cc: Declare "malloc" when freestanding.
1259 * libsupc++/pure.cc (writestr): Define to nothing when
1261 * libsupc++/vterminate.cc: Do not define anything when
1263 * Makefile.in: Regenerated.
1264 * aclocal.m4: Likewise.
1265 * configure: Likewise.
1266 * include/Makefile.in: Likewise.
1267 * libmath/Makefile.in: Likewise.
1268 * libsupc++/Makefile.in: Likewise.
1269 * po/Makefile.in: Likewise.
1270 * src/Makefile.in: Likewise.
1271 * testsuite/Makefile.in: Likewise.
1273 2004-08-01 Matt Austern <austern@apple.com>
1276 * include/bits/stl_list.h (_M_create_node): Remove unused
1277 zero-argument version.
1278 * include/ext/slist (_M_create_node): Pass two arguments to
1279 allocator's construct() member function.
1280 * testsuite/23_containers/deque/explicit_instantiation.cc: New.
1281 * testsuite/23_containers/list/explicit_instantiation.cc: New.
1282 * testsuite/23_containers/vector/explicit_instantiation.cc: New.
1283 * testsuite/23_containers/map/explicit_instantiation.cc: New.
1284 * testsuite/23_containers/set/explicit_instantiation.cc: New.
1285 * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
1286 * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
1287 * testsuite/ext/hash_set_explicit_instantiation.cc: New.
1288 * testsuite/ext/slist_explicit_instantiation.cc: New.
1290 2004-07-30 Paolo Carlini <pcarlini@suse.de>
1292 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1293 num_get<>::_M_extract_int): In the main parsing loop delay the
1294 life of __q to the actual use point.
1296 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1299 * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
1300 Don't clip the precision passed down to __convert_from_v:
1301 22.2.2.2.2 nowhere says so.
1302 * testsuite/22_locale/num_put/put/char/14220.cc: New.
1303 * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
1305 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1307 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
1309 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1310 Petur Runolfsson <peturr02@ru.is>
1312 PR libstdc++/12658 (continued)
1313 * src/locale_init.cc (locale::locale, locale::global): Use
1314 a single locale_mutex instead of two separate mutexes.
1316 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1319 * include/debug/map.h (insert(_InputIterator, _InputIterator)):
1321 * testsuite/23_containers/map/insert/16813.cc: New.
1323 2004-07-29 Phil Edwards <phil@codesourcery.com>
1325 * docs/html/faq/index.html: Update version references. Make
1326 clear that code from SGI has diverged greatly. Remove references
1327 to library snapshots and what's-new sections.
1328 * docs/html/faq/index.txt: Regenerate.
1330 2004-07-28 Matt Austern <austern@apple.com>
1332 * include/bits/stl_construct.h (_Destroy): New three-argument
1333 overload that takes an allocator argument. Another inline
1334 three-argument overload that takes std::allocator and dispatches
1335 to the two-argument version.
1336 * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
1337 Change return type to void to match uninitialized_fill_n.
1338 (__uninitialized_copy_a_): New function. Like uninitialized_copy
1339 except that it takes an allocator and uses it for construct and
1340 destroy. If the allocator is std::allocator, dispatches to
1342 (__uninitialized_fill_a): Likewise.
1343 (__uninitialized_fill_n_a): Likewise.
1344 (__uninitialized_copy_copy): Give it an allocator argument.
1345 (__uninitialized_fill_copy): Likewise.
1346 (__uninitialized_copy_fill): Likewise.
1347 * include/bits/deque.tcc: Use new forms defined in stl_construct.h
1348 and stl_uninitialized.h. Replace use of single-argument _Construct
1349 and _Destroy with use of allocator's construct and destroy methods.
1350 * include/bits/list.tcc: Likewise.
1351 * include/bits/stl_deque.h: Likewise.
1352 * include/bits/stl_list.h: Likewise.
1353 * include/bits/stl_tree.h: Likewise.
1354 * include/bits/stl_vector.h: Likewise.
1355 * include/bits/vector.tcc: Likewise.
1356 * include/ext/hashtable.h: Use rebind so that allocator_type
1357 has correct type for a container's allocator. Replace use of
1358 single-argument _Construct and _Destroy with use of allocator's
1359 construct and destroy methods.
1360 * include/ext/memory (__uninitialized_copy_n_a): New function.
1361 Like uninitialized_copy_n except that it takes an extra parameter,
1362 an allocator, and uses it for construct and destroy operations.
1363 * include/ext/rope: Use new forms defined in stl_construct.h,
1364 stl_uninitialized.h, and ext/memory. Replace use of single-argument
1365 _Construct and _Destroy with allocator construct and destroy methods.
1366 * include/ext/ropeimpl.h: Likewise.
1367 * include/ext/slist.h: Likewise.
1368 * testsuite/testsuite_allocator.h (check_construct_destroy): New.
1369 * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
1370 * testsuite/23_containers/deque/check_construct_destroy.cc: New.
1371 * testsuite/23_containers/list/check_construct_destroy.cc: New.
1372 * testsuite/23_containers/set/check_construct_destroy.cc: New.
1373 * testsuite/23_containers/vector/check_construct_destroy.cc: New.
1374 * testsuite/ext/hash_check_construct_destroy.cc: New.
1375 * testsuite/ext/slist_check_construct_destroy.cc: New.
1377 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
1379 2003-10-01 Eric Christopher <echristo@redhat.com>
1380 * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
1382 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
1383 * config/cpu/sh/atomicity.h: New. Use movli and movco on SH4a.
1385 2004-07-23 Benjamin Kosnik <bkoz@redhat.com>
1388 * include/bits/locale_facets.tcc: Fix for -Werror.
1390 2004-07-23 Jonathan Wakely <redi@gcc.gnu.org>
1392 * docs/html/debug.html: Say debug mode only available since 3.4.0.
1394 2004-07-21 Benjamin Kosnik <bkoz@redhat.com>
1396 * docs/doxygen/mainpage.html: Clarify links.
1397 * docs/doxygen/stdheader.cc: Add files.
1398 * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
1399 * docs/doxygen/user.cfg.in: New options, wrap.
1401 2004-07-20 Danny Smith <dannysmith@users.sourceforge.net>
1403 * include/c_std/std_cwchar.h (wcsstr): Correct signature.
1405 2004-07-19 Benjamin Kosnik <bkoz@redhat.com>
1408 * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
1410 2004-07-17 Richard Sandiford <rsandifo@redhat.com>
1413 * scripts/create_testsuite_files: Pass -print to find.
1415 2004-07-15 Paolo Carlini <pcarlini@suse.de>
1417 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
1418 * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
1420 2004-07-15 Jakub Jelinek <jakub@redhat.com>
1423 * acinclude.m4 (glibcxx_shared_libgcc): Correct
1424 glibcxx_shared_libgcc test for multilibs.
1425 * configure: Rebuilt.
1427 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1430 * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
1431 the signature to return void, as per 20.4.4.3.
1432 * include/bits/stl_vector.h (vector::vector(size_type,
1433 const value_type&, const allocator_type&), vector::vector(size_type),
1434 vector::_M_initialize_dispatch): Adjust callers.
1435 * include/bits/vector.tcc (vector<>::_M_fill_assign,
1436 vector<>::_M_fill_insert): Likewise.
1437 * testsuite/20_util/memory/16505.cc: New.
1439 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1441 * testsuite/22_locale/locale/cons/12658_thread-1.cc,
1442 12658_thread-2.cc: Use __gnu_test::try_named_locale.
1444 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1446 * docs/html/ext/mt_allocator.html: Add docs for _Tune.
1447 * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
1448 (__mt_alloc::_S_set_options): Same.
1451 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1453 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
1455 * configure: Regenerated.
1457 2004-07-13 Paolo Carlini <pcarlini@suse.de>
1459 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
1460 to 12658_thread-1.cc and xfail.
1461 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
1462 simpler version of 12658_thread-1.cc, still failing on 3_3 and
1463 not failing on 3_4/mainline - both on single processor and
1464 multiprocessor machines.
1466 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
1468 * docs/html/abi.html: Remove non-public qualification.
1470 * include/bits/concurrence.h: Tweak comments.
1472 2004-07-11 Paolo Carlini <pcarlini@suse.de>
1474 Add wchar_t counterparts of the basic_streambbuf<char> tests.
1475 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
1476 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
1478 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
1479 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
1481 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
1482 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
1483 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
1484 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
1485 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
1487 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
1489 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
1491 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
1493 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
1494 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
1496 2004-07-11 Phil Edwards <phil@codesourcery.com>
1498 * acinclude.m4: Cosmetic shell syntax fixes.
1499 * configure.ac: Bring comment inline with reality.
1500 * configure.host: Both of the above. Move 'arm' case to right
1501 place in host_cpu switch.
1502 * aclocal.m4, configure: Regenerate.
1504 2004-07-09 Paolo Carlini <pcarlini@suse.de>
1506 Add wchar_t counterparts of the basic_stringbuf<char> tests.
1507 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
1508 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
1509 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
1510 3599.cc, 9988.cc: Likewise.
1511 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
1513 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
1515 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
1517 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
1519 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
1520 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
1521 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
1522 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
1524 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
1525 9404-1.cc: Likewise.
1526 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
1527 9404-2.cc: Likewise.
1528 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
1530 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
1531 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
1533 2004-07-08 Paolo Carlini <pcarlini@suse.de>
1535 * include/bits/gslice.h: Trivial formatting fixes.
1536 * include/bits/gslice_array.h: Likewise.
1537 * include/bits/indirect_array.h: Likewise.
1538 * include/bits/mask_array.h: Likewise.
1539 * include/bits/slice_array.h: Likewise.
1540 * include/bits/valarray_after.h: Likewise.
1541 * include/bits/valarray_array.h: Likewise.
1542 * include/bits/valarray_before.h: Likewise.
1543 * include/std/std_valarray.h: Likewise.
1545 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
1548 * include/bits/basic_string.h (basic_string::operator=): Revert.
1550 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
1552 * configure.ac (libtool_VERSION): To 6:2:0.
1553 * configure: Regenerated.
1555 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
1557 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
1560 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
1562 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
1564 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
1567 2004-07-07 Paolo Carlini <pcarlini@suse.de>
1570 * include/bits/sstream.tcc (overflow): When reallocating _M_string
1571 use an exponential grow policy.
1572 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
1573 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
1575 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
1578 * crossconfig.m4: Add in bits for djgpp.
1579 * configure: Regenerate.
1581 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
1583 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
1584 instantiation of set and multiset (functor param given as int).
1586 2004-07-04 Paolo Carlini <pcarlini@suse.de>
1588 * include/bits/basic_string.h: Trivial formatting fixes and/or
1589 const-ification of some variables.
1590 * include/bits/deque.tcc: Likewise.
1591 * include/bits/stl_algobase.h: Likewise.
1592 * include/bits/stl_bvector.h: Likewise.
1593 * include/bits/stl_construct.h: Likewise.
1594 * include/bits/stl_deque.h: Likewise.
1595 * include/bits/stl_pair.h: Likewise.
1596 * include/bits/stl_vector.h: Likewise.
1597 * include/bits/vector.tcc: Likewise.
1599 2004-07-04 Paolo Carlini <pcarlini@suse.de>
1601 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
1602 systems with no COMDAT or weak support.
1603 * testsuite/25_algorithms/copy/2.cc: Likewise.
1604 * testsuite/25_algorithms/copy/3.cc: Likewise.
1605 * testsuite/25_algorithms/copy/4.cc: Likewise.
1607 2004-07-03 Paul Brook <paul@codesourcery.com>
1609 * configure.ac: Set ABI_TWEAKS_SRCDIR.
1610 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
1611 setting atomicity_dir. Override type_cpu for arm based targets.
1612 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
1613 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
1614 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
1615 * libsupc++/vec.cc: Ditto.
1616 * config/cpu/arm/cxxabi_tweaks.h: New file.
1617 * config/cpu/generic/cxxabi_tweaks.h: New file.
1618 * */Makefile.in: Regenerate.
1619 * configure: Regenerate.
1621 2004-07-02 Paolo Carlini <pcarlini@suse.de>
1623 * include/bits/type_traits.h (_Is_normal_iterator): Move...
1624 * include/bits/cpp_type_traits.h: ... here, renamed to
1625 __is_normal_iterator and consistent with the other traits.
1626 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
1627 to the struct __copy_normal and three specializations.
1628 (__copy_backward_output_normal_iterator,
1629 __copy_backward_input_normal_iterator): Likewise, convert to
1630 the struct __copy_backward_normal and three specializations.
1631 (copy, copy_backward): Use the latter.
1632 (__copy_aux, __copy_backward_aux): Very minor tweaks.
1634 2004-07-01 Paolo Carlini <pcarlini@suse.de>
1636 * include/bits/stl_algobase.h (__copy_trivial): Remove.
1637 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
1638 __is_trivially_copyable, __are_same and __copy::copy.
1639 (__copy): Rewrite as a class template and two specializations.
1640 (__copy_ni2): Simplify, just call __copy_aux.
1642 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
1644 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
1645 for destination value type != source value type.
1647 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
1648 Per Bothner <per@bothner.com>
1649 Mohan Embar <gnustuff@thisiscool.com>
1652 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
1653 (__glibcxx_mutex): Encapsulate mutex init function into type for
1654 threaded configurations without __GTHREAD_MUTEX_INIT.
1655 (lock::lock): Make device member a reference.
1656 (lock::~lock): Same.
1657 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
1659 * src/allocator.cc: Same.
1661 2004-06-30 Brad Spencer <spencer@infointeractive.com>
1663 * include/ext/mt_allocator.h: Handle allocations at static
1664 initialization that happen before _S_options is (automatically)
1665 constructed; set _S_init even if _M_force_new is true.
1667 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
1669 * config/linker-map.gnu: Revert new exports.
1671 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
1672 Stuart Anderson <anderson@netsweng.com>
1674 * config/linker-map.gnu: Add destructor exports for abstract base
1675 classes to conform to LSB.
1677 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1678 Paolo Carlini <pcarlini@suse.de>
1680 * include/bits/cpp_type_traits.h: Add __is_pointer and
1681 __is_trivially_copyable.
1682 * include/bits/stl_algobase.h (fill, fill_n): Slightly
1683 tweak to use the latter.
1684 (__copy_backward_dispatch): Remove.
1685 (__copy_backward_aux): Rewrite to use __is_pointer and
1686 __is_trivially_copyable and __copy_backward::copy_b.
1687 (__copy_backward): Rewrite as a class template and two
1690 2004-06-30 Paolo Carlini <pcarlini@suse.de>
1692 * testsuite/25_algorithms/copy.cc: Move to...
1693 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
1694 * testsuite/25_algorithms/copy/2.cc: New.
1695 * testsuite/25_algorithms/copy/3.cc: New.
1696 * testsuite/25_algorithms/copy/4.cc: New.
1698 2004-06-29 Paul Brook <paul@codesourcery.com>
1700 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
1701 element size in the cookie.
1703 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1705 * include/bits/cpp_type_traits.h: Move the additions to
1706 namespace __gnu_internal outside of namespace std; trivial
1709 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
1711 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
1712 Revert -Weffc++ changes that defined copy ctory and or assignment
1714 * libsupc++/tinfo.cc (__upcast_result): Same.
1716 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1718 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
1719 the algorithm used to name the categories.
1721 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
1723 * include/Makefile.am: Give a .gch extension to
1724 the PCH files, not only to the directory.
1725 * include/Makefile.in: Regenerate.
1727 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1729 * config/locale/gnu/monetary_members.cc
1730 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
1731 assignments of _M_decimal_point and _M_thousands_sep.
1733 2004-06-27 Paolo Carlini <pcarlini@suse.de>
1735 * docs/html/17_intro/contribute.html: Update some links.
1736 * docs/html/17_intro/porting-howto.html: Likewise.
1737 * docs/html/17_intro/porting-howto.xml: Likewise.
1738 * docs/html/18_support/howto.html: Likewise.
1739 * docs/html/21_strings/howto.html: Likewise.
1740 * docs/html/27_io/howto.html: Likewise.
1741 * docs/html/configopts.html: Likewise.
1742 * docs/html/ext/howto.html: Likewise.
1743 * docs/html/faq/index.html: Likewise.
1744 * docs/html/install.html: Don't mention 2.x compilers.
1746 2004-06-27 Paolo Carlini <pcarlini@suse.de>
1748 * include/ext/rope: Trivial formatting fixes.
1749 * include/ext/ropeimpl.h: Likewise.
1751 2004-06-26 Paolo Carlini <pcarlini@suse.de>
1754 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
1755 availability of strto(u)ll, not used anymore in the iostreams.
1756 * configure: Regenerate.
1758 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
1761 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
1763 * configure: Regenerate.
1765 2004-06-25 Paul Brook <paul@codesourcery.com>
1767 * libsupc++/cxxabi.h: Define __ARM_EABI__
1769 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
1771 2004-06-25 Paul Brook <paul@codesourcery.com>
1773 * include/bits/concurrence.h: Still create mutex object when
1776 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1778 * include/bits/stl_algobase.h (fill, fill_n): Revert last
1779 change: actually we need to copy construct an object of type
1780 _Tp, not of type iterator_traits<>::value_type, therefore the
1783 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1785 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
1786 dispatch: use iterator_traits<>::value_type, not _Tp.
1788 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1790 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
1791 * testsuite/25_algorithms/fill/2.cc: Likewise.
1793 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
1794 Paolo Carlini <pcarlini@suse.de>
1796 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
1797 for fill and fill_n, respectively: when copying is cheap, use a
1798 temporary to avoid a memory read in each iteration.
1800 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1802 * testsuite/25_algorithms/fill/1.cc: New.
1803 * testsuite/25_algorithms/fill/2.cc: Likewise.
1805 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
1807 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
1808 Remove copy constructor and assignment operator.
1810 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
1812 * include/bits/concurrence.h (__gnu_cxx::lock): New.
1813 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
1814 (__pool_base::_M_get_mutex): New.
1815 * include/bits/allocator.h: Tweak.
1816 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
1817 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
1818 * include/bits/stl_threads.h: Remove.
1819 * include/Makefile.am: Also here.
1820 * include/Makefile.in: Regenerate.
1822 * src/locale_init.cc: Use __gnu_cxx::lock.
1824 * src/allocator.cc: Move all instantiations...
1825 * src/allocator-inst.cc: ...here.
1827 2004-06-23 Andrew Pinski <apinski@apple.com>
1829 * linkage.m4: Remove check for libmx.
1830 * configure: Regenerate.
1832 2004-06-23 Paolo Carlini <pcarlini@suse.de>
1835 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
1836 Don't require the _DefaultConstructibleConcept.
1837 (struct _ForwardIteratorConcept): Require it here.
1839 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
1841 * include/bits/istream.tcc (getline): Make sure arguments passed
1842 to min/max have the same type.
1843 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
1844 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
1846 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
1848 * docs/html/abi.html: Update links.
1850 2004-06-22 Paolo Carlini <pcarlini@suse.de>
1852 * testsuite/26_numerics/complex_inserters_extractors.cc,
1853 complex_value.cc, buggy_complex.cc: Move to...
1854 * testsuite/26_numerics/complex/: ... here.
1855 * testsuite/26_numerics/c99_classification_macros_c++.cc,
1856 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
1857 fabs_inline.cc: Move to...
1858 * testsuite/26_numerics/cmath/: ... here.
1859 * testsuite/26_numerics/binary_closure.cc, slice.cc,
1860 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
1861 valarray_name_lookup.cc, valarray_operators.cc,
1862 valarray_subset_assignment.cc: Move to...
1863 * testsuite/26_numerics/valarray/: ... here (new dir).
1864 * testsuite/26_numerics/sum_diff.cc: Move to...
1865 * testsuite/26_numerics/numeric/: ... here (new dir).
1867 2004-06-22 Paolo Carlini <pcarlini@suse.de>
1869 * include/std/std_istream.h (ignore(streamsize __n = 1,
1870 int_type __delim = traits_type::eof())): Split into...
1871 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1872 int_type __delim)): The first two can be much more simpler
1873 and efficient than the fully general case; also, the last
1874 two can take advantage of the same mechanism already used
1876 * include/bits/istream.tcc (ignore(streamsize __n = 1,
1877 int_type __delim = traits_type::eof()): Remove.
1878 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1879 int_type __delim)): New.
1881 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
1883 * config/linker-map.gnu: Use wildcards for
1884 __basic_file::sys_open(FILE*, _Ios_Openmode).
1886 2004-06-20 Paolo Carlini <pcarlini@suse.de>
1888 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
1890 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1892 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
1893 the alignment requested.
1894 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
1895 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
1896 (__mt_alloc<>::deallocate): Likewise.
1898 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1901 * include/debug/safe_base.h
1902 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
1903 _Safe_sequence_base::operator=): Provide definitions.
1904 * testsuite/23_containers/bitset/cons/16020.cc: New.
1906 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
1908 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
1909 (__pool_base): Remove unused template parameter. Add
1910 protected. Move lock data into __pool_base::_Lock. Remove static
1911 on member functions.
1912 (__pool_base::_M_get_free_list): New.
1913 (__pool_alloc): Move _S_force new here.
1914 * src/allocator.cc: Move out of line __pool_base definitions here.
1915 * config/linker-map.gnu: Export bits from __pool_base.
1917 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1919 * config/locale/gnu/numeric_members.cc
1920 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
1921 assignments of _M_decimal_point and _M_thousands_sep.
1922 * config/locale/gnu/time_members.cc
1923 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
1924 and reformat assignments of date and time fields.
1926 2004-06-16 Paolo Carlini <pcarlini@suse.de>
1928 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
1929 to use _Data_allocate.
1930 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
1931 (rope<>::_S_substring): Likewise.
1932 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
1933 (rope<>::c_str()): Likewise.
1934 (rope<>::replace_with_c_str()): Likewise.
1936 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
1937 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
1939 (_Rope_iterator_base<>::_S_setcache): Likewise.
1940 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
1941 (rope<>::_S_substring): Likewise.
1942 (rope<>::_S_dump): Likewise.
1943 (rope<>::_S_fetch_ptr): Likewise.
1944 (rope<>::_S_compare): Likewise.
1945 (rope<>::replace_with_c_str()): Likewise.
1947 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
1948 * testsuite/ext/rope/2.cc: New.
1950 2004-06-16 Paolo Carlini <pcarlini@suse.de>
1951 Matt Austern <austern@apple.com>
1953 * testsuite/ext/rope/3.cc: New.
1955 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
1957 * acinclude.m4: Remove useless multilib configury.
1958 * Makefile.am: Remove useless multilib rules.
1959 * aclocal.m4: Regenerate.
1960 * Makefile.in: Regenerate.
1961 * configure: Regenerate.
1963 2004-06-15 Paolo Carlini <pcarlini@suse.de>
1965 * include/ext/hashtable.h: Trivial formatting fixes.
1966 * include/ext/rb_tree: Likewise.
1968 2004-06-14 Paolo Carlini <pcarlini@suse.de>
1970 * include/ext/hash_map: Trivial formatting fixes.
1971 * include/ext/hash_set: Likewise.
1972 * include/ext/memory: Likewise.
1973 * include/ext/numeric: Likewise.
1975 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
1977 * Makefile.in: Regenerate with automake 1.8.5.
1979 * include/Makefile.in: Same.
1980 * libmath/Makefile.in: Same.
1981 * libsupc++/Makefile.in: Same.
1982 * po/Makefile.in: Same.
1983 * src/Makefile.in: Same.
1984 * testsuite/Makefile.in: Same.
1986 2004-06-14 Paolo Carlini <pcarlini@suse.de>
1988 * include/ext/slist: Trivial formatting fixes.
1990 2004-06-14 Paolo Carlini <pcarlini@suse.de>
1992 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
1993 Don't use the 'magic number' 10 in the computation of __minlen;
1994 never access __name past __minlen; in the loop over __i3, don't
1995 decrease __nmatches and increase __i3 at once, only either of
1998 2004-06-13 Paolo Carlini <pcarlini@suse.de>
2000 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
2001 time_get<>::do_get_date): Use only once _M_extract_via_format,
2002 instead of going through "%X"/"%x" and calling it two times
2005 2004-06-12 Paolo Carlini <pcarlini@suse.de>
2007 * include/ext/algorithm: Trivial formatting fixes.
2008 * include/ext/functional: Likewise.
2009 * include/ext/hash_fun.h: Likewise.
2010 * include/ext/iterator: Likewise.
2012 2004-06-12 Paolo Carlini <pcarlini@suse.de>
2014 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
2015 size_type)): Reimplement using std::search.
2016 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
2018 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
2020 * testsuite/performance/21_strings/string_find.cc: New.
2022 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
2024 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
2026 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
2028 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
2029 this function return a value.
2031 2004-06-09 Paolo Carlini <pcarlini@suse.de>
2034 * include/bits/stl_deque.h: Consistently with stl_set.h, define
2035 pointer as allocator's pointer, likewise for reference,
2036 const_pointer, and const_reference.
2037 * include/bits/stl_list.h: Likewise.
2038 * include/bits/stl_map.h: Likewise.
2039 * include/bits/stl_multimap.h: Likewise.
2040 * include/bits/stl_vector.h: Likewise.
2042 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
2044 * crossconfig.m4: Remove signbit, signbitf, signbitl.
2045 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
2046 builtin math functions instead of AC_DEFINE_UNQUOTED.
2047 * configure: Regenerate.
2049 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
2051 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
2052 * docs/doxygen/mainpage.html: Remove links.
2054 2004-06-08 Jason Merrill <jason@redhat.com>
2056 * config/linker-map.gnu: Use wildcards for
2057 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
2059 2004-06-08 Paolo Carlini <pcarlini@suse.de>
2061 * include/ext/pool_allocator.h: Convert to a global free-list,
2062 as per the original SGI/HP design: move the implementation
2063 details to struct __pool_base, from which __pool_alloc derives.
2064 * src/allocator.cc: Instantiate __pool_base.
2066 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
2067 Paolo Carlini <pcarlini@suse.de>
2069 * testsuite/testsuite_performance.h
2070 (resource_counter::allocated_memory): Make it return the right
2071 number of bytes requested by the allocators/application. This is
2072 the sbrk+mmaped memory.
2074 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
2076 * include/std/std_complex.h (log): Tidy.
2078 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
2080 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
2081 * testsuite/testsuite_abi.cc: Same.
2082 * configure.ac (libtool_VERSION): Bump to 6:1:0.
2083 * configure: Regenerate.
2084 * aclocal.m4: Regenerate.
2086 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2088 * include/std/std_complex.h (complex<_Tp>): Properly indent
2090 (complex<>::__rep): New.
2091 (__complex_abs): New. Dispatch to built-ins.
2093 (__complex_arg): New. Dispatch to built-ins.
2095 (__complex_cos): New. Dispatch to built-ins.
2097 (__complex_cosh): New. Dispatch to built-ins.
2099 (__complex_exp): New. Dispatch to built-ins.
2101 (__complex_log): New. Dispatch to built-ins.
2103 (__complex_sin): New. Dispatch to built-ins.
2105 (__complex_sinh): New. Dispatch to built-ins.
2107 (__complex_sqrt): New. Dispatch to built-ins.
2109 (__complex_tan): New. Dispatch to built-ins.
2111 (__complex_tanh): New. Dispatch to built-ins.
2113 (__complex_pow): New. Dispatch to built-ins.
2116 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
2117 Benjamin Kosnik <bkoz@redhat.com>
2120 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
2121 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
2122 * config/io/basic_file_stdio.cc (__basic_file::file): New.
2123 * config/io/basic_file_stdio.h: Define.
2125 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
2128 * docs/html/documentation.html: Update doxygen links for 3.4.0.
2130 2004-05-27 Jan Beulich <jbeulich@novell.com>
2132 * scripts/create_testsuite_files: Tweak.
2134 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
2137 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
2138 bits to do the same thing.
2140 2004-05-24 Paolo Carlini <pcarlini@suse.de>
2142 * include/bits/istream.tcc (ignore): Correctly deal with
2143 n == numeric_limits<streamsize>::max().
2144 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
2146 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
2147 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
2148 __n == numeric_limits<>::min().
2150 * include/bits/istream.tcc: Minor tweaks.
2152 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2154 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2156 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2158 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2160 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2162 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2165 Fixups for -Weffc++.
2166 * include/bits/basic_string.h (basic_string::operator=): Return
2167 pointer to this instead of result of assign. Although redundant,
2168 this doesn't impact resultant codegen.
2170 * include/bits/locale_facets.h (__numpunct_cache): Declare
2171 assignment opxserator and copy constructor private.
2172 (__timepunct_cache): Same.
2173 (__moneypunct_cache): Same.
2174 (collate): Use member initialization list for _M_c_locale_collate.
2175 * config/locale/gnu/messages_members.h: Same.
2176 * config/locale/gnu/time_members.h (__timepunct): Same.
2177 * src/codecvt.cc: Use member initialization list to initialize
2178 _M_c_locale_codecvt.
2179 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
2180 * config/os/gnu-linux/ctype_noninline.h: Same.
2181 * src/locale.cc (_Impl): Same.
2182 * src/locale_init.cc: Same.
2183 * src/localename.cc: Same.
2185 * include/bits/basic_ios.h (basic_ios): Complete member
2186 initialization list.
2187 * include/bits/istream.tcc (basic_istream::sentry): Same.
2188 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
2189 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
2190 _M_pback to member initialization list.
2191 * include/std/std_streambuf.h: Same.
2192 * include/std/std_sstream.h: Same, for _M_mode.
2193 * src/ios.cc (ios_base): Same.
2195 * include/ext/rope: Make derived classes match exception
2197 specifications. Add copy constructors and assignment operators.
2199 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
2200 constructor and assignment operator protected.
2201 (_Safe_iterator_base): Same.
2202 * include/debug/formatter.h (_Error_formatter): Define copy
2203 constructor and assignment operator.
2205 * include/backward/strstream: Declare assignment operator and copy
2206 constructor private.
2208 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2210 * testsuite/testsuite_hooks.h (func_callback): Declare copy
2211 constructor and assignment operator private.
2212 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
2213 exception specifications of base class.
2214 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
2215 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
2216 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2218 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2220 * libsupc++/cxxabi.h: Remove duplicated and useless public and
2221 private keywords in class declarations. Format. Use
2222 stddef.h. Expose declarations to "C" compilation.
2223 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
2224 assignment operator.
2225 (__dyncast_result): Same.
2226 * libsupc++/vec.cc (uncatch_exception): Same, use member
2227 initialization list.
2229 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2231 * testsuite/abi_check.cc: Add unistd.h.
2233 2004-05-22 Paolo Carlini <pcarlini@suse.de>
2236 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
2237 __int_to_char(unsigned long long)): Showpos is not relevant
2239 * testsuite/22_locale/num_put/put/char/15565.cc: New.
2240 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
2242 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
2244 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
2245 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
2246 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2247 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
2248 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
2249 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
2251 2004-05-21 Matthias Klose <doko@debian.org>
2253 * docs/doxygen/run_doxygen: Bump required version.
2255 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
2257 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
2258 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
2260 2004-05-21 Paolo Carlini <pcarlini@suse.de>
2262 * include/bits/istream.tcc (ignore): Remove redundant line.
2263 (readsome): Tidy, closely following 27.6.1.3, p30.
2265 2004-05-20 Paolo Carlini <pcarlini@suse.de>
2267 * include/bits/istream.tcc (operator>>(basic_istream<>&,
2268 basic_string<>&)): Use a temporary buffer, thus avoiding
2269 reallocation for common case.
2270 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2272 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2275 * include/bits/istream.tcc: Const-ification of a few variables.
2277 * include/bits/ostream.tcc: Trivial formatting fixes and
2278 const-ification of some variables.
2280 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
2284 * docs/doxygen/Intro.3: Remove Allocators.3.
2285 Add new extension headers, extension namespace list.
2286 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
2287 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
2288 __gnu_debug::. Remove __policy_ renames.
2289 * docs/doxygen/guide.html: Add dot note.
2290 * docs/doxygen/stdheader.cc: Edit, add files.
2291 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
2293 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2295 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
2297 2004-05-18 Jan Beulich <jbeulich@novell.com>
2300 * scripts/create_testsuite_files: Also find source files through
2303 2004-05-18 Jan Beulich <jbeulich@novell.com>
2306 * testsuite/lib/libstdc++.exp: Make test files writable.
2308 2004-05-18 Paolo Carlini <pcarlini@suse.de>
2310 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
2313 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
2315 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
2316 allocation loop which removes blocks from the global free list
2317 from O(N) to O(1) when the required blocks are <= the number
2320 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2322 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
2324 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
2326 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
2327 * testsuite/23_containers/deque/14340.cc: New.
2328 * testsuite/23_containers/list/14340.cc: New.
2329 * testsuite/23_containers/map/14340.cc: New.
2330 * testsuite/23_containers/multimap/14340.cc: New.
2331 * testsuite/23_containers/multiset/14340.cc: New.
2332 * testsuite/23_containers/set/14340.cc: New.
2333 * testsuite/23_containers/vector/14340.cc: New.
2335 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
2338 * include/debug/safe_iterator.h (_Safe_iterator converting
2339 constructor): Only allow declaration to instantiate when the
2340 incoming _Safe_iterator has exactly the right iterator type.
2342 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
2344 * include/bits/boost_concept_check.h: Fix old attribute syntax.
2345 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
2346 to pass concept-checks.
2347 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2348 * testsuite/23_containers/set/modifiers/swap.cc: Same.
2349 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2351 2004-05-16 Paolo Carlini <pcarlini@suse.de>
2353 * include/std/std_bitset.h: Minor formatting fixes.
2355 2004-05-16 Paolo Carlini <pcarlini@suse.de>
2357 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2358 Consistently update __bin._M_free[0].
2359 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
2360 __bin._M_free[0] to simplify the while loop (i.e., the number
2361 of iterations becomes known at the outset).
2363 2004-05-15 Paolo Carlini <pcarlini@suse.de>
2365 * include/std/std_bitset.h: Trivial formatting fixes.
2367 2004-05-14 Paolo Carlini <pcarlini@suse.de>
2368 Ivan Godard <igodard@pacbell.net>
2371 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
2372 * testsuite/23_containers/bitset/ext/15361.cc: New.
2374 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2377 * crossconfig.m4: Add C99 math bits for linux crosses.
2378 * configure: Regenerate.
2380 2004-05-13 Simon Marshall <simon.marshall@misys.com>
2381 Benjamin Kosnik <bkoz@redhat.com>
2384 * include/bits/locale_facets.h: Fix for -fno-for-scope.
2385 * include/debug/safe_sequence.h: Same.
2386 * include/debug/safe_iterator.tcc: Same.
2387 * src/debug.cc: Same.
2388 * src/locale.cc: Same.
2389 * src/locale_init.cc: Same.
2390 * src/localename.cc: Same.
2391 * config/locale/gnu/ctype_members.cc: Same.
2392 * config/locale/gnu/numeric_members.cc: Same.
2393 * testsuite/testsuite_abi.cc: Same.
2394 * testsuite/testsuite_hooks.cc: Same.
2396 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
2398 * docs/html/abi.html: Document effect of -fabi-version on value
2399 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
2402 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2405 * docs/html/faq/index.html: Update docs for libsupc++ usage.
2407 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2410 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
2412 (_GLIBCXX_mutex_address): Same.
2413 (_GLIBCXX_once): Same.
2414 (_GLIBCXX_mutex_init): Same.
2415 (_GLIBCXX_mutex_address_init): Same.
2417 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2419 * docs/html/abi.html: New.
2420 * docs/html/abi.txt: Remove.
2421 * docs/html/documentation.html: Add link.
2422 * testsuite/Makefile.am: Add files.
2423 * testsuite/Makefile.in: Regenerated.
2424 * testsuite/abi_check.cc: Move and modify code into...
2425 * testsuite/testsuite_abi.cc: Add.
2426 * testsuite/testsuite_abi.h: Add.
2428 * docs/html/17_intro/TODO: Update.
2429 * include/bits/stl_pair.h: Format.
2431 2004-05-06 Matthias Klose <doko@debian.org>
2433 * include/backward/iterator.h: Add GPL copyright info,
2434 with exception clause.
2435 * include/bits/boost_concept_check.h: Likewise.
2437 * libsupc++/tinfo.h: Likewise.
2438 * po/string_literals.cc: Likewise.
2440 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
2442 * acinclude.m4: Replace -W with more speaking -Wextra.
2443 * configure: Rebuilt.
2445 2004-05-03 Paolo Carlini <pcarlini@suse.de>
2447 Optimize locale::_M_impl->_M_names for the most common cases:
2448 !_M_names[0] means unnamed; !_M_names[1] means all the categories
2449 the same name (_M_names[0] && _M_names[1] means that the full set
2450 of _M_names must be processed, the general case).
2451 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
2452 Tweak, saving work when !_M_names[1].
2453 (locale::locale(const locale&, _Facet*): Simplify: now just setting
2454 _M_names[0] = 0 means unnamed.
2455 * src/locale.cc (locale::operator==): Deal first with the common,
2456 easy cases, otherwise fall back to locale::name().
2457 (locale::name()): Tweak, if !_M_names[0] just return "*".
2458 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
2459 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
2460 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
2461 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
2462 Simplify when !std::strchr, just updating _M_names[0]; clean up.
2463 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
2464 for the general case (full set of names), then do the usual work;
2467 * src/locale.cc (locale::name()): Reserve space in __ret.
2468 * src/locale_init.cc (locale::global(const locale&)): Save
2469 the name in a temporary.
2470 * src/localename.cc (locale::locale(const char*)): Reserve space
2473 2004-04-29 Paolo Carlini <pcarlini@suse.de>
2475 * src/locale.cc (locale::operator==): Always avoid constructing
2476 locale::name(), directly compare pairs of _M_names.
2478 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2480 * include/bits/istream.tcc: Fix comment.
2482 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2484 * include/bits/stl_vector.h: Trivial formatting fixes.
2485 * include/bits/vector.tcc: Likewise.
2487 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2489 PR libstdc++/15002 (continued again)
2490 * include/bits/istream.tcc (getline(basic_istream<>&,
2491 basic_string<>&, _CharT)): Use a temporary buffer, thus
2492 avoiding reallocation for common case.
2494 * include/bits/basic_string.tcc (_S_construct(_InIterator,
2495 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
2496 of temporary buffer to a power of two.
2498 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
2500 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2502 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2504 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2506 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2508 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2509 Petur Runolfsson <peturr02@ru.is>
2511 PR libstdc++/15002 (continued)
2512 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
2513 streamsize, char_type)): Use traits::find/copy in a loop to speed
2514 up greatly the function in the common case (I/O buffer size >> 1).
2516 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2518 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
2520 * include/bits/istream.tcc (getline(basic_istream<>&,
2521 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
2522 of sbumpc(), consistently with the other functions, thus also
2523 dealing correctly with the case of exceeded string::max_size().
2525 2004-04-24 Matthias Klose <doko@debian.org>
2527 Jonathan Wakely <cow@compsoc.man.ac.uk>
2528 * docs/html/configopts.html: Fix reference to allocator config option.
2530 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
2532 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
2533 * configure: Regenerate.
2535 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
2537 PR libstdc++/15047, libstdc++/11610
2538 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
2539 (libstdc++_init): Don't pass outdir to v3-copy-files.
2541 2004-04-21 Paolo Carlini <pcarlini@suse.de>
2543 * include/bits/deque.tcc: Trivial formatting fixes.
2544 * include/bits/stl_deque.h: Likewise.
2545 * include/bits/stl_list.h: Likewise.
2546 * include/bits/stl_tree.h: Likewise.
2548 2004-04-21 Paolo Carlini <pcarlini@suse.de>
2549 Andrew Pinski <pinskia@physics.uc.edu>
2551 * include/bits/basic_string.tcc (_M_mutate): Don't compute
2552 __src unnecessarily.
2554 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
2556 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
2557 Clarify assertion, set test variable to false before assert.
2558 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
2559 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
2560 * testsuite/27_io/ios_base/storage/2.cc: Same.
2562 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
2564 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
2565 * testsuite/27_io/fpos/14320-3.cc: Same.
2567 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
2568 * testsuite/27_io/fpos/1.cc: Same.
2569 * testsuite/27_io/basic_stringstream/2.cc: Same.
2570 * testsuite/27_io/basic_stringbuf/4.cc: Same.
2571 * testsuite/27_io/basic_stringbuf/1.cc: Same.
2572 * testsuite/27_io/basic_stringbuf/2.cc: Same.
2573 * testsuite/27_io/basic_streambuf/2.cc: Same.
2574 * testsuite/27_io/basic_ostringstream/2.cc: Same.
2575 * testsuite/27_io/basic_ostream/2.cc: Same.
2576 * testsuite/27_io/basic_ofstream/2.cc: Same.
2577 * testsuite/27_io/basic_istringstream/2.cc: Same.
2578 * testsuite/27_io/basic_istream/2.cc: Same.
2579 * testsuite/27_io/basic_iostream/2.cc: Same.
2580 * testsuite/27_io/basic_ios/2.cc: Same.
2581 * testsuite/27_io/basic_ifstream/2.cc: Same.
2582 * testsuite/27_io/basic_fstream/2.cc: Same.
2583 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
2585 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
2586 unsigned against zero.
2587 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
2588 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
2590 * testsuite/18_support/new_delete_placement.cc: Initialize
2591 variables before first use.
2592 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
2593 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
2594 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
2595 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
2597 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
2598 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
2600 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
2601 * testsuite/27_io/types/2.cc: Same.
2603 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
2605 * testsuite/27_io/fpos/14775.cc: Same.
2607 2004-04-19 Paolo Carlini <pcarlini@suse.de>
2609 PR libstdc++/15002 (partial)
2610 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2611 Special case __n2 == 1, not calling traits_type::assign/copy.
2613 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
2615 * include/bits/stl_bvector.h: Use _M_impl._M_start.
2617 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
2619 * include/bits/c++config (_GLIBCXX_STD): New.
2620 * src/list.cc: Use it.
2621 * include/std/std_bitset.h: Same.
2622 * include/bits/vector.tcc: Same.
2623 * include/bits/stl_set.h: Same.
2624 * include/bits/stl_multiset.h: Same.
2625 * include/bits/stl_multimap.h: Same.
2626 * include/bits/stl_map.h: Same.
2627 * include/bits/stl_list.h: Same.
2628 * include/bits/stl_vector.h: Same.
2629 * include/bits/stl_bvector.h: Same.
2630 * include/bits/stl_deque.h: Same.
2631 * include/bits/deque.tcc: Same.
2632 * include/bits/list.tcc: Same.
2633 * include/debug/vector: Same.
2634 * include/debug/set.h: Same.
2635 * include/debug/multiset.h: Same.
2636 * include/debug/multimap.h: Same.
2637 * include/debug/map.h: Same.
2638 * include/debug/list: Same.
2639 * include/debug/deque: Same.
2640 * include/debug/bitset: Same.
2641 * include/debug/formatter.h (__gnu_debug): Remove using directive.
2642 Add using declaration for std::type_info.
2643 * include/debug/safe_iterator.h: Add using declaration for
2644 std::iterator_traits and std::pair.
2645 * src/debug_list.cc: New.
2646 * src/Makefile.am: Add debug_list.cc.
2647 * src/Makefile.in: Regenerate.
2648 * config/linker-map.gnu: Add _List_node_base exports for std and
2651 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
2652 idiom that other containers use.
2653 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2655 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2658 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
2660 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
2661 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
2663 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2665 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
2667 * config.h.in: Regenerate.
2669 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2671 * config/locale/generic/monetary_members.cc
2672 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
2673 btowc unnecessarily, just cast to wchar_t (the concerned chars
2674 all belong to the basic character set).
2675 * config/locale/generic/numeric_members.cc
2676 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2677 * config/locale/gnu/monetary_members.cc
2678 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
2679 * config/locale/gnu/numeric_members.cc
2680 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2682 2004-04-15 Paolo Carlini <pcarlini@suse.de>
2684 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
2685 avoid constructing unnecessarily this->name().
2687 2004-04-14 Zack Weinberg <zack@codesourcery.com>
2689 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
2690 Change definition of CXX to use $(shell) instead of backticks.
2691 * testsuite/Makefile.in: Regenerate.
2693 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
2695 * testsuite/performance/20_util/allocator/list_sort_search.cc:
2696 Minor formatting fixes.
2697 * testsuite/performance/20_util/allocator/map_mt_find.cc:
2700 2004-04-12 Paolo Carlini <pcarlini@suse.de>
2702 * config/locale/gnu/numeric_members.cc
2703 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
2704 in __uselocale, since btowc is called for chars belonging to
2705 the basic character set.
2707 2004-04-09 Paolo Carlini <pcarlini@suse.de>
2709 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
2710 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
2711 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
2712 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
2713 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
2714 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
2715 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
2716 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
2717 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
2718 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
2719 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
2720 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
2721 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
2722 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
2723 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
2724 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
2725 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
2727 2004-04-07 Paolo Carlini <pcarlini@suse.de>
2729 * config/locale/generic/time_members.cc
2730 (__timepunct<char>::_M_initialize_timepunct,
2731 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
2732 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
2733 * config/locale/gnu/time_members.cc
2734 (__timepunct<char>::_M_initialize_timepunct,
2735 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
2736 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
2737 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
2739 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
2740 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
2741 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
2742 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
2743 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
2744 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
2745 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
2746 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
2747 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
2748 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
2749 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
2750 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
2751 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
2752 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
2753 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
2754 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
2755 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
2756 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
2757 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
2758 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
2759 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
2760 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
2761 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
2762 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
2763 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
2764 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
2765 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
2766 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
2767 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
2768 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
2769 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
2770 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
2771 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
2772 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
2773 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
2774 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
2776 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
2778 2004-04-07 Paolo Carlini <pcarlini@suse.de>
2780 * config/locale/gnu/monetary_members.cc
2781 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
2782 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
2783 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
2784 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
2785 * config/locale/gnu/numeric_members.cc
2786 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
2787 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
2789 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
2791 Fixups for EDG front end.
2792 * include/ext/rope: Instead of non-existent function
2793 _Data_allocate, use allocator's allocate. Use this.
2794 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
2795 enumerations from _Rope_RopeRep here.
2796 * include/ext/ropeimpl.h: Same.
2797 * src/ext-inst.cc (_S_min_len): Fix up definition.
2799 * config/locale/gnu/ctype_members.cc: Qualify base class members
2801 * config/locale/generic/ctype_members.cc: Same.
2802 * config/locale/gnu/messages_members.h: Same.
2803 * config/locale/generic/messages_members.h: Same.
2804 * src/ctype.cc: Same.
2805 * include/bits/codecvt.h: Same.
2807 * include/bits/boost_concept_check.h: Declare.
2808 (__error_type_must_be_an_unsigned_integer_type): Remove this.
2809 (__error_type_must_be_an_integer_type): Remove this.
2810 (__error_type_must_be_a_signed_integer_type): Remove this.
2812 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
2814 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
2815 specification to definition.
2816 (__cxa_allocate_exception): Same.
2817 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
2818 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
2819 (__cxa_get_globals): Same.
2821 * libsupc++/del_op.cc: Add comment about freestanding.
2823 2004-04-05 Paolo Carlini <pcarlini@suse.de>
2825 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2826 The critical section is actually very small, only two assignments.
2828 2004-04-04 Paolo Carlini <pcarlini@suse.de>
2829 Petur Runolfsson <peturr02@ru.is>
2831 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
2832 adapted from libstdc++/11378.
2834 2004-04-03 Paolo Carlini <pcarlini@suse.de>
2836 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
2837 some duplicated code.
2838 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
2839 in the single threaded case.
2840 * testsuite/performance/20_util/allocator/list_sort_search.cc:
2841 Reorder and renumber the tests consistently with the other testfiles.
2842 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
2843 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
2844 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
2846 2004-04-02 Paolo Carlini <pcarlini@suse.de>
2848 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2849 Rearrange arithmetic to avoid computing two divisions at
2852 2004-04-01 Paolo Carlini <pcarlini@suse.de>
2854 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
2855 Streamline the second half, wrapping it in a single
2856 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
2857 conditionals inside loops.
2859 2004-04-01 Paolo Carlini <pcarlini@suse.de>
2862 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
2863 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
2864 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
2865 to _GLIBCXX_RES_LIMITS.
2866 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
2868 * testsuite/testsuite_hooks.h: Declare set_file_limit.
2869 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
2870 and setrlimit(RLIMIT_FSIZE).
2871 * testsuite/27_io/fpos/14775.cc: New.
2872 * config.h.in: Regenerate.
2873 * configure: Likewise.
2875 2004-03-31 Paolo Carlini <pcarlini@suse.de>
2877 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
2878 In v3 uses of sscanf, the special floating-point numbers INF,
2879 INFINITY, etc., cannot occur in input, therefore, if the latter
2880 is too large, ERANGE is always stored in errno, no need of finitel.
2882 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
2885 * include/bits/stl_tree.h: Adjust initialization list order.
2887 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
2889 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
2891 2004-03-29 Paolo Carlini <pcarlini@suse.de>
2893 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
2894 on allocator behavior, the memory pointed by data2 may well be not
2897 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
2900 * include/bits/basic_string.tcc
2901 (basic_string::basic_string(const basic_string&)): Pass to
2902 _Rep::_M_grab the actual allocator of the string being constructed
2903 not the default constructed one.
2905 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
2908 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
2909 (__enc_traits::_M_destroy): New.
2910 (__enc_traits::~__enc_traits): Use it.
2911 (__enc_traits::operator=): Use _M_destroy, _M_init.
2912 (__enc_traits::__enc_traits): Same.
2914 2004-03-27 Petur Runolfsson <peturr02@ru.is>
2916 * testsuite/ext/enc_filebuf/char/13598.cc: New.
2918 2004-03-27 Paolo Carlini <pcarlini@suse.de>
2920 * include/ext/mt_allocator.h: Uglify consistently names of
2921 variables, members and classes; tidy.
2923 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
2925 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2926 Deallocation loop rewrote.
2928 2004-03-26 Paolo Carlini <pcarlini@suse.de>
2930 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
2931 __mt_alloc<>::deallocate): Protect two instances of
2932 block->thread_id with __GTHREADS.
2934 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
2936 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
2937 default argument in constructors.
2938 (_Rb_tree::_M_empty_initialize): Remove.
2940 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
2942 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
2943 * testsuite/23_containers/set/operators/1_neg.cc: Same.
2945 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2947 * include/bits/cpp_type_traits.h: Changed __is_pod
2948 completely. Now, it does not use any of the previous type_traits
2949 to detect the pod types, and it also detects function pointers as
2952 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
2953 which encapsulates the internal implementation of an rb_tree. Made
2954 the allocator a base class of this class instead of the rb_tree,
2955 which was not conforming. This _Rb_tree_impl class is also
2956 specialized on whether the _Compare parameter is a POD type or
2957 not. If so, then it maintains the comparison function as a data
2958 member, otherwise it makes the _Compare parameter a base class of
2959 itself. Also, _M_key_compare is now a function instead of a data
2960 member, so that the above trick can work properly. Delegated the
2961 initialization of the other data members to this newly created
2962 class. Also, now other member functions of rb_tree must refer to
2963 _M_key_compare as _M_impl._M_key_compare(). The other data members
2964 (*) can be referenced to as _M_impl.(*), where
2965 (*) includes _M_header, and _M_node_count.
2967 2004-03-25 Paolo Carlini <pcarlini@suse.de>
2969 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
2970 Add _M_min_bin, the size in bytes of the smallest bin.
2971 (__mt_alloc<>::tune()): Tweak accordingly.
2972 (__mt_alloc<>::tune(size_t, ...)): Likewise.
2973 (__mt_alloc<>::block_record): Change to a union: members next
2974 and thread_id are never used at the same time.
2975 (__mt_alloc<>::allocate): Update consistently.
2976 (__mt_alloc<>::deallocate): Likewise.
2977 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
2978 _S_bin_size for the configurable _M_min_size.
2980 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2982 * include/bits/stl_list.h: Created a _List_impl class and made it
2983 derive from the allocator, instead of the list deriving from the
2984 allocator class, which was not conformant. Changed all references
2985 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
2986 as above (changed all references to the concerned variables).
2988 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2990 * include/bits/stl_deque.h: Created a _Deque_impl class and made
2991 it derive from the allocator, instead of the deque deriving from
2992 the allocator class, which was not conformant. Changed all
2993 references to the _M_start, _M_finish, _M_map, and _M_map_size to
2995 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
2996 qualification in 2 places where it was missing.
2997 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
2999 * include/bits/deque.tcc: Same as above (changed all references to
3000 the concerned variables).
3002 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3004 * include/bits/stl_vector.h: Created a _Vector_impl class and made
3005 it derive from the allocator, instead of the _Vector_base class,
3006 deriving from the allocator which was not conformant. Changed all
3007 references to the _M_start, _M_finish, and _M_end_of_storage to
3009 * include/bits/vector.tcc: Same as above (changed all references
3010 to the concerned variables).
3012 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3014 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
3015 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
3016 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
3018 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3020 * include/ext/malloc_allocator.h: Fixed the construct function to
3021 call global placement new instead of assignment. Added a check
3022 after the return from malloc to check whether returned pointer is
3023 NULL, and if so, throw std::bad_alloc().
3024 * include/ext/debug_allocator.h: Added a check in the deallocate
3025 function to check whether the user has passed a NULL pointer or
3028 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
3030 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
3032 2004-03-24 Andreas Schwab <schwab@suse.de>
3034 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
3035 warning from IA64 assembler.
3037 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3039 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
3040 function call __builtin_ctz instead of the while loop.
3041 (allocate) -> If condition has __builtin_expect.
3042 (deallocate) -> Ditto.
3043 Renamed a few left-over variables and typedefs according to the
3044 C++STYLE mentioned in the documentation.
3045 Protected calls to __gthread* by __gthread_active_p(), whose value
3046 is cached in the local variable __threads_active.
3048 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
3050 * testsuite/performance/20_util/allocator/producer_consumer.cc:
3051 Use linear algorithm for producer.
3053 2004-03-24 Paolo Carlini <pcarlini@suse.de>
3055 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3056 __mt_alloc<>::deallocate): Avoid redundant conditionals.
3058 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
3060 * include/bits/locale_facets.h: Tweaks for 80 column.
3061 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
3062 (__moneypunct_cache::_M_cache): Same.
3063 (num_get): Don't inherit from __num_base.
3065 (money_get): Don't inherit from money_base.
3067 (__timepunct::_M_am_pm_format): New.
3068 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
3069 (time_get::_M_extract_name): Same.
3070 (time_get::_M_extract_via_format): Same.
3071 * include/bits/locale_facets.tcc: Tweaks for 80 column.
3072 Use _M_getloc instead of getloc.
3073 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
3074 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
3075 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
3077 2004-03-22 Paolo Carlini <pcarlini@suse.de>
3079 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
3080 * configure: Regenerate.
3081 * config/allocator/pool_allocator_base.h: New.
3082 * include/ext/pool_allocator.h: Convert to a standard-conforming
3084 * src/allocator.cc: Tweak instantiations.
3085 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
3086 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
3087 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
3088 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3089 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3090 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3092 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
3094 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
3095 inline" and attribute-unused. Qualify parameter __mem with
3097 (__exchange_and_add): Ditto. Add back memory clobber to asm.
3099 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3101 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
3103 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
3105 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
3107 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
3109 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
3111 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
3113 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3115 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3117 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
3119 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3122 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3124 * include/std/std_valarray.h: Document DR389 [Ready].
3125 * docs/html/ext/howto.html: Add an entry for DR389.
3127 2004-03-19 Michael Eager <eager@mvista.com>
3129 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
3132 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3134 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
3136 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
3137 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
3138 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
3139 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
3140 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
3141 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
3142 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
3143 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
3144 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
3146 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3147 Petur Runolfsson <peturr02@ru.is>
3150 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
3151 no way to find out the conversion used by the underlying FILE*.
3152 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
3153 * testsuite/27_io/objects/char/9.cc: Tweak.
3155 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3158 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
3159 memory allocation/deallocation calls.
3160 * testsuite/ext/14648.cc: New.
3162 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
3165 * include/backward/bvector.h (bit_vector): Allocator is in std
3168 2004-03-19 Phil Edwards <phil@codesourcery.com>
3170 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
3171 not libiconv. SUBST this variable as well.
3172 * testsuite/Makefile.am (site.exp): New target, based on that
3173 created by automake. Also set libiconv.
3175 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
3176 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
3177 testsuite/Makefile.in: Regenerate.
3179 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
3181 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
3182 new_allocator for all hosts.
3183 * configure: Regenerate.
3185 2004-03-16 Paolo Carlini <pcarlini@suse.de>
3187 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
3188 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
3190 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3192 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3193 Adjust the logic underlying the parsing of symbol to deal
3194 correctly with an optional sign component (i.e., when either
3195 negative_sign or positive_sign is empty)
3196 * testsuite/22_locale/money_get/get/char/19.cc: New.
3197 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
3199 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3201 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3202 Do not accept an incomplete currency symbol.
3203 * testsuite/22_locale/money_get/get/char/18.cc: New.
3204 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
3206 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
3208 * config/allocator: New.
3209 * config/allocator/bitmap_allocator_base.h: New.
3210 * config/allocator/malloc_allocator_base.h: New.
3211 * config/allocator/mt_allocator_base.h: New.
3212 * config/allocator/new_allocator_base.h: New.
3213 * include/bits/allocator.h: Include c++allocator.h.
3214 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
3215 * aclocal.m4: Regenerate.
3216 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
3217 * configure: Regenerate.
3218 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
3219 * include/Makefile.in: Regenerate.
3220 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
3222 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3224 * include/bits/allocator.h: Revert.
3226 2004-03-12 Paolo Carlini <pcarlini@suse.de>
3228 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
3229 * include/bits/gslice_array.h: Add comment about DR 253.
3230 * include/bits/indirect_array.h: Likewise.
3231 * include/bits/mask_array.h: Likewise.
3232 * include/bits/slice_array.h: Likewise.
3234 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3236 * testsuite/20_util/allocator/14176.cc: New.
3237 * include/ext/mt_allocator.h: Formatting fixes.
3239 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
3241 * include/Makefile.am (ext_headers): Add
3242 ${ext_srcdir}/bitmap_allocator.h .
3243 * include/Makefile.in: Regenerate.
3244 * docs/html/ext/ballocator_doc.txt: New file.
3245 * include/ext/bitmap_allocator.h: New file.
3246 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
3248 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
3249 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
3250 test for the bitmap_allocator<>.
3251 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
3252 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
3253 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
3255 2004-03-11 Paolo Carlini <pcarlini@suse.de>
3257 * include/std/std_complex.h (pow(const complex&, const _Tp&),
3258 pow(const _Tp&, const complex&), pow(const complex&,
3259 const complex&)): Fully qualify with std:: a few calls.
3260 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
3262 2004-03-11 Steven Bosscher <stevenb@suse.de>
3265 * include/c_std/cmath.tcc (__cmath_power): Define inline.
3267 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
3269 * configure.ac: Bump AC_PREREQ to 2.59.
3271 2004-03-10 Paolo Carlini <pcarlini@suse.de>
3273 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
3275 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
3276 Paolo Carlini <pcarlini@suse.de>
3279 * include/std/std_complex.h (pow(const complex&, const _Tp&),
3280 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
3281 * testsuite/26_numerics/complex/13450.cc: New.
3283 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
3284 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
3286 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
3289 * include/bits/gslice_array.h (gslice_array()): Make public.
3290 (operator=(gslice_array)): Make public. Implement.
3291 * include/bits/indirect_array.h (indirect_array()): Make public.
3292 * include/bits/mask_array.h (mask_array()): Make public.
3293 (operator=(mask_array)): Make public. Implement.
3294 * include/bits/valarray_array.tcc (__valarray_copy):
3295 Comment. Add versions for gslice_array and mask_array.
3296 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
3298 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
3300 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
3302 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
3303 * testsuite/23_containers/set/modifiers/swap.cc: Same.
3304 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
3305 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
3306 * testsuite/23_containers/map/modifiers/swap.cc: Same.
3307 * testsuite/23_containers/list/modifiers/swap.cc: Same.
3309 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
3311 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
3314 * testsuite/23_containers/deque/modifiers/swap.cc: New.
3315 * testsuite/23_containers/list/modifiers/swap.cc: New.
3316 * testsuite/23_containers/map/modifiers/swap.cc: New.
3317 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
3318 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
3319 * testsuite/23_containers/set/modifiers/swap.cc: New.
3320 * testsuite/23_containers/vector/modifiers/swap.cc: New.
3322 2004-03-08 Petur Runolfsson <peturr02@ru.is>
3325 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
3327 2004-03-08 Paolo Carlini <pcarlini@suse.de>
3329 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
3330 * include/bits/stl_multiset.h: Add comment about DR 103.
3331 * include/bits/stl_set.h: Likewise.
3333 2004-03-08 Paolo Carlini <pcarlini@suse.de>
3335 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3336 The value _space_ indicates that at least one space is required
3338 * testsuite/22_locale/money_get/get/char/17.cc: New.
3339 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
3341 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
3342 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
3344 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
3345 Remove redundant conditional on __str.size().
3347 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
3349 * include/bits/allocator.h: Switch defaults to mt_alloc.
3351 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
3353 * include/ext/mt_allocator.h (_S_initialize): If
3354 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
3356 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
3359 * src/locale_init.cc (locale::locale): Lock critical regions with
3361 (locale::global): Same.
3362 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
3363 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
3364 (__glibcxx_mutex_lock): Same.
3366 * config/cpu/generic/atomicity.h: Remove
3367 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
3368 * src/misc-inst.cc: Move all locking bits out of this file.
3370 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
3371 * src/misc-inst.cc: Same.
3372 * config/cpu/hppa/atomicity.h: Same.
3374 * config/linker-map.gnu: Remove types in the signature of atomic
3375 exports, as they may vary.
3377 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3379 * include/bits/locale_facets.tcc: Tweak the comment preceding
3380 has_facet: doesn't throw.
3382 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3384 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
3385 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3386 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3387 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3388 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3389 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3390 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3391 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3393 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3395 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3396 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
3397 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
3398 * testsuite/testsuite_character.h (struct __gnu_test::character):
3400 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
3403 2004-03-05 Paolo Carlini <pcarlini@suse.de>
3405 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
3407 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
3409 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
3411 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
3413 * testsuite/23_containers/deque/invalidation/4.cc: Same.
3414 * testsuite/23_containers/list/invalidation/1.cc: Same.
3415 * testsuite/23_containers/list/invalidation/2.cc: Same.
3416 * testsuite/23_containers/list/invalidation/3.cc: Same.
3417 * testsuite/23_containers/list/invalidation/4.cc: Same.
3418 * testsuite/23_containers/map/invalidation/2.cc: Same.
3419 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
3420 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3421 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
3422 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3423 * testsuite/23_containers/set/invalidation/1.cc: Same.
3424 * testsuite/23_containers/set/invalidation/2.cc: Same.
3425 * testsuite/23_containers/vector/invalidation/1.cc: Same.
3426 * testsuite/23_containers/vector/invalidation/2.cc: Same.
3427 * testsuite/23_containers/vector/invalidation/3.cc: Same.
3428 * testsuite/23_containers/vector/invalidation/4.cc: Same.
3430 2004-03-04 Paolo Carlini <pcarlini@suse.de>
3432 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
3434 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
3436 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
3437 from the dg-options.
3438 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
3439 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
3440 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
3441 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
3442 * testsuite/23_containers/vector/resize/1.cc: Likewise.
3443 * testsuite/26_numerics/complex_value.cc: Likewise.
3444 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
3445 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
3446 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
3447 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
3448 * testsuite/27_io/objects/char/5.cc: Likewise.
3449 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
3450 * testsuite/backward/11460.cc: Likewise.
3451 * testsuite/thread/pthread7-rope.cc: Likewise.
3453 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
3454 missing test variable.
3455 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
3456 missing test variable.
3458 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
3460 * testsuite/20_util/allocator/1.cc: Provide explicit
3461 instantiations for non-weak systems.
3462 * testsuite/20_util/binders.cc: Same.
3463 * testsuite/20_util/allocator/8230.cc: Same.
3464 * testsuite/20_util/allocator/10378.cc: Same.
3465 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
3466 * testsuite/22_locale/ctype/is/char/2.cc: Same.
3467 * testsuite/thread/pthread7-rope.cc: Same.
3468 * testsuite/thread/pthread6.cc: Same.
3469 * testsuite/thread/pthread5.cc: Same.
3470 * testsuite/thread/pthread4.cc: Same.
3471 * testsuite/thread/pthread1.cc: Same.
3472 * testsuite/ext/rope.cc: Same.
3473 * testsuite/ext/hash_set.cc: Same.
3474 * testsuite/ext/hash_map.cc: Same.
3475 * testsuite/ext/concept_checks.cc: Same.
3476 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
3477 * testsuite/25_algorithms/unique/2.cc: Same.
3478 * testsuite/25_algorithms/unique/1.cc: Same.
3479 * testsuite/25_algorithms/rotate.cc: Same.
3480 * testsuite/25_algorithms/min_max.cc: Same.
3481 * testsuite/25_algorithms/equal.cc: Same.
3482 * testsuite/24_iterators/rel_ops.cc: Same.
3483 * testsuite/24_iterators/iterator.cc: Same.
3484 * testsuite/24_iterators/insert_iterator.cc: Same.
3485 * testsuite/24_iterators/front_insert_iterator.cc: Same.
3486 * testsuite/24_iterators/back_insert_iterator.cc: Same.
3487 * testsuite/23_containers/vector/resize/1.cc: Same.
3488 * testsuite/23_containers/vector/modifiers/2.cc: Same.
3489 * testsuite/23_containers/vector/modifiers/1.cc: Same.
3490 * testsuite/23_containers/vector/invalidation/4.cc: Same.
3491 * testsuite/23_containers/vector/invalidation/3.cc: Same.
3492 * testsuite/23_containers/vector/invalidation/2.cc: Same.
3493 * testsuite/23_containers/vector/invalidation/1.cc: Same.
3494 * testsuite/23_containers/vector/element_access/1.cc: Same.
3495 * testsuite/23_containers/vector/cons/6513.cc: Same.
3496 * testsuite/23_containers/vector/cons/3.cc: Same.
3497 * testsuite/23_containers/vector/cons/2.cc: Same.
3498 * testsuite/23_containers/vector/cons/1.cc: Same.
3499 * testsuite/23_containers/vector/capacity/8230.cc: Same.
3500 * testsuite/23_containers/vector/capacity/1.cc: Same.
3501 * testsuite/23_containers/vector/bool/6886.cc: Same.
3502 * testsuite/23_containers/stack/members/7158.cc: Same.
3503 * testsuite/23_containers/set/invalidation/2.cc: Same.
3504 * testsuite/23_containers/set/invalidation/1.cc: Same.
3505 * testsuite/23_containers/queue/members/7157.cc: Same.
3506 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
3507 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3508 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3509 * testsuite/23_containers/multiset/insert/1.cc: Same.
3510 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3511 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3512 * testsuite/23_containers/map/operators/1.cc: Same.
3513 * testsuite/23_containers/map/invalidation/2.cc: Same.
3514 * testsuite/23_containers/map/invalidation/1.cc: Same.
3515 * testsuite/23_containers/map/insert/1.cc: Same.
3516 * testsuite/23_containers/list/operators/4.cc: Same.
3517 * testsuite/23_containers/list/operators/3.cc: Same.
3518 * testsuite/23_containers/list/operators/2.cc: Same.
3519 * testsuite/23_containers/list/operators/1.cc: Same.
3520 * testsuite/23_containers/list/modifiers/3.cc: Same.
3521 * testsuite/23_containers/list/modifiers/2.cc: Same.
3522 * testsuite/23_containers/list/modifiers/1.cc: Same.
3523 * testsuite/23_containers/list/invalidation/4.cc: Same.
3524 * testsuite/23_containers/list/invalidation/3.cc: Same.
3525 * testsuite/23_containers/list/invalidation/2.cc: Same.
3526 * testsuite/23_containers/list/invalidation/1.cc: Same.
3527 * testsuite/23_containers/list/cons/9.cc: Same.
3528 * testsuite/23_containers/list/cons/8.cc: Same.
3529 * testsuite/23_containers/list/cons/7.cc: Same.
3530 * testsuite/23_containers/list/cons/6.cc: Same.
3531 * testsuite/23_containers/list/cons/5.cc: Same.
3532 * testsuite/23_containers/list/cons/4.cc: Same.
3533 * testsuite/23_containers/list/cons/3.cc: Same.
3534 * testsuite/23_containers/list/cons/2.cc: Same.
3535 * testsuite/23_containers/list/cons/1.cc: Same.
3536 * testsuite/23_containers/list/capacity/1.cc: Same.
3537 * testsuite/23_containers/deque/operators/1.cc: Same.
3538 * testsuite/23_containers/deque/invalidation/4.cc: Same.
3539 * testsuite/23_containers/deque/invalidation/3.cc: Same.
3540 * testsuite/23_containers/deque/invalidation/2.cc: Same.
3541 * testsuite/23_containers/deque/invalidation/1.cc: Same.
3542 * testsuite/23_containers/deque/cons/2.cc: Same.
3543 * testsuite/23_containers/deque/cons/1.cc: Same.
3545 * src/allocator.cc: Add char, wchar_t instantiations
3546 to match extern template declarations in memory.h.
3548 2004-03-03 Paolo Carlini <pcarlini@suse.de>
3550 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3551 Fix warning regression.
3553 2004-03-03 Paolo Carlini <pcarlini@suse.de>
3555 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3556 Deal properly with empty __digits and negative frac_digits,
3559 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
3561 * docs/html/documentation.html: Regenerate.
3563 2004-03-02 Paolo Carlini <pcarlini@suse.de>
3566 * include/bits/postypes.h (class streamoff): Remove, now
3567 streamoff is just typedef a 64 bit signed integer type.
3568 (class fpos): Tweak consistently.
3569 * testsuite/27_io/fpos/14320-1.cc: New.
3570 * testsuite/27_io/fpos/14320-2.cc: New.
3571 * testsuite/27_io/fpos/14320-3.cc: New.
3572 * testsuite/27_io/fpos/14320-4.cc: New.
3573 * testsuite/27_io/fpos/14320-5.cc: New.
3574 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
3576 2004-03-02 Paolo Carlini <pcarlini@suse.de>
3578 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3579 Reorganize a bit the main parsing loop, thus early detecting
3580 an empty value component.
3581 * testsuite/22_locale/money_get/get/char/16.cc: New.
3582 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
3584 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
3586 Support automake 1.8.2
3587 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
3588 * po/Makefile.am (EXTRA_DIST): New.
3589 * po/Makefile.in: Regenerate.
3590 * Makefile.in: Same.
3591 * include/Makefile.in: Same.
3592 * libmath/Makefile.in: Same.
3593 * libsupc++/Makefile.in: Same.
3594 * src/Makefile.in: Same.
3595 * testsuite/Makefile.in: Same.
3597 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
3598 __GXX_WEAK__ instead of SUPPORTS_WEAK.
3599 (${host_builddir}/gthr-default.h): Same.
3600 (${host_builddir}/gthr.h): Same.
3601 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
3602 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
3604 * aclocal.m4: Regenerate.
3605 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
3606 * config.h.in: Regenerate.
3609 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
3611 Support autoconf 2.59
3612 * acinclude.m4: Quote correctly.
3613 * aclocal.m4: Regenerate.
3616 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
3618 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
3620 * docs/html/18_support/howto.html: Add bit about writing to
3621 stderr, mostly by Zack.
3623 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3625 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3626 money_get<>::do_get(string_type&)): ... and two more.
3628 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3630 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3631 Fix thinkos in the switch from string_type& to string& as last
3634 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3636 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3637 Also when parsing exponent sign, first look for thousands_sep
3638 and decimal_point; tweak a bit.
3639 * testsuite/22_locale/num_get/get/char/15.cc: New.
3640 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
3642 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3643 num_get<>::_M_extract_int): Reorder some conditionals.
3645 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3647 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3648 Consistently with numpunct, enforce the requirements in
3649 22.2.6.3, p3 for the thousands separators; tweak a bit.
3650 * testsuite/22_locale/money_get/get/char/15.cc: New.
3651 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
3653 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
3655 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
3656 testsuite_files from correct multilib blddir when running
3659 2004-02-29 Phil Edwards <phil@codesourcery.com>
3661 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
3662 the summary file to the logfile.
3663 * testsuite/Makefile.in: Regenerate.
3665 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3667 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
3669 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
3670 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
3672 2004-02-28 Paolo Carlini <pcarlini@suse.de>
3674 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3675 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
3676 no 'decimal-point' in the middle: in this case too we must fix
3677 up __found_grouping; slightly tweak.
3678 * testsuite/22_locale/num_get/get/char/14.cc: New.
3679 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
3681 2004-02-27 Eric Christopher <echristo@redhat.com>
3682 Phil Edwards <phil@codesourcery.com>
3684 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
3685 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
3686 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
3687 testsuite/22_locale/collate/hash/wchar_t/2.cc,
3688 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
3689 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
3690 testsuite/22_locale/collate/transform/wchar_t/2.cc,
3691 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
3692 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3693 Use dg-require-iconv.
3694 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
3696 2004-02-27 Phil Edwards <phil@codesourcery.com>
3697 Eric Christopher <echristo@redhat.com>
3699 * testsuite/config/default.exp: Update with comments.
3700 (${tool}_target_compile): New wrapper routine.
3701 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
3702 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
3704 (load_gcc_lib, v3track): New routines.
3705 (v3-init): Rename to libstdc++_init.
3706 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
3707 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
3709 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
3711 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
3713 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
3715 * config/os/irix/irix5.2/atomicity.h: Merge..
3716 * config/os/irix/irix6.5/atomicity.h: Merge..
3717 * config/os/irix/atomicity.h: ...into this.
3718 * config/os/irix/atomic_word.h: New.
3719 * configure.host: Set atomic_word_dir for irix.
3721 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
3722 * i386/atomicity.h: Same.
3723 * m68k/atomicity.h: Same.
3724 * sparc/atomicity.h: Same.
3726 2004-02-27 David Edelsohn <edelsohn@gnu.org>
3728 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
3729 static, and inline keywords.
3731 2004-02-27 Paolo Carlini <pcarlini@suse.de>
3733 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3734 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
3735 call reserve on the __tmp_gruping string.
3736 (num_get<>::_M_extract_float): Don't append unnecessarily a
3737 char() to the returned string.
3738 * include/bits/locale_facets.tcc: Trivial reformattings.
3740 2004-02-27 Paolo Carlini <pcarlini@suse.de>
3742 * include/bits/locale_facets.h (money_get<>::_M_extract):
3743 Change signature: now takes a plain string&.
3744 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3745 Update consistently the definition; use the moneypunct cache
3746 to parse the value; use swap to change __units.
3747 (money_get<>::do_get(long double&)): Update call of _M_extract,
3748 avoid ctype::narrow, not correct wrt the standard.
3749 (money_get<>::do_get(string_type&)): Likewise, update call
3750 of _M_extract, use ctype::widen.
3751 * src/locale-inst.cc: Tweak instantiations of _M_extract.
3753 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
3755 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
3756 * testsuite/demangle/abi_examples/02.cc: Likewise.
3757 * testsuite/demangle/regression/cw-11.cc: Likewise.
3758 * testsuite/demangle/regression/cw-16.cc: Change two expected
3759 results to match libiberty demangler output.
3761 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
3764 * libsupc++/Makefile.am: Use libiberty demangler.
3765 (c_sources): Add cp-demangle.c.
3766 * libsupc++/Makefile.in: Regenerate.
3767 * src/Makefile.am (sources): Remove demangle.cc.
3768 * src/Makefile.in: Regenerate.
3769 * include/Makefile.am (bits_headers): Move demangle.h.
3770 (ext_headers): ...here.
3771 * include/Makefile.in: Regenerate.
3772 * include/bits/demangle.h: Move...
3773 * include/ext/demangle.h: ...here.
3774 * src/demangle.cc: Remove.
3776 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
3778 * include/bits/demangle.h: Add type template parameter to all
3779 templates with just an Allocator template parameter.
3781 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
3783 * include/bits/atomicity.h: New, forward declarations for __atomic_add
3784 and __exchange_and_add.
3785 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
3786 * config/cpu/cris/atomic_word.h: Same.
3787 * config/cpu/sparc/atomic_word.h: Same.
3788 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
3789 Qualifiy with __gnu_cxx.
3790 (_Callback_list::_M_add_reference): Same.
3791 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
3792 (locale::facet::_M_remove_reference): Same.
3793 (locale::_Impl::_M_add_reference): Add.
3794 (locale::_Impl::_M_remove_reference): Same.
3795 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
3796 (basic_string::_Rep::_M_dispose): Same.
3797 * src/ios.cc (ios_base::xalloc): Same.
3798 * src/ios_init.cc (ios_base::Init::Init): Same.
3799 (ios_base::Init::~Init): Same.
3800 * src/locale.cc (locale::id::_M_id): Same.
3801 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
3802 static, and inline keywords.
3803 * config/cpu/alpha/atomicity.h: Same.
3804 * config/cpu/cris/atomicity.h: Same.
3805 * config/cpu/generic/atomicity.h: Same.
3806 * config/cpu/hppa/atomicity.h: Same.
3807 * config/cpu/i386/atomicity.h: Same.
3808 * config/cpu/ia64/atomicity.h: Same.
3809 * config/cpu/m68k/atomicity.h: Same.
3810 * config/cpu/mips/atomicity.h: Same.
3811 * config/cpu/powerpc/atomicity.h: Same.
3812 * config/cpu/s390/atomicity.h: Same.
3813 * config/cpu/sparc/atomicity.h: Same.
3815 * src/Makefile.am (host_sources): Add atomicity.cc.
3816 (atomicity.cc): New rule.
3817 * src/Makefile.in: Regenerate.
3818 * include/Makefile.am (host_headers): Remove host atomicity.h.
3819 (host_headers): Add atomic_word.h.
3820 (bits_headers): Add bits atomicity.h.
3821 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3822 * include/Makefile.in: Regenerate.
3823 * configure.host (atomic_word_dir): Add.
3824 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
3825 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3826 * configure: Regenerate.
3827 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
3829 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
3830 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3832 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
3834 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
3835 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
3836 Fix markup, more <link> tags.
3838 2004-02-25 Carlo Wood <carlo@alinoe.com>
3841 namespace __gnu_cxx::demangler
3842 (session<Allocator>::qualifier_list_Allocator): Add
3843 (session<Allocator>::M_qualifier_list_alloc): Add
3844 (session<Allocator>::decode_type_with_postfix):
3845 Use M_qualifier_list_alloc instead of calling operator new/delete.
3847 2004-02-24 Paolo Carlini <pcarlini@suse.de>
3850 * include/bits/postypes.h (class streamoff): Add operator++(),
3851 operator++(int), operator--() and operator--(int).
3852 * testsuite/27_io/fpos/14252.cc: New.
3854 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
3856 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
3857 error in handling of hex constants.
3859 2004-02-24 Paolo Carlini <pcarlini@suse.de>
3861 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3862 Prefer basic_string::append to operator+= and a temporary.
3864 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
3866 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
3867 Only use fputs, not write.
3869 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
3871 * include/ext/malloc_allocator.h: Add operators ==, !=.
3872 * include/ext/new_allocator.h: Add operators ==, !=.
3873 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
3874 (__mt_alloc::_S_get_options): New.
3875 (__mt_alloc::_S_set_options): New.
3876 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
3877 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
3878 Move functions out of line, simplify, format.
3879 * src/allocator.cc: Simplify explicit instantiations.
3880 * include/bits/allocator.h: Tweak.
3882 2004-02-22 Paolo Carlini <pcarlini@suse.de>
3884 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3885 Restructure formatting of value component, first dealing with
3886 the non-decimal digits; use reserve.
3888 2004-02-22 Paolo Carlini <pcarlini@suse.de>
3890 * include/bits/locale_facets.h (class money_get): Inherit
3891 from money_base too; tweak declaration of _M_extract, now
3892 parameterized on _Intl too.
3893 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3894 Update definition to use the cache; call reserve on __res to
3895 avoid multiple reallocations; fix parsing of sign component
3896 according to 22.2.6.1.2, p3.
3897 (money_get<>::do_get(long double&),
3898 money_get<>::do_get(string_type&)): Update calls of _M_extract.
3899 * src/locale-inst.cc: Add instantiations of
3900 money_get::_M_extract<false> and money_get::_M_extract<true>.
3901 * testsuite/22_locale/money_get/get/char/14.cc: New.
3902 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
3904 2004-02-21 Mark Mitchell <mark@codesourcery.com>
3906 * libsupc++/vterminate.cc
3907 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
3909 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
3911 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3912 not set RLIMIT_AS on HP-UX.
3914 2004-02-21 Mark Mitchell <mark@codesourcery.com>
3916 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3917 not set RLIMIT_AS on HP-UX.
3919 2004-02-21 Paolo Carlini <pcarlini@suse.de>
3921 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
3922 _S_zero, _S_end } enum, _S_atoms.
3923 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
3924 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
3925 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
3926 (__moneypunct_cache<>::~__moneypunct_cache): Update.
3927 (__moneypunct_cache<>::_M_cache): Fill the cache.
3928 (class moneypunct): Tweak __cache_type typedef.
3929 (class money_put): Inherit from money_base too; tweak declaration
3930 of _M_insert, now parameterized on _Intl.
3931 * include/bits/locale_facets.tcc
3932 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
3933 (money_put<>::_M_insert): Update definition to use the cache;
3934 call reserve on __res to avoid multiple reallocations.
3935 (money_put<>::do_put(long double),
3936 money_put<>::do_put(const string_type&): Update calls of _M_insert.
3937 * config/locale/generic/monetary_members.cc
3938 (moneypunct<char, true>::_M_initialize_moneypunct,
3939 moneypunct<char, false>::_M_initialize_moneypunct,
3940 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
3941 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
3942 * config/locale/gnu/monetary_members.cc: Likewise.
3943 * config/locale/gnu/monetary_members.cc
3944 (moneypunct<wchar_t, true>::~moneypunct(),
3945 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
3946 * src/globals_locale.cc: Tweak fake_money_cache_c.
3947 * src/locale-inst.cc: Add instantiations for
3948 money_put::_M_insert<false> and money_put::_M_insert<true> and
3949 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
3950 * src/locale_facets.cc: Define money_base::_S_atoms.
3951 * src/locale_init.cc: Update placement new of
3952 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
3953 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
3955 * config/locale/generic/numeric_members.cc: Clean up.
3956 * config/locale/gnu/numeric_members.cc: Likewise.
3957 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
3958 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
3959 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
3960 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
3961 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
3962 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
3964 2004-02-20 Mark Mitchell <mark@codesourcery.com>
3966 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
3967 FIFO for writing with ios_base::in|ios_base::out.
3968 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3969 * testsuite/27_io/objects/char/7.cc: Likewise.
3970 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
3973 2004-02-19 David Edelsohn <edelsohn@gnu.org>
3975 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
3976 from iso-8859-1 to ISO8859-1.
3977 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
3978 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
3979 * 22_locale/collate/hash/wchar_t/2.cc: Same.
3980 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
3981 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
3982 * 22_locale/collate/transform/wchar_t/2.cc: Same.
3983 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
3984 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
3986 2004-02-18 Paolo Carlini <pcarlini@suse.de>
3988 * include/bits/locale_facets.h (money_get<>::_M_extract):
3989 New, helper for do_get.
3990 (money_put<>::_M_insert): Likewise, for do_put.
3991 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3992 money_put<>::_M_insert): Define.
3993 (money_get<>::do_get(long double&), money_get<>::do_get(
3994 string_type&), money_put::do_put(long double),
3995 money_put::do_put(const string_type&)): Use the helpers.
3997 2004-02-18 Paolo Carlini <pcarlini@suse.de>
3999 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4000 Rewrite, avoiding recursion.
4001 (__gnu_internal::xwrite): Minor tweaks.
4003 2004-02-17 Stefan Olsson <stefan@xapa.se>
4005 * include/ext/mt_allocator.h: Removed the last
4006 pointer. Deallocated blocks are now added to the front of
4007 freelists as proposed by Felix Yen. This gives roughly 10%
4008 performance boost and saves some memory.
4009 * docs/html/ext/mt_allocator.html: Change due to that deallocated
4010 blocks now are added to the front of freelists. The reason to this
4011 approach is also explained.
4013 2004-02-17 Paolo Carlini <pcarlini@suse.de>
4015 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4016 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
4017 grouping fidelity conditional.
4019 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4021 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
4022 Qualify exception with std::.
4023 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
4024 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4025 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4026 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4027 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4029 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4031 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
4032 for now that the catch block is not reached.
4033 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
4035 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4037 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4038 Fix parsing of the remaining sign characters.
4039 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
4040 the input is scanned 'til eof.
4041 * 22_locale/money_get/get/char/4.cc: Likewise.
4042 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
4043 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
4044 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
4045 not do_pos_format: the former is the only one that matters during
4047 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
4049 * 22_locale/money_get/get/char/6.cc: Minor tweak.
4050 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
4052 2004-02-15 David Asher <david.asher@cavium.com>
4055 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
4056 access __olds beyond __oldlen.
4058 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4060 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
4061 sure the exception is actually thrown.
4062 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4063 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4064 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4066 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4069 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
4070 In case of conversion errors, throw ios_failure; simplify.
4071 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
4072 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4073 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
4074 previously we didn't throw in case of conversion errors, instead
4075 just returned eof().
4076 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4077 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4078 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4080 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
4081 Trivial simplification of a conditional.
4083 2004-02-12 Paolo Carlini <pcarlini@suse.de>
4085 PR libstdc++/13731 (final part: writev)
4086 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4087 New, a wrapper around writev() handling partial writes.
4088 (__basic_file<char>::xwrite): Move to __gnu_internal and make
4090 (__basic_file<char>::xsputn): Update call.
4091 (__basic_file<char>::xsputn_2): Likewise.
4092 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4093 Don't declare, now static.
4095 2004-02-11 Stefan Olsson <stefan@xapa.se>
4097 * docs/html/ext/mt_allocator.html: New.
4099 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
4101 * docs/html/20_util/allocator.html: New file, consolidate
4102 allocator information here. Revamp.
4103 * docs/html/documentation.html: Change links.
4104 * docs/html/20_util/howto.html: Same.
4105 * docs/html/ext/howto.html: Same.
4107 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4109 PR libstdc++/13731 (first part: write)
4110 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4112 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
4113 Define it: a wrapper around write() handling partial write.
4114 (__basic_file<char>::xsputn): Use it.
4115 (__basic_file<char>::xsputn_2): Likewise.
4117 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4118 Petur Runolfsson <peturr02@ru.is>
4121 * include/std/std_istream.h (operator>>(__istream_type& (*)
4122 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
4123 operator>>(ios_base& (*)(ios_base&))): Declare inline.
4124 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
4125 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
4126 operator<<(ios_base& (*) (ios_base&))): Likewise.
4127 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
4129 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
4132 * config/linker-map.gnu: Add typeinfo and typeinfo name for
4133 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
4136 * config/linker-map.gnu: Add typeinfo and typeinfo name for
4137 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
4139 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
4141 * include/ext/pool_allocator.h: Include c++config.h.
4143 2004-02-09 Stefan Olsson <stefan@xapa.se>
4145 * include/ext/mt_allocator.h: thread_id is unused in non threaded
4146 applications and now has a ifdef to remove it completely on
4147 compilers without thread support. Include stdlib.h due to a
4148 compiler warning on getenv().
4150 2004-02-09 Paul Brook <paul@codesourcery.com>
4152 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
4154 2004-02-09 Paolo Carlini <pcarlini@suse.de>
4157 * src/locale_init.cc (locale::global(const locale&)): Use
4158 locale::name() in order to decide whether calling setlocale.
4159 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
4161 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
4162 Avoid computing &= unnecessarily.
4164 2004-02-09 James E Wilson <wilson@specifixinc.com>
4167 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
4168 __builtin_extend_pointer.
4170 2004-02-09 Paolo Carlini <pcarlini@suse.de>
4173 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
4174 Don't leave dangling pointers.
4175 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
4176 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
4177 facet is needed in the final test.
4179 2004-02-09 Bernardo Innocenti <bernie@develer.com>
4181 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
4182 * configure: Regenerate.
4184 2004-02-08 Richard Henderson <rth@redhat.com>
4187 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
4188 uncaughtExceptions during nested catch rethrow.
4189 * testsuite/18_support/14026.cc: New.
4191 2004-02-08 Paolo Carlini <pcarlini@suse.de>
4193 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
4194 When working in place remember to set the state to sharable
4195 (otherwise, _M_mutate does it).
4197 2004-02-08 Bernardo Innocenti <bernie@develer.com>
4199 * include/bits/allocator.h, include/bits/basic_ios.h,
4200 include/bits/basic_ios.tcc, include/bits/basic_string.h,
4201 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
4202 include/bits/char_traits.h, include/bits/codecvt.h,
4203 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
4204 include/bits/demangle.h, include/bits/deque.tcc,
4205 include/bits/fstream.tcc, include/bits/functexcept.h,
4206 include/bits/gslice.h, include/bits/gslice_array.h,
4207 include/bits/indirect_array.h, include/bits/ios_base.h,
4208 include/bits/istream.tcc, include/bits/list.tcc,
4209 include/bits/locale_classes.h, include/bits/locale_facets.h,
4210 include/bits/locale_facets.tcc, include/bits/localefwd.h,
4211 include/bits/mask_array.h, include/bits/ostream.tcc,
4212 include/bits/postypes.h, include/bits/slice_array.h,
4213 include/bits/sstream.tcc, include/bits/stl_algo.h,
4214 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
4215 include/bits/stl_construct.h, include/bits/stl_deque.h,
4216 include/bits/stl_function.h, include/bits/stl_heap.h,
4217 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
4218 include/bits/stl_list.h, include/bits/stl_map.h,
4219 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
4220 include/bits/stl_numeric.h, include/bits/stl_pair.h,
4221 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
4222 include/bits/stl_relops.h, include/bits/stl_set.h,
4223 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
4224 include/bits/stl_threads.h, include/bits/stl_tree.h,
4225 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
4226 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
4227 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
4228 include/bits/type_traits.h, include/bits/valarray_after.h,
4229 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
4230 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
4231 trailing whitespace.
4233 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4235 * include/bits/basic_string.h: Fix comment.
4237 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4239 * include/bits/stl_construct.h: Wrap overlong lines, reformat
4240 according to the coding standards.
4241 * include/bits/stl_pair.h: Likewise.
4242 * include/bits/stl_raw_storage_iter.h: Likewise.
4243 * include/bits/stl_stack.h: Likewise.
4244 * include/bits/stl_uninitialized.h: Likewise.
4245 * include/bits/stream_iterator.h: Likewise.
4246 * include/bits/streambuf_iterator.h: Likewise.
4247 * include/bits/type_traits.h: Likewise.
4249 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4251 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4254 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
4256 * scripts/check_performance: Support PCH.
4258 * scripts/check_performance (CXX): Add -DNOTHREAD.
4259 * testsuite/performance/20_util/allocator/insert.cc: Integrate
4260 threaded tests from insert_insert.cc. Tweak iterations,
4261 remove special cases.
4262 * testsuite/performance/20_util/allocator/insert_insert.cc:
4263 Make all tests single-threaded. Tweak iterations.
4264 * testsuite/performance/20_util/allocator/map_thread.cc:
4266 * testsuite/performance/20_util/allocator/producer_consumer.cc:
4269 2004-02-05 Geoffrey Keating <geoffk@apple.com>
4273 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
4274 'gcc-lib'. Add comment about poorly-named variables.
4275 * aclocal.m4: Regenerate.
4276 * configure: Regenerate.
4278 2004-02-05 Paolo Carlini <pcarlini@suse.de>
4280 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4281 Thousands-sep are always optional; thousands-sep are not allowed
4282 after the decimal_point.
4283 * testsuite/22_locale/money_get/get/char/12.cc: New.
4284 * testsuite/22_locale/money_get/get/char/13.cc: New.
4285 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
4286 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
4288 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
4289 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
4290 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
4291 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
4292 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
4293 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
4294 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
4295 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
4297 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
4299 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
4301 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
4303 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
4305 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
4306 it to decide whether FIONREAD should take an off_t or int argument.
4308 2004-02-05 Paolo Carlini <pcarlini@suse.de>
4310 * include/bits/stl_function.h: Minor formatting changes.
4312 2004-02-04 Zack Weinberg <zack@codesourcery.com>
4314 Revert previous change to config/abi/*/baseline_symbols.txt.
4316 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
4317 Zack Weinberg <zack@codesourcery.com>
4319 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
4321 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
4322 (__basic_file<char>::_M_open_mode): Delete.
4323 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
4325 * testsuite/27_io/basic_filebuf/close/char/9964.cc
4326 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4327 Correct flags to filebuf::open calls.
4329 * config/abi/alpha-freebsd5/baseline_symbols.txt
4330 * config/abi/alpha-linux-gnu/baseline_symbols.txt
4331 * config/abi/hppa-linux-gnu/baseline_symbols.txt
4332 * config/abi/i386-freebsd4/baseline_symbols.txt
4333 * config/abi/i386-freebsd5/baseline_symbols.txt
4334 * config/abi/i486-linux-gnu/baseline_symbols.txt
4335 * config/abi/ia64-linux-gnu/baseline_symbols.txt
4336 * config/abi/mips-linux-gnu/baseline_symbols.txt
4337 * config/abi/sparc-freebsd5/baseline_symbols.txt
4338 * config/abi/sparc-linux-gnu/baseline_symbols.txt
4339 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
4340 Remove entry for __basic_file<char>::_M_open_mode.
4342 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
4344 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
4346 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
4348 * testsuite/performance/20_util/producer_consumer.cc: New.
4349 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
4351 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
4353 * testsuite/performance/20_util/allocator.cc: Move to..
4354 * testsuite/performance/20_util/allocator/insert.cc: ...here.
4355 * testsuite/performance/20_util/allocator_thread.cc: Move to...
4356 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
4357 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
4358 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
4360 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
4362 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
4363 * docs/html/faq/index.txt: Regenerate.
4365 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
4367 * include/ext/debug_allocator.h: _M_extra now stands for the
4368 number of extra objects instead of the number of extra bytes.
4369 (debug_allocator::allocate): Adjust.
4370 (debug_allocator::deallocate): Adjust.
4372 * include/ext/pool_allocator.h: Fix typo.
4374 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
4375 Benjamin Kosnik <bkoz@redhat.com>
4377 * testsuite/performance/20_util/allocator.cc: Add map,
4379 * testsuite/performance/20_util/allocator_thread.cc: Same.
4381 2004-02-03 Paolo Carlini <pcarlini@suse.de>
4383 * include/bits/basic_string.h (insert(iterator)): Remove,
4384 non-standard and already scheduled for removal.
4386 2004-02-03 Paolo Carlini <pcarlini@suse.de>
4388 * include/bits/stl_iterator_base_funcs.h: Minor formatting
4389 and indentation tweaks.
4390 * include/bits/stl_iterator_base_types.h: Likewise.
4391 * include/bits/stl_list.h: Likewise.
4392 * include/bits/stl_map.h: Likewise.
4393 * include/bits/stl_tempbuf.h: Likewise.
4395 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
4397 * include/bits/gslice.h, include/bits/gslice_array.h,
4398 include/bits/indirect_array.h, include/bits/mask_array.h,
4399 include/bits/slice_array.h, include/bits/stl_numeric.h,
4400 include/std/std_valarray.h: Update copyright years.
4402 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
4404 * include/bits/gslice.h (gslice): Document.
4405 * include/bits/gslice_array.h (gslice_array): Document.
4406 * include/bits/indirect_array (indirect_array): Document.
4407 * include/bits/mask_array (mask_array): Document.
4408 * include/bits/slice_array.h (slice,slice_array): Document.
4409 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
4410 adjacent_difference): Document
4411 * include/std/std_valarray.h (valarray): Document.
4413 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
4415 * docs/html/19_diagnostics/howto.html: Move verbose terminate
4417 * docs/html/18_support/howto.html: Here.
4418 * docs/html/documentation.html: Add reference here.
4420 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4422 * config/locale/gnu/c++locale_internal.h: Remove prototypes
4423 of no longer used GLIBC thread locale functions.
4425 2004-02-02 Eric Christopher <echristo@redhat.com>
4426 Zack Weinberg <zack@codesourcery.com>
4428 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
4430 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
4431 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
4432 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
4433 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
4434 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
4435 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
4436 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
4437 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4440 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4442 * include/bits/stl_function.h: Additional minor tweaks.
4443 * include/bits/stl_multiset.h: Likewise.
4445 * include/bits/stl_queue.h: Minor tweaks.
4447 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4449 PR libstdc++/13976 (continued)
4450 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
4451 Make the second parameter unnamed, to void unused parameter
4453 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
4455 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4458 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
4459 Make the second parameter unnamed, to void unused parameter
4461 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
4462 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
4464 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4466 * include/bits/stl_algo.h: Additional minor tweaks.
4467 * include/bits/stl_map.h: Likewise.
4468 * include/bits/stl_multimap.h: Likewise.
4469 * include/bits/stl_multiset.h: Likewise.
4470 * include/bits/stl_set.h: Likewise.
4471 * include/bits/stl_tree.h: Likewise.
4473 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4475 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
4478 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4480 * include/bits/stl_function.h: Additional minor tweaks.
4482 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4484 * include/bits/deque.tcc: Wrap overlong lines, constify
4485 a few variables, reformat according to the coding standards.
4486 * include/bits/list.tcc: Likewise.
4487 * include/bits/stl_deque.h: Likewise.
4488 * include/bits/stl_function.h: Likewise.
4489 * include/bits/stl_iterator.h: Likewise.
4490 * include/bits/stl_iterator_base_funcs.h: Likewise.
4491 * include/bits/stl_iterator_base_types.h: Likewise.
4492 * include/bits/stl_list.h: Likewise.
4493 * include/bits/stl_map.h: Likewise.
4494 * include/bits/stl_multimap.h: Likewise.
4495 * include/bits/stl_multiset.h: Likewise.
4496 * include/bits/stl_relops.h: Likewise.
4497 * include/bits/stl_set.h: Likewise.
4499 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4501 * include/bits/stl_bvector.h: Wrap overlong lines, constify
4502 a few variables, reformat according to the coding standards.
4503 * include/bits/stl_tree.h: Likewise.
4505 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4507 * include/bits/stl_algo.h: Minor additional reformat, add
4509 * include/bits/stl_algobase.h: Add copyright year.
4511 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4513 * include/bits/stl_algo.h: Wrap overlong lines, constify
4514 a few variables, reformat according to the coding standards.
4515 * include/bits/stl_algobase.h: Likewise.
4516 * include/bits/stl_heap.h: Likewise.
4518 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4520 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
4522 * include/bits/basic_string.h: Fix two comments.
4524 2004-01-31 Per Bothner <per@bothner.com>
4526 * include/ext/mt_allocator.h
4527 (__mt_alloc::_S_thread_freelist_mutex): Guard with
4528 __GTHREAD_MUTEX_INIT.
4530 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4532 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
4534 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4536 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
4537 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
4538 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
4540 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
4542 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
4543 Don't use clear, but instead assign. Use insert.
4545 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
4547 * src/demangle.cc: Add instantiations.
4548 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
4549 * src/Makefile.in: Regenerate.
4551 2004-01-30 David Edelsohn <edelsohn@gnu.org>
4553 * src/allocator.cc: Protect _S_get_thread_id() and
4554 _S_thread_key_destr() with #ifdef __GTHREADS.
4556 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4558 Reshuffle performance testsuite.
4559 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
4560 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
4561 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
4562 fstream_seek_write.cc, ifstream_extract_float.cc,
4563 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
4564 list_create_fill_sort.cc, map_create_fill.cc,
4565 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
4566 ofstream_insert_float.cc, ofstream_insert_int.cc,
4567 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
4568 wchar_t_out.cc: Split into...
4569 * testsuite/performance/20_util/allocator.cc: New.
4570 * testsuite/performance/20_util/allocator_map_thread.cc: New.
4571 * testsuite/performance/20_util/allocator_thread.cc: New.
4572 * testsuite/performance/21_strings/string_append: New.
4573 * testsuite/performance/22_locale/is_wchar_t.cc: New.
4574 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
4575 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
4576 * testsuite/performance/22_locale/wchar_t_in.cc: New.
4577 * testsuite/performance/22_locale/wchar_t_length.cc: New.
4578 * testsuite/performance/22_locale/wchar_t_out.cc: New.
4579 * testsuite/performance/23_containers/container_benchmark.cc: New.
4580 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
4581 * testsuite/performance/23_containers/map_create_fill.cc: New.
4582 * testsuite/performance/26_numerics/complex_norm.cc: New.
4583 * testsuite/performance/27_io/cout_insert_int.cc: New.
4584 * testsuite/performance/27_io/filebuf_copy.cc: New.
4585 * testsuite/performance/27_io/filebuf_sputc.cc: New.
4586 * testsuite/performance/27_io/fstream_seek_write.cc: New.
4587 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
4588 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
4589 * testsuite/performance/27_io/ifstream_getline.cc: New.
4590 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
4591 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
4593 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4595 * include/bits/basic_string.tcc (_Rep::_S_create):
4596 Never allocate a string bigger than max_size(); always keep
4597 __capacity and __size in sync to avoid memory leaks at
4600 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4602 * include/bits/basic_string.tcc (_S_construct(_InIterator,
4603 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
4604 the double loop, streamline.
4606 * include/bits/basic_string.tcc: Very minor tweaks.
4608 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
4610 * scripts/check_performance: Only compile with $THREAD_FLAG
4611 when test is marked to require it. Allow multiple
4612 compilations/executions of marked tests.
4613 * testsuite/testsuite_performance.h (report_performance):
4614 Report dynamic thread support status.
4615 (report_header): Likewise.
4616 * testsuite/performance/allocator.cc: Stabilize iteration
4617 count. Support more allocators. Mark each allocator test to
4618 run and report independently.
4619 * testsuite/performance/allocator_map_thread.cc: Likewise.
4620 * testsuite/performance/allocator_thread.cc: Likewise.
4622 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
4624 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
4625 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
4626 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
4627 std::get_temporary_buffer() instead of duplicating its code.
4628 Update to C++STYLE conventions.
4629 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
4630 new() instead of std::malloc().
4631 (return_temporary_buffer): Use ::operator delete() instead of
4634 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
4636 * include/bits/allocator.h: Temporary switch to new_allocator as
4637 the default to unjam bootstraps.
4639 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
4641 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
4642 * include/Makefile.in: Regenerate.
4643 * include/bits/allocator_traits.h: Remove.
4644 * include/bits/allocator.h: Remove allocator_traits.h include, and
4646 (allocator): Empty base class, inherit from the underlying allocator.
4647 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
4648 * src/allocator.cc: ...here. New. For the underlying allocators.
4649 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
4650 * config/linker-map.gnu: Remove __pool_alloc bits.
4651 * src/Makefile.am (sources): Add allocator.cc.
4652 * src/Makefile.in: Regenerate.
4653 * testsuite/20_util/allocator/1.cc: Split second test into...
4654 * testsuite/20_util/allocator/8230.cc: ...this.
4655 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
4656 typedef to use std::allocatore. Format.
4657 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
4659 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
4660 __throw_bad_alloc calls. Don't include <memory>.
4661 * include/ext/malloc_allocator.h: Remove <memory> include.
4662 * include/ext/new_allocator.h (new_allocator): Same.
4663 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
4664 declaration. Switch __alloc to _Alloc.
4665 * include/ext/hashtable.h: Remove __alloc.
4666 * include/backward/alloc.h: Only inject allocator, not
4667 implementation details.
4669 * include/ext/mt_allocator.h: Replace free with delete.
4671 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
4673 * src/globals_io.cc: Change to __gnu_internal namespace.
4674 * src/globals_locale.cc: Same.
4675 * src/locale_init.cc: Same.
4676 * src/ios_init.cc: Same.
4678 2004-01-28 Stefan Olsson <stefan@snon.net>
4680 * include/ext/mt_allocator.h: Replaced all malloc() calls with
4681 operator new(). Added support for the env variable
4682 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
4683 one in allocate() as well). Fix typos.
4685 2004-01-28 Paolo Carlini <pcarlini@suse.de>
4687 * include/bits/basic_string.h (_S_create(size_t,
4688 const _Alloc&): Change signature to take two size_type
4690 * include/bits/basic_string.tcc (_S_construct(_InIterator,
4691 _InIterator, const _Alloc&, input_iterator_tag)): Update
4693 (_S_construct(_InIterator, _InIterator, const _Alloc&,
4694 forward_iterator_tag)): Likewise.
4695 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
4696 (_M_mutate(size_type, size_type, size_type)): Don't
4697 implement the exponential growth policy, demand it to
4698 _S_create, update call and simplify.
4699 (_M_clone(const _Alloc&, size_type)): Likewise.
4700 (_S_create(size_type, size_type, const _Alloc&)): Implement
4701 the growth policy, simplify otherwise.
4703 * include/bits/basic_string.h (_Rep::operator[]): Tweak
4704 signature to take a size_type, consistently with the other
4707 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
4709 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
4710 delete declarations, add include and test variable.
4712 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
4714 * include/bits/codecvt.h, include/bits/locale_facets.h,
4715 include/bits/postypes.h, include/bits/stl_bvector.h,
4716 include/bits/stl_multiset.h, include/bits/stl_set.h,
4717 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
4718 include/std/std_complex.h: Document.
4720 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
4723 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
4724 iword/pword selector.
4725 (ios_base::iword, ios_base::pword): Use it.
4726 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
4727 iword or pword member on alloc failure.
4728 * testsuite/27_io/ios_base/storage/11584.cc: New test.
4730 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
4731 PJ Darcy <darcypj@us.ibm.com>
4733 * configure.host: Add support for *-tpf.
4734 * crossconfig.m4: Likewise.
4735 * configure: Regenerate.
4736 * config/os/tpf: New directory.
4737 * config/os/tpf/os_defines.h: New file.
4738 * config/os/tpf/ctype_base.h: Likewise.
4739 * config/os/tpf/ctype_inline.h: Likewise.
4740 * config/os/tpf/ctype_noninline.h: Likewise.
4742 2004-01-27 Paolo Carlini <pcarlini@suse.de>
4745 * include/bits/sstream.tcc: Guard use of extern template.
4747 2004-01-27 Paolo Carlini <pcarlini@suse.de>
4749 * include/bits/basic_string.tcc
4750 (basic_string(const basic_string&, size_type, size_type),
4751 basic_string(const basic_string&, size_type, size_type,
4752 const _Alloc&)): Avoid unnecessarily constructing iterators.
4754 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4756 * config/locale/generic/c_locale.cc: Fix throw messages
4757 to use the __N marker.
4758 * config/locale/gnu/c_locale.cc: Likewise.
4759 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
4761 * docs/html/17_intro/C++STYLE: Likewise.
4762 * include/bits/basic_ios.tcc: Likewise.
4763 * include/bits/fstream.tcc: Likewise.
4764 * include/bits/vector.tcc: Likewise.
4765 * include/ext/ropeimpl.h: Likewise.
4766 * include/std/std_bitset.h: Likewise.
4767 * src/ios.cc: Likewise.
4768 * src/locale.cc: Likewise.
4769 * src/localename.cc: Likewise.
4771 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4773 * include/bits/basic_string.h (_M_replace_aux): Use the
4774 __N marker in throw message.
4775 * include/bits/basic_string.tcc (assign(const _CharT*,
4776 size_type), insert(size_type, const _CharT*, size_type),
4777 replace(size_type, size_type, const _CharT*, size_type),
4778 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
4781 * include/bits/basic_string.h, include/bits/basic_string.tcc:
4782 Fold overlong lines, minor formatting changes.
4784 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4786 * include/bits/basic_string.h (replace(iterator, iterator,
4787 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
4788 (replace(iterator, iterator, const _CharT*)): Ditto.
4789 (replace(iterator, iterator, const _CharT*, size_type)):
4790 Add missing _GLIBCXX_DEBUG_PEDASSERT.
4792 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4794 * include/bits/basic_string.tcc (replace(size_type,
4795 size_type, const _CharT*, size_type)): Implement optimized
4796 in-place algorithm for non-overlapping ranges.
4797 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
4798 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
4800 * include/bits/basic_string.tcc (insert(size_type,
4801 const _CharT*, size_type)): Tweak slightly.
4803 2004-01-26 Andreas Schwab <schwab@suse.de>
4805 * config/locale/gnu/monetary_members.cc: Restore locale before
4806 rethrowing exception.
4808 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4810 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
4812 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
4815 * include/bits/basic_string.tcc: Very minor tweaks.
4817 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4819 * testsuite/performance/string_append.cc: Increase number
4822 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4824 * include/bits/basic_string.h (erase(size_type, size_type),
4825 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
4826 instead, thus avoiding redundant check for length_error.
4828 * include/bits/basic_string.h: Tweak some comments.
4830 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4832 * include/bits/basic_string.tcc (operator+(const _CharT*,
4833 const basic_string&)): No need to go through the append
4834 taking two iterators.
4836 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4838 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
4839 Revert last change to use std::min: machine language is worse.
4840 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
4841 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4842 (find_last_not_of(_CharT, size_type)): Ditto.
4844 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
4845 size_type)): Discard the value returned by _M_check.
4846 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
4847 (append(const basic_string&, size_type, size_type)): Ditto.
4848 (copy(_CharT*, size_type, size_type)): Ditto.
4849 (compare(size_type, size_type, const basic_string&)): Ditto.
4850 (compare(size_type, size_type, const basic_string&,
4851 size_type, size_type)): Ditto.
4852 (compare(size_type, size_type, const _CharT*)): Ditto.
4853 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
4855 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4857 * include/bits/basic_string.h (insert(size_type,
4858 const basic_string&, size_type, size_type)): Define inline here.
4859 * include/bits/basic_string.tcc (insert(size_type,
4860 const basic_string&, size_type, size_type)): Move inline.
4862 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4864 * include/bits/basic_string.h (assign(const basic_string&,
4865 size_type, size_type)): Define inline here.
4866 (replace(size_type, size_type, const basic_string&,
4867 size_type, size_type)): Ditto.
4868 (_M_replace_dispatch(iterator, iterator, _InputIterator,
4869 _InputIterator, __false_type)): Only declare.
4870 (_M_replace(iterator, iterator, _InputIterator,
4871 _InputIterator)): Remove.
4872 * include/bits/basic_string.tcc (assign(const basic_string&,
4873 size_type, size_type)): Move inline.
4874 (replace(size_type, size_type, const basic_string&,
4875 size_type, size_type)): Ditto.
4876 (_M_replace_dispatch(iterator, iterator, _InputIterator,
4877 _InputIterator, __false_type)): Define, now does also what
4878 _M_replace did before.
4879 * src/string-inst.cc (_M_replace): Don't instantiate.
4881 * include/bits/basic_string.tcc (find(const _CharT*,
4882 size_type, size_type)): Tidy.
4883 (rfind(_CharT, size_type)): Ditto.
4884 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
4885 (find_first_not_of(_CharT, 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 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4892 * include/debug/bitset (operator|=): Fix typo.
4893 * testsuite/23_containers/bitset/operations/13838.cc: New.
4895 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4897 * include/bits/basic_string.tcc (insert(size_type,
4898 const _CharT*, size_type __n)): Fix length_error check.
4899 (replace(size_type, size_type, const _CharT*, size_type):
4900 Ditto; call _M_replace_safe.
4901 (_M_replace_aux(size_type, size_type, size_type, _CharT):
4902 Fix length_error check.
4903 (_M_replace(iterator, iterator, _InputIterator,
4904 _InputIterator)): Ditto, tweak.
4905 (_M_replace_safe(size_type, size_type, const _CharT*,
4906 size_type)): Remove length_error check.
4908 * include/bits/basic_string.tcc (append(const basic_string&),
4909 append(const basic_string&, size_type, size_type)): Tweak
4912 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
4913 size_type)): If __n == 0 don't call traits::copy.
4915 2004-01-23 Stefan Olsson <stefan@snon.net>
4917 * include/ext/mt_allocator.h: Reduce lock contention.
4919 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4922 * include/bits/fstream.tcc (underflow): Remove unused
4924 * include/bits/streambuf_iterator.h (equal): Ditto.
4925 * include/bits/locale_facets.h (_M_convert_from_char):
4928 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4931 * config/linker-map.gnu (nan): Delete.
4932 * libmath/mathconf.h (NAN, nan): Delete.
4933 * linkage.m4 (nan): Don't check for it.
4934 * libmath/nan.c: Delete file.
4936 * config.h.in, configure: Regenerate.
4938 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4940 * include/bits/basic_string.h (push_back(_CharT)):
4941 Call _M_replace_aux.
4942 (insert(size_type, const basic_string&)): Trivial tweak.
4943 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
4944 (insert(iterator, _CharT)): Ditto.
4945 (erase(size_type, size_type)): Ditto.
4946 (erase(iterator)): Ditto.
4947 (erase(iterator, iterator)): Ditto.
4948 (replace(size_type, size_type, size_type, _CharT)): Ditto.
4950 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
4953 * testsuite/performance/allocator_map_thread.cc: New test.
4955 2004-01-22 Paolo Carlini <pcarlini@suse.de>
4957 * include/bits/locale_facets.tcc
4958 (money_put::do_put(..., long double)): Use the basic_string
4959 constructor for char arrays, not that for C-strings, to pass
4960 __digits to do_put(..., const string_type&): __ws isn't
4963 2004-01-22 Paolo Carlini <pcarlini@suse.de>
4965 * include/bits/basic_string.h (_M_replace_safe): Change
4966 signatures to take size_types and const _CharT*.
4967 (_M_replace_aux): Likewise, takes size_types instead of
4969 (append(size_type, _CharT)): Update call.
4970 (assign(size_type, _CharT)): Ditto.
4971 (replace(iterator, iterator, size_type, _CharT)): Ditto.
4972 (_M_replace_dispatch(iterator, iterator, _Integer,
4973 _Integer, __true_type)): Ditto.
4974 * include/bits/basic_string.tcc (assign(const _CharT*,
4976 (insert(size_type, const _CharT*, size_type)): Ditto.
4977 (replace(size_type, size_type, const _CharT*,
4979 (_M_replace(iterator, iterator, _InputIterator,
4980 _InputIterator)): Ditto.
4981 (append(const basic_string&)): Ditto.
4982 (append(const basic_string&, size_type, size_type): Ditto.
4983 (append(const _CharT*, size_type): Ditto.
4984 (_M_replace_safe, _M_replace_safe): Change definitions
4985 accordingly, simplify.
4986 * string-inst.cc (_M_replace_safe): Don't instantiate.
4988 2004-01-21 Paolo Carlini <pcarlini@suse.de>
4990 * include/bits/basic_string.tcc (append(const basic_string&)):
4991 Revert previous change.
4992 (append(const basic_string&, size_type, size_type)): Revert
4993 previous change, use _M_check and _M_limit.
4995 2004-01-21 Paolo Carlini <pcarlini@suse.de>
4997 * include/bits/basic_string.h (_M_check): Change to return
4998 a checked __pos and take an additional const char* argument.
4999 (_M_fold): Rename to _M_limit, change to return a size_type,
5000 corresponding to the __off limited to the actual length.
5001 (insert(size_type, size_type, _CharT)): Update call, call
5003 (insert(iterator, _CharT)): Call replace(iterator, iterator,
5004 size_type, _CharT) instead.
5005 (erase(size_type, size_type)): Update calls.
5006 (replace(size_type, size_type, size_type, _CharT)): Ditto.
5007 (substr(size_type, size_type)): Use _M_check.
5008 * include/bits/basic_string.tcc (basic_string(const basic_string&,
5009 size_type, size_type)): Update calls.
5010 (basic_string(const basic_string&, size_type, size_type,
5011 const _Alloc&)): Ditto.
5012 (assign(const basic_string&, size_type, size_type)): Use the
5013 new _M_check and _M_limit.
5014 (insert(size_type, const basic_string&, size_type, size_type):
5016 (insert(size_type, const _CharT*, size_type)): Ditto.
5017 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
5018 (replace(size_type, size_type, const basic_string&,
5019 size_type, size_type)): Ditto.
5020 (append(const basic_string&)): Ditto.
5021 (append(const basic_string&, size_type, size_type)): Ditto.
5022 (copy(_CharT*, size_type, size_type)): Ditto.
5023 (compare(size_type, size_type, const basic_string&)): Ditto.
5024 (compare(size_type, size_type, const basic_string&,size_type,
5026 (compare(size_type, size_type, const _CharT*)): Ditto.
5027 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5029 2004-01-19 Stefan Olsson <stefan@snon.net>
5031 * include/ext/mt_allocator.h: If a thread, when it dies, still has
5032 memory on it's freelist this memory is not returned to global
5033 list. Simplification of deallocate so that memory is always
5034 returned to the calling thread id's freelist instead of to
5035 global. Fix typos. Add volatile where appropriate.
5037 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
5039 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
5040 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
5041 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
5043 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5045 * src/debug.cc: Make sure all the names are prefixed with
5046 double (or single) underscore.
5048 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5050 * src/debug.cc: Trivial formatting change.
5052 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5054 * include/bits/basic_string.tcc (_S_construct(size_type,
5055 _CharT, const _Alloc&)): Remove redundant try/catch.
5056 (_M_mutate(size_type, size_type, size_type)): Ditto.
5057 (_M_clone(const _Alloc&, size_type)): Ditto.
5059 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5061 * include/bits/basic_string.h (c_str()): Simplify, due to
5062 21.3.4 the internal representation is always kept null-terminated.
5063 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
5064 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
5065 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
5068 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5070 * include/bits/basic_string.h (append(size_type, _CharT)):
5071 Moved inline, just call _M_replace_aux, no source iterators at
5072 risk of being clobbered.
5073 (assign(size_type, _CharT)): Call directly _M_replace_aux.
5074 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5075 input_iterator_tag)): Remove fifth unused argument.
5076 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5077 _InputIterator, __false_type)): Update call.
5078 * include/bits/basic_string.tcc (replace(size_type, size_type,
5079 const _CharT*, size_type)): Update call.
5080 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
5081 throw string literal.
5082 (_M_replace_safe(iterator, iterator, _ForwardIterator,
5083 _ForwardIterator)): Likewise.
5084 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5085 input_iterator_tag)): Remove fifth unused argument.
5086 (append(size_type __n, _CharT __c)): Move inline.
5087 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
5088 const C*, const C*, input_iterator_tag)): Remove fifth unused
5091 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
5093 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
5094 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
5096 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
5098 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
5101 2004-01-15 Stefan Olsson <stefan@snon.net>
5103 * include/ext/mt_allocator.h: Reuse thread id's as soon as
5104 possible by changing the behaviour of thread_freelist to do
5105 push_front when threads die instead of push_back.
5107 2004-01-14 Paolo Carlini <pcarlini@suse.de>
5109 * include/bits/locale_facets.h (struct __numpunct_cache):
5110 Add member _M_grouping_size, caching the length of _M_grouping.
5111 (__numpunct_cache<>::_M_cache): Assign the latter.
5112 (__verify_grouping): Move declaration...
5113 * include/bits/locale_facets.tcc (__verify_grouping):
5114 ... here, change signature to take a const char* and a size_t
5115 for the grouping; not a template anymore.
5116 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
5117 Likewise change signature and tweak consistently.
5118 (num_get::_M_extract_float, num_get::_M_extract_int,
5119 num_put::_M_insert_int, num_put::_M_insert_float,
5120 money_get::do_get(string_type&), money_get::do_put(string_type)):
5122 * config/locale/generic/numeric_members.cc
5123 (numpunct<>::_M_initialize_numpunct): Assign the new member.
5124 * config/locale/gnu/numeric_members.cc
5125 (numpunct<>::_M_initialize_numpunct): Likewise.
5126 * src/locale-inst.cc (__add_grouping): Tweak signature.
5127 (__verify_grouping): Don't instantiate, not a template anymore.
5129 * include/bits/locale_facets.h: Rename _M_truename_len ->
5130 _M_truename_size, _M_falsename_len -> _M_falsename_size.
5131 * include/bits/locale_facets.tcc: Likewise.
5132 * config/locale/generic/numeric_members.cc: Likewise.
5133 * config/locale/gnu/numeric_members.cc: Likewise.
5135 2004-01-14 Stefan Olsson <stefan@snon.net>
5137 * include/ext/mt_allocator.h: Fixups.
5138 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
5139 * testsuite/performance/allocator_thread.cc: Same.
5141 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
5143 * testsuite/performance/ifstream_extract_float.cc: Add higher
5145 * testsuite/performance/ofstream_insert_float.cc: Same.
5147 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5149 * src/locale-misc-inst.cc (__convert_from_v(long),
5150 __convert_from_v(unsigned long), __convert_from_v(long long),
5151 __convert_from_v(unsigned long long)): Remove, unused.
5153 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
5155 * testsuite/performance/ifstream_extract_float.cc: New.
5156 * testsuite/performance/ofstream_insert_float.cc: Float generation
5159 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
5160 * 20_util/auto_ptr/1.cc: ...this.
5161 * 20_util/auto_ptr/2.cc: Same.
5162 * 20_util/auto_ptr/3.cc: Same.
5163 * 20_util/auto_ptr/3946.cc: Same.
5164 * 20_util/auto_ptr/4.cc: Same.
5165 * 20_util/auto_ptr/5.cc: Same.
5166 * 20_util/auto_ptr/6.cc: Same.
5167 * 20_util/auto_ptr/7.cc: Same.
5168 * 20_util/auto_ptr/assign_neg.cc
5169 * 20_util/pairs.cc: Break into...
5170 * 20_util/pair/1.cc: ...this.
5171 * 20_util/pair/2.cc: Same.
5172 * 20_util/pair/3.cc: Same.
5173 * 20_util/pair/4.cc: Same.
5175 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5177 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
5178 Set correctly just basefield, the only group that matters.
5180 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5182 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
5183 (_Rope_rep_base): Inherit directly from the rope allocator;
5184 use rebinding instead of _Alloc_traits; pick up data member
5185 from _Rope_rep_alloc_base.
5186 (_Rope_alloc_base): Eliminate.
5187 (_Rope_base): Inherit directly from the rope allocator; use
5188 rebinding instead of _Alloc_traits; pick up data member from
5190 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
5191 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
5193 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5196 * include/bits/basic_string.tcc (compare(size_type, size_type,
5197 const _CharT*, size_type)): Implement correctly the resolution
5198 of DR 5: basically, s is a char array, -not- a C string.
5199 * include/bits/basic_string.h: Tweak some comments.
5200 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
5201 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
5203 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
5205 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
5208 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5210 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
5212 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
5215 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5217 * include/bits/locale_facets.h (struct __numpunct_cache):
5218 Add members _M_truename_len and _M_falsename_len, caching
5219 the lengths of _M_truename and _M_falsename.
5220 (__numpunct_cache<>::_M_cache): Assign the latter.
5221 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
5222 num_put::do_put(bool)): Use the new members, thus avoiding
5223 computing string lengths again and again.
5224 * config/locale/generic/numeric_members.cc
5225 (numpunct<>::_M_initialize_numpunct): Assign the new members.
5226 * config/locale/gnu/numeric_members.cc
5227 (numpunct<>::_M_initialize_numpunct): Likewise.
5229 2004-01-12 Mark Mitchell <mark@codesourcery.com>
5231 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
5232 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
5234 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
5235 and remove Cygwin XFAIL.
5236 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
5237 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
5238 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
5239 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
5241 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
5242 * testsuite/27_io/objects/char/7.cc: Likewise.
5243 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
5244 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
5245 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
5247 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
5249 * include/std/std_complex.h (std::complex<>::real): Return a
5250 reference. Add non-const overload.
5251 (std::complex<>::real): Likewise.
5252 (std::real): Likewise.
5253 (std::imag): Likewise.
5254 (std::operator+): Tidy.
5255 (std::operator-): Likewise.
5256 (std::operator*): Likewise.
5257 (std::operator/): Likewise.
5258 (std::operator>>): Likewise.
5260 2004-01-11 Paolo Carlini <pcarlini@suse.de>
5263 * include/bits/fstream.tcc (imbue): Exploit the external
5264 buffer to imbue 'on the fly' a new locale and convert its
5265 remainder with the new codecvt facet.
5266 (underflow): Tweak slightly to deal with this special case.
5267 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
5268 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
5269 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
5270 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
5271 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
5273 2004-01-10 Paolo Carlini <pcarlini@suse.de>
5275 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
5278 2004-01-10 Paolo Carlini <pcarlini@suse.de>
5281 * include/bits/locale_classes.h (class locale): Fix category
5283 * testsuite/22_locale/locale/13630.cc: Add.
5285 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
5287 * include/bits/locale_facets.h: Make a name really dependent. This
5288 will be needed when Core Issue 224 is implemented.
5290 2004-01-09 Paolo Carlini <pcarlini@suse.de>
5292 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
5293 * testsuite/performance/allocator_thread.cc: Likewise.
5295 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
5297 * crossconfig.m4: Add LFS, io bits to linux cross config.
5298 * acconfig.h: Remove obsolete bits, reorder.
5299 * config.h.in: Regenerate.
5303 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
5305 * include/bits/stl_list.h:
5306 * include/bits/list.tc:
5308 Performance enhancements for destructor, push_front(),
5309 push_back(), pop_front(), pop_back(), sort()
5310 Eliminated static_casts where possible.
5311 Moved code out of header files into new src/list.cc
5312 implementation file for library where possible.
5313 Remove inheritance from iterator class and create separate
5314 classes for non-constant and constant iterators.
5315 * include/bits/stl_tree.h (_Rb_tree class):
5317 Only erase contents in destructor.
5318 Eliminate unnecessary initialization in assignment operator.
5319 Optimize for the nominal case by not checking whether
5320 container is empty in clear().
5321 Re-order test in _M_insert() to improve performance.
5322 Move initialization of new node's left & right pointers to
5323 src/tree.cc to where new node's colour is initialized
5324 and to reduce the amount of inline code.
5325 Use _M_leftmost() and _M_end() to improve readability where
5327 Create separate classes for non-constant and constant
5328 iterators to clarify code, avoid extra template parameters and
5329 casting away constness.
5331 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
5333 * src/Makefile.am (sources): Add list.cc, tree.cc.
5334 * src/stl_tree.cc: Move to...
5335 * src/tree.cc: ...here.
5337 * config/linker-map.gnu: Tweaks.
5338 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
5339 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
5341 * bits/stl_vector.h: Column wrap comments.
5343 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
5345 (re-open) PR libstdc++/12658
5346 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
5347 (locale::global): Likewise.
5349 2004-01-07 Paolo Carlini <pcarlini@suse.de>
5351 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
5352 Remove redundant #include.
5353 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
5354 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
5355 re-enable normal testing.
5356 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
5358 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
5359 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
5361 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
5363 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
5365 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
5367 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
5369 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
5371 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
5373 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
5374 More properly, #include <locale>.
5375 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
5376 Remove redundant #include.
5377 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
5378 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
5379 redundant DejaGnu directive.
5380 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
5383 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
5384 Stefan Olsson <stefan@snon.net>
5386 * scripts/check_performance: Use -pthread.
5387 * testsuite/performance/allocator.cc: Tweaks, add list.
5388 * testsuite/performance/allocator_thread.cc: New.
5390 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
5392 * include/bits/locale_facets.h: Document public classes and
5394 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
5397 2004-01-06 Paolo Carlini <pcarlini@suse.de>
5399 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
5400 Remove redundant #includes.
5401 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
5403 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
5405 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
5406 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
5407 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
5408 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
5409 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
5410 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
5411 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
5412 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
5413 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
5414 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
5415 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
5416 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
5417 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
5418 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
5419 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
5421 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
5423 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
5425 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
5427 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
5429 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
5430 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
5431 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
5433 2004-01-04 Paolo Carlini <pcarlini@suse.de>
5435 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
5436 Remove redundant #includes.
5437 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
5439 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
5441 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
5443 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
5445 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
5447 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
5449 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
5451 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
5453 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
5455 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
5457 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
5459 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
5462 2004-01-04 Mark Mitchell <mark@codesourcery.com>
5465 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
5467 * testsuite/27_io/basic_fstream/4.cc: Likewise.
5468 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
5469 * testsuite/27_io/basic_ios/4.cc: Likewise.
5470 * testsuite/27_io/basic_iostream/4.cc: Likewise.
5471 * testsuite/27_io/basic_istream/4.cc: Likewise.
5472 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
5473 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
5474 * testsuite/27_io/basic_ostream/4.cc: Likewise.
5475 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
5476 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
5477 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
5479 2004-01-04 Paolo Carlini <pcarlini@suse.de>
5481 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
5482 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
5483 always use double underscored names.
5484 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
5486 * include/bits/locale_facets.h (struct __numpunct_cache):
5487 Dimension _M_atoms_out and _M_atoms_in one position smaller.
5488 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out